2 # From configure.ac Revision: 1.43 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for gc 7.2alpha3.
6 # Report bugs to <Hans.Boehm@hp.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
670 # maybe with a smaller string...
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 # Oops. We lost completely, so just stick with echo.
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
719 ac_default_prefix=/usr/local
721 ac_config_libobj_dir=.
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
732 PACKAGE_VERSION='7.2alpha3'
733 PACKAGE_STRING='gc 7.2alpha3'
734 PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
736 ac_unique_file="gcj_mlc.c"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
750 # ifdef HAVE_STDLIB_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
782 program_transform_name
835 INSTALL_STRIP_PROGRAM
844 MAINTAINER_MODE_FALSE
906 ENABLE_GCJ_SUPPORT_TRUE
907 ENABLE_GCJ_SUPPORT_FALSE
912 USE_INTERNAL_LIBATOMIC_OPS_TRUE
913 USE_INTERNAL_LIBATOMIC_OPS_FALSE
914 NEED_ATOMIC_OPS_ASM_TRUE
915 NEED_ATOMIC_OPS_ASM_FALSE
920 ac_precious_vars='build_alias
937 ac_subdirs_all='libatomic_ops'
939 # Initialize some variables set by options.
941 ac_init_version=false
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
951 program_transform_name=s,x,x,
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1043 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1046 eval enable_$ac_feature=no ;;
1048 -docdir | --docdir | --docdi | --doc | --do)
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051 docdir=$ac_optarg ;;
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056 dvidir=$ac_optarg ;;
1058 -enable-* | --enable-*)
1059 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1065 eval enable_$ac_feature=\$ac_optarg ;;
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 htmldir=$ac_optarg ;;
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1110 -libdir | --libdir | --libdi | --libd)
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1201 -psdir | --psdir | --psdi | --psd | --ps)
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 sbindir=$ac_optarg ;;
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 sharedstatedir=$ac_optarg ;;
1227 -site | --site | --sit)
1229 -site=* | --site=* | --sit=*)
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1256 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid package name: $ac_package" >&2
1260 { (exit 1); exit 1; }; }
1261 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262 eval with_$ac_package=\$ac_optarg ;;
1264 -without-* | --without-*)
1265 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271 eval with_$ac_package=no ;;
1274 # Obsolete; use --with-x.
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) { echo "$as_me: error: unrecognized option: $ac_option
1292 Try \`$0 --help' for more information." >&2
1293 { (exit 1); exit 1; }; }
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1301 { (exit 1); exit 1; }; }
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 { echo "$as_me: error: missing argument to $ac_option" >&2
1319 { (exit 1); exit 1; }; }
1322 # Be sure to have absolute directory names.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1334 { (exit 1); exit 1; }; }
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used." >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 { echo "$as_me: error: Working directory cannot be determined" >&2
1365 { (exit 1); exit 1; }; }
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 { echo "$as_me: error: pwd does not report name of working directory" >&2
1368 { (exit 1); exit 1; }; }
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$0" ||
1376 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$0" : 'X\(//\)[^/]' \| \
1378 X"$0" : 'X\(//\)$' \| \
1379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1403 ac_srcdir_defaulted=no
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1408 { (exit 1); exit 1; }; }
1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1413 { (exit 1); exit 1; }; }
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1439 \`configure' configures gc 7.2alpha3 to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/gc]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 --target=TARGET configure for building compilers for TARGET [HOST]
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive ) echo "Configuration of gc 7.2alpha3:";;
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-maintainer-mode enable make rules and dependencies not useful
1518 (and sometimes confusing) to the casual installer
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
1521 --enable-threads=TYPE choose threading package
1522 --enable-parallel-mark parallelize marking and free list construction
1523 --enable-cplusplus install C++ support
1524 --enable-shared[=PKGS] build shared libraries [default=yes]
1525 --enable-static[=PKGS] build static libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --disable-gcj-support Disable support for gcj.
1530 --enable-gc-debug include full support for pointer backtracing etc.
1531 --disable-java-finalization
1532 Disable support for java finalization.
1533 --disable-atomic-uncollectible
1534 Disable support for atomic uncollectible allocation.
1535 --enable-redirect-malloc
1536 Redirect malloc and friends to GC routines
1537 --enable-large-config Optimize for large (> 100 MB) heap or root set
1538 --enable-gc-assertions collector-internal assertion checking
1539 --enable-munmap=N return page to the os if empty for N collections
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-ecos enable runtime eCos target support
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1548 --with-tags[=TAGS] include additional configurations [automatic]
1549 --with-target-subdir=SUBDIR
1550 configuring with a cross compiler
1551 --with-cross-host=HOST configuring with a cross compiler
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 CCAS assembler compiler command (defaults to CC)
1564 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1566 CXXCPP C++ preprocessor
1567 F77 Fortran 77 compiler command
1568 FFLAGS Fortran 77 compiler flags
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to <Hans.Boehm@hp.com>.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" || continue
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1601 .) # We are building in place.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1623 $SHELL "$ac_srcdir/configure" --help=recursive
1625 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 cd "$ac_pwd" || { ac_status=$?; break; }
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1634 gc configure 7.2alpha3
1635 generated by GNU Autoconf 2.61
1637 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1638 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by gc $as_me 7.2alpha3, which was
1649 generated by GNU Autoconf 2.61. Invocation command line was
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1671 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1674 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1675 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1676 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_must_keep_next=false
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 -* ) ac_must_keep_next=true ;;
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 echo "$ac_var='\''$ac_val'\''"
1812 if test -n "$ac_subst_files"; then
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 echo "$ac_var='\''$ac_val'\''"
1830 if test -s confdefs.h; then
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
1896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1944 echo "$as_me: former value: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1946 echo "$as_me: current value: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
2004 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2005 if test -f "$ac_dir/install-sh"; then
2007 ac_install_sh="$ac_aux_dir/install-sh -c"
2009 elif test -f "$ac_dir/install.sh"; then
2011 ac_install_sh="$ac_aux_dir/install.sh -c"
2013 elif test -f "$ac_dir/shtool"; then
2015 ac_install_sh="$ac_aux_dir/shtool install -c"
2019 if test -z "$ac_aux_dir"; then
2020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2021 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2022 { (exit 1); exit 1; }; }
2025 # These three variables are undocumented and unsupported,
2026 # and are intended to be withdrawn in a future Autoconf release.
2027 # They can cause serious problems if a builder's source tree is in a directory
2028 # whose full name contains unusual characters.
2029 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2030 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2031 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2034 # Make sure we can run config.sub.
2035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2036 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2038 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: checking build system type" >&5
2041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_build+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 ac_build_alias=$build_alias
2046 test "x$ac_build_alias" = x &&
2047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2048 test "x$ac_build_alias" = x &&
2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051 { (exit 1); exit 1; }; }
2052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059 echo "${ECHO_T}$ac_cv_build" >&6; }
2060 case $ac_cv_build in
2062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2063 echo "$as_me: error: invalid value of canonical build" >&2;}
2064 { (exit 1); exit 1; }; };;
2067 ac_save_IFS=$IFS; IFS='-'
2073 # Remember, the first character of IFS is used to create $*,
2074 # except with old shells:
2077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2080 { echo "$as_me:$LINENO: checking host system type" >&5
2081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_host+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test "x$host_alias" = x; then
2086 ac_cv_host=$ac_cv_build
2088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2091 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2096 echo "${ECHO_T}$ac_cv_host" >&6; }
2099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2100 echo "$as_me: error: invalid value of canonical host" >&2;}
2101 { (exit 1); exit 1; }; };;
2104 ac_save_IFS=$IFS; IFS='-'
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2117 { echo "$as_me:$LINENO: checking target system type" >&5
2118 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2119 if test "${ac_cv_target+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test "x$target_alias" = x; then
2123 ac_cv_target=$ac_cv_host
2125 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2126 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2128 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2133 echo "${ECHO_T}$ac_cv_target" >&6; }
2134 case $ac_cv_target in
2136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2137 echo "$as_me: error: invalid value of canonical target" >&2;}
2138 { (exit 1); exit 1; }; };;
2140 target=$ac_cv_target
2141 ac_save_IFS=$IFS; IFS='-'
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2151 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2154 # The aliases save the names the user supplied, while $host etc.
2155 # will get canonicalized.
2156 test -n "$target_alias" &&
2157 test "$program_prefix$program_suffix$program_transform_name" = \
2159 program_prefix=${target_alias}-
2163 { echo "$as_me:$LINENO: checking GC version numbers" >&5
2164 echo $ECHO_N "checking GC version numbers... $ECHO_C" >&6; }
2165 GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
2166 GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
2167 GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
2169 case "$GC_ALPHA_VERSION" in
2171 GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
2172 | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
2173 *) GC_ALPHA_MAJOR='' ;;
2176 if test :$GC_VERSION_MAJOR: = :: \
2177 -o :$GC_VERSION_MINOR: = :: ;
2179 { echo "$as_me:$LINENO: result: invalid" >&5
2180 echo "${ECHO_T}invalid" >&6; }
2181 { { echo "$as_me:$LINENO: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&5
2182 echo "$as_me: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&2;}
2183 { (exit 1); exit 1; }; }
2186 cat >>confdefs.h <<_ACEOF
2187 #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
2190 cat >>confdefs.h <<_ACEOF
2191 #define GC_VERSION_MINOR $GC_VERSION_MINOR
2194 if test :$GC_ALPHA_VERSION: != :: ; then
2195 cat >>confdefs.h <<_ACEOF
2196 #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
2200 { echo "$as_me:$LINENO: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2201 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
2202 echo "${ECHO_T}major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
2203 ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; }
2205 am__api_version="1.9"
2206 # Find a good install program. We prefer a C program (faster),
2207 # so one script is as good as another. But avoid the broken or
2208 # incompatible versions:
2209 # SysV /etc/install, /usr/sbin/install
2210 # SunOS /usr/etc/install
2211 # IRIX /sbin/install
2213 # AmigaOS /C/install, which installs bootblocks on floppy discs
2214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2217 # OS/2's system install, which has a completely different semantic
2218 # ./install, which can be erroneously created by make from ./install.sh.
2219 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2221 if test -z "$INSTALL"; then
2222 if test "${ac_cv_path_install+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 # Account for people who put trailing slashes in PATH elements.
2232 ./ | .// | /cC/* | \
2233 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2234 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2237 # OSF1 and SCO ODT 3.0 have their own names for install.
2238 # Don't use installbsd from OSF since it installs stuff as root
2240 for ac_prog in ginstall scoinst install; do
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2243 if test $ac_prog = install &&
2244 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2245 # AIX install. It has an incompatible calling convention.
2247 elif test $ac_prog = install &&
2248 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # program-specific install script used by HP pwplus--don't use.
2252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2265 if test "${ac_cv_path_install+set}" = set; then
2266 INSTALL=$ac_cv_path_install
2268 # As a last resort, use the slow shell script. Don't cache a
2269 # value for INSTALL within a source directory, because that will
2270 # break other packages using the cache if that directory is
2271 # removed, or if the value is a relative name.
2272 INSTALL=$ac_install_sh
2275 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2276 echo "${ECHO_T}$INSTALL" >&6; }
2278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2279 # It thinks the first close brace ends the variable substitution.
2280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2286 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2287 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2290 echo timestamp > conftest.file
2291 # Do `set' in a subshell so we don't clobber the current shell's
2292 # arguments. Must try -L first in case configure is actually a
2293 # symlink; some systems play weird games with the mod time of symlinks
2294 # (eg FreeBSD returns the mod time of the symlink's containing
2297 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2298 if test "$*" = "X"; then
2300 set X `ls -t $srcdir/configure conftest.file`
2303 if test "$*" != "X $srcdir/configure conftest.file" \
2304 && test "$*" != "X conftest.file $srcdir/configure"; then
2306 # If neither matched, then we have a broken ls. This can happen
2307 # if, for instance, CONFIG_SHELL is bash and it inherits a
2308 # broken ls alias from the environment. This has actually
2309 # happened. Such a system could not be considered "sane".
2310 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2311 alias in your environment" >&5
2312 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2313 alias in your environment" >&2;}
2314 { (exit 1); exit 1; }; }
2317 test "$2" = conftest.file
2323 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2324 Check your system clock" >&5
2325 echo "$as_me: error: newly created file is older than distributed files!
2326 Check your system clock" >&2;}
2327 { (exit 1); exit 1; }; }
2329 { echo "$as_me:$LINENO: result: yes" >&5
2330 echo "${ECHO_T}yes" >&6; }
2331 test "$program_prefix" != NONE &&
2332 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333 # Use a double $ so make ignores it.
2334 test "$program_suffix" != NONE &&
2335 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 # Double any \ or $. echo might interpret backslashes.
2337 # By default was `s,x,x', remove it if useless.
2338 cat <<\_ACEOF >conftest.sed
2339 s/[\\$]/&&/g;s/;s,x,x,$//
2341 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2344 # expand $ac_aux_dir to an absolute path
2345 am_aux_dir=`cd $ac_aux_dir && pwd`
2347 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2348 # Use eval to expand $SHELL
2349 if eval "$MISSING --run true"; then
2350 am_missing_run="$MISSING --run "
2353 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2354 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2357 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2358 # We used to keeping the `.' as first argument, in order to
2359 # allow $(mkdir_p) to be used without argument. As in
2360 # $(mkdir_p) $(somedir)
2361 # where $(somedir) is conditionally defined. However this is wrong
2363 # 1. if the package is installed by a user who cannot write `.'
2364 # make install will fail,
2365 # 2. the above comment should most certainly read
2366 # $(mkdir_p) $(DESTDIR)$(somedir)
2367 # so it does not work when $(somedir) is undefined and
2368 # $(DESTDIR) is not.
2369 # To support the latter case, we have to write
2370 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2371 # so the `.' trick is pointless.
2372 mkdir_p='mkdir -p --'
2374 # On NextStep and OpenStep, the `mkdir' command does not
2375 # recognize any option. It will interpret all options as
2376 # directories to create, and then abort because `.' already
2378 for d in ./-p ./--version;
2380 test -d $d && rmdir $d
2382 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2383 if test -f "$ac_aux_dir/mkinstalldirs"; then
2384 mkdir_p='$(mkinstalldirs)'
2386 mkdir_p='$(install_sh) -d'
2390 for ac_prog in gawk mawk nawk awk
2392 # Extract the first word of "$ac_prog", so it can be a program name with args.
2393 set dummy $ac_prog; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_AWK+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 if test -n "$AWK"; then
2400 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_AWK="$ac_prog"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 if test -n "$AWK"; then
2421 { echo "$as_me:$LINENO: result: $AWK" >&5
2422 echo "${ECHO_T}$AWK" >&6; }
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2429 test -n "$AWK" && break
2432 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2433 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2434 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2435 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 cat >conftest.make <<\_ACEOF
2441 @echo '@@@%%%=$(MAKE)=@@@%%%'
2443 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2444 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2446 eval ac_cv_prog_make_${ac_make}_set=yes;;
2448 eval ac_cv_prog_make_${ac_make}_set=no;;
2452 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2453 { echo "$as_me:$LINENO: result: yes" >&5
2454 echo "${ECHO_T}yes" >&6; }
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2459 SET_MAKE="MAKE=${MAKE-make}"
2462 rm -rf .tst 2>/dev/null
2463 mkdir .tst 2>/dev/null
2464 if test -d .tst; then
2469 rmdir .tst 2>/dev/null
2471 # test to see if srcdir already configured
2472 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2473 test -f $srcdir/config.status; then
2474 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2475 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2476 { (exit 1); exit 1; }; }
2479 # test whether we have cygpath
2480 if test -z "$CYGPATH_W"; then
2481 if (cygpath --version) >/dev/null 2>/dev/null; then
2482 CYGPATH_W='cygpath -w'
2489 # Define the identity of the package.
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE "$PACKAGE"
2499 cat >>confdefs.h <<_ACEOF
2500 #define VERSION "$VERSION"
2503 # Some tools Automake needs.
2505 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2519 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2521 # Installed binaries are usually stripped using `strip' when the user
2522 # run `make install-strip'. However `strip' might not be the right
2523 # tool to use in cross-compilation environments, therefore Automake
2524 # will honor the `STRIP' environment variable to overrule this program.
2525 if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}strip; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_STRIP+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 STRIP=$ac_cv_prog_STRIP
2555 if test -n "$STRIP"; then
2556 { echo "$as_me:$LINENO: result: $STRIP" >&5
2557 echo "${ECHO_T}$STRIP" >&6; }
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2565 if test -z "$ac_cv_prog_STRIP"; then
2567 # Extract the first word of "strip", so it can be a program name with args.
2568 set dummy strip; ac_word=$2
2569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2571 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595 if test -n "$ac_ct_STRIP"; then
2596 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2597 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2599 { echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6; }
2603 if test "x$ac_ct_STRIP" = x; then
2606 case $cross_compiling:$ac_tool_warned in
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2619 STRIP="$ac_cv_prog_STRIP"
2623 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2625 # We need awk for the "check" target. The system "awk" is bad on
2627 # Always define AMTAR for backward compatibility.
2629 AMTAR=${AMTAR-"${am_missing_run}tar"}
2631 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2637 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2638 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2639 # Check whether --enable-maintainer-mode was given.
2640 if test "${enable_maintainer_mode+set}" = set; then
2641 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2643 USE_MAINTAINER_MODE=no
2646 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2647 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2650 if test $USE_MAINTAINER_MODE = yes; then
2651 MAINTAINER_MODE_TRUE=
2652 MAINTAINER_MODE_FALSE='#'
2654 MAINTAINER_MODE_TRUE='#'
2655 MAINTAINER_MODE_FALSE=
2658 MAINT=$MAINTAINER_MODE_TRUE
2665 DEPDIR="${am__leading_dot}deps"
2667 ac_config_commands="$ac_config_commands depfiles"
2670 am_make=${MAKE-make}
2671 cat > confinc << 'END'
2676 # If we don't find an include directive, just comment out the code.
2677 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2678 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2682 # First try GNU make style include.
2683 echo "include confinc" > confmf
2684 # We grep out `Entering directory' and `Leaving directory'
2685 # messages which can occur if `w' ends up in MAKEFLAGS.
2686 # In particular we don't look at `^make:' because GNU make might
2687 # be invoked under some other name (usually "gmake"), in which
2688 # case it prints its new name instead of `make'.
2689 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2694 # Now try BSD make style include.
2695 if test "$am__include" = "#"; then
2696 echo '.include "confinc"' > confmf
2697 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2698 am__include=.include
2705 { echo "$as_me:$LINENO: result: $_am_result" >&5
2706 echo "${ECHO_T}$_am_result" >&6; }
2707 rm -f confinc confmf
2709 # Check whether --enable-dependency-tracking was given.
2710 if test "${enable_dependency_tracking+set}" = set; then
2711 enableval=$enable_dependency_tracking;
2714 if test "x$enable_dependency_tracking" != xno; then
2715 am_depcomp="$ac_aux_dir/depcomp"
2720 if test "x$enable_dependency_tracking" != xno; then
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2740 if test "${ac_cv_prog_CC+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 if test -n "$CC"; then
2765 { echo "$as_me:$LINENO: result: $CC" >&5
2766 echo "${ECHO_T}$CC" >&6; }
2768 { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2774 if test -z "$ac_cv_prog_CC"; then
2776 # Extract the first word of "gcc", so it can be a program name with args.
2777 set dummy gcc; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_ac_ct_CC="gcc"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2806 echo "${ECHO_T}$ac_ct_CC" >&6; }
2808 { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2812 if test "x$ac_ct_CC" = x; then
2815 case $cross_compiling:$ac_tool_warned in
2817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet. If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&5
2820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet. If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2823 ac_tool_warned=yes ;;
2831 if test -z "$CC"; then
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}cc; ac_word=$2
2835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837 if test "${ac_cv_prog_CC+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_CC="${ac_tool_prefix}cc"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 if test -n "$CC"; then
2862 { echo "$as_me:$LINENO: result: $CC" >&5
2863 echo "${ECHO_T}$CC" >&6; }
2865 { echo "$as_me:$LINENO: result: no" >&5
2866 echo "${ECHO_T}no" >&6; }
2872 if test -z "$CC"; then
2873 # Extract the first word of "cc", so it can be a program name with args.
2874 set dummy cc; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2892 ac_prog_rejected=yes
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test $ac_prog_rejected = yes; then
2904 # We found a bogon in the path, so make sure we never use it.
2905 set dummy $ac_cv_prog_CC
2907 if test $# != 0; then
2908 # We chose a different compiler from the bogus one.
2909 # However, it has the same basename, so the bogon will be chosen
2910 # first if we set CC to just the basename; use the full file name.
2912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918 if test -n "$CC"; then
2919 { echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6; }
2922 { echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6; }
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 for ac_prog in cl.exe
2932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { echo "$as_me:$LINENO: result: $CC" >&5
2962 echo "${ECHO_T}$CC" >&6; }
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2969 test -n "$CC" && break
2972 if test -z "$CC"; then
2974 for ac_prog in cl.exe
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 if test -n "$ac_ct_CC"; then
2984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_ac_ct_CC="$ac_prog"
2994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3006 echo "${ECHO_T}$ac_ct_CC" >&6; }
3008 { echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6; }
3013 test -n "$ac_ct_CC" && break
3016 if test "x$ac_ct_CC" = x; then
3019 case $cross_compiling:$ac_tool_warned in
3021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet. If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&5
3024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet. If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3027 ac_tool_warned=yes ;;
3036 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details." >&2;}
3040 { (exit 1); exit 1; }; }
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compiler --version >&5") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compiler -v >&5") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compiler -V >&5") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 cat >conftest.$ac_ext <<_ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3096 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3098 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100 # List of possible output files, starting from the most likely.
3101 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3102 # only as a last resort. b.out is created by i960 compilers.
3103 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3105 # The IRIX 6 linker writes into existing files which may not be
3106 # executable, retaining their permissions. Remove them first so a
3107 # subsequent execution test works.
3109 for ac_file in $ac_files
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3113 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3118 if { (ac_try="$ac_link_default"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_link_default") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3131 # so that the user can short-circuit this test for compilers unknown to
3133 for ac_file in $ac_files ''
3135 test -f "$ac_file" || continue
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3140 # We found the default executable, but exeext='' is most
3144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148 # We set ac_cv_exeext here because the later test for it is not
3149 # safe: cross compilers may not add the suffix if given an `-o'
3150 # argument, so we may need to know it at that point already.
3151 # Even if this section looks crufty: it has the advantage of
3158 test "$ac_cv_exeext" = no && ac_cv_exeext=
3164 { echo "$as_me:$LINENO: result: $ac_file" >&5
3165 echo "${ECHO_T}$ac_file" >&6; }
3166 if test -z "$ac_file"; then
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: C compiler cannot create executables
3173 See \`config.log' for more details." >&2;}
3174 { (exit 77); exit 77; }; }
3177 ac_exeext=$ac_cv_exeext
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3182 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3183 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3184 # If not cross compiling, check that we can run a simple program.
3185 if test "$cross_compiling" != yes; then
3186 if { ac_try='./$ac_file'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3198 if test "$cross_compiling" = maybe; then
3201 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details." >&5
3204 echo "$as_me: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&2;}
3207 { (exit 1); exit 1; }; }
3211 { echo "$as_me:$LINENO: result: yes" >&5
3212 echo "${ECHO_T}yes" >&6; }
3214 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3215 ac_clean_files=$ac_clean_files_save
3216 # Check that the compiler produces executables we can run. If not, either
3217 # the compiler is broken, or we cross compile.
3218 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3219 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3220 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3221 echo "${ECHO_T}$cross_compiling" >&6; }
3223 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3224 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3225 if { (ac_try="$ac_link"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_link") 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; then
3235 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3237 # work properly (i.e., refer to `conftest.exe'), while it won't with
3239 for ac_file in conftest.exe conftest conftest.*; do
3240 test -f "$ac_file" || continue
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3243 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3250 See \`config.log' for more details." >&5
3251 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3252 See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3256 rm -f conftest$ac_cv_exeext
3257 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3258 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3263 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3264 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3265 if test "${ac_cv_objext+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.o conftest.obj
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; then
3294 for ac_file in conftest.o conftest.obj conftest.*; do
3295 test -f "$ac_file" || continue;
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3309 See \`config.log' for more details." >&2;}
3310 { (exit 1); exit 1; }; }
3313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3315 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3316 echo "${ECHO_T}$ac_cv_objext" >&6; }
3317 OBJEXT=$ac_cv_objext
3319 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3320 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3321 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3373 GCC=`test $ac_compiler_gnu = yes && echo yes`
3374 ac_test_CFLAGS=${CFLAGS+set}
3375 ac_save_CFLAGS=$CFLAGS
3376 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_cc_g+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 ac_save_c_werror_flag=$ac_c_werror_flag
3382 ac_c_werror_flag=yes
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3400 rm -f conftest.$ac_objext
3401 if { (ac_try="$ac_compile"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_c_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_c_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3477 rm -f conftest.$ac_objext
3478 if { (ac_try="$ac_compile"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_compile") 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && {
3491 test -z "$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 } && test -s conftest.$ac_objext; then
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 ac_c_werror_flag=$ac_save_c_werror_flag
3511 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3513 if test "$ac_test_CFLAGS" = set; then
3514 CFLAGS=$ac_save_CFLAGS
3515 elif test $ac_cv_prog_cc_g = yes; then
3516 if test "$GCC" = yes; then
3522 if test "$GCC" = yes; then
3528 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3529 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3530 if test "${ac_cv_prog_cc_c89+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 ac_cv_prog_cc_c89=no
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3543 #include <sys/types.h>
3544 #include <sys/stat.h>
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3559 s = g (p, va_arg (v,int));
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std. */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574 inside strings and character constants. */
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 CC="$ac_save_CC $ac_arg"
3596 rm -f conftest.$ac_objext
3597 if { (ac_try="$ac_compile"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_compile") 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && {
3610 test -z "$ac_c_werror_flag" ||
3611 test ! -s conftest.err
3612 } && test -s conftest.$ac_objext; then
3613 ac_cv_prog_cc_c89=$ac_arg
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3621 rm -f core conftest.err conftest.$ac_objext
3622 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 rm -f conftest.$ac_ext
3629 case "x$ac_cv_prog_cc_c89" in
3631 { echo "$as_me:$LINENO: result: none needed" >&5
3632 echo "${ECHO_T}none needed" >&6; } ;;
3634 { echo "$as_me:$LINENO: result: unsupported" >&5
3635 echo "${ECHO_T}unsupported" >&6; } ;;
3637 CC="$CC $ac_cv_prog_cc_c89"
3638 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3639 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 depcc="$CC" am_compiler_list=
3651 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657 # We make a subdir and do the tests there. Otherwise we can end up
3658 # making bogus files that we don't know about and never remove. For
3659 # instance it was reported that on HP-UX the gcc test will end up
3660 # making a dummy file named `D' -- because `-MD' means `put the output
3663 # Copy depcomp to subdir because otherwise we won't find it if we're
3664 # using a relative directory.
3665 cp "$am_depcomp" conftest.dir
3667 # We will build objects and dependencies in a subdirectory because
3668 # it helps to detect inapplicable dependency modes. For instance
3669 # both Tru64's cc and ICC support -MD to output dependencies as a
3670 # side effect of compilation, but ICC will put the dependencies in
3671 # the current directory while Tru64 will put them in the object
3675 am_cv_CC_dependencies_compiler_type=none
3676 if test "$am_compiler_list" = ""; then
3677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3679 for depmode in $am_compiler_list; do
3680 # Setup a source with many dependencies, because some compilers
3681 # like to wrap large dependency lists on column 80 (with \), and
3682 # we should not choose a depcomp mode which is confused by this.
3684 # We need to recreate these files for each test, as the compiler may
3685 # overwrite some of them when testing with obscure command lines.
3686 # This happens at least with the AIX C compiler.
3688 for i in 1 2 3 4 5 6; do
3689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3691 # Solaris 8's {/usr,}/bin/sh.
3692 touch sub/conftst$i.h
3694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3698 # after this tag, mechanisms are not by side-effect, so they'll
3699 # only be used when explicitly requested
3700 if test "x$enable_dependency_tracking" = xyes; then
3708 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3709 # mode. It turns out that the SunPro C++ compiler does not properly
3710 # handle `-M -o', and we need to detect this.
3711 if depmode=$depmode \
3712 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3714 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3715 >/dev/null 2>conftest.err &&
3716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3717 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3719 # icc doesn't choke on unknown options, it will just issue warnings
3720 # or remarks (even with -Werror). So we grep stderr for any message
3721 # that says an option was ignored or not supported.
3722 # When given -MP, icc 7.0 and 7.1 complain thusly:
3723 # icc: Command line warning: ignoring option '-M'; no argument required
3724 # The diagnosis changed in icc 8.0:
3725 # icc: Command line remark: option '-MP' not supported
3726 if (grep 'ignoring option' conftest.err ||
3727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3728 am_cv_CC_dependencies_compiler_type=$depmode
3737 am_cv_CC_dependencies_compiler_type=none
3741 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3742 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3748 test "x$enable_dependency_tracking" != xno \
3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3751 am__fastdepCC_FALSE='#'
3753 am__fastdepCC_TRUE='#'
3754 am__fastdepCC_FALSE=
3758 if test "x$CC" != xcc; then
3759 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3760 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3762 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3763 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3765 set dummy $CC; ac_cc=`echo $2 |
3766 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3767 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3785 # Make sure it works both with $CC and with simple cc.
3786 # We do the test twice because some compilers refuse to overwrite an
3787 # existing .o file with -o, though they will create one.
3788 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3790 if { (case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_try") 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_try") 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); };
3809 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3810 if test "x$CC" != xcc; then
3811 # Test first that cc exists at all.
3812 if { ac_try='cc -c conftest.$ac_ext >&5'
3813 { (case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_try") 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3824 if { (case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_try") 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_try") 2>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); };
3846 # cc exists but doesn't like -o.
3847 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3852 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3854 rm -f core conftest*
3857 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3858 { echo "$as_me:$LINENO: result: yes" >&5
3859 echo "${ECHO_T}yes" >&6; }
3861 { echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6; }
3864 cat >>confdefs.h <<\_ACEOF
3865 #define NO_MINUS_C_MINUS_O 1
3870 # FIXME: we rely on the cache variable name because
3871 # there is no other way.
3873 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3874 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3875 # Losing compiler, so override with the script.
3876 # FIXME: It is wrong to rewrite CC.
3877 # But if we don't then we get into trouble of one sort or another.
3878 # A longer-term fix would be to have automake use am__CC in this case,
3879 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3880 CC="$am_aux_dir/compile $CC"
3884 ac_cpp='$CXXCPP $CPPFLAGS'
3885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3888 if test -z "$CXX"; then
3889 if test -n "$CCC"; then
3892 if test -n "$ac_tool_prefix"; then
3893 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3899 if test "${ac_cv_prog_CXX+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if test -n "$CXX"; then
3903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 if test -n "$CXX"; then
3924 { echo "$as_me:$LINENO: result: $CXX" >&5
3925 echo "${ECHO_T}$CXX" >&6; }
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3932 test -n "$CXX" && break
3935 if test -z "$CXX"; then
3937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 if test -n "$ac_ct_CXX"; then
3947 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_ac_ct_CXX="$ac_prog"
3957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3967 if test -n "$ac_ct_CXX"; then
3968 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3971 { echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6; }
3976 test -n "$ac_ct_CXX" && break
3979 if test "x$ac_ct_CXX" = x; then
3982 case $cross_compiling:$ac_tool_warned in
3984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3985 whose name does not start with the host triplet. If you think this
3986 configuration is useful to you, please write to autoconf@gnu.org." >&5
3987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3988 whose name does not start with the host triplet. If you think this
3989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3990 ac_tool_warned=yes ;;
3998 # Provide some information about the compiler.
3999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4000 ac_compiler=`set X $ac_compile; echo $2`
4001 { (ac_try="$ac_compiler --version >&5"
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_compiler --version >&5") 2>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }
4011 { (ac_try="$ac_compiler -v >&5"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_compiler -v >&5") 2>&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }
4021 { (ac_try="$ac_compiler -V >&5"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_compiler -V >&5") 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }
4032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4055 rm -f conftest.$ac_objext
4056 if { (ac_try="$ac_compile"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_cxx_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4086 GXX=`test $ac_compiler_gnu = yes && echo yes`
4087 ac_test_CXXFLAGS=${CXXFLAGS+set}
4088 ac_save_CXXFLAGS=$CXXFLAGS
4089 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4090 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4091 if test "${ac_cv_prog_cxx_g+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4095 ac_cxx_werror_flag=yes
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_cxx_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 ac_cv_prog_cxx_g=yes
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4151 rm -f conftest.$ac_objext
4152 if { (ac_try="$ac_compile"
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_cxx_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest.$ac_objext; then
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } && {
4204 test -z "$ac_cxx_werror_flag" ||
4205 test ! -s conftest.err
4206 } && test -s conftest.$ac_objext; then
4207 ac_cv_prog_cxx_g=yes
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4226 if test "$ac_test_CXXFLAGS" = set; then
4227 CXXFLAGS=$ac_save_CXXFLAGS
4228 elif test $ac_cv_prog_cxx_g = yes; then
4229 if test "$GXX" = yes; then
4235 if test "$GXX" = yes; then
4242 ac_cpp='$CPP $CPPFLAGS'
4243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 depcc="$CXX" am_compiler_list=
4249 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4251 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255 # We make a subdir and do the tests there. Otherwise we can end up
4256 # making bogus files that we don't know about and never remove. For
4257 # instance it was reported that on HP-UX the gcc test will end up
4258 # making a dummy file named `D' -- because `-MD' means `put the output
4261 # Copy depcomp to subdir because otherwise we won't find it if we're
4262 # using a relative directory.
4263 cp "$am_depcomp" conftest.dir
4265 # We will build objects and dependencies in a subdirectory because
4266 # it helps to detect inapplicable dependency modes. For instance
4267 # both Tru64's cc and ICC support -MD to output dependencies as a
4268 # side effect of compilation, but ICC will put the dependencies in
4269 # the current directory while Tru64 will put them in the object
4273 am_cv_CXX_dependencies_compiler_type=none
4274 if test "$am_compiler_list" = ""; then
4275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4277 for depmode in $am_compiler_list; do
4278 # Setup a source with many dependencies, because some compilers
4279 # like to wrap large dependency lists on column 80 (with \), and
4280 # we should not choose a depcomp mode which is confused by this.
4282 # We need to recreate these files for each test, as the compiler may
4283 # overwrite some of them when testing with obscure command lines.
4284 # This happens at least with the AIX C compiler.
4286 for i in 1 2 3 4 5 6; do
4287 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4289 # Solaris 8's {/usr,}/bin/sh.
4290 touch sub/conftst$i.h
4292 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4296 # after this tag, mechanisms are not by side-effect, so they'll
4297 # only be used when explicitly requested
4298 if test "x$enable_dependency_tracking" = xyes; then
4306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4307 # mode. It turns out that the SunPro C++ compiler does not properly
4308 # handle `-M -o', and we need to detect this.
4309 if depmode=$depmode \
4310 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4311 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4313 >/dev/null 2>conftest.err &&
4314 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4316 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317 # icc doesn't choke on unknown options, it will just issue warnings
4318 # or remarks (even with -Werror). So we grep stderr for any message
4319 # that says an option was ignored or not supported.
4320 # When given -MP, icc 7.0 and 7.1 complain thusly:
4321 # icc: Command line warning: ignoring option '-M'; no argument required
4322 # The diagnosis changed in icc 8.0:
4323 # icc: Command line remark: option '-MP' not supported
4324 if (grep 'ignoring option' conftest.err ||
4325 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326 am_cv_CXX_dependencies_compiler_type=$depmode
4335 am_cv_CXX_dependencies_compiler_type=none
4339 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4340 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4341 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4346 test "x$enable_dependency_tracking" != xno \
4347 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4348 am__fastdepCXX_TRUE=
4349 am__fastdepCXX_FALSE='#'
4351 am__fastdepCXX_TRUE='#'
4352 am__fastdepCXX_FALSE=
4357 # By default we simply use the C compiler to build assembly code.
4359 test "${CCAS+set}" = set || CCAS=$CC
4360 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4364 ## FIXME: really needed? (AC_LIBTOOL already provides this)
4365 if test -n "$ac_tool_prefix"; then
4366 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4367 set dummy ${ac_tool_prefix}ar; ac_word=$2
4368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4370 if test "${ac_cv_prog_AR+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 if test -n "$AR"; then
4374 ac_cv_prog_AR="$AR" # Let the user override the test.
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_AR="${ac_tool_prefix}ar"
4384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 if test -n "$AR"; then
4395 { echo "$as_me:$LINENO: result: $AR" >&5
4396 echo "${ECHO_T}$AR" >&6; }
4398 { echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6; }
4404 if test -z "$ac_cv_prog_AR"; then
4406 # Extract the first word of "ar", so it can be a program name with args.
4407 set dummy ar; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test -n "$ac_ct_AR"; then
4414 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_ac_ct_AR="ar"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4434 if test -n "$ac_ct_AR"; then
4435 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4436 echo "${ECHO_T}$ac_ct_AR" >&6; }
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4442 if test "x$ac_ct_AR" = x; then
4445 case $cross_compiling:$ac_tool_warned in
4447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4448 whose name does not start with the host triplet. If you think this
4449 configuration is useful to you, please write to autoconf@gnu.org." >&5
4450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4451 whose name does not start with the host triplet. If you think this
4452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4453 ac_tool_warned=yes ;;
4461 if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_RANLIB+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -n "$RANLIB"; then
4470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 RANLIB=$ac_cv_prog_RANLIB
4490 if test -n "$RANLIB"; then
4491 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4492 echo "${ECHO_T}$RANLIB" >&6; }
4494 { echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6; }
4500 if test -z "$ac_cv_prog_RANLIB"; then
4501 ac_ct_RANLIB=$RANLIB
4502 # Extract the first word of "ranlib", so it can be a program name with args.
4503 set dummy ranlib; ac_word=$2
4504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4506 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 if test -n "$ac_ct_RANLIB"; then
4510 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_ac_ct_RANLIB="ranlib"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4530 if test -n "$ac_ct_RANLIB"; then
4531 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4532 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4534 { echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6; }
4538 if test "x$ac_ct_RANLIB" = x; then
4541 case $cross_compiling:$ac_tool_warned in
4543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4544 whose name does not start with the host triplet. If you think this
4545 configuration is useful to you, please write to autoconf@gnu.org." >&5
4546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4547 whose name does not start with the host triplet. If you think this
4548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4549 ac_tool_warned=yes ;;
4551 RANLIB=$ac_ct_RANLIB
4554 RANLIB="$ac_cv_prog_RANLIB"
4558 # Find a good install program. We prefer a C program (faster),
4559 # so one script is as good as another. But avoid the broken or
4560 # incompatible versions:
4561 # SysV /etc/install, /usr/sbin/install
4562 # SunOS /usr/etc/install
4563 # IRIX /sbin/install
4565 # AmigaOS /C/install, which installs bootblocks on floppy discs
4566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4569 # OS/2's system install, which has a completely different semantic
4570 # ./install, which can be erroneously created by make from ./install.sh.
4571 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4572 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4573 if test -z "$INSTALL"; then
4574 if test "${ac_cv_path_install+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 # Account for people who put trailing slashes in PATH elements.
4584 ./ | .// | /cC/* | \
4585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4586 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4589 # OSF1 and SCO ODT 3.0 have their own names for install.
4590 # Don't use installbsd from OSF since it installs stuff as root
4592 for ac_prog in ginstall scoinst install; do
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4595 if test $ac_prog = install &&
4596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4597 # AIX install. It has an incompatible calling convention.
4599 elif test $ac_prog = install &&
4600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4601 # program-specific install script used by HP pwplus--don't use.
4604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4617 if test "${ac_cv_path_install+set}" = set; then
4618 INSTALL=$ac_cv_path_install
4620 # As a last resort, use the slow shell script. Don't cache a
4621 # value for INSTALL within a source directory, because that will
4622 # break other packages using the cache if that directory is
4623 # removed, or if the value is a relative name.
4624 INSTALL=$ac_install_sh
4627 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4628 echo "${ECHO_T}$INSTALL" >&6; }
4630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4631 # It thinks the first close brace ends the variable substitution.
4632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4636 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4639 . ${srcdir}/configure.host
4641 GC_CFLAGS=${gc_cflags}
4644 # Check whether --enable-threads was given.
4645 if test "${enable_threads+set}" = set; then
4646 enableval=$enable_threads; THREADS=$enableval
4648 { echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
4649 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6; }
4650 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4651 if test -z "$THREADS"; then
4654 { echo "$as_me:$LINENO: result: $THREADS" >&5
4655 echo "${ECHO_T}$THREADS" >&6; }
4659 # Check whether --enable-parallel-mark was given.
4660 if test "${enable_parallel_mark+set}" = set; then
4661 enableval=$enable_parallel_mark; case "$THREADS" in
4663 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
4664 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
4665 { (exit 1); exit 1; }; }
4672 # Check whether --enable-cplusplus was given.
4673 if test "${enable_cplusplus+set}" = set; then
4674 enableval=$enable_cplusplus;
4678 INCLUDES=-I${srcdir}/include
4680 need_atomic_ops_asm=false
4681 ## Libraries needed to support dynamic loading and/or threads.
4688 THREADDLLIBS=-lpthread
4690 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux* | sparc*-*-linux*)
4691 cat >>confdefs.h <<\_ACEOF
4692 #define GC_LINUX_THREADS 1
4695 cat >>confdefs.h <<\_ACEOF
4696 #define _REENTRANT 1
4699 if test "${enable_parallel_mark}" = yes; then
4700 cat >>confdefs.h <<\_ACEOF
4701 #define PARALLEL_MARK 1
4705 cat >>confdefs.h <<\_ACEOF
4706 #define THREAD_LOCAL_ALLOC 1
4709 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4710 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4713 cat >>confdefs.h <<\_ACEOF
4714 #define GC_LINUX_THREADS 1
4717 cat >>confdefs.h <<\_ACEOF
4718 #define _REENTRANT 1
4723 cat >>confdefs.h <<\_ACEOF
4724 #define GC_AIX_THREADS 1
4727 cat >>confdefs.h <<\_ACEOF
4728 #define _REENTRANT 1
4733 { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
4734 echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
4735 cat >>confdefs.h <<\_ACEOF
4736 #define GC_HPUX_THREADS 1
4739 cat >>confdefs.h <<\_ACEOF
4740 #define _POSIX_C_SOURCE 199506L
4743 if test "${enable_parallel_mark}" = yes; then
4744 cat >>confdefs.h <<\_ACEOF
4745 #define PARALLEL_MARK 1
4749 cat >>confdefs.h <<\_ACEOF
4750 #define THREAD_LOCAL_ALLOC 1
4753 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4754 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4755 THREADDLLIBS="-lpthread -lrt"
4756 # HPUX needs REENTRANT for the _r calls.
4758 cat >>confdefs.h <<\_ACEOF
4759 #define _REENTRANT 1
4764 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
4765 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
4769 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
4770 cat >>confdefs.h <<\_ACEOF
4771 #define GC_FREEBSD_THREADS 1
4774 INCLUDES="$INCLUDES -pthread"
4777 cat >>confdefs.h <<\_ACEOF
4778 #define GC_FREEBSD_THREADS 1
4781 INCLUDES="$INCLUDES -pthread"
4782 THREADDLLIBS=-pthread
4783 cat >>confdefs.h <<\_ACEOF
4784 #define _REENTRANT 1
4787 if test "${enable_parallel_mark}" = yes; then
4788 cat >>confdefs.h <<\_ACEOF
4789 #define PARALLEL_MARK 1
4793 cat >>confdefs.h <<\_ACEOF
4794 #define THREAD_LOCAL_ALLOC 1
4797 cat >>confdefs.h <<\_ACEOF
4798 #define USE_COMPILER_TLS 1
4803 cat >>confdefs.h <<\_ACEOF
4804 #define GC_GNU_THREADS 1
4807 cat >>confdefs.h <<\_ACEOF
4808 #define _REENTRANT 1
4811 cat >>confdefs.h <<\_ACEOF
4812 #define THREAD_LOCAL_ALLOC 1
4817 { echo "$as_me:$LINENO: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
4818 echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
4819 cat >>confdefs.h <<\_ACEOF
4820 #define GC_NETBSD_THREADS 1
4823 cat >>confdefs.h <<\_ACEOF
4824 #define _REENTRANT 1
4827 cat >>confdefs.h <<\_ACEOF
4831 THREADDLLIBS="-lpthread -lrt"
4834 cat >>confdefs.h <<\_ACEOF
4835 #define GC_SOLARIS_THREADS 1
4838 cat >>confdefs.h <<\_ACEOF
4839 #define THREAD_LOCAL_ALLOC 1
4842 THREADDLLIBS="-lpthread -lrt"
4843 if test "$GCC" != yes; then
4845 need_atomic_ops_asm=true
4849 cat >>confdefs.h <<\_ACEOF
4850 #define GC_IRIX_THREADS 1
4855 cat >>confdefs.h <<\_ACEOF
4856 #define GC_WIN32_THREADS 1
4859 cat >>confdefs.h <<\_ACEOF
4860 #define THREAD_LOCAL_ALLOC 1
4866 cat >>confdefs.h <<\_ACEOF
4867 #define GC_DARWIN_THREADS 1
4870 cat >>confdefs.h <<\_ACEOF
4871 #define THREAD_LOCAL_ALLOC 1
4874 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4875 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4876 # Parallel-mark is currently unreliable on Darwin; ignore request
4877 # if test "${enable_parallel_mark}" = yes; then
4878 # AC_DEFINE(PARALLEL_MARK)
4883 cat >>confdefs.h <<\_ACEOF
4884 #define GC_OSF1_THREADS 1
4887 if test "${enable_parallel_mark}" = yes; then
4888 cat >>confdefs.h <<\_ACEOF
4889 #define PARALLEL_MARK 1
4892 cat >>confdefs.h <<\_ACEOF
4893 #define THREAD_LOCAL_ALLOC 1
4896 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4897 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4898 # May want to enable it in other cases, too.
4899 # Measurements havent yet been done.
4901 INCLUDES="$INCLUDES -pthread"
4902 THREADDLLIBS="-lpthread -lrt"
4905 { { echo "$as_me:$LINENO: error: \"Pthreads not supported by the GC on this platform.\"" >&5
4906 echo "$as_me: error: \"Pthreads not supported by the GC on this platform.\"" >&2;}
4907 { (exit 1); exit 1; }; }
4912 cat >>confdefs.h <<\_ACEOF
4913 #define GC_WIN32_THREADS 1
4917 cat >>confdefs.h <<\_ACEOF
4924 { echo "$as_me:$LINENO: result: $THREADDLLIBS" >&5
4925 echo "${ECHO_T}$THREADDLLIBS" >&6; }
4926 # Use pthread GCC switch
4927 THREADDLLIBS=-pthread
4928 if test "${enable_parallel_mark}" = yes; then
4929 cat >>confdefs.h <<\_ACEOF
4930 #define PARALLEL_MARK 1
4934 cat >>confdefs.h <<\_ACEOF
4935 #define THREAD_LOCAL_ALLOC 1
4938 { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
4939 echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
4940 cat >>confdefs.h <<\_ACEOF
4941 #define GC_DGUX386_THREADS 1
4944 cat >>confdefs.h <<\_ACEOF
4945 #define DGUX_THREADS 1
4948 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
4949 INCLUDES="-pthread $INCLUDES"
4953 THREADDLLIBS=-lpthread
4954 cat >>confdefs.h <<\_ACEOF
4955 #define GC_AIX_THREADS 1
4958 cat >>confdefs.h <<\_ACEOF
4959 #define _REENTRANT 1
4963 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4964 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
4965 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
4966 { (exit 1); exit 1; }; }
4969 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
4970 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
4971 { (exit 1); exit 1; }; }
4977 if test x$THREADS != xnone; then
4987 if test x$THREADS = xposix; then
4997 if test x$darwin_threads = xtrue; then
4998 DARWIN_THREADS_TRUE=
4999 DARWIN_THREADS_FALSE='#'
5001 DARWIN_THREADS_TRUE='#'
5002 DARWIN_THREADS_FALSE=
5007 if test x$win32_threads = xtrue; then
5009 WIN32_THREADS_FALSE='#'
5011 WIN32_THREADS_TRUE='#'
5012 WIN32_THREADS_FALSE=
5022 # Darwin needs a few extra special tests to deal with variation in the
5027 { echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
5028 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6; }
5029 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 cat >conftest.$ac_ext <<_ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 #include <mach/thread_status.h>
5043 static ppc_thread_state_t ac_aggr;
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_compile") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest.$ac_objext; then
5067 ac_cv_member_ppc_thread_state_t_r0=yes
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <mach/thread_status.h>
5083 static ppc_thread_state_t ac_aggr;
5084 if (sizeof ac_aggr.r0)
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_compile") 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && {
5104 test -z "$ac_c_werror_flag" ||
5105 test ! -s conftest.err
5106 } && test -s conftest.$ac_objext; then
5107 ac_cv_member_ppc_thread_state_t_r0=yes
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 ac_cv_member_ppc_thread_state_t_r0=no
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
5121 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6; }
5122 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
5124 cat >>confdefs.h <<\_ACEOF
5125 #define HAS_PPC_THREAD_STATE_R0 1
5130 { echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
5131 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6; }
5132 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 #include <mach/thread_status.h>
5146 static ppc_thread_state_t ac_aggr;
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_compile") 2>conftest.er1
5162 grep -v '^ *+' conftest.er1 >conftest.err
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } && {
5167 test -z "$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5169 } && test -s conftest.$ac_objext; then
5170 ac_cv_member_ppc_thread_state_t___r0=yes
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5175 cat >conftest.$ac_ext <<_ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 #include <mach/thread_status.h>
5186 static ppc_thread_state_t ac_aggr;
5187 if (sizeof ac_aggr.__r0)
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
5210 ac_cv_member_ppc_thread_state_t___r0=yes
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_cv_member_ppc_thread_state_t___r0=no
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
5224 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6; }
5225 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
5227 cat >>confdefs.h <<\_ACEOF
5228 #define HAS_PPC_THREAD_STATE___R0 1
5233 { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
5234 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6; }
5235 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <mach/thread_status.h>
5249 static ppc_thread_state64_t ac_aggr;
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_compile") 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } && {
5270 test -z "$ac_c_werror_flag" ||
5271 test ! -s conftest.err
5272 } && test -s conftest.$ac_objext; then
5273 ac_cv_member_ppc_thread_state64_t_r0=yes
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <mach/thread_status.h>
5289 static ppc_thread_state64_t ac_aggr;
5290 if (sizeof ac_aggr.r0)
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compile") 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } && {
5310 test -z "$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 } && test -s conftest.$ac_objext; then
5313 ac_cv_member_ppc_thread_state64_t_r0=yes
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_member_ppc_thread_state64_t_r0=no
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
5327 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6; }
5328 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
5330 cat >>confdefs.h <<\_ACEOF
5331 #define HAS_PPC_THREAD_STATE64_R0 1
5336 { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
5337 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6; }
5338 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 cat >conftest.$ac_ext <<_ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <mach/thread_status.h>
5352 static ppc_thread_state64_t ac_aggr;
5359 rm -f conftest.$ac_objext
5360 if { (ac_try="$ac_compile"
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_compile") 2>conftest.er1
5368 grep -v '^ *+' conftest.er1 >conftest.err
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && {
5373 test -z "$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5375 } && test -s conftest.$ac_objext; then
5376 ac_cv_member_ppc_thread_state64_t___r0=yes
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <mach/thread_status.h>
5392 static ppc_thread_state64_t ac_aggr;
5393 if (sizeof ac_aggr.__r0)
5399 rm -f conftest.$ac_objext
5400 if { (ac_try="$ac_compile"
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_compile") 2>conftest.er1
5408 grep -v '^ *+' conftest.er1 >conftest.err
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } && {
5413 test -z "$ac_c_werror_flag" ||
5414 test ! -s conftest.err
5415 } && test -s conftest.$ac_objext; then
5416 ac_cv_member_ppc_thread_state64_t___r0=yes
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5421 ac_cv_member_ppc_thread_state64_t___r0=no
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
5430 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6; }
5431 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
5433 cat >>confdefs.h <<\_ACEOF
5434 #define HAS_PPC_THREAD_STATE64___R0 1
5441 { echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
5442 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6; }
5443 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <sys/cdefs.h>
5453 #include <mach/thread_status.h>
5458 static x86_thread_state32_t ac_aggr;
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5474 grep -v '^ *+' conftest.er1 >conftest.err
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_c_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_cv_member_x86_thread_state32_t_eax=yes
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 cat >conftest.$ac_ext <<_ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 #include <sys/cdefs.h>
5494 #include <mach/thread_status.h>
5499 static x86_thread_state32_t ac_aggr;
5500 if (sizeof ac_aggr.eax)
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest.$ac_objext; then
5523 ac_cv_member_x86_thread_state32_t_eax=yes
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5528 ac_cv_member_x86_thread_state32_t_eax=no
5531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
5537 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6; }
5538 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
5540 cat >>confdefs.h <<\_ACEOF
5541 #define HAS_X86_THREAD_STATE32_EAX 1
5546 { echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
5547 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6; }
5548 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 cat >conftest.$ac_ext <<_ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 #include <sys/cdefs.h>
5558 #include <mach/thread_status.h>
5563 static x86_thread_state32_t ac_aggr;
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_cv_member_x86_thread_state32_t___eax=yes
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5592 cat >conftest.$ac_ext <<_ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 #include <sys/cdefs.h>
5599 #include <mach/thread_status.h>
5604 static x86_thread_state32_t ac_aggr;
5605 if (sizeof ac_aggr.__eax)
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5628 ac_cv_member_x86_thread_state32_t___eax=yes
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ac_cv_member_x86_thread_state32_t___eax=no
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
5642 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6; }
5643 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
5645 cat >>confdefs.h <<\_ACEOF
5646 #define HAS_X86_THREAD_STATE32___EAX 1
5653 { echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
5654 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6; }
5655 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <sys/cdefs.h>
5665 #include <mach/thread_status.h>
5670 static x86_thread_state64_t ac_aggr;
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5686 grep -v '^ *+' conftest.er1 >conftest.err
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest.$ac_objext; then
5694 ac_cv_member_x86_thread_state64_t_rax=yes
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5699 cat >conftest.$ac_ext <<_ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <sys/cdefs.h>
5706 #include <mach/thread_status.h>
5711 static x86_thread_state64_t ac_aggr;
5712 if (sizeof ac_aggr.rax)
5718 rm -f conftest.$ac_objext
5719 if { (ac_try="$ac_compile"
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.$ac_objext; then
5735 ac_cv_member_x86_thread_state64_t_rax=yes
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 ac_cv_member_x86_thread_state64_t_rax=no
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
5749 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6; }
5750 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
5752 cat >>confdefs.h <<\_ACEOF
5753 #define HAS_X86_THREAD_STATE64_RAX 1
5758 { echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
5759 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6; }
5760 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #include <sys/cdefs.h>
5770 #include <mach/thread_status.h>
5775 static x86_thread_state64_t ac_aggr;
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5791 grep -v '^ *+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5799 ac_cv_member_x86_thread_state64_t___rax=yes
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 cat >conftest.$ac_ext <<_ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <sys/cdefs.h>
5811 #include <mach/thread_status.h>
5816 static x86_thread_state64_t ac_aggr;
5817 if (sizeof ac_aggr.__rax)
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } && {
5837 test -z "$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 } && test -s conftest.$ac_objext; then
5840 ac_cv_member_x86_thread_state64_t___rax=yes
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5845 ac_cv_member_x86_thread_state64_t___rax=no
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
5854 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6; }
5855 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
5857 cat >>confdefs.h <<\_ACEOF
5858 #define HAS_X86_THREAD_STATE64___RAX 1
5867 { echo "$as_me:$LINENO: checking for xlc" >&5
5868 echo $ECHO_N "checking for xlc... $ECHO_C" >&6; }
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5897 grep -v '^ *+' conftest.er1 >conftest.err
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.$ac_objext; then
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 { echo "$as_me:$LINENO: result: $compiler_xlc" >&5
5915 echo "${ECHO_T}$compiler_xlc" >&6; }
5918 if test $compiler_xlc = yes; then
5920 COMPILER_XLC_FALSE='#'
5922 COMPILER_XLC_TRUE='#'
5926 if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
5927 # the darwin stack-frame-walking code is completely broken on xlc
5928 cat >>confdefs.h <<\_ACEOF
5929 #define DARWIN_DONT_PARSE_STACK 1
5934 # We never want libdl on darwin. It is a fake libdl that just ends up making
5939 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5940 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 ac_check_lib_save_LIBS=$LIBS
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5953 /* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
5955 builtin and then its argument prototype would still apply. */
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (ac_try="$ac_link"
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_link") 2>conftest.er1
5977 grep -v '^ *+' conftest.er1 >conftest.err
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_c_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest$ac_exeext &&
5985 $as_test_x conftest$ac_exeext; then
5986 ac_cv_lib_dl_dlopen=yes
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cv_lib_dl_dlopen=no
5994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5995 conftest$ac_exeext conftest.$ac_ext
5996 LIBS=$ac_check_lib_save_LIBS
5998 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5999 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
6000 if test $ac_cv_lib_dl_dlopen = yes; then
6001 THREADDLLIBS="$THREADDLLIBS -ldl"
6016 if test $avoid_cpp_lib = yes; then
6018 AVOID_CPP_LIB_FALSE='#'
6020 AVOID_CPP_LIB_TRUE='#'
6021 AVOID_CPP_LIB_FALSE=
6025 # extra LD Flags which are required for targets
6028 extra_ldflags_libgc=-Wl,-single_module
6040 # Check whether --with-ecos was given.
6041 if test "${with_ecos+set}" = set; then
6042 withval=$with_ecos; TARGET_ECOS="$with_ecos"
6050 case "$TARGET_ECOS" in
6054 cat >>confdefs.h <<\_ACEOF
6058 CXXINCLUDES="-I${TARGET_ECOS}/include"
6059 addobjs="$addobjs ecos.lo"
6065 if test "${enable_cplusplus}" = yes; then
6079 # Configuration of shared libraries
6081 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6082 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
6083 # Check whether --enable-shared was given.
6084 if test "${enable_shared+set}" = set; then
6085 enableval=$enable_shared; p=${PACKAGE-default}
6087 yes) enable_shared=yes ;;
6088 no) enable_shared=no ;;
6091 # Look at the argument we got. We use all the common list separators.
6092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6093 for pkg in $enableval; do
6095 if test "X$pkg" = "X$p"; then
6116 { echo "$as_me:$LINENO: result: $enable_shared" >&5
6117 echo "${ECHO_T}$enable_shared" >&6; }
6119 # Configuration of machine-dependent code
6121 { echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
6122 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6; }
6126 machdep="mach_dep.lo"
6127 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
6128 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
6129 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
6133 machdep="mach_dep.lo"
6135 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
6136 cat >>confdefs.h <<\_ACEOF
6137 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
6142 machdep="mach_dep.lo"
6143 cat >>confdefs.h <<\_ACEOF
6144 #define STACKBASE __stackbase
6147 cat >>confdefs.h <<\_ACEOF
6148 #define DATASTART_IS_ETEXT 1
6153 machdep="mach-dep.lo"
6155 mips-nec-sysv*|mips-unknown-sysv*)
6160 machdep="mach_dep.lo"
6163 machdep="mach_dep.lo sparc_mach_dep.lo"
6166 machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
6169 machdep="mach_dep.lo sparc_mach_dep.lo"
6171 sparc-sun-solaris2.3)
6172 machdep="mach_dep.lo sparc_mach_dep.lo"
6173 cat >>confdefs.h <<\_ACEOF
6174 #define SUNOS53_SHARED_LIB 1
6178 sparc*-sun-solaris2*)
6179 machdep="mach_dep.lo sparc_mach_dep.lo"
6182 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
6185 if test x"$machdep" = x; then
6186 { echo "$as_me:$LINENO: result: $machdep" >&5
6187 echo "${ECHO_T}$machdep" >&6; }
6188 machdep="mach_dep.lo"
6190 addobjs="$addobjs $machdep"
6194 # Check whether --enable-static was given.
6195 if test "${enable_static+set}" = set; then
6196 enableval=$enable_static; p=${PACKAGE-default}
6198 yes) enable_static=yes ;;
6199 no) enable_static=no ;;
6202 # Look at the argument we got. We use all the common list separators.
6203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6204 for pkg in $enableval; do
6206 if test "X$pkg" = "X$p"; then
6218 # Check whether --enable-fast-install was given.
6219 if test "${enable_fast_install+set}" = set; then
6220 enableval=$enable_fast_install; p=${PACKAGE-default}
6222 yes) enable_fast_install=yes ;;
6223 no) enable_fast_install=no ;;
6225 enable_fast_install=no
6226 # Look at the argument we got. We use all the common list separators.
6227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6228 for pkg in $enableval; do
6230 if test "X$pkg" = "X$p"; then
6231 enable_fast_install=yes
6238 enable_fast_install=yes
6242 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6243 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6244 if test "${lt_cv_path_SED+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 # Loop through the user's path and test for sed and gsed.
6248 # Then use that list of sed's as ones to test for truncation.
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 test -z "$as_dir" && as_dir=.
6254 for lt_ac_prog in sed gsed; do
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6257 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6264 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6265 # along with /bin/sed that truncates output.
6266 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6267 test ! -f $lt_ac_sed && continue
6268 cat /dev/null > conftest.in
6270 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6271 # Check for GNU sed and select it if it is found.
6272 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6273 lt_cv_path_SED=$lt_ac_sed
6277 cat conftest.in conftest.in >conftest.tmp
6278 mv conftest.tmp conftest.in
6279 cp conftest.in conftest.nl
6281 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6282 cmp -s conftest.out conftest.nl || break
6283 # 10000 chars as input seems more than enough
6284 test $lt_ac_count -gt 10 && break
6285 lt_ac_count=`expr $lt_ac_count + 1`
6286 if test $lt_ac_count -gt $lt_ac_max; then
6287 lt_ac_max=$lt_ac_count
6288 lt_cv_path_SED=$lt_ac_sed
6296 { echo "$as_me:$LINENO: result: $SED" >&5
6297 echo "${ECHO_T}$SED" >&6; }
6299 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6300 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6301 if test "${ac_cv_path_GREP+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 # Extract the first word of "grep ggrep" to use in msg output
6305 if test -z "$GREP"; then
6306 set dummy grep ggrep; ac_prog_name=$2
6307 if test "${ac_cv_path_GREP+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_path_GREP_found=false
6311 # Loop through the user's path and test for each of PROGNAME-LIST
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6316 test -z "$as_dir" && as_dir=.
6317 for ac_prog in grep ggrep; do
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6320 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6321 # Check for GNU ac_path_GREP and select it if it is found.
6322 # Check for GNU $ac_path_GREP
6323 case `"$ac_path_GREP" --version 2>&1` in
6325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6328 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6331 cat "conftest.in" "conftest.in" >"conftest.tmp"
6332 mv "conftest.tmp" "conftest.in"
6333 cp "conftest.in" "conftest.nl"
6334 echo 'GREP' >> "conftest.nl"
6335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6337 ac_count=`expr $ac_count + 1`
6338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6339 # Best one so far, save it but keep looking for a better one
6340 ac_cv_path_GREP="$ac_path_GREP"
6341 ac_path_GREP_max=$ac_count
6343 # 10*(2^10) chars as input seems more than enough
6344 test $ac_count -gt 10 && break
6346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6350 $ac_path_GREP_found && break 3
6360 GREP="$ac_cv_path_GREP"
6361 if test -z "$GREP"; then
6362 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6363 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6364 { (exit 1); exit 1; }; }
6368 ac_cv_path_GREP=$GREP
6373 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6374 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6375 GREP="$ac_cv_path_GREP"
6378 { echo "$as_me:$LINENO: checking for egrep" >&5
6379 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6380 if test "${ac_cv_path_EGREP+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6384 then ac_cv_path_EGREP="$GREP -E"
6386 # Extract the first word of "egrep" to use in msg output
6387 if test -z "$EGREP"; then
6388 set dummy egrep; ac_prog_name=$2
6389 if test "${ac_cv_path_EGREP+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 ac_path_EGREP_found=false
6393 # Loop through the user's path and test for each of PROGNAME-LIST
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6398 test -z "$as_dir" && as_dir=.
6399 for ac_prog in egrep; do
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6403 # Check for GNU ac_path_EGREP and select it if it is found.
6404 # Check for GNU $ac_path_EGREP
6405 case `"$ac_path_EGREP" --version 2>&1` in
6407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6410 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6413 cat "conftest.in" "conftest.in" >"conftest.tmp"
6414 mv "conftest.tmp" "conftest.in"
6415 cp "conftest.in" "conftest.nl"
6416 echo 'EGREP' >> "conftest.nl"
6417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6419 ac_count=`expr $ac_count + 1`
6420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6421 # Best one so far, save it but keep looking for a better one
6422 ac_cv_path_EGREP="$ac_path_EGREP"
6423 ac_path_EGREP_max=$ac_count
6425 # 10*(2^10) chars as input seems more than enough
6426 test $ac_count -gt 10 && break
6428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6432 $ac_path_EGREP_found && break 3
6442 EGREP="$ac_cv_path_EGREP"
6443 if test -z "$EGREP"; then
6444 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6446 { (exit 1); exit 1; }; }
6450 ac_cv_path_EGREP=$EGREP
6456 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6457 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6458 EGREP="$ac_cv_path_EGREP"
6462 # Check whether --with-gnu-ld was given.
6463 if test "${with_gnu_ld+set}" = set; then
6464 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6470 if test "$GCC" = yes; then
6471 # Check if gcc -print-prog-name=ld gives a path.
6472 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6476 # gcc leaves a trailing carriage return which upsets mingw
6477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6482 # Accept absolute paths.
6484 re_direlt='/[^/][^/]*/\.\./'
6485 # Canonicalize the pathname of ld
6486 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6488 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6490 test -z "$LD" && LD="$ac_prog"
6493 # If it fails, then pretend we aren't using GCC.
6497 # If it is relative, then search for the first ld in PATH.
6501 elif test "$with_gnu_ld" = yes; then
6502 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6505 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6508 if test "${lt_cv_path_LD+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 if test -z "$LD"; then
6512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6513 for ac_dir in $PATH; do
6515 test -z "$ac_dir" && ac_dir=.
6516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6517 lt_cv_path_LD="$ac_dir/$ac_prog"
6518 # Check to see if the program is GNU ld. I'd rather use --version,
6519 # but apparently some variants of GNU ld only accept -v.
6520 # Break only if it was the GNU/non-GNU ld that we prefer.
6521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6522 *GNU* | *'with BFD'*)
6523 test "$with_gnu_ld" != no && break
6526 test "$with_gnu_ld" != yes && break
6533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6538 if test -n "$LD"; then
6539 { echo "$as_me:$LINENO: result: $LD" >&5
6540 echo "${ECHO_T}$LD" >&6; }
6542 { echo "$as_me:$LINENO: result: no" >&5
6543 echo "${ECHO_T}no" >&6; }
6545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6547 { (exit 1); exit 1; }; }
6548 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6554 case `$LD -v 2>&1 </dev/null` in
6555 *GNU* | *'with BFD'*)
6556 lt_cv_prog_gnu_ld=yes
6559 lt_cv_prog_gnu_ld=no
6563 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6565 with_gnu_ld=$lt_cv_prog_gnu_ld
6568 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6569 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6570 if test "${lt_cv_ld_reload_flag+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 lt_cv_ld_reload_flag='-r'
6575 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6576 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6577 reload_flag=$lt_cv_ld_reload_flag
6578 case $reload_flag in
6580 *) reload_flag=" $reload_flag" ;;
6582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6585 if test "$GCC" = yes; then
6586 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6588 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6593 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6594 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6595 if test "${lt_cv_path_NM+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 if test -n "$NM"; then
6599 # Let the user override the test.
6602 lt_nm_to_check="${ac_tool_prefix}nm"
6603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6604 lt_nm_to_check="$lt_nm_to_check nm"
6606 for lt_tmp_nm in $lt_nm_to_check; do
6607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6610 test -z "$ac_dir" && ac_dir=.
6611 tmp_nm="$ac_dir/$lt_tmp_nm"
6612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6613 # Check to see if the nm accepts a BSD-compat flag.
6614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6615 # nm: unknown option "B" ignored
6616 # Tru64's nm complains that /dev/null is an invalid object file
6617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6618 */dev/null* | *'Invalid file or object type'*)
6619 lt_cv_path_NM="$tmp_nm -B"
6623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6625 lt_cv_path_NM="$tmp_nm -p"
6629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6630 continue # so that we can try to find one that supports BSD flags
6639 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6642 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6643 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6646 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6649 if test "$LN_S" = "ln -s"; then
6650 { echo "$as_me:$LINENO: result: yes" >&5
6651 echo "${ECHO_T}yes" >&6; }
6653 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6654 echo "${ECHO_T}no, using $LN_S" >&6; }
6657 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6658 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6659 if test "${lt_cv_deplibs_check_method+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 lt_cv_file_magic_cmd='$MAGIC_CMD'
6663 lt_cv_file_magic_test_file=
6664 lt_cv_deplibs_check_method='unknown'
6665 # Need to set the preceding variable on all platforms that support
6666 # interlibrary dependencies.
6667 # 'none' -- dependencies not supported.
6668 # `unknown' -- same as none, but documents that we really don't know.
6669 # 'pass_all' -- all dependencies passed with no checks.
6670 # 'test_compile' -- check by making test program.
6671 # 'file_magic [[regex]]' -- check by looking for files in library path
6672 # which responds to the $file_magic_cmd with a given extended regex.
6673 # If you have `file' or equivalent on your system and you're not sure
6674 # whether `pass_all' will *always* work, you probably want this one.
6678 lt_cv_deplibs_check_method=pass_all
6682 lt_cv_deplibs_check_method=pass_all
6686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6687 lt_cv_file_magic_cmd='/usr/bin/file -L'
6688 lt_cv_file_magic_test_file=/shlib/libc.so
6692 # func_win32_libid is a shell function defined in ltmain.sh
6693 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6694 lt_cv_file_magic_cmd='func_win32_libid'
6698 # Base MSYS/MinGW do not provide the 'file' command needed by
6699 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6700 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6701 lt_cv_file_magic_cmd='$OBJDUMP -f'
6704 darwin* | rhapsody*)
6705 lt_cv_deplibs_check_method=pass_all
6708 freebsd* | kfreebsd*-gnu | dragonfly*)
6709 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6712 # Not sure whether the presence of OpenBSD here was a mistake.
6713 # Let's accept both of them until this is cleared up.
6714 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6715 lt_cv_file_magic_cmd=/usr/bin/file
6716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6720 lt_cv_deplibs_check_method=pass_all
6725 lt_cv_deplibs_check_method=pass_all
6728 hpux10.20* | hpux11*)
6729 lt_cv_file_magic_cmd=/usr/bin/file
6732 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6733 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6736 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]'
6737 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6740 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6741 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6747 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6751 irix5* | irix6* | nonstopux*)
6753 *-32|*"-32 ") libmagic=32-bit;;
6754 *-n32|*"-n32 ") libmagic=N32;;
6755 *-64|*"-64 ") libmagic=64-bit;;
6756 *) libmagic=never-match;;
6758 lt_cv_deplibs_check_method=pass_all
6761 # This must be Linux ELF.
6763 lt_cv_deplibs_check_method=pass_all
6767 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6776 lt_cv_file_magic_cmd=/usr/bin/file
6777 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6781 lt_cv_deplibs_check_method=unknown
6785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6792 osf3* | osf4* | osf5*)
6793 lt_cv_deplibs_check_method=pass_all
6797 lt_cv_deplibs_check_method=pass_all
6801 case $host_vendor in
6803 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]'
6804 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6807 lt_cv_deplibs_check_method=pass_all
6810 lt_cv_file_magic_cmd='/bin/file'
6811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6814 lt_cv_file_magic_cmd='/bin/file'
6815 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6816 lt_cv_file_magic_test_file=/lib/libc.so
6819 lt_cv_deplibs_check_method=pass_all
6822 lt_cv_deplibs_check_method=pass_all
6827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6828 lt_cv_deplibs_check_method=pass_all
6833 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6834 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6835 file_magic_cmd=$lt_cv_file_magic_cmd
6836 deplibs_check_method=$lt_cv_deplibs_check_method
6837 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6842 # If no C compiler was specified, use CC.
6845 # If no C compiler flags were specified, use CFLAGS.
6846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6848 # Allow CC to be a program name with arguments.
6851 # Check whether --enable-libtool-lock was given.
6852 if test "${enable_libtool_lock+set}" = set; then
6853 enableval=$enable_libtool_lock;
6856 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6858 # Some flags need to be propagated to the compiler or linker for good
6862 # Find out which ABI we are using.
6863 echo 'int i;' > conftest.$ac_ext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6865 (eval $ac_compile) 2>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; then
6869 case `/usr/bin/file conftest.$ac_objext` in
6881 # Find out which ABI we are using.
6882 echo '#line 6882 "configure"' > conftest.$ac_ext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884 (eval $ac_compile) 2>&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; then
6888 if test "$lt_cv_prog_gnu_ld" = yes; then
6889 case `/usr/bin/file conftest.$ac_objext` in
6891 LD="${LD-ld} -melf32bsmip"
6894 LD="${LD-ld} -melf32bmipn32"
6897 LD="${LD-ld} -melf64bmip"
6901 case `/usr/bin/file conftest.$ac_objext` in
6917 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6918 # Find out which ABI we are using.
6919 echo 'int i;' > conftest.$ac_ext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; then
6925 case `/usr/bin/file conftest.o` in
6929 LD="${LD-ld} -m elf_i386"
6931 ppc64-*linux*|powerpc64-*linux*)
6932 LD="${LD-ld} -m elf32ppclinux"
6935 LD="${LD-ld} -m elf_s390"
6938 LD="${LD-ld} -m elf32_sparc"
6945 LD="${LD-ld} -m elf_x86_64"
6947 ppc*-*linux*|powerpc*-*linux*)
6948 LD="${LD-ld} -m elf64ppc"
6951 LD="${LD-ld} -m elf64_s390"
6954 LD="${LD-ld} -m elf64_sparc"
6964 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6965 SAVE_CFLAGS="$CFLAGS"
6966 CFLAGS="$CFLAGS -belf"
6967 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6968 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6969 if test "${lt_cv_cc_needs_belf+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 ac_cpp='$CPP $CPPFLAGS'
6974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (ac_try="$ac_link"
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_link") 2>conftest.er1
7002 grep -v '^ *+' conftest.er1 >conftest.err
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest$ac_exeext &&
7010 $as_test_x conftest$ac_exeext; then
7011 lt_cv_cc_needs_belf=yes
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 lt_cv_cc_needs_belf=no
7019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7020 conftest$ac_exeext conftest.$ac_ext
7022 ac_cpp='$CPP $CPPFLAGS'
7023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7028 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7029 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7030 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7031 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7032 CFLAGS="$SAVE_CFLAGS"
7036 # Find out which ABI we are using.
7037 echo 'int i;' > conftest.$ac_ext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039 (eval $ac_compile) 2>&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; then
7043 case `/usr/bin/file conftest.o` in
7045 case $lt_cv_prog_gnu_ld in
7046 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7047 *) LD="${LD-ld} -64" ;;
7058 need_locks="$enable_libtool_lock"
7062 ac_cpp='$CPP $CPPFLAGS'
7063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7067 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7068 # On Suns, sometimes $CPP names a directory.
7069 if test -n "$CPP" && test -d "$CPP"; then
7072 if test -z "$CPP"; then
7073 if test "${ac_cv_prog_CPP+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 # Double quotes because CPP needs to be expanded
7077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7080 for ac_c_preproc_warn_flag in '' yes
7082 # Use a header file that comes with gcc, so configuring glibc
7083 # with a fresh cross-compiler works.
7084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7085 # <limits.h> exists even on freestanding compilers.
7086 # On the NeXT, cc -E runs the code through the compiler's parser,
7087 # not just through cpp. "Syntax error" is here to catch this case.
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 # include <limits.h>
7097 # include <assert.h>
7101 if { (ac_try="$ac_cpp conftest.$ac_ext"
7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } >/dev/null && {
7114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 # Broken: fails on valid input.
7126 rm -f conftest.err conftest.$ac_ext
7128 # OK, works on sane cases. Now check whether nonexistent headers
7129 # can be detected and how.
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <ac_nonexistent.h>
7138 if { (ac_try="$ac_cpp conftest.$ac_ext"
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7146 grep -v '^ *+' conftest.er1 >conftest.err
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } >/dev/null && {
7151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7154 # Broken: success on invalid input.
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7160 # Passes both tests.
7165 rm -f conftest.err conftest.$ac_ext
7168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7169 rm -f conftest.err conftest.$ac_ext
7170 if $ac_preproc_ok; then
7182 { echo "$as_me:$LINENO: result: $CPP" >&5
7183 echo "${ECHO_T}$CPP" >&6; }
7185 for ac_c_preproc_warn_flag in '' yes
7187 # Use a header file that comes with gcc, so configuring glibc
7188 # with a fresh cross-compiler works.
7189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190 # <limits.h> exists even on freestanding compilers.
7191 # On the NeXT, cc -E runs the code through the compiler's parser,
7192 # not just through cpp. "Syntax error" is here to catch this case.
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7200 # include <limits.h>
7202 # include <assert.h>
7206 if { (ac_try="$ac_cpp conftest.$ac_ext"
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7214 grep -v '^ *+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } >/dev/null && {
7219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7220 test ! -s conftest.err
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7227 # Broken: fails on valid input.
7231 rm -f conftest.err conftest.$ac_ext
7233 # OK, works on sane cases. Now check whether nonexistent headers
7234 # can be detected and how.
7235 cat >conftest.$ac_ext <<_ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <ac_nonexistent.h>
7243 if { (ac_try="$ac_cpp conftest.$ac_ext"
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7251 grep -v '^ *+' conftest.er1 >conftest.err
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } >/dev/null && {
7256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7259 # Broken: success on invalid input.
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7265 # Passes both tests.
7270 rm -f conftest.err conftest.$ac_ext
7273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7274 rm -f conftest.err conftest.$ac_ext
7275 if $ac_preproc_ok; then
7278 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7279 See \`config.log' for more details." >&5
7280 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7281 See \`config.log' for more details." >&2;}
7282 { (exit 1); exit 1; }; }
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7292 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7293 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7294 if test "${ac_cv_header_stdc+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 cat >conftest.$ac_ext <<_ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7333 ac_cv_header_stdc=yes
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_header_stdc=no
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 if test $ac_cv_header_stdc = yes; then
7344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7345 cat >conftest.$ac_ext <<_ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h. */
7354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7355 $EGREP "memchr" >/dev/null 2>&1; then
7358 ac_cv_header_stdc=no
7364 if test $ac_cv_header_stdc = yes; then
7365 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7376 $EGREP "free" >/dev/null 2>&1; then
7379 ac_cv_header_stdc=no
7385 if test $ac_cv_header_stdc = yes; then
7386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7387 if test "$cross_compiling" = yes; then
7390 cat >conftest.$ac_ext <<_ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7398 #if ((' ' & 0x0FF) == 0x020)
7399 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7400 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7402 # define ISLOWER(c) \
7403 (('a' <= (c) && (c) <= 'i') \
7404 || ('j' <= (c) && (c) <= 'r') \
7405 || ('s' <= (c) && (c) <= 'z'))
7406 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7414 for (i = 0; i < 256; i++)
7415 if (XOR (islower (i), ISLOWER (i))
7416 || toupper (i) != TOUPPER (i))
7421 rm -f conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428 (eval "$ac_link") 2>&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7432 { (case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_try") 2>&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7443 echo "$as_me: program exited with status $ac_status" >&5
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7448 ac_cv_header_stdc=no
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7456 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7457 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7458 if test $ac_cv_header_stdc = yes; then
7460 cat >>confdefs.h <<\_ACEOF
7461 #define STDC_HEADERS 1
7466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7476 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7477 inttypes.h stdint.h unistd.h
7479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 $ac_includes_default
7493 #include <$ac_header>
7495 rm -f conftest.$ac_objext
7496 if { (ac_try="$ac_compile"
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 (eval "$ac_compile") 2>conftest.er1
7504 grep -v '^ *+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && {
7509 test -z "$ac_c_werror_flag" ||
7510 test ! -s conftest.err
7511 } && test -s conftest.$ac_objext; then
7512 eval "$as_ac_Header=yes"
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7517 eval "$as_ac_Header=no"
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 ac_res=`eval echo '${'$as_ac_Header'}'`
7523 { echo "$as_me:$LINENO: result: $ac_res" >&5
7524 echo "${ECHO_T}$ac_res" >&6; }
7525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7526 cat >>confdefs.h <<_ACEOF
7527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7536 for ac_header in dlfcn.h
7538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_res=`eval echo '${'$as_ac_Header'}'`
7546 { echo "$as_me:$LINENO: result: $ac_res" >&5
7547 echo "${ECHO_T}$ac_res" >&6; }
7549 # Is the header compilable?
7550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7552 cat >conftest.$ac_ext <<_ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 $ac_includes_default
7559 #include <$ac_header>
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_compile") 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } && {
7575 test -z "$ac_c_werror_flag" ||
7576 test ! -s conftest.err
7577 } && test -s conftest.$ac_objext; then
7578 ac_header_compiler=yes
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7583 ac_header_compiler=no
7586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7588 echo "${ECHO_T}$ac_header_compiler" >&6; }
7590 # Is the header present?
7591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7593 cat >conftest.$ac_ext <<_ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 #include <$ac_header>
7601 if { (ac_try="$ac_cpp conftest.$ac_ext"
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7609 grep -v '^ *+' conftest.er1 >conftest.err
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } >/dev/null && {
7614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7617 ac_header_preproc=yes
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7622 ac_header_preproc=no
7625 rm -f conftest.err conftest.$ac_ext
7626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7627 echo "${ECHO_T}$ac_header_preproc" >&6; }
7629 # So? What about this header?
7630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7636 ac_header_preproc=yes
7639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7652 ## -------------------------------- ##
7653 ## Report this to Hans.Boehm@hp.com ##
7654 ## -------------------------------- ##
7656 ) | sed "s/^/$as_me: WARNING: /" >&2
7659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 eval "$as_ac_Header=\$ac_header_preproc"
7666 ac_res=`eval echo '${'$as_ac_Header'}'`
7667 { echo "$as_me:$LINENO: result: $ac_res" >&5
7668 echo "${ECHO_T}$ac_res" >&6; }
7671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7672 cat >>confdefs.h <<_ACEOF
7673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7682 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7683 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7684 (test "X$CXX" != "Xg++"))) ; then
7686 ac_cpp='$CXXCPP $CPPFLAGS'
7687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7690 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7691 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7692 if test -z "$CXXCPP"; then
7693 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 # Double quotes because CXXCPP needs to be expanded
7697 for CXXCPP in "$CXX -E" "/lib/cpp"
7700 for ac_cxx_preproc_warn_flag in '' yes
7702 # Use a header file that comes with gcc, so configuring glibc
7703 # with a fresh cross-compiler works.
7704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7705 # <limits.h> exists even on freestanding compilers.
7706 # On the NeXT, cc -E runs the code through the compiler's parser,
7707 # not just through cpp. "Syntax error" is here to catch this case.
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7715 # include <limits.h>
7717 # include <assert.h>
7721 if { (ac_try="$ac_cpp conftest.$ac_ext"
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7729 grep -v '^ *+' conftest.er1 >conftest.err
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } >/dev/null && {
7734 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7735 test ! -s conftest.err
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7742 # Broken: fails on valid input.
7746 rm -f conftest.err conftest.$ac_ext
7748 # OK, works on sane cases. Now check whether nonexistent headers
7749 # can be detected and how.
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #include <ac_nonexistent.h>
7758 if { (ac_try="$ac_cpp conftest.$ac_ext"
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } >/dev/null && {
7771 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7772 test ! -s conftest.err
7774 # Broken: success on invalid input.
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 # Passes both tests.
7785 rm -f conftest.err conftest.$ac_ext
7788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7789 rm -f conftest.err conftest.$ac_ext
7790 if $ac_preproc_ok; then
7795 ac_cv_prog_CXXCPP=$CXXCPP
7798 CXXCPP=$ac_cv_prog_CXXCPP
7800 ac_cv_prog_CXXCPP=$CXXCPP
7802 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7803 echo "${ECHO_T}$CXXCPP" >&6; }
7805 for ac_cxx_preproc_warn_flag in '' yes
7807 # Use a header file that comes with gcc, so configuring glibc
7808 # with a fresh cross-compiler works.
7809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7810 # <limits.h> exists even on freestanding compilers.
7811 # On the NeXT, cc -E runs the code through the compiler's parser,
7812 # not just through cpp. "Syntax error" is here to catch this case.
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7820 # include <limits.h>
7822 # include <assert.h>
7826 if { (ac_try="$ac_cpp conftest.$ac_ext"
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7834 grep -v '^ *+' conftest.er1 >conftest.err
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } >/dev/null && {
7839 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7840 test ! -s conftest.err
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7847 # Broken: fails on valid input.
7851 rm -f conftest.err conftest.$ac_ext
7853 # OK, works on sane cases. Now check whether nonexistent headers
7854 # can be detected and how.
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 #include <ac_nonexistent.h>
7863 if { (ac_try="$ac_cpp conftest.$ac_ext"
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null && {
7876 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7877 test ! -s conftest.err
7879 # Broken: success on invalid input.
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 # Passes both tests.
7890 rm -f conftest.err conftest.$ac_ext
7893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7894 rm -f conftest.err conftest.$ac_ext
7895 if $ac_preproc_ok; then
7898 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7899 See \`config.log' for more details." >&5
7900 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7901 See \`config.log' for more details." >&2;}
7902 { (exit 1); exit 1; }; }
7906 ac_cpp='$CXXCPP $CPPFLAGS'
7907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7915 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7916 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7918 if test -n "$ac_tool_prefix"; then
7919 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
7921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7925 if test "${ac_cv_prog_F77+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 if test -n "$F77"; then
7929 ac_cv_prog_F77="$F77" # Let the user override the test.
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 if test -n "$F77"; then
7950 { echo "$as_me:$LINENO: result: $F77" >&5
7951 echo "${ECHO_T}$F77" >&6; }
7953 { echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6; }
7958 test -n "$F77" && break
7961 if test -z "$F77"; then
7963 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
7965 # Extract the first word of "$ac_prog", so it can be a program name with args.
7966 set dummy $ac_prog; ac_word=$2
7967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7969 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 if test -n "$ac_ct_F77"; then
7973 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_prog_ac_ct_F77="$ac_prog"
7983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7993 if test -n "$ac_ct_F77"; then
7994 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7995 echo "${ECHO_T}$ac_ct_F77" >&6; }
7997 { echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6; }
8002 test -n "$ac_ct_F77" && break
8005 if test "x$ac_ct_F77" = x; then
8008 case $cross_compiling:$ac_tool_warned in
8010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8011 whose name does not start with the host triplet. If you think this
8012 configuration is useful to you, please write to autoconf@gnu.org." >&5
8013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8014 whose name does not start with the host triplet. If you think this
8015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8016 ac_tool_warned=yes ;;
8023 # Provide some information about the compiler.
8024 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8025 ac_compiler=`set X $ac_compile; echo $2`
8026 { (ac_try="$ac_compiler --version >&5"
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_compiler --version >&5") 2>&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }
8036 { (ac_try="$ac_compiler -v >&5"
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_compiler -v >&5") 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }
8046 { (ac_try="$ac_compiler -V >&5"
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compiler -V >&5") 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }
8058 # If we don't use `.F' as extension, the preprocessor is not run on the
8059 # input file. (Note that this only needs to work for GNU compilers.)
8062 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8063 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8064 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 cat >conftest.$ac_ext <<_ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8084 grep -v '^ *+' conftest.er1 >conftest.err
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_f77_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8104 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8105 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
8107 ac_test_FFLAGS=${FFLAGS+set}
8108 ac_save_FFLAGS=$FFLAGS
8110 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8111 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
8112 if test "${ac_cv_prog_f77_g+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.$ac_ext <<_ACEOF
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_f77_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest.$ac_objext; then
8138 ac_cv_prog_f77_g=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8150 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
8151 if test "$ac_test_FFLAGS" = set; then
8152 FFLAGS=$ac_save_FFLAGS
8153 elif test $ac_cv_prog_f77_g = yes; then
8154 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8160 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8167 G77=`test $ac_compiler_gnu = yes && echo yes`
8169 ac_cpp='$CPP $CPPFLAGS'
8170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8176 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8178 # find the maximum length of command line arguments
8179 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8180 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8181 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 # On DJGPP, this test can blow up pretty badly due to problems in libc
8190 # (any single argument exceeding 2000 bytes causes a buffer overrun
8191 # during glob expansion). Even if it were fixed, the result of this
8192 # check would be larger than it should be.
8193 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8197 # Under GNU Hurd, this test is not required because there is
8198 # no limit to the length of command line arguments.
8199 # Libtool will interpret -1 as no limit whatsoever
8200 lt_cv_sys_max_cmd_len=-1;
8204 # On Win9x/ME, this test blows up -- it succeeds, but takes
8205 # about 5 minutes as the teststring grows exponentially.
8206 # Worse, since 9x/ME are not pre-emptively multitasking,
8207 # you end up with a "frozen" computer, even though with patience
8208 # the test eventually succeeds (with a max line length of 256k).
8209 # Instead, let's just punt: use the minimum linelength reported by
8210 # all of the supported platforms: 8192 (on NT/2K/XP).
8211 lt_cv_sys_max_cmd_len=8192;
8215 # On AmigaOS with pdksh, this test takes hours, literally.
8216 # So we just punt and use a minimum line length of 8192.
8217 lt_cv_sys_max_cmd_len=8192;
8220 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8221 # This has been around since 386BSD, at least. Likely further.
8222 if test -x /sbin/sysctl; then
8223 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8224 elif test -x /usr/sbin/sysctl; then
8225 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8227 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8229 # And add a safety zone
8230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8235 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8236 lt_cv_sys_max_cmd_len=196608
8240 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8241 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8242 # nice to cause kernel panics so lets avoid the loop below.
8243 # First set a reasonable default.
8244 lt_cv_sys_max_cmd_len=16384
8246 if test -x /sbin/sysconfig; then
8247 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8248 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8253 lt_cv_sys_max_cmd_len=102400
8255 sysv5* | sco5v6* | sysv4.2uw2*)
8256 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8257 if test -n "$kargmax"; then
8258 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8260 lt_cv_sys_max_cmd_len=32768
8264 # If test is not a shell built-in, we'll probably end up computing a
8265 # maximum length that is only half of the actual maximum length, but
8267 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8268 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8269 = "XX$teststring") >/dev/null 2>&1 &&
8270 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8271 lt_cv_sys_max_cmd_len=$new_result &&
8272 test $i != 17 # 1/2 MB should be enough
8275 teststring=$teststring$teststring
8278 # Add a significant safety factor because C++ compilers can tack on massive
8279 # amounts of additional arguments before passing them to the linker.
8280 # It appears as though 1/2 is a usable value.
8281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8287 if test -n $lt_cv_sys_max_cmd_len ; then
8288 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8291 { echo "$as_me:$LINENO: result: none" >&5
8292 echo "${ECHO_T}none" >&6; }
8298 # Check for command to grab the raw symbol name followed by C symbol from nm.
8299 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 # These are sane defaults that work on at least a few old systems.
8306 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8308 # Character class describing NM global symbol codes.
8309 symcode='[BCDEGRST]'
8311 # Regexp to match symbols that can be accessed directly from C.
8312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8314 # Transform an extracted symbol line into a proper C declaration
8315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8317 # Transform an extracted symbol line into symbol name and symbol address
8318 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'"
8320 # Define system-specific variables.
8325 cygwin* | mingw* | pw32*)
8326 symcode='[ABCDGISTW]'
8328 hpux*) # Its linker distinguishes data from code symbols
8329 if test "$host_cpu" = ia64; then
8330 symcode='[ABCDEGRST]'
8332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8333 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'"
8336 if test "$host_cpu" = ia64; then
8337 symcode='[ABCDGIRSTW]'
8338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8339 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'"
8343 symcode='[BCDEGRST]'
8346 symcode='[BCDEGQRST]'
8357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8365 # Handle CRLF in mingw tool chain
8369 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8373 # If we're using GNU nm, then use its standard symbol codes.
8374 case `$NM -V 2>&1` in
8375 *GNU* | *'with BFD'*)
8376 symcode='[ABCDGIRSTW]' ;;
8379 # Try without a prefix undercore, then with it.
8380 for ac_symprfx in "" "_"; do
8382 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8383 symxfrm="\\1 $ac_symprfx\\2 \\2"
8385 # Write the raw and C identifiers.
8386 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8388 # Check to see that the pipe works correctly.
8392 cat > conftest.$ac_ext <<EOF
8397 void nm_test_func(){}
8401 int main(){nm_test_var='a';nm_test_func();return(0);}
8404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8405 (eval $ac_compile) 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; then
8409 # Now try to grab the symbols.
8411 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8412 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && test -s "$nlist"; then
8416 # Try sorting and uniquifying the output.
8417 if sort "$nlist" | uniq > "$nlist"T; then
8418 mv -f "$nlist"T "$nlist"
8423 # Make sure that we snagged all the symbols we need.
8424 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8425 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8426 cat <<EOF > conftest.$ac_ext
8432 # Now generate the symbol file.
8433 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8435 cat <<EOF >> conftest.$ac_ext
8436 #if defined (__STDC__) && __STDC__
8437 # define lt_ptr_t void *
8439 # define lt_ptr_t char *
8443 /* The mapping between symbol names and symbols. */
8448 lt_preloaded_symbols[] =
8451 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8452 cat <<\EOF >> conftest.$ac_ext
8460 # Now try linking the two files.
8461 mv conftest.$ac_objext conftstm.$ac_objext
8462 lt_save_LIBS="$LIBS"
8463 lt_save_CFLAGS="$CFLAGS"
8464 LIBS="conftstm.$ac_objext"
8465 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8467 (eval $ac_link) 2>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8473 LIBS="$lt_save_LIBS"
8474 CFLAGS="$lt_save_CFLAGS"
8476 echo "cannot find nm_test_func in $nlist" >&5
8479 echo "cannot find nm_test_var in $nlist" >&5
8482 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8485 echo "$progname: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8488 rm -f conftest* conftst*
8490 # Do not use the global_symbol_pipe unless it works.
8491 if test "$pipe_works" = yes; then
8494 lt_cv_sys_global_symbol_pipe=
8500 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8501 lt_cv_sys_global_symbol_to_cdecl=
8503 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8504 { echo "$as_me:$LINENO: result: failed" >&5
8505 echo "${ECHO_T}failed" >&6; }
8507 { echo "$as_me:$LINENO: result: ok" >&5
8508 echo "${ECHO_T}ok" >&6; }
8511 { echo "$as_me:$LINENO: checking for objdir" >&5
8512 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8513 if test "${lt_cv_objdir+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 rm -f .libs 2>/dev/null
8517 mkdir .libs 2>/dev/null
8518 if test -d .libs; then
8521 # MS-DOS does not allow filenames that begin with a dot.
8524 rmdir .libs 2>/dev/null
8526 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8527 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8528 objdir=$lt_cv_objdir
8536 # AIX sometimes has problems with the GCC collect2 program. For some
8537 # reason, if we set the COLLECT_NAMES environment variable, the problems
8538 # vanish in a puff of smoke.
8539 if test "X${COLLECT_NAMES+set}" != Xset; then
8541 export COLLECT_NAMES
8546 # Sed substitution that helps us do robust quoting. It backslashifies
8547 # metacharacters that are still active within double-quoted strings.
8548 Xsed='sed -e 1s/^X//'
8549 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8551 # Same as above, but do not quote variable references.
8552 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8554 # Sed substitution to delay expansion of an escaped shell variable in a
8555 # double_quote_subst'ed string.
8556 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8558 # Sed substitution to avoid accidental globbing in evaled expressions
8559 no_glob_subst='s/\*/\\\*/g'
8565 default_ofile=libtool
8566 can_build_shared=yes
8568 # All known linkers require a `.a' archive for static linking (except MSVC,
8569 # which needs '.lib').
8571 ltmain="$ac_aux_dir/ltmain.sh"
8572 ofile="$default_ofile"
8573 with_gnu_ld="$lt_cv_prog_gnu_ld"
8575 if test -n "$ac_tool_prefix"; then
8576 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8577 set dummy ${ac_tool_prefix}ar; ac_word=$2
8578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8580 if test "${ac_cv_prog_AR+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 if test -n "$AR"; then
8584 ac_cv_prog_AR="$AR" # Let the user override the test.
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8593 ac_cv_prog_AR="${ac_tool_prefix}ar"
8594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 if test -n "$AR"; then
8605 { echo "$as_me:$LINENO: result: $AR" >&5
8606 echo "${ECHO_T}$AR" >&6; }
8608 { echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6; }
8614 if test -z "$ac_cv_prog_AR"; then
8616 # Extract the first word of "ar", so it can be a program name with args.
8617 set dummy ar; ac_word=$2
8618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8620 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 if test -n "$ac_ct_AR"; then
8624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8633 ac_cv_prog_ac_ct_AR="ar"
8634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8644 if test -n "$ac_ct_AR"; then
8645 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8646 echo "${ECHO_T}$ac_ct_AR" >&6; }
8648 { echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6; }
8652 if test "x$ac_ct_AR" = x; then
8655 case $cross_compiling:$ac_tool_warned in
8657 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8658 whose name does not start with the host triplet. If you think this
8659 configuration is useful to you, please write to autoconf@gnu.org." >&5
8660 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8661 whose name does not start with the host triplet. If you think this
8662 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8663 ac_tool_warned=yes ;;
8671 if test -n "$ac_tool_prefix"; then
8672 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8673 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8676 if test "${ac_cv_prog_RANLIB+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 if test -n "$RANLIB"; then
8680 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 test -z "$as_dir" && as_dir=.
8687 for ac_exec_ext in '' $ac_executable_extensions; do
8688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8689 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 RANLIB=$ac_cv_prog_RANLIB
8700 if test -n "$RANLIB"; then
8701 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8702 echo "${ECHO_T}$RANLIB" >&6; }
8704 { echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6; }
8710 if test -z "$ac_cv_prog_RANLIB"; then
8711 ac_ct_RANLIB=$RANLIB
8712 # Extract the first word of "ranlib", so it can be a program name with args.
8713 set dummy ranlib; ac_word=$2
8714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8716 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 if test -n "$ac_ct_RANLIB"; then
8720 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729 ac_cv_prog_ac_ct_RANLIB="ranlib"
8730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8740 if test -n "$ac_ct_RANLIB"; then
8741 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8742 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8744 { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8748 if test "x$ac_ct_RANLIB" = x; then
8751 case $cross_compiling:$ac_tool_warned in
8753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8754 whose name does not start with the host triplet. If you think this
8755 configuration is useful to you, please write to autoconf@gnu.org." >&5
8756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8757 whose name does not start with the host triplet. If you think this
8758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8759 ac_tool_warned=yes ;;
8761 RANLIB=$ac_ct_RANLIB
8764 RANLIB="$ac_cv_prog_RANLIB"
8767 if test -n "$ac_tool_prefix"; then
8768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8769 set dummy ${ac_tool_prefix}strip; ac_word=$2
8770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8772 if test "${ac_cv_prog_STRIP+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 if test -n "$STRIP"; then
8776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 STRIP=$ac_cv_prog_STRIP
8796 if test -n "$STRIP"; then
8797 { echo "$as_me:$LINENO: result: $STRIP" >&5
8798 echo "${ECHO_T}$STRIP" >&6; }
8800 { echo "$as_me:$LINENO: result: no" >&5
8801 echo "${ECHO_T}no" >&6; }
8806 if test -z "$ac_cv_prog_STRIP"; then
8808 # Extract the first word of "strip", so it can be a program name with args.
8809 set dummy strip; ac_word=$2
8810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8812 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 if test -n "$ac_ct_STRIP"; then
8816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8825 ac_cv_prog_ac_ct_STRIP="strip"
8826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8836 if test -n "$ac_ct_STRIP"; then
8837 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8838 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8840 { echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6; }
8844 if test "x$ac_ct_STRIP" = x; then
8847 case $cross_compiling:$ac_tool_warned in
8849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8850 whose name does not start with the host triplet. If you think this
8851 configuration is useful to you, please write to autoconf@gnu.org." >&5
8852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8853 whose name does not start with the host triplet. If you think this
8854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8855 ac_tool_warned=yes ;;
8860 STRIP="$ac_cv_prog_STRIP"
8865 old_CFLAGS="$CFLAGS"
8867 # Set sane defaults for various variables
8868 test -z "$AR" && AR=ar
8869 test -z "$AR_FLAGS" && AR_FLAGS=cru
8870 test -z "$AS" && AS=as
8871 test -z "$CC" && CC=cc
8872 test -z "$LTCC" && LTCC=$CC
8873 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8874 test -z "$DLLTOOL" && DLLTOOL=dlltool
8875 test -z "$LD" && LD=ld
8876 test -z "$LN_S" && LN_S="ln -s"
8877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8878 test -z "$NM" && NM=nm
8879 test -z "$SED" && SED=sed
8880 test -z "$OBJDUMP" && OBJDUMP=objdump
8881 test -z "$RANLIB" && RANLIB=:
8882 test -z "$STRIP" && STRIP=:
8883 test -z "$ac_objext" && ac_objext=o
8885 # Determine commands to create old-style static archives.
8886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8887 old_postinstall_cmds='chmod 644 $oldlib'
8888 old_postuninstall_cmds=
8890 if test -n "$RANLIB"; then
8893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8902 for cc_temp in $compiler""; do
8904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8913 # Only perform the check for file, if the check method requires it
8914 case $deplibs_check_method in
8916 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8917 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8918 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8919 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8927 lt_save_MAGIC_CMD="$MAGIC_CMD"
8928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8930 for ac_dir in $ac_dummy; do
8932 test -z "$ac_dir" && ac_dir=.
8933 if test -f $ac_dir/${ac_tool_prefix}file; then
8934 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8935 if test -n "$file_magic_test_file"; then
8936 case $deplibs_check_method in
8938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8941 $EGREP "$file_magic_regex" > /dev/null; then
8946 *** Warning: the command libtool uses to detect shared libraries,
8947 *** $file_magic_cmd, produces output that libtool cannot recognize.
8948 *** The result is that libtool may fail to recognize shared libraries
8949 *** as such. This will affect the creation of libtool libraries that
8950 *** depend on shared libraries, but programs linked with such libtool
8951 *** libraries will work regardless of this problem. Nevertheless, you
8952 *** may want to report the problem to your system manager and/or to
8953 *** bug-libtool@gnu.org
8963 MAGIC_CMD="$lt_save_MAGIC_CMD"
8968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8969 if test -n "$MAGIC_CMD"; then
8970 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8971 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8973 { echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6; }
8977 if test -z "$lt_cv_path_MAGIC_CMD"; then
8978 if test -n "$ac_tool_prefix"; then
8979 { echo "$as_me:$LINENO: checking for file" >&5
8980 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8981 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8989 lt_save_MAGIC_CMD="$MAGIC_CMD"
8990 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8991 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8992 for ac_dir in $ac_dummy; do
8994 test -z "$ac_dir" && ac_dir=.
8995 if test -f $ac_dir/file; then
8996 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8997 if test -n "$file_magic_test_file"; then
8998 case $deplibs_check_method in
9000 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9002 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9003 $EGREP "$file_magic_regex" > /dev/null; then
9008 *** Warning: the command libtool uses to detect shared libraries,
9009 *** $file_magic_cmd, produces output that libtool cannot recognize.
9010 *** The result is that libtool may fail to recognize shared libraries
9011 *** as such. This will affect the creation of libtool libraries that
9012 *** depend on shared libraries, but programs linked with such libtool
9013 *** libraries will work regardless of this problem. Nevertheless, you
9014 *** may want to report the problem to your system manager and/or to
9015 *** bug-libtool@gnu.org
9025 MAGIC_CMD="$lt_save_MAGIC_CMD"
9030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9031 if test -n "$MAGIC_CMD"; then
9032 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9033 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9035 { echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6; }
9051 # Check whether --enable-libtool-lock was given.
9052 if test "${enable_libtool_lock+set}" = set; then
9053 enableval=$enable_libtool_lock;
9056 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9059 # Check whether --with-pic was given.
9060 if test "${with_pic+set}" = set; then
9061 withval=$with_pic; pic_mode="$withval"
9066 test -z "$pic_mode" && pic_mode=default
9068 # Use C for the default configuration in the libtool script
9072 ac_cpp='$CPP $CPPFLAGS'
9073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9078 # Source file extension for C test sources.
9081 # Object file extension for compiled C test sources.
9085 # Code to be used in simple compile tests
9086 lt_simple_compile_test_code="int some_variable = 0;\n"
9088 # Code to be used in simple link tests
9089 lt_simple_link_test_code='int main(){return(0);}\n'
9092 # If no C compiler was specified, use CC.
9095 # If no C compiler flags were specified, use CFLAGS.
9096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9098 # Allow CC to be a program name with arguments.
9102 # save warnings/boilerplate of simple test code
9103 ac_outfile=conftest.$ac_objext
9104 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9106 _lt_compiler_boilerplate=`cat conftest.err`
9109 ac_outfile=conftest.$ac_objext
9110 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9112 _lt_linker_boilerplate=`cat conftest.err`
9117 ## There is no encapsulation within the following macros, do not change
9118 ## the running order or otherwise move them around unless you know exactly
9119 ## what you are doing...
9121 lt_prog_compiler_no_builtin_flag=
9123 if test "$GCC" = yes; then
9124 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9127 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9128 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9129 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 lt_cv_prog_compiler_rtti_exceptions=no
9133 ac_outfile=conftest.$ac_objext
9134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9135 lt_compiler_flag="-fno-rtti -fno-exceptions"
9136 # Insert the option either (1) after the last *FLAGS variable, or
9137 # (2) before a word containing "conftest.", or (3) at the end.
9138 # Note that $ac_compile itself does not contain backslashes and begins
9139 # with a dollar sign (not a hyphen), so the echo should work correctly.
9140 # The option is referenced via a variable to avoid confusing sed.
9141 lt_compile=`echo "$ac_compile" | $SED \
9142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144 -e 's:$: $lt_compiler_flag:'`
9145 (eval echo "\"\$as_me:9145: $lt_compile\"" >&5)
9146 (eval "$lt_compile" 2>conftest.err)
9148 cat conftest.err >&5
9149 echo "$as_me:9149: \$? = $ac_status" >&5
9150 if (exit $ac_status) && test -s "$ac_outfile"; then
9151 # The compiler can only warn and ignore the option if not recognized
9152 # So say no if there are warnings other than the usual output.
9153 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9156 lt_cv_prog_compiler_rtti_exceptions=yes
9162 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9163 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9166 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9173 lt_prog_compiler_wl=
9174 lt_prog_compiler_pic=
9175 lt_prog_compiler_static=
9177 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9178 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9180 if test "$GCC" = yes; then
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_static='-static'
9186 # All AIX code is PIC.
9187 if test "$host_cpu" = ia64; then
9188 # AIX 5 now supports IA64 processor
9189 lt_prog_compiler_static='-Bstatic'
9194 # FIXME: we need at least 68020 code to build shared libraries, but
9195 # adding the `-m68020' flag to GCC prevents building anything better,
9197 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9200 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9201 # PIC is the default for these OSes.
9204 mingw* | pw32* | os2*)
9205 # This hack is so that the source file can tell whether it is being
9206 # built for inclusion in a dll (and should export symbols for example).
9207 lt_prog_compiler_pic='-DDLL_EXPORT'
9210 darwin* | rhapsody*)
9211 # PIC is the default on this platform
9212 # Common symbols not allowed in MH_DYLIB files
9213 lt_prog_compiler_pic='-fno-common'
9217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9218 # Instead, we relocate shared libraries at runtime.
9222 # Just because we use GCC doesn't mean we suddenly get shared libraries
9223 # on systems that don't support them.
9224 lt_prog_compiler_can_build_shared=no
9229 if test -d /usr/nec; then
9230 lt_prog_compiler_pic=-Kconform_pic
9235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9242 lt_prog_compiler_pic='-fPIC'
9248 lt_prog_compiler_pic='-fPIC'
9252 # PORTME Check for flag to pass linker flags through the system compiler.
9255 lt_prog_compiler_wl='-Wl,'
9256 if test "$host_cpu" = ia64; then
9257 # AIX 5 now supports IA64 processor
9258 lt_prog_compiler_static='-Bstatic'
9260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9264 # PIC is the default on this platform
9265 # Common symbols not allowed in MH_DYLIB files
9266 case $cc_basename in
9268 lt_prog_compiler_pic='-qnocommon'
9269 lt_prog_compiler_wl='-Wl,'
9274 mingw* | pw32* | os2*)
9275 # This hack is so that the source file can tell whether it is being
9276 # built for inclusion in a dll (and should export symbols for example).
9277 lt_prog_compiler_pic='-DDLL_EXPORT'
9280 hpux9* | hpux10* | hpux11*)
9281 lt_prog_compiler_wl='-Wl,'
9282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9289 lt_prog_compiler_pic='+Z'
9292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9293 lt_prog_compiler_static='${wl}-a ${wl}archive'
9296 irix5* | irix6* | nonstopux*)
9297 lt_prog_compiler_wl='-Wl,'
9298 # PIC (with -KPIC) is the default.
9299 lt_prog_compiler_static='-non_shared'
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9308 case $cc_basename in
9310 lt_prog_compiler_wl='-Wl,'
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-static'
9314 pgcc* | pgf77* | pgf90* | pgf95*)
9315 # Portland Group compilers (*not* the Pentium gcc compiler,
9316 # which looks to be a dead project)
9317 lt_prog_compiler_wl='-Wl,'
9318 lt_prog_compiler_pic='-fpic'
9319 lt_prog_compiler_static='-Bstatic'
9322 lt_prog_compiler_wl='-Wl,'
9323 # All Alpha code is PIC.
9324 lt_prog_compiler_static='-non_shared'
9329 osf3* | osf4* | osf5*)
9330 lt_prog_compiler_wl='-Wl,'
9331 # All OSF/1 code is PIC.
9332 lt_prog_compiler_static='-non_shared'
9336 lt_prog_compiler_pic='-KPIC'
9337 lt_prog_compiler_static='-Bstatic'
9338 case $cc_basename in
9340 lt_prog_compiler_wl='-Qoption ld ';;
9342 lt_prog_compiler_wl='-Wl,';;
9347 lt_prog_compiler_wl='-Qoption ld '
9348 lt_prog_compiler_pic='-PIC'
9349 lt_prog_compiler_static='-Bstatic'
9352 sysv4 | sysv4.2uw2* | sysv4.3*)
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_pic='-KPIC'
9355 lt_prog_compiler_static='-Bstatic'
9359 if test -d /usr/nec ;then
9360 lt_prog_compiler_pic='-Kconform_pic'
9361 lt_prog_compiler_static='-Bstatic'
9365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_can_build_shared=no
9377 lt_prog_compiler_pic='-pic'
9378 lt_prog_compiler_static='-Bstatic'
9382 lt_prog_compiler_can_build_shared=no
9387 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9388 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9391 # Check to make sure the PIC flag actually works.
9393 if test -n "$lt_prog_compiler_pic"; then
9395 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9396 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9397 if test "${lt_prog_compiler_pic_works+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 lt_prog_compiler_pic_works=no
9401 ac_outfile=conftest.$ac_objext
9402 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9403 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9404 # Insert the option either (1) after the last *FLAGS variable, or
9405 # (2) before a word containing "conftest.", or (3) at the end.
9406 # Note that $ac_compile itself does not contain backslashes and begins
9407 # with a dollar sign (not a hyphen), so the echo should work correctly.
9408 # The option is referenced via a variable to avoid confusing sed.
9409 lt_compile=`echo "$ac_compile" | $SED \
9410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9412 -e 's:$: $lt_compiler_flag:'`
9413 (eval echo "\"\$as_me:9413: $lt_compile\"" >&5)
9414 (eval "$lt_compile" 2>conftest.err)
9416 cat conftest.err >&5
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 if (exit $ac_status) && test -s "$ac_outfile"; then
9419 # The compiler can only warn and ignore the option if not recognized
9420 # So say no if there are warnings other than the usual output.
9421 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9424 lt_prog_compiler_pic_works=yes
9430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9431 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9433 if test x"$lt_prog_compiler_pic_works" = xyes; then
9434 case $lt_prog_compiler_pic in
9436 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9439 lt_prog_compiler_pic=
9440 lt_prog_compiler_can_build_shared=no
9445 # For platforms which do not support PIC, -DPIC is meaningless:
9447 lt_prog_compiler_pic=
9450 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9455 # Check to make sure the static flag actually works.
9457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9458 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9459 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9460 if test "${lt_prog_compiler_static_works+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 lt_prog_compiler_static_works=no
9464 save_LDFLAGS="$LDFLAGS"
9465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9466 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468 # The linker can only warn and ignore the option if not recognized
9469 # So say no if there are warnings
9470 if test -s conftest.err; then
9471 # Append any errors to the config.log.
9472 cat conftest.err 1>&5
9473 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_prog_compiler_static_works=yes
9479 lt_prog_compiler_static_works=yes
9483 LDFLAGS="$save_LDFLAGS"
9486 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9487 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9489 if test x"$lt_prog_compiler_static_works" = xyes; then
9492 lt_prog_compiler_static=
9496 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9497 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9498 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 lt_cv_prog_compiler_c_o=no
9502 $rm -r conftest 2>/dev/null
9506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9508 lt_compiler_flag="-o out/conftest2.$ac_objext"
9509 # Insert the option either (1) after the last *FLAGS variable, or
9510 # (2) before a word containing "conftest.", or (3) at the end.
9511 # Note that $ac_compile itself does not contain backslashes and begins
9512 # with a dollar sign (not a hyphen), so the echo should work correctly.
9513 lt_compile=`echo "$ac_compile" | $SED \
9514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9516 -e 's:$: $lt_compiler_flag:'`
9517 (eval echo "\"\$as_me:9517: $lt_compile\"" >&5)
9518 (eval "$lt_compile" 2>out/conftest.err)
9520 cat out/conftest.err >&5
9521 echo "$as_me:9521: \$? = $ac_status" >&5
9522 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9524 # The compiler can only warn and ignore the option if not recognized
9525 # So say no if there are warnings
9526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9529 lt_cv_prog_compiler_c_o=yes
9534 # SGI C++ compiler will create directory out/ii_files/ for
9535 # template instantiation
9536 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9537 $rm out/* && rmdir out
9543 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9544 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9547 hard_links="nottested"
9548 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9549 # do not overwrite the value of need_locks provided by the user
9550 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9556 ln conftest.a conftest.b 2>&5 || hard_links=no
9557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9558 { echo "$as_me:$LINENO: result: $hard_links" >&5
9559 echo "${ECHO_T}$hard_links" >&6; }
9560 if test "$hard_links" = no; then
9561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9569 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9570 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9573 allow_undefined_flag=
9574 enable_shared_with_static_runtimes=no
9576 archive_expsym_cmds=
9577 old_archive_From_new_cmds=
9578 old_archive_from_expsyms_cmds=
9579 export_dynamic_flag_spec=
9580 whole_archive_flag_spec=
9581 thread_safe_flag_spec=
9582 hardcode_libdir_flag_spec=
9583 hardcode_libdir_flag_spec_ld=
9584 hardcode_libdir_separator=
9587 hardcode_shlibpath_var=unsupported
9588 link_all_deplibs=unknown
9589 hardcode_automatic=no
9592 always_export_symbols=no
9593 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9594 # include_expsyms should be a list of space-separated symbols to be *always*
9595 # included in the symbol list
9597 # exclude_expsyms can be an extended regexp of symbols to exclude
9598 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9599 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9600 # as well as any symbol that contains `d'.
9601 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9602 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9603 # platforms (ab)use it in PIC code, but their linkers get confused if
9604 # the symbol is explicitly referenced. Since portable code cannot
9605 # rely on this symbol name, it's probably fine to never include it in
9606 # preloaded symbol tables.
9607 extract_expsyms_cmds=
9608 # Just being paranoid about ensuring that cc_basename is set.
9609 for cc_temp in $compiler""; do
9611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9620 cygwin* | mingw* | pw32*)
9621 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9622 # When not using gcc, we currently assume that we are using
9623 # Microsoft Visual C++.
9624 if test "$GCC" != yes; then
9629 # we just hope/assume this is gcc and not c89 (= MSVC++)
9638 if test "$with_gnu_ld" = yes; then
9639 # If archive_cmds runs LD, not CC, wlarc should be empty
9642 # Set some defaults for GNU ld with shared library support. These
9643 # are reset later if shared libraries are not supported. Putting them
9644 # here allows them to be overridden if necessary.
9645 runpath_var=LD_RUN_PATH
9646 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9647 export_dynamic_flag_spec='${wl}--export-dynamic'
9648 # ancient GNU ld didn't support --whole-archive et. al.
9649 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9650 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9652 whole_archive_flag_spec=
9654 supports_anon_versioning=no
9655 case `$LD -v 2>/dev/null` in
9656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9659 *\ 2.11.*) ;; # other 2.11 versions
9660 *) supports_anon_versioning=yes ;;
9663 # See if GNU ld supports shared libraries.
9665 aix3* | aix4* | aix5*)
9666 # On AIX/PPC, the GNU linker is very broken
9667 if test "$host_cpu" != ia64; then
9671 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9672 *** to be unable to reliably create shared libraries on AIX.
9673 *** Therefore, libtool is disabling shared libraries support. If you
9674 *** really care for shared libraries, you may want to modify your PATH
9675 *** so that a non-GNU linker is found, and then restart.
9682 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)'
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_minus_L=yes
9686 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9687 # that the semantics of dynamic libraries on AmigaOS, at least up
9688 # to version 4, is to share data among multiple programs linked
9689 # with the same dynamic library. Since this doesn't match the
9690 # behavior of shared libraries on other platforms, we can't use
9696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9697 allow_undefined_flag=unsupported
9698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9699 # support --undefined. This deserves some investigation. FIXME
9700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706 cygwin* | mingw* | pw32*)
9707 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9708 # as there is no search path for DLLs.
9709 hardcode_libdir_flag_spec='-L$libdir'
9710 allow_undefined_flag=unsupported
9711 always_export_symbols=no
9712 enable_shared_with_static_runtimes=yes
9713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9715 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9717 # If the export-symbols file already is a .def file (1st line
9718 # is EXPORTS), use it as is; otherwise, prepend...
9719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9720 cp $export_symbols $output_objdir/$soname.def;
9722 echo EXPORTS > $output_objdir/$soname.def;
9723 cat $export_symbols >> $output_objdir/$soname.def;
9725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9733 hardcode_shlibpath_var=no
9734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9735 export_dynamic_flag_spec='${wl}-E'
9736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9737 # Instead, shared libraries are loaded at an image base (0x10000000 by
9738 # default) and relocated if they conflict, which is a slow very memory
9739 # consuming and fragmenting process. To avoid this, we pick a random,
9740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9743 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'
9747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9749 case $cc_basename,$host_cpu in
9750 pgcc*) # Portland Group C compiler
9751 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'
9752 tmp_addflag=' $pic_flag'
9754 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9755 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'
9756 tmp_addflag=' $pic_flag -Mnomain' ;;
9757 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9758 tmp_addflag=' -i_dynamic' ;;
9759 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9760 tmp_addflag=' -i_dynamic -nofor_main' ;;
9761 ifc* | ifort*) # Intel Fortran compiler
9762 tmp_addflag=' -nofor_main' ;;
9764 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766 if test $supports_anon_versioning = yes; then
9767 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9769 $echo "local: *; };" >> $output_objdir/$libname.ver~
9770 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9788 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9793 *** create shared libraries on Solaris systems. Therefore, libtool
9794 *** is disabling shared libraries support. We urge you to upgrade GNU
9795 *** binutils to release 2.9.1 or newer. Another option is to modify
9796 *** your PATH or compiler configuration so that the native linker is
9797 *** used, and then restart.
9800 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9809 case `$LD -v 2>&1` in
9810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9815 *** reliably create shared libraries on SCO systems. Therefore, libtool
9816 *** is disabling shared libraries support. We urge you to upgrade GNU
9817 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9818 *** your PATH or compiler configuration so that the native linker is
9819 *** used, and then restart.
9824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9825 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_shlibpath_var=no
9843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852 if test "$ld_shlibs" = no; then
9854 hardcode_libdir_flag_spec=
9855 export_dynamic_flag_spec=
9856 whole_archive_flag_spec=
9859 # PORTME fill in a description of your system's linker (not GNU ld)
9862 allow_undefined_flag=unsupported
9863 always_export_symbols=yes
9864 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'
9865 # Note: this linker hardcodes the directories in LIBPATH if there
9866 # are no directories specified by -L.
9867 hardcode_minus_L=yes
9868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9869 # Neither direct hardcoding nor static linking is supported with a
9871 hardcode_direct=unsupported
9876 if test "$host_cpu" = ia64; then
9877 # On IA64, the linker does run time linking by default, so we don't
9878 # have to do anything special.
9879 aix_use_runtimelinking=no
9880 exp_sym_flag='-Bexport'
9883 # If we're using GNU nm, then we don't want the "-C" option.
9884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9885 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9886 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'
9888 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'
9890 aix_use_runtimelinking=no
9892 # Test if we are trying to use run time linking or normal
9893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9894 # need to do runtime linking.
9895 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9896 for ld_flag in $LDFLAGS; do
9897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9898 aix_use_runtimelinking=yes
9905 exp_sym_flag='-bexport'
9906 no_entry_flag='-bnoentry'
9909 # When large executables or shared objects are built, AIX ld can
9910 # have problems creating the table of contents. If linking a library
9911 # or program results in "error TOC overflow" add -mminimal-toc to
9912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9917 hardcode_libdir_separator=':'
9918 link_all_deplibs=yes
9920 if test "$GCC" = yes; then
9921 case $host_os in aix4.[012]|aix4.[012].*)
9922 # We only want to do this on AIX 4.2 and lower, the check
9923 # below for broken collect2 doesn't work under 4.3+
9924 collect2name=`${CC} -print-prog-name=collect2`
9925 if test -f "$collect2name" && \
9926 strings "$collect2name" | grep resolve_lib_name >/dev/null
9928 # We have reworked collect2
9931 # We have old collect2
9932 hardcode_direct=unsupported
9933 # It fails to find uninstalled libraries when the uninstalled
9934 # path is not listed in the libpath. Setting hardcode_minus_L
9935 # to unsupported forces relinking
9936 hardcode_minus_L=yes
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_libdir_separator=
9942 shared_flag='-shared'
9943 if test "$aix_use_runtimelinking" = yes; then
9944 shared_flag="$shared_flag "'${wl}-G'
9948 if test "$host_cpu" = ia64; then
9949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9950 # chokes on -Wl,-G. The following line is correct:
9953 if test "$aix_use_runtimelinking" = yes; then
9954 shared_flag='${wl}-G'
9956 shared_flag='${wl}-bM:SRE'
9961 # It seems that -bexpall does not export symbols beginning with
9962 # underscore (_), so it is better to generate a list of symbols to export.
9963 always_export_symbols=yes
9964 if test "$aix_use_runtimelinking" = yes; then
9965 # Warning - without using the other runtime loading flags (-brtl),
9966 # -berok will link without error, but may produce a broken library.
9967 allow_undefined_flag='-berok'
9968 # Determine the default libpath from the value encoded in an empty executable.
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
10003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10005 # Check for a 64-bit object if we didn't find anything.
10006 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016 conftest$ac_exeext conftest.$ac_ext
10017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10020 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"
10022 if test "$host_cpu" = ia64; then
10023 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10024 allow_undefined_flag="-z nodefs"
10025 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"
10027 # Determine the default libpath from the value encoded in an empty executable.
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1 >conftest.err
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest$ac_exeext &&
10060 $as_test_x conftest$ac_exeext; then
10062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10064 # Check for a 64-bit object if we didn't find anything.
10065 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10075 conftest$ac_exeext conftest.$ac_ext
10076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10079 # Warning - without using the other run time loading flags,
10080 # -berok will link without error, but may produce a broken library.
10081 no_undefined_flag=' ${wl}-bernotok'
10082 allow_undefined_flag=' ${wl}-berok'
10083 # Exported symbols can be pulled into shared objects from archives
10084 whole_archive_flag_spec='$convenience'
10085 archive_cmds_need_lc=yes
10086 # This is similar to how AIX traditionally builds its shared libraries.
10087 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'
10093 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)'
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_minus_L=yes
10096 # see comment about different semantics on the GNU ld section
10101 export_dynamic_flag_spec=-rdynamic
10104 cygwin* | mingw* | pw32*)
10105 # When not using gcc, we currently assume that we are using
10106 # Microsoft Visual C++.
10107 # hardcode_libdir_flag_spec is actually meaningless, as there is
10108 # no search path for DLLs.
10109 hardcode_libdir_flag_spec=' '
10110 allow_undefined_flag=unsupported
10111 # Tell ltmain to make .lib files, not .a files.
10113 # Tell ltmain to make .dll files, not .so files.
10115 # FIXME: Setting linknames here is a bad hack.
10116 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10117 # The linker will automatically build a .lib file if we build a DLL.
10118 old_archive_From_new_cmds='true'
10119 # FIXME: Should let the user specify the lib program.
10120 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10121 fix_srcfile_path='`cygpath -w "$srcfile"`'
10122 enable_shared_with_static_runtimes=yes
10125 darwin* | rhapsody*)
10127 rhapsody* | darwin1.[012])
10128 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10131 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10132 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10134 case ${MACOSX_DEPLOYMENT_TARGET} in
10136 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10139 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10145 archive_cmds_need_lc=no
10147 hardcode_automatic=yes
10148 hardcode_shlibpath_var=unsupported
10149 whole_archive_flag_spec=''
10150 link_all_deplibs=yes
10151 if test "$GCC" = yes ; then
10152 output_verbose_link_cmd='echo'
10153 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10154 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10155 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10156 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}'
10157 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}'
10159 case $cc_basename in
10161 output_verbose_link_cmd='echo'
10162 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10163 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10165 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10166 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}'
10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_libdir_flag_spec='-L$libdir'
10178 hardcode_shlibpath_var=no
10185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10186 # support. Future versions do this automatically, but an explicit c++rt0.o
10187 # does not break anything, and helps significantly (at the cost of a little
10190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10191 hardcode_libdir_flag_spec='-R$libdir'
10192 hardcode_direct=yes
10193 hardcode_shlibpath_var=no
10196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct=yes
10200 hardcode_minus_L=yes
10201 hardcode_shlibpath_var=no
10204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10205 freebsd* | kfreebsd*-gnu | dragonfly*)
10206 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10213 if test "$GCC" = yes; then
10214 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'
10216 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'
10218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219 hardcode_libdir_separator=:
10220 hardcode_direct=yes
10222 # hardcode_minus_L: Not really in the search PATH,
10223 # but as the default location of the library.
10224 hardcode_minus_L=yes
10225 export_dynamic_flag_spec='${wl}-E'
10229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10230 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10234 if test "$with_gnu_ld" = no; then
10235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10236 hardcode_libdir_separator=:
10238 hardcode_direct=yes
10239 export_dynamic_flag_spec='${wl}-E'
10241 # hardcode_minus_L: Not really in the search PATH,
10242 # but as the default location of the library.
10243 hardcode_minus_L=yes
10248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10251 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10273 if test "$with_gnu_ld" = no; then
10274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10275 hardcode_libdir_separator=:
10279 hardcode_libdir_flag_spec_ld='+b $libdir'
10281 hardcode_shlibpath_var=no
10284 hardcode_direct=yes
10285 export_dynamic_flag_spec='${wl}-E'
10287 # hardcode_minus_L: Not really in the search PATH,
10288 # but as the default location of the library.
10289 hardcode_minus_L=yes
10295 irix5* | irix6* | nonstopux*)
10296 if test "$GCC" = yes; then
10297 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'
10299 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'
10300 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10303 hardcode_libdir_separator=:
10304 link_all_deplibs=yes
10308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10311 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10313 hardcode_libdir_flag_spec='-R$libdir'
10314 hardcode_direct=yes
10315 hardcode_shlibpath_var=no
10319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320 hardcode_direct=yes
10321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10322 hardcode_libdir_separator=:
10323 hardcode_shlibpath_var=no
10327 hardcode_direct=yes
10328 hardcode_shlibpath_var=no
10329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10330 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10333 export_dynamic_flag_spec='${wl}-E'
10336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10338 hardcode_libdir_flag_spec='-R$libdir'
10341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10349 hardcode_libdir_flag_spec='-L$libdir'
10350 hardcode_minus_L=yes
10351 allow_undefined_flag=unsupported
10352 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'
10353 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10357 if test "$GCC" = yes; then
10358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10359 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'
10361 allow_undefined_flag=' -expect_unresolved \*'
10362 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'
10364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10365 hardcode_libdir_separator=:
10368 osf4* | osf5*) # as osf3* with the addition of -msym flag
10369 if test "$GCC" = yes; then
10370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10371 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'
10372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374 allow_undefined_flag=' -expect_unresolved \*'
10375 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'
10376 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10377 $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'
10379 # Both c and cxx compiler support -rpath directly
10380 hardcode_libdir_flag_spec='-rpath $libdir'
10382 hardcode_libdir_separator=:
10386 no_undefined_flag=' -z text'
10387 if test "$GCC" = yes; then
10389 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10390 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10398 hardcode_libdir_flag_spec='-R$libdir'
10399 hardcode_shlibpath_var=no
10401 solaris2.[0-5] | solaris2.[0-5].*) ;;
10403 # The compiler driver will combine linker options so we
10404 # cannot just pass the convience library names through
10405 # without $wl, iff we do not link with $LD.
10406 # Luckily, gcc supports the same syntax we need for Sun Studio.
10407 # Supported since Solaris 2.6 (maybe 2.5.1?)
10410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10412 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10415 link_all_deplibs=yes
10419 if test "x$host_vendor" = xsequent; then
10420 # Use $CC to link under sequent, because it throws in some extra .o
10421 # files that make .init and .fini sections work.
10422 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_direct=yes
10428 hardcode_minus_L=yes
10429 hardcode_shlibpath_var=no
10433 case $host_vendor in
10435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436 hardcode_direct=yes # is this really true???
10439 ## LD is ld it makes a PLAMLIB
10440 ## CC just makes a GrossModule.
10441 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10442 reload_cmds='$CC -r -o $output$reload_objs'
10446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10447 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10450 runpath_var='LD_RUN_PATH'
10451 hardcode_shlibpath_var=no
10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456 hardcode_shlibpath_var=no
10457 export_dynamic_flag_spec='-Bexport'
10461 if test -d /usr/nec; then
10462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10463 hardcode_shlibpath_var=no
10464 runpath_var=LD_RUN_PATH
10465 hardcode_runpath_var=yes
10470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10471 no_undefined_flag='${wl}-z,text'
10472 archive_cmds_need_lc=no
10473 hardcode_shlibpath_var=no
10474 runpath_var='LD_RUN_PATH'
10476 if test "$GCC" = yes; then
10477 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10478 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 sysv5* | sco3.2v5* | sco5v6*)
10486 # Note: We can NOT use -z defs as we might desire, because we do not
10487 # link with -lc, and that would cause any symbols used from libc to
10488 # always be unresolved, which means just about no library would
10489 # ever link correctly. If we're not using GNU ld we use -z text
10490 # though, which does catch some bad symbols but isn't as heavy-handed
10492 no_undefined_flag='${wl}-z,text'
10493 allow_undefined_flag='${wl}-z,nodefs'
10494 archive_cmds_need_lc=no
10495 hardcode_shlibpath_var=no
10496 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10497 hardcode_libdir_separator=':'
10498 link_all_deplibs=yes
10499 export_dynamic_flag_spec='${wl}-Bexport'
10500 runpath_var='LD_RUN_PATH'
10502 if test "$GCC" = yes; then
10503 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10506 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10513 hardcode_libdir_flag_spec='-L$libdir'
10514 hardcode_shlibpath_var=no
10523 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10524 echo "${ECHO_T}$ld_shlibs" >&6; }
10525 test "$ld_shlibs" = no && can_build_shared=no
10528 # Do we need to explicitly link libc?
10530 case "x$archive_cmds_need_lc" in
10532 # Assume -lc should be added
10533 archive_cmds_need_lc=yes
10535 if test "$enable_shared" = yes && test "$GCC" = yes; then
10536 case $archive_cmds in
10538 # FIXME: we may have to deal with multi-command sequences.
10541 # Test whether the compiler implicitly links with -lc since on some
10542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10543 # to ld, don't add -lc before -lgcc.
10544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550 (eval $ac_compile) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } 2>conftest.err; then
10556 libobjs=conftest.$ac_objext
10558 wl=$lt_prog_compiler_wl
10559 pic_flag=$lt_prog_compiler_pic
10565 lt_save_allow_undefined_flag=$allow_undefined_flag
10566 allow_undefined_flag=
10567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10568 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }
10573 archive_cmds_need_lc=no
10575 archive_cmds_need_lc=yes
10577 allow_undefined_flag=$lt_save_allow_undefined_flag
10579 cat conftest.err 1>&5
10582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10583 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10592 library_names_spec=
10593 libname_spec='lib$name'
10597 postuninstall_cmds=
10601 shlibpath_overrides_runpath=unknown
10603 dynamic_linker="$host_os ld.so"
10604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10605 if test "$GCC" = yes; then
10606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10607 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10608 # if the path contains ";" then we assume it to be the separator
10609 # otherwise default to the standard path separator (i.e. ":") - it is
10610 # assumed that no part of a normal pathname contains ";" but that should
10611 # okay in the real world where ";" in dirpaths is itself problematic.
10612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10619 need_lib_prefix=unknown
10620 hardcode_into_libs=no
10622 # when you set need_version to no, make sure it does not cause -set_version
10623 # flags to be left without arguments
10624 need_version=unknown
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10630 shlibpath_var=LIBPATH
10632 # AIX 3 has no versioning support, so we append a major version to the name.
10633 soname_spec='${libname}${release}${shared_ext}$major'
10640 hardcode_into_libs=yes
10641 if test "$host_cpu" = ia64; then
10642 # AIX 5 supports IA64
10643 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10644 shlibpath_var=LD_LIBRARY_PATH
10646 # With GCC up to 2.95.x, collect2 would create an import file
10647 # for dependence libraries. The import file would start with
10648 # the line `#! .'. This would cause the generated library to
10649 # depend on `.', always an invalid library. This was fixed in
10650 # development snapshots of GCC prior to 3.0.
10652 aix4 | aix4.[01] | aix4.[01].*)
10653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10655 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10658 can_build_shared=no
10662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10663 # soname into executable. Probably we can add versioning support to
10664 # collect2, so additional links can be useful in future.
10665 if test "$aix_use_runtimelinking" = yes; then
10666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10667 # instead of lib<name>.a to let people know that these are not
10668 # typical AIX shared libraries.
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 # We preserve .a as extension for shared libraries through AIX4.2
10672 # and later when we are not doing run time linking.
10673 library_names_spec='${libname}${release}.a $libname.a'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10676 shlibpath_var=LIBPATH
10681 library_names_spec='$libname.ixlibrary $libname.a'
10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683 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'
10687 library_names_spec='${libname}${shared_ext}'
10688 dynamic_linker="$host_os ld.so"
10689 shlibpath_var=LIBRARY_PATH
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10701 # the default ld.so.conf also contains /usr/contrib/lib and
10702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10703 # libtool to hard-code these into programs
10706 cygwin* | mingw* | pw32*)
10707 version_type=windows
10712 case $GCC,$host_os in
10713 yes,cygwin* | yes,mingw* | yes,pw32*)
10714 library_names_spec='$libname.dll.a'
10715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716 postinstall_cmds='base_file=`basename \${file}`~
10717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10718 dldir=$destdir/`dirname \$dlpath`~
10719 test -d \$dldir || mkdir -p \$dldir~
10720 $install_prog $dir/$dlname \$dldir/$dlname~
10721 chmod a+x \$dldir/$dlname'
10722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10723 dlpath=$dir/\$dldll~
10725 shlibpath_overrides_runpath=yes
10729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10731 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10734 # MinGW DLLs use traditional 'lib' prefix
10735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10737 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10738 # It is most probably a Windows format PATH printed by
10739 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10740 # path with ; separators, and with drive letters. We can handle the
10741 # drive letters (cygwin fileutils understands them), so leave them,
10742 # especially as we might pass files found there to a mingw objdump,
10743 # which wouldn't understand a cygwinified path. Ahh.
10744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10750 # pw32 DLLs use 'pw' prefix rather than 'lib'
10751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10760 dynamic_linker='Win32 ld.exe'
10761 # FIXME: first we should search . and the directory the executable is in
10765 darwin* | rhapsody*)
10766 dynamic_linker="$host_os dyld"
10767 version_type=darwin
10770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10771 soname_spec='${libname}${release}${major}$shared_ext'
10772 shlibpath_overrides_runpath=yes
10773 shlibpath_var=DYLD_LIBRARY_PATH
10774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10776 if test "$GCC" = yes; then
10777 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10779 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 shlibpath_var=LD_LIBRARY_PATH
10804 shlibpath_overrides_runpath=no
10805 hardcode_into_libs=yes
10806 dynamic_linker='GNU ld.so'
10809 freebsd* | dragonfly*)
10810 # DragonFly does not have aout. When/if they implement a new
10811 # versioning mechanism, adjust this.
10812 if test -x /usr/bin/objformat; then
10813 objformat=`/usr/bin/objformat`
10816 freebsd[123]*) objformat=aout ;;
10817 *) objformat=elf ;;
10820 version_type=freebsd-$objformat
10821 case $version_type in
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10832 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=yes
10837 freebsd3.[01]* | freebsdelf3.[01]*)
10838 shlibpath_overrides_runpath=yes
10839 hardcode_into_libs=yes
10841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10843 shlibpath_overrides_runpath=no
10844 hardcode_into_libs=yes
10846 freebsd*) # from 4.6 on
10847 shlibpath_overrides_runpath=yes
10848 hardcode_into_libs=yes
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 hardcode_into_libs=yes
10863 hpux9* | hpux10* | hpux11*)
10864 # Give a soname corresponding to the major version so that dld.sl refuses to
10865 # link against other versions.
10872 hardcode_into_libs=yes
10873 dynamic_linker="$host_os dld.so"
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877 soname_spec='${libname}${release}${shared_ext}$major'
10878 if test "X$HPUX_IA64_MODE" = X32; then
10879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887 hardcode_into_libs=yes
10888 dynamic_linker="$host_os dld.sl"
10889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10898 dynamic_linker="$host_os dld.sl"
10899 shlibpath_var=SHLIB_PATH
10900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10906 postinstall_cmds='chmod 555 $lib'
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=no
10918 hardcode_into_libs=yes
10921 irix5* | irix6* | nonstopux*)
10923 nonstopux*) version_type=nonstopux ;;
10925 if test "$lt_cv_prog_gnu_ld" = yes; then
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10936 irix5* | nonstopux*)
10937 libsuff= shlibsuff=
10940 case $LD in # libtool.m4 will add one of these switches to LD
10941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10942 libsuff= shlibsuff= libmagic=32-bit;;
10943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10944 libsuff=32 shlibsuff=N32 libmagic=N32;;
10945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10947 *) libsuff= shlibsuff= libmagic=never-match;;
10951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10952 shlibpath_overrides_runpath=no
10953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10955 hardcode_into_libs=yes
10958 # No shared lib support for Linux oldld, aout, or coff.
10959 linux*oldld* | linux*aout* | linux*coff*)
10963 # This must be Linux ELF.
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=no
10973 # This implies no fast_install, which is unacceptable.
10974 # Some rework will be needed to allow for fast_install
10975 # before this can be enabled.
10976 hardcode_into_libs=yes
10978 # Append ld.so.conf contents to the search path
10979 if test -f /etc/ld.so.conf; then
10980 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10984 # We used to test for /lib/ld.so.1 and disable shared libraries on
10985 # powerpc, because MkLinux only supported shared libraries with the
10986 # GNU dynamic linker. Since this was broken with cross compilers,
10987 # most powerpc-linux boxes support dynamic linking these days and
10988 # people can always --disable-shared, the test was removed, and we
10989 # assume the GNU/Linux dynamic linker is in use.
10990 dynamic_linker='GNU/Linux ld.so'
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=no
11001 hardcode_into_libs=yes
11002 dynamic_linker='GNU ld.so'
11009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11012 dynamic_linker='NetBSD (a.out) ld.so'
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 dynamic_linker='NetBSD ld.elf_so'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 hardcode_into_libs=yes
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11042 sys_lib_dlsearch_path_spec="/usr/lib"
11044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11047 *) need_version=no ;;
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11054 openbsd2.[89] | openbsd2.[89].*)
11055 shlibpath_overrides_runpath=no
11058 shlibpath_overrides_runpath=yes
11062 shlibpath_overrides_runpath=yes
11067 libname_spec='$name'
11070 library_names_spec='$libname${shared_ext} $libname.a'
11071 dynamic_linker='OS/2 ld.exe'
11072 shlibpath_var=LIBPATH
11075 osf3* | osf4* | osf5*)
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=yes
11094 hardcode_into_libs=yes
11095 # ldd complains unless libraries are executable
11096 postinstall_cmds='chmod +x $lib'
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 if test "$with_gnu_ld" = yes; then
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 case $host_vendor in
11118 shlibpath_overrides_runpath=no
11120 export_dynamic_flag_spec='${wl}-Blargedynsym'
11121 runpath_var=LD_RUN_PATH
11129 shlibpath_overrides_runpath=no
11130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11136 if test -d /usr/nec ;then
11138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11139 soname_spec='$libname${shared_ext}.$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11144 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11145 version_type=freebsd-elf
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 hardcode_into_libs=yes
11152 if test "$with_gnu_ld" = yes; then
11153 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11154 shlibpath_overrides_runpath=no
11156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11157 shlibpath_overrides_runpath=yes
11160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11164 sys_lib_dlsearch_path_spec='/usr/lib'
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11178 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11179 echo "${ECHO_T}$dynamic_linker" >&6; }
11180 test "$dynamic_linker" = no && can_build_shared=no
11182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11183 if test "$GCC" = yes; then
11184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11187 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11188 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11190 if test -n "$hardcode_libdir_flag_spec" || \
11191 test -n "$runpath_var" || \
11192 test "X$hardcode_automatic" = "Xyes" ; then
11194 # We can hardcode non-existant directories.
11195 if test "$hardcode_direct" != no &&
11196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11197 # have to relink, otherwise we might link with an installed library
11198 # when we should be linking with a yet-to-be-installed one
11199 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11200 test "$hardcode_minus_L" != no; then
11201 # Linking always hardcodes the temporary library directory.
11202 hardcode_action=relink
11204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11205 hardcode_action=immediate
11208 # We cannot hardcode anything, or else we can only hardcode existing
11210 hardcode_action=unsupported
11212 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11213 echo "${ECHO_T}$hardcode_action" >&6; }
11215 if test "$hardcode_action" = relink; then
11216 # Fast installation is not supported
11217 enable_fast_install=no
11218 elif test "$shlibpath_overrides_runpath" = yes ||
11219 test "$enable_shared" = no; then
11220 # Fast installation is not necessary
11221 enable_fast_install=needless
11226 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11227 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11228 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11229 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11230 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11231 { echo "$as_me:$LINENO: result: yes" >&5
11232 echo "${ECHO_T}yes" >&6; }
11234 # FIXME - insert some real tests, host_os isn't really good enough
11237 if test -n "$STRIP" ; then
11238 striplib="$STRIP -x"
11239 { echo "$as_me:$LINENO: result: yes" >&5
11240 echo "${ECHO_T}yes" >&6; }
11242 { echo "$as_me:$LINENO: result: no" >&5
11243 echo "${ECHO_T}no" >&6; }
11247 { echo "$as_me:$LINENO: result: no" >&5
11248 echo "${ECHO_T}no" >&6; }
11253 if test "x$enable_dlopen" != xyes; then
11254 enable_dlopen=unknown
11255 enable_dlopen_self=unknown
11256 enable_dlopen_self_static=unknown
11263 lt_cv_dlopen="load_add_on"
11265 lt_cv_dlopen_self=yes
11269 lt_cv_dlopen="LoadLibrary"
11274 lt_cv_dlopen="dlopen"
11279 # if libdl is installed we need to link against it
11280 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11281 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 ac_check_lib_save_LIBS=$LIBS
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11309 rm -f conftest.$ac_objext conftest$ac_exeext
11310 if { (ac_try="$ac_link"
11311 case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_link") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest$ac_exeext &&
11326 $as_test_x conftest$ac_exeext; then
11327 ac_cv_lib_dl_dlopen=yes
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_cv_lib_dl_dlopen=no
11335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11336 conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11339 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11341 if test $ac_cv_lib_dl_dlopen = yes; then
11342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11345 lt_cv_dlopen="dyld"
11347 lt_cv_dlopen_self=yes
11354 { echo "$as_me:$LINENO: checking for shl_load" >&5
11355 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11356 if test "${ac_cv_func_shl_load+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 cat >conftest.$ac_ext <<_ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11367 #define shl_load innocuous_shl_load
11369 /* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char shl_load (); below.
11371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11372 <limits.h> exists even on freestanding compilers. */
11375 # include <limits.h>
11377 # include <assert.h>
11382 /* Override any GCC internal prototype to avoid an error.
11383 Use char because int might match the return type of a GCC
11384 builtin and then its argument prototype would still apply. */
11389 /* The GNU C library defines this for functions which it implements
11390 to always fail with ENOSYS. Some functions are actually named
11391 something starting with __ and the normal name is an alias. */
11392 #if defined __stub_shl_load || defined __stub___shl_load
11399 return shl_load ();
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (ac_try="$ac_link"
11406 case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_link") 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest$ac_exeext &&
11421 $as_test_x conftest$ac_exeext; then
11422 ac_cv_func_shl_load=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_cv_func_shl_load=no
11430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11431 conftest$ac_exeext conftest.$ac_ext
11433 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11434 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11435 if test $ac_cv_func_shl_load = yes; then
11436 lt_cv_dlopen="shl_load"
11438 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11439 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11440 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 ac_check_lib_save_LIBS=$LIBS
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11452 /* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11462 return shl_load ();
11467 rm -f conftest.$ac_objext conftest$ac_exeext
11468 if { (ac_try="$ac_link"
11469 case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474 (eval "$ac_link") 2>conftest.er1
11476 grep -v '^ *+' conftest.er1 >conftest.err
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && {
11481 test -z "$ac_c_werror_flag" ||
11482 test ! -s conftest.err
11483 } && test -s conftest$ac_exeext &&
11484 $as_test_x conftest$ac_exeext; then
11485 ac_cv_lib_dld_shl_load=yes
11487 echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11490 ac_cv_lib_dld_shl_load=no
11493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11494 conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11498 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11499 if test $ac_cv_lib_dld_shl_load = yes; then
11500 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11502 { echo "$as_me:$LINENO: checking for dlopen" >&5
11503 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11504 if test "${ac_cv_func_dlopen+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11515 #define dlopen innocuous_dlopen
11517 /* System header to define __stub macros and hopefully few prototypes,
11518 which can conflict with char dlopen (); below.
11519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520 <limits.h> exists even on freestanding compilers. */
11523 # include <limits.h>
11525 # include <assert.h>
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11537 /* The GNU C library defines this for functions which it implements
11538 to always fail with ENOSYS. Some functions are actually named
11539 something starting with __ and the normal name is an alias. */
11540 #if defined __stub_dlopen || defined __stub___dlopen
11552 rm -f conftest.$ac_objext conftest$ac_exeext
11553 if { (ac_try="$ac_link"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_link") 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } && {
11566 test -z "$ac_c_werror_flag" ||
11567 test ! -s conftest.err
11568 } && test -s conftest$ac_exeext &&
11569 $as_test_x conftest$ac_exeext; then
11570 ac_cv_func_dlopen=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ac_cv_func_dlopen=no
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579 conftest$ac_exeext conftest.$ac_ext
11581 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11582 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11583 if test $ac_cv_func_dlopen = yes; then
11584 lt_cv_dlopen="dlopen"
11586 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11587 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11588 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 ac_check_lib_save_LIBS=$LIBS
11593 cat >conftest.$ac_ext <<_ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h. */
11600 /* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest$ac_exeext &&
11632 $as_test_x conftest$ac_exeext; then
11633 ac_cv_lib_dl_dlopen=yes
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11638 ac_cv_lib_dl_dlopen=no
11641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11647 if test $ac_cv_lib_dl_dlopen = yes; then
11648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11650 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11651 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11652 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-lsvld $LIBS"
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (ac_try="$ac_link"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_link") 2>conftest.er1
11688 grep -v '^ *+' conftest.er1 >conftest.err
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest$ac_exeext &&
11696 $as_test_x conftest$ac_exeext; then
11697 ac_cv_lib_svld_dlopen=yes
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 ac_cv_lib_svld_dlopen=no
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11709 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11710 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11711 if test $ac_cv_lib_svld_dlopen = yes; then
11712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11714 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11715 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 ac_check_lib_save_LIBS=$LIBS
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11728 /* Override any GCC internal prototype to avoid an error.
11729 Use char because int might match the return type of a GCC
11730 builtin and then its argument prototype would still apply. */
11738 return dld_link ();
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (ac_try="$ac_link"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_link") 2>conftest.er1
11752 grep -v '^ *+' conftest.er1 >conftest.err
11754 cat conftest.err >&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); } && {
11757 test -z "$ac_c_werror_flag" ||
11758 test ! -s conftest.err
11759 } && test -s conftest$ac_exeext &&
11760 $as_test_x conftest$ac_exeext; then
11761 ac_cv_lib_dld_dld_link=yes
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 ac_cv_lib_dld_dld_link=no
11769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11770 conftest$ac_exeext conftest.$ac_ext
11771 LIBS=$ac_check_lib_save_LIBS
11773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11774 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11775 if test $ac_cv_lib_dld_dld_link = yes; then
11776 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11797 if test "x$lt_cv_dlopen" != xno; then
11803 case $lt_cv_dlopen in
11805 save_CPPFLAGS="$CPPFLAGS"
11806 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11808 save_LDFLAGS="$LDFLAGS"
11809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11812 LIBS="$lt_cv_dlopen_libs $LIBS"
11814 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11815 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11816 if test "${lt_cv_dlopen_self+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 if test "$cross_compiling" = yes; then :
11820 lt_cv_dlopen_self=cross
11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823 lt_status=$lt_dlunknown
11824 cat > conftest.$ac_ext <<EOF
11825 #line 11825 "configure"
11826 #include "confdefs.h"
11835 # define LT_DLGLOBAL RTLD_GLOBAL
11838 # define LT_DLGLOBAL DL_GLOBAL
11840 # define LT_DLGLOBAL 0
11844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845 find out it does not work in some platform. */
11846 #ifndef LT_DLLAZY_OR_NOW
11848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11851 # define LT_DLLAZY_OR_NOW DL_LAZY
11854 # define LT_DLLAZY_OR_NOW RTLD_NOW
11857 # define LT_DLLAZY_OR_NOW DL_NOW
11859 # define LT_DLLAZY_OR_NOW 0
11867 extern "C" void exit (int);
11870 void fnord() { int i=42;}
11873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11874 int status = $lt_dlunknown;
11878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11879 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880 /* dlclose (self); */
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11893 (./conftest; exit; ) >&5 2>/dev/null
11895 case x$lt_status in
11896 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11897 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11898 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11901 # compilation failed
11902 lt_cv_dlopen_self=no
11909 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11910 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11912 if test "x$lt_cv_dlopen_self" = xyes; then
11913 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11914 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11915 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11916 if test "${lt_cv_dlopen_self_static+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 if test "$cross_compiling" = yes; then :
11920 lt_cv_dlopen_self_static=cross
11922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11923 lt_status=$lt_dlunknown
11924 cat > conftest.$ac_ext <<EOF
11925 #line 11925 "configure"
11926 #include "confdefs.h"
11935 # define LT_DLGLOBAL RTLD_GLOBAL
11938 # define LT_DLGLOBAL DL_GLOBAL
11940 # define LT_DLGLOBAL 0
11944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11945 find out it does not work in some platform. */
11946 #ifndef LT_DLLAZY_OR_NOW
11948 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11951 # define LT_DLLAZY_OR_NOW DL_LAZY
11954 # define LT_DLLAZY_OR_NOW RTLD_NOW
11957 # define LT_DLLAZY_OR_NOW DL_NOW
11959 # define LT_DLLAZY_OR_NOW 0
11967 extern "C" void exit (int);
11970 void fnord() { int i=42;}
11973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11974 int status = $lt_dlunknown;
11978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11980 /* dlclose (self); */
11988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11989 (eval $ac_link) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11993 (./conftest; exit; ) >&5 2>/dev/null
11995 case x$lt_status in
11996 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11997 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11998 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12001 # compilation failed
12002 lt_cv_dlopen_self_static=no
12009 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12010 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12013 CPPFLAGS="$save_CPPFLAGS"
12014 LDFLAGS="$save_LDFLAGS"
12019 case $lt_cv_dlopen_self in
12020 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12021 *) enable_dlopen_self=unknown ;;
12024 case $lt_cv_dlopen_self_static in
12025 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12026 *) enable_dlopen_self_static=unknown ;;
12031 # Report which library types will actually be built
12032 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12033 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12034 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12035 echo "${ECHO_T}$can_build_shared" >&6; }
12037 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12038 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12039 test "$can_build_shared" = "no" && enable_shared=no
12041 # On AIX, shared libraries and static libraries use the same namespace, and
12042 # are all built from PIC.
12045 test "$enable_shared" = yes && enable_static=no
12046 if test -n "$RANLIB"; then
12047 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12048 postinstall_cmds='$RANLIB $lib'
12053 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12054 test "$enable_shared" = yes && enable_static=no
12058 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12059 echo "${ECHO_T}$enable_shared" >&6; }
12061 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12062 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12063 # Make sure either enable_shared or enable_static is yes.
12064 test "$enable_shared" = yes || enable_static=yes
12065 { echo "$as_me:$LINENO: result: $enable_static" >&5
12066 echo "${ECHO_T}$enable_static" >&6; }
12068 # The else clause should only fire when bootstrapping the
12069 # libtool distribution, otherwise you forgot to ship ltmain.sh
12070 # with your package, and you will get complaints that there are
12071 # no rules to generate ltmain.sh.
12072 if test -f "$ltmain"; then
12073 # See if we are running on zsh, and set the options which allow our commands through
12074 # without removal of \ escapes.
12075 if test -n "${ZSH_VERSION+set}" ; then
12076 setopt NO_GLOB_SUBST
12078 # Now quote all the things that may contain metacharacters while being
12079 # careful not to overquote the AC_SUBSTed values. We take copies of the
12080 # variables and quote the copies for generation of the libtool script.
12081 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12083 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12084 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12085 deplibs_check_method reload_flag reload_cmds need_locks \
12086 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12087 lt_cv_sys_global_symbol_to_c_name_address \
12088 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12089 old_postinstall_cmds old_postuninstall_cmds \
12093 lt_prog_compiler_wl \
12094 lt_prog_compiler_pic \
12095 lt_prog_compiler_static \
12096 lt_prog_compiler_no_builtin_flag \
12097 export_dynamic_flag_spec \
12098 thread_safe_flag_spec \
12099 whole_archive_flag_spec \
12100 enable_shared_with_static_runtimes \
12102 old_archive_from_new_cmds \
12107 compiler_lib_search_path \
12109 archive_expsym_cmds \
12111 postuninstall_cmds \
12112 old_archive_from_expsyms_cmds \
12113 allow_undefined_flag \
12114 no_undefined_flag \
12115 export_symbols_cmds \
12116 hardcode_libdir_flag_spec \
12117 hardcode_libdir_flag_spec_ld \
12118 hardcode_libdir_separator \
12119 hardcode_automatic \
12121 module_expsym_cmds \
12122 lt_cv_prog_compiler_c_o \
12124 include_expsyms; do
12127 old_archive_cmds | \
12128 old_archive_from_new_cmds | \
12130 archive_expsym_cmds | \
12132 module_expsym_cmds | \
12133 old_archive_from_expsyms_cmds | \
12134 export_symbols_cmds | \
12135 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12136 postinstall_cmds | postuninstall_cmds | \
12137 old_postinstall_cmds | old_postuninstall_cmds | \
12138 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12139 # Double-quote double-evaled strings.
12140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12149 *'\$0 --fallback-echo"')
12150 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12154 cfgfile="${ofile}T"
12155 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12157 { echo "$as_me:$LINENO: creating $ofile" >&5
12158 echo "$as_me: creating $ofile" >&6;}
12160 cat <<__EOF__ >> "$cfgfile"
12163 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12164 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12165 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12167 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12168 # Free Software Foundation, Inc.
12170 # This file is part of GNU Libtool:
12171 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12173 # This program is free software; you can redistribute it and/or modify
12174 # it under the terms of the GNU General Public License as published by
12175 # the Free Software Foundation; either version 2 of the License, or
12176 # (at your option) any later version.
12178 # This program is distributed in the hope that it will be useful, but
12179 # WITHOUT ANY WARRANTY; without even the implied warranty of
12180 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12181 # General Public License for more details.
12183 # You should have received a copy of the GNU General Public License
12184 # along with this program; if not, write to the Free Software
12185 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12187 # As a special exception to the GNU General Public License, if you
12188 # distribute this file as part of a program that contains a
12189 # configuration script generated by Autoconf, you may include it under
12190 # the same distribution terms that you use for the rest of that program.
12192 # A sed program that does not truncate output.
12195 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12196 Xsed="$SED -e 1s/^X//"
12198 # The HP-UX ksh and POSIX shell print the target directory to stdout
12199 # if CDPATH is set.
12200 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12202 # The names of the tagged configurations supported by this script.
12205 # ### BEGIN LIBTOOL CONFIG
12207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12209 # Shell to use when invoking shell scripts.
12212 # Whether or not to build shared libraries.
12213 build_libtool_libs=$enable_shared
12215 # Whether or not to build static libraries.
12216 build_old_libs=$enable_static
12218 # Whether or not to add -lc for building shared libraries.
12219 build_libtool_need_lc=$archive_cmds_need_lc
12221 # Whether or not to disallow shared libs when runtime libs are static
12222 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12224 # Whether or not to optimize for fast installation.
12225 fast_install=$enable_fast_install
12228 host_alias=$host_alias
12232 # The build system.
12233 build_alias=$build_alias
12237 # An echo program that does not interpret backslashes.
12242 AR_FLAGS=$lt_AR_FLAGS
12247 # LTCC compiler flags.
12248 LTCFLAGS=$lt_LTCFLAGS
12250 # A language-specific compiler.
12253 # Is the compiler the GNU C compiler?
12259 # The linker used to build libraries.
12262 # Whether we need hard or soft links.
12265 # A BSD-compatible nm program.
12268 # A symbol stripping program
12271 # Used to examine libraries when file_magic_cmd begins "file"
12272 MAGIC_CMD=$MAGIC_CMD
12274 # Used on cygwin: DLL creation program.
12277 # Used on cygwin: object dumper.
12280 # Used on cygwin: assembler.
12283 # The name of the directory that contains temporary libtool files.
12286 # How to create reloadable object files.
12287 reload_flag=$lt_reload_flag
12288 reload_cmds=$lt_reload_cmds
12290 # How to pass a linker flag through the compiler.
12291 wl=$lt_lt_prog_compiler_wl
12293 # Object file suffix (normally "o").
12294 objext="$ac_objext"
12296 # Old archive suffix (normally "a").
12299 # Shared library suffix (normally ".so").
12300 shrext_cmds='$shrext_cmds'
12302 # Executable file suffix (normally "").
12305 # Additional compiler flags for building library objects.
12306 pic_flag=$lt_lt_prog_compiler_pic
12309 # What is the maximum length of a command?
12310 max_cmd_len=$lt_cv_sys_max_cmd_len
12312 # Does compiler simultaneously support -c and -o options?
12313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12315 # Must we lock files when doing compilation?
12316 need_locks=$lt_need_locks
12318 # Do we need the lib prefix for modules?
12319 need_lib_prefix=$need_lib_prefix
12321 # Do we need a version for libraries?
12322 need_version=$need_version
12324 # Whether dlopen is supported.
12325 dlopen_support=$enable_dlopen
12327 # Whether dlopen of programs is supported.
12328 dlopen_self=$enable_dlopen_self
12330 # Whether dlopen of statically linked programs is supported.
12331 dlopen_self_static=$enable_dlopen_self_static
12333 # Compiler flag to prevent dynamic linking.
12334 link_static_flag=$lt_lt_prog_compiler_static
12336 # Compiler flag to turn off builtin functions.
12337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12339 # Compiler flag to allow reflexive dlopens.
12340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12342 # Compiler flag to generate shared objects directly from archives.
12343 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12345 # Compiler flag to generate thread-safe objects.
12346 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12348 # Library versioning type.
12349 version_type=$version_type
12351 # Format of library name prefix.
12352 libname_spec=$lt_libname_spec
12354 # List of archive names. First name is the real one, the rest are links.
12355 # The last name is the one that the linker finds with -lNAME.
12356 library_names_spec=$lt_library_names_spec
12358 # The coded name of the library, if different from the real name.
12359 soname_spec=$lt_soname_spec
12361 # Commands used to build and install an old-style archive.
12363 old_archive_cmds=$lt_old_archive_cmds
12364 old_postinstall_cmds=$lt_old_postinstall_cmds
12365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12367 # Create an old-style archive from a shared archive.
12368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12370 # Create a temporary old-style archive to link instead of a shared archive.
12371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12373 # Commands used to build and install a shared archive.
12374 archive_cmds=$lt_archive_cmds
12375 archive_expsym_cmds=$lt_archive_expsym_cmds
12376 postinstall_cmds=$lt_postinstall_cmds
12377 postuninstall_cmds=$lt_postuninstall_cmds
12379 # Commands used to build a loadable module (assumed same as above if empty)
12380 module_cmds=$lt_module_cmds
12381 module_expsym_cmds=$lt_module_expsym_cmds
12383 # Commands to strip libraries.
12384 old_striplib=$lt_old_striplib
12385 striplib=$lt_striplib
12387 # Dependencies to place before the objects being linked to create a
12389 predep_objects=$lt_predep_objects
12391 # Dependencies to place after the objects being linked to create a
12393 postdep_objects=$lt_postdep_objects
12395 # Dependencies to place before the objects being linked to create a
12397 predeps=$lt_predeps
12399 # Dependencies to place after the objects being linked to create a
12401 postdeps=$lt_postdeps
12403 # The library search path used internally by the compiler when linking
12404 # a shared library.
12405 compiler_lib_search_path=$lt_compiler_lib_search_path
12407 # Method to check whether dependent libraries are shared objects.
12408 deplibs_check_method=$lt_deplibs_check_method
12410 # Command to use when deplibs_check_method == file_magic.
12411 file_magic_cmd=$lt_file_magic_cmd
12413 # Flag that allows shared libraries with undefined symbols to be built.
12414 allow_undefined_flag=$lt_allow_undefined_flag
12416 # Flag that forces no undefined symbols.
12417 no_undefined_flag=$lt_no_undefined_flag
12419 # Commands used to finish a libtool library installation in a directory.
12420 finish_cmds=$lt_finish_cmds
12422 # Same as above, but a single script fragment to be evaled but not shown.
12423 finish_eval=$lt_finish_eval
12425 # Take the output of nm and produce a listing of raw symbols and C names.
12426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12428 # Transform the output of nm in a proper C declaration
12429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12431 # Transform the output of nm in a C name address pair
12432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12434 # This is the shared library runtime path variable.
12435 runpath_var=$runpath_var
12437 # This is the shared library path variable.
12438 shlibpath_var=$shlibpath_var
12440 # Is shlibpath searched before the hard-coded library search path?
12441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12443 # How to hardcode a shared library path into an executable.
12444 hardcode_action=$hardcode_action
12446 # Whether we should hardcode library paths into libraries.
12447 hardcode_into_libs=$hardcode_into_libs
12449 # Flag to hardcode \$libdir into a binary during linking.
12450 # This must work even if \$libdir does not exist.
12451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12453 # If ld is used when linking, flag to hardcode \$libdir into
12454 # a binary during linking. This must work even if \$libdir does
12456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12458 # Whether we need a single -rpath flag with a separated argument.
12459 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12462 # resulting binary.
12463 hardcode_direct=$hardcode_direct
12465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12466 # resulting binary.
12467 hardcode_minus_L=$hardcode_minus_L
12469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12470 # the resulting binary.
12471 hardcode_shlibpath_var=$hardcode_shlibpath_var
12473 # Set to yes if building a shared library automatically hardcodes DIR into the library
12474 # and all subsequent libraries and executables linked against it.
12475 hardcode_automatic=$hardcode_automatic
12477 # Variables whose values should be saved in libtool wrapper scripts and
12478 # restored at relink time.
12479 variables_saved_for_relink="$variables_saved_for_relink"
12481 # Whether libtool must link a program against all its dependency libraries.
12482 link_all_deplibs=$link_all_deplibs
12484 # Compile-time system search path for libraries
12485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12487 # Run-time system search path for libraries
12488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12490 # Fix the shell variable \$srcfile for the compiler.
12491 fix_srcfile_path="$fix_srcfile_path"
12493 # Set to yes if exported symbols are required.
12494 always_export_symbols=$always_export_symbols
12496 # The commands to list exported symbols.
12497 export_symbols_cmds=$lt_export_symbols_cmds
12499 # The commands to extract the exported symbol list from a shared archive.
12500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12502 # Symbols that should not be listed in the preloaded symbols.
12503 exclude_expsyms=$lt_exclude_expsyms
12505 # Symbols that must always be exported.
12506 include_expsyms=$lt_include_expsyms
12508 # ### END LIBTOOL CONFIG
12515 cat <<\EOF >> "$cfgfile"
12517 # AIX sometimes has problems with the GCC collect2 program. For some
12518 # reason, if we set the COLLECT_NAMES environment variable, the problems
12519 # vanish in a puff of smoke.
12520 if test "X${COLLECT_NAMES+set}" != Xset; then
12522 export COLLECT_NAMES
12528 # We use sed instead of cat because bash on DJGPP gets confused if
12529 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12530 # text mode, it properly converts lines to CR/LF. This bash problem
12531 # is reportedly fixed, but why not run on old versions too?
12532 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12534 mv -f "$cfgfile" "$ofile" || \
12535 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12539 # If there is no Makefile yet, we rely on a make rule to execute
12540 # `config.status --recheck' to rerun these tests and create the
12541 # libtool script then.
12542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12543 if test -f "$ltmain_in"; then
12544 test -f Makefile && make "$ltmain"
12550 ac_cpp='$CPP $CPPFLAGS'
12551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12558 # Check whether --with-tags was given.
12559 if test "${with_tags+set}" = set; then
12560 withval=$with_tags; tagnames="$withval"
12564 if test -f "$ltmain" && test -n "$tagnames"; then
12565 if test ! -f "${ofile}"; then
12566 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12567 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12570 if test -z "$LTCC"; then
12571 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12572 if test -z "$LTCC"; then
12573 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12574 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12576 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12577 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12580 if test -z "$LTCFLAGS"; then
12581 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12584 # Extract list of available tagged configurations in $ofile.
12585 # Note that this assumes the entire list is on one line.
12586 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12589 for tagname in $tagnames; do
12591 # Check whether tagname contains only valid characters
12592 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12594 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12595 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12596 { (exit 1); exit 1; }; }
12600 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12602 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12603 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12604 { (exit 1); exit 1; }; }
12607 # Update the list of available tags.
12608 if test -n "$tagname"; then
12609 echo appending configuration tag \"$tagname\" to $ofile
12613 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12614 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12615 (test "X$CXX" != "Xg++"))) ; then
12617 ac_cpp='$CXXCPP $CPPFLAGS'
12618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12625 archive_cmds_need_lc_CXX=no
12626 allow_undefined_flag_CXX=
12627 always_export_symbols_CXX=no
12628 archive_expsym_cmds_CXX=
12629 export_dynamic_flag_spec_CXX=
12630 hardcode_direct_CXX=no
12631 hardcode_libdir_flag_spec_CXX=
12632 hardcode_libdir_flag_spec_ld_CXX=
12633 hardcode_libdir_separator_CXX=
12634 hardcode_minus_L_CXX=no
12635 hardcode_shlibpath_var_CXX=unsupported
12636 hardcode_automatic_CXX=no
12638 module_expsym_cmds_CXX=
12639 link_all_deplibs_CXX=unknown
12640 old_archive_cmds_CXX=$old_archive_cmds
12641 no_undefined_flag_CXX=
12642 whole_archive_flag_spec_CXX=
12643 enable_shared_with_static_runtimes_CXX=no
12645 # Dependencies to place before and after the object being linked:
12646 predep_objects_CXX=
12647 postdep_objects_CXX=
12650 compiler_lib_search_path_CXX=
12652 # Source file extension for C++ test sources.
12655 # Object file extension for compiled C++ test sources.
12659 # Code to be used in simple compile tests
12660 lt_simple_compile_test_code="int some_variable = 0;\n"
12662 # Code to be used in simple link tests
12663 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12665 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12667 # If no C compiler was specified, use CC.
12670 # If no C compiler flags were specified, use CFLAGS.
12671 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12673 # Allow CC to be a program name with arguments.
12677 # save warnings/boilerplate of simple test code
12678 ac_outfile=conftest.$ac_objext
12679 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12680 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12681 _lt_compiler_boilerplate=`cat conftest.err`
12684 ac_outfile=conftest.$ac_objext
12685 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12686 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12687 _lt_linker_boilerplate=`cat conftest.err`
12691 # Allow CC to be a program name with arguments.
12696 lt_save_with_gnu_ld=$with_gnu_ld
12697 lt_save_path_LD=$lt_cv_path_LD
12698 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12699 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12701 $as_unset lt_cv_prog_gnu_ld
12703 if test -n "${lt_cv_path_LDCXX+set}"; then
12704 lt_cv_path_LD=$lt_cv_path_LDCXX
12706 $as_unset lt_cv_path_LD
12708 test -z "${LDCXX+set}" || LD=$LDCXX
12712 for cc_temp in $compiler""; do
12714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12723 # We don't want -fno-exception wen compiling C++ code, so set the
12724 # no_builtin_flag separately
12725 if test "$GXX" = yes; then
12726 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12728 lt_prog_compiler_no_builtin_flag_CXX=
12731 if test "$GXX" = yes; then
12732 # Set up default GNU C++ configuration
12735 # Check whether --with-gnu-ld was given.
12736 if test "${with_gnu_ld+set}" = set; then
12737 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12743 if test "$GCC" = yes; then
12744 # Check if gcc -print-prog-name=ld gives a path.
12745 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12746 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12749 # gcc leaves a trailing carriage return which upsets mingw
12750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12755 # Accept absolute paths.
12757 re_direlt='/[^/][^/]*/\.\./'
12758 # Canonicalize the pathname of ld
12759 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12760 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12761 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12763 test -z "$LD" && LD="$ac_prog"
12766 # If it fails, then pretend we aren't using GCC.
12770 # If it is relative, then search for the first ld in PATH.
12771 with_gnu_ld=unknown
12774 elif test "$with_gnu_ld" = yes; then
12775 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12776 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12778 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12779 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12781 if test "${lt_cv_path_LD+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 if test -z "$LD"; then
12785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12786 for ac_dir in $PATH; do
12788 test -z "$ac_dir" && ac_dir=.
12789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12790 lt_cv_path_LD="$ac_dir/$ac_prog"
12791 # Check to see if the program is GNU ld. I'd rather use --version,
12792 # but apparently some variants of GNU ld only accept -v.
12793 # Break only if it was the GNU/non-GNU ld that we prefer.
12794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12795 *GNU* | *'with BFD'*)
12796 test "$with_gnu_ld" != no && break
12799 test "$with_gnu_ld" != yes && break
12806 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12810 LD="$lt_cv_path_LD"
12811 if test -n "$LD"; then
12812 { echo "$as_me:$LINENO: result: $LD" >&5
12813 echo "${ECHO_T}$LD" >&6; }
12815 { echo "$as_me:$LINENO: result: no" >&5
12816 echo "${ECHO_T}no" >&6; }
12818 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12819 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12820 { (exit 1); exit 1; }; }
12821 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12822 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12823 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12827 case `$LD -v 2>&1 </dev/null` in
12828 *GNU* | *'with BFD'*)
12829 lt_cv_prog_gnu_ld=yes
12832 lt_cv_prog_gnu_ld=no
12836 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12837 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12838 with_gnu_ld=$lt_cv_prog_gnu_ld
12842 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12843 # archiving commands below assume that GNU ld is being used.
12844 if test "$with_gnu_ld" = yes; then
12845 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 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'
12848 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12849 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12851 # If archive_cmds runs LD, not CC, wlarc should be empty
12852 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12853 # investigate it a little bit more. (MM)
12856 # ancient GNU ld didn't support --whole-archive et. al.
12857 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12858 grep 'no-whole-archive' > /dev/null; then
12859 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12861 whole_archive_flag_spec_CXX=
12867 # A generic and very simple default shared library creation
12868 # command for GNU C++ for the case where it uses the native
12869 # linker, instead of GNU ld. If possible, this setting should
12870 # overridden to take advantage of the native linker features on
12871 # the platform it is being used on.
12872 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12875 # Commands to make compiler produce verbose output that lists
12876 # what "hidden" libraries, object files and flags are used when
12877 # linking a shared library.
12878 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12886 # PORTME: fill in a description of your system's C++ link characteristics
12887 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12888 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12892 # FIXME: insert proper C++ library support
12896 if test "$host_cpu" = ia64; then
12897 # On IA64, the linker does run time linking by default, so we don't
12898 # have to do anything special.
12899 aix_use_runtimelinking=no
12900 exp_sym_flag='-Bexport'
12903 aix_use_runtimelinking=no
12905 # Test if we are trying to use run time linking or normal
12906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12907 # need to do runtime linking.
12908 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12909 for ld_flag in $LDFLAGS; do
12912 aix_use_runtimelinking=yes
12920 exp_sym_flag='-bexport'
12921 no_entry_flag='-bnoentry'
12924 # When large executables or shared objects are built, AIX ld can
12925 # have problems creating the table of contents. If linking a library
12926 # or program results in "error TOC overflow" add -mminimal-toc to
12927 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12928 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12930 archive_cmds_CXX=''
12931 hardcode_direct_CXX=yes
12932 hardcode_libdir_separator_CXX=':'
12933 link_all_deplibs_CXX=yes
12935 if test "$GXX" = yes; then
12936 case $host_os in aix4.[012]|aix4.[012].*)
12937 # We only want to do this on AIX 4.2 and lower, the check
12938 # below for broken collect2 doesn't work under 4.3+
12939 collect2name=`${CC} -print-prog-name=collect2`
12940 if test -f "$collect2name" && \
12941 strings "$collect2name" | grep resolve_lib_name >/dev/null
12943 # We have reworked collect2
12944 hardcode_direct_CXX=yes
12946 # We have old collect2
12947 hardcode_direct_CXX=unsupported
12948 # It fails to find uninstalled libraries when the uninstalled
12949 # path is not listed in the libpath. Setting hardcode_minus_L
12950 # to unsupported forces relinking
12951 hardcode_minus_L_CXX=yes
12952 hardcode_libdir_flag_spec_CXX='-L$libdir'
12953 hardcode_libdir_separator_CXX=
12957 shared_flag='-shared'
12958 if test "$aix_use_runtimelinking" = yes; then
12959 shared_flag="$shared_flag "'${wl}-G'
12963 if test "$host_cpu" = ia64; then
12964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12965 # chokes on -Wl,-G. The following line is correct:
12968 if test "$aix_use_runtimelinking" = yes; then
12969 shared_flag='${wl}-G'
12971 shared_flag='${wl}-bM:SRE'
12976 # It seems that -bexpall does not export symbols beginning with
12977 # underscore (_), so it is better to generate a list of symbols to export.
12978 always_export_symbols_CXX=yes
12979 if test "$aix_use_runtimelinking" = yes; then
12980 # Warning - without using the other runtime loading flags (-brtl),
12981 # -berok will link without error, but may produce a broken library.
12982 allow_undefined_flag_CXX='-berok'
12983 # Determine the default libpath from the value encoded in an empty executable.
12984 cat >conftest.$ac_ext <<_ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } && {
13013 test -z "$ac_cxx_werror_flag" ||
13014 test ! -s conftest.err
13015 } && test -s conftest$ac_exeext &&
13016 $as_test_x conftest$ac_exeext; then
13018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13020 # Check for a 64-bit object if we didn't find anything.
13021 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13031 conftest$ac_exeext conftest.$ac_ext
13032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13034 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13036 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"
13038 if test "$host_cpu" = ia64; then
13039 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13040 allow_undefined_flag_CXX="-z nodefs"
13041 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"
13043 # Determine the default libpath from the value encoded in an empty executable.
13044 cat >conftest.$ac_ext <<_ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (ac_try="$ac_link"
13061 case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_link") 2>conftest.er1
13068 grep -v '^ *+' conftest.er1 >conftest.err
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } && {
13073 test -z "$ac_cxx_werror_flag" ||
13074 test ! -s conftest.err
13075 } && test -s conftest$ac_exeext &&
13076 $as_test_x conftest$ac_exeext; then
13078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13080 # Check for a 64-bit object if we didn't find anything.
13081 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091 conftest$ac_exeext conftest.$ac_ext
13092 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13094 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13095 # Warning - without using the other run time loading flags,
13096 # -berok will link without error, but may produce a broken library.
13097 no_undefined_flag_CXX=' ${wl}-bernotok'
13098 allow_undefined_flag_CXX=' ${wl}-berok'
13099 # Exported symbols can be pulled into shared objects from archives
13100 whole_archive_flag_spec_CXX='$convenience'
13101 archive_cmds_need_lc_CXX=yes
13102 # This is similar to how AIX traditionally builds its shared libraries.
13103 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'
13109 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13110 allow_undefined_flag_CXX=unsupported
13111 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13112 # support --undefined. This deserves some investigation. FIXME
13113 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 case $cc_basename in
13122 # FIXME: insert proper C++ library support
13128 cygwin* | mingw* | pw32*)
13129 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13130 # as there is no search path for DLLs.
13131 hardcode_libdir_flag_spec_CXX='-L$libdir'
13132 allow_undefined_flag_CXX=unsupported
13133 always_export_symbols_CXX=no
13134 enable_shared_with_static_runtimes_CXX=yes
13136 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13137 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'
13138 # If the export-symbols file already is a .def file (1st line
13139 # is EXPORTS), use it as is; otherwise, prepend...
13140 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13141 cp $export_symbols $output_objdir/$soname.def;
13143 echo EXPORTS > $output_objdir/$soname.def;
13144 cat $export_symbols >> $output_objdir/$soname.def;
13146 $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'
13151 darwin* | rhapsody*)
13153 rhapsody* | darwin1.[012])
13154 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13157 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13158 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13160 case ${MACOSX_DEPLOYMENT_TARGET} in
13162 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13165 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13171 archive_cmds_need_lc_CXX=no
13172 hardcode_direct_CXX=no
13173 hardcode_automatic_CXX=yes
13174 hardcode_shlibpath_var_CXX=unsupported
13175 whole_archive_flag_spec_CXX=''
13176 link_all_deplibs_CXX=yes
13178 if test "$GXX" = yes ; then
13179 lt_int_apple_cc_single_mod=no
13180 output_verbose_link_cmd='echo'
13181 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13182 lt_int_apple_cc_single_mod=yes
13184 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13185 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13187 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'
13189 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13190 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13191 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13192 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}'
13194 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}'
13196 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}'
13198 case $cc_basename in
13200 output_verbose_link_cmd='echo'
13201 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13202 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13204 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13205 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}'
13215 case $cc_basename in
13217 # FIXME: insert proper C++ library support
13221 # Green Hills C++ Compiler
13222 # FIXME: insert proper C++ library support
13226 # FIXME: insert proper C++ library support
13232 # C++ shared libraries reported to be fairly broken before switch to ELF
13236 archive_cmds_need_lc_CXX=no
13238 freebsd* | kfreebsd*-gnu | dragonfly*)
13239 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13247 hardcode_libdir_separator_CXX=:
13248 export_dynamic_flag_spec_CXX='${wl}-E'
13249 hardcode_direct_CXX=yes
13250 hardcode_minus_L_CXX=yes # Not in the search PATH,
13251 # but as the default
13252 # location of the library.
13254 case $cc_basename in
13256 # FIXME: insert proper C++ library support
13260 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'
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13269 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'
13272 if test "$GXX" = yes; then
13273 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'
13275 # FIXME: insert proper C++ library support
13282 if test $with_gnu_ld = no; then
13283 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13284 hardcode_libdir_separator_CXX=:
13288 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13291 export_dynamic_flag_spec_CXX='${wl}-E'
13297 hardcode_direct_CXX=no
13298 hardcode_shlibpath_var_CXX=no
13301 hardcode_direct_CXX=yes
13302 hardcode_minus_L_CXX=yes # Not in the search PATH,
13303 # but as the default
13304 # location of the library.
13308 case $cc_basename in
13310 # FIXME: insert proper C++ library support
13316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13319 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13322 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13325 # Commands to make compiler produce verbose output that lists
13326 # what "hidden" libraries, object files and flags are used when
13327 # linking a shared library.
13329 # There doesn't appear to be a way to prevent this compiler from
13330 # explicitly linking system object files so we need to strip them
13331 # from the output so that they don't get included in the library
13333 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'
13336 if test "$GXX" = yes; then
13337 if test $with_gnu_ld = no; then
13340 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13343 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13346 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'
13351 # FIXME: insert proper C++ library support
13358 hardcode_direct_CXX=no
13359 hardcode_shlibpath_var_CXX=no
13360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13361 export_dynamic_flag_spec_CXX='${wl}-E'
13362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13363 # Instead, shared libraries are loaded at an image base (0x10000000 by
13364 # default) and relocated if they conflict, which is a slow very memory
13365 # consuming and fragmenting process. To avoid this, we pick a random,
13366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13368 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'
13369 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'
13372 case $cc_basename in
13375 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'
13377 # Archives containing C++ object files must be created using
13378 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13379 # necessary to make sure instantiated templates are included
13381 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13384 if test "$GXX" = yes; then
13385 if test "$with_gnu_ld" = no; then
13386 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'
13388 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'
13391 link_all_deplibs_CXX=yes
13394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13395 hardcode_libdir_separator_CXX=:
13398 case $cc_basename in
13400 # Kuck and Associates, Inc. (KAI) C++ Compiler
13402 # KCC will only create a shared library if the output file
13403 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13404 # to its proper name (with version) after linking.
13405 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'
13406 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'
13407 # Commands to make compiler produce verbose output that lists
13408 # what "hidden" libraries, object files and flags are used when
13409 # linking a shared library.
13411 # There doesn't appear to be a way to prevent this compiler from
13412 # explicitly linking system object files so we need to strip them
13413 # from the output so that they don't get included in the library
13415 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'
13417 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13420 # Archives containing C++ object files must be created using
13421 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13422 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13427 # version 8.0 and above of icpc choke on multiply defined symbols
13428 # if we add $predep_objects and $postdep_objects, however 7.1 and
13429 # earlier do not add the objects themselves.
13430 case `$CC -V 2>&1` in
13432 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433 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'
13435 *) # Version 8.0 or newer
13438 ia64*) tmp_idyn=' -i_dynamic';;
13440 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13441 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'
13444 archive_cmds_need_lc_CXX=no
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13450 # Portland Group C++ compiler
13451 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13452 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'
13454 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13455 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13456 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'
13460 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461 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'
13463 runpath_var=LD_RUN_PATH
13464 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13465 hardcode_libdir_separator_CXX=:
13467 # Commands to make compiler produce verbose output that lists
13468 # what "hidden" libraries, object files and flags are used when
13469 # linking a shared library.
13471 # There doesn't appear to be a way to prevent this compiler from
13472 # explicitly linking system object files so we need to strip them
13473 # from the output so that they don't get included in the library
13475 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'
13480 # FIXME: insert proper C++ library support
13484 # FIXME: insert proper C++ library support
13488 case $cc_basename in
13490 # FIXME: insert proper C++ library support
13494 # FIXME: insert proper C++ library support
13500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13501 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13503 hardcode_libdir_flag_spec_CXX='-R$libdir'
13504 hardcode_direct_CXX=yes
13505 hardcode_shlibpath_var_CXX=no
13507 # Workaround some broken pre-1.5 toolchains
13508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13511 # C++ shared libraries are fairly broken
13515 hardcode_direct_CXX=yes
13516 hardcode_shlibpath_var_CXX=no
13517 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13519 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13520 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13521 export_dynamic_flag_spec_CXX='${wl}-E'
13522 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13524 output_verbose_link_cmd='echo'
13527 case $cc_basename in
13529 # Kuck and Associates, Inc. (KAI) C++ Compiler
13531 # KCC will only create a shared library if the output file
13532 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13533 # to its proper name (with version) after linking.
13534 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'
13536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537 hardcode_libdir_separator_CXX=:
13539 # Archives containing C++ object files must be created using
13540 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13541 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13545 # Rational C++ 2.4.1
13546 # FIXME: insert proper C++ library support
13550 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13551 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'
13553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13554 hardcode_libdir_separator_CXX=:
13556 # Commands to make compiler produce verbose output that lists
13557 # what "hidden" libraries, object files and flags are used when
13558 # linking a shared library.
13560 # There doesn't appear to be a way to prevent this compiler from
13561 # explicitly linking system object files so we need to strip them
13562 # from the output so that they don't get included in the library
13564 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'
13567 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13568 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13569 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'
13571 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13572 hardcode_libdir_separator_CXX=:
13574 # Commands to make compiler produce verbose output that lists
13575 # what "hidden" libraries, object files and flags are used when
13576 # linking a shared library.
13577 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13580 # FIXME: insert proper C++ library support
13587 case $cc_basename in
13589 # Kuck and Associates, Inc. (KAI) C++ Compiler
13591 # KCC will only create a shared library if the output file
13592 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13593 # to its proper name (with version) after linking.
13594 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'
13596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13597 hardcode_libdir_separator_CXX=:
13599 # Archives containing C++ object files must be created using
13600 # the KAI C++ compiler.
13601 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13604 # Rational C++ 2.4.1
13605 # FIXME: insert proper C++ library support
13609 allow_undefined_flag_CXX=' -expect_unresolved \*'
13610 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'
13611 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13612 echo "-hidden">> $lib.exp~
13613 $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~
13616 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13617 hardcode_libdir_separator_CXX=:
13619 # Commands to make compiler produce verbose output that lists
13620 # what "hidden" libraries, object files and flags are used when
13621 # linking a shared library.
13623 # There doesn't appear to be a way to prevent this compiler from
13624 # explicitly linking system object files so we need to strip them
13625 # from the output so that they don't get included in the library
13627 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'
13630 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13631 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13632 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'
13634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13635 hardcode_libdir_separator_CXX=:
13637 # Commands to make compiler produce verbose output that lists
13638 # what "hidden" libraries, object files and flags are used when
13639 # linking a shared library.
13640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13643 # FIXME: insert proper C++ library support
13650 # FIXME: insert proper C++ library support
13654 case $cc_basename in
13657 # FIXME: insert proper C++ library support
13662 # FIXME: insert proper C++ library support
13666 # FIXME: insert proper C++ library support
13672 case $cc_basename in
13674 # Sun C++ 4.2, 5.x and Centerline C++
13675 archive_cmds_need_lc_CXX=yes
13676 no_undefined_flag_CXX=' -zdefs'
13677 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13678 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13679 $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'
13681 hardcode_libdir_flag_spec_CXX='-R$libdir'
13682 hardcode_shlibpath_var_CXX=no
13684 solaris2.[0-5] | solaris2.[0-5].*) ;;
13686 # The C++ compiler is used as linker so we must use $wl
13687 # flag to pass the commands to the underlying system
13688 # linker. We must also pass each convience library through
13689 # to the system linker between allextract/defaultextract.
13690 # The C++ compiler will combine linker options so we
13691 # cannot just pass the convience library names through
13693 # Supported since Solaris 2.6 (maybe 2.5.1?)
13694 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13697 link_all_deplibs_CXX=yes
13699 output_verbose_link_cmd='echo'
13701 # Archives containing C++ object files must be created using
13702 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13703 # necessary to make sure instantiated templates are included
13705 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13708 # Green Hills C++ Compiler
13709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13711 # The C++ compiler must be used to create the archive.
13712 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13715 # GNU C++ compiler with Solaris linker
13716 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13717 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13718 if $CC --version | grep -v '^2\.7' > /dev/null; then
13719 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13720 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13721 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13723 # Commands to make compiler produce verbose output that lists
13724 # what "hidden" libraries, object files and flags are used when
13725 # linking a shared library.
13726 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13728 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13730 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13731 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13732 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13734 # Commands to make compiler produce verbose output that lists
13735 # what "hidden" libraries, object files and flags are used when
13736 # linking a shared library.
13737 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13740 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13745 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13746 no_undefined_flag_CXX='${wl}-z,text'
13747 archive_cmds_need_lc_CXX=no
13748 hardcode_shlibpath_var_CXX=no
13749 runpath_var='LD_RUN_PATH'
13751 case $cc_basename in
13753 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13754 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13758 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 sysv5* | sco3.2v5* | sco5v6*)
13763 # Note: We can NOT use -z defs as we might desire, because we do not
13764 # link with -lc, and that would cause any symbols used from libc to
13765 # always be unresolved, which means just about no library would
13766 # ever link correctly. If we're not using GNU ld we use -z text
13767 # though, which does catch some bad symbols but isn't as heavy-handed
13769 # For security reasons, it is highly recommended that you always
13770 # use absolute paths for naming shared libraries, and exclude the
13771 # DT_RUNPATH tag from executables and libraries. But doing so
13772 # requires that you compile everything twice, which is a pain.
13773 # So that behaviour is only enabled if SCOABSPATH is set to a
13774 # non-empty value in the environment. Most likely only useful for
13775 # creating official distributions of packages.
13776 # This is a hack until libtool officially supports absolute path
13777 # names for shared libraries.
13778 no_undefined_flag_CXX='${wl}-z,text'
13779 allow_undefined_flag_CXX='${wl}-z,nodefs'
13780 archive_cmds_need_lc_CXX=no
13781 hardcode_shlibpath_var_CXX=no
13782 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13783 hardcode_libdir_separator_CXX=':'
13784 link_all_deplibs_CXX=yes
13785 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13786 runpath_var='LD_RUN_PATH'
13788 case $cc_basename in
13790 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13791 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13794 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13795 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 case $cc_basename in
13802 # NonStop-UX NCC 3.20
13803 # FIXME: insert proper C++ library support
13807 # FIXME: insert proper C++ library support
13813 # FIXME: insert proper C++ library support
13817 # FIXME: insert proper C++ library support
13821 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13822 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13823 test "$ld_shlibs_CXX" = no && can_build_shared=no
13829 ## There is no encapsulation within the following macros, do not change
13830 ## the running order or otherwise move them around unless you know exactly
13831 ## what you are doing...
13833 cat > conftest.$ac_ext <<EOF
13837 Foo (void) { a = 0; }
13843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844 (eval $ac_compile) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; then
13848 # Parse the compiler output and extract the necessary
13849 # objects, libraries and library flags.
13851 # Sentinel used to keep track of whether or not we are before
13852 # the conftest object file.
13853 pre_test_object_deps_done=no
13855 # The `*' in the case matches for architectures that use `case' in
13856 # $output_verbose_cmd can trigger glob expansion during the loop
13857 # eval without this substitution.
13858 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13860 for p in `eval $output_verbose_link_cmd`; do
13864 # Some compilers place space between "-{L,R}" and the path.
13865 # Remove the space.
13866 if test $p = "-L" \
13867 || test $p = "-R"; then
13874 if test "$pre_test_object_deps_done" = no; then
13877 # Internal compiler library paths should come after those
13878 # provided the user. The postdeps already come after the
13879 # user supplied libs so there is no need to process them.
13880 if test -z "$compiler_lib_search_path_CXX"; then
13881 compiler_lib_search_path_CXX="${prev}${p}"
13883 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13886 # The "-l" case would never come before the object being
13887 # linked, so don't bother handling this case.
13890 if test -z "$postdeps_CXX"; then
13891 postdeps_CXX="${prev}${p}"
13893 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13899 # This assumes that the test object file only shows up
13900 # once in the compiler output.
13901 if test "$p" = "conftest.$objext"; then
13902 pre_test_object_deps_done=yes
13906 if test "$pre_test_object_deps_done" = no; then
13907 if test -z "$predep_objects_CXX"; then
13908 predep_objects_CXX="$p"
13910 predep_objects_CXX="$predep_objects_CXX $p"
13913 if test -z "$postdep_objects_CXX"; then
13914 postdep_objects_CXX="$p"
13916 postdep_objects_CXX="$postdep_objects_CXX $p"
13921 *) ;; # Ignore the rest.
13929 echo "libtool.m4: error: problem compiling CXX test program"
13932 $rm -f confest.$objext
13934 # PORTME: override above test on systems where it is broken
13937 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13938 # hack all around it, let's just trust "g++" to DTRT.
13939 predep_objects_CXX=
13940 postdep_objects_CXX=
13945 case $cc_basename in
13947 # Adding this requires a known-good setup of shared libraries for
13948 # Sun compiler versions before 5.6, else PIC objects from an old
13949 # archive will be linked into the output, leading to subtle bugs.
13950 postdeps_CXX='-lCstd -lCrun'
13957 case " $postdeps_CXX " in
13958 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13961 lt_prog_compiler_wl_CXX=
13962 lt_prog_compiler_pic_CXX=
13963 lt_prog_compiler_static_CXX=
13965 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13966 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13968 # C++ specific cases for pic, static, wl, etc.
13969 if test "$GXX" = yes; then
13970 lt_prog_compiler_wl_CXX='-Wl,'
13971 lt_prog_compiler_static_CXX='-static'
13975 # All AIX code is PIC.
13976 if test "$host_cpu" = ia64; then
13977 # AIX 5 now supports IA64 processor
13978 lt_prog_compiler_static_CXX='-Bstatic'
13982 # FIXME: we need at least 68020 code to build shared libraries, but
13983 # adding the `-m68020' flag to GCC prevents building anything better,
13985 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13987 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13988 # PIC is the default for these OSes.
13990 mingw* | os2* | pw32*)
13991 # This hack is so that the source file can tell whether it is being
13992 # built for inclusion in a dll (and should export symbols for example).
13993 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13995 darwin* | rhapsody*)
13996 # PIC is the default on this platform
13997 # Common symbols not allowed in MH_DYLIB files
13998 lt_prog_compiler_pic_CXX='-fno-common'
14001 # DJGPP does not support shared libraries at all
14002 lt_prog_compiler_pic_CXX=
14005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14006 # Instead, we relocate shared libraries at runtime.
14009 if test -d /usr/nec; then
14010 lt_prog_compiler_pic_CXX=-Kconform_pic
14014 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14015 # not for PA HP-UX.
14020 lt_prog_compiler_pic_CXX='-fPIC'
14025 lt_prog_compiler_pic_CXX='-fPIC'
14031 # All AIX code is PIC.
14032 if test "$host_cpu" = ia64; then
14033 # AIX 5 now supports IA64 processor
14034 lt_prog_compiler_static_CXX='-Bstatic'
14036 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14040 case $cc_basename in
14042 # Green Hills C++ Compiler
14043 # _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"
14048 # PIC is the default on this platform
14049 # Common symbols not allowed in MH_DYLIB files
14050 case $cc_basename in
14052 lt_prog_compiler_pic_CXX='-qnocommon'
14053 lt_prog_compiler_wl_CXX='-Wl,'
14058 case $cc_basename in
14060 lt_prog_compiler_pic_CXX='-KPIC'
14063 # Green Hills C++ Compiler
14064 lt_prog_compiler_pic_CXX='-pic'
14070 freebsd* | kfreebsd*-gnu | dragonfly*)
14071 # FreeBSD uses GNU C++
14073 hpux9* | hpux10* | hpux11*)
14074 case $cc_basename in
14076 lt_prog_compiler_wl_CXX='-Wl,'
14077 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14078 if test "$host_cpu" != ia64; then
14079 lt_prog_compiler_pic_CXX='+Z'
14083 lt_prog_compiler_wl_CXX='-Wl,'
14084 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14090 lt_prog_compiler_pic_CXX='+Z'
14099 # This is c89, which is MS Visual C++ (no shared libs)
14100 # Anyone wants to do a port?
14102 irix5* | irix6* | nonstopux*)
14103 case $cc_basename in
14105 lt_prog_compiler_wl_CXX='-Wl,'
14106 lt_prog_compiler_static_CXX='-non_shared'
14107 # CC pic flag -KPIC is the default.
14114 case $cc_basename in
14117 lt_prog_compiler_wl_CXX='--backend -Wl,'
14118 lt_prog_compiler_pic_CXX='-fPIC'
14122 lt_prog_compiler_wl_CXX='-Wl,'
14123 lt_prog_compiler_pic_CXX='-KPIC'
14124 lt_prog_compiler_static_CXX='-static'
14127 # Portland Group C++ compiler.
14128 lt_prog_compiler_wl_CXX='-Wl,'
14129 lt_prog_compiler_pic_CXX='-fpic'
14130 lt_prog_compiler_static_CXX='-Bstatic'
14134 # Make sure the PIC flag is empty. It appears that all Alpha
14135 # Linux and Compaq Tru64 Unix objects are PIC.
14136 lt_prog_compiler_pic_CXX=
14137 lt_prog_compiler_static_CXX='-non_shared'
14148 case $cc_basename in
14150 lt_prog_compiler_pic_CXX='-W c,exportall'
14158 osf3* | osf4* | osf5*)
14159 case $cc_basename in
14161 lt_prog_compiler_wl_CXX='--backend -Wl,'
14164 # Rational C++ 2.4.1
14165 lt_prog_compiler_pic_CXX='-pic'
14168 # Digital/Compaq C++
14169 lt_prog_compiler_wl_CXX='-Wl,'
14170 # Make sure the PIC flag is empty. It appears that all Alpha
14171 # Linux and Compaq Tru64 Unix objects are PIC.
14172 lt_prog_compiler_pic_CXX=
14173 lt_prog_compiler_static_CXX='-non_shared'
14182 case $cc_basename in
14184 # Sun C++ 4.2, 5.x and Centerline C++
14185 lt_prog_compiler_pic_CXX='-KPIC'
14186 lt_prog_compiler_static_CXX='-Bstatic'
14187 lt_prog_compiler_wl_CXX='-Qoption ld '
14190 # Green Hills C++ Compiler
14191 lt_prog_compiler_pic_CXX='-PIC'
14198 case $cc_basename in
14201 lt_prog_compiler_pic_CXX='-pic'
14202 lt_prog_compiler_static_CXX='-Bstatic'
14206 lt_prog_compiler_pic_CXX='-pic'
14213 case $cc_basename in
14215 # NonStop-UX NCC 3.20
14216 lt_prog_compiler_pic_CXX='-KPIC'
14222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14223 case $cc_basename in
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 lt_prog_compiler_pic_CXX='-KPIC'
14227 lt_prog_compiler_static_CXX='-Bstatic'
14234 lt_prog_compiler_can_build_shared_CXX=no
14239 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14240 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14243 # Check to make sure the PIC flag actually works.
14245 if test -n "$lt_prog_compiler_pic_CXX"; then
14247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14249 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 lt_prog_compiler_pic_works_CXX=no
14253 ac_outfile=conftest.$ac_objext
14254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14255 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14256 # Insert the option either (1) after the last *FLAGS variable, or
14257 # (2) before a word containing "conftest.", or (3) at the end.
14258 # Note that $ac_compile itself does not contain backslashes and begins
14259 # with a dollar sign (not a hyphen), so the echo should work correctly.
14260 # The option is referenced via a variable to avoid confusing sed.
14261 lt_compile=`echo "$ac_compile" | $SED \
14262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14264 -e 's:$: $lt_compiler_flag:'`
14265 (eval echo "\"\$as_me:14265: $lt_compile\"" >&5)
14266 (eval "$lt_compile" 2>conftest.err)
14268 cat conftest.err >&5
14269 echo "$as_me:14269: \$? = $ac_status" >&5
14270 if (exit $ac_status) && test -s "$ac_outfile"; then
14271 # The compiler can only warn and ignore the option if not recognized
14272 # So say no if there are warnings other than the usual output.
14273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14276 lt_prog_compiler_pic_works_CXX=yes
14282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14283 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14285 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14286 case $lt_prog_compiler_pic_CXX in
14288 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14291 lt_prog_compiler_pic_CXX=
14292 lt_prog_compiler_can_build_shared_CXX=no
14297 # For platforms which do not support PIC, -DPIC is meaningless:
14299 lt_prog_compiler_pic_CXX=
14302 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14307 # Check to make sure the static flag actually works.
14309 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14310 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14311 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14312 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 lt_prog_compiler_static_works_CXX=no
14316 save_LDFLAGS="$LDFLAGS"
14317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14318 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14320 # The linker can only warn and ignore the option if not recognized
14321 # So say no if there are warnings
14322 if test -s conftest.err; then
14323 # Append any errors to the config.log.
14324 cat conftest.err 1>&5
14325 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14327 if diff conftest.exp conftest.er2 >/dev/null; then
14328 lt_prog_compiler_static_works_CXX=yes
14331 lt_prog_compiler_static_works_CXX=yes
14335 LDFLAGS="$save_LDFLAGS"
14338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14339 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14341 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14344 lt_prog_compiler_static_CXX=
14348 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14350 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 lt_cv_prog_compiler_c_o_CXX=no
14354 $rm -r conftest 2>/dev/null
14358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14360 lt_compiler_flag="-o out/conftest2.$ac_objext"
14361 # Insert the option either (1) after the last *FLAGS variable, or
14362 # (2) before a word containing "conftest.", or (3) at the end.
14363 # Note that $ac_compile itself does not contain backslashes and begins
14364 # with a dollar sign (not a hyphen), so the echo should work correctly.
14365 lt_compile=`echo "$ac_compile" | $SED \
14366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14368 -e 's:$: $lt_compiler_flag:'`
14369 (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
14370 (eval "$lt_compile" 2>out/conftest.err)
14372 cat out/conftest.err >&5
14373 echo "$as_me:14373: \$? = $ac_status" >&5
14374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14376 # The compiler can only warn and ignore the option if not recognized
14377 # So say no if there are warnings
14378 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14381 lt_cv_prog_compiler_c_o_CXX=yes
14386 # SGI C++ compiler will create directory out/ii_files/ for
14387 # template instantiation
14388 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14389 $rm out/* && rmdir out
14395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14399 hard_links="nottested"
14400 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14401 # do not overwrite the value of need_locks provided by the user
14402 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14403 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14408 ln conftest.a conftest.b 2>&5 || hard_links=no
14409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14410 { echo "$as_me:$LINENO: result: $hard_links" >&5
14411 echo "${ECHO_T}$hard_links" >&6; }
14412 if test "$hard_links" = no; then
14413 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14414 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14421 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14424 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14427 # If we're using GNU nm, then we don't want the "-C" option.
14428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14429 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14430 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'
14432 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'
14436 export_symbols_cmds_CXX="$ltdll_cmds"
14439 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'
14442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14446 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14447 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14448 test "$ld_shlibs_CXX" = no && can_build_shared=no
14451 # Do we need to explicitly link libc?
14453 case "x$archive_cmds_need_lc_CXX" in
14455 # Assume -lc should be added
14456 archive_cmds_need_lc_CXX=yes
14458 if test "$enable_shared" = yes && test "$GCC" = yes; then
14459 case $archive_cmds_CXX in
14461 # FIXME: we may have to deal with multi-command sequences.
14464 # Test whether the compiler implicitly links with -lc since on some
14465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14466 # to ld, don't add -lc before -lgcc.
14467 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14468 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); } 2>conftest.err; then
14479 libobjs=conftest.$ac_objext
14481 wl=$lt_prog_compiler_wl_CXX
14482 pic_flag=$lt_prog_compiler_pic_CXX
14488 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14489 allow_undefined_flag_CXX=
14490 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14491 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }
14496 archive_cmds_need_lc_CXX=no
14498 archive_cmds_need_lc_CXX=yes
14500 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14502 cat conftest.err 1>&5
14505 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14506 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14513 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14515 library_names_spec=
14516 libname_spec='lib$name'
14520 postuninstall_cmds=
14524 shlibpath_overrides_runpath=unknown
14526 dynamic_linker="$host_os ld.so"
14527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14528 if test "$GCC" = yes; then
14529 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14530 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14531 # if the path contains ";" then we assume it to be the separator
14532 # otherwise default to the standard path separator (i.e. ":") - it is
14533 # assumed that no part of a normal pathname contains ";" but that should
14534 # okay in the real world where ";" in dirpaths is itself problematic.
14535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14542 need_lib_prefix=unknown
14543 hardcode_into_libs=no
14545 # when you set need_version to no, make sure it does not cause -set_version
14546 # flags to be left without arguments
14547 need_version=unknown
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14553 shlibpath_var=LIBPATH
14555 # AIX 3 has no versioning support, so we append a major version to the name.
14556 soname_spec='${libname}${release}${shared_ext}$major'
14563 hardcode_into_libs=yes
14564 if test "$host_cpu" = ia64; then
14565 # AIX 5 supports IA64
14566 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14567 shlibpath_var=LD_LIBRARY_PATH
14569 # With GCC up to 2.95.x, collect2 would create an import file
14570 # for dependence libraries. The import file would start with
14571 # the line `#! .'. This would cause the generated library to
14572 # depend on `.', always an invalid library. This was fixed in
14573 # development snapshots of GCC prior to 3.0.
14575 aix4 | aix4.[01] | aix4.[01].*)
14576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14578 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14581 can_build_shared=no
14585 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14586 # soname into executable. Probably we can add versioning support to
14587 # collect2, so additional links can be useful in future.
14588 if test "$aix_use_runtimelinking" = yes; then
14589 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14590 # instead of lib<name>.a to let people know that these are not
14591 # typical AIX shared libraries.
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594 # We preserve .a as extension for shared libraries through AIX4.2
14595 # and later when we are not doing run time linking.
14596 library_names_spec='${libname}${release}.a $libname.a'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14599 shlibpath_var=LIBPATH
14604 library_names_spec='$libname.ixlibrary $libname.a'
14605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14606 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'
14610 library_names_spec='${libname}${shared_ext}'
14611 dynamic_linker="$host_os ld.so"
14612 shlibpath_var=LIBRARY_PATH
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14624 # the default ld.so.conf also contains /usr/contrib/lib and
14625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14626 # libtool to hard-code these into programs
14629 cygwin* | mingw* | pw32*)
14630 version_type=windows
14635 case $GCC,$host_os in
14636 yes,cygwin* | yes,mingw* | yes,pw32*)
14637 library_names_spec='$libname.dll.a'
14638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14639 postinstall_cmds='base_file=`basename \${file}`~
14640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14641 dldir=$destdir/`dirname \$dlpath`~
14642 test -d \$dldir || mkdir -p \$dldir~
14643 $install_prog $dir/$dlname \$dldir/$dlname~
14644 chmod a+x \$dldir/$dlname'
14645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14646 dlpath=$dir/\$dldll~
14648 shlibpath_overrides_runpath=yes
14652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14654 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14657 # MinGW DLLs use traditional 'lib' prefix
14658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14659 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14660 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14661 # It is most probably a Windows format PATH printed by
14662 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14663 # path with ; separators, and with drive letters. We can handle the
14664 # drive letters (cygwin fileutils understands them), so leave them,
14665 # especially as we might pass files found there to a mingw objdump,
14666 # which wouldn't understand a cygwinified path. Ahh.
14667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14673 # pw32 DLLs use 'pw' prefix rather than 'lib'
14674 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14680 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14683 dynamic_linker='Win32 ld.exe'
14684 # FIXME: first we should search . and the directory the executable is in
14688 darwin* | rhapsody*)
14689 dynamic_linker="$host_os dyld"
14690 version_type=darwin
14693 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14694 soname_spec='${libname}${release}${major}$shared_ext'
14695 shlibpath_overrides_runpath=yes
14696 shlibpath_var=DYLD_LIBRARY_PATH
14697 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14698 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14699 if test "$GCC" = yes; then
14700 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14702 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14712 soname_spec='${libname}${release}${shared_ext}$major'
14713 shlibpath_var=LD_LIBRARY_PATH
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 shlibpath_overrides_runpath=no
14728 hardcode_into_libs=yes
14729 dynamic_linker='GNU ld.so'
14732 freebsd* | dragonfly*)
14733 # DragonFly does not have aout. When/if they implement a new
14734 # versioning mechanism, adjust this.
14735 if test -x /usr/bin/objformat; then
14736 objformat=`/usr/bin/objformat`
14739 freebsd[123]*) objformat=aout ;;
14740 *) objformat=elf ;;
14743 version_type=freebsd-$objformat
14744 case $version_type in
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14755 shlibpath_var=LD_LIBRARY_PATH
14758 shlibpath_overrides_runpath=yes
14760 freebsd3.[01]* | freebsdelf3.[01]*)
14761 shlibpath_overrides_runpath=yes
14762 hardcode_into_libs=yes
14764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14766 shlibpath_overrides_runpath=no
14767 hardcode_into_libs=yes
14769 freebsd*) # from 4.6 on
14770 shlibpath_overrides_runpath=yes
14771 hardcode_into_libs=yes
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14781 soname_spec='${libname}${release}${shared_ext}$major'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 hardcode_into_libs=yes
14786 hpux9* | hpux10* | hpux11*)
14787 # Give a soname corresponding to the major version so that dld.sl refuses to
14788 # link against other versions.
14795 hardcode_into_libs=yes
14796 dynamic_linker="$host_os dld.so"
14797 shlibpath_var=LD_LIBRARY_PATH
14798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800 soname_spec='${libname}${release}${shared_ext}$major'
14801 if test "X$HPUX_IA64_MODE" = X32; then
14802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14810 hardcode_into_libs=yes
14811 dynamic_linker="$host_os dld.sl"
14812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14821 dynamic_linker="$host_os dld.sl"
14822 shlibpath_var=SHLIB_PATH
14823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14825 soname_spec='${libname}${release}${shared_ext}$major'
14828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14829 postinstall_cmds='chmod 555 $lib'
14836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 shlibpath_overrides_runpath=no
14841 hardcode_into_libs=yes
14844 irix5* | irix6* | nonstopux*)
14846 nonstopux*) version_type=nonstopux ;;
14848 if test "$lt_cv_prog_gnu_ld" = yes; then
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14859 irix5* | nonstopux*)
14860 libsuff= shlibsuff=
14863 case $LD in # libtool.m4 will add one of these switches to LD
14864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14865 libsuff= shlibsuff= libmagic=32-bit;;
14866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14867 libsuff=32 shlibsuff=N32 libmagic=N32;;
14868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14870 *) libsuff= shlibsuff= libmagic=never-match;;
14874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14875 shlibpath_overrides_runpath=no
14876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14878 hardcode_into_libs=yes
14881 # No shared lib support for Linux oldld, aout, or coff.
14882 linux*oldld* | linux*aout* | linux*coff*)
14886 # This must be Linux ELF.
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 shlibpath_overrides_runpath=no
14896 # This implies no fast_install, which is unacceptable.
14897 # Some rework will be needed to allow for fast_install
14898 # before this can be enabled.
14899 hardcode_into_libs=yes
14901 # Append ld.so.conf contents to the search path
14902 if test -f /etc/ld.so.conf; then
14903 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14907 # We used to test for /lib/ld.so.1 and disable shared libraries on
14908 # powerpc, because MkLinux only supported shared libraries with the
14909 # GNU dynamic linker. Since this was broken with cross compilers,
14910 # most powerpc-linux boxes support dynamic linking these days and
14911 # people can always --disable-shared, the test was removed, and we
14912 # assume the GNU/Linux dynamic linker is in use.
14913 dynamic_linker='GNU/Linux ld.so'
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=no
14924 hardcode_into_libs=yes
14925 dynamic_linker='GNU ld.so'
14932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14935 dynamic_linker='NetBSD (a.out) ld.so'
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 dynamic_linker='NetBSD ld.elf_so'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes
14943 hardcode_into_libs=yes
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 shlibpath_overrides_runpath=yes
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 shlibpath_overrides_runpath=yes
14965 sys_lib_dlsearch_path_spec="/usr/lib"
14967 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14969 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14970 *) need_version=no ;;
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14977 openbsd2.[89] | openbsd2.[89].*)
14978 shlibpath_overrides_runpath=no
14981 shlibpath_overrides_runpath=yes
14985 shlibpath_overrides_runpath=yes
14990 libname_spec='$name'
14993 library_names_spec='$libname${shared_ext} $libname.a'
14994 dynamic_linker='OS/2 ld.exe'
14995 shlibpath_var=LIBPATH
14998 osf3* | osf4* | osf5*)
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 shlibpath_var=LD_LIBRARY_PATH
15005 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15006 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 shlibpath_overrides_runpath=yes
15017 hardcode_into_libs=yes
15018 # ldd complains unless libraries are executable
15019 postinstall_cmds='chmod +x $lib'
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 shlibpath_overrides_runpath=yes
15028 if test "$with_gnu_ld" = yes; then
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 case $host_vendor in
15041 shlibpath_overrides_runpath=no
15043 export_dynamic_flag_spec='${wl}-Blargedynsym'
15044 runpath_var=LD_RUN_PATH
15052 shlibpath_overrides_runpath=no
15053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15059 if test -d /usr/nec ;then
15061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15062 soname_spec='$libname${shared_ext}.$major'
15063 shlibpath_var=LD_LIBRARY_PATH
15067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15068 version_type=freebsd-elf
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 shlibpath_var=LD_LIBRARY_PATH
15074 hardcode_into_libs=yes
15075 if test "$with_gnu_ld" = yes; then
15076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15077 shlibpath_overrides_runpath=no
15079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15080 shlibpath_overrides_runpath=yes
15083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15087 sys_lib_dlsearch_path_spec='/usr/lib'
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 shlibpath_var=LD_LIBRARY_PATH
15101 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15102 echo "${ECHO_T}$dynamic_linker" >&6; }
15103 test "$dynamic_linker" = no && can_build_shared=no
15105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15106 if test "$GCC" = yes; then
15107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15110 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15111 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15112 hardcode_action_CXX=
15113 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15114 test -n "$runpath_var_CXX" || \
15115 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15117 # We can hardcode non-existant directories.
15118 if test "$hardcode_direct_CXX" != no &&
15119 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15120 # have to relink, otherwise we might link with an installed library
15121 # when we should be linking with a yet-to-be-installed one
15122 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15123 test "$hardcode_minus_L_CXX" != no; then
15124 # Linking always hardcodes the temporary library directory.
15125 hardcode_action_CXX=relink
15127 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15128 hardcode_action_CXX=immediate
15131 # We cannot hardcode anything, or else we can only hardcode existing
15133 hardcode_action_CXX=unsupported
15135 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15136 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15138 if test "$hardcode_action_CXX" = relink; then
15139 # Fast installation is not supported
15140 enable_fast_install=no
15141 elif test "$shlibpath_overrides_runpath" = yes ||
15142 test "$enable_shared" = no; then
15143 # Fast installation is not necessary
15144 enable_fast_install=needless
15148 # The else clause should only fire when bootstrapping the
15149 # libtool distribution, otherwise you forgot to ship ltmain.sh
15150 # with your package, and you will get complaints that there are
15151 # no rules to generate ltmain.sh.
15152 if test -f "$ltmain"; then
15153 # See if we are running on zsh, and set the options which allow our commands through
15154 # without removal of \ escapes.
15155 if test -n "${ZSH_VERSION+set}" ; then
15156 setopt NO_GLOB_SUBST
15158 # Now quote all the things that may contain metacharacters while being
15159 # careful not to overquote the AC_SUBSTed values. We take copies of the
15160 # variables and quote the copies for generation of the libtool script.
15161 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15163 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15164 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15165 deplibs_check_method reload_flag reload_cmds need_locks \
15166 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15167 lt_cv_sys_global_symbol_to_c_name_address \
15168 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15169 old_postinstall_cmds old_postuninstall_cmds \
15173 lt_prog_compiler_wl_CXX \
15174 lt_prog_compiler_pic_CXX \
15175 lt_prog_compiler_static_CXX \
15176 lt_prog_compiler_no_builtin_flag_CXX \
15177 export_dynamic_flag_spec_CXX \
15178 thread_safe_flag_spec_CXX \
15179 whole_archive_flag_spec_CXX \
15180 enable_shared_with_static_runtimes_CXX \
15181 old_archive_cmds_CXX \
15182 old_archive_from_new_cmds_CXX \
15183 predep_objects_CXX \
15184 postdep_objects_CXX \
15187 compiler_lib_search_path_CXX \
15189 archive_expsym_cmds_CXX \
15190 postinstall_cmds_CXX \
15191 postuninstall_cmds_CXX \
15192 old_archive_from_expsyms_cmds_CXX \
15193 allow_undefined_flag_CXX \
15194 no_undefined_flag_CXX \
15195 export_symbols_cmds_CXX \
15196 hardcode_libdir_flag_spec_CXX \
15197 hardcode_libdir_flag_spec_ld_CXX \
15198 hardcode_libdir_separator_CXX \
15199 hardcode_automatic_CXX \
15201 module_expsym_cmds_CXX \
15202 lt_cv_prog_compiler_c_o_CXX \
15203 exclude_expsyms_CXX \
15204 include_expsyms_CXX; do
15207 old_archive_cmds_CXX | \
15208 old_archive_from_new_cmds_CXX | \
15209 archive_cmds_CXX | \
15210 archive_expsym_cmds_CXX | \
15211 module_cmds_CXX | \
15212 module_expsym_cmds_CXX | \
15213 old_archive_from_expsyms_cmds_CXX | \
15214 export_symbols_cmds_CXX | \
15215 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15216 postinstall_cmds | postuninstall_cmds | \
15217 old_postinstall_cmds | old_postuninstall_cmds | \
15218 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15219 # Double-quote double-evaled strings.
15220 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15223 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15229 *'\$0 --fallback-echo"')
15230 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15236 cat <<__EOF__ >> "$cfgfile"
15237 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15239 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15241 # Shell to use when invoking shell scripts.
15244 # Whether or not to build shared libraries.
15245 build_libtool_libs=$enable_shared
15247 # Whether or not to build static libraries.
15248 build_old_libs=$enable_static
15250 # Whether or not to add -lc for building shared libraries.
15251 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15253 # Whether or not to disallow shared libs when runtime libs are static
15254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15256 # Whether or not to optimize for fast installation.
15257 fast_install=$enable_fast_install
15260 host_alias=$host_alias
15264 # The build system.
15265 build_alias=$build_alias
15269 # An echo program that does not interpret backslashes.
15274 AR_FLAGS=$lt_AR_FLAGS
15279 # LTCC compiler flags.
15280 LTCFLAGS=$lt_LTCFLAGS
15282 # A language-specific compiler.
15283 CC=$lt_compiler_CXX
15285 # Is the compiler the GNU C compiler?
15291 # The linker used to build libraries.
15294 # Whether we need hard or soft links.
15297 # A BSD-compatible nm program.
15300 # A symbol stripping program
15303 # Used to examine libraries when file_magic_cmd begins "file"
15304 MAGIC_CMD=$MAGIC_CMD
15306 # Used on cygwin: DLL creation program.
15309 # Used on cygwin: object dumper.
15312 # Used on cygwin: assembler.
15315 # The name of the directory that contains temporary libtool files.
15318 # How to create reloadable object files.
15319 reload_flag=$lt_reload_flag
15320 reload_cmds=$lt_reload_cmds
15322 # How to pass a linker flag through the compiler.
15323 wl=$lt_lt_prog_compiler_wl_CXX
15325 # Object file suffix (normally "o").
15326 objext="$ac_objext"
15328 # Old archive suffix (normally "a").
15331 # Shared library suffix (normally ".so").
15332 shrext_cmds='$shrext_cmds'
15334 # Executable file suffix (normally "").
15337 # Additional compiler flags for building library objects.
15338 pic_flag=$lt_lt_prog_compiler_pic_CXX
15341 # What is the maximum length of a command?
15342 max_cmd_len=$lt_cv_sys_max_cmd_len
15344 # Does compiler simultaneously support -c and -o options?
15345 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15347 # Must we lock files when doing compilation?
15348 need_locks=$lt_need_locks
15350 # Do we need the lib prefix for modules?
15351 need_lib_prefix=$need_lib_prefix
15353 # Do we need a version for libraries?
15354 need_version=$need_version
15356 # Whether dlopen is supported.
15357 dlopen_support=$enable_dlopen
15359 # Whether dlopen of programs is supported.
15360 dlopen_self=$enable_dlopen_self
15362 # Whether dlopen of statically linked programs is supported.
15363 dlopen_self_static=$enable_dlopen_self_static
15365 # Compiler flag to prevent dynamic linking.
15366 link_static_flag=$lt_lt_prog_compiler_static_CXX
15368 # Compiler flag to turn off builtin functions.
15369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15371 # Compiler flag to allow reflexive dlopens.
15372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15374 # Compiler flag to generate shared objects directly from archives.
15375 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15377 # Compiler flag to generate thread-safe objects.
15378 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15380 # Library versioning type.
15381 version_type=$version_type
15383 # Format of library name prefix.
15384 libname_spec=$lt_libname_spec
15386 # List of archive names. First name is the real one, the rest are links.
15387 # The last name is the one that the linker finds with -lNAME.
15388 library_names_spec=$lt_library_names_spec
15390 # The coded name of the library, if different from the real name.
15391 soname_spec=$lt_soname_spec
15393 # Commands used to build and install an old-style archive.
15395 old_archive_cmds=$lt_old_archive_cmds_CXX
15396 old_postinstall_cmds=$lt_old_postinstall_cmds
15397 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15399 # Create an old-style archive from a shared archive.
15400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15402 # Create a temporary old-style archive to link instead of a shared archive.
15403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15405 # Commands used to build and install a shared archive.
15406 archive_cmds=$lt_archive_cmds_CXX
15407 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15408 postinstall_cmds=$lt_postinstall_cmds
15409 postuninstall_cmds=$lt_postuninstall_cmds
15411 # Commands used to build a loadable module (assumed same as above if empty)
15412 module_cmds=$lt_module_cmds_CXX
15413 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15415 # Commands to strip libraries.
15416 old_striplib=$lt_old_striplib
15417 striplib=$lt_striplib
15419 # Dependencies to place before the objects being linked to create a
15421 predep_objects=$lt_predep_objects_CXX
15423 # Dependencies to place after the objects being linked to create a
15425 postdep_objects=$lt_postdep_objects_CXX
15427 # Dependencies to place before the objects being linked to create a
15429 predeps=$lt_predeps_CXX
15431 # Dependencies to place after the objects being linked to create a
15433 postdeps=$lt_postdeps_CXX
15435 # The library search path used internally by the compiler when linking
15436 # a shared library.
15437 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15439 # Method to check whether dependent libraries are shared objects.
15440 deplibs_check_method=$lt_deplibs_check_method
15442 # Command to use when deplibs_check_method == file_magic.
15443 file_magic_cmd=$lt_file_magic_cmd
15445 # Flag that allows shared libraries with undefined symbols to be built.
15446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15448 # Flag that forces no undefined symbols.
15449 no_undefined_flag=$lt_no_undefined_flag_CXX
15451 # Commands used to finish a libtool library installation in a directory.
15452 finish_cmds=$lt_finish_cmds
15454 # Same as above, but a single script fragment to be evaled but not shown.
15455 finish_eval=$lt_finish_eval
15457 # Take the output of nm and produce a listing of raw symbols and C names.
15458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15460 # Transform the output of nm in a proper C declaration
15461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15463 # Transform the output of nm in a C name address pair
15464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15466 # This is the shared library runtime path variable.
15467 runpath_var=$runpath_var
15469 # This is the shared library path variable.
15470 shlibpath_var=$shlibpath_var
15472 # Is shlibpath searched before the hard-coded library search path?
15473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15475 # How to hardcode a shared library path into an executable.
15476 hardcode_action=$hardcode_action_CXX
15478 # Whether we should hardcode library paths into libraries.
15479 hardcode_into_libs=$hardcode_into_libs
15481 # Flag to hardcode \$libdir into a binary during linking.
15482 # This must work even if \$libdir does not exist.
15483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15485 # If ld is used when linking, flag to hardcode \$libdir into
15486 # a binary during linking. This must work even if \$libdir does
15488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15490 # Whether we need a single -rpath flag with a separated argument.
15491 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15494 # resulting binary.
15495 hardcode_direct=$hardcode_direct_CXX
15497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15498 # resulting binary.
15499 hardcode_minus_L=$hardcode_minus_L_CXX
15501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15502 # the resulting binary.
15503 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15505 # Set to yes if building a shared library automatically hardcodes DIR into the library
15506 # and all subsequent libraries and executables linked against it.
15507 hardcode_automatic=$hardcode_automatic_CXX
15509 # Variables whose values should be saved in libtool wrapper scripts and
15510 # restored at relink time.
15511 variables_saved_for_relink="$variables_saved_for_relink"
15513 # Whether libtool must link a program against all its dependency libraries.
15514 link_all_deplibs=$link_all_deplibs_CXX
15516 # Compile-time system search path for libraries
15517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15519 # Run-time system search path for libraries
15520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15522 # Fix the shell variable \$srcfile for the compiler.
15523 fix_srcfile_path="$fix_srcfile_path_CXX"
15525 # Set to yes if exported symbols are required.
15526 always_export_symbols=$always_export_symbols_CXX
15528 # The commands to list exported symbols.
15529 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15531 # The commands to extract the exported symbol list from a shared archive.
15532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15534 # Symbols that should not be listed in the preloaded symbols.
15535 exclude_expsyms=$lt_exclude_expsyms_CXX
15537 # Symbols that must always be exported.
15538 include_expsyms=$lt_include_expsyms_CXX
15540 # ### END LIBTOOL TAG CONFIG: $tagname
15546 # If there is no Makefile yet, we rely on a make rule to execute
15547 # `config.status --recheck' to rerun these tests and create the
15548 # libtool script then.
15549 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15550 if test -f "$ltmain_in"; then
15551 test -f Makefile && make "$ltmain"
15557 ac_cpp='$CPP $CPPFLAGS'
15558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15566 with_gnu_ldcxx=$with_gnu_ld
15567 with_gnu_ld=$lt_save_with_gnu_ld
15568 lt_cv_path_LDCXX=$lt_cv_path_LD
15569 lt_cv_path_LD=$lt_save_path_LD
15570 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15571 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15579 if test -n "$F77" && test "X$F77" != "Xno"; then
15582 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15583 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15587 archive_cmds_need_lc_F77=no
15588 allow_undefined_flag_F77=
15589 always_export_symbols_F77=no
15590 archive_expsym_cmds_F77=
15591 export_dynamic_flag_spec_F77=
15592 hardcode_direct_F77=no
15593 hardcode_libdir_flag_spec_F77=
15594 hardcode_libdir_flag_spec_ld_F77=
15595 hardcode_libdir_separator_F77=
15596 hardcode_minus_L_F77=no
15597 hardcode_automatic_F77=no
15599 module_expsym_cmds_F77=
15600 link_all_deplibs_F77=unknown
15601 old_archive_cmds_F77=$old_archive_cmds
15602 no_undefined_flag_F77=
15603 whole_archive_flag_spec_F77=
15604 enable_shared_with_static_runtimes_F77=no
15606 # Source file extension for f77 test sources.
15609 # Object file extension for compiled f77 test sources.
15613 # Code to be used in simple compile tests
15614 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15616 # Code to be used in simple link tests
15617 lt_simple_link_test_code=" program t\n end\n"
15619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15621 # If no C compiler was specified, use CC.
15624 # If no C compiler flags were specified, use CFLAGS.
15625 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15627 # Allow CC to be a program name with arguments.
15631 # save warnings/boilerplate of simple test code
15632 ac_outfile=conftest.$ac_objext
15633 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15635 _lt_compiler_boilerplate=`cat conftest.err`
15638 ac_outfile=conftest.$ac_objext
15639 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15641 _lt_linker_boilerplate=`cat conftest.err`
15645 # Allow CC to be a program name with arguments.
15650 for cc_temp in $compiler""; do
15652 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15653 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15658 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15661 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15662 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15663 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15664 echo "${ECHO_T}$can_build_shared" >&6; }
15666 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15667 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15668 test "$can_build_shared" = "no" && enable_shared=no
15670 # On AIX, shared libraries and static libraries use the same namespace, and
15671 # are all built from PIC.
15674 test "$enable_shared" = yes && enable_static=no
15675 if test -n "$RANLIB"; then
15676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15677 postinstall_cmds='$RANLIB $lib'
15681 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15682 test "$enable_shared" = yes && enable_static=no
15686 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15687 echo "${ECHO_T}$enable_shared" >&6; }
15689 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15690 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15691 # Make sure either enable_shared or enable_static is yes.
15692 test "$enable_shared" = yes || enable_static=yes
15693 { echo "$as_me:$LINENO: result: $enable_static" >&5
15694 echo "${ECHO_T}$enable_static" >&6; }
15699 lt_prog_compiler_wl_F77=
15700 lt_prog_compiler_pic_F77=
15701 lt_prog_compiler_static_F77=
15703 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15706 if test "$GCC" = yes; then
15707 lt_prog_compiler_wl_F77='-Wl,'
15708 lt_prog_compiler_static_F77='-static'
15712 # All AIX code is PIC.
15713 if test "$host_cpu" = ia64; then
15714 # AIX 5 now supports IA64 processor
15715 lt_prog_compiler_static_F77='-Bstatic'
15720 # FIXME: we need at least 68020 code to build shared libraries, but
15721 # adding the `-m68020' flag to GCC prevents building anything better,
15723 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15726 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15727 # PIC is the default for these OSes.
15730 mingw* | pw32* | os2*)
15731 # This hack is so that the source file can tell whether it is being
15732 # built for inclusion in a dll (and should export symbols for example).
15733 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15736 darwin* | rhapsody*)
15737 # PIC is the default on this platform
15738 # Common symbols not allowed in MH_DYLIB files
15739 lt_prog_compiler_pic_F77='-fno-common'
15743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15744 # Instead, we relocate shared libraries at runtime.
15748 # Just because we use GCC doesn't mean we suddenly get shared libraries
15749 # on systems that don't support them.
15750 lt_prog_compiler_can_build_shared_F77=no
15755 if test -d /usr/nec; then
15756 lt_prog_compiler_pic_F77=-Kconform_pic
15761 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15762 # not for PA HP-UX.
15768 lt_prog_compiler_pic_F77='-fPIC'
15774 lt_prog_compiler_pic_F77='-fPIC'
15778 # PORTME Check for flag to pass linker flags through the system compiler.
15781 lt_prog_compiler_wl_F77='-Wl,'
15782 if test "$host_cpu" = ia64; then
15783 # AIX 5 now supports IA64 processor
15784 lt_prog_compiler_static_F77='-Bstatic'
15786 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15790 # PIC is the default on this platform
15791 # Common symbols not allowed in MH_DYLIB files
15792 case $cc_basename in
15794 lt_prog_compiler_pic_F77='-qnocommon'
15795 lt_prog_compiler_wl_F77='-Wl,'
15800 mingw* | pw32* | os2*)
15801 # This hack is so that the source file can tell whether it is being
15802 # built for inclusion in a dll (and should export symbols for example).
15803 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15806 hpux9* | hpux10* | hpux11*)
15807 lt_prog_compiler_wl_F77='-Wl,'
15808 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15809 # not for PA HP-UX.
15815 lt_prog_compiler_pic_F77='+Z'
15818 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15819 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15822 irix5* | irix6* | nonstopux*)
15823 lt_prog_compiler_wl_F77='-Wl,'
15824 # PIC (with -KPIC) is the default.
15825 lt_prog_compiler_static_F77='-non_shared'
15829 lt_prog_compiler_pic_F77='-KPIC'
15830 lt_prog_compiler_static_F77='-Bstatic'
15834 case $cc_basename in
15836 lt_prog_compiler_wl_F77='-Wl,'
15837 lt_prog_compiler_pic_F77='-KPIC'
15838 lt_prog_compiler_static_F77='-static'
15840 pgcc* | pgf77* | pgf90* | pgf95*)
15841 # Portland Group compilers (*not* the Pentium gcc compiler,
15842 # which looks to be a dead project)
15843 lt_prog_compiler_wl_F77='-Wl,'
15844 lt_prog_compiler_pic_F77='-fpic'
15845 lt_prog_compiler_static_F77='-Bstatic'
15848 lt_prog_compiler_wl_F77='-Wl,'
15849 # All Alpha code is PIC.
15850 lt_prog_compiler_static_F77='-non_shared'
15855 osf3* | osf4* | osf5*)
15856 lt_prog_compiler_wl_F77='-Wl,'
15857 # All OSF/1 code is PIC.
15858 lt_prog_compiler_static_F77='-non_shared'
15862 lt_prog_compiler_pic_F77='-KPIC'
15863 lt_prog_compiler_static_F77='-Bstatic'
15864 case $cc_basename in
15865 f77* | f90* | f95*)
15866 lt_prog_compiler_wl_F77='-Qoption ld ';;
15868 lt_prog_compiler_wl_F77='-Wl,';;
15873 lt_prog_compiler_wl_F77='-Qoption ld '
15874 lt_prog_compiler_pic_F77='-PIC'
15875 lt_prog_compiler_static_F77='-Bstatic'
15878 sysv4 | sysv4.2uw2* | sysv4.3*)
15879 lt_prog_compiler_wl_F77='-Wl,'
15880 lt_prog_compiler_pic_F77='-KPIC'
15881 lt_prog_compiler_static_F77='-Bstatic'
15885 if test -d /usr/nec ;then
15886 lt_prog_compiler_pic_F77='-Kconform_pic'
15887 lt_prog_compiler_static_F77='-Bstatic'
15891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15892 lt_prog_compiler_wl_F77='-Wl,'
15893 lt_prog_compiler_pic_F77='-KPIC'
15894 lt_prog_compiler_static_F77='-Bstatic'
15898 lt_prog_compiler_wl_F77='-Wl,'
15899 lt_prog_compiler_can_build_shared_F77=no
15903 lt_prog_compiler_pic_F77='-pic'
15904 lt_prog_compiler_static_F77='-Bstatic'
15908 lt_prog_compiler_can_build_shared_F77=no
15913 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15914 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15917 # Check to make sure the PIC flag actually works.
15919 if test -n "$lt_prog_compiler_pic_F77"; then
15921 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15922 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15923 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 lt_prog_compiler_pic_works_F77=no
15927 ac_outfile=conftest.$ac_objext
15928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15929 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15930 # Insert the option either (1) after the last *FLAGS variable, or
15931 # (2) before a word containing "conftest.", or (3) at the end.
15932 # Note that $ac_compile itself does not contain backslashes and begins
15933 # with a dollar sign (not a hyphen), so the echo should work correctly.
15934 # The option is referenced via a variable to avoid confusing sed.
15935 lt_compile=`echo "$ac_compile" | $SED \
15936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15938 -e 's:$: $lt_compiler_flag:'`
15939 (eval echo "\"\$as_me:15939: $lt_compile\"" >&5)
15940 (eval "$lt_compile" 2>conftest.err)
15942 cat conftest.err >&5
15943 echo "$as_me:15943: \$? = $ac_status" >&5
15944 if (exit $ac_status) && test -s "$ac_outfile"; then
15945 # The compiler can only warn and ignore the option if not recognized
15946 # So say no if there are warnings other than the usual output.
15947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15949 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15950 lt_prog_compiler_pic_works_F77=yes
15956 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15957 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15959 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15960 case $lt_prog_compiler_pic_F77 in
15962 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15965 lt_prog_compiler_pic_F77=
15966 lt_prog_compiler_can_build_shared_F77=no
15971 # For platforms which do not support PIC, -DPIC is meaningless:
15973 lt_prog_compiler_pic_F77=
15976 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15981 # Check to make sure the static flag actually works.
15983 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15984 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15985 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15986 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 lt_prog_compiler_static_works_F77=no
15990 save_LDFLAGS="$LDFLAGS"
15991 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15992 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15994 # The linker can only warn and ignore the option if not recognized
15995 # So say no if there are warnings
15996 if test -s conftest.err; then
15997 # Append any errors to the config.log.
15998 cat conftest.err 1>&5
15999 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16001 if diff conftest.exp conftest.er2 >/dev/null; then
16002 lt_prog_compiler_static_works_F77=yes
16005 lt_prog_compiler_static_works_F77=yes
16009 LDFLAGS="$save_LDFLAGS"
16012 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16013 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
16015 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16018 lt_prog_compiler_static_F77=
16022 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16023 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16024 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 lt_cv_prog_compiler_c_o_F77=no
16028 $rm -r conftest 2>/dev/null
16032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16034 lt_compiler_flag="-o out/conftest2.$ac_objext"
16035 # Insert the option either (1) after the last *FLAGS variable, or
16036 # (2) before a word containing "conftest.", or (3) at the end.
16037 # Note that $ac_compile itself does not contain backslashes and begins
16038 # with a dollar sign (not a hyphen), so the echo should work correctly.
16039 lt_compile=`echo "$ac_compile" | $SED \
16040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16042 -e 's:$: $lt_compiler_flag:'`
16043 (eval echo "\"\$as_me:16043: $lt_compile\"" >&5)
16044 (eval "$lt_compile" 2>out/conftest.err)
16046 cat out/conftest.err >&5
16047 echo "$as_me:16047: \$? = $ac_status" >&5
16048 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16050 # The compiler can only warn and ignore the option if not recognized
16051 # So say no if there are warnings
16052 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16053 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16054 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16055 lt_cv_prog_compiler_c_o_F77=yes
16060 # SGI C++ compiler will create directory out/ii_files/ for
16061 # template instantiation
16062 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16063 $rm out/* && rmdir out
16069 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16070 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16073 hard_links="nottested"
16074 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16075 # do not overwrite the value of need_locks provided by the user
16076 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16077 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16082 ln conftest.a conftest.b 2>&5 || hard_links=no
16083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16084 { echo "$as_me:$LINENO: result: $hard_links" >&5
16085 echo "${ECHO_T}$hard_links" >&6; }
16086 if test "$hard_links" = no; then
16087 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16088 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16095 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16096 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16099 allow_undefined_flag_F77=
16100 enable_shared_with_static_runtimes_F77=no
16102 archive_expsym_cmds_F77=
16103 old_archive_From_new_cmds_F77=
16104 old_archive_from_expsyms_cmds_F77=
16105 export_dynamic_flag_spec_F77=
16106 whole_archive_flag_spec_F77=
16107 thread_safe_flag_spec_F77=
16108 hardcode_libdir_flag_spec_F77=
16109 hardcode_libdir_flag_spec_ld_F77=
16110 hardcode_libdir_separator_F77=
16111 hardcode_direct_F77=no
16112 hardcode_minus_L_F77=no
16113 hardcode_shlibpath_var_F77=unsupported
16114 link_all_deplibs_F77=unknown
16115 hardcode_automatic_F77=no
16117 module_expsym_cmds_F77=
16118 always_export_symbols_F77=no
16119 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16120 # include_expsyms should be a list of space-separated symbols to be *always*
16121 # included in the symbol list
16122 include_expsyms_F77=
16123 # exclude_expsyms can be an extended regexp of symbols to exclude
16124 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16126 # as well as any symbol that contains `d'.
16127 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16129 # platforms (ab)use it in PIC code, but their linkers get confused if
16130 # the symbol is explicitly referenced. Since portable code cannot
16131 # rely on this symbol name, it's probably fine to never include it in
16132 # preloaded symbol tables.
16133 extract_expsyms_cmds=
16134 # Just being paranoid about ensuring that cc_basename is set.
16135 for cc_temp in $compiler""; do
16137 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16138 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16146 cygwin* | mingw* | pw32*)
16147 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16148 # When not using gcc, we currently assume that we are using
16149 # Microsoft Visual C++.
16150 if test "$GCC" != yes; then
16155 # we just hope/assume this is gcc and not c89 (= MSVC++)
16164 if test "$with_gnu_ld" = yes; then
16165 # If archive_cmds runs LD, not CC, wlarc should be empty
16168 # Set some defaults for GNU ld with shared library support. These
16169 # are reset later if shared libraries are not supported. Putting them
16170 # here allows them to be overridden if necessary.
16171 runpath_var=LD_RUN_PATH
16172 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16173 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16174 # ancient GNU ld didn't support --whole-archive et. al.
16175 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16176 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16178 whole_archive_flag_spec_F77=
16180 supports_anon_versioning=no
16181 case `$LD -v 2>/dev/null` in
16182 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16183 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16184 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16185 *\ 2.11.*) ;; # other 2.11 versions
16186 *) supports_anon_versioning=yes ;;
16189 # See if GNU ld supports shared libraries.
16191 aix3* | aix4* | aix5*)
16192 # On AIX/PPC, the GNU linker is very broken
16193 if test "$host_cpu" != ia64; then
16197 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16198 *** to be unable to reliably create shared libraries on AIX.
16199 *** Therefore, libtool is disabling shared libraries support. If you
16200 *** really care for shared libraries, you may want to modify your PATH
16201 *** so that a non-GNU linker is found, and then restart.
16208 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)'
16209 hardcode_libdir_flag_spec_F77='-L$libdir'
16210 hardcode_minus_L_F77=yes
16212 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16213 # that the semantics of dynamic libraries on AmigaOS, at least up
16214 # to version 4, is to share data among multiple programs linked
16215 # with the same dynamic library. Since this doesn't match the
16216 # behavior of shared libraries on other platforms, we can't use
16222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16223 allow_undefined_flag_F77=unsupported
16224 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16225 # support --undefined. This deserves some investigation. FIXME
16226 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16232 cygwin* | mingw* | pw32*)
16233 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16234 # as there is no search path for DLLs.
16235 hardcode_libdir_flag_spec_F77='-L$libdir'
16236 allow_undefined_flag_F77=unsupported
16237 always_export_symbols_F77=no
16238 enable_shared_with_static_runtimes_F77=yes
16239 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16241 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16242 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16243 # If the export-symbols file already is a .def file (1st line
16244 # is EXPORTS), use it as is; otherwise, prepend...
16245 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16246 cp $export_symbols $output_objdir/$soname.def;
16248 echo EXPORTS > $output_objdir/$soname.def;
16249 cat $export_symbols >> $output_objdir/$soname.def;
16251 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16258 hardcode_direct_F77=no
16259 hardcode_shlibpath_var_F77=no
16260 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16261 export_dynamic_flag_spec_F77='${wl}-E'
16262 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16263 # Instead, shared libraries are loaded at an image base (0x10000000 by
16264 # default) and relocated if they conflict, which is a slow very memory
16265 # consuming and fragmenting process. To avoid this, we pick a random,
16266 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16267 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16268 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'
16269 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'
16273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16275 case $cc_basename,$host_cpu in
16276 pgcc*) # Portland Group C compiler
16277 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'
16278 tmp_addflag=' $pic_flag'
16280 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16281 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'
16282 tmp_addflag=' $pic_flag -Mnomain' ;;
16283 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16284 tmp_addflag=' -i_dynamic' ;;
16285 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16286 tmp_addflag=' -i_dynamic -nofor_main' ;;
16287 ifc* | ifort*) # Intel Fortran compiler
16288 tmp_addflag=' -nofor_main' ;;
16290 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16292 if test $supports_anon_versioning = yes; then
16293 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16295 $echo "local: *; };" >> $output_objdir/$libname.ver~
16296 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16305 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16309 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16314 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16318 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16319 *** create shared libraries on Solaris systems. Therefore, libtool
16320 *** is disabling shared libraries support. We urge you to upgrade GNU
16321 *** binutils to release 2.9.1 or newer. Another option is to modify
16322 *** your PATH or compiler configuration so that the native linker is
16323 *** used, and then restart.
16326 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16327 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16328 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16335 case `$LD -v 2>&1` in
16336 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16340 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16341 *** reliably create shared libraries on SCO systems. Therefore, libtool
16342 *** is disabling shared libraries support. We urge you to upgrade GNU
16343 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16344 *** your PATH or compiler configuration so that the native linker is
16345 *** used, and then restart.
16350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16351 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16352 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16353 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16362 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16364 hardcode_direct_F77=yes
16365 hardcode_shlibpath_var_F77=no
16369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16370 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16371 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16378 if test "$ld_shlibs_F77" = no; then
16380 hardcode_libdir_flag_spec_F77=
16381 export_dynamic_flag_spec_F77=
16382 whole_archive_flag_spec_F77=
16385 # PORTME fill in a description of your system's linker (not GNU ld)
16388 allow_undefined_flag_F77=unsupported
16389 always_export_symbols_F77=yes
16390 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'
16391 # Note: this linker hardcodes the directories in LIBPATH if there
16392 # are no directories specified by -L.
16393 hardcode_minus_L_F77=yes
16394 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16395 # Neither direct hardcoding nor static linking is supported with a
16397 hardcode_direct_F77=unsupported
16402 if test "$host_cpu" = ia64; then
16403 # On IA64, the linker does run time linking by default, so we don't
16404 # have to do anything special.
16405 aix_use_runtimelinking=no
16406 exp_sym_flag='-Bexport'
16409 # If we're using GNU nm, then we don't want the "-C" option.
16410 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16411 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16412 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'
16414 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'
16416 aix_use_runtimelinking=no
16418 # Test if we are trying to use run time linking or normal
16419 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16420 # need to do runtime linking.
16421 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16422 for ld_flag in $LDFLAGS; do
16423 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16424 aix_use_runtimelinking=yes
16431 exp_sym_flag='-bexport'
16432 no_entry_flag='-bnoentry'
16435 # When large executables or shared objects are built, AIX ld can
16436 # have problems creating the table of contents. If linking a library
16437 # or program results in "error TOC overflow" add -mminimal-toc to
16438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16441 archive_cmds_F77=''
16442 hardcode_direct_F77=yes
16443 hardcode_libdir_separator_F77=':'
16444 link_all_deplibs_F77=yes
16446 if test "$GCC" = yes; then
16447 case $host_os in aix4.[012]|aix4.[012].*)
16448 # We only want to do this on AIX 4.2 and lower, the check
16449 # below for broken collect2 doesn't work under 4.3+
16450 collect2name=`${CC} -print-prog-name=collect2`
16451 if test -f "$collect2name" && \
16452 strings "$collect2name" | grep resolve_lib_name >/dev/null
16454 # We have reworked collect2
16455 hardcode_direct_F77=yes
16457 # We have old collect2
16458 hardcode_direct_F77=unsupported
16459 # It fails to find uninstalled libraries when the uninstalled
16460 # path is not listed in the libpath. Setting hardcode_minus_L
16461 # to unsupported forces relinking
16462 hardcode_minus_L_F77=yes
16463 hardcode_libdir_flag_spec_F77='-L$libdir'
16464 hardcode_libdir_separator_F77=
16468 shared_flag='-shared'
16469 if test "$aix_use_runtimelinking" = yes; then
16470 shared_flag="$shared_flag "'${wl}-G'
16474 if test "$host_cpu" = ia64; then
16475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16476 # chokes on -Wl,-G. The following line is correct:
16479 if test "$aix_use_runtimelinking" = yes; then
16480 shared_flag='${wl}-G'
16482 shared_flag='${wl}-bM:SRE'
16487 # It seems that -bexpall does not export symbols beginning with
16488 # underscore (_), so it is better to generate a list of symbols to export.
16489 always_export_symbols_F77=yes
16490 if test "$aix_use_runtimelinking" = yes; then
16491 # Warning - without using the other runtime loading flags (-brtl),
16492 # -berok will link without error, but may produce a broken library.
16493 allow_undefined_flag_F77='-berok'
16494 # Determine the default libpath from the value encoded in an empty executable.
16495 cat >conftest.$ac_ext <<_ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_f77_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16521 # Check for a 64-bit object if we didn't find anything.
16522 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16532 conftest$ac_exeext conftest.$ac_ext
16533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16535 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16536 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"
16538 if test "$host_cpu" = ia64; then
16539 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16540 allow_undefined_flag_F77="-z nodefs"
16541 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"
16543 # Determine the default libpath from the value encoded in an empty executable.
16544 cat >conftest.$ac_ext <<_ACEOF
16549 rm -f conftest.$ac_objext conftest$ac_exeext
16550 if { (ac_try="$ac_link"
16551 case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_link") 2>conftest.er1
16558 grep -v '^ *+' conftest.er1 >conftest.err
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_f77_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest$ac_exeext &&
16566 $as_test_x conftest$ac_exeext; then
16568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16570 # Check for a 64-bit object if we didn't find anything.
16571 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16581 conftest$ac_exeext conftest.$ac_ext
16582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16584 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16585 # Warning - without using the other run time loading flags,
16586 # -berok will link without error, but may produce a broken library.
16587 no_undefined_flag_F77=' ${wl}-bernotok'
16588 allow_undefined_flag_F77=' ${wl}-berok'
16589 # Exported symbols can be pulled into shared objects from archives
16590 whole_archive_flag_spec_F77='$convenience'
16591 archive_cmds_need_lc_F77=yes
16592 # This is similar to how AIX traditionally builds its shared libraries.
16593 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'
16599 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)'
16600 hardcode_libdir_flag_spec_F77='-L$libdir'
16601 hardcode_minus_L_F77=yes
16602 # see comment about different semantics on the GNU ld section
16607 export_dynamic_flag_spec_F77=-rdynamic
16610 cygwin* | mingw* | pw32*)
16611 # When not using gcc, we currently assume that we are using
16612 # Microsoft Visual C++.
16613 # hardcode_libdir_flag_spec is actually meaningless, as there is
16614 # no search path for DLLs.
16615 hardcode_libdir_flag_spec_F77=' '
16616 allow_undefined_flag_F77=unsupported
16617 # Tell ltmain to make .lib files, not .a files.
16619 # Tell ltmain to make .dll files, not .so files.
16621 # FIXME: Setting linknames here is a bad hack.
16622 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16623 # The linker will automatically build a .lib file if we build a DLL.
16624 old_archive_From_new_cmds_F77='true'
16625 # FIXME: Should let the user specify the lib program.
16626 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16627 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16628 enable_shared_with_static_runtimes_F77=yes
16631 darwin* | rhapsody*)
16633 rhapsody* | darwin1.[012])
16634 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16637 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16638 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16640 case ${MACOSX_DEPLOYMENT_TARGET} in
16642 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16645 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16651 archive_cmds_need_lc_F77=no
16652 hardcode_direct_F77=no
16653 hardcode_automatic_F77=yes
16654 hardcode_shlibpath_var_F77=unsupported
16655 whole_archive_flag_spec_F77=''
16656 link_all_deplibs_F77=yes
16657 if test "$GCC" = yes ; then
16658 output_verbose_link_cmd='echo'
16659 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16660 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16661 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16662 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}'
16663 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}'
16665 case $cc_basename in
16667 output_verbose_link_cmd='echo'
16668 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16669 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16671 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16672 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}'
16682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16683 hardcode_libdir_flag_spec_F77='-L$libdir'
16684 hardcode_shlibpath_var_F77=no
16691 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16692 # support. Future versions do this automatically, but an explicit c++rt0.o
16693 # does not break anything, and helps significantly (at the cost of a little
16696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16697 hardcode_libdir_flag_spec_F77='-R$libdir'
16698 hardcode_direct_F77=yes
16699 hardcode_shlibpath_var_F77=no
16702 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16704 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16705 hardcode_direct_F77=yes
16706 hardcode_minus_L_F77=yes
16707 hardcode_shlibpath_var_F77=no
16710 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16711 freebsd* | kfreebsd*-gnu | dragonfly*)
16712 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16713 hardcode_libdir_flag_spec_F77='-R$libdir'
16714 hardcode_direct_F77=yes
16715 hardcode_shlibpath_var_F77=no
16719 if test "$GCC" = yes; then
16720 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'
16722 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'
16724 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16725 hardcode_libdir_separator_F77=:
16726 hardcode_direct_F77=yes
16728 # hardcode_minus_L: Not really in the search PATH,
16729 # but as the default location of the library.
16730 hardcode_minus_L_F77=yes
16731 export_dynamic_flag_spec_F77='${wl}-E'
16735 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16736 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16740 if test "$with_gnu_ld" = no; then
16741 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16742 hardcode_libdir_separator_F77=:
16744 hardcode_direct_F77=yes
16745 export_dynamic_flag_spec_F77='${wl}-E'
16747 # hardcode_minus_L: Not really in the search PATH,
16748 # but as the default location of the library.
16749 hardcode_minus_L_F77=yes
16754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16757 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16763 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16772 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16775 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16779 if test "$with_gnu_ld" = no; then
16780 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16781 hardcode_libdir_separator_F77=:
16785 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16786 hardcode_direct_F77=no
16787 hardcode_shlibpath_var_F77=no
16790 hardcode_direct_F77=yes
16791 export_dynamic_flag_spec_F77='${wl}-E'
16793 # hardcode_minus_L: Not really in the search PATH,
16794 # but as the default location of the library.
16795 hardcode_minus_L_F77=yes
16801 irix5* | irix6* | nonstopux*)
16802 if test "$GCC" = yes; then
16803 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'
16805 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'
16806 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16809 hardcode_libdir_separator_F77=:
16810 link_all_deplibs_F77=yes
16814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16815 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16817 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16819 hardcode_libdir_flag_spec_F77='-R$libdir'
16820 hardcode_direct_F77=yes
16821 hardcode_shlibpath_var_F77=no
16825 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826 hardcode_direct_F77=yes
16827 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16828 hardcode_libdir_separator_F77=:
16829 hardcode_shlibpath_var_F77=no
16833 hardcode_direct_F77=yes
16834 hardcode_shlibpath_var_F77=no
16835 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16836 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16837 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16838 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16839 export_dynamic_flag_spec_F77='${wl}-E'
16842 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16843 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16844 hardcode_libdir_flag_spec_F77='-R$libdir'
16847 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16848 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16855 hardcode_libdir_flag_spec_F77='-L$libdir'
16856 hardcode_minus_L_F77=yes
16857 allow_undefined_flag_F77=unsupported
16858 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'
16859 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16863 if test "$GCC" = yes; then
16864 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16865 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'
16867 allow_undefined_flag_F77=' -expect_unresolved \*'
16868 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'
16870 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16871 hardcode_libdir_separator_F77=:
16874 osf4* | osf5*) # as osf3* with the addition of -msym flag
16875 if test "$GCC" = yes; then
16876 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16877 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'
16878 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16880 allow_undefined_flag_F77=' -expect_unresolved \*'
16881 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'
16882 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~
16883 $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'
16885 # Both c and cxx compiler support -rpath directly
16886 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16888 hardcode_libdir_separator_F77=:
16892 no_undefined_flag_F77=' -z text'
16893 if test "$GCC" = yes; then
16895 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16896 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16897 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16900 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16901 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16902 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16904 hardcode_libdir_flag_spec_F77='-R$libdir'
16905 hardcode_shlibpath_var_F77=no
16907 solaris2.[0-5] | solaris2.[0-5].*) ;;
16909 # The compiler driver will combine linker options so we
16910 # cannot just pass the convience library names through
16911 # without $wl, iff we do not link with $LD.
16912 # Luckily, gcc supports the same syntax we need for Sun Studio.
16913 # Supported since Solaris 2.6 (maybe 2.5.1?)
16916 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16918 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16921 link_all_deplibs_F77=yes
16925 if test "x$host_vendor" = xsequent; then
16926 # Use $CC to link under sequent, because it throws in some extra .o
16927 # files that make .init and .fini sections work.
16928 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16930 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16932 hardcode_libdir_flag_spec_F77='-L$libdir'
16933 hardcode_direct_F77=yes
16934 hardcode_minus_L_F77=yes
16935 hardcode_shlibpath_var_F77=no
16939 case $host_vendor in
16941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16942 hardcode_direct_F77=yes # is this really true???
16945 ## LD is ld it makes a PLAMLIB
16946 ## CC just makes a GrossModule.
16947 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16948 reload_cmds_F77='$CC -r -o $output$reload_objs'
16949 hardcode_direct_F77=no
16952 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16956 runpath_var='LD_RUN_PATH'
16957 hardcode_shlibpath_var_F77=no
16961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16962 hardcode_shlibpath_var_F77=no
16963 export_dynamic_flag_spec_F77='-Bexport'
16967 if test -d /usr/nec; then
16968 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16969 hardcode_shlibpath_var_F77=no
16970 runpath_var=LD_RUN_PATH
16971 hardcode_runpath_var=yes
16976 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16977 no_undefined_flag_F77='${wl}-z,text'
16978 archive_cmds_need_lc_F77=no
16979 hardcode_shlibpath_var_F77=no
16980 runpath_var='LD_RUN_PATH'
16982 if test "$GCC" = yes; then
16983 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16984 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16986 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16987 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16991 sysv5* | sco3.2v5* | sco5v6*)
16992 # Note: We can NOT use -z defs as we might desire, because we do not
16993 # link with -lc, and that would cause any symbols used from libc to
16994 # always be unresolved, which means just about no library would
16995 # ever link correctly. If we're not using GNU ld we use -z text
16996 # though, which does catch some bad symbols but isn't as heavy-handed
16998 no_undefined_flag_F77='${wl}-z,text'
16999 allow_undefined_flag_F77='${wl}-z,nodefs'
17000 archive_cmds_need_lc_F77=no
17001 hardcode_shlibpath_var_F77=no
17002 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17003 hardcode_libdir_separator_F77=':'
17004 link_all_deplibs_F77=yes
17005 export_dynamic_flag_spec_F77='${wl}-Bexport'
17006 runpath_var='LD_RUN_PATH'
17008 if test "$GCC" = yes; then
17009 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17010 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17012 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17013 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17019 hardcode_libdir_flag_spec_F77='-L$libdir'
17020 hardcode_shlibpath_var_F77=no
17029 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17030 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17031 test "$ld_shlibs_F77" = no && can_build_shared=no
17034 # Do we need to explicitly link libc?
17036 case "x$archive_cmds_need_lc_F77" in
17038 # Assume -lc should be added
17039 archive_cmds_need_lc_F77=yes
17041 if test "$enable_shared" = yes && test "$GCC" = yes; then
17042 case $archive_cmds_F77 in
17044 # FIXME: we may have to deal with multi-command sequences.
17047 # Test whether the compiler implicitly links with -lc since on some
17048 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17049 # to ld, don't add -lc before -lgcc.
17050 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17051 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17056 (eval $ac_compile) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } 2>conftest.err; then
17062 libobjs=conftest.$ac_objext
17064 wl=$lt_prog_compiler_wl_F77
17065 pic_flag=$lt_prog_compiler_pic_F77
17071 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17072 allow_undefined_flag_F77=
17073 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17074 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }
17079 archive_cmds_need_lc_F77=no
17081 archive_cmds_need_lc_F77=yes
17083 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17085 cat conftest.err 1>&5
17088 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17089 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17096 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17097 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17098 library_names_spec=
17099 libname_spec='lib$name'
17103 postuninstall_cmds=
17107 shlibpath_overrides_runpath=unknown
17109 dynamic_linker="$host_os ld.so"
17110 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17111 if test "$GCC" = yes; then
17112 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17113 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17114 # if the path contains ";" then we assume it to be the separator
17115 # otherwise default to the standard path separator (i.e. ":") - it is
17116 # assumed that no part of a normal pathname contains ";" but that should
17117 # okay in the real world where ";" in dirpaths is itself problematic.
17118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17125 need_lib_prefix=unknown
17126 hardcode_into_libs=no
17128 # when you set need_version to no, make sure it does not cause -set_version
17129 # flags to be left without arguments
17130 need_version=unknown
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17136 shlibpath_var=LIBPATH
17138 # AIX 3 has no versioning support, so we append a major version to the name.
17139 soname_spec='${libname}${release}${shared_ext}$major'
17146 hardcode_into_libs=yes
17147 if test "$host_cpu" = ia64; then
17148 # AIX 5 supports IA64
17149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17150 shlibpath_var=LD_LIBRARY_PATH
17152 # With GCC up to 2.95.x, collect2 would create an import file
17153 # for dependence libraries. The import file would start with
17154 # the line `#! .'. This would cause the generated library to
17155 # depend on `.', always an invalid library. This was fixed in
17156 # development snapshots of GCC prior to 3.0.
17158 aix4 | aix4.[01] | aix4.[01].*)
17159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17161 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17164 can_build_shared=no
17168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17169 # soname into executable. Probably we can add versioning support to
17170 # collect2, so additional links can be useful in future.
17171 if test "$aix_use_runtimelinking" = yes; then
17172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17173 # instead of lib<name>.a to let people know that these are not
17174 # typical AIX shared libraries.
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 # We preserve .a as extension for shared libraries through AIX4.2
17178 # and later when we are not doing run time linking.
17179 library_names_spec='${libname}${release}.a $libname.a'
17180 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LIBPATH
17187 library_names_spec='$libname.ixlibrary $libname.a'
17188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17189 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'
17193 library_names_spec='${libname}${shared_ext}'
17194 dynamic_linker="$host_os ld.so"
17195 shlibpath_var=LIBRARY_PATH
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202 soname_spec='${libname}${release}${shared_ext}$major'
17203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17207 # the default ld.so.conf also contains /usr/contrib/lib and
17208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17209 # libtool to hard-code these into programs
17212 cygwin* | mingw* | pw32*)
17213 version_type=windows
17218 case $GCC,$host_os in
17219 yes,cygwin* | yes,mingw* | yes,pw32*)
17220 library_names_spec='$libname.dll.a'
17221 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17222 postinstall_cmds='base_file=`basename \${file}`~
17223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17224 dldir=$destdir/`dirname \$dlpath`~
17225 test -d \$dldir || mkdir -p \$dldir~
17226 $install_prog $dir/$dlname \$dldir/$dlname~
17227 chmod a+x \$dldir/$dlname'
17228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17229 dlpath=$dir/\$dldll~
17231 shlibpath_overrides_runpath=yes
17235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17237 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17240 # MinGW DLLs use traditional 'lib' prefix
17241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17242 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17243 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17244 # It is most probably a Windows format PATH printed by
17245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17246 # path with ; separators, and with drive letters. We can handle the
17247 # drive letters (cygwin fileutils understands them), so leave them,
17248 # especially as we might pass files found there to a mingw objdump,
17249 # which wouldn't understand a cygwinified path. Ahh.
17250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17256 # pw32 DLLs use 'pw' prefix rather than 'lib'
17257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17266 dynamic_linker='Win32 ld.exe'
17267 # FIXME: first we should search . and the directory the executable is in
17271 darwin* | rhapsody*)
17272 dynamic_linker="$host_os dyld"
17273 version_type=darwin
17276 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17277 soname_spec='${libname}${release}${major}$shared_ext'
17278 shlibpath_overrides_runpath=yes
17279 shlibpath_var=DYLD_LIBRARY_PATH
17280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17281 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17282 if test "$GCC" = yes; then
17283 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17285 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 shlibpath_var=LD_LIBRARY_PATH
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=no
17311 hardcode_into_libs=yes
17312 dynamic_linker='GNU ld.so'
17315 freebsd* | dragonfly*)
17316 # DragonFly does not have aout. When/if they implement a new
17317 # versioning mechanism, adjust this.
17318 if test -x /usr/bin/objformat; then
17319 objformat=`/usr/bin/objformat`
17322 freebsd[123]*) objformat=aout ;;
17323 *) objformat=elf ;;
17326 version_type=freebsd-$objformat
17327 case $version_type in
17329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17338 shlibpath_var=LD_LIBRARY_PATH
17341 shlibpath_overrides_runpath=yes
17343 freebsd3.[01]* | freebsdelf3.[01]*)
17344 shlibpath_overrides_runpath=yes
17345 hardcode_into_libs=yes
17347 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17348 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17349 shlibpath_overrides_runpath=no
17350 hardcode_into_libs=yes
17352 freebsd*) # from 4.6 on
17353 shlibpath_overrides_runpath=yes
17354 hardcode_into_libs=yes
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 hardcode_into_libs=yes
17369 hpux9* | hpux10* | hpux11*)
17370 # Give a soname corresponding to the major version so that dld.sl refuses to
17371 # link against other versions.
17378 hardcode_into_libs=yes
17379 dynamic_linker="$host_os dld.so"
17380 shlibpath_var=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 soname_spec='${libname}${release}${shared_ext}$major'
17384 if test "X$HPUX_IA64_MODE" = X32; then
17385 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17387 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17393 hardcode_into_libs=yes
17394 dynamic_linker="$host_os dld.sl"
17395 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17404 dynamic_linker="$host_os dld.sl"
17405 shlibpath_var=SHLIB_PATH
17406 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17411 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17412 postinstall_cmds='chmod 555 $lib'
17419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17420 soname_spec='${libname}${release}${shared_ext}$major'
17421 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17422 shlibpath_var=LD_LIBRARY_PATH
17423 shlibpath_overrides_runpath=no
17424 hardcode_into_libs=yes
17427 irix5* | irix6* | nonstopux*)
17429 nonstopux*) version_type=nonstopux ;;
17431 if test "$lt_cv_prog_gnu_ld" = yes; then
17439 soname_spec='${libname}${release}${shared_ext}$major'
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17442 irix5* | nonstopux*)
17443 libsuff= shlibsuff=
17446 case $LD in # libtool.m4 will add one of these switches to LD
17447 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17448 libsuff= shlibsuff= libmagic=32-bit;;
17449 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17450 libsuff=32 shlibsuff=N32 libmagic=N32;;
17451 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17452 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17453 *) libsuff= shlibsuff= libmagic=never-match;;
17457 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17458 shlibpath_overrides_runpath=no
17459 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17460 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17461 hardcode_into_libs=yes
17464 # No shared lib support for Linux oldld, aout, or coff.
17465 linux*oldld* | linux*aout* | linux*coff*)
17469 # This must be Linux ELF.
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475 soname_spec='${libname}${release}${shared_ext}$major'
17476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=no
17479 # This implies no fast_install, which is unacceptable.
17480 # Some rework will be needed to allow for fast_install
17481 # before this can be enabled.
17482 hardcode_into_libs=yes
17484 # Append ld.so.conf contents to the search path
17485 if test -f /etc/ld.so.conf; then
17486 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17490 # We used to test for /lib/ld.so.1 and disable shared libraries on
17491 # powerpc, because MkLinux only supported shared libraries with the
17492 # GNU dynamic linker. Since this was broken with cross compilers,
17493 # most powerpc-linux boxes support dynamic linking these days and
17494 # people can always --disable-shared, the test was removed, and we
17495 # assume the GNU/Linux dynamic linker is in use.
17496 dynamic_linker='GNU/Linux ld.so'
17503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17504 soname_spec='${libname}${release}${shared_ext}$major'
17505 shlibpath_var=LD_LIBRARY_PATH
17506 shlibpath_overrides_runpath=no
17507 hardcode_into_libs=yes
17508 dynamic_linker='GNU ld.so'
17515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17518 dynamic_linker='NetBSD (a.out) ld.so'
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17521 soname_spec='${libname}${release}${shared_ext}$major'
17522 dynamic_linker='NetBSD ld.elf_so'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 shlibpath_overrides_runpath=yes
17526 hardcode_into_libs=yes
17531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 shlibpath_overrides_runpath=yes
17540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541 soname_spec='${libname}${release}${shared_ext}$major'
17542 shlibpath_var=LD_LIBRARY_PATH
17543 shlibpath_overrides_runpath=yes
17548 sys_lib_dlsearch_path_spec="/usr/lib"
17550 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17552 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17553 *) need_version=no ;;
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17560 openbsd2.[89] | openbsd2.[89].*)
17561 shlibpath_overrides_runpath=no
17564 shlibpath_overrides_runpath=yes
17568 shlibpath_overrides_runpath=yes
17573 libname_spec='$name'
17576 library_names_spec='$libname${shared_ext} $libname.a'
17577 dynamic_linker='OS/2 ld.exe'
17578 shlibpath_var=LIBPATH
17581 osf3* | osf4* | osf5*)
17585 soname_spec='${libname}${release}${shared_ext}$major'
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587 shlibpath_var=LD_LIBRARY_PATH
17588 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17589 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 shlibpath_overrides_runpath=yes
17600 hardcode_into_libs=yes
17601 # ldd complains unless libraries are executable
17602 postinstall_cmds='chmod +x $lib'
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17609 shlibpath_var=LD_LIBRARY_PATH
17610 shlibpath_overrides_runpath=yes
17611 if test "$with_gnu_ld" = yes; then
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 case $host_vendor in
17624 shlibpath_overrides_runpath=no
17626 export_dynamic_flag_spec='${wl}-Blargedynsym'
17627 runpath_var=LD_RUN_PATH
17635 shlibpath_overrides_runpath=no
17636 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17642 if test -d /usr/nec ;then
17644 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17645 soname_spec='$libname${shared_ext}.$major'
17646 shlibpath_var=LD_LIBRARY_PATH
17650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17651 version_type=freebsd-elf
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 shlibpath_var=LD_LIBRARY_PATH
17657 hardcode_into_libs=yes
17658 if test "$with_gnu_ld" = yes; then
17659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17660 shlibpath_overrides_runpath=no
17662 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17663 shlibpath_overrides_runpath=yes
17666 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17670 sys_lib_dlsearch_path_spec='/usr/lib'
17675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676 soname_spec='${libname}${release}${shared_ext}$major'
17677 shlibpath_var=LD_LIBRARY_PATH
17684 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17685 echo "${ECHO_T}$dynamic_linker" >&6; }
17686 test "$dynamic_linker" = no && can_build_shared=no
17688 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17689 if test "$GCC" = yes; then
17690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17693 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17694 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17695 hardcode_action_F77=
17696 if test -n "$hardcode_libdir_flag_spec_F77" || \
17697 test -n "$runpath_var_F77" || \
17698 test "X$hardcode_automatic_F77" = "Xyes" ; then
17700 # We can hardcode non-existant directories.
17701 if test "$hardcode_direct_F77" != no &&
17702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17703 # have to relink, otherwise we might link with an installed library
17704 # when we should be linking with a yet-to-be-installed one
17705 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17706 test "$hardcode_minus_L_F77" != no; then
17707 # Linking always hardcodes the temporary library directory.
17708 hardcode_action_F77=relink
17710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17711 hardcode_action_F77=immediate
17714 # We cannot hardcode anything, or else we can only hardcode existing
17716 hardcode_action_F77=unsupported
17718 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17719 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17721 if test "$hardcode_action_F77" = relink; then
17722 # Fast installation is not supported
17723 enable_fast_install=no
17724 elif test "$shlibpath_overrides_runpath" = yes ||
17725 test "$enable_shared" = no; then
17726 # Fast installation is not necessary
17727 enable_fast_install=needless
17731 # The else clause should only fire when bootstrapping the
17732 # libtool distribution, otherwise you forgot to ship ltmain.sh
17733 # with your package, and you will get complaints that there are
17734 # no rules to generate ltmain.sh.
17735 if test -f "$ltmain"; then
17736 # See if we are running on zsh, and set the options which allow our commands through
17737 # without removal of \ escapes.
17738 if test -n "${ZSH_VERSION+set}" ; then
17739 setopt NO_GLOB_SUBST
17741 # Now quote all the things that may contain metacharacters while being
17742 # careful not to overquote the AC_SUBSTed values. We take copies of the
17743 # variables and quote the copies for generation of the libtool script.
17744 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17746 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17747 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17748 deplibs_check_method reload_flag reload_cmds need_locks \
17749 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17750 lt_cv_sys_global_symbol_to_c_name_address \
17751 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17752 old_postinstall_cmds old_postuninstall_cmds \
17756 lt_prog_compiler_wl_F77 \
17757 lt_prog_compiler_pic_F77 \
17758 lt_prog_compiler_static_F77 \
17759 lt_prog_compiler_no_builtin_flag_F77 \
17760 export_dynamic_flag_spec_F77 \
17761 thread_safe_flag_spec_F77 \
17762 whole_archive_flag_spec_F77 \
17763 enable_shared_with_static_runtimes_F77 \
17764 old_archive_cmds_F77 \
17765 old_archive_from_new_cmds_F77 \
17766 predep_objects_F77 \
17767 postdep_objects_F77 \
17770 compiler_lib_search_path_F77 \
17772 archive_expsym_cmds_F77 \
17773 postinstall_cmds_F77 \
17774 postuninstall_cmds_F77 \
17775 old_archive_from_expsyms_cmds_F77 \
17776 allow_undefined_flag_F77 \
17777 no_undefined_flag_F77 \
17778 export_symbols_cmds_F77 \
17779 hardcode_libdir_flag_spec_F77 \
17780 hardcode_libdir_flag_spec_ld_F77 \
17781 hardcode_libdir_separator_F77 \
17782 hardcode_automatic_F77 \
17784 module_expsym_cmds_F77 \
17785 lt_cv_prog_compiler_c_o_F77 \
17786 exclude_expsyms_F77 \
17787 include_expsyms_F77; do
17790 old_archive_cmds_F77 | \
17791 old_archive_from_new_cmds_F77 | \
17792 archive_cmds_F77 | \
17793 archive_expsym_cmds_F77 | \
17794 module_cmds_F77 | \
17795 module_expsym_cmds_F77 | \
17796 old_archive_from_expsyms_cmds_F77 | \
17797 export_symbols_cmds_F77 | \
17798 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17799 postinstall_cmds | postuninstall_cmds | \
17800 old_postinstall_cmds | old_postuninstall_cmds | \
17801 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17802 # Double-quote double-evaled strings.
17803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17806 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17812 *'\$0 --fallback-echo"')
17813 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17819 cat <<__EOF__ >> "$cfgfile"
17820 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17822 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17824 # Shell to use when invoking shell scripts.
17827 # Whether or not to build shared libraries.
17828 build_libtool_libs=$enable_shared
17830 # Whether or not to build static libraries.
17831 build_old_libs=$enable_static
17833 # Whether or not to add -lc for building shared libraries.
17834 build_libtool_need_lc=$archive_cmds_need_lc_F77
17836 # Whether or not to disallow shared libs when runtime libs are static
17837 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17839 # Whether or not to optimize for fast installation.
17840 fast_install=$enable_fast_install
17843 host_alias=$host_alias
17847 # The build system.
17848 build_alias=$build_alias
17852 # An echo program that does not interpret backslashes.
17857 AR_FLAGS=$lt_AR_FLAGS
17862 # LTCC compiler flags.
17863 LTCFLAGS=$lt_LTCFLAGS
17865 # A language-specific compiler.
17866 CC=$lt_compiler_F77
17868 # Is the compiler the GNU C compiler?
17874 # The linker used to build libraries.
17877 # Whether we need hard or soft links.
17880 # A BSD-compatible nm program.
17883 # A symbol stripping program
17886 # Used to examine libraries when file_magic_cmd begins "file"
17887 MAGIC_CMD=$MAGIC_CMD
17889 # Used on cygwin: DLL creation program.
17892 # Used on cygwin: object dumper.
17895 # Used on cygwin: assembler.
17898 # The name of the directory that contains temporary libtool files.
17901 # How to create reloadable object files.
17902 reload_flag=$lt_reload_flag
17903 reload_cmds=$lt_reload_cmds
17905 # How to pass a linker flag through the compiler.
17906 wl=$lt_lt_prog_compiler_wl_F77
17908 # Object file suffix (normally "o").
17909 objext="$ac_objext"
17911 # Old archive suffix (normally "a").
17914 # Shared library suffix (normally ".so").
17915 shrext_cmds='$shrext_cmds'
17917 # Executable file suffix (normally "").
17920 # Additional compiler flags for building library objects.
17921 pic_flag=$lt_lt_prog_compiler_pic_F77
17924 # What is the maximum length of a command?
17925 max_cmd_len=$lt_cv_sys_max_cmd_len
17927 # Does compiler simultaneously support -c and -o options?
17928 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17930 # Must we lock files when doing compilation?
17931 need_locks=$lt_need_locks
17933 # Do we need the lib prefix for modules?
17934 need_lib_prefix=$need_lib_prefix
17936 # Do we need a version for libraries?
17937 need_version=$need_version
17939 # Whether dlopen is supported.
17940 dlopen_support=$enable_dlopen
17942 # Whether dlopen of programs is supported.
17943 dlopen_self=$enable_dlopen_self
17945 # Whether dlopen of statically linked programs is supported.
17946 dlopen_self_static=$enable_dlopen_self_static
17948 # Compiler flag to prevent dynamic linking.
17949 link_static_flag=$lt_lt_prog_compiler_static_F77
17951 # Compiler flag to turn off builtin functions.
17952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17954 # Compiler flag to allow reflexive dlopens.
17955 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17957 # Compiler flag to generate shared objects directly from archives.
17958 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17960 # Compiler flag to generate thread-safe objects.
17961 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17963 # Library versioning type.
17964 version_type=$version_type
17966 # Format of library name prefix.
17967 libname_spec=$lt_libname_spec
17969 # List of archive names. First name is the real one, the rest are links.
17970 # The last name is the one that the linker finds with -lNAME.
17971 library_names_spec=$lt_library_names_spec
17973 # The coded name of the library, if different from the real name.
17974 soname_spec=$lt_soname_spec
17976 # Commands used to build and install an old-style archive.
17978 old_archive_cmds=$lt_old_archive_cmds_F77
17979 old_postinstall_cmds=$lt_old_postinstall_cmds
17980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17982 # Create an old-style archive from a shared archive.
17983 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17985 # Create a temporary old-style archive to link instead of a shared archive.
17986 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17988 # Commands used to build and install a shared archive.
17989 archive_cmds=$lt_archive_cmds_F77
17990 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17991 postinstall_cmds=$lt_postinstall_cmds
17992 postuninstall_cmds=$lt_postuninstall_cmds
17994 # Commands used to build a loadable module (assumed same as above if empty)
17995 module_cmds=$lt_module_cmds_F77
17996 module_expsym_cmds=$lt_module_expsym_cmds_F77
17998 # Commands to strip libraries.
17999 old_striplib=$lt_old_striplib
18000 striplib=$lt_striplib
18002 # Dependencies to place before the objects being linked to create a
18004 predep_objects=$lt_predep_objects_F77
18006 # Dependencies to place after the objects being linked to create a
18008 postdep_objects=$lt_postdep_objects_F77
18010 # Dependencies to place before the objects being linked to create a
18012 predeps=$lt_predeps_F77
18014 # Dependencies to place after the objects being linked to create a
18016 postdeps=$lt_postdeps_F77
18018 # The library search path used internally by the compiler when linking
18019 # a shared library.
18020 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18022 # Method to check whether dependent libraries are shared objects.
18023 deplibs_check_method=$lt_deplibs_check_method
18025 # Command to use when deplibs_check_method == file_magic.
18026 file_magic_cmd=$lt_file_magic_cmd
18028 # Flag that allows shared libraries with undefined symbols to be built.
18029 allow_undefined_flag=$lt_allow_undefined_flag_F77
18031 # Flag that forces no undefined symbols.
18032 no_undefined_flag=$lt_no_undefined_flag_F77
18034 # Commands used to finish a libtool library installation in a directory.
18035 finish_cmds=$lt_finish_cmds
18037 # Same as above, but a single script fragment to be evaled but not shown.
18038 finish_eval=$lt_finish_eval
18040 # Take the output of nm and produce a listing of raw symbols and C names.
18041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18043 # Transform the output of nm in a proper C declaration
18044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18046 # Transform the output of nm in a C name address pair
18047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18049 # This is the shared library runtime path variable.
18050 runpath_var=$runpath_var
18052 # This is the shared library path variable.
18053 shlibpath_var=$shlibpath_var
18055 # Is shlibpath searched before the hard-coded library search path?
18056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18058 # How to hardcode a shared library path into an executable.
18059 hardcode_action=$hardcode_action_F77
18061 # Whether we should hardcode library paths into libraries.
18062 hardcode_into_libs=$hardcode_into_libs
18064 # Flag to hardcode \$libdir into a binary during linking.
18065 # This must work even if \$libdir does not exist.
18066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18068 # If ld is used when linking, flag to hardcode \$libdir into
18069 # a binary during linking. This must work even if \$libdir does
18071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18073 # Whether we need a single -rpath flag with a separated argument.
18074 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18076 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18077 # resulting binary.
18078 hardcode_direct=$hardcode_direct_F77
18080 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18081 # resulting binary.
18082 hardcode_minus_L=$hardcode_minus_L_F77
18084 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18085 # the resulting binary.
18086 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18088 # Set to yes if building a shared library automatically hardcodes DIR into the library
18089 # and all subsequent libraries and executables linked against it.
18090 hardcode_automatic=$hardcode_automatic_F77
18092 # Variables whose values should be saved in libtool wrapper scripts and
18093 # restored at relink time.
18094 variables_saved_for_relink="$variables_saved_for_relink"
18096 # Whether libtool must link a program against all its dependency libraries.
18097 link_all_deplibs=$link_all_deplibs_F77
18099 # Compile-time system search path for libraries
18100 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18102 # Run-time system search path for libraries
18103 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18105 # Fix the shell variable \$srcfile for the compiler.
18106 fix_srcfile_path="$fix_srcfile_path_F77"
18108 # Set to yes if exported symbols are required.
18109 always_export_symbols=$always_export_symbols_F77
18111 # The commands to list exported symbols.
18112 export_symbols_cmds=$lt_export_symbols_cmds_F77
18114 # The commands to extract the exported symbol list from a shared archive.
18115 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18117 # Symbols that should not be listed in the preloaded symbols.
18118 exclude_expsyms=$lt_exclude_expsyms_F77
18120 # Symbols that must always be exported.
18121 include_expsyms=$lt_include_expsyms_F77
18123 # ### END LIBTOOL TAG CONFIG: $tagname
18129 # If there is no Makefile yet, we rely on a make rule to execute
18130 # `config.status --recheck' to rerun these tests and create the
18131 # libtool script then.
18132 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18133 if test -f "$ltmain_in"; then
18134 test -f Makefile && make "$ltmain"
18140 ac_cpp='$CPP $CPPFLAGS'
18141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18153 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18156 # Source file extension for Java test sources.
18159 # Object file extension for compiled Java test sources.
18163 # Code to be used in simple compile tests
18164 lt_simple_compile_test_code="class foo {}\n"
18166 # Code to be used in simple link tests
18167 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18171 # If no C compiler was specified, use CC.
18174 # If no C compiler flags were specified, use CFLAGS.
18175 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18177 # Allow CC to be a program name with arguments.
18181 # save warnings/boilerplate of simple test code
18182 ac_outfile=conftest.$ac_objext
18183 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18184 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18185 _lt_compiler_boilerplate=`cat conftest.err`
18188 ac_outfile=conftest.$ac_objext
18189 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18191 _lt_linker_boilerplate=`cat conftest.err`
18195 # Allow CC to be a program name with arguments.
18200 for cc_temp in $compiler""; do
18202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18208 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18211 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18212 archive_cmds_need_lc_GCJ=no
18214 old_archive_cmds_GCJ=$old_archive_cmds
18217 ## There is no encapsulation within the following macros, do not change
18218 ## the running order or otherwise move them around unless you know exactly
18219 ## what you are doing...
18221 lt_prog_compiler_no_builtin_flag_GCJ=
18223 if test "$GCC" = yes; then
18224 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18227 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18228 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18229 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 lt_cv_prog_compiler_rtti_exceptions=no
18233 ac_outfile=conftest.$ac_objext
18234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18235 lt_compiler_flag="-fno-rtti -fno-exceptions"
18236 # Insert the option either (1) after the last *FLAGS variable, or
18237 # (2) before a word containing "conftest.", or (3) at the end.
18238 # Note that $ac_compile itself does not contain backslashes and begins
18239 # with a dollar sign (not a hyphen), so the echo should work correctly.
18240 # The option is referenced via a variable to avoid confusing sed.
18241 lt_compile=`echo "$ac_compile" | $SED \
18242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18244 -e 's:$: $lt_compiler_flag:'`
18245 (eval echo "\"\$as_me:18245: $lt_compile\"" >&5)
18246 (eval "$lt_compile" 2>conftest.err)
18248 cat conftest.err >&5
18249 echo "$as_me:18249: \$? = $ac_status" >&5
18250 if (exit $ac_status) && test -s "$ac_outfile"; then
18251 # The compiler can only warn and ignore the option if not recognized
18252 # So say no if there are warnings other than the usual output.
18253 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18256 lt_cv_prog_compiler_rtti_exceptions=yes
18262 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18263 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18266 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18273 lt_prog_compiler_wl_GCJ=
18274 lt_prog_compiler_pic_GCJ=
18275 lt_prog_compiler_static_GCJ=
18277 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18278 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18280 if test "$GCC" = yes; then
18281 lt_prog_compiler_wl_GCJ='-Wl,'
18282 lt_prog_compiler_static_GCJ='-static'
18286 # All AIX code is PIC.
18287 if test "$host_cpu" = ia64; then
18288 # AIX 5 now supports IA64 processor
18289 lt_prog_compiler_static_GCJ='-Bstatic'
18294 # FIXME: we need at least 68020 code to build shared libraries, but
18295 # adding the `-m68020' flag to GCC prevents building anything better,
18297 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18300 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18301 # PIC is the default for these OSes.
18304 mingw* | pw32* | os2*)
18305 # This hack is so that the source file can tell whether it is being
18306 # built for inclusion in a dll (and should export symbols for example).
18307 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18310 darwin* | rhapsody*)
18311 # PIC is the default on this platform
18312 # Common symbols not allowed in MH_DYLIB files
18313 lt_prog_compiler_pic_GCJ='-fno-common'
18317 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18318 # Instead, we relocate shared libraries at runtime.
18322 # Just because we use GCC doesn't mean we suddenly get shared libraries
18323 # on systems that don't support them.
18324 lt_prog_compiler_can_build_shared_GCJ=no
18329 if test -d /usr/nec; then
18330 lt_prog_compiler_pic_GCJ=-Kconform_pic
18335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18336 # not for PA HP-UX.
18342 lt_prog_compiler_pic_GCJ='-fPIC'
18348 lt_prog_compiler_pic_GCJ='-fPIC'
18352 # PORTME Check for flag to pass linker flags through the system compiler.
18355 lt_prog_compiler_wl_GCJ='-Wl,'
18356 if test "$host_cpu" = ia64; then
18357 # AIX 5 now supports IA64 processor
18358 lt_prog_compiler_static_GCJ='-Bstatic'
18360 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18364 # PIC is the default on this platform
18365 # Common symbols not allowed in MH_DYLIB files
18366 case $cc_basename in
18368 lt_prog_compiler_pic_GCJ='-qnocommon'
18369 lt_prog_compiler_wl_GCJ='-Wl,'
18374 mingw* | pw32* | os2*)
18375 # This hack is so that the source file can tell whether it is being
18376 # built for inclusion in a dll (and should export symbols for example).
18377 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18380 hpux9* | hpux10* | hpux11*)
18381 lt_prog_compiler_wl_GCJ='-Wl,'
18382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18383 # not for PA HP-UX.
18389 lt_prog_compiler_pic_GCJ='+Z'
18392 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18393 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18396 irix5* | irix6* | nonstopux*)
18397 lt_prog_compiler_wl_GCJ='-Wl,'
18398 # PIC (with -KPIC) is the default.
18399 lt_prog_compiler_static_GCJ='-non_shared'
18403 lt_prog_compiler_pic_GCJ='-KPIC'
18404 lt_prog_compiler_static_GCJ='-Bstatic'
18408 case $cc_basename in
18410 lt_prog_compiler_wl_GCJ='-Wl,'
18411 lt_prog_compiler_pic_GCJ='-KPIC'
18412 lt_prog_compiler_static_GCJ='-static'
18414 pgcc* | pgf77* | pgf90* | pgf95*)
18415 # Portland Group compilers (*not* the Pentium gcc compiler,
18416 # which looks to be a dead project)
18417 lt_prog_compiler_wl_GCJ='-Wl,'
18418 lt_prog_compiler_pic_GCJ='-fpic'
18419 lt_prog_compiler_static_GCJ='-Bstatic'
18422 lt_prog_compiler_wl_GCJ='-Wl,'
18423 # All Alpha code is PIC.
18424 lt_prog_compiler_static_GCJ='-non_shared'
18429 osf3* | osf4* | osf5*)
18430 lt_prog_compiler_wl_GCJ='-Wl,'
18431 # All OSF/1 code is PIC.
18432 lt_prog_compiler_static_GCJ='-non_shared'
18436 lt_prog_compiler_pic_GCJ='-KPIC'
18437 lt_prog_compiler_static_GCJ='-Bstatic'
18438 case $cc_basename in
18439 f77* | f90* | f95*)
18440 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18442 lt_prog_compiler_wl_GCJ='-Wl,';;
18447 lt_prog_compiler_wl_GCJ='-Qoption ld '
18448 lt_prog_compiler_pic_GCJ='-PIC'
18449 lt_prog_compiler_static_GCJ='-Bstatic'
18452 sysv4 | sysv4.2uw2* | sysv4.3*)
18453 lt_prog_compiler_wl_GCJ='-Wl,'
18454 lt_prog_compiler_pic_GCJ='-KPIC'
18455 lt_prog_compiler_static_GCJ='-Bstatic'
18459 if test -d /usr/nec ;then
18460 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18461 lt_prog_compiler_static_GCJ='-Bstatic'
18465 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18466 lt_prog_compiler_wl_GCJ='-Wl,'
18467 lt_prog_compiler_pic_GCJ='-KPIC'
18468 lt_prog_compiler_static_GCJ='-Bstatic'
18472 lt_prog_compiler_wl_GCJ='-Wl,'
18473 lt_prog_compiler_can_build_shared_GCJ=no
18477 lt_prog_compiler_pic_GCJ='-pic'
18478 lt_prog_compiler_static_GCJ='-Bstatic'
18482 lt_prog_compiler_can_build_shared_GCJ=no
18487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18488 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18491 # Check to make sure the PIC flag actually works.
18493 if test -n "$lt_prog_compiler_pic_GCJ"; then
18495 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18496 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18497 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 lt_prog_compiler_pic_works_GCJ=no
18501 ac_outfile=conftest.$ac_objext
18502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18503 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18504 # Insert the option either (1) after the last *FLAGS variable, or
18505 # (2) before a word containing "conftest.", or (3) at the end.
18506 # Note that $ac_compile itself does not contain backslashes and begins
18507 # with a dollar sign (not a hyphen), so the echo should work correctly.
18508 # The option is referenced via a variable to avoid confusing sed.
18509 lt_compile=`echo "$ac_compile" | $SED \
18510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18512 -e 's:$: $lt_compiler_flag:'`
18513 (eval echo "\"\$as_me:18513: $lt_compile\"" >&5)
18514 (eval "$lt_compile" 2>conftest.err)
18516 cat conftest.err >&5
18517 echo "$as_me:18517: \$? = $ac_status" >&5
18518 if (exit $ac_status) && test -s "$ac_outfile"; then
18519 # The compiler can only warn and ignore the option if not recognized
18520 # So say no if there are warnings other than the usual output.
18521 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18524 lt_prog_compiler_pic_works_GCJ=yes
18530 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18531 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18533 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18534 case $lt_prog_compiler_pic_GCJ in
18536 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18539 lt_prog_compiler_pic_GCJ=
18540 lt_prog_compiler_can_build_shared_GCJ=no
18545 # For platforms which do not support PIC, -DPIC is meaningless:
18547 lt_prog_compiler_pic_GCJ=
18550 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18555 # Check to make sure the static flag actually works.
18557 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18558 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18559 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18560 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 lt_prog_compiler_static_works_GCJ=no
18564 save_LDFLAGS="$LDFLAGS"
18565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18566 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18568 # The linker can only warn and ignore the option if not recognized
18569 # So say no if there are warnings
18570 if test -s conftest.err; then
18571 # Append any errors to the config.log.
18572 cat conftest.err 1>&5
18573 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18575 if diff conftest.exp conftest.er2 >/dev/null; then
18576 lt_prog_compiler_static_works_GCJ=yes
18579 lt_prog_compiler_static_works_GCJ=yes
18583 LDFLAGS="$save_LDFLAGS"
18586 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18587 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18589 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18592 lt_prog_compiler_static_GCJ=
18596 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18597 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18598 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18599 echo $ECHO_N "(cached) $ECHO_C" >&6
18601 lt_cv_prog_compiler_c_o_GCJ=no
18602 $rm -r conftest 2>/dev/null
18606 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18608 lt_compiler_flag="-o out/conftest2.$ac_objext"
18609 # Insert the option either (1) after the last *FLAGS variable, or
18610 # (2) before a word containing "conftest.", or (3) at the end.
18611 # Note that $ac_compile itself does not contain backslashes and begins
18612 # with a dollar sign (not a hyphen), so the echo should work correctly.
18613 lt_compile=`echo "$ac_compile" | $SED \
18614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18616 -e 's:$: $lt_compiler_flag:'`
18617 (eval echo "\"\$as_me:18617: $lt_compile\"" >&5)
18618 (eval "$lt_compile" 2>out/conftest.err)
18620 cat out/conftest.err >&5
18621 echo "$as_me:18621: \$? = $ac_status" >&5
18622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18624 # The compiler can only warn and ignore the option if not recognized
18625 # So say no if there are warnings
18626 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18629 lt_cv_prog_compiler_c_o_GCJ=yes
18634 # SGI C++ compiler will create directory out/ii_files/ for
18635 # template instantiation
18636 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18637 $rm out/* && rmdir out
18643 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18644 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18647 hard_links="nottested"
18648 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18649 # do not overwrite the value of need_locks provided by the user
18650 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18651 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18656 ln conftest.a conftest.b 2>&5 || hard_links=no
18657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18658 { echo "$as_me:$LINENO: result: $hard_links" >&5
18659 echo "${ECHO_T}$hard_links" >&6; }
18660 if test "$hard_links" = no; then
18661 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18662 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18669 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18670 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18673 allow_undefined_flag_GCJ=
18674 enable_shared_with_static_runtimes_GCJ=no
18676 archive_expsym_cmds_GCJ=
18677 old_archive_From_new_cmds_GCJ=
18678 old_archive_from_expsyms_cmds_GCJ=
18679 export_dynamic_flag_spec_GCJ=
18680 whole_archive_flag_spec_GCJ=
18681 thread_safe_flag_spec_GCJ=
18682 hardcode_libdir_flag_spec_GCJ=
18683 hardcode_libdir_flag_spec_ld_GCJ=
18684 hardcode_libdir_separator_GCJ=
18685 hardcode_direct_GCJ=no
18686 hardcode_minus_L_GCJ=no
18687 hardcode_shlibpath_var_GCJ=unsupported
18688 link_all_deplibs_GCJ=unknown
18689 hardcode_automatic_GCJ=no
18691 module_expsym_cmds_GCJ=
18692 always_export_symbols_GCJ=no
18693 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18694 # include_expsyms should be a list of space-separated symbols to be *always*
18695 # included in the symbol list
18696 include_expsyms_GCJ=
18697 # exclude_expsyms can be an extended regexp of symbols to exclude
18698 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18699 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18700 # as well as any symbol that contains `d'.
18701 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18702 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18703 # platforms (ab)use it in PIC code, but their linkers get confused if
18704 # the symbol is explicitly referenced. Since portable code cannot
18705 # rely on this symbol name, it's probably fine to never include it in
18706 # preloaded symbol tables.
18707 extract_expsyms_cmds=
18708 # Just being paranoid about ensuring that cc_basename is set.
18709 for cc_temp in $compiler""; do
18711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18717 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18720 cygwin* | mingw* | pw32*)
18721 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18722 # When not using gcc, we currently assume that we are using
18723 # Microsoft Visual C++.
18724 if test "$GCC" != yes; then
18729 # we just hope/assume this is gcc and not c89 (= MSVC++)
18738 if test "$with_gnu_ld" = yes; then
18739 # If archive_cmds runs LD, not CC, wlarc should be empty
18742 # Set some defaults for GNU ld with shared library support. These
18743 # are reset later if shared libraries are not supported. Putting them
18744 # here allows them to be overridden if necessary.
18745 runpath_var=LD_RUN_PATH
18746 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18747 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18748 # ancient GNU ld didn't support --whole-archive et. al.
18749 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18750 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18752 whole_archive_flag_spec_GCJ=
18754 supports_anon_versioning=no
18755 case `$LD -v 2>/dev/null` in
18756 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18757 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18758 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18759 *\ 2.11.*) ;; # other 2.11 versions
18760 *) supports_anon_versioning=yes ;;
18763 # See if GNU ld supports shared libraries.
18765 aix3* | aix4* | aix5*)
18766 # On AIX/PPC, the GNU linker is very broken
18767 if test "$host_cpu" != ia64; then
18771 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18772 *** to be unable to reliably create shared libraries on AIX.
18773 *** Therefore, libtool is disabling shared libraries support. If you
18774 *** really care for shared libraries, you may want to modify your PATH
18775 *** so that a non-GNU linker is found, and then restart.
18782 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)'
18783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18784 hardcode_minus_L_GCJ=yes
18786 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18787 # that the semantics of dynamic libraries on AmigaOS, at least up
18788 # to version 4, is to share data among multiple programs linked
18789 # with the same dynamic library. Since this doesn't match the
18790 # behavior of shared libraries on other platforms, we can't use
18796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18797 allow_undefined_flag_GCJ=unsupported
18798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18799 # support --undefined. This deserves some investigation. FIXME
18800 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18806 cygwin* | mingw* | pw32*)
18807 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18808 # as there is no search path for DLLs.
18809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18810 allow_undefined_flag_GCJ=unsupported
18811 always_export_symbols_GCJ=no
18812 enable_shared_with_static_runtimes_GCJ=yes
18813 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18815 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18816 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18817 # If the export-symbols file already is a .def file (1st line
18818 # is EXPORTS), use it as is; otherwise, prepend...
18819 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18820 cp $export_symbols $output_objdir/$soname.def;
18822 echo EXPORTS > $output_objdir/$soname.def;
18823 cat $export_symbols >> $output_objdir/$soname.def;
18825 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18832 hardcode_direct_GCJ=no
18833 hardcode_shlibpath_var_GCJ=no
18834 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18835 export_dynamic_flag_spec_GCJ='${wl}-E'
18836 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18837 # Instead, shared libraries are loaded at an image base (0x10000000 by
18838 # default) and relocated if they conflict, which is a slow very memory
18839 # consuming and fragmenting process. To avoid this, we pick a random,
18840 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18841 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18842 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'
18843 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'
18847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18849 case $cc_basename,$host_cpu in
18850 pgcc*) # Portland Group C compiler
18851 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'
18852 tmp_addflag=' $pic_flag'
18854 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18855 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'
18856 tmp_addflag=' $pic_flag -Mnomain' ;;
18857 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18858 tmp_addflag=' -i_dynamic' ;;
18859 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18860 tmp_addflag=' -i_dynamic -nofor_main' ;;
18861 ifc* | ifort*) # Intel Fortran compiler
18862 tmp_addflag=' -nofor_main' ;;
18864 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18866 if test $supports_anon_versioning = yes; then
18867 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18869 $echo "local: *; };" >> $output_objdir/$libname.ver~
18870 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18879 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18882 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18883 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18888 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18892 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18893 *** create shared libraries on Solaris systems. Therefore, libtool
18894 *** is disabling shared libraries support. We urge you to upgrade GNU
18895 *** binutils to release 2.9.1 or newer. Another option is to modify
18896 *** your PATH or compiler configuration so that the native linker is
18897 *** used, and then restart.
18900 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18901 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18902 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18909 case `$LD -v 2>&1` in
18910 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18914 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18915 *** reliably create shared libraries on SCO systems. Therefore, libtool
18916 *** is disabling shared libraries support. We urge you to upgrade GNU
18917 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18918 *** your PATH or compiler configuration so that the native linker is
18919 *** used, and then restart.
18924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18925 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18926 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18927 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18936 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18938 hardcode_direct_GCJ=yes
18939 hardcode_shlibpath_var_GCJ=no
18943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18944 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18945 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18952 if test "$ld_shlibs_GCJ" = no; then
18954 hardcode_libdir_flag_spec_GCJ=
18955 export_dynamic_flag_spec_GCJ=
18956 whole_archive_flag_spec_GCJ=
18959 # PORTME fill in a description of your system's linker (not GNU ld)
18962 allow_undefined_flag_GCJ=unsupported
18963 always_export_symbols_GCJ=yes
18964 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'
18965 # Note: this linker hardcodes the directories in LIBPATH if there
18966 # are no directories specified by -L.
18967 hardcode_minus_L_GCJ=yes
18968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18969 # Neither direct hardcoding nor static linking is supported with a
18971 hardcode_direct_GCJ=unsupported
18976 if test "$host_cpu" = ia64; then
18977 # On IA64, the linker does run time linking by default, so we don't
18978 # have to do anything special.
18979 aix_use_runtimelinking=no
18980 exp_sym_flag='-Bexport'
18983 # If we're using GNU nm, then we don't want the "-C" option.
18984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18985 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18986 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'
18988 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'
18990 aix_use_runtimelinking=no
18992 # Test if we are trying to use run time linking or normal
18993 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18994 # need to do runtime linking.
18995 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18996 for ld_flag in $LDFLAGS; do
18997 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18998 aix_use_runtimelinking=yes
19005 exp_sym_flag='-bexport'
19006 no_entry_flag='-bnoentry'
19009 # When large executables or shared objects are built, AIX ld can
19010 # have problems creating the table of contents. If linking a library
19011 # or program results in "error TOC overflow" add -mminimal-toc to
19012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19015 archive_cmds_GCJ=''
19016 hardcode_direct_GCJ=yes
19017 hardcode_libdir_separator_GCJ=':'
19018 link_all_deplibs_GCJ=yes
19020 if test "$GCC" = yes; then
19021 case $host_os in aix4.[012]|aix4.[012].*)
19022 # We only want to do this on AIX 4.2 and lower, the check
19023 # below for broken collect2 doesn't work under 4.3+
19024 collect2name=`${CC} -print-prog-name=collect2`
19025 if test -f "$collect2name" && \
19026 strings "$collect2name" | grep resolve_lib_name >/dev/null
19028 # We have reworked collect2
19029 hardcode_direct_GCJ=yes
19031 # We have old collect2
19032 hardcode_direct_GCJ=unsupported
19033 # It fails to find uninstalled libraries when the uninstalled
19034 # path is not listed in the libpath. Setting hardcode_minus_L
19035 # to unsupported forces relinking
19036 hardcode_minus_L_GCJ=yes
19037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19038 hardcode_libdir_separator_GCJ=
19042 shared_flag='-shared'
19043 if test "$aix_use_runtimelinking" = yes; then
19044 shared_flag="$shared_flag "'${wl}-G'
19048 if test "$host_cpu" = ia64; then
19049 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19050 # chokes on -Wl,-G. The following line is correct:
19053 if test "$aix_use_runtimelinking" = yes; then
19054 shared_flag='${wl}-G'
19056 shared_flag='${wl}-bM:SRE'
19061 # It seems that -bexpall does not export symbols beginning with
19062 # underscore (_), so it is better to generate a list of symbols to export.
19063 always_export_symbols_GCJ=yes
19064 if test "$aix_use_runtimelinking" = yes; then
19065 # Warning - without using the other runtime loading flags (-brtl),
19066 # -berok will link without error, but may produce a broken library.
19067 allow_undefined_flag_GCJ='-berok'
19068 # Determine the default libpath from the value encoded in an empty executable.
19069 cat >conftest.$ac_ext <<_ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (ac_try="$ac_link"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_link") 2>conftest.er1
19093 grep -v '^ *+' conftest.er1 >conftest.err
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest$ac_exeext &&
19101 $as_test_x conftest$ac_exeext; then
19103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19105 # Check for a 64-bit object if we didn't find anything.
19106 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116 conftest$ac_exeext conftest.$ac_ext
19117 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19119 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19120 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"
19122 if test "$host_cpu" = ia64; then
19123 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19124 allow_undefined_flag_GCJ="-z nodefs"
19125 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"
19127 # Determine the default libpath from the value encoded in an empty executable.
19128 cat >conftest.$ac_ext <<_ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (ac_try="$ac_link"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_link") 2>conftest.er1
19152 grep -v '^ *+' conftest.er1 >conftest.err
19154 cat conftest.err >&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); } && {
19157 test -z "$ac_c_werror_flag" ||
19158 test ! -s conftest.err
19159 } && test -s conftest$ac_exeext &&
19160 $as_test_x conftest$ac_exeext; then
19162 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19164 # Check for a 64-bit object if we didn't find anything.
19165 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19175 conftest$ac_exeext conftest.$ac_ext
19176 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19178 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19179 # Warning - without using the other run time loading flags,
19180 # -berok will link without error, but may produce a broken library.
19181 no_undefined_flag_GCJ=' ${wl}-bernotok'
19182 allow_undefined_flag_GCJ=' ${wl}-berok'
19183 # Exported symbols can be pulled into shared objects from archives
19184 whole_archive_flag_spec_GCJ='$convenience'
19185 archive_cmds_need_lc_GCJ=yes
19186 # This is similar to how AIX traditionally builds its shared libraries.
19187 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'
19193 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)'
19194 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19195 hardcode_minus_L_GCJ=yes
19196 # see comment about different semantics on the GNU ld section
19201 export_dynamic_flag_spec_GCJ=-rdynamic
19204 cygwin* | mingw* | pw32*)
19205 # When not using gcc, we currently assume that we are using
19206 # Microsoft Visual C++.
19207 # hardcode_libdir_flag_spec is actually meaningless, as there is
19208 # no search path for DLLs.
19209 hardcode_libdir_flag_spec_GCJ=' '
19210 allow_undefined_flag_GCJ=unsupported
19211 # Tell ltmain to make .lib files, not .a files.
19213 # Tell ltmain to make .dll files, not .so files.
19215 # FIXME: Setting linknames here is a bad hack.
19216 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19217 # The linker will automatically build a .lib file if we build a DLL.
19218 old_archive_From_new_cmds_GCJ='true'
19219 # FIXME: Should let the user specify the lib program.
19220 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19221 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19222 enable_shared_with_static_runtimes_GCJ=yes
19225 darwin* | rhapsody*)
19227 rhapsody* | darwin1.[012])
19228 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19231 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19232 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19234 case ${MACOSX_DEPLOYMENT_TARGET} in
19236 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19239 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19245 archive_cmds_need_lc_GCJ=no
19246 hardcode_direct_GCJ=no
19247 hardcode_automatic_GCJ=yes
19248 hardcode_shlibpath_var_GCJ=unsupported
19249 whole_archive_flag_spec_GCJ=''
19250 link_all_deplibs_GCJ=yes
19251 if test "$GCC" = yes ; then
19252 output_verbose_link_cmd='echo'
19253 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19254 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19255 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19256 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}'
19257 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}'
19259 case $cc_basename in
19261 output_verbose_link_cmd='echo'
19262 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19263 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19264 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19265 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19266 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}'
19276 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19277 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19278 hardcode_shlibpath_var_GCJ=no
19285 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19286 # support. Future versions do this automatically, but an explicit c++rt0.o
19287 # does not break anything, and helps significantly (at the cost of a little
19290 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19291 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19292 hardcode_direct_GCJ=yes
19293 hardcode_shlibpath_var_GCJ=no
19296 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19298 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19299 hardcode_direct_GCJ=yes
19300 hardcode_minus_L_GCJ=yes
19301 hardcode_shlibpath_var_GCJ=no
19304 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19305 freebsd* | kfreebsd*-gnu | dragonfly*)
19306 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19307 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19308 hardcode_direct_GCJ=yes
19309 hardcode_shlibpath_var_GCJ=no
19313 if test "$GCC" = yes; then
19314 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'
19316 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'
19318 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19319 hardcode_libdir_separator_GCJ=:
19320 hardcode_direct_GCJ=yes
19322 # hardcode_minus_L: Not really in the search PATH,
19323 # but as the default location of the library.
19324 hardcode_minus_L_GCJ=yes
19325 export_dynamic_flag_spec_GCJ='${wl}-E'
19329 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19330 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19332 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19334 if test "$with_gnu_ld" = no; then
19335 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19336 hardcode_libdir_separator_GCJ=:
19338 hardcode_direct_GCJ=yes
19339 export_dynamic_flag_spec_GCJ='${wl}-E'
19341 # hardcode_minus_L: Not really in the search PATH,
19342 # but as the default location of the library.
19343 hardcode_minus_L_GCJ=yes
19348 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19351 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19354 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19357 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19363 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19366 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19369 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19373 if test "$with_gnu_ld" = no; then
19374 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19375 hardcode_libdir_separator_GCJ=:
19379 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19380 hardcode_direct_GCJ=no
19381 hardcode_shlibpath_var_GCJ=no
19384 hardcode_direct_GCJ=yes
19385 export_dynamic_flag_spec_GCJ='${wl}-E'
19387 # hardcode_minus_L: Not really in the search PATH,
19388 # but as the default location of the library.
19389 hardcode_minus_L_GCJ=yes
19395 irix5* | irix6* | nonstopux*)
19396 if test "$GCC" = yes; then
19397 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'
19399 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'
19400 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19402 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19403 hardcode_libdir_separator_GCJ=:
19404 link_all_deplibs_GCJ=yes
19408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19409 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19411 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19413 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19414 hardcode_direct_GCJ=yes
19415 hardcode_shlibpath_var_GCJ=no
19419 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19420 hardcode_direct_GCJ=yes
19421 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19422 hardcode_libdir_separator_GCJ=:
19423 hardcode_shlibpath_var_GCJ=no
19427 hardcode_direct_GCJ=yes
19428 hardcode_shlibpath_var_GCJ=no
19429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19430 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19431 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19433 export_dynamic_flag_spec_GCJ='${wl}-E'
19436 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19437 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19438 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19441 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19442 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19450 hardcode_minus_L_GCJ=yes
19451 allow_undefined_flag_GCJ=unsupported
19452 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'
19453 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19457 if test "$GCC" = yes; then
19458 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19459 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'
19461 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19462 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'
19464 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19465 hardcode_libdir_separator_GCJ=:
19468 osf4* | osf5*) # as osf3* with the addition of -msym flag
19469 if test "$GCC" = yes; then
19470 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19471 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'
19472 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19474 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19475 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'
19476 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~
19477 $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'
19479 # Both c and cxx compiler support -rpath directly
19480 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19482 hardcode_libdir_separator_GCJ=:
19486 no_undefined_flag_GCJ=' -z text'
19487 if test "$GCC" = yes; then
19489 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19490 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19491 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19494 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19495 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19498 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19499 hardcode_shlibpath_var_GCJ=no
19501 solaris2.[0-5] | solaris2.[0-5].*) ;;
19503 # The compiler driver will combine linker options so we
19504 # cannot just pass the convience library names through
19505 # without $wl, iff we do not link with $LD.
19506 # Luckily, gcc supports the same syntax we need for Sun Studio.
19507 # Supported since Solaris 2.6 (maybe 2.5.1?)
19510 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19512 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19515 link_all_deplibs_GCJ=yes
19519 if test "x$host_vendor" = xsequent; then
19520 # Use $CC to link under sequent, because it throws in some extra .o
19521 # files that make .init and .fini sections work.
19522 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19524 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19527 hardcode_direct_GCJ=yes
19528 hardcode_minus_L_GCJ=yes
19529 hardcode_shlibpath_var_GCJ=no
19533 case $host_vendor in
19535 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19536 hardcode_direct_GCJ=yes # is this really true???
19539 ## LD is ld it makes a PLAMLIB
19540 ## CC just makes a GrossModule.
19541 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19542 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19543 hardcode_direct_GCJ=no
19546 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19547 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19550 runpath_var='LD_RUN_PATH'
19551 hardcode_shlibpath_var_GCJ=no
19555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19556 hardcode_shlibpath_var_GCJ=no
19557 export_dynamic_flag_spec_GCJ='-Bexport'
19561 if test -d /usr/nec; then
19562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19563 hardcode_shlibpath_var_GCJ=no
19564 runpath_var=LD_RUN_PATH
19565 hardcode_runpath_var=yes
19570 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19571 no_undefined_flag_GCJ='${wl}-z,text'
19572 archive_cmds_need_lc_GCJ=no
19573 hardcode_shlibpath_var_GCJ=no
19574 runpath_var='LD_RUN_PATH'
19576 if test "$GCC" = yes; then
19577 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19578 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19580 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19581 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19585 sysv5* | sco3.2v5* | sco5v6*)
19586 # Note: We can NOT use -z defs as we might desire, because we do not
19587 # link with -lc, and that would cause any symbols used from libc to
19588 # always be unresolved, which means just about no library would
19589 # ever link correctly. If we're not using GNU ld we use -z text
19590 # though, which does catch some bad symbols but isn't as heavy-handed
19592 no_undefined_flag_GCJ='${wl}-z,text'
19593 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19594 archive_cmds_need_lc_GCJ=no
19595 hardcode_shlibpath_var_GCJ=no
19596 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19597 hardcode_libdir_separator_GCJ=':'
19598 link_all_deplibs_GCJ=yes
19599 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19600 runpath_var='LD_RUN_PATH'
19602 if test "$GCC" = yes; then
19603 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19604 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19606 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19607 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19613 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19614 hardcode_shlibpath_var_GCJ=no
19623 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19624 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19625 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19628 # Do we need to explicitly link libc?
19630 case "x$archive_cmds_need_lc_GCJ" in
19632 # Assume -lc should be added
19633 archive_cmds_need_lc_GCJ=yes
19635 if test "$enable_shared" = yes && test "$GCC" = yes; then
19636 case $archive_cmds_GCJ in
19638 # FIXME: we may have to deal with multi-command sequences.
19641 # Test whether the compiler implicitly links with -lc since on some
19642 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19643 # to ld, don't add -lc before -lgcc.
19644 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19645 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19650 (eval $ac_compile) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } 2>conftest.err; then
19656 libobjs=conftest.$ac_objext
19658 wl=$lt_prog_compiler_wl_GCJ
19659 pic_flag=$lt_prog_compiler_pic_GCJ
19665 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19666 allow_undefined_flag_GCJ=
19667 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19668 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }
19673 archive_cmds_need_lc_GCJ=no
19675 archive_cmds_need_lc_GCJ=yes
19677 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19679 cat conftest.err 1>&5
19682 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19683 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19690 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19691 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19692 library_names_spec=
19693 libname_spec='lib$name'
19697 postuninstall_cmds=
19701 shlibpath_overrides_runpath=unknown
19703 dynamic_linker="$host_os ld.so"
19704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19705 if test "$GCC" = yes; then
19706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19707 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19708 # if the path contains ";" then we assume it to be the separator
19709 # otherwise default to the standard path separator (i.e. ":") - it is
19710 # assumed that no part of a normal pathname contains ";" but that should
19711 # okay in the real world where ";" in dirpaths is itself problematic.
19712 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19717 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19719 need_lib_prefix=unknown
19720 hardcode_into_libs=no
19722 # when you set need_version to no, make sure it does not cause -set_version
19723 # flags to be left without arguments
19724 need_version=unknown
19729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19730 shlibpath_var=LIBPATH
19732 # AIX 3 has no versioning support, so we append a major version to the name.
19733 soname_spec='${libname}${release}${shared_ext}$major'
19740 hardcode_into_libs=yes
19741 if test "$host_cpu" = ia64; then
19742 # AIX 5 supports IA64
19743 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19744 shlibpath_var=LD_LIBRARY_PATH
19746 # With GCC up to 2.95.x, collect2 would create an import file
19747 # for dependence libraries. The import file would start with
19748 # the line `#! .'. This would cause the generated library to
19749 # depend on `.', always an invalid library. This was fixed in
19750 # development snapshots of GCC prior to 3.0.
19752 aix4 | aix4.[01] | aix4.[01].*)
19753 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19755 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19758 can_build_shared=no
19762 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19763 # soname into executable. Probably we can add versioning support to
19764 # collect2, so additional links can be useful in future.
19765 if test "$aix_use_runtimelinking" = yes; then
19766 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19767 # instead of lib<name>.a to let people know that these are not
19768 # typical AIX shared libraries.
19769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19771 # We preserve .a as extension for shared libraries through AIX4.2
19772 # and later when we are not doing run time linking.
19773 library_names_spec='${libname}${release}.a $libname.a'
19774 soname_spec='${libname}${release}${shared_ext}$major'
19776 shlibpath_var=LIBPATH
19781 library_names_spec='$libname.ixlibrary $libname.a'
19782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19783 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'
19787 library_names_spec='${libname}${shared_ext}'
19788 dynamic_linker="$host_os ld.so"
19789 shlibpath_var=LIBRARY_PATH
19795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19796 soname_spec='${libname}${release}${shared_ext}$major'
19797 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19798 shlibpath_var=LD_LIBRARY_PATH
19799 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19800 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19801 # the default ld.so.conf also contains /usr/contrib/lib and
19802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19803 # libtool to hard-code these into programs
19806 cygwin* | mingw* | pw32*)
19807 version_type=windows
19812 case $GCC,$host_os in
19813 yes,cygwin* | yes,mingw* | yes,pw32*)
19814 library_names_spec='$libname.dll.a'
19815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19816 postinstall_cmds='base_file=`basename \${file}`~
19817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19818 dldir=$destdir/`dirname \$dlpath`~
19819 test -d \$dldir || mkdir -p \$dldir~
19820 $install_prog $dir/$dlname \$dldir/$dlname~
19821 chmod a+x \$dldir/$dlname'
19822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19823 dlpath=$dir/\$dldll~
19825 shlibpath_overrides_runpath=yes
19829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19831 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19834 # MinGW DLLs use traditional 'lib' prefix
19835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19837 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19838 # It is most probably a Windows format PATH printed by
19839 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19840 # path with ; separators, and with drive letters. We can handle the
19841 # drive letters (cygwin fileutils understands them), so leave them,
19842 # especially as we might pass files found there to a mingw objdump,
19843 # which wouldn't understand a cygwinified path. Ahh.
19844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19850 # pw32 DLLs use 'pw' prefix rather than 'lib'
19851 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19857 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19860 dynamic_linker='Win32 ld.exe'
19861 # FIXME: first we should search . and the directory the executable is in
19865 darwin* | rhapsody*)
19866 dynamic_linker="$host_os dyld"
19867 version_type=darwin
19870 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19871 soname_spec='${libname}${release}${major}$shared_ext'
19872 shlibpath_overrides_runpath=yes
19873 shlibpath_var=DYLD_LIBRARY_PATH
19874 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19875 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19876 if test "$GCC" = yes; then
19877 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19879 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19889 soname_spec='${libname}${release}${shared_ext}$major'
19890 shlibpath_var=LD_LIBRARY_PATH
19901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19902 soname_spec='${libname}${release}${shared_ext}$major'
19903 shlibpath_var=LD_LIBRARY_PATH
19904 shlibpath_overrides_runpath=no
19905 hardcode_into_libs=yes
19906 dynamic_linker='GNU ld.so'
19909 freebsd* | dragonfly*)
19910 # DragonFly does not have aout. When/if they implement a new
19911 # versioning mechanism, adjust this.
19912 if test -x /usr/bin/objformat; then
19913 objformat=`/usr/bin/objformat`
19916 freebsd[123]*) objformat=aout ;;
19917 *) objformat=elf ;;
19920 version_type=freebsd-$objformat
19921 case $version_type in
19923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19932 shlibpath_var=LD_LIBRARY_PATH
19935 shlibpath_overrides_runpath=yes
19937 freebsd3.[01]* | freebsdelf3.[01]*)
19938 shlibpath_overrides_runpath=yes
19939 hardcode_into_libs=yes
19941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19943 shlibpath_overrides_runpath=no
19944 hardcode_into_libs=yes
19946 freebsd*) # from 4.6 on
19947 shlibpath_overrides_runpath=yes
19948 hardcode_into_libs=yes
19957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19958 soname_spec='${libname}${release}${shared_ext}$major'
19959 shlibpath_var=LD_LIBRARY_PATH
19960 hardcode_into_libs=yes
19963 hpux9* | hpux10* | hpux11*)
19964 # Give a soname corresponding to the major version so that dld.sl refuses to
19965 # link against other versions.
19972 hardcode_into_libs=yes
19973 dynamic_linker="$host_os dld.so"
19974 shlibpath_var=LD_LIBRARY_PATH
19975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19977 soname_spec='${libname}${release}${shared_ext}$major'
19978 if test "X$HPUX_IA64_MODE" = X32; then
19979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19987 hardcode_into_libs=yes
19988 dynamic_linker="$host_os dld.sl"
19989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19992 soname_spec='${libname}${release}${shared_ext}$major'
19993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19998 dynamic_linker="$host_os dld.sl"
19999 shlibpath_var=SHLIB_PATH
20000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20002 soname_spec='${libname}${release}${shared_ext}$major'
20005 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20006 postinstall_cmds='chmod 555 $lib'
20013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20014 soname_spec='${libname}${release}${shared_ext}$major'
20015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20016 shlibpath_var=LD_LIBRARY_PATH
20017 shlibpath_overrides_runpath=no
20018 hardcode_into_libs=yes
20021 irix5* | irix6* | nonstopux*)
20023 nonstopux*) version_type=nonstopux ;;
20025 if test "$lt_cv_prog_gnu_ld" = yes; then
20033 soname_spec='${libname}${release}${shared_ext}$major'
20034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20036 irix5* | nonstopux*)
20037 libsuff= shlibsuff=
20040 case $LD in # libtool.m4 will add one of these switches to LD
20041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20042 libsuff= shlibsuff= libmagic=32-bit;;
20043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20044 libsuff=32 shlibsuff=N32 libmagic=N32;;
20045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20047 *) libsuff= shlibsuff= libmagic=never-match;;
20051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20052 shlibpath_overrides_runpath=no
20053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20055 hardcode_into_libs=yes
20058 # No shared lib support for Linux oldld, aout, or coff.
20059 linux*oldld* | linux*aout* | linux*coff*)
20063 # This must be Linux ELF.
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20071 shlibpath_var=LD_LIBRARY_PATH
20072 shlibpath_overrides_runpath=no
20073 # This implies no fast_install, which is unacceptable.
20074 # Some rework will be needed to allow for fast_install
20075 # before this can be enabled.
20076 hardcode_into_libs=yes
20078 # Append ld.so.conf contents to the search path
20079 if test -f /etc/ld.so.conf; then
20080 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20084 # We used to test for /lib/ld.so.1 and disable shared libraries on
20085 # powerpc, because MkLinux only supported shared libraries with the
20086 # GNU dynamic linker. Since this was broken with cross compilers,
20087 # most powerpc-linux boxes support dynamic linking these days and
20088 # people can always --disable-shared, the test was removed, and we
20089 # assume the GNU/Linux dynamic linker is in use.
20090 dynamic_linker='GNU/Linux ld.so'
20097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20098 soname_spec='${libname}${release}${shared_ext}$major'
20099 shlibpath_var=LD_LIBRARY_PATH
20100 shlibpath_overrides_runpath=no
20101 hardcode_into_libs=yes
20102 dynamic_linker='GNU ld.so'
20109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20112 dynamic_linker='NetBSD (a.out) ld.so'
20114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20115 soname_spec='${libname}${release}${shared_ext}$major'
20116 dynamic_linker='NetBSD ld.elf_so'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=yes
20120 hardcode_into_libs=yes
20125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20126 shlibpath_var=LD_LIBRARY_PATH
20127 shlibpath_overrides_runpath=yes
20134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20135 soname_spec='${libname}${release}${shared_ext}$major'
20136 shlibpath_var=LD_LIBRARY_PATH
20137 shlibpath_overrides_runpath=yes
20142 sys_lib_dlsearch_path_spec="/usr/lib"
20144 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20146 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20147 *) need_version=no ;;
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20151 shlibpath_var=LD_LIBRARY_PATH
20152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20154 openbsd2.[89] | openbsd2.[89].*)
20155 shlibpath_overrides_runpath=no
20158 shlibpath_overrides_runpath=yes
20162 shlibpath_overrides_runpath=yes
20167 libname_spec='$name'
20170 library_names_spec='$libname${shared_ext} $libname.a'
20171 dynamic_linker='OS/2 ld.exe'
20172 shlibpath_var=LIBPATH
20175 osf3* | osf4* | osf5*)
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20181 shlibpath_var=LD_LIBRARY_PATH
20182 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20183 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20191 soname_spec='${libname}${release}${shared_ext}$major'
20192 shlibpath_var=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath=yes
20194 hardcode_into_libs=yes
20195 # ldd complains unless libraries are executable
20196 postinstall_cmds='chmod +x $lib'
20201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20202 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20203 shlibpath_var=LD_LIBRARY_PATH
20204 shlibpath_overrides_runpath=yes
20205 if test "$with_gnu_ld" = yes; then
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20214 soname_spec='${libname}${release}${shared_ext}$major'
20215 shlibpath_var=LD_LIBRARY_PATH
20216 case $host_vendor in
20218 shlibpath_overrides_runpath=no
20220 export_dynamic_flag_spec='${wl}-Blargedynsym'
20221 runpath_var=LD_RUN_PATH
20229 shlibpath_overrides_runpath=no
20230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20236 if test -d /usr/nec ;then
20238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20239 soname_spec='$libname${shared_ext}.$major'
20240 shlibpath_var=LD_LIBRARY_PATH
20244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20245 version_type=freebsd-elf
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20249 soname_spec='${libname}${release}${shared_ext}$major'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 hardcode_into_libs=yes
20252 if test "$with_gnu_ld" = yes; then
20253 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20254 shlibpath_overrides_runpath=no
20256 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20257 shlibpath_overrides_runpath=yes
20260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20264 sys_lib_dlsearch_path_spec='/usr/lib'
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270 soname_spec='${libname}${release}${shared_ext}$major'
20271 shlibpath_var=LD_LIBRARY_PATH
20278 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20279 echo "${ECHO_T}$dynamic_linker" >&6; }
20280 test "$dynamic_linker" = no && can_build_shared=no
20282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20283 if test "$GCC" = yes; then
20284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20287 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20288 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20289 hardcode_action_GCJ=
20290 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20291 test -n "$runpath_var_GCJ" || \
20292 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20294 # We can hardcode non-existant directories.
20295 if test "$hardcode_direct_GCJ" != no &&
20296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20297 # have to relink, otherwise we might link with an installed library
20298 # when we should be linking with a yet-to-be-installed one
20299 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20300 test "$hardcode_minus_L_GCJ" != no; then
20301 # Linking always hardcodes the temporary library directory.
20302 hardcode_action_GCJ=relink
20304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20305 hardcode_action_GCJ=immediate
20308 # We cannot hardcode anything, or else we can only hardcode existing
20310 hardcode_action_GCJ=unsupported
20312 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20313 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20315 if test "$hardcode_action_GCJ" = relink; then
20316 # Fast installation is not supported
20317 enable_fast_install=no
20318 elif test "$shlibpath_overrides_runpath" = yes ||
20319 test "$enable_shared" = no; then
20320 # Fast installation is not necessary
20321 enable_fast_install=needless
20325 # The else clause should only fire when bootstrapping the
20326 # libtool distribution, otherwise you forgot to ship ltmain.sh
20327 # with your package, and you will get complaints that there are
20328 # no rules to generate ltmain.sh.
20329 if test -f "$ltmain"; then
20330 # See if we are running on zsh, and set the options which allow our commands through
20331 # without removal of \ escapes.
20332 if test -n "${ZSH_VERSION+set}" ; then
20333 setopt NO_GLOB_SUBST
20335 # Now quote all the things that may contain metacharacters while being
20336 # careful not to overquote the AC_SUBSTed values. We take copies of the
20337 # variables and quote the copies for generation of the libtool script.
20338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20342 deplibs_check_method reload_flag reload_cmds need_locks \
20343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20344 lt_cv_sys_global_symbol_to_c_name_address \
20345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20346 old_postinstall_cmds old_postuninstall_cmds \
20350 lt_prog_compiler_wl_GCJ \
20351 lt_prog_compiler_pic_GCJ \
20352 lt_prog_compiler_static_GCJ \
20353 lt_prog_compiler_no_builtin_flag_GCJ \
20354 export_dynamic_flag_spec_GCJ \
20355 thread_safe_flag_spec_GCJ \
20356 whole_archive_flag_spec_GCJ \
20357 enable_shared_with_static_runtimes_GCJ \
20358 old_archive_cmds_GCJ \
20359 old_archive_from_new_cmds_GCJ \
20360 predep_objects_GCJ \
20361 postdep_objects_GCJ \
20364 compiler_lib_search_path_GCJ \
20366 archive_expsym_cmds_GCJ \
20367 postinstall_cmds_GCJ \
20368 postuninstall_cmds_GCJ \
20369 old_archive_from_expsyms_cmds_GCJ \
20370 allow_undefined_flag_GCJ \
20371 no_undefined_flag_GCJ \
20372 export_symbols_cmds_GCJ \
20373 hardcode_libdir_flag_spec_GCJ \
20374 hardcode_libdir_flag_spec_ld_GCJ \
20375 hardcode_libdir_separator_GCJ \
20376 hardcode_automatic_GCJ \
20378 module_expsym_cmds_GCJ \
20379 lt_cv_prog_compiler_c_o_GCJ \
20380 exclude_expsyms_GCJ \
20381 include_expsyms_GCJ; do
20384 old_archive_cmds_GCJ | \
20385 old_archive_from_new_cmds_GCJ | \
20386 archive_cmds_GCJ | \
20387 archive_expsym_cmds_GCJ | \
20388 module_cmds_GCJ | \
20389 module_expsym_cmds_GCJ | \
20390 old_archive_from_expsyms_cmds_GCJ | \
20391 export_symbols_cmds_GCJ | \
20392 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20393 postinstall_cmds | postuninstall_cmds | \
20394 old_postinstall_cmds | old_postuninstall_cmds | \
20395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20396 # Double-quote double-evaled strings.
20397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20406 *'\$0 --fallback-echo"')
20407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20413 cat <<__EOF__ >> "$cfgfile"
20414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20418 # Shell to use when invoking shell scripts.
20421 # Whether or not to build shared libraries.
20422 build_libtool_libs=$enable_shared
20424 # Whether or not to build static libraries.
20425 build_old_libs=$enable_static
20427 # Whether or not to add -lc for building shared libraries.
20428 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20430 # Whether or not to disallow shared libs when runtime libs are static
20431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20433 # Whether or not to optimize for fast installation.
20434 fast_install=$enable_fast_install
20437 host_alias=$host_alias
20441 # The build system.
20442 build_alias=$build_alias
20446 # An echo program that does not interpret backslashes.
20451 AR_FLAGS=$lt_AR_FLAGS
20456 # LTCC compiler flags.
20457 LTCFLAGS=$lt_LTCFLAGS
20459 # A language-specific compiler.
20460 CC=$lt_compiler_GCJ
20462 # Is the compiler the GNU C compiler?
20468 # The linker used to build libraries.
20471 # Whether we need hard or soft links.
20474 # A BSD-compatible nm program.
20477 # A symbol stripping program
20480 # Used to examine libraries when file_magic_cmd begins "file"
20481 MAGIC_CMD=$MAGIC_CMD
20483 # Used on cygwin: DLL creation program.
20486 # Used on cygwin: object dumper.
20489 # Used on cygwin: assembler.
20492 # The name of the directory that contains temporary libtool files.
20495 # How to create reloadable object files.
20496 reload_flag=$lt_reload_flag
20497 reload_cmds=$lt_reload_cmds
20499 # How to pass a linker flag through the compiler.
20500 wl=$lt_lt_prog_compiler_wl_GCJ
20502 # Object file suffix (normally "o").
20503 objext="$ac_objext"
20505 # Old archive suffix (normally "a").
20508 # Shared library suffix (normally ".so").
20509 shrext_cmds='$shrext_cmds'
20511 # Executable file suffix (normally "").
20514 # Additional compiler flags for building library objects.
20515 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20518 # What is the maximum length of a command?
20519 max_cmd_len=$lt_cv_sys_max_cmd_len
20521 # Does compiler simultaneously support -c and -o options?
20522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20524 # Must we lock files when doing compilation?
20525 need_locks=$lt_need_locks
20527 # Do we need the lib prefix for modules?
20528 need_lib_prefix=$need_lib_prefix
20530 # Do we need a version for libraries?
20531 need_version=$need_version
20533 # Whether dlopen is supported.
20534 dlopen_support=$enable_dlopen
20536 # Whether dlopen of programs is supported.
20537 dlopen_self=$enable_dlopen_self
20539 # Whether dlopen of statically linked programs is supported.
20540 dlopen_self_static=$enable_dlopen_self_static
20542 # Compiler flag to prevent dynamic linking.
20543 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20545 # Compiler flag to turn off builtin functions.
20546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20548 # Compiler flag to allow reflexive dlopens.
20549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20551 # Compiler flag to generate shared objects directly from archives.
20552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20554 # Compiler flag to generate thread-safe objects.
20555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20557 # Library versioning type.
20558 version_type=$version_type
20560 # Format of library name prefix.
20561 libname_spec=$lt_libname_spec
20563 # List of archive names. First name is the real one, the rest are links.
20564 # The last name is the one that the linker finds with -lNAME.
20565 library_names_spec=$lt_library_names_spec
20567 # The coded name of the library, if different from the real name.
20568 soname_spec=$lt_soname_spec
20570 # Commands used to build and install an old-style archive.
20572 old_archive_cmds=$lt_old_archive_cmds_GCJ
20573 old_postinstall_cmds=$lt_old_postinstall_cmds
20574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20576 # Create an old-style archive from a shared archive.
20577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20579 # Create a temporary old-style archive to link instead of a shared archive.
20580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20582 # Commands used to build and install a shared archive.
20583 archive_cmds=$lt_archive_cmds_GCJ
20584 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20585 postinstall_cmds=$lt_postinstall_cmds
20586 postuninstall_cmds=$lt_postuninstall_cmds
20588 # Commands used to build a loadable module (assumed same as above if empty)
20589 module_cmds=$lt_module_cmds_GCJ
20590 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20592 # Commands to strip libraries.
20593 old_striplib=$lt_old_striplib
20594 striplib=$lt_striplib
20596 # Dependencies to place before the objects being linked to create a
20598 predep_objects=$lt_predep_objects_GCJ
20600 # Dependencies to place after the objects being linked to create a
20602 postdep_objects=$lt_postdep_objects_GCJ
20604 # Dependencies to place before the objects being linked to create a
20606 predeps=$lt_predeps_GCJ
20608 # Dependencies to place after the objects being linked to create a
20610 postdeps=$lt_postdeps_GCJ
20612 # The library search path used internally by the compiler when linking
20613 # a shared library.
20614 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20616 # Method to check whether dependent libraries are shared objects.
20617 deplibs_check_method=$lt_deplibs_check_method
20619 # Command to use when deplibs_check_method == file_magic.
20620 file_magic_cmd=$lt_file_magic_cmd
20622 # Flag that allows shared libraries with undefined symbols to be built.
20623 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20625 # Flag that forces no undefined symbols.
20626 no_undefined_flag=$lt_no_undefined_flag_GCJ
20628 # Commands used to finish a libtool library installation in a directory.
20629 finish_cmds=$lt_finish_cmds
20631 # Same as above, but a single script fragment to be evaled but not shown.
20632 finish_eval=$lt_finish_eval
20634 # Take the output of nm and produce a listing of raw symbols and C names.
20635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20637 # Transform the output of nm in a proper C declaration
20638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20640 # Transform the output of nm in a C name address pair
20641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20643 # This is the shared library runtime path variable.
20644 runpath_var=$runpath_var
20646 # This is the shared library path variable.
20647 shlibpath_var=$shlibpath_var
20649 # Is shlibpath searched before the hard-coded library search path?
20650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20652 # How to hardcode a shared library path into an executable.
20653 hardcode_action=$hardcode_action_GCJ
20655 # Whether we should hardcode library paths into libraries.
20656 hardcode_into_libs=$hardcode_into_libs
20658 # Flag to hardcode \$libdir into a binary during linking.
20659 # This must work even if \$libdir does not exist.
20660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20662 # If ld is used when linking, flag to hardcode \$libdir into
20663 # a binary during linking. This must work even if \$libdir does
20665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20667 # Whether we need a single -rpath flag with a separated argument.
20668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20671 # resulting binary.
20672 hardcode_direct=$hardcode_direct_GCJ
20674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20675 # resulting binary.
20676 hardcode_minus_L=$hardcode_minus_L_GCJ
20678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20679 # the resulting binary.
20680 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20682 # Set to yes if building a shared library automatically hardcodes DIR into the library
20683 # and all subsequent libraries and executables linked against it.
20684 hardcode_automatic=$hardcode_automatic_GCJ
20686 # Variables whose values should be saved in libtool wrapper scripts and
20687 # restored at relink time.
20688 variables_saved_for_relink="$variables_saved_for_relink"
20690 # Whether libtool must link a program against all its dependency libraries.
20691 link_all_deplibs=$link_all_deplibs_GCJ
20693 # Compile-time system search path for libraries
20694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20696 # Run-time system search path for libraries
20697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20699 # Fix the shell variable \$srcfile for the compiler.
20700 fix_srcfile_path="$fix_srcfile_path_GCJ"
20702 # Set to yes if exported symbols are required.
20703 always_export_symbols=$always_export_symbols_GCJ
20705 # The commands to list exported symbols.
20706 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20708 # The commands to extract the exported symbol list from a shared archive.
20709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20711 # Symbols that should not be listed in the preloaded symbols.
20712 exclude_expsyms=$lt_exclude_expsyms_GCJ
20714 # Symbols that must always be exported.
20715 include_expsyms=$lt_include_expsyms_GCJ
20717 # ### END LIBTOOL TAG CONFIG: $tagname
20723 # If there is no Makefile yet, we rely on a make rule to execute
20724 # `config.status --recheck' to rerun these tests and create the
20725 # libtool script then.
20726 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20727 if test -f "$ltmain_in"; then
20728 test -f Makefile && make "$ltmain"
20734 ac_cpp='$CPP $CPPFLAGS'
20735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20749 # Source file extension for RC test sources.
20752 # Object file extension for compiled RC test sources.
20756 # Code to be used in simple compile tests
20757 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20759 # Code to be used in simple link tests
20760 lt_simple_link_test_code="$lt_simple_compile_test_code"
20762 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20764 # If no C compiler was specified, use CC.
20767 # If no C compiler flags were specified, use CFLAGS.
20768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20770 # Allow CC to be a program name with arguments.
20774 # save warnings/boilerplate of simple test code
20775 ac_outfile=conftest.$ac_objext
20776 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20778 _lt_compiler_boilerplate=`cat conftest.err`
20781 ac_outfile=conftest.$ac_objext
20782 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20784 _lt_linker_boilerplate=`cat conftest.err`
20788 # Allow CC to be a program name with arguments.
20793 for cc_temp in $compiler""; do
20795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20801 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20803 lt_cv_prog_compiler_c_o_RC=yes
20805 # The else clause should only fire when bootstrapping the
20806 # libtool distribution, otherwise you forgot to ship ltmain.sh
20807 # with your package, and you will get complaints that there are
20808 # no rules to generate ltmain.sh.
20809 if test -f "$ltmain"; then
20810 # See if we are running on zsh, and set the options which allow our commands through
20811 # without removal of \ escapes.
20812 if test -n "${ZSH_VERSION+set}" ; then
20813 setopt NO_GLOB_SUBST
20815 # Now quote all the things that may contain metacharacters while being
20816 # careful not to overquote the AC_SUBSTed values. We take copies of the
20817 # variables and quote the copies for generation of the libtool script.
20818 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20820 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20821 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20822 deplibs_check_method reload_flag reload_cmds need_locks \
20823 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20824 lt_cv_sys_global_symbol_to_c_name_address \
20825 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20826 old_postinstall_cmds old_postuninstall_cmds \
20830 lt_prog_compiler_wl_RC \
20831 lt_prog_compiler_pic_RC \
20832 lt_prog_compiler_static_RC \
20833 lt_prog_compiler_no_builtin_flag_RC \
20834 export_dynamic_flag_spec_RC \
20835 thread_safe_flag_spec_RC \
20836 whole_archive_flag_spec_RC \
20837 enable_shared_with_static_runtimes_RC \
20838 old_archive_cmds_RC \
20839 old_archive_from_new_cmds_RC \
20840 predep_objects_RC \
20841 postdep_objects_RC \
20844 compiler_lib_search_path_RC \
20846 archive_expsym_cmds_RC \
20847 postinstall_cmds_RC \
20848 postuninstall_cmds_RC \
20849 old_archive_from_expsyms_cmds_RC \
20850 allow_undefined_flag_RC \
20851 no_undefined_flag_RC \
20852 export_symbols_cmds_RC \
20853 hardcode_libdir_flag_spec_RC \
20854 hardcode_libdir_flag_spec_ld_RC \
20855 hardcode_libdir_separator_RC \
20856 hardcode_automatic_RC \
20858 module_expsym_cmds_RC \
20859 lt_cv_prog_compiler_c_o_RC \
20860 exclude_expsyms_RC \
20861 include_expsyms_RC; do
20864 old_archive_cmds_RC | \
20865 old_archive_from_new_cmds_RC | \
20866 archive_cmds_RC | \
20867 archive_expsym_cmds_RC | \
20869 module_expsym_cmds_RC | \
20870 old_archive_from_expsyms_cmds_RC | \
20871 export_symbols_cmds_RC | \
20872 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20873 postinstall_cmds | postuninstall_cmds | \
20874 old_postinstall_cmds | old_postuninstall_cmds | \
20875 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20876 # Double-quote double-evaled strings.
20877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20886 *'\$0 --fallback-echo"')
20887 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20893 cat <<__EOF__ >> "$cfgfile"
20894 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20898 # Shell to use when invoking shell scripts.
20901 # Whether or not to build shared libraries.
20902 build_libtool_libs=$enable_shared
20904 # Whether or not to build static libraries.
20905 build_old_libs=$enable_static
20907 # Whether or not to add -lc for building shared libraries.
20908 build_libtool_need_lc=$archive_cmds_need_lc_RC
20910 # Whether or not to disallow shared libs when runtime libs are static
20911 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20913 # Whether or not to optimize for fast installation.
20914 fast_install=$enable_fast_install
20917 host_alias=$host_alias
20921 # The build system.
20922 build_alias=$build_alias
20926 # An echo program that does not interpret backslashes.
20931 AR_FLAGS=$lt_AR_FLAGS
20936 # LTCC compiler flags.
20937 LTCFLAGS=$lt_LTCFLAGS
20939 # A language-specific compiler.
20942 # Is the compiler the GNU C compiler?
20948 # The linker used to build libraries.
20951 # Whether we need hard or soft links.
20954 # A BSD-compatible nm program.
20957 # A symbol stripping program
20960 # Used to examine libraries when file_magic_cmd begins "file"
20961 MAGIC_CMD=$MAGIC_CMD
20963 # Used on cygwin: DLL creation program.
20966 # Used on cygwin: object dumper.
20969 # Used on cygwin: assembler.
20972 # The name of the directory that contains temporary libtool files.
20975 # How to create reloadable object files.
20976 reload_flag=$lt_reload_flag
20977 reload_cmds=$lt_reload_cmds
20979 # How to pass a linker flag through the compiler.
20980 wl=$lt_lt_prog_compiler_wl_RC
20982 # Object file suffix (normally "o").
20983 objext="$ac_objext"
20985 # Old archive suffix (normally "a").
20988 # Shared library suffix (normally ".so").
20989 shrext_cmds='$shrext_cmds'
20991 # Executable file suffix (normally "").
20994 # Additional compiler flags for building library objects.
20995 pic_flag=$lt_lt_prog_compiler_pic_RC
20998 # What is the maximum length of a command?
20999 max_cmd_len=$lt_cv_sys_max_cmd_len
21001 # Does compiler simultaneously support -c and -o options?
21002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21004 # Must we lock files when doing compilation?
21005 need_locks=$lt_need_locks
21007 # Do we need the lib prefix for modules?
21008 need_lib_prefix=$need_lib_prefix
21010 # Do we need a version for libraries?
21011 need_version=$need_version
21013 # Whether dlopen is supported.
21014 dlopen_support=$enable_dlopen
21016 # Whether dlopen of programs is supported.
21017 dlopen_self=$enable_dlopen_self
21019 # Whether dlopen of statically linked programs is supported.
21020 dlopen_self_static=$enable_dlopen_self_static
21022 # Compiler flag to prevent dynamic linking.
21023 link_static_flag=$lt_lt_prog_compiler_static_RC
21025 # Compiler flag to turn off builtin functions.
21026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21028 # Compiler flag to allow reflexive dlopens.
21029 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21031 # Compiler flag to generate shared objects directly from archives.
21032 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21034 # Compiler flag to generate thread-safe objects.
21035 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21037 # Library versioning type.
21038 version_type=$version_type
21040 # Format of library name prefix.
21041 libname_spec=$lt_libname_spec
21043 # List of archive names. First name is the real one, the rest are links.
21044 # The last name is the one that the linker finds with -lNAME.
21045 library_names_spec=$lt_library_names_spec
21047 # The coded name of the library, if different from the real name.
21048 soname_spec=$lt_soname_spec
21050 # Commands used to build and install an old-style archive.
21052 old_archive_cmds=$lt_old_archive_cmds_RC
21053 old_postinstall_cmds=$lt_old_postinstall_cmds
21054 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21056 # Create an old-style archive from a shared archive.
21057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21059 # Create a temporary old-style archive to link instead of a shared archive.
21060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21062 # Commands used to build and install a shared archive.
21063 archive_cmds=$lt_archive_cmds_RC
21064 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21065 postinstall_cmds=$lt_postinstall_cmds
21066 postuninstall_cmds=$lt_postuninstall_cmds
21068 # Commands used to build a loadable module (assumed same as above if empty)
21069 module_cmds=$lt_module_cmds_RC
21070 module_expsym_cmds=$lt_module_expsym_cmds_RC
21072 # Commands to strip libraries.
21073 old_striplib=$lt_old_striplib
21074 striplib=$lt_striplib
21076 # Dependencies to place before the objects being linked to create a
21078 predep_objects=$lt_predep_objects_RC
21080 # Dependencies to place after the objects being linked to create a
21082 postdep_objects=$lt_postdep_objects_RC
21084 # Dependencies to place before the objects being linked to create a
21086 predeps=$lt_predeps_RC
21088 # Dependencies to place after the objects being linked to create a
21090 postdeps=$lt_postdeps_RC
21092 # The library search path used internally by the compiler when linking
21093 # a shared library.
21094 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21096 # Method to check whether dependent libraries are shared objects.
21097 deplibs_check_method=$lt_deplibs_check_method
21099 # Command to use when deplibs_check_method == file_magic.
21100 file_magic_cmd=$lt_file_magic_cmd
21102 # Flag that allows shared libraries with undefined symbols to be built.
21103 allow_undefined_flag=$lt_allow_undefined_flag_RC
21105 # Flag that forces no undefined symbols.
21106 no_undefined_flag=$lt_no_undefined_flag_RC
21108 # Commands used to finish a libtool library installation in a directory.
21109 finish_cmds=$lt_finish_cmds
21111 # Same as above, but a single script fragment to be evaled but not shown.
21112 finish_eval=$lt_finish_eval
21114 # Take the output of nm and produce a listing of raw symbols and C names.
21115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21117 # Transform the output of nm in a proper C declaration
21118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21120 # Transform the output of nm in a C name address pair
21121 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21123 # This is the shared library runtime path variable.
21124 runpath_var=$runpath_var
21126 # This is the shared library path variable.
21127 shlibpath_var=$shlibpath_var
21129 # Is shlibpath searched before the hard-coded library search path?
21130 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21132 # How to hardcode a shared library path into an executable.
21133 hardcode_action=$hardcode_action_RC
21135 # Whether we should hardcode library paths into libraries.
21136 hardcode_into_libs=$hardcode_into_libs
21138 # Flag to hardcode \$libdir into a binary during linking.
21139 # This must work even if \$libdir does not exist.
21140 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21142 # If ld is used when linking, flag to hardcode \$libdir into
21143 # a binary during linking. This must work even if \$libdir does
21145 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21147 # Whether we need a single -rpath flag with a separated argument.
21148 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21150 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21151 # resulting binary.
21152 hardcode_direct=$hardcode_direct_RC
21154 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21155 # resulting binary.
21156 hardcode_minus_L=$hardcode_minus_L_RC
21158 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21159 # the resulting binary.
21160 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21162 # Set to yes if building a shared library automatically hardcodes DIR into the library
21163 # and all subsequent libraries and executables linked against it.
21164 hardcode_automatic=$hardcode_automatic_RC
21166 # Variables whose values should be saved in libtool wrapper scripts and
21167 # restored at relink time.
21168 variables_saved_for_relink="$variables_saved_for_relink"
21170 # Whether libtool must link a program against all its dependency libraries.
21171 link_all_deplibs=$link_all_deplibs_RC
21173 # Compile-time system search path for libraries
21174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21176 # Run-time system search path for libraries
21177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21179 # Fix the shell variable \$srcfile for the compiler.
21180 fix_srcfile_path="$fix_srcfile_path_RC"
21182 # Set to yes if exported symbols are required.
21183 always_export_symbols=$always_export_symbols_RC
21185 # The commands to list exported symbols.
21186 export_symbols_cmds=$lt_export_symbols_cmds_RC
21188 # The commands to extract the exported symbol list from a shared archive.
21189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21191 # Symbols that should not be listed in the preloaded symbols.
21192 exclude_expsyms=$lt_exclude_expsyms_RC
21194 # Symbols that must always be exported.
21195 include_expsyms=$lt_include_expsyms_RC
21197 # ### END LIBTOOL TAG CONFIG: $tagname
21203 # If there is no Makefile yet, we rely on a make rule to execute
21204 # `config.status --recheck' to rerun these tests and create the
21205 # libtool script then.
21206 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21207 if test -f "$ltmain_in"; then
21208 test -f Makefile && make "$ltmain"
21214 ac_cpp='$CPP $CPPFLAGS'
21215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21224 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21225 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21226 { (exit 1); exit 1; }; }
21230 # Append the new tag name to the list of available tags.
21231 if test -n "$tagname" ; then
21232 available_tags="$available_tags $tagname"
21238 # Now substitute the updated list of available tags.
21239 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21240 mv "${ofile}T" "$ofile"
21244 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21245 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21246 { (exit 1); exit 1; }; }
21252 # This can be used to rebuild libtool when needed
21253 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21255 # Always use our own libtool.
21256 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21258 # Prevent multiple expansion
21281 # Check for AViiON Machines running DGUX
21282 # FIXME: Should this be moved down to below the gc-debug processing?
21285 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21286 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21287 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
21288 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21292 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
21294 # Is the header compilable?
21295 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
21296 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 $ac_includes_default
21304 #include <sys/dg_sys_info.h>
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310 *) ac_try_echo=$ac_try;;
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313 (eval "$ac_compile") 2>conftest.er1
21315 grep -v '^ *+' conftest.er1 >conftest.err
21317 cat conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } && {
21320 test -z "$ac_c_werror_flag" ||
21321 test ! -s conftest.err
21322 } && test -s conftest.$ac_objext; then
21323 ac_header_compiler=yes
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ac_header_compiler=no
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21333 echo "${ECHO_T}$ac_header_compiler" >&6; }
21335 # Is the header present?
21336 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
21337 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
21338 cat >conftest.$ac_ext <<_ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 #include <sys/dg_sys_info.h>
21346 if { (ac_try="$ac_cpp conftest.$ac_ext"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21354 grep -v '^ *+' conftest.er1 >conftest.err
21356 cat conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } >/dev/null && {
21359 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21360 test ! -s conftest.err
21362 ac_header_preproc=yes
21364 echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21367 ac_header_preproc=no
21370 rm -f conftest.err conftest.$ac_ext
21371 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21372 echo "${ECHO_T}$ac_header_preproc" >&6; }
21374 # So? What about this header?
21375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21377 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
21378 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21379 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
21380 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
21381 ac_header_preproc=yes
21384 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
21385 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
21386 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
21387 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
21389 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
21391 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
21393 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
21394 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
21395 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
21397 ## -------------------------------- ##
21398 ## Report this to Hans.Boehm@hp.com ##
21399 ## -------------------------------- ##
21401 ) | sed "s/^/$as_me: WARNING: /" >&2
21404 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
21405 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
21406 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
21411 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
21412 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
21415 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
21421 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
21422 if test $ac_is_dgux = yes; then
21423 if test "$enable_gc_debug" = "yes"; then
21424 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21425 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21427 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21428 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
21435 # Check whether --with-target-subdir was given.
21436 if test "${with_target_subdir+set}" = set; then
21437 withval=$with_target_subdir;
21441 # Check whether --with-cross-host was given.
21442 if test "${with_cross_host+set}" = set; then
21443 withval=$with_cross_host;
21447 # automake wants to see AC_EXEEXT. But we don't need it. And having
21448 # it is actually a problem, because the compiler we're passed can't
21449 # necessarily do a full link. So we fool automake here.
21451 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
21452 # to nothing, so nothing would remain between `then' and `fi' if it
21453 # were not for the `:' below.
21458 { echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
21459 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6; }
21462 if test "$GCC" = yes; then
21463 { echo "$as_me:$LINENO: result: yes" >&5
21464 echo "${ECHO_T}yes" >&6; }
21466 for i in $CFLAGS; do
21471 new_CFLAGS="$new_CFLAGS $i"
21475 CFLAGS="$new_CFLAGS"
21477 { echo "$as_me:$LINENO: result: no" >&5
21478 echo "${ECHO_T}no" >&6; }
21481 *) { echo "$as_me:$LINENO: result: no" >&5
21482 echo "${ECHO_T}no" >&6; } ;;
21485 cat >>confdefs.h <<\_ACEOF
21486 #define NO_EXECUTE_PERMISSION 1
21489 cat >>confdefs.h <<\_ACEOF
21490 #define ALL_INTERIOR_POINTERS 1
21495 # Check whether --enable-gcj-support was given.
21496 if test "${enable_gcj_support+set}" = set; then
21497 enableval=$enable_gcj_support;
21502 if test x"$enable_gcj_support" != xno; then
21503 ENABLE_GCJ_SUPPORT_TRUE=
21504 ENABLE_GCJ_SUPPORT_FALSE='#'
21506 ENABLE_GCJ_SUPPORT_TRUE='#'
21507 ENABLE_GCJ_SUPPORT_FALSE=
21510 if test x"$enable_gcj_support" != xno; then
21512 cat >>confdefs.h <<\_ACEOF
21513 #define GC_GCJ_SUPPORT 1
21520 # Check whether --enable-gc-debug was given.
21521 if test "${enable_gc_debug+set}" = set; then
21522 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
21523 { echo "$as_me:$LINENO: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
21524 echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
21525 cat >>confdefs.h <<\_ACEOF
21526 #define KEEP_BACK_PTRS 1
21529 cat >>confdefs.h <<\_ACEOF
21530 #define DBG_HDRS_ALL 1
21535 cat >>confdefs.h <<\_ACEOF
21536 #define MAKE_BACK_GRAPH 1
21539 cat >>confdefs.h <<\_ACEOF
21540 #define SAVE_CALL_COUNT 8
21543 { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
21544 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
21545 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21548 ac_check_lib_save_LIBS=$LIBS
21549 LIBS="-lunwind $LIBS"
21550 cat >conftest.$ac_ext <<_ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21557 /* Override any GCC internal prototype to avoid an error.
21558 Use char because int might match the return type of a GCC
21559 builtin and then its argument prototype would still apply. */
21567 return backtrace ();
21572 rm -f conftest.$ac_objext conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_link") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest$ac_exeext &&
21589 $as_test_x conftest$ac_exeext; then
21590 ac_cv_lib_unwind_backtrace=yes
21592 echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21595 ac_cv_lib_unwind_backtrace=no
21598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21599 conftest$ac_exeext conftest.$ac_ext
21600 LIBS=$ac_check_lib_save_LIBS
21602 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
21603 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
21604 if test $ac_cv_lib_unwind_backtrace = yes; then
21606 cat >>confdefs.h <<\_ACEOF
21607 #define GC_HAVE_BUILTIN_BACKTRACE 1
21610 UNWINDLIBS=-lunwind
21611 { echo "$as_me:$LINENO: WARNING: \"Client code may need to link against libunwind.\"" >&5
21612 echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
21617 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
21618 cat >>confdefs.h <<\_ACEOF
21619 #define MAKE_BACK_GRAPH 1
21622 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
21623 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
21624 cat >>confdefs.h <<\_ACEOF
21625 #define SAVE_CALL_COUNT 8
21630 cat >>confdefs.h <<\_ACEOF
21631 #define MAKE_BACK_GRAPH 1
21640 # Check whether --enable-java-finalization was given.
21641 if test "${enable_java_finalization+set}" = set; then
21642 enableval=$enable_java_finalization;
21645 if test x"$enable_java_finalization" != xno; then
21646 cat >>confdefs.h <<\_ACEOF
21647 #define JAVA_FINALIZATION 1
21652 # Check whether --enable-atomic-uncollectable was given.
21653 if test "${enable_atomic_uncollectable+set}" = set; then
21654 enableval=$enable_atomic_uncollectable;
21657 if test x"$enable_atomic_uncollectible" != x"no"; then
21659 cat >>confdefs.h <<\_ACEOF
21660 #define ATOMIC_UNCOLLECTABLE 1
21665 # Check whether --enable-redirect-malloc was given.
21666 if test "${enable_redirect_malloc+set}" = set; then
21667 enableval=$enable_redirect_malloc;
21671 if test "${enable_redirect_malloc}" = yes; then
21672 if test "${enable_gc_debug}" = yes; then
21673 cat >>confdefs.h <<\_ACEOF
21674 #define REDIRECT_MALLOC GC_debug_malloc_replacement
21677 cat >>confdefs.h <<\_ACEOF
21678 #define REDIRECT_REALLOC GC_debug_realloc_replacement
21681 cat >>confdefs.h <<\_ACEOF
21682 #define REDIRECT_FREE GC_debug_free
21686 cat >>confdefs.h <<\_ACEOF
21687 #define REDIRECT_MALLOC GC_malloc
21691 cat >>confdefs.h <<\_ACEOF
21692 #define GC_USE_DLOPEN_WRAP 1
21697 # Check whether --enable-large-config was given.
21698 if test "${enable_large_config+set}" = set; then
21699 enableval=$enable_large_config;
21703 if test "${enable_large_config}" = yes; then
21705 cat >>confdefs.h <<\_ACEOF
21706 #define LARGE_CONFIG 1
21711 if test -n "${with_cross_host}"; then
21712 cat >>confdefs.h <<\_ACEOF
21716 cat >>confdefs.h <<\_ACEOF
21717 #define SMALL_CONFIG 1
21720 cat >>confdefs.h <<\_ACEOF
21721 #define NO_DEBUGGING 1
21729 # Check whether --enable-gc-assertions was given.
21730 if test "${enable_gc_assertions+set}" = set; then
21731 enableval=$enable_gc_assertions;
21734 if test "${enable_gc_assertions}" = yes; then
21735 cat >>confdefs.h <<\_ACEOF
21736 #define GC_ASSERTIONS 1
21741 # Check whether --enable-munmap was given.
21742 if test "${enable_munmap+set}" = set; then
21743 enableval=$enable_munmap; MUNMAP_THRESHOLD=$enableval;
21746 { { echo "$as_me:$LINENO: error: --enable-munmap requires --enable-mmap" >&5
21747 echo "$as_me: error: --enable-munmap requires --enable-mmap" >&2;}
21748 { (exit 1); exit 1; }; }
21754 if test "${enable_munmap}" != ""; then
21755 cat >>confdefs.h <<\_ACEOF
21759 cat >>confdefs.h <<\_ACEOF
21760 #define USE_MUNMAP 1
21763 if test "${MUNMAP_THRESHOLD}" = "yes"; then
21766 cat >>confdefs.h <<_ACEOF
21767 #define MUNMAP_THRESHOLD ${MUNMAP_THRESHOLD}
21774 if test -z "$with_cross_host"; then
21776 USE_LIBDIR_FALSE='#'
21778 USE_LIBDIR_TRUE='#'
21785 atomic_ops_libs=-latomic_ops
21786 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21787 { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21788 echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21789 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21792 { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21793 echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21795 # Is the header compilable?
21796 { echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5
21797 echo $ECHO_N "checking atomic_ops.h usability... $ECHO_C" >&6; }
21798 cat >conftest.$ac_ext <<_ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21804 $ac_includes_default
21805 #include <atomic_ops.h>
21807 rm -f conftest.$ac_objext
21808 if { (ac_try="$ac_compile"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_compile") 2>conftest.er1
21816 grep -v '^ *+' conftest.er1 >conftest.err
21818 cat conftest.err >&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } && {
21821 test -z "$ac_c_werror_flag" ||
21822 test ! -s conftest.err
21823 } && test -s conftest.$ac_objext; then
21824 ac_header_compiler=yes
21826 echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21829 ac_header_compiler=no
21832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21834 echo "${ECHO_T}$ac_header_compiler" >&6; }
21836 # Is the header present?
21837 { echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5
21838 echo $ECHO_N "checking atomic_ops.h presence... $ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #include <atomic_ops.h>
21847 if { (ac_try="$ac_cpp conftest.$ac_ext"
21848 case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21855 grep -v '^ *+' conftest.er1 >conftest.err
21857 cat conftest.err >&5
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); } >/dev/null && {
21860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21861 test ! -s conftest.err
21863 ac_header_preproc=yes
21865 echo "$as_me: failed program was:" >&5
21866 sed 's/^/| /' conftest.$ac_ext >&5
21868 ac_header_preproc=no
21871 rm -f conftest.err conftest.$ac_ext
21872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21873 echo "${ECHO_T}$ac_header_preproc" >&6; }
21875 # So? What about this header?
21876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21878 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5
21879 echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21880 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5
21881 echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;}
21882 ac_header_preproc=yes
21885 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5
21886 echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&5
21888 echo "$as_me: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&2;}
21889 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5
21890 echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;}
21891 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&5
21892 echo "$as_me: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5
21894 echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;}
21895 { echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5
21896 echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;}
21898 ## -------------------------------- ##
21899 ## Report this to Hans.Boehm@hp.com ##
21900 ## -------------------------------- ##
21902 ) | sed "s/^/$as_me: WARNING: /" >&2
21905 { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5
21906 echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; }
21907 if test "${ac_cv_header_atomic_ops_h+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21910 ac_cv_header_atomic_ops_h=$ac_header_preproc
21912 { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5
21913 echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; }
21916 if test $ac_cv_header_atomic_ops_h = yes; then
21917 { echo "$as_me:$LINENO: Using pre-installed libatomic_ops" >&5
21918 echo "$as_me: Using pre-installed libatomic_ops" >&6;}
21921 for candidate in ${srcdir}/libatomic_ops*; do
21928 if test -e "$candidate"; then
21929 ao_dir="$candidate"
21934 if test -z "$ao_dir"; then
21935 { { echo "$as_me:$LINENO: error: Missig libatomic_ops." >&5
21936 echo "$as_me: error: Missig libatomic_ops." >&2;}
21937 { (exit 1); exit 1; }; }
21939 ao_version="${ao_dir#*libatomic_ops-}"
21940 { echo "$as_me:$LINENO: Using internal version of libatomic_ops" >&5
21941 echo "$as_me: Using internal version of libatomic_ops" >&6;}
21943 test -e libatomic_ops \
21944 || ln -s ${ao_dir} libatomic_ops
21945 subdirs="$subdirs libatomic_ops"
21948 test -e atomic_ops.c \
21949 || ln -s libatomic_ops/src/atomic_ops.c \
21952 test -e atomic_ops_sysdeps.S \
21953 || ln -s libatomic_ops/src/atomic_ops_sysdeps.S \
21954 atomic_ops_sysdeps.S
21956 GC_CFLAGS="${GC_CFLAGS} -I libatomic_ops/src"
21957 maybe_libatomic_ops="libatomic_ops"
21965 if test -n "$maybe_libatomic_ops" -a "$THREADS" != "none"; then
21966 USE_INTERNAL_LIBATOMIC_OPS_TRUE=
21967 USE_INTERNAL_LIBATOMIC_OPS_FALSE='#'
21969 USE_INTERNAL_LIBATOMIC_OPS_TRUE='#'
21970 USE_INTERNAL_LIBATOMIC_OPS_FALSE=
21975 if test -n "$maybe_libatomic_ops" -a x$need_atomic_ops_asm = xtrue; then
21976 NEED_ATOMIC_OPS_ASM_TRUE=
21977 NEED_ATOMIC_OPS_ASM_FALSE='#'
21979 NEED_ATOMIC_OPS_ASM_TRUE='#'
21980 NEED_ATOMIC_OPS_ASM_FALSE=
21986 ac_config_files="$ac_config_files Makefile bdw-gc.pc"
21989 ac_config_commands="$ac_config_commands default"
21992 cat >confcache <<\_ACEOF
21993 # This file is a shell script that caches the results of configure
21994 # tests run on this system so they can be shared between configure
21995 # scripts and configure runs, see configure's option --config-cache.
21996 # It is not useful on other systems. If it contains results you don't
21997 # want to keep, you may remove or edit it.
21999 # config.status only pays attention to the cache file if you give it
22000 # the --recheck option to rerun configure.
22002 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22003 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22004 # following values.
22008 # The following way of writing the cache mishandles newlines in values,
22009 # but we know of no workaround that is simple, portable, and efficient.
22010 # So, we kill variables containing newlines.
22011 # Ultrix sh set writes to stderr and can't be redirected directly,
22012 # and sets the high bit in the cache file unless we assign to the vars.
22014 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22015 eval ac_val=\$$ac_var
22019 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22020 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22023 _ | IFS | as_nl) ;; #(
22024 *) $as_unset $ac_var ;;
22030 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22031 *${as_nl}ac_space=\ *)
22032 # `set' does not quote correctly, so add quotes (double-quote
22033 # substitution turns \\\\ into \\, and sed turns \\ into \).
22036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22039 # `set' quotes correctly as required by POSIX, so do not add quotes.
22040 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22049 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22051 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22054 if test -w "$cache_file"; then
22055 test "x$cache_file" != "x/dev/null" &&
22056 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22057 echo "$as_me: updating cache $cache_file" >&6;}
22058 cat confcache >$cache_file
22060 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22061 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22066 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22067 # Let make expand exec_prefix.
22068 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22070 # Transform confdefs.h into DEFS.
22071 # Protect against shell expansion while executing Makefile rules.
22072 # Protect against Makefile macro expansion.
22074 # If the first sed substitution is executed (which looks for macros that
22075 # take arguments), then branch to the quote section. Otherwise,
22076 # look for a macro that doesn't take arguments.
22080 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22082 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22086 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22099 DEFS=`sed -n "$ac_script" confdefs.h`
22104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22105 # 1. Remove the extension, and $U if already installed.
22106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22107 ac_i=`echo "$ac_i" | sed "$ac_script"`
22108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22109 # will be set to the directory where LIBOBJS objects are built.
22110 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22111 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22113 LIBOBJS=$ac_libobjs
22115 LTLIBOBJS=$ac_ltlibobjs
22118 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22119 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22120 Usually this means the macro was only invoked conditionally." >&5
22121 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22122 Usually this means the macro was only invoked conditionally." >&2;}
22123 { (exit 1); exit 1; }; }
22125 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22126 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22127 Usually this means the macro was only invoked conditionally." >&5
22128 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22129 Usually this means the macro was only invoked conditionally." >&2;}
22130 { (exit 1); exit 1; }; }
22132 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22133 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22134 Usually this means the macro was only invoked conditionally." >&5
22135 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22136 Usually this means the macro was only invoked conditionally." >&2;}
22137 { (exit 1); exit 1; }; }
22139 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22140 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22141 Usually this means the macro was only invoked conditionally." >&5
22142 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22143 Usually this means the macro was only invoked conditionally." >&2;}
22144 { (exit 1); exit 1; }; }
22146 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
22147 { { echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
22148 Usually this means the macro was only invoked conditionally." >&5
22149 echo "$as_me: error: conditional \"THREADS\" was never defined.
22150 Usually this means the macro was only invoked conditionally." >&2;}
22151 { (exit 1); exit 1; }; }
22153 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
22154 { { echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined.
22155 Usually this means the macro was only invoked conditionally." >&5
22156 echo "$as_me: error: conditional \"PTHREADS\" was never defined.
22157 Usually this means the macro was only invoked conditionally." >&2;}
22158 { (exit 1); exit 1; }; }
22160 if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then
22161 { { echo "$as_me:$LINENO: error: conditional \"DARWIN_THREADS\" was never defined.
22162 Usually this means the macro was only invoked conditionally." >&5
22163 echo "$as_me: error: conditional \"DARWIN_THREADS\" was never defined.
22164 Usually this means the macro was only invoked conditionally." >&2;}
22165 { (exit 1); exit 1; }; }
22167 if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then
22168 { { echo "$as_me:$LINENO: error: conditional \"WIN32_THREADS\" was never defined.
22169 Usually this means the macro was only invoked conditionally." >&5
22170 echo "$as_me: error: conditional \"WIN32_THREADS\" was never defined.
22171 Usually this means the macro was only invoked conditionally." >&2;}
22172 { (exit 1); exit 1; }; }
22174 if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
22175 { { echo "$as_me:$LINENO: error: conditional \"COMPILER_XLC\" was never defined.
22176 Usually this means the macro was only invoked conditionally." >&5
22177 echo "$as_me: error: conditional \"COMPILER_XLC\" was never defined.
22178 Usually this means the macro was only invoked conditionally." >&2;}
22179 { (exit 1); exit 1; }; }
22181 if test -z "${AVOID_CPP_LIB_TRUE}" && test -z "${AVOID_CPP_LIB_FALSE}"; then
22182 { { echo "$as_me:$LINENO: error: conditional \"AVOID_CPP_LIB\" was never defined.
22183 Usually this means the macro was only invoked conditionally." >&5
22184 echo "$as_me: error: conditional \"AVOID_CPP_LIB\" was never defined.
22185 Usually this means the macro was only invoked conditionally." >&2;}
22186 { (exit 1); exit 1; }; }
22188 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
22189 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
22190 Usually this means the macro was only invoked conditionally." >&5
22191 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
22192 Usually this means the macro was only invoked conditionally." >&2;}
22193 { (exit 1); exit 1; }; }
22195 if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then
22196 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
22197 Usually this means the macro was only invoked conditionally." >&5
22198 echo "$as_me: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined.
22199 Usually this means the macro was only invoked conditionally." >&2;}
22200 { (exit 1); exit 1; }; }
22202 if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
22203 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined.
22204 Usually this means the macro was only invoked conditionally." >&5
22205 echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined.
22206 Usually this means the macro was only invoked conditionally." >&2;}
22207 { (exit 1); exit 1; }; }
22209 if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then
22210 { { echo "$as_me:$LINENO: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
22211 Usually this means the macro was only invoked conditionally." >&5
22212 echo "$as_me: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined.
22213 Usually this means the macro was only invoked conditionally." >&2;}
22214 { (exit 1); exit 1; }; }
22216 if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then
22217 { { echo "$as_me:$LINENO: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
22218 Usually this means the macro was only invoked conditionally." >&5
22219 echo "$as_me: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined.
22220 Usually this means the macro was only invoked conditionally." >&2;}
22221 { (exit 1); exit 1; }; }
22224 : ${CONFIG_STATUS=./config.status}
22225 ac_clean_files_save=$ac_clean_files
22226 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22227 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22228 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22229 cat >$CONFIG_STATUS <<_ACEOF
22231 # Generated by $as_me.
22232 # Run this file to recreate the current configuration.
22233 # Compiler output produced by configure, useful for debugging
22234 # configure, is in config.log if it exists.
22237 ac_cs_recheck=false
22239 SHELL=\${CONFIG_SHELL-$SHELL}
22242 cat >>$CONFIG_STATUS <<\_ACEOF
22243 ## --------------------- ##
22244 ## M4sh Initialization. ##
22245 ## --------------------- ##
22247 # Be more Bourne compatible
22248 DUALCASE=1; export DUALCASE # for MKS sh
22249 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22252 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22253 # is contrary to our usage. Disable this feature.
22254 alias -g '${1+"$@"}'='"$@"'
22255 setopt NO_GLOB_SUBST
22257 case `(set -o) 2>/dev/null` in
22258 *posix*) set -o posix ;;
22267 # Avoid depending upon Character Ranges.
22268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22271 as_cr_digits='0123456789'
22272 as_cr_alnum=$as_cr_Letters$as_cr_digits
22274 # The user is always right.
22275 if test "${PATH_SEPARATOR+set}" != set; then
22276 echo "#! /bin/sh" >conf$$.sh
22277 echo "exit 0" >>conf$$.sh
22279 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22287 # Support unset when possible.
22288 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22296 # We need space, tab and new line, in precisely that order. Quoting is
22297 # there to prevent editors from complaining about space-tab.
22298 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22299 # splitting by setting IFS to empty value.)
22304 # Find who we are. Look in the path if we contain no directory separator.
22306 *[\\/]* ) as_myself=$0 ;;
22307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22308 for as_dir in $PATH
22311 test -z "$as_dir" && as_dir=.
22312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22318 # We did not find ourselves, most probably we were run as `sh COMMAND'
22319 # in which case we are not to be found in the path.
22320 if test "x$as_myself" = x; then
22323 if test ! -f "$as_myself"; then
22324 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22325 { (exit 1); exit 1; }
22328 # Work around bugs in pre-3.0 UWIN ksh.
22329 for as_var in ENV MAIL MAILPATH
22330 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22338 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22339 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22340 LC_TELEPHONE LC_TIME
22342 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22343 eval $as_var=C; export $as_var
22345 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22349 # Required to use basename.
22350 if expr a : '\(a\)' >/dev/null 2>&1 &&
22351 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22357 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22358 as_basename=basename
22364 # Name of the executable.
22365 as_me=`$as_basename -- "$0" ||
22366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22367 X"$0" : 'X\(//\)$' \| \
22368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22370 sed '/^.*\/\([^/][^/]*\)\/*$/{
22389 as_lineno_1=$LINENO
22390 as_lineno_2=$LINENO
22391 test "x$as_lineno_1" != "x$as_lineno_2" &&
22392 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22394 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22395 # uniformly replaced by the line number. The first 'sed' inserts a
22396 # line-number line after each line using $LINENO; the second 'sed'
22397 # does the real work. The second script uses 'N' to pair each
22398 # line-number line with the line containing $LINENO, and appends
22399 # trailing '-' during substitution so that $LINENO is not a special
22400 # case at line end.
22401 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22402 # scripts with optimization help from Paolo Bonzini. Blame Lee
22403 # E. McMahon (1931-1989) for sed's syntax. :-)
22415 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22418 ' >$as_me.lineno &&
22419 chmod +x "$as_me.lineno" ||
22420 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22421 { (exit 1); exit 1; }; }
22423 # Don't try to exec as it changes $[0], causing all sort of problems
22424 # (the dirname of $[0] is not the place where we might find the
22425 # original and so on. Autoconf is especially sensitive to this).
22426 . "./$as_me.lineno"
22427 # Exit status is that of the last command.
22432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22438 ECHO_C= ECHO_N= ECHO_T=
22439 case `echo -n x` in
22441 case `echo 'x\c'` in
22442 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22449 if expr a : '\(a\)' >/dev/null 2>&1 &&
22450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22456 rm -f conf$$ conf$$.exe conf$$.file
22457 if test -d conf$$.dir; then
22458 rm -f conf$$.dir/conf$$.file
22464 if ln -s conf$$.file conf$$ 2>/dev/null; then
22466 # ... but there are two gotchas:
22467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22469 # In both cases, we have to default to `cp -p'.
22470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22472 elif ln conf$$.file conf$$ 2>/dev/null; then
22477 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22478 rmdir conf$$.dir 2>/dev/null
22480 if mkdir -p . 2>/dev/null; then
22483 test -d ./-p && rmdir ./-p
22487 if test -x / >/dev/null 2>&1; then
22488 as_test_x='test -x'
22490 if ls -dL / >/dev/null 2>&1; then
22497 if test -d "$1"; then
22503 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22504 ???[sx]*):;;*)false;;esac;fi
22508 as_executable_p=$as_test_x
22510 # Sed expression to map a string onto a valid CPP name.
22511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22513 # Sed expression to map a string onto a valid variable name.
22514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22519 # Save the log message, to keep $[0] and so on meaningful, and to
22520 # report actual input values of CONFIG_FILES etc. instead of their
22521 # values after options handling.
22523 This file was extended by gc $as_me 7.2alpha3, which was
22524 generated by GNU Autoconf 2.61. Invocation command line was
22526 CONFIG_FILES = $CONFIG_FILES
22527 CONFIG_HEADERS = $CONFIG_HEADERS
22528 CONFIG_LINKS = $CONFIG_LINKS
22529 CONFIG_COMMANDS = $CONFIG_COMMANDS
22532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22537 cat >>$CONFIG_STATUS <<_ACEOF
22538 # Files that config.status was made for.
22539 config_files="$ac_config_files"
22540 config_commands="$ac_config_commands"
22544 cat >>$CONFIG_STATUS <<\_ACEOF
22546 \`$as_me' instantiates files from templates according to the
22547 current configuration.
22549 Usage: $0 [OPTIONS] [FILE]...
22551 -h, --help print this help, then exit
22552 -V, --version print version number and configuration settings, then exit
22553 -q, --quiet do not print progress messages
22554 -d, --debug don't remove temporary files
22555 --recheck update $as_me by reconfiguring in the same conditions
22556 --file=FILE[:TEMPLATE]
22557 instantiate the configuration file FILE
22559 Configuration files:
22562 Configuration commands:
22565 Report bugs to <bug-autoconf@gnu.org>."
22568 cat >>$CONFIG_STATUS <<_ACEOF
22570 gc config.status 7.2alpha3
22571 configured by $0, generated by GNU Autoconf 2.61,
22572 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22574 Copyright (C) 2006 Free Software Foundation, Inc.
22575 This config.status script is free software; the Free Software Foundation
22576 gives unlimited permission to copy, distribute and modify it."
22583 cat >>$CONFIG_STATUS <<\_ACEOF
22584 # If no file are specified by the user, then we need to provide default
22585 # value. By we need to know if files were specified by the user.
22591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22592 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22603 # Handling of the options.
22604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22607 echo "$ac_cs_version"; exit ;;
22608 --debug | --debu | --deb | --de | --d | -d )
22610 --file | --fil | --fi | --f )
22612 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22613 ac_need_defaults=false;;
22614 --he | --h | --help | --hel | -h )
22615 echo "$ac_cs_usage"; exit ;;
22616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22617 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22620 # This is an error.
22621 -*) { echo "$as_me: error: unrecognized option: $1
22622 Try \`$0 --help' for more information." >&2
22623 { (exit 1); exit 1; }; } ;;
22625 *) ac_config_targets="$ac_config_targets $1"
22626 ac_need_defaults=false ;;
22632 ac_configure_extra_args=
22634 if $ac_cs_silent; then
22636 ac_configure_extra_args="$ac_configure_extra_args --silent"
22640 cat >>$CONFIG_STATUS <<_ACEOF
22641 if \$ac_cs_recheck; then
22642 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22643 CONFIG_SHELL=$SHELL
22644 export CONFIG_SHELL
22645 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22649 cat >>$CONFIG_STATUS <<\_ACEOF
22653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22654 ## Running $as_me. ##
22660 cat >>$CONFIG_STATUS <<_ACEOF
22664 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22667 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22673 cat >>$CONFIG_STATUS <<\_ACEOF
22675 # Handling of arguments.
22676 for ac_config_target in $ac_config_targets
22678 case $ac_config_target in
22679 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22681 "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;;
22682 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22684 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22685 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22686 { (exit 1); exit 1; }; };;
22691 # If the user did not use the arguments to specify the items to instantiate,
22692 # then the envvar interface is used. Set only those that are not.
22693 # We use the long form for the default assignment because of an extremely
22694 # bizarre bug on SunOS 4.1.3.
22695 if $ac_need_defaults; then
22696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22697 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22700 # Have a temporary directory for convenience. Make it in the build tree
22701 # simply because there is no reason against having it here, and in addition,
22702 # creating and moving files from /tmp can sometimes cause problems.
22703 # Hook for its removal unless debugging.
22704 # Note that there is a small window in which the directory will not be cleaned:
22705 # after its creation but before its name has been assigned to `$tmp'.
22709 trap 'exit_status=$?
22710 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22712 trap '{ (exit 1); exit 1; }' 1 2 13 15
22714 # Create a (secure) tmp directory for tmp files.
22717 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22718 test -n "$tmp" && test -d "$tmp"
22721 tmp=./conf$$-$RANDOM
22722 (umask 077 && mkdir "$tmp")
22725 echo "$me: cannot create a temporary directory in ." >&2
22726 { (exit 1); exit 1; }
22730 # Set up the sed scripts for CONFIG_FILES section.
22733 # No need to generate the scripts if there are no CONFIG_FILES.
22734 # This happens for instance when ./config.status config.h
22735 if test -n "$CONFIG_FILES"; then
22742 for ac_last_try in false false false false false :; do
22743 cat >conf$$subs.sed <<_ACEOF
22744 SHELL!$SHELL$ac_delim
22745 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22746 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22747 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22748 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22749 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22750 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22751 exec_prefix!$exec_prefix$ac_delim
22752 prefix!$prefix$ac_delim
22753 program_transform_name!$program_transform_name$ac_delim
22754 bindir!$bindir$ac_delim
22755 sbindir!$sbindir$ac_delim
22756 libexecdir!$libexecdir$ac_delim
22757 datarootdir!$datarootdir$ac_delim
22758 datadir!$datadir$ac_delim
22759 sysconfdir!$sysconfdir$ac_delim
22760 sharedstatedir!$sharedstatedir$ac_delim
22761 localstatedir!$localstatedir$ac_delim
22762 includedir!$includedir$ac_delim
22763 oldincludedir!$oldincludedir$ac_delim
22764 docdir!$docdir$ac_delim
22765 infodir!$infodir$ac_delim
22766 htmldir!$htmldir$ac_delim
22767 dvidir!$dvidir$ac_delim
22768 pdfdir!$pdfdir$ac_delim
22769 psdir!$psdir$ac_delim
22770 libdir!$libdir$ac_delim
22771 localedir!$localedir$ac_delim
22772 mandir!$mandir$ac_delim
22773 DEFS!$DEFS$ac_delim
22774 ECHO_C!$ECHO_C$ac_delim
22775 ECHO_N!$ECHO_N$ac_delim
22776 ECHO_T!$ECHO_T$ac_delim
22777 LIBS!$LIBS$ac_delim
22778 build_alias!$build_alias$ac_delim
22779 host_alias!$host_alias$ac_delim
22780 target_alias!$target_alias$ac_delim
22781 build!$build$ac_delim
22782 build_cpu!$build_cpu$ac_delim
22783 build_vendor!$build_vendor$ac_delim
22784 build_os!$build_os$ac_delim
22785 host!$host$ac_delim
22786 host_cpu!$host_cpu$ac_delim
22787 host_vendor!$host_vendor$ac_delim
22788 host_os!$host_os$ac_delim
22789 target!$target$ac_delim
22790 target_cpu!$target_cpu$ac_delim
22791 target_vendor!$target_vendor$ac_delim
22792 target_os!$target_os$ac_delim
22793 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22794 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22795 INSTALL_DATA!$INSTALL_DATA$ac_delim
22796 CYGPATH_W!$CYGPATH_W$ac_delim
22797 PACKAGE!$PACKAGE$ac_delim
22798 VERSION!$VERSION$ac_delim
22799 ACLOCAL!$ACLOCAL$ac_delim
22800 AUTOCONF!$AUTOCONF$ac_delim
22801 AUTOMAKE!$AUTOMAKE$ac_delim
22802 AUTOHEADER!$AUTOHEADER$ac_delim
22803 MAKEINFO!$MAKEINFO$ac_delim
22804 install_sh!$install_sh$ac_delim
22805 STRIP!$STRIP$ac_delim
22806 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22807 mkdir_p!$mkdir_p$ac_delim
22809 SET_MAKE!$SET_MAKE$ac_delim
22810 am__leading_dot!$am__leading_dot$ac_delim
22811 AMTAR!$AMTAR$ac_delim
22812 am__tar!$am__tar$ac_delim
22813 am__untar!$am__untar$ac_delim
22814 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22815 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22816 MAINT!$MAINT$ac_delim
22817 GC_VERSION!$GC_VERSION$ac_delim
22819 CFLAGS!$CFLAGS$ac_delim
22820 LDFLAGS!$LDFLAGS$ac_delim
22821 CPPFLAGS!$CPPFLAGS$ac_delim
22822 ac_ct_CC!$ac_ct_CC$ac_delim
22823 EXEEXT!$EXEEXT$ac_delim
22824 OBJEXT!$OBJEXT$ac_delim
22825 DEPDIR!$DEPDIR$ac_delim
22826 am__include!$am__include$ac_delim
22827 am__quote!$am__quote$ac_delim
22828 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22829 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22830 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22831 CCDEPMODE!$CCDEPMODE$ac_delim
22832 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22833 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22835 CXXFLAGS!$CXXFLAGS$ac_delim
22836 ac_ct_CXX!$ac_ct_CXX$ac_delim
22837 CXXDEPMODE!$CXXDEPMODE$ac_delim
22838 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22839 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22840 CCAS!$CCAS$ac_delim
22843 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22845 elif $ac_last_try; then
22846 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22847 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22848 { (exit 1); exit 1; }; }
22850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22854 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22855 if test -n "$ac_eof"; then
22856 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22857 ac_eof=`expr $ac_eof + 1`
22860 cat >>$CONFIG_STATUS <<_ACEOF
22861 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22865 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22866 s/^/s,@/; s/!/@,|#_!!_#|/
22869 s/'"$ac_delim"'$/,g/; t
22871 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22872 ' >>$CONFIG_STATUS <conf$$subs.sed
22873 rm -f conf$$subs.sed
22874 cat >>$CONFIG_STATUS <<_ACEOF
22880 for ac_last_try in false false false false false :; do
22881 cat >conf$$subs.sed <<_ACEOF
22882 CCASFLAGS!$CCASFLAGS$ac_delim
22884 RANLIB!$RANLIB$ac_delim
22885 GC_CFLAGS!$GC_CFLAGS$ac_delim
22886 THREADDLLIBS!$THREADDLLIBS$ac_delim
22887 THREADS_TRUE!$THREADS_TRUE$ac_delim
22888 THREADS_FALSE!$THREADS_FALSE$ac_delim
22889 PTHREADS_TRUE!$PTHREADS_TRUE$ac_delim
22890 PTHREADS_FALSE!$PTHREADS_FALSE$ac_delim
22891 DARWIN_THREADS_TRUE!$DARWIN_THREADS_TRUE$ac_delim
22892 DARWIN_THREADS_FALSE!$DARWIN_THREADS_FALSE$ac_delim
22893 WIN32_THREADS_TRUE!$WIN32_THREADS_TRUE$ac_delim
22894 WIN32_THREADS_FALSE!$WIN32_THREADS_FALSE$ac_delim
22895 COMPILER_XLC_TRUE!$COMPILER_XLC_TRUE$ac_delim
22896 COMPILER_XLC_FALSE!$COMPILER_XLC_FALSE$ac_delim
22897 AVOID_CPP_LIB_TRUE!$AVOID_CPP_LIB_TRUE$ac_delim
22898 AVOID_CPP_LIB_FALSE!$AVOID_CPP_LIB_FALSE$ac_delim
22899 extra_ldflags_libgc!$extra_ldflags_libgc$ac_delim
22900 EXTRA_TEST_LIBS!$EXTRA_TEST_LIBS$ac_delim
22901 target_all!$target_all$ac_delim
22902 CPLUSPLUS_TRUE!$CPLUSPLUS_TRUE$ac_delim
22903 CPLUSPLUS_FALSE!$CPLUSPLUS_FALSE$ac_delim
22904 INCLUDES!$INCLUDES$ac_delim
22905 CXXINCLUDES!$CXXINCLUDES$ac_delim
22906 addobjs!$addobjs$ac_delim
22907 addlibs!$addlibs$ac_delim
22908 GREP!$GREP$ac_delim
22909 EGREP!$EGREP$ac_delim
22910 LN_S!$LN_S$ac_delim
22911 ECHO!$ECHO$ac_delim
22913 CXXCPP!$CXXCPP$ac_delim
22915 FFLAGS!$FFLAGS$ac_delim
22916 ac_ct_F77!$ac_ct_F77$ac_delim
22917 LIBTOOL!$LIBTOOL$ac_delim
22918 ENABLE_GCJ_SUPPORT_TRUE!$ENABLE_GCJ_SUPPORT_TRUE$ac_delim
22919 ENABLE_GCJ_SUPPORT_FALSE!$ENABLE_GCJ_SUPPORT_FALSE$ac_delim
22920 UNWINDLIBS!$UNWINDLIBS$ac_delim
22921 USE_LIBDIR_TRUE!$USE_LIBDIR_TRUE$ac_delim
22922 USE_LIBDIR_FALSE!$USE_LIBDIR_FALSE$ac_delim
22923 subdirs!$subdirs$ac_delim
22924 USE_INTERNAL_LIBATOMIC_OPS_TRUE!$USE_INTERNAL_LIBATOMIC_OPS_TRUE$ac_delim
22925 USE_INTERNAL_LIBATOMIC_OPS_FALSE!$USE_INTERNAL_LIBATOMIC_OPS_FALSE$ac_delim
22926 NEED_ATOMIC_OPS_ASM_TRUE!$NEED_ATOMIC_OPS_ASM_TRUE$ac_delim
22927 NEED_ATOMIC_OPS_ASM_FALSE!$NEED_ATOMIC_OPS_ASM_FALSE$ac_delim
22928 atomic_ops_libs!$atomic_ops_libs$ac_delim
22929 LIBOBJS!$LIBOBJS$ac_delim
22930 LTLIBOBJS!$LTLIBOBJS$ac_delim
22933 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
22935 elif $ac_last_try; then
22936 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22938 { (exit 1); exit 1; }; }
22940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22944 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22945 if test -n "$ac_eof"; then
22946 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22947 ac_eof=`expr $ac_eof + 1`
22950 cat >>$CONFIG_STATUS <<_ACEOF
22951 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22955 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22956 s/^/s,@/; s/!/@,|#_!!_#|/
22959 s/'"$ac_delim"'$/,g/; t
22961 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22962 ' >>$CONFIG_STATUS <conf$$subs.sed
22963 rm -f conf$$subs.sed
22964 cat >>$CONFIG_STATUS <<_ACEOF
22971 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22972 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22973 # trailing colons and then remove the whole line if VPATH becomes empty
22974 # (actually we leave an empty line to preserve line numbers).
22975 if test "x$srcdir" = x.; then
22976 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22977 s/:*\$(srcdir):*/:/
22978 s/:*\${srcdir}:*/:/
22980 s/^\([^=]*=[ ]*\):*/\1/
22986 cat >>$CONFIG_STATUS <<\_ACEOF
22987 fi # test -n "$CONFIG_FILES"
22990 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22993 :[FHLC]) ac_mode=$ac_tag; continue;;
22995 case $ac_mode$ac_tag in
22997 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22998 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22999 { (exit 1); exit 1; }; };;
23000 :[FH]-) ac_tag=-:-;;
23001 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23018 -) ac_f="$tmp/stdin";;
23019 *) # Look for the file first in the build tree, then in the source tree
23020 # (if the path is not absolute). The absolute path cannot be DOS-style,
23021 # because $ac_f cannot contain `:'.
23025 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23027 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23028 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23029 { (exit 1); exit 1; }; };;
23031 ac_file_inputs="$ac_file_inputs $ac_f"
23034 # Let's still pretend it is `configure' which instantiates (i.e., don't
23035 # use $as_me), people would be surprised to read:
23036 # /* config.h. Generated by config.status. */
23037 configure_input="Generated from "`IFS=:
23038 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23039 if test x"$ac_file" != x-; then
23040 configure_input="$ac_file. $configure_input"
23041 { echo "$as_me:$LINENO: creating $ac_file" >&5
23042 echo "$as_me: creating $ac_file" >&6;}
23046 *:-:* | *:-) cat >"$tmp/stdin";;
23051 ac_dir=`$as_dirname -- "$ac_file" ||
23052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23053 X"$ac_file" : 'X\(//\)[^/]' \| \
23054 X"$ac_file" : 'X\(//\)$' \| \
23055 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23061 /^X\(\/\/\)[^/].*/{
23076 -*) as_dir=./$as_dir;;
23078 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23082 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23083 *) as_qdir=$as_dir;;
23085 as_dirs="'$as_qdir' $as_dirs"
23086 as_dir=`$as_dirname -- "$as_dir" ||
23087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23088 X"$as_dir" : 'X\(//\)[^/]' \| \
23089 X"$as_dir" : 'X\(//\)$' \| \
23090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23096 /^X\(\/\/\)[^/].*/{
23109 test -d "$as_dir" && break
23111 test -z "$as_dirs" || eval "mkdir $as_dirs"
23112 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23113 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23114 { (exit 1); exit 1; }; }; }
23118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23121 # A ".." for each directory in $ac_dir_suffix.
23122 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23123 case $ac_top_builddir_sub in
23124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23128 ac_abs_top_builddir=$ac_pwd
23129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23130 # for backward compatibility:
23131 ac_top_builddir=$ac_top_build_prefix
23134 .) # We are building in place.
23136 ac_top_srcdir=$ac_top_builddir_sub
23137 ac_abs_top_srcdir=$ac_pwd ;;
23138 [\\/]* | ?:[\\/]* ) # Absolute name.
23139 ac_srcdir=$srcdir$ac_dir_suffix;
23140 ac_top_srcdir=$srcdir
23141 ac_abs_top_srcdir=$srcdir ;;
23142 *) # Relative name.
23143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23144 ac_top_srcdir=$ac_top_build_prefix$srcdir
23145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23158 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23162 cat >>$CONFIG_STATUS <<\_ACEOF
23163 # If the template does not know about datarootdir, expand it.
23164 # FIXME: This hack should be removed a few years after 2.60.
23165 ac_datarootdir_hack=; ac_datarootdir_seen=
23167 case `sed -n '/datarootdir/ {
23176 ' $ac_file_inputs` in
23177 *datarootdir*) ac_datarootdir_seen=yes;;
23178 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23179 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23180 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23182 cat >>$CONFIG_STATUS <<_ACEOF
23183 ac_datarootdir_hack='
23184 s&@datadir@&$datadir&g
23185 s&@docdir@&$docdir&g
23186 s&@infodir@&$infodir&g
23187 s&@localedir@&$localedir&g
23188 s&@mandir@&$mandir&g
23189 s&\\\${datarootdir}&$datarootdir&g' ;;
23193 # Neutralize VPATH when `$srcdir' = `.'.
23194 # Shell code in configure.ac might set extrasub.
23195 # FIXME: do we really want to maintain this feature?
23196 cat >>$CONFIG_STATUS <<_ACEOF
23200 cat >>$CONFIG_STATUS <<\_ACEOF
23202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23203 s&@configure_input@&$configure_input&;t t
23204 s&@top_builddir@&$ac_top_builddir_sub&;t t
23205 s&@srcdir@&$ac_srcdir&;t t
23206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23207 s&@top_srcdir@&$ac_top_srcdir&;t t
23208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23209 s&@builddir@&$ac_builddir&;t t
23210 s&@abs_builddir@&$ac_abs_builddir&;t t
23211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23212 s&@INSTALL@&$ac_INSTALL&;t t
23213 $ac_datarootdir_hack
23214 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23217 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23219 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23220 which seems to be undefined. Please make sure it is defined." >&5
23221 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23222 which seems to be undefined. Please make sure it is defined." >&2;}
23226 -) cat "$tmp/out"; rm -f "$tmp/out";;
23227 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23232 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23233 echo "$as_me: executing $ac_file commands" >&6;}
23238 case $ac_file$ac_mode in
23239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23240 # Strip MF so we end up with the name of the file.
23241 mf=`echo "$mf" | sed -e 's/:.*$//'`
23242 # Check whether this is an Automake generated Makefile or not.
23243 # We used to match only the files named `Makefile.in', but
23244 # some people rename them; so instead we look at the file content.
23245 # Grep'ing the first line is not enough: some people post-process
23246 # each Makefile.in and add a new line on top of each file to say so.
23247 # So let's grep whole file.
23248 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23249 dirpart=`$as_dirname -- "$mf" ||
23250 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23251 X"$mf" : 'X\(//\)[^/]' \| \
23252 X"$mf" : 'X\(//\)$' \| \
23253 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23259 /^X\(\/\/\)[^/].*/{
23275 # Extract the definition of DEPDIR, am__include, and am__quote
23276 # from the Makefile without running `make'.
23277 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23278 test -z "$DEPDIR" && continue
23279 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23280 test -z "am__include" && continue
23281 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23282 # When using ansi2knr, U may be empty or an underscore; expand it
23283 U=`sed -n 's/^U = //p' < "$mf"`
23284 # Find all dependency output files, they are included files with
23285 # $(DEPDIR) in their names. We invoke sed twice because it is the
23286 # simplest approach to changing $(DEPDIR) to its actual value in the
23288 for file in `sed -n "
23289 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23290 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23291 # Make sure the directory exists.
23292 test -f "$dirpart/$file" && continue
23293 fdir=`$as_dirname -- "$file" ||
23294 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23295 X"$file" : 'X\(//\)[^/]' \| \
23296 X"$file" : 'X\(//\)$' \| \
23297 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23303 /^X\(\/\/\)[^/].*/{
23316 { as_dir=$dirpart/$fdir
23318 -*) as_dir=./$as_dir;;
23320 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23324 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23325 *) as_qdir=$as_dir;;
23327 as_dirs="'$as_qdir' $as_dirs"
23328 as_dir=`$as_dirname -- "$as_dir" ||
23329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23330 X"$as_dir" : 'X\(//\)[^/]' \| \
23331 X"$as_dir" : 'X\(//\)$' \| \
23332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23338 /^X\(\/\/\)[^/].*/{
23351 test -d "$as_dir" && break
23353 test -z "$as_dirs" || eval "mkdir $as_dirs"
23354 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23355 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23356 { (exit 1); exit 1; }; }; }
23357 # echo "creating $dirpart/$file"
23358 echo '# dummy' > "$dirpart/$file"
23367 { (exit 0); exit 0; }
23369 chmod +x $CONFIG_STATUS
23370 ac_clean_files=$ac_clean_files_save
23373 # configure is writing to config.log, and then calls config.status.
23374 # config.status does its own redirection, appending to config.log.
23375 # Unfortunately, on DOS this fails, as config.log is still kept open
23376 # by configure, so config.status won't be able to write to it; its
23377 # output is simply discarded. So we exec the FD to /dev/null,
23378 # effectively closing config.log, so it can be properly (re)opened and
23379 # appended to by config.status. When coming back to configure, we
23380 # need to make the FD available again.
23381 if test "$no_create" != yes; then
23383 ac_config_status_args=
23384 test "$silent" = yes &&
23385 ac_config_status_args="$ac_config_status_args --quiet"
23387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23390 # would make configure fail if this is the last instruction.
23391 $ac_cs_success || { (exit 1); exit 1; }
23395 # CONFIG_SUBDIRS section.
23397 if test "$no_recursion" != yes; then
23399 # Remove --cache-file and --srcdir arguments so they do not pile up.
23400 ac_sub_configure_args=
23402 eval "set x $ac_configure_args"
23406 if test -n "$ac_prev"; then
23411 -cache-file | --cache-file | --cache-fil | --cache-fi \
23412 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23413 ac_prev=cache_file ;;
23414 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23415 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23418 --config-cache | -C)
23420 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23422 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23424 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23426 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23430 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23432 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23436 # Always prepend --prefix to ensure using the same prefix
23437 # in subdir configurations.
23438 ac_arg="--prefix=$prefix"
23440 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23442 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23445 if test "$silent" = yes; then
23446 ac_sub_configure_args="--silent $ac_sub_configure_args"
23450 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23452 # Do not complain, so a configure script can configure whichever
23453 # parts of a large source tree are present.
23454 test -d "$srcdir/$ac_dir" || continue
23456 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23457 echo "$as_me:$LINENO: $ac_msg" >&5
23461 -*) as_dir=./$as_dir;;
23463 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23467 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23468 *) as_qdir=$as_dir;;
23470 as_dirs="'$as_qdir' $as_dirs"
23471 as_dir=`$as_dirname -- "$as_dir" ||
23472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23473 X"$as_dir" : 'X\(//\)[^/]' \| \
23474 X"$as_dir" : 'X\(//\)$' \| \
23475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23481 /^X\(\/\/\)[^/].*/{
23494 test -d "$as_dir" && break
23496 test -z "$as_dirs" || eval "mkdir $as_dirs"
23497 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23498 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23499 { (exit 1); exit 1; }; }; }
23503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23506 # A ".." for each directory in $ac_dir_suffix.
23507 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23508 case $ac_top_builddir_sub in
23509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23513 ac_abs_top_builddir=$ac_pwd
23514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23515 # for backward compatibility:
23516 ac_top_builddir=$ac_top_build_prefix
23519 .) # We are building in place.
23521 ac_top_srcdir=$ac_top_builddir_sub
23522 ac_abs_top_srcdir=$ac_pwd ;;
23523 [\\/]* | ?:[\\/]* ) # Absolute name.
23524 ac_srcdir=$srcdir$ac_dir_suffix;
23525 ac_top_srcdir=$srcdir
23526 ac_abs_top_srcdir=$srcdir ;;
23527 *) # Relative name.
23528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23529 ac_top_srcdir=$ac_top_build_prefix$srcdir
23530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23537 # Check for guested configure; otherwise get Cygnus style configure.
23538 if test -f "$ac_srcdir/configure.gnu"; then
23539 ac_sub_configure=$ac_srcdir/configure.gnu
23540 elif test -f "$ac_srcdir/configure"; then
23541 ac_sub_configure=$ac_srcdir/configure
23542 elif test -f "$ac_srcdir/configure.in"; then
23543 # This should be Cygnus configure.
23544 ac_sub_configure=$ac_aux_dir/configure
23546 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23551 # The recursion is here.
23552 if test -n "$ac_sub_configure"; then
23553 # Make the cache file name correct relative to the subdirectory.
23554 case $cache_file in
23555 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23556 *) # Relative name.
23557 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23560 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23561 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23562 # The eval makes quoting arguments work.
23563 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23564 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23565 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23566 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23567 { (exit 1); exit 1; }; }