• R/O
  • SSH
  • HTTPS

qrobosdk: コミット


コミットメタ情報

リビジョン1969 (tree)
日時2011-11-04 08:34:29
作者satofumi

ログメッセージ

added urg header files.

変更サマリ

差分

--- trunk/doxes/urg_dox/history_log.txt (revision 1968)
+++ trunk/doxes/urg_dox/history_log.txt (revision 1969)
@@ -1,3 +1,15 @@
1+2011/10/28
2+index.html
3+"URG ライブラリ 0.8.14" をリリース
4+C++ 実装においてファイルが不足しているのを修正しました。
5+
6+
7+2011/10/13
8+index.html
9+URG ライブラリ用のサンプルを更新
10+capture_sample.cpp と md_scan.cpp がコンパイルエラーになるのを修正しました。
11+
12+
113 2011/07/13
214 index.html
315 "URG ライブラリ 0.8.13" をリリース
--- trunk/libs/lua/luabindInit.cpp (revision 1968)
+++ trunk/libs/lua/luabindInit.cpp (revision 1969)
@@ -41,7 +41,7 @@
4141
4242 return 1;
4343 }
44-};
44+}
4545
4646
4747 lua_State* qrk::luabindInit(lua_State* lua, bool force)
--- trunk/libs/packages/urg/src/cpp/urg/UrgDevice.h (nonexistent)
+++ trunk/libs/packages/urg/src/cpp/urg/UrgDevice.h (revision 1969)
@@ -0,0 +1 @@
1+link ../../../../../range_sensor/UrgDevice.h
\ No newline at end of file
Added: svn:special
## -0,0 +1 ##
+*
\ No newline at end of property
--- trunk/libs/packages/urg/src/cpp/urg/UrgCtrl.h (nonexistent)
+++ trunk/libs/packages/urg/src/cpp/urg/UrgCtrl.h (revision 1969)
@@ -0,0 +1 @@
1+link ../../../../../range_sensor/UrgCtrl.h
\ No newline at end of file
Added: svn:special
## -0,0 +1 ##
+*
\ No newline at end of property
--- trunk/libs/packages/urg/src/cpp/urg/Makefile.am (revision 1968)
+++ trunk/libs/packages/urg/src/cpp/urg/Makefile.am (revision 1969)
@@ -3,7 +3,7 @@
33 INCLUDES = $(CPP_INCLUDES)
44 lib_LTLIBRARIES = liburg.la
55 liburg_includedir = $(includedir)/urg
6-liburg_include_HEADERS = RangeSensor.h CaptureSettings.h RangeSensorParameter.h RangeCaptureMode.h UrgUsbCom.h UrgUtils.h findUrgPorts.h
6+liburg_include_HEADERS = RangeSensor.h CaptureSettings.h RangeSensorParameter.h RangeCaptureMode.h UrgUsbCom.h UrgUtils.h findUrgPorts.h UrgDevice.h UrgCtrl.h
77 liburg_la_SOURCES = UrgDevice.cpp ScipHandler.cpp findUrgPorts.cpp UrgUsbCom.cpp UrgCtrl.cpp \
88 ScipHandler.h
99 AM_CXXFLAGS = $(SDL_CFLAGS)
--- trunk/libs/packages/urg/ChangeLog (revision 1968)
+++ trunk/libs/packages/urg/ChangeLog (revision 1969)
@@ -1,3 +1,7 @@
1+2011-10-28 Satofumi KAMIMURA <satofumi@uers.sourceforge.jp>
2+ * Fixed added UrgDevice.h.
3+ * 0.8.14 released.
4+
15 2011-07-13 Satofumi KAMIMURA <satofumi@uers.sourceforge.jp>
26 * Fixed added UrgDevice.h.
37 * 0.8.13 released.
--- trunk/libs/packages/urg/aclocal.m4 (revision 1968)
+++ trunk/libs/packages/urg/aclocal.m4 (revision 1969)
@@ -19,7 +19,8 @@
1919 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2020 #
2121 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22-# 2006, 2007, 2008 Free Software Foundation, Inc.
22+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
23+# Inc.
2324 # Written by Gordon Matzigkeit, 1996
2425 #
2526 # This file is free software; the Free Software Foundation gives
@@ -28,7 +29,8 @@
2829
2930 m4_define([_LT_COPYING], [dnl
3031 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31-# 2006, 2007, 2008 Free Software Foundation, Inc.
32+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
33+# Inc.
3234 # Written by Gordon Matzigkeit, 1996
3335 #
3436 # This file is part of GNU Libtool.
@@ -55,7 +57,7 @@
5557 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5658 ])
5759
58-# serial 56 LT_INIT
60+# serial 57 LT_INIT
5961
6062
6163 # LT_PREREQ(VERSION)
@@ -84,6 +86,7 @@
8486 # ------------------
8587 AC_DEFUN([LT_INIT],
8688 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
89+AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
8790 AC_BEFORE([$0], [LT_LANG])dnl
8891 AC_BEFORE([$0], [LT_OUTPUT])dnl
8992 AC_BEFORE([$0], [LTDL_INIT])dnl
@@ -100,6 +103,8 @@
100103 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
101104 m4_require([_LT_PROG_LTMAIN])dnl
102105
106+_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
107+
103108 dnl Parse OPTIONS
104109 _LT_SET_OPTIONS([$0], [$1])
105110
@@ -136,7 +141,7 @@
136141 *) break;;
137142 esac
138143 done
139-cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
144+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
140145 ])
141146
142147
@@ -156,6 +161,9 @@
156161 m4_defun([_LT_SETUP],
157162 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
158163 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
164+AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
165+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
166+
159167 _LT_DECL([], [host_alias], [0], [The host system])dnl
160168 _LT_DECL([], [host], [0])dnl
161169 _LT_DECL([], [host_os], [0])dnl
@@ -178,10 +186,13 @@
178186 dnl
179187 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
180188 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
189+m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
181190 m4_require([_LT_CMD_RELOAD])dnl
182191 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
192+m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
183193 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
184194 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
195+m4_require([_LT_WITH_SYSROOT])dnl
185196
186197 _LT_CONFIG_LIBTOOL_INIT([
187198 # See if we are running on zsh, and set the options which allow our
@@ -197,7 +208,6 @@
197208 _LT_CHECK_OBJDIR
198209
199210 m4_require([_LT_TAG_COMPILER])dnl
200-_LT_PROG_ECHO_BACKSLASH
201211
202212 case $host_os in
203213 aix3*)
@@ -211,23 +221,6 @@
211221 ;;
212222 esac
213223
214-# Sed substitution that helps us do robust quoting. It backslashifies
215-# metacharacters that are still active within double-quoted strings.
216-sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
217-
218-# Same as above, but do not quote variable references.
219-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
220-
221-# Sed substitution to delay expansion of an escaped shell variable in a
222-# double_quote_subst'ed string.
223-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
224-
225-# Sed substitution to delay expansion of an escaped single quote.
226-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
227-
228-# Sed substitution to avoid accidental globbing in evaled expressions
229-no_glob_subst='s/\*/\\\*/g'
230-
231224 # Global variables:
232225 ofile=libtool
233226 can_build_shared=yes
@@ -268,6 +261,28 @@
268261 ])# _LT_SETUP
269262
270263
264+# _LT_PREPARE_SED_QUOTE_VARS
265+# --------------------------
266+# Define a few sed substitution that help us do robust quoting.
267+m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
268+[# Backslashify metacharacters that are still active within
269+# double-quoted strings.
270+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
271+
272+# Same as above, but do not quote variable references.
273+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
274+
275+# Sed substitution to delay expansion of an escaped shell variable in a
276+# double_quote_subst'ed string.
277+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
278+
279+# Sed substitution to delay expansion of an escaped single quote.
280+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
281+
282+# Sed substitution to avoid accidental globbing in evaled expressions
283+no_glob_subst='s/\*/\\\*/g'
284+])
285+
271286 # _LT_PROG_LTMAIN
272287 # ---------------
273288 # Note that this code is called both from `configure', and `config.status'
@@ -420,7 +435,7 @@
420435 # declaration there will have the same value as in `configure'. VARNAME
421436 # must have a single quote delimited value for this to work.
422437 m4_define([_LT_CONFIG_STATUS_DECLARE],
423-[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
438+[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
424439
425440
426441 # _LT_CONFIG_STATUS_DECLARATIONS
@@ -430,7 +445,7 @@
430445 # embedded single quotes properly. In configure, this macro expands
431446 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
432447 #
433-# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
448+# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
434449 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
435450 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
436451 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
@@ -529,12 +544,20 @@
529544 LTCFLAGS='$LTCFLAGS'
530545 compiler='$compiler_DEFAULT'
531546
547+# A function that is used when there is no print builtin or printf.
548+func_fallback_echo ()
549+{
550+ eval 'cat <<_LTECHO_EOF
551+\$[]1
552+_LTECHO_EOF'
553+}
554+
532555 # Quote evaled strings.
533556 for var in lt_decl_all_varnames([[ \
534557 ]], lt_decl_quote_varnames); do
535- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
558+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
536559 *[[\\\\\\\`\\"\\\$]]*)
537- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
560+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
538561 ;;
539562 *)
540563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -545,9 +568,9 @@
545568 # Double-quote double-evaled strings.
546569 for var in lt_decl_all_varnames([[ \
547570 ]], lt_decl_dquote_varnames); do
548- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
571+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
549572 *[[\\\\\\\`\\"\\\$]]*)
550- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
573+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
551574 ;;
552575 *)
553576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -555,16 +578,38 @@
555578 esac
556579 done
557580
558-# Fix-up fallback echo if it was mangled by the above quoting rules.
559-case \$lt_ECHO in
560-*'\\\[$]0 --fallback-echo"')dnl "
561- lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
562- ;;
563-esac
564-
565581 _LT_OUTPUT_LIBTOOL_INIT
566582 ])
567583
584+# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
585+# ------------------------------------
586+# Generate a child script FILE with all initialization necessary to
587+# reuse the environment learned by the parent script, and make the
588+# file executable. If COMMENT is supplied, it is inserted after the
589+# `#!' sequence but before initialization text begins. After this
590+# macro, additional text can be appended to FILE to form the body of
591+# the child script. The macro ends with non-zero status if the
592+# file could not be fully written (such as if the disk is full).
593+m4_ifdef([AS_INIT_GENERATED],
594+[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
595+[m4_defun([_LT_GENERATED_FILE_INIT],
596+[m4_require([AS_PREPARE])]dnl
597+[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
598+[lt_write_fail=0
599+cat >$1 <<_ASEOF || lt_write_fail=1
600+#! $SHELL
601+# Generated by $as_me.
602+$2
603+SHELL=\${CONFIG_SHELL-$SHELL}
604+export SHELL
605+_ASEOF
606+cat >>$1 <<\_ASEOF || lt_write_fail=1
607+AS_SHELL_SANITIZE
608+_AS_PREPARE
609+exec AS_MESSAGE_FD>&1
610+_ASEOF
611+test $lt_write_fail = 0 && chmod +x $1[]dnl
612+m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
568613
569614 # LT_OUTPUT
570615 # ---------
@@ -574,20 +619,11 @@
574619 AC_DEFUN([LT_OUTPUT],
575620 [: ${CONFIG_LT=./config.lt}
576621 AC_MSG_NOTICE([creating $CONFIG_LT])
577-cat >"$CONFIG_LT" <<_LTEOF
578-#! $SHELL
579-# Generated by $as_me.
580-# Run this file to recreate a libtool stub with the current configuration.
622+_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
623+[# Run this file to recreate a libtool stub with the current configuration.])
581624
625+cat >>"$CONFIG_LT" <<\_LTEOF
582626 lt_cl_silent=false
583-SHELL=\${CONFIG_SHELL-$SHELL}
584-_LTEOF
585-
586-cat >>"$CONFIG_LT" <<\_LTEOF
587-AS_SHELL_SANITIZE
588-_AS_PREPARE
589-
590-exec AS_MESSAGE_FD>&1
591627 exec AS_MESSAGE_LOG_FD>>config.log
592628 {
593629 echo
@@ -613,7 +649,7 @@
613649 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
614650 configured by $[0], generated by m4_PACKAGE_STRING.
615651
616-Copyright (C) 2008 Free Software Foundation, Inc.
652+Copyright (C) 2010 Free Software Foundation, Inc.
617653 This config.lt script is free software; the Free Software Foundation
618654 gives unlimited permision to copy, distribute and modify it."
619655
@@ -658,15 +694,13 @@
658694 # appending to config.log, which fails on DOS, as config.log is still kept
659695 # open by configure. Here we exec the FD to /dev/null, effectively closing
660696 # config.log, so it can be properly (re)opened and appended to by config.lt.
661-if test "$no_create" != yes; then
662- lt_cl_success=:
663- test "$silent" = yes &&
664- lt_config_lt_args="$lt_config_lt_args --quiet"
665- exec AS_MESSAGE_LOG_FD>/dev/null
666- $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
667- exec AS_MESSAGE_LOG_FD>>config.log
668- $lt_cl_success || AS_EXIT(1)
669-fi
697+lt_cl_success=:
698+test "$silent" = yes &&
699+ lt_config_lt_args="$lt_config_lt_args --quiet"
700+exec AS_MESSAGE_LOG_FD>/dev/null
701+$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
702+exec AS_MESSAGE_LOG_FD>>config.log
703+$lt_cl_success || AS_EXIT(1)
670704 ])# LT_OUTPUT
671705
672706
@@ -729,15 +763,12 @@
729763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
730764 # text mode, it properly converts lines to CR/LF. This bash problem
731765 # is reportedly fixed, but why not run on old versions too?
732- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
733- || (rm -f "$cfgfile"; exit 1)
766+ sed '$q' "$ltmain" >> "$cfgfile" \
767+ || (rm -f "$cfgfile"; exit 1)
734768
735- _LT_PROG_XSI_SHELLFNS
769+ _LT_PROG_REPLACE_SHELLFNS
736770
737- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
738- || (rm -f "$cfgfile"; exit 1)
739-
740- mv -f "$cfgfile" "$ofile" ||
771+ mv -f "$cfgfile" "$ofile" ||
741772 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
742773 chmod +x "$ofile"
743774 ],
@@ -843,11 +874,13 @@
843874 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
844875 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
845876 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
877+AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
846878 dnl aclocal-1.4 backwards compatibility:
847879 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
848880 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
849881 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
850882 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
883+dnl AC_DEFUN([AC_LIBTOOL_RC], [])
851884
852885
853886 # _LT_TAG_COMPILER
@@ -952,6 +985,31 @@
952985 [lt_cv_ld_exported_symbols_list=no])
953986 LDFLAGS="$save_LDFLAGS"
954987 ])
988+ AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
989+ [lt_cv_ld_force_load=no
990+ cat > conftest.c << _LT_EOF
991+int forced_loaded() { return 2;}
992+_LT_EOF
993+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
994+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
995+ echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
996+ $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
997+ echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
998+ $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
999+ cat > conftest.c << _LT_EOF
1000+int main() { return 0;}
1001+_LT_EOF
1002+ echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1003+ $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1004+ _lt_result=$?
1005+ if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1006+ lt_cv_ld_force_load=yes
1007+ else
1008+ cat conftest.err >&AS_MESSAGE_LOG_FD
1009+ fi
1010+ rm -f conftest.err libconftest.a conftest conftest.c
1011+ rm -rf conftest.dSYM
1012+ ])
9551013 case $host_os in
9561014 rhapsody* | darwin1.[[012]])
9571015 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
@@ -979,7 +1037,7 @@
9791037 else
9801038 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9811039 fi
982- if test "$DSYMUTIL" != ":"; then
1040+ if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9831041 _lt_dsymutil='~$DSYMUTIL $lib || :'
9841042 else
9851043 _lt_dsymutil=
@@ -999,7 +1057,11 @@
9991057 _LT_TAGVAR(hardcode_direct, $1)=no
10001058 _LT_TAGVAR(hardcode_automatic, $1)=yes
10011059 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1002- _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1060+ if test "$lt_cv_ld_force_load" = "yes"; then
1061+ _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1062+ else
1063+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1064+ fi
10031065 _LT_TAGVAR(link_all_deplibs, $1)=yes
10041066 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
10051067 case $cc_basename in
@@ -1007,7 +1069,7 @@
10071069 *) _lt_dar_can_shared=$GCC ;;
10081070 esac
10091071 if test "$_lt_dar_can_shared" = "yes"; then
1010- output_verbose_link_cmd=echo
1072+ output_verbose_link_cmd=func_echo_all
10111073 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10121074 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10131075 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
@@ -1023,8 +1085,8 @@
10231085 fi
10241086 ])
10251087
1026-# _LT_SYS_MODULE_PATH_AIX
1027-# -----------------------
1088+# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1089+# ----------------------------------
10281090 # Links a minimal program and checks the executable
10291091 # for the system default hardcoded library path. In most cases,
10301092 # this is /usr/lib:/lib, but when the MPI compilers are used
@@ -1031,22 +1093,33 @@
10311093 # the location of the communication and MPI libs are included too.
10321094 # If we don't find anything, use the default library path according
10331095 # to the aix ld manual.
1096+# Store the results from the different compilers for each TAGNAME.
1097+# Allow to override them for all tags through lt_cv_aix_libpath.
10341098 m4_defun([_LT_SYS_MODULE_PATH_AIX],
10351099 [m4_require([_LT_DECL_SED])dnl
1036-AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1037-lt_aix_libpath_sed='
1038- /Import File Strings/,/^$/ {
1039- /^0/ {
1040- s/^0 *\(.*\)$/\1/
1041- p
1042- }
1043- }'
1044-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1045-# Check for a 64-bit object if we didn't find anything.
1046-if test -z "$aix_libpath"; then
1047- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1048-fi],[])
1049-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1100+if test "${lt_cv_aix_libpath+set}" = set; then
1101+ aix_libpath=$lt_cv_aix_libpath
1102+else
1103+ AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1104+ [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1105+ lt_aix_libpath_sed='[
1106+ /Import File Strings/,/^$/ {
1107+ /^0/ {
1108+ s/^0 *\([^ ]*\) *$/\1/
1109+ p
1110+ }
1111+ }]'
1112+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1113+ # Check for a 64-bit object if we didn't find anything.
1114+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1115+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1116+ fi],[])
1117+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1118+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1119+ fi
1120+ ])
1121+ aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1122+fi
10501123 ])# _LT_SYS_MODULE_PATH_AIX
10511124
10521125
@@ -1053,173 +1126,101 @@
10531126 # _LT_SHELL_INIT(ARG)
10541127 # -------------------
10551128 m4_define([_LT_SHELL_INIT],
1056-[ifdef([AC_DIVERSION_NOTICE],
1057- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1058- [AC_DIVERT_PUSH(NOTICE)])
1059-$1
1060-AC_DIVERT_POP
1061-])# _LT_SHELL_INIT
1129+[m4_divert_text([M4SH-INIT], [$1
1130+])])# _LT_SHELL_INIT
10621131
10631132
1133+
10641134 # _LT_PROG_ECHO_BACKSLASH
10651135 # -----------------------
1066-# Add some code to the start of the generated configure script which
1067-# will find an echo command which doesn't interpret backslashes.
1136+# Find how we can fake an echo command that does not interpret backslash.
1137+# In particular, with Autoconf 2.60 or later we add some code to the start
1138+# of the generated configure script which will find a shell with a builtin
1139+# printf (which we can use as an echo command).
10681140 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1069-[_LT_SHELL_INIT([
1070-# Check that we are running under the correct shell.
1071-SHELL=${CONFIG_SHELL-/bin/sh}
1141+[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1142+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1143+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10721144
1073-case X$lt_ECHO in
1074-X*--fallback-echo)
1075- # Remove one level of quotation (which was required for Make).
1076- ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1077- ;;
1078-esac
1079-
1080-ECHO=${lt_ECHO-echo}
1081-if test "X[$]1" = X--no-reexec; then
1082- # Discard the --no-reexec flag, and continue.
1083- shift
1084-elif test "X[$]1" = X--fallback-echo; then
1085- # Avoid inline document here, it may be left over
1086- :
1087-elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1088- # Yippee, $ECHO works!
1089- :
1145+AC_MSG_CHECKING([how to print strings])
1146+# Test print first, because it will be a builtin if present.
1147+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1148+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1149+ ECHO='print -r --'
1150+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1151+ ECHO='printf %s\n'
10901152 else
1091- # Restart under the correct shell.
1092- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1153+ # Use this function as a fallback that always works.
1154+ func_fallback_echo ()
1155+ {
1156+ eval 'cat <<_LTECHO_EOF
1157+$[]1
1158+_LTECHO_EOF'
1159+ }
1160+ ECHO='func_fallback_echo'
10931161 fi
10941162
1095-if test "X[$]1" = X--fallback-echo; then
1096- # used as fallback echo
1097- shift
1098- cat <<_LT_EOF
1099-[$]*
1100-_LT_EOF
1101- exit 0
1102-fi
1163+# func_echo_all arg...
1164+# Invoke $ECHO with all args, space-separated.
1165+func_echo_all ()
1166+{
1167+ $ECHO "$*"
1168+}
11031169
1104-# The HP-UX ksh and POSIX shell print the target directory to stdout
1105-# if CDPATH is set.
1106-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1170+case "$ECHO" in
1171+ printf*) AC_MSG_RESULT([printf]) ;;
1172+ print*) AC_MSG_RESULT([print -r]) ;;
1173+ *) AC_MSG_RESULT([cat]) ;;
1174+esac
11071175
1108-if test -z "$lt_ECHO"; then
1109- if test "X${echo_test_string+set}" != Xset; then
1110- # find a string as large as possible, as long as the shell can cope with it
1111- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1112- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1113- if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1114- { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1115- then
1116- break
1117- fi
1118- done
1119- fi
1176+m4_ifdef([_AS_DETECT_SUGGESTED],
1177+[_AS_DETECT_SUGGESTED([
1178+ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1179+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1180+ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1181+ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1182+ PATH=/empty FPATH=/empty; export PATH FPATH
1183+ test "X`printf %s $ECHO`" = "X$ECHO" \
1184+ || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
11201185
1121- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1122- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1123- test "X$echo_testing_string" = "X$echo_test_string"; then
1124- :
1125- else
1126- # The Solaris, AIX, and Digital Unix default echo programs unquote
1127- # backslashes. This makes it impossible to quote backslashes using
1128- # echo "$something" | sed 's/\\/\\\\/g'
1129- #
1130- # So, first we look for a working echo in the user's PATH.
1186+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1187+_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1188+])# _LT_PROG_ECHO_BACKSLASH
11311189
1132- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1133- for dir in $PATH /usr/ucb; do
1134- IFS="$lt_save_ifs"
1135- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1136- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1137- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1138- test "X$echo_testing_string" = "X$echo_test_string"; then
1139- ECHO="$dir/echo"
1140- break
1141- fi
1142- done
1143- IFS="$lt_save_ifs"
11441190
1145- if test "X$ECHO" = Xecho; then
1146- # We didn't find a better echo, so look for alternatives.
1147- if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1148- echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1149- test "X$echo_testing_string" = "X$echo_test_string"; then
1150- # This shell has a builtin print -r that does the trick.
1151- ECHO='print -r'
1152- elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1153- test "X$CONFIG_SHELL" != X/bin/ksh; then
1154- # If we have ksh, try running configure again with it.
1155- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1156- export ORIGINAL_CONFIG_SHELL
1157- CONFIG_SHELL=/bin/ksh
1158- export CONFIG_SHELL
1159- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1160- else
1161- # Try using printf.
1162- ECHO='printf %s\n'
1163- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1164- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1165- test "X$echo_testing_string" = "X$echo_test_string"; then
1166- # Cool, printf works
1167- :
1168- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1169- test "X$echo_testing_string" = 'X\t' &&
1170- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1171- test "X$echo_testing_string" = "X$echo_test_string"; then
1172- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1173- export CONFIG_SHELL
1174- SHELL="$CONFIG_SHELL"
1175- export SHELL
1176- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1177- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1178- test "X$echo_testing_string" = 'X\t' &&
1179- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1180- test "X$echo_testing_string" = "X$echo_test_string"; then
1181- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1182- else
1183- # maybe with a smaller string...
1184- prev=:
1191+# _LT_WITH_SYSROOT
1192+# ----------------
1193+AC_DEFUN([_LT_WITH_SYSROOT],
1194+[AC_MSG_CHECKING([for sysroot])
1195+AC_ARG_WITH([sysroot],
1196+[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1197+ (or the compiler's sysroot if not specified).],
1198+[], [with_sysroot=no])
11851199
1186- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1187- if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1188- then
1189- break
1190- fi
1191- prev="$cmd"
1192- done
1200+dnl lt_sysroot will always be passed unquoted. We quote it here
1201+dnl in case the user passed a directory name.
1202+lt_sysroot=
1203+case ${with_sysroot} in #(
1204+ yes)
1205+ if test "$GCC" = yes; then
1206+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1207+ fi
1208+ ;; #(
1209+ /*)
1210+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1211+ ;; #(
1212+ no|'')
1213+ ;; #(
1214+ *)
1215+ AC_MSG_RESULT([${with_sysroot}])
1216+ AC_MSG_ERROR([The sysroot must be an absolute path.])
1217+ ;;
1218+esac
11931219
1194- if test "$prev" != 'sed 50q "[$]0"'; then
1195- echo_test_string=`eval $prev`
1196- export echo_test_string
1197- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1198- else
1199- # Oops. We lost completely, so just stick with echo.
1200- ECHO=echo
1201- fi
1202- fi
1203- fi
1204- fi
1205- fi
1206-fi
1220+ AC_MSG_RESULT([${lt_sysroot:-no}])
1221+_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1222+[dependent libraries, and in which our libraries should be installed.])])
12071223
1208-# Copy echo and quote the copy suitably for passing to libtool from
1209-# the Makefile, instead of quoting the original, which is used later.
1210-lt_ECHO=$ECHO
1211-if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1212- lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1213-fi
1214-
1215-AC_SUBST(lt_ECHO)
1216-])
1217-_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1218-_LT_DECL([], [ECHO], [1],
1219- [An echo program that does not interpret backslashes])
1220-])# _LT_PROG_ECHO_BACKSLASH
1221-
1222-
12231224 # _LT_ENABLE_LOCK
12241225 # ---------------
12251226 m4_defun([_LT_ENABLE_LOCK],
@@ -1248,7 +1249,7 @@
12481249 ;;
12491250 *-*-irix6*)
12501251 # Find out which ABI we are using.
1251- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1252+ echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12521253 if AC_TRY_EVAL(ac_compile); then
12531254 if test "$lt_cv_prog_gnu_ld" = yes; then
12541255 case `/usr/bin/file conftest.$ac_objext` in
@@ -1366,14 +1367,47 @@
13661367 ])# _LT_ENABLE_LOCK
13671368
13681369
1370+# _LT_PROG_AR
1371+# -----------
1372+m4_defun([_LT_PROG_AR],
1373+[AC_CHECK_TOOLS(AR, [ar], false)
1374+: ${AR=ar}
1375+: ${AR_FLAGS=cru}
1376+_LT_DECL([], [AR], [1], [The archiver])
1377+_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1378+
1379+AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1380+ [lt_cv_ar_at_file=no
1381+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1382+ [echo conftest.$ac_objext > conftest.lst
1383+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1384+ AC_TRY_EVAL([lt_ar_try])
1385+ if test "$ac_status" -eq 0; then
1386+ # Ensure the archiver fails upon bogus file names.
1387+ rm -f conftest.$ac_objext libconftest.a
1388+ AC_TRY_EVAL([lt_ar_try])
1389+ if test "$ac_status" -ne 0; then
1390+ lt_cv_ar_at_file=@
1391+ fi
1392+ fi
1393+ rm -f conftest.* libconftest.a
1394+ ])
1395+ ])
1396+
1397+if test "x$lt_cv_ar_at_file" = xno; then
1398+ archiver_list_spec=
1399+else
1400+ archiver_list_spec=$lt_cv_ar_at_file
1401+fi
1402+_LT_DECL([], [archiver_list_spec], [1],
1403+ [How to feed a file listing to the archiver])
1404+])# _LT_PROG_AR
1405+
1406+
13691407 # _LT_CMD_OLD_ARCHIVE
13701408 # -------------------
13711409 m4_defun([_LT_CMD_OLD_ARCHIVE],
1372-[AC_CHECK_TOOL(AR, ar, false)
1373-test -z "$AR" && AR=ar
1374-test -z "$AR_FLAGS" && AR_FLAGS=cru
1375-_LT_DECL([], [AR], [1], [The archiver])
1376-_LT_DECL([], [AR_FLAGS], [1])
1410+[_LT_PROG_AR
13771411
13781412 AC_CHECK_TOOL(STRIP, strip, :)
13791413 test -z "$STRIP" && STRIP=:
@@ -1400,10 +1434,19 @@
14001434 esac
14011435 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14021436 fi
1437+
1438+case $host_os in
1439+ darwin*)
1440+ lock_old_archive_extraction=yes ;;
1441+ *)
1442+ lock_old_archive_extraction=no ;;
1443+esac
14031444 _LT_DECL([], [old_postinstall_cmds], [2])
14041445 _LT_DECL([], [old_postuninstall_cmds], [2])
14051446 _LT_TAGDECL([], [old_archive_cmds], [2],
14061447 [Commands used to build an old-style archive])
1448+_LT_DECL([], [lock_old_archive_extraction], [0],
1449+ [Whether to use a lock for old archive extraction])
14071450 ])# _LT_CMD_OLD_ARCHIVE
14081451
14091452
@@ -1428,15 +1471,15 @@
14281471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14291472 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14301473 -e 's:$: $lt_compiler_flag:'`
1431- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1474+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14321475 (eval "$lt_compile" 2>conftest.err)
14331476 ac_status=$?
14341477 cat conftest.err >&AS_MESSAGE_LOG_FD
1435- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1478+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14361479 if (exit $ac_status) && test -s "$ac_outfile"; then
14371480 # The compiler can only warn and ignore the option if not recognized
14381481 # So say no if there are warnings other than the usual output.
1439- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1482+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14401483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14411484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14421485 $2=yes
@@ -1476,7 +1519,7 @@
14761519 if test -s conftest.err; then
14771520 # Append any errors to the config.log.
14781521 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1479- $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1522+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14801523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14811524 if diff conftest.exp conftest.er2 >/dev/null; then
14821525 $2=yes
@@ -1539,6 +1582,11 @@
15391582 lt_cv_sys_max_cmd_len=8192;
15401583 ;;
15411584
1585+ mint*)
1586+ # On MiNT this can take a long time and run out of memory.
1587+ lt_cv_sys_max_cmd_len=8192;
1588+ ;;
1589+
15421590 amigaos*)
15431591 # On AmigaOS with pdksh, this test takes hours, literally.
15441592 # So we just punt and use a minimum line length of 8192.
@@ -1603,8 +1651,8 @@
16031651 # If test is not a shell built-in, we'll probably end up computing a
16041652 # maximum length that is only half of the actual maximum length, but
16051653 # we can't tell.
1606- while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1607- = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1654+ while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1655+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16081656 test $i != 17 # 1/2 MB should be enough
16091657 do
16101658 i=`expr $i + 1`
@@ -1655,7 +1703,7 @@
16551703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16561704 lt_status=$lt_dlunknown
16571705 cat > conftest.$ac_ext <<_LT_EOF
1658-[#line __oline__ "configure"
1706+[#line $LINENO "configure"
16591707 #include "confdefs.h"
16601708
16611709 #if HAVE_DLFCN_H
@@ -1696,7 +1744,13 @@
16961744 # endif
16971745 #endif
16981746
1699-void fnord() { int i=42;}
1747+/* When -fvisbility=hidden is used, assume the code has been annotated
1748+ correspondingly for the symbols needed. */
1749+#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1750+int fnord () __attribute__((visibility("default")));
1751+#endif
1752+
1753+int fnord () { return 42; }
17001754 int main ()
17011755 {
17021756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
@@ -1705,7 +1759,11 @@
17051759 if (self)
17061760 {
17071761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1708- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1762+ else
1763+ {
1764+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1765+ else puts (dlerror ());
1766+ }
17091767 /* dlclose (self); */
17101768 }
17111769 else
@@ -1881,16 +1939,16 @@
18811939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18821940 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
18831941 -e 's:$: $lt_compiler_flag:'`
1884- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1942+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
18851943 (eval "$lt_compile" 2>out/conftest.err)
18861944 ac_status=$?
18871945 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1888- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1946+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
18891947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18901948 then
18911949 # The compiler can only warn and ignore the option if not recognized
18921950 # So say no if there are warnings
1893- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1951+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18941952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18951953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18961954 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
@@ -2049,6 +2107,7 @@
20492107 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20502108 m4_require([_LT_DECL_OBJDUMP])dnl
20512109 m4_require([_LT_DECL_SED])dnl
2110+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
20522111 AC_MSG_CHECKING([dynamic linker characteristics])
20532112 m4_if([$1],
20542113 [], [
@@ -2057,16 +2116,23 @@
20572116 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20582117 *) lt_awk_arg="/^libraries:/" ;;
20592118 esac
2060- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2061- if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2119+ case $host_os in
2120+ mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2121+ *) lt_sed_strip_eq="s,=/,/,g" ;;
2122+ esac
2123+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2124+ case $lt_search_path_spec in
2125+ *\;*)
20622126 # if the path contains ";" then we assume it to be the separator
20632127 # otherwise default to the standard path separator (i.e. ":") - it is
20642128 # assumed that no part of a normal pathname contains ";" but that should
20652129 # okay in the real world where ";" in dirpaths is itself problematic.
2066- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2067- else
2068- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2069- fi
2130+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2131+ ;;
2132+ *)
2133+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2134+ ;;
2135+ esac
20702136 # Ok, now we have the path, separated by spaces, we can step through it
20712137 # and add multilib dir if necessary.
20722138 lt_tmp_lt_search_path_spec=
@@ -2079,7 +2145,7 @@
20792145 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20802146 fi
20812147 done
2082- lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2148+ lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20832149 BEGIN {RS=" "; FS="/|\n";} {
20842150 lt_foo="";
20852151 lt_count=0;
@@ -2099,7 +2165,13 @@
20992165 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
21002166 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
21012167 }'`
2102- sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2168+ # AWK program above erroneously prepends '/' to C:/dos/paths
2169+ # for these hosts.
2170+ case $host_os in
2171+ mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2172+ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2173+ esac
2174+ sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21032175 else
21042176 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21052177 fi])
@@ -2187,7 +2259,7 @@
21872259 m68k)
21882260 library_names_spec='$libname.ixlibrary $libname.a'
21892261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2190- 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'
2262+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
21912263 ;;
21922264 esac
21932265 ;;
@@ -2218,8 +2290,9 @@
22182290 need_version=no
22192291 need_lib_prefix=no
22202292
2221- case $GCC,$host_os in
2222- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2293+ case $GCC,$cc_basename in
2294+ yes,*)
2295+ # gcc
22232296 library_names_spec='$libname.dll.a'
22242297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22252298 postinstall_cmds='base_file=`basename \${file}`~
@@ -2240,23 +2313,12 @@
22402313 cygwin*)
22412314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22422315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2243- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2316+m4_if([$1], [],[
2317+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
22442318 ;;
22452319 mingw* | cegcc*)
22462320 # MinGW DLLs use traditional 'lib' prefix
22472321 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2248- sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2249- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2250- # It is most probably a Windows format PATH printed by
2251- # mingw gcc, but we are running on Cygwin. Gcc prints its search
2252- # path with ; separators, and with drive letters. We can handle the
2253- # drive letters (cygwin fileutils understands them), so leave them,
2254- # especially as we might pass files found there to a mingw objdump,
2255- # which wouldn't understand a cygwinified path. Ahh.
2256- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2257- else
2258- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2259- fi
22602322 ;;
22612323 pw32*)
22622324 # pw32 DLLs use 'pw' prefix rather than 'lib'
@@ -2263,13 +2325,71 @@
22632325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22642326 ;;
22652327 esac
2328+ dynamic_linker='Win32 ld.exe'
22662329 ;;
22672330
2331+ *,cl*)
2332+ # Native MSVC
2333+ libname_spec='$name'
2334+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2335+ library_names_spec='${libname}.dll.lib'
2336+
2337+ case $build_os in
2338+ mingw*)
2339+ sys_lib_search_path_spec=
2340+ lt_save_ifs=$IFS
2341+ IFS=';'
2342+ for lt_path in $LIB
2343+ do
2344+ IFS=$lt_save_ifs
2345+ # Let DOS variable expansion print the short 8.3 style file name.
2346+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2347+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2348+ done
2349+ IFS=$lt_save_ifs
2350+ # Convert to MSYS style.
2351+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2352+ ;;
2353+ cygwin*)
2354+ # Convert to unix form, then to dos form, then back to unix form
2355+ # but this time dos style (no spaces!) so that the unix form looks
2356+ # like /cygdrive/c/PROGRA~1:/cygdr...
2357+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2358+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2359+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2360+ ;;
2361+ *)
2362+ sys_lib_search_path_spec="$LIB"
2363+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2364+ # It is most probably a Windows format PATH.
2365+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2366+ else
2367+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2368+ fi
2369+ # FIXME: find the short name or the path components, as spaces are
2370+ # common. (e.g. "Program Files" -> "PROGRA~1")
2371+ ;;
2372+ esac
2373+
2374+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
2375+ postinstall_cmds='base_file=`basename \${file}`~
2376+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2377+ dldir=$destdir/`dirname \$dlpath`~
2378+ test -d \$dldir || mkdir -p \$dldir~
2379+ $install_prog $dir/$dlname \$dldir/$dlname'
2380+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2381+ dlpath=$dir/\$dldll~
2382+ $RM \$dlpath'
2383+ shlibpath_overrides_runpath=yes
2384+ dynamic_linker='Win32 link.exe'
2385+ ;;
2386+
22682387 *)
2388+ # Assume MSVC wrapper
22692389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2390+ dynamic_linker='Win32 ld.exe'
22702391 ;;
22712392 esac
2272- dynamic_linker='Win32 ld.exe'
22732393 # FIXME: first we should search . and the directory the executable is in
22742394 shlibpath_var=PATH
22752395 ;;
@@ -2356,6 +2476,19 @@
23562476 hardcode_into_libs=yes
23572477 ;;
23582478
2479+haiku*)
2480+ version_type=linux
2481+ need_lib_prefix=no
2482+ need_version=no
2483+ dynamic_linker="$host_os runtime_loader"
2484+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2485+ soname_spec='${libname}${release}${shared_ext}$major'
2486+ shlibpath_var=LIBRARY_PATH
2487+ shlibpath_overrides_runpath=yes
2488+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2489+ hardcode_into_libs=yes
2490+ ;;
2491+
23592492 hpux9* | hpux10* | hpux11*)
23602493 # Give a soname corresponding to the major version so that dld.sl refuses to
23612494 # link against other versions.
@@ -2398,8 +2531,10 @@
23982531 soname_spec='${libname}${release}${shared_ext}$major'
23992532 ;;
24002533 esac
2401- # HP-UX runs *really* slowly unless shared libraries are mode 555.
2534+ # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24022535 postinstall_cmds='chmod 555 $lib'
2536+ # or fails outright, so override atomically:
2537+ install_override_mode=555
24032538 ;;
24042539
24052540 interix[[3-9]]*)
@@ -2457,7 +2592,7 @@
24572592 ;;
24582593
24592594 # This must be Linux ELF.
2460-linux* | k*bsd*-gnu)
2595+linux* | k*bsd*-gnu | kopensolaris*-gnu)
24612596 version_type=linux
24622597 need_lib_prefix=no
24632598 need_version=no
@@ -2466,16 +2601,21 @@
24662601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24672602 shlibpath_var=LD_LIBRARY_PATH
24682603 shlibpath_overrides_runpath=no
2604+
24692605 # Some binutils ld are patched to set DT_RUNPATH
2470- save_LDFLAGS=$LDFLAGS
2471- save_libdir=$libdir
2472- eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2473- LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2474- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2475- [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2476- [shlibpath_overrides_runpath=yes])])
2477- LDFLAGS=$save_LDFLAGS
2478- libdir=$save_libdir
2606+ AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2607+ [lt_cv_shlibpath_overrides_runpath=no
2608+ save_LDFLAGS=$LDFLAGS
2609+ save_libdir=$libdir
2610+ eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2611+ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2612+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2613+ [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2614+ [lt_cv_shlibpath_overrides_runpath=yes])])
2615+ LDFLAGS=$save_LDFLAGS
2616+ libdir=$save_libdir
2617+ ])
2618+ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24792619
24802620 # This implies no fast_install, which is unacceptable.
24812621 # Some rework will be needed to allow for fast_install
@@ -2484,7 +2624,7 @@
24842624
24852625 # Append ld.so.conf contents to the search path
24862626 if test -f /etc/ld.so.conf; then
2487- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2627+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
24882628 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24892629 fi
24902630
@@ -2717,6 +2857,8 @@
27172857 The last name is the one that the linker finds with -lNAME]])
27182858 _LT_DECL([], [soname_spec], [1],
27192859 [[The coded name of the library, if different from the real name]])
2860+_LT_DECL([], [install_override_mode], [1],
2861+ [Permission mode override for installation of shared libraries])
27202862 _LT_DECL([], [postinstall_cmds], [2],
27212863 [Command to use after installation of a shared archive])
27222864 _LT_DECL([], [postuninstall_cmds], [2],
@@ -2829,6 +2971,7 @@
28292971 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
28302972 m4_require([_LT_DECL_SED])dnl
28312973 m4_require([_LT_DECL_EGREP])dnl
2974+m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
28322975
28332976 AC_ARG_WITH([gnu-ld],
28342977 [AS_HELP_STRING([--with-gnu-ld],
@@ -2950,6 +3093,11 @@
29503093 esac
29513094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
29523095 case $host_os in
3096+ cygwin* | mingw* | pw32* | cegcc*)
3097+ if test "$GCC" != yes; then
3098+ reload_cmds=false
3099+ fi
3100+ ;;
29533101 darwin*)
29543102 if test "$GCC" = yes; then
29553103 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
@@ -2958,8 +3106,8 @@
29583106 fi
29593107 ;;
29603108 esac
2961-_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2962-_LT_DECL([], [reload_cmds], [2])dnl
3109+_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3110+_LT_TAGDECL([], [reload_cmds], [2])dnl
29633111 ])# _LT_CMD_RELOAD
29643112
29653113
@@ -3011,16 +3159,18 @@
30113159 # Base MSYS/MinGW do not provide the 'file' command needed by
30123160 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30133161 # unless we find 'file', for example because we are cross-compiling.
3014- if ( file / ) >/dev/null 2>&1; then
3162+ # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3163+ if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30153164 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30163165 lt_cv_file_magic_cmd='func_win32_libid'
30173166 else
3018- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3167+ # Keep this pattern in sync with the one in func_win32_libid.
3168+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30193169 lt_cv_file_magic_cmd='$OBJDUMP -f'
30203170 fi
30213171 ;;
30223172
3023-cegcc)
3173+cegcc*)
30243174 # use the weaker test based on 'objdump'. See mingw*.
30253175 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30263176 lt_cv_file_magic_cmd='$OBJDUMP -f'
@@ -3050,6 +3200,10 @@
30503200 lt_cv_deplibs_check_method=pass_all
30513201 ;;
30523202
3203+haiku*)
3204+ lt_cv_deplibs_check_method=pass_all
3205+ ;;
3206+
30533207 hpux10.20* | hpux11*)
30543208 lt_cv_file_magic_cmd=/usr/bin/file
30553209 case $host_cpu in
@@ -3058,11 +3212,11 @@
30583212 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30593213 ;;
30603214 hppa*64*)
3061- [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]']
3215+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
30623216 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30633217 ;;
30643218 *)
3065- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3219+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
30663220 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30673221 ;;
30683222 esac
@@ -3084,7 +3238,7 @@
30843238 ;;
30853239
30863240 # This must be Linux ELF.
3087-linux* | k*bsd*-gnu)
3241+linux* | k*bsd*-gnu | kopensolaris*-gnu)
30883242 lt_cv_deplibs_check_method=pass_all
30893243 ;;
30903244
@@ -3162,6 +3316,21 @@
31623316 ;;
31633317 esac
31643318 ])
3319+
3320+file_magic_glob=
3321+want_nocaseglob=no
3322+if test "$build" = "$host"; then
3323+ case $host_os in
3324+ mingw* | pw32*)
3325+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3326+ want_nocaseglob=yes
3327+ else
3328+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3329+ fi
3330+ ;;
3331+ esac
3332+fi
3333+
31653334 file_magic_cmd=$lt_cv_file_magic_cmd
31663335 deplibs_check_method=$lt_cv_deplibs_check_method
31673336 test -z "$deplibs_check_method" && deplibs_check_method=unknown
@@ -3169,7 +3338,11 @@
31693338 _LT_DECL([], [deplibs_check_method], [1],
31703339 [Method to check whether dependent libraries are shared objects])
31713340 _LT_DECL([], [file_magic_cmd], [1],
3172- [Command to use when deplibs_check_method == "file_magic"])
3341+ [Command to use when deplibs_check_method = "file_magic"])
3342+_LT_DECL([], [file_magic_glob], [1],
3343+ [How to find potential files when deplibs_check_method = "file_magic"])
3344+_LT_DECL([], [want_nocaseglob], [1],
3345+ [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
31733346 ])# _LT_CHECK_MAGIC_METHOD
31743347
31753348
@@ -3226,7 +3399,19 @@
32263399 NM="$lt_cv_path_NM"
32273400 else
32283401 # Didn't find any BSD compatible name lister, look for dumpbin.
3229- AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3402+ if test -n "$DUMPBIN"; then :
3403+ # Let the user override the test.
3404+ else
3405+ AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3406+ case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3407+ *COFF*)
3408+ DUMPBIN="$DUMPBIN -symbols"
3409+ ;;
3410+ *)
3411+ DUMPBIN=:
3412+ ;;
3413+ esac
3414+ fi
32303415 AC_SUBST([DUMPBIN])
32313416 if test "$DUMPBIN" != ":"; then
32323417 NM="$DUMPBIN"
@@ -3239,13 +3424,13 @@
32393424 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
32403425 [lt_cv_nm_interface="BSD nm"
32413426 echo "int some_variable = 0;" > conftest.$ac_ext
3242- (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3427+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
32433428 (eval "$ac_compile" 2>conftest.err)
32443429 cat conftest.err >&AS_MESSAGE_LOG_FD
3245- (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3430+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
32463431 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32473432 cat conftest.err >&AS_MESSAGE_LOG_FD
3248- (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3433+ (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
32493434 cat conftest.out >&AS_MESSAGE_LOG_FD
32503435 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32513436 lt_cv_nm_interface="MS dumpbin"
@@ -3260,7 +3445,68 @@
32603445 dnl AC_DEFUN([AM_PROG_NM], [])
32613446 dnl AC_DEFUN([AC_PROG_NM], [])
32623447
3448+# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3449+# --------------------------------
3450+# how to determine the name of the shared library
3451+# associated with a specific link library.
3452+# -- PORTME fill in with the dynamic library characteristics
3453+m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3454+[m4_require([_LT_DECL_EGREP])
3455+m4_require([_LT_DECL_OBJDUMP])
3456+m4_require([_LT_DECL_DLLTOOL])
3457+AC_CACHE_CHECK([how to associate runtime and link libraries],
3458+lt_cv_sharedlib_from_linklib_cmd,
3459+[lt_cv_sharedlib_from_linklib_cmd='unknown'
32633460
3461+case $host_os in
3462+cygwin* | mingw* | pw32* | cegcc*)
3463+ # two different shell functions defined in ltmain.sh
3464+ # decide which to use based on capabilities of $DLLTOOL
3465+ case `$DLLTOOL --help 2>&1` in
3466+ *--identify-strict*)
3467+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3468+ ;;
3469+ *)
3470+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3471+ ;;
3472+ esac
3473+ ;;
3474+*)
3475+ # fallback: assume linklib IS sharedlib
3476+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3477+ ;;
3478+esac
3479+])
3480+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3481+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3482+
3483+_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3484+ [Command to associate shared and link libraries])
3485+])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3486+
3487+
3488+# _LT_PATH_MANIFEST_TOOL
3489+# ----------------------
3490+# locate the manifest tool
3491+m4_defun([_LT_PATH_MANIFEST_TOOL],
3492+[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3493+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3494+AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3495+ [lt_cv_path_mainfest_tool=no
3496+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3497+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3498+ cat conftest.err >&AS_MESSAGE_LOG_FD
3499+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3500+ lt_cv_path_mainfest_tool=yes
3501+ fi
3502+ rm -f conftest*])
3503+if test "x$lt_cv_path_mainfest_tool" != xyes; then
3504+ MANIFEST_TOOL=:
3505+fi
3506+_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3507+])# _LT_PATH_MANIFEST_TOOL
3508+
3509+
32643510 # LT_LIB_M
32653511 # --------
32663512 # check for math library
@@ -3268,7 +3514,7 @@
32683514 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
32693515 LIBM=
32703516 case $host in
3271-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3517+*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
32723518 # These system don't have libm, or don't need it
32733519 ;;
32743520 *-ncr-sysv4.3*)
@@ -3296,7 +3542,12 @@
32963542 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
32973543
32983544 if test "$GCC" = yes; then
3299- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3545+ case $cc_basename in
3546+ nvcc*)
3547+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3548+ *)
3549+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3550+ esac
33003551
33013552 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
33023553 lt_cv_prog_compiler_rtti_exceptions,
@@ -3313,6 +3564,7 @@
33133564 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
33143565 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
33153566 AC_REQUIRE([AC_PROG_CC])dnl
3567+AC_REQUIRE([AC_PROG_AWK])dnl
33163568 AC_REQUIRE([LT_PATH_NM])dnl
33173569 AC_REQUIRE([LT_PATH_LD])dnl
33183570 m4_require([_LT_DECL_SED])dnl
@@ -3380,8 +3632,8 @@
33803632 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
33813633
33823634 # Transform an extracted symbol line into symbol name and symbol address
3383-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3384-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3635+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3636+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
33853637
33863638 # Handle CRLF in mingw tool chain
33873639 opt_cr=
@@ -3417,6 +3669,7 @@
34173669 else
34183670 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34193671 fi
3672+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
34203673
34213674 # Check to see that the pipe works correctly.
34223675 pipe_works=no
@@ -3438,7 +3691,7 @@
34383691 if AC_TRY_EVAL(ac_compile); then
34393692 # Now try to grab the symbols.
34403693 nlist=conftest.nm
3441- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3694+ if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
34423695 # Try sorting and uniquifying the output.
34433696 if sort "$nlist" | uniq > "$nlist"T; then
34443697 mv -f "$nlist"T "$nlist"
@@ -3450,6 +3703,18 @@
34503703 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
34513704 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
34523705 cat <<_LT_EOF > conftest.$ac_ext
3706+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3707+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3708+/* DATA imports from DLLs on WIN32 con't be const, because runtime
3709+ relocations are performed -- see ld's documentation on pseudo-relocs. */
3710+# define LT@&t@_DLSYM_CONST
3711+#elif defined(__osf__)
3712+/* This system does not cope well with relocations in const data. */
3713+# define LT@&t@_DLSYM_CONST
3714+#else
3715+# define LT@&t@_DLSYM_CONST const
3716+#endif
3717+
34533718 #ifdef __cplusplus
34543719 extern "C" {
34553720 #endif
@@ -3461,7 +3726,7 @@
34613726 cat <<_LT_EOF >> conftest.$ac_ext
34623727
34633728 /* The mapping between symbol names and symbols. */
3464-const struct {
3729+LT@&t@_DLSYM_CONST struct {
34653730 const char *name;
34663731 void *address;
34673732 }
@@ -3487,15 +3752,15 @@
34873752 _LT_EOF
34883753 # Now try linking the two files.
34893754 mv conftest.$ac_objext conftstm.$ac_objext
3490- lt_save_LIBS="$LIBS"
3491- lt_save_CFLAGS="$CFLAGS"
3755+ lt_globsym_save_LIBS=$LIBS
3756+ lt_globsym_save_CFLAGS=$CFLAGS
34923757 LIBS="conftstm.$ac_objext"
34933758 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
34943759 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
34953760 pipe_works=yes
34963761 fi
3497- LIBS="$lt_save_LIBS"
3498- CFLAGS="$lt_save_CFLAGS"
3762+ LIBS=$lt_globsym_save_LIBS
3763+ CFLAGS=$lt_globsym_save_CFLAGS
34993764 else
35003765 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35013766 fi
@@ -3528,6 +3793,13 @@
35283793 AC_MSG_RESULT(ok)
35293794 fi
35303795
3796+# Response file support.
3797+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3798+ nm_file_list_spec='@'
3799+elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3800+ nm_file_list_spec='@'
3801+fi
3802+
35313803 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
35323804 [Take the output of nm and produce a listing of raw symbols and C names])
35333805 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
@@ -3538,6 +3810,8 @@
35383810 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
35393811 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
35403812 [Transform the output of nm in a C name address pair when lib prefix is needed])
3813+_LT_DECL([], [nm_file_list_spec], [1],
3814+ [Specify filename containing input files for $NM])
35413815 ]) # _LT_CMD_GLOBAL_SYMBOLS
35423816
35433817
@@ -3549,7 +3823,6 @@
35493823 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
35503824 _LT_TAGVAR(lt_prog_compiler_static, $1)=
35513825
3552-AC_MSG_CHECKING([for $compiler option to produce PIC])
35533826 m4_if([$1], [CXX], [
35543827 # C++ specific cases for pic, static, wl, etc.
35553828 if test "$GXX" = yes; then
@@ -3600,6 +3873,11 @@
36003873 # DJGPP does not support shared libraries at all
36013874 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
36023875 ;;
3876+ haiku*)
3877+ # PIC is the default for Haiku.
3878+ # The "-static" flag exists, but is broken.
3879+ _LT_TAGVAR(lt_prog_compiler_static, $1)=
3880+ ;;
36033881 interix[[3-9]]*)
36043882 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
36053883 # Instead, we relocate shared libraries at runtime.
@@ -3649,6 +3927,12 @@
36493927 ;;
36503928 esac
36513929 ;;
3930+ mingw* | cygwin* | os2* | pw32* | cegcc*)
3931+ # This hack is so that the source file can tell whether it is being
3932+ # built for inclusion in a dll (and should export symbols for example).
3933+ m4_if([$1], [GCJ], [],
3934+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3935+ ;;
36523936 dgux*)
36533937 case $cc_basename in
36543938 ec++*)
@@ -3705,7 +3989,7 @@
37053989 ;;
37063990 esac
37073991 ;;
3708- linux* | k*bsd*-gnu)
3992+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
37093993 case $cc_basename in
37103994 KCC*)
37113995 # KAI C++ Compiler
@@ -3738,8 +4022,8 @@
37384022 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
37394023 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37404024 ;;
3741- xlc* | xlC*)
3742- # IBM XL 8.0 on PPC
4025+ xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4026+ # IBM XL 8.0, 9.0 on PPC and BlueGene
37434027 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37444028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
37454029 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
@@ -3801,7 +4085,7 @@
38014085 ;;
38024086 solaris*)
38034087 case $cc_basename in
3804- CC*)
4088+ CC* | sunCC*)
38054089 # Sun C++ 4.2, 5.x and Centerline C++
38064090 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38074091 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -3905,6 +4189,12 @@
39054189 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
39064190 ;;
39074191
4192+ haiku*)
4193+ # PIC is the default for Haiku.
4194+ # The "-static" flag exists, but is broken.
4195+ _LT_TAGVAR(lt_prog_compiler_static, $1)=
4196+ ;;
4197+
39084198 hpux*)
39094199 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39104200 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
@@ -3947,6 +4237,13 @@
39474237 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39484238 ;;
39494239 esac
4240+
4241+ case $cc_basename in
4242+ nvcc*) # Cuda Compiler Driver 2.2
4243+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4244+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4245+ ;;
4246+ esac
39504247 else
39514248 # PORTME Check for flag to pass linker flags through the system compiler.
39524249 case $host_os in
@@ -3989,7 +4286,7 @@
39894286 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
39904287 ;;
39914288
3992- linux* | k*bsd*-gnu)
4289+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
39934290 case $cc_basename in
39944291 # old Intel for x86_64 which still supported -KPIC.
39954292 ecc*)
@@ -4010,7 +4307,13 @@
40104307 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
40114308 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
40124309 ;;
4013- pgcc* | pgf77* | pgf90* | pgf95*)
4310+ nagfor*)
4311+ # NAG Fortran compiler
4312+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4313+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4314+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4315+ ;;
4316+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
40144317 # Portland Group compilers (*not* the Pentium gcc compiler,
40154318 # which looks to be a dead project)
40164319 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
@@ -4022,8 +4325,8 @@
40224325 # All Alpha code is PIC.
40234326 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40244327 ;;
4025- xl*)
4026- # IBM XL C 8.0/Fortran 10.1 on PPC
4328+ xl* | bgxl* | bgf* | mpixl*)
4329+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
40274330 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40284331 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
40294332 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
@@ -4030,6 +4333,12 @@
40304333 ;;
40314334 *)
40324335 case `$CC -V 2>&1 | sed 5q` in
4336+ *Sun\ F* | *Sun*Fortran*)
4337+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
4338+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4339+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4340+ _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4341+ ;;
40334342 *Sun\ C*)
40344343 # Sun C 5.9
40354344 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
@@ -4036,12 +4345,6 @@
40364345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40374346 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40384347 ;;
4039- *Sun\ F*)
4040- # Sun Fortran 8.3 passes all unrecognized flags to the linker
4041- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043- _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4044- ;;
40454348 esac
40464349 ;;
40474350 esac
@@ -4072,7 +4375,7 @@
40724375 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40734376 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40744377 case $cc_basename in
4075- f77* | f90* | f95*)
4378+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
40764379 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
40774380 *)
40784381 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
@@ -4129,10 +4432,12 @@
41294432 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
41304433 ;;
41314434 esac
4132-AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4133-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4134- [How to pass a linker flag through the compiler])
41354435
4436+AC_CACHE_CHECK([for $compiler option to produce PIC],
4437+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4438+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4439+_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4440+
41364441 #
41374442 # Check to make sure the PIC flag actually works.
41384443 #
@@ -4150,6 +4455,8 @@
41504455 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
41514456 [Additional compiler flags for building library objects])
41524457
4458+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4459+ [How to pass a linker flag through the compiler])
41534460 #
41544461 # Check to make sure the static flag actually works.
41554462 #
@@ -4170,6 +4477,7 @@
41704477 m4_defun([_LT_LINKER_SHLIBS],
41714478 [AC_REQUIRE([LT_PATH_LD])dnl
41724479 AC_REQUIRE([LT_PATH_NM])dnl
4480+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
41734481 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
41744482 m4_require([_LT_DECL_EGREP])dnl
41754483 m4_require([_LT_DECL_SED])dnl
@@ -4178,12 +4486,15 @@
41784486 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
41794487 m4_if([$1], [CXX], [
41804488 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4489+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
41814490 case $host_os in
41824491 aix[[4-9]]*)
41834492 # If we're using GNU nm, then we don't want the "-C" option.
41844493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4494+ # Also, AIX nm treats weak defined symbols like other global defined
4495+ # symbols, whereas GNU nm marks them as "W".
41854496 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4186- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4497+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
41874498 else
41884499 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
41894500 fi
@@ -4190,15 +4501,20 @@
41904501 ;;
41914502 pw32*)
41924503 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4193- ;;
4504+ ;;
41944505 cygwin* | mingw* | cegcc*)
4195- _LT_TAGVAR(export_symbols_cmds, $1)='$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'
4196- ;;
4506+ case $cc_basename in
4507+ cl*) ;;
4508+ *)
4509+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4510+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4511+ ;;
4512+ esac
4513+ ;;
41974514 *)
41984515 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4199- ;;
4516+ ;;
42004517 esac
4201- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42024518 ], [
42034519 runpath_var=
42044520 _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -4261,7 +4577,33 @@
42614577 esac
42624578
42634579 _LT_TAGVAR(ld_shlibs, $1)=yes
4580+
4581+ # On some targets, GNU ld is compatible enough with the native linker
4582+ # that we're better off using the native interface for both.
4583+ lt_use_gnu_ld_interface=no
42644584 if test "$with_gnu_ld" = yes; then
4585+ case $host_os in
4586+ aix*)
4587+ # The AIX port of GNU ld has always aspired to compatibility
4588+ # with the native linker. However, as the warning in the GNU ld
4589+ # block says, versions before 2.19.5* couldn't really create working
4590+ # shared libraries, regardless of the interface used.
4591+ case `$LD -v 2>&1` in
4592+ *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4593+ *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4594+ *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4595+ *)
4596+ lt_use_gnu_ld_interface=yes
4597+ ;;
4598+ esac
4599+ ;;
4600+ *)
4601+ lt_use_gnu_ld_interface=yes
4602+ ;;
4603+ esac
4604+ fi
4605+
4606+ if test "$lt_use_gnu_ld_interface" = yes; then
42654607 # If archive_cmds runs LD, not CC, wlarc should be empty
42664608 wlarc='${wl}'
42674609
@@ -4279,6 +4621,7 @@
42794621 fi
42804622 supports_anon_versioning=no
42814623 case `$LD -v 2>&1` in
4624+ *GNU\ gold*) supports_anon_versioning=yes ;;
42824625 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
42834626 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
42844627 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
@@ -4294,11 +4637,12 @@
42944637 _LT_TAGVAR(ld_shlibs, $1)=no
42954638 cat <<_LT_EOF 1>&2
42964639
4297-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4640+*** Warning: the GNU linker, at least up to release 2.19, is reported
42984641 *** to be unable to reliably create shared libraries on AIX.
42994642 *** Therefore, libtool is disabling shared libraries support. If you
4300-*** really care for shared libraries, you may want to modify your PATH
4301-*** so that a non-GNU linker is found, and then restart.
4643+*** really care for shared libraries, you may want to install binutils
4644+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4645+*** You will then need to restart the configuration process.
43024646
43034647 _LT_EOF
43044648 fi
@@ -4334,10 +4678,12 @@
43344678 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
43354679 # as there is no search path for DLLs.
43364680 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4681+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
43374682 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43384683 _LT_TAGVAR(always_export_symbols, $1)=no
43394684 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4340- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4685+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4686+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
43414687
43424688 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43434689 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
@@ -4355,6 +4701,11 @@
43554701 fi
43564702 ;;
43574703
4704+ haiku*)
4705+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4706+ _LT_TAGVAR(link_all_deplibs, $1)=yes
4707+ ;;
4708+
43584709 interix[[3-9]]*)
43594710 _LT_TAGVAR(hardcode_direct, $1)=no
43604711 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -4370,7 +4721,7 @@
43704721 _LT_TAGVAR(archive_expsym_cmds, $1)='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'
43714722 ;;
43724723
4373- gnu* | linux* | tpf* | k*bsd*-gnu)
4724+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
43744725 tmp_diet=no
43754726 if test "$host_os" = linux-dietlibc; then
43764727 case $cc_basename in
@@ -4380,15 +4731,16 @@
43804731 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
43814732 && test "$tmp_diet" = no
43824733 then
4383- tmp_addflag=
4734+ tmp_addflag=' $pic_flag'
43844735 tmp_sharedflag='-shared'
43854736 case $cc_basename,$host_cpu in
43864737 pgcc*) # Portland Group C compiler
4387- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4738+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
43884739 tmp_addflag=' $pic_flag'
43894740 ;;
4390- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4391- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4741+ pgf77* | pgf90* | pgf95* | pgfortran*)
4742+ # Portland Group f77 and f90 compilers
4743+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
43924744 tmp_addflag=' $pic_flag -Mnomain' ;;
43934745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
43944746 tmp_addflag=' -i_dynamic' ;;
@@ -4399,13 +4751,17 @@
43994751 lf95*) # Lahey Fortran 8.1
44004752 _LT_TAGVAR(whole_archive_flag_spec, $1)=
44014753 tmp_sharedflag='--shared' ;;
4402- xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4754+ xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
44034755 tmp_sharedflag='-qmkshrobj'
44044756 tmp_addflag= ;;
4757+ nvcc*) # Cuda Compiler Driver 2.2
4758+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4759+ _LT_TAGVAR(compiler_needs_object, $1)=yes
4760+ ;;
44054761 esac
44064762 case `$CC -V 2>&1 | sed 5q` in
44074763 *Sun\ C*) # Sun C 5.9
4408- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4764+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
44094765 _LT_TAGVAR(compiler_needs_object, $1)=yes
44104766 tmp_sharedflag='-G' ;;
44114767 *Sun\ F*) # Sun Fortran 8.3
@@ -4421,17 +4777,17 @@
44214777 fi
44224778
44234779 case $cc_basename in
4424- xlf*)
4780+ xlf* | bgf* | bgxlf* | mpixlf*)
44254781 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
44264782 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
44274783 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
44284784 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4429- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4785+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
44304786 if test "x$supports_anon_versioning" = xyes; then
44314787 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
44324788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44334789 echo "local: *; };" >> $output_objdir/$libname.ver~
4434- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4790+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
44354791 fi
44364792 ;;
44374793 esac
@@ -4445,8 +4801,8 @@
44454801 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
44464802 wlarc=
44474803 else
4448- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4449- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4804+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4805+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44504806 fi
44514807 ;;
44524808
@@ -4464,8 +4820,8 @@
44644820
44654821 _LT_EOF
44664822 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4467- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4468- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4823+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4824+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44694825 else
44704826 _LT_TAGVAR(ld_shlibs, $1)=no
44714827 fi
@@ -4511,8 +4867,8 @@
45114867
45124868 *)
45134869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4514- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4515- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4870+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4871+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45164872 else
45174873 _LT_TAGVAR(ld_shlibs, $1)=no
45184874 fi
@@ -4552,8 +4908,10 @@
45524908 else
45534909 # If we're using GNU nm, then we don't want the "-C" option.
45544910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4911+ # Also, AIX nm treats weak defined symbols like other global
4912+ # defined symbols, whereas GNU nm marks them as "W".
45554913 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4556- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4914+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45574915 else
45584916 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45594917 fi
@@ -4640,9 +4998,9 @@
46404998 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
46414999 # Determine the default libpath from the value encoded in an
46425000 # empty executable.
4643- _LT_SYS_MODULE_PATH_AIX
5001+ _LT_SYS_MODULE_PATH_AIX([$1])
46445002 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4645- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5003+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
46465004 else
46475005 if test "$host_cpu" = ia64; then
46485006 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -4651,14 +5009,19 @@
46515009 else
46525010 # Determine the default libpath from the value encoded in an
46535011 # empty executable.
4654- _LT_SYS_MODULE_PATH_AIX
5012+ _LT_SYS_MODULE_PATH_AIX([$1])
46555013 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
46565014 # Warning - without using the other run time loading flags,
46575015 # -berok will link without error, but may produce a broken library.
46585016 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
46595017 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4660- # Exported symbols can be pulled into shared objects from archives
4661- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5018+ if test "$with_gnu_ld" = yes; then
5019+ # We only use this code for GNU lds that support --whole-archive.
5020+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5021+ else
5022+ # Exported symbols can be pulled into shared objects from archives
5023+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5024+ fi
46625025 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
46635026 # This is similar to how AIX traditionally builds its shared libraries.
46645027 _LT_TAGVAR(archive_expsym_cmds, $1)="\$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'
@@ -4690,20 +5053,63 @@
46905053 # Microsoft Visual C++.
46915054 # hardcode_libdir_flag_spec is actually meaningless, as there is
46925055 # no search path for DLLs.
4693- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4694- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4695- # Tell ltmain to make .lib files, not .a files.
4696- libext=lib
4697- # Tell ltmain to make .dll files, not .so files.
4698- shrext_cmds=".dll"
4699- # FIXME: Setting linknames here is a bad hack.
4700- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4701- # The linker will automatically build a .lib file if we build a DLL.
4702- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4703- # FIXME: Should let the user specify the lib program.
4704- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4705- _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4706- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5056+ case $cc_basename in
5057+ cl*)
5058+ # Native MSVC
5059+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5060+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5061+ _LT_TAGVAR(always_export_symbols, $1)=yes
5062+ _LT_TAGVAR(file_list_spec, $1)='@'
5063+ # Tell ltmain to make .lib files, not .a files.
5064+ libext=lib
5065+ # Tell ltmain to make .dll files, not .so files.
5066+ shrext_cmds=".dll"
5067+ # FIXME: Setting linknames here is a bad hack.
5068+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5069+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5070+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5071+ else
5072+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5073+ fi~
5074+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5075+ linknames='
5076+ # The linker will not automatically build a static lib if we build a DLL.
5077+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5078+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5079+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5080+ # Don't use ranlib
5081+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5082+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5083+ lt_tool_outputfile="@TOOL_OUTPUT@"~
5084+ case $lt_outputfile in
5085+ *.exe|*.EXE) ;;
5086+ *)
5087+ lt_outputfile="$lt_outputfile.exe"
5088+ lt_tool_outputfile="$lt_tool_outputfile.exe"
5089+ ;;
5090+ esac~
5091+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5092+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5093+ $RM "$lt_outputfile.manifest";
5094+ fi'
5095+ ;;
5096+ *)
5097+ # Assume MSVC wrapper
5098+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5099+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5100+ # Tell ltmain to make .lib files, not .a files.
5101+ libext=lib
5102+ # Tell ltmain to make .dll files, not .so files.
5103+ shrext_cmds=".dll"
5104+ # FIXME: Setting linknames here is a bad hack.
5105+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5106+ # The linker will automatically build a .lib file if we build a DLL.
5107+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5108+ # FIXME: Should let the user specify the lib program.
5109+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5110+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5111+ ;;
5112+ esac
47075113 ;;
47085114
47095115 darwin* | rhapsody*)
@@ -4741,7 +5147,7 @@
47415147
47425148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
47435149 freebsd* | dragonfly*)
4744- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5150+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
47455151 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
47465152 _LT_TAGVAR(hardcode_direct, $1)=yes
47475153 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -4749,7 +5155,7 @@
47495155
47505156 hpux9*)
47515157 if test "$GCC" = yes; then
4752- _LT_TAGVAR(archive_cmds, $1)='$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'
5158+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47535159 else
47545160 _LT_TAGVAR(archive_cmds, $1)='$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'
47555161 fi
@@ -4764,8 +5170,8 @@
47645170 ;;
47655171
47665172 hpux10*)
4767- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4768- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5173+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5174+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47695175 else
47705176 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
47715177 fi
@@ -4783,16 +5189,16 @@
47835189 ;;
47845190
47855191 hpux11*)
4786- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5192+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
47875193 case $host_cpu in
47885194 hppa*64*)
47895195 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
47905196 ;;
47915197 ia64*)
4792- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5198+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
47935199 ;;
47945200 *)
4795- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5201+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47965202 ;;
47975203 esac
47985204 else
@@ -4804,7 +5210,14 @@
48045210 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48055211 ;;
48065212 *)
4807- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5213+ m4_if($1, [], [
5214+ # Older versions of the 11.00 compiler do not understand -b yet
5215+ # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5216+ _LT_LINKER_OPTION([if $CC understands -b],
5217+ _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5218+ [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5219+ [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5220+ [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
48085221 ;;
48095222 esac
48105223 fi
@@ -4832,19 +5245,34 @@
48325245
48335246 irix5* | irix6* | nonstopux*)
48345247 if test "$GCC" = yes; then
4835- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5248+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
48365249 # Try to use the -exported_symbol ld option, if it does not
48375250 # work, assume that -exports_file does not work either and
48385251 # implicitly export all symbols.
4839- save_LDFLAGS="$LDFLAGS"
4840- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4841- AC_LINK_IFELSE(int foo(void) {},
4842- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4843- )
4844- LDFLAGS="$save_LDFLAGS"
5252+ # This should be the same for all languages, so no per-tag cache variable.
5253+ AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5254+ [lt_cv_irix_exported_symbol],
5255+ [save_LDFLAGS="$LDFLAGS"
5256+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5257+ AC_LINK_IFELSE(
5258+ [AC_LANG_SOURCE(
5259+ [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5260+ [C++], [[int foo (void) { return 0; }]],
5261+ [Fortran 77], [[
5262+ subroutine foo
5263+ end]],
5264+ [Fortran], [[
5265+ subroutine foo
5266+ end]])])],
5267+ [lt_cv_irix_exported_symbol=yes],
5268+ [lt_cv_irix_exported_symbol=no])
5269+ LDFLAGS="$save_LDFLAGS"])
5270+ if test "$lt_cv_irix_exported_symbol" = yes; then
5271+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5272+ fi
48455273 else
4846- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4847- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5274+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5275+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
48485276 fi
48495277 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
48505278 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -4906,7 +5334,7 @@
49065334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
49075335 _LT_TAGVAR(hardcode_minus_L, $1)=yes
49085336 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4909- _LT_TAGVAR(archive_cmds, $1)='$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'
5337+ _LT_TAGVAR(archive_cmds, $1)='$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'
49105338 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
49115339 ;;
49125340
@@ -4913,10 +5341,10 @@
49135341 osf3*)
49145342 if test "$GCC" = yes; then
49155343 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4916- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5344+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49175345 else
49185346 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4919- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5347+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49205348 fi
49215349 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
49225350 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -4926,13 +5354,13 @@
49265354 osf4* | osf5*) # as osf3* with the addition of -msym flag
49275355 if test "$GCC" = yes; then
49285356 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4929- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5357+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49305358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49315359 else
49325360 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4933- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5361+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
49345362 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4935- $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5363+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
49365364
49375365 # Both c and cxx compiler support -rpath directly
49385366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -4945,9 +5373,9 @@
49455373 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
49465374 if test "$GCC" = yes; then
49475375 wlarc='${wl}'
4948- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5376+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
49495377 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4950- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5378+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
49515379 else
49525380 case `$CC -V 2>&1` in
49535381 *"Compilers 5.0"*)
@@ -5123,36 +5551,38 @@
51235551 # Test whether the compiler implicitly links with -lc since on some
51245552 # systems, -lgcc has to come before -lc. If gcc already passes -lc
51255553 # to ld, don't add -lc before -lgcc.
5126- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5127- $RM conftest*
5128- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5554+ AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5555+ [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5556+ [$RM conftest*
5557+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
51295558
5130- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5131- soname=conftest
5132- lib=conftest
5133- libobjs=conftest.$ac_objext
5134- deplibs=
5135- wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5136- pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5137- compiler_flags=-v
5138- linker_flags=-v
5139- verstring=
5140- output_objdir=.
5141- libname=conftest
5142- lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5143- _LT_TAGVAR(allow_undefined_flag, $1)=
5144- if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5145- then
5146- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5147- else
5148- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5149- fi
5150- _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5151- else
5152- cat conftest.err 1>&5
5153- fi
5154- $RM conftest*
5155- AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5559+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5560+ soname=conftest
5561+ lib=conftest
5562+ libobjs=conftest.$ac_objext
5563+ deplibs=
5564+ wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5565+ pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5566+ compiler_flags=-v
5567+ linker_flags=-v
5568+ verstring=
5569+ output_objdir=.
5570+ libname=conftest
5571+ lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5572+ _LT_TAGVAR(allow_undefined_flag, $1)=
5573+ if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5574+ then
5575+ lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5576+ else
5577+ lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5578+ fi
5579+ _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5580+ else
5581+ cat conftest.err 1>&5
5582+ fi
5583+ $RM conftest*
5584+ ])
5585+ _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
51565586 ;;
51575587 esac
51585588 fi
@@ -5217,8 +5647,6 @@
52175647 to runtime path list])
52185648 _LT_TAGDECL([], [link_all_deplibs], [0],
52195649 [Whether libtool must link a program against all its dependency libraries])
5220-_LT_TAGDECL([], [fix_srcfile_path], [1],
5221- [Fix the shell variable $srcfile for the compiler])
52225650 _LT_TAGDECL([], [always_export_symbols], [0],
52235651 [Set to "yes" if exported symbols are required])
52245652 _LT_TAGDECL([], [export_symbols_cmds], [2],
@@ -5229,6 +5657,8 @@
52295657 [Symbols that must always be exported])
52305658 _LT_TAGDECL([], [prelink_cmds], [2],
52315659 [Commands necessary for linking programs (against libraries) with templates])
5660+_LT_TAGDECL([], [postlink_cmds], [2],
5661+ [Commands necessary for finishing linking programs])
52325662 _LT_TAGDECL([], [file_list_spec], [1],
52335663 [Specify filename containing input files])
52345664 dnl FIXME: Not yet implemented
@@ -5318,14 +5748,15 @@
53185748 ])# _LT_LANG_C_CONFIG
53195749
53205750
5321-# _LT_PROG_CXX
5322-# ------------
5323-# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5324-# compiler, we have our own version here.
5325-m4_defun([_LT_PROG_CXX],
5326-[
5327-pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5328-AC_PROG_CXX
5751+# _LT_LANG_CXX_CONFIG([TAG])
5752+# --------------------------
5753+# Ensure that the configuration variables for a C++ compiler are suitably
5754+# defined. These variables are subsequently used by _LT_CONFIG to write
5755+# the compiler configuration to `libtool'.
5756+m4_defun([_LT_LANG_CXX_CONFIG],
5757+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5758+m4_require([_LT_DECL_EGREP])dnl
5759+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
53295760 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
53305761 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
53315762 (test "X$CXX" != "Xg++"))) ; then
@@ -5333,23 +5764,7 @@
53335764 else
53345765 _lt_caught_CXX_error=yes
53355766 fi
5336-popdef([AC_MSG_ERROR])
5337-])# _LT_PROG_CXX
53385767
5339-dnl aclocal-1.4 backwards compatibility:
5340-dnl AC_DEFUN([_LT_PROG_CXX], [])
5341-
5342-
5343-# _LT_LANG_CXX_CONFIG([TAG])
5344-# --------------------------
5345-# Ensure that the configuration variables for a C++ compiler are suitably
5346-# defined. These variables are subsequently used by _LT_CONFIG to write
5347-# the compiler configuration to `libtool'.
5348-m4_defun([_LT_LANG_CXX_CONFIG],
5349-[AC_REQUIRE([_LT_PROG_CXX])dnl
5350-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5351-m4_require([_LT_DECL_EGREP])dnl
5352-
53535768 AC_LANG_PUSH(C++)
53545769 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
53555770 _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -5370,6 +5785,8 @@
53705785 _LT_TAGVAR(module_expsym_cmds, $1)=
53715786 _LT_TAGVAR(link_all_deplibs, $1)=unknown
53725787 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5788+_LT_TAGVAR(reload_flag, $1)=$reload_flag
5789+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
53735790 _LT_TAGVAR(no_undefined_flag, $1)=
53745791 _LT_TAGVAR(whole_archive_flag_spec, $1)=
53755792 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -5401,6 +5818,7 @@
54015818
54025819 # Allow CC to be a program name with arguments.
54035820 lt_save_CC=$CC
5821+ lt_save_CFLAGS=$CFLAGS
54045822 lt_save_LD=$LD
54055823 lt_save_GCC=$GCC
54065824 GCC=$GXX
@@ -5418,6 +5836,7 @@
54185836 fi
54195837 test -z "${LDCXX+set}" || LD=$LDCXX
54205838 CC=${CXX-"c++"}
5839+ CFLAGS=$CXXFLAGS
54215840 compiler=$CC
54225841 _LT_TAGVAR(compiler, $1)=$CC
54235842 _LT_CC_BASENAME([$compiler])
@@ -5439,8 +5858,8 @@
54395858 # Check if GNU C++ uses GNU ld as the underlying linker, since the
54405859 # archiving commands below assume that GNU ld is being used.
54415860 if test "$with_gnu_ld" = yes; then
5442- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5443- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5861+ _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5862+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
54445863
54455864 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54465865 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5472,7 +5891,7 @@
54725891 # Commands to make compiler produce verbose output that lists
54735892 # what "hidden" libraries, object files and flags are used when
54745893 # linking a shared library.
5475- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5894+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
54765895
54775896 else
54785897 GXX=no
@@ -5581,10 +6000,10 @@
55816000 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
55826001 # Determine the default libpath from the value encoded in an empty
55836002 # executable.
5584- _LT_SYS_MODULE_PATH_AIX
6003+ _LT_SYS_MODULE_PATH_AIX([$1])
55856004 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
55866005
5587- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6006+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
55886007 else
55896008 if test "$host_cpu" = ia64; then
55906009 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -5593,14 +6012,19 @@
55936012 else
55946013 # Determine the default libpath from the value encoded in an
55956014 # empty executable.
5596- _LT_SYS_MODULE_PATH_AIX
6015+ _LT_SYS_MODULE_PATH_AIX([$1])
55976016 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
55986017 # Warning - without using the other run time loading flags,
55996018 # -berok will link without error, but may produce a broken library.
56006019 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
56016020 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5602- # Exported symbols can be pulled into shared objects from archives
5603- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6021+ if test "$with_gnu_ld" = yes; then
6022+ # We only use this code for GNU lds that support --whole-archive.
6023+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6024+ else
6025+ # Exported symbols can be pulled into shared objects from archives
6026+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6027+ fi
56046028 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56056029 # This is similar to how AIX traditionally builds its shared
56066030 # libraries.
@@ -5630,28 +6054,75 @@
56306054 ;;
56316055
56326056 cygwin* | mingw* | pw32* | cegcc*)
5633- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5634- # as there is no search path for DLLs.
5635- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5636- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5637- _LT_TAGVAR(always_export_symbols, $1)=no
5638- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6057+ case $GXX,$cc_basename in
6058+ ,cl* | no,cl*)
6059+ # Native MSVC
6060+ # hardcode_libdir_flag_spec is actually meaningless, as there is
6061+ # no search path for DLLs.
6062+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6063+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6064+ _LT_TAGVAR(always_export_symbols, $1)=yes
6065+ _LT_TAGVAR(file_list_spec, $1)='@'
6066+ # Tell ltmain to make .lib files, not .a files.
6067+ libext=lib
6068+ # Tell ltmain to make .dll files, not .so files.
6069+ shrext_cmds=".dll"
6070+ # FIXME: Setting linknames here is a bad hack.
6071+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6072+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6073+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6074+ else
6075+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6076+ fi~
6077+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6078+ linknames='
6079+ # The linker will not automatically build a static lib if we build a DLL.
6080+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6081+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6082+ # Don't use ranlib
6083+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6084+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6085+ lt_tool_outputfile="@TOOL_OUTPUT@"~
6086+ case $lt_outputfile in
6087+ *.exe|*.EXE) ;;
6088+ *)
6089+ lt_outputfile="$lt_outputfile.exe"
6090+ lt_tool_outputfile="$lt_tool_outputfile.exe"
6091+ ;;
6092+ esac~
6093+ func_to_tool_file "$lt_outputfile"~
6094+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6095+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6096+ $RM "$lt_outputfile.manifest";
6097+ fi'
6098+ ;;
6099+ *)
6100+ # g++
6101+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6102+ # as there is no search path for DLLs.
6103+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6104+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6105+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6106+ _LT_TAGVAR(always_export_symbols, $1)=no
6107+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
56396108
5640- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5641- _LT_TAGVAR(archive_cmds, $1)='$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'
5642- # If the export-symbols file already is a .def file (1st line
5643- # is EXPORTS), use it as is; otherwise, prepend...
5644- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5645- cp $export_symbols $output_objdir/$soname.def;
5646- else
5647- echo EXPORTS > $output_objdir/$soname.def;
5648- cat $export_symbols >> $output_objdir/$soname.def;
5649- fi~
5650- $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'
5651- else
5652- _LT_TAGVAR(ld_shlibs, $1)=no
5653- fi
5654- ;;
6109+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6110+ _LT_TAGVAR(archive_cmds, $1)='$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'
6111+ # If the export-symbols file already is a .def file (1st line
6112+ # is EXPORTS), use it as is; otherwise, prepend...
6113+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6114+ cp $export_symbols $output_objdir/$soname.def;
6115+ else
6116+ echo EXPORTS > $output_objdir/$soname.def;
6117+ cat $export_symbols >> $output_objdir/$soname.def;
6118+ fi~
6119+ $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'
6120+ else
6121+ _LT_TAGVAR(ld_shlibs, $1)=no
6122+ fi
6123+ ;;
6124+ esac
6125+ ;;
56556126 darwin* | rhapsody*)
56566127 _LT_DARWIN_LINKER_FEATURES($1)
56576128 ;;
@@ -5693,6 +6164,11 @@
56936164 gnu*)
56946165 ;;
56956166
6167+ haiku*)
6168+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6169+ _LT_TAGVAR(link_all_deplibs, $1)=yes
6170+ ;;
6171+
56966172 hpux9*)
56976173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
56986174 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -5717,11 +6193,11 @@
57176193 # explicitly linking system object files so we need to strip them
57186194 # from the output so that they don't get included in the library
57196195 # dependencies.
5720- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6196+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
57216197 ;;
57226198 *)
57236199 if test "$GXX" = yes; then
5724- _LT_TAGVAR(archive_cmds, $1)='$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'
6200+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
57256201 else
57266202 # FIXME: insert proper C++ library support
57276203 _LT_TAGVAR(ld_shlibs, $1)=no
@@ -5782,7 +6258,7 @@
57826258 # explicitly linking system object files so we need to strip them
57836259 # from the output so that they don't get included in the library
57846260 # dependencies.
5785- 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 "X$list" | $Xsed'
6261+ 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; func_echo_all "$list"'
57866262 ;;
57876263 *)
57886264 if test "$GXX" = yes; then
@@ -5792,10 +6268,10 @@
57926268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
57936269 ;;
57946270 ia64*)
5795- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6271+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
57966272 ;;
57976273 *)
5798- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6274+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
57996275 ;;
58006276 esac
58016277 fi
@@ -5825,7 +6301,7 @@
58256301 case $cc_basename in
58266302 CC*)
58276303 # SGI C++
5828- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6304+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
58296305
58306306 # Archives containing C++ object files must be created using
58316307 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -5836,9 +6312,9 @@
58366312 *)
58376313 if test "$GXX" = yes; then
58386314 if test "$with_gnu_ld" = no; then
5839- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6315+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
58406316 else
5841- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6317+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
58426318 fi
58436319 fi
58446320 _LT_TAGVAR(link_all_deplibs, $1)=yes
@@ -5849,7 +6325,7 @@
58496325 _LT_TAGVAR(inherit_rpath, $1)=yes
58506326 ;;
58516327
5852- linux* | k*bsd*-gnu)
6328+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
58536329 case $cc_basename in
58546330 KCC*)
58556331 # Kuck and Associates, Inc. (KAI) C++ Compiler
@@ -5867,7 +6343,7 @@
58676343 # explicitly linking system object files so we need to strip them
58686344 # from the output so that they don't get included in the library
58696345 # dependencies.
5870- 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 "X$list" | $Xsed'
6346+ 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; func_echo_all "$list"'
58716347
58726348 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
58736349 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5904,26 +6380,26 @@
59046380 pgCC* | pgcpp*)
59056381 # Portland Group C++ compiler
59066382 case `$CC -V` in
5907- *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6383+ *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
59086384 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
59096385 rm -rf $tpldir~
59106386 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5911- compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6387+ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
59126388 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
59136389 rm -rf $tpldir~
59146390 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5915- $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6391+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
59166392 $RANLIB $oldlib'
59176393 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
59186394 rm -rf $tpldir~
59196395 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5920- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6396+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59216397 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
59226398 rm -rf $tpldir~
59236399 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5924- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6400+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
59256401 ;;
5926- *) # Version 6 will use weak symbols
6402+ *) # Version 6 and above use weak symbols
59276403 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59286404 _LT_TAGVAR(archive_expsym_cmds, $1)='$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'
59296405 ;;
@@ -5931,7 +6407,7 @@
59316407
59326408 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
59336409 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5934- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6410+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
59356411 ;;
59366412 cxx*)
59376413 # Compaq C++
@@ -5950,9 +6426,9 @@
59506426 # explicitly linking system object files so we need to strip them
59516427 # from the output so that they don't get included in the library
59526428 # dependencies.
5953- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6429+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
59546430 ;;
5955- xl*)
6431+ xl* | mpixl* | bgxl*)
59566432 # IBM XL 8.0 on PPC, with GNU ld
59576433 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
59586434 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5972,13 +6448,13 @@
59726448 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
59736449 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
59746450 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5975- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6451+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
59766452 _LT_TAGVAR(compiler_needs_object, $1)=yes
59776453
59786454 # Not sure whether something based on
59796455 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
59806456 # would be better.
5981- output_verbose_link_cmd='echo'
6457+ output_verbose_link_cmd='func_echo_all'
59826458
59836459 # Archives containing C++ object files must be created using
59846460 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6047,7 +6523,7 @@
60476523 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
60486524 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
60496525 fi
6050- output_verbose_link_cmd=echo
6526+ output_verbose_link_cmd=func_echo_all
60516527 else
60526528 _LT_TAGVAR(ld_shlibs, $1)=no
60536529 fi
@@ -6082,15 +6558,15 @@
60826558 case $host in
60836559 osf3*)
60846560 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6085- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6561+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
60866562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
60876563 ;;
60886564 *)
60896565 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6090- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6566+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
60916567 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
60926568 echo "-hidden">> $lib.exp~
6093- $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6569+ $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~
60946570 $RM $lib.exp'
60956571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
60966572 ;;
@@ -6106,7 +6582,7 @@
61066582 # explicitly linking system object files so we need to strip them
61076583 # from the output so that they don't get included in the library
61086584 # dependencies.
6109- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6585+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
61106586 ;;
61116587 *)
61126588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
@@ -6113,10 +6589,10 @@
61136589 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
61146590 case $host in
61156591 osf3*)
6116- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6592+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
61176593 ;;
61186594 *)
6119- _LT_TAGVAR(archive_cmds, $1)='$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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6595+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
61206596 ;;
61216597 esac
61226598
@@ -6126,7 +6602,7 @@
61266602 # Commands to make compiler produce verbose output that lists
61276603 # what "hidden" libraries, object files and flags are used when
61286604 # linking a shared library.
6129- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6605+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
61306606
61316607 else
61326608 # FIXME: insert proper C++ library support
@@ -6162,7 +6638,7 @@
61626638
61636639 solaris*)
61646640 case $cc_basename in
6165- CC*)
6641+ CC* | sunCC*)
61666642 # Sun C++ 4.2, 5.x and Centerline C++
61676643 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
61686644 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
@@ -6183,7 +6659,7 @@
61836659 esac
61846660 _LT_TAGVAR(link_all_deplibs, $1)=yes
61856661
6186- output_verbose_link_cmd='echo'
6662+ output_verbose_link_cmd='func_echo_all'
61876663
61886664 # Archives containing C++ object files must be created using
61896665 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6203,14 +6679,14 @@
62036679 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
62046680 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
62056681 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6206- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6682+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
62076683 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6208- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6684+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
62096685
62106686 # Commands to make compiler produce verbose output that lists
62116687 # what "hidden" libraries, object files and flags are used when
62126688 # linking a shared library.
6213- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6689+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62146690 else
62156691 # g++ 2.7 appears to require `-G' NOT `-shared' on this
62166692 # platform.
@@ -6221,7 +6697,7 @@
62216697 # Commands to make compiler produce verbose output that lists
62226698 # what "hidden" libraries, object files and flags are used when
62236699 # linking a shared library.
6224- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6700+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62256701 fi
62266702
62276703 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
@@ -6275,6 +6751,10 @@
62756751 CC*)
62766752 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62776753 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6754+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6755+ '"$_LT_TAGVAR(old_archive_cmds, $1)"
6756+ _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6757+ '"$_LT_TAGVAR(reload_cmds, $1)"
62786758 ;;
62796759 *)
62806760 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
@@ -6330,6 +6810,7 @@
63306810 fi # test -n "$compiler"
63316811
63326812 CC=$lt_save_CC
6813+ CFLAGS=$lt_save_CFLAGS
63336814 LDCXX=$LD
63346815 LD=$lt_save_LD
63356816 GCC=$lt_save_GCC
@@ -6344,6 +6825,29 @@
63446825 ])# _LT_LANG_CXX_CONFIG
63456826
63466827
6828+# _LT_FUNC_STRIPNAME_CNF
6829+# ----------------------
6830+# func_stripname_cnf prefix suffix name
6831+# strip PREFIX and SUFFIX off of NAME.
6832+# PREFIX and SUFFIX must not contain globbing or regex special
6833+# characters, hashes, percent signs, but SUFFIX may contain a leading
6834+# dot (in which case that matches only a dot).
6835+#
6836+# This function is identical to the (non-XSI) version of func_stripname,
6837+# except this one can be used by m4 code that may be executed by configure,
6838+# rather than the libtool script.
6839+m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6840+AC_REQUIRE([_LT_DECL_SED])
6841+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6842+func_stripname_cnf ()
6843+{
6844+ case ${2} in
6845+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6846+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6847+ esac
6848+} # func_stripname_cnf
6849+])# _LT_FUNC_STRIPNAME_CNF
6850+
63476851 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
63486852 # ---------------------------------
63496853 # Figure out "hidden" library dependencies from verbose
@@ -6352,6 +6856,7 @@
63526856 # objects, libraries and library flags.
63536857 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
63546858 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6859+AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
63556860 # Dependencies to place before and after the object being linked:
63566861 _LT_TAGVAR(predep_objects, $1)=
63576862 _LT_TAGVAR(postdep_objects, $1)=
@@ -6402,6 +6907,13 @@
64026907 };
64036908 _LT_EOF
64046909 ])
6910+
6911+_lt_libdeps_save_CFLAGS=$CFLAGS
6912+case "$CC $CFLAGS " in #(
6913+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6914+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6915+esac
6916+
64056917 dnl Parse the compiler output and extract the necessary
64066918 dnl objects, libraries and library flags.
64076919 if AC_TRY_EVAL(ac_compile); then
@@ -6413,7 +6925,7 @@
64136925 pre_test_object_deps_done=no
64146926
64156927 for p in `eval "$output_verbose_link_cmd"`; do
6416- case $p in
6928+ case ${prev}${p} in
64176929
64186930 -L* | -R* | -l*)
64196931 # Some compilers place space between "-{L,R}" and the path.
@@ -6422,13 +6934,22 @@
64226934 test $p = "-R"; then
64236935 prev=$p
64246936 continue
6425- else
6426- prev=
64276937 fi
64286938
6939+ # Expand the sysroot to ease extracting the directories later.
6940+ if test -z "$prev"; then
6941+ case $p in
6942+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
6943+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
6944+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
6945+ esac
6946+ fi
6947+ case $p in
6948+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
6949+ esac
64296950 if test "$pre_test_object_deps_done" = no; then
6430- case $p in
6431- -L* | -R*)
6951+ case ${prev} in
6952+ -L | -R)
64326953 # Internal compiler library paths should come after those
64336954 # provided the user. The postdeps already come after the
64346955 # user supplied libs so there is no need to process them.
@@ -6448,8 +6969,10 @@
64486969 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
64496970 fi
64506971 fi
6972+ prev=
64516973 ;;
64526974
6975+ *.lto.$objext) ;; # Ignore GCC LTO objects
64536976 *.$objext)
64546977 # This assumes that the test object file only shows up
64556978 # once in the compiler output.
@@ -6485,6 +7008,7 @@
64857008 fi
64867009
64877010 $RM -f confest.$objext
7011+CFLAGS=$_lt_libdeps_save_CFLAGS
64887012
64897013 # PORTME: override above test on systems where it is broken
64907014 m4_if([$1], [CXX],
@@ -6521,7 +7045,7 @@
65217045
65227046 solaris*)
65237047 case $cc_basename in
6524- CC*)
7048+ CC* | sunCC*)
65257049 # The more standards-conforming stlport4 library is
65267050 # incompatible with the Cstd library. Avoid specifying
65277051 # it if it's in CXXFLAGS. Ignore libCrun as
@@ -6565,24 +7089,6 @@
65657089 ])# _LT_SYS_HIDDEN_LIBDEPS
65667090
65677091
6568-# _LT_PROG_F77
6569-# ------------
6570-# Since AC_PROG_F77 is broken, in that it returns the empty string
6571-# if there is no fortran compiler, we have our own version here.
6572-m4_defun([_LT_PROG_F77],
6573-[
6574-pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6575-AC_PROG_F77
6576-if test -z "$F77" || test "X$F77" = "Xno"; then
6577- _lt_disable_F77=yes
6578-fi
6579-popdef([AC_MSG_ERROR])
6580-])# _LT_PROG_F77
6581-
6582-dnl aclocal-1.4 backwards compatibility:
6583-dnl AC_DEFUN([_LT_PROG_F77], [])
6584-
6585-
65867092 # _LT_LANG_F77_CONFIG([TAG])
65877093 # --------------------------
65887094 # Ensure that the configuration variables for a Fortran 77 compiler are
@@ -6589,8 +7095,10 @@
65897095 # suitably defined. These variables are subsequently used by _LT_CONFIG
65907096 # to write the compiler configuration to `libtool'.
65917097 m4_defun([_LT_LANG_F77_CONFIG],
6592-[AC_REQUIRE([_LT_PROG_F77])dnl
6593-AC_LANG_PUSH(Fortran 77)
7098+[AC_LANG_PUSH(Fortran 77)
7099+if test -z "$F77" || test "X$F77" = "Xno"; then
7100+ _lt_disable_F77=yes
7101+fi
65947102
65957103 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
65967104 _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -6609,6 +7117,8 @@
66097117 _LT_TAGVAR(module_expsym_cmds, $1)=
66107118 _LT_TAGVAR(link_all_deplibs, $1)=unknown
66117119 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7120+_LT_TAGVAR(reload_flag, $1)=$reload_flag
7121+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
66127122 _LT_TAGVAR(no_undefined_flag, $1)=
66137123 _LT_TAGVAR(whole_archive_flag_spec, $1)=
66147124 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -6648,7 +7158,9 @@
66487158 # Allow CC to be a program name with arguments.
66497159 lt_save_CC="$CC"
66507160 lt_save_GCC=$GCC
7161+ lt_save_CFLAGS=$CFLAGS
66517162 CC=${F77-"f77"}
7163+ CFLAGS=$FFLAGS
66527164 compiler=$CC
66537165 _LT_TAGVAR(compiler, $1)=$CC
66547166 _LT_CC_BASENAME([$compiler])
@@ -6702,6 +7214,7 @@
67027214
67037215 GCC=$lt_save_GCC
67047216 CC="$lt_save_CC"
7217+ CFLAGS="$lt_save_CFLAGS"
67057218 fi # test "$_lt_disable_F77" != yes
67067219
67077220 AC_LANG_POP
@@ -6708,24 +7221,6 @@
67087221 ])# _LT_LANG_F77_CONFIG
67097222
67107223
6711-# _LT_PROG_FC
6712-# -----------
6713-# Since AC_PROG_FC is broken, in that it returns the empty string
6714-# if there is no fortran compiler, we have our own version here.
6715-m4_defun([_LT_PROG_FC],
6716-[
6717-pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6718-AC_PROG_FC
6719-if test -z "$FC" || test "X$FC" = "Xno"; then
6720- _lt_disable_FC=yes
6721-fi
6722-popdef([AC_MSG_ERROR])
6723-])# _LT_PROG_FC
6724-
6725-dnl aclocal-1.4 backwards compatibility:
6726-dnl AC_DEFUN([_LT_PROG_FC], [])
6727-
6728-
67297224 # _LT_LANG_FC_CONFIG([TAG])
67307225 # -------------------------
67317226 # Ensure that the configuration variables for a Fortran compiler are
@@ -6732,9 +7227,12 @@
67327227 # suitably defined. These variables are subsequently used by _LT_CONFIG
67337228 # to write the compiler configuration to `libtool'.
67347229 m4_defun([_LT_LANG_FC_CONFIG],
6735-[AC_REQUIRE([_LT_PROG_FC])dnl
6736-AC_LANG_PUSH(Fortran)
7230+[AC_LANG_PUSH(Fortran)
67377231
7232+if test -z "$FC" || test "X$FC" = "Xno"; then
7233+ _lt_disable_FC=yes
7234+fi
7235+
67387236 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67397237 _LT_TAGVAR(allow_undefined_flag, $1)=
67407238 _LT_TAGVAR(always_export_symbols, $1)=no
@@ -6752,6 +7250,8 @@
67527250 _LT_TAGVAR(module_expsym_cmds, $1)=
67537251 _LT_TAGVAR(link_all_deplibs, $1)=unknown
67547252 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7253+_LT_TAGVAR(reload_flag, $1)=$reload_flag
7254+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
67557255 _LT_TAGVAR(no_undefined_flag, $1)=
67567256 _LT_TAGVAR(whole_archive_flag_spec, $1)=
67577257 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -6791,7 +7291,9 @@
67917291 # Allow CC to be a program name with arguments.
67927292 lt_save_CC="$CC"
67937293 lt_save_GCC=$GCC
7294+ lt_save_CFLAGS=$CFLAGS
67947295 CC=${FC-"f95"}
7296+ CFLAGS=$FCFLAGS
67957297 compiler=$CC
67967298 GCC=$ac_cv_fc_compiler_gnu
67977299
@@ -6847,7 +7349,8 @@
68477349 fi # test -n "$compiler"
68487350
68497351 GCC=$lt_save_GCC
6850- CC="$lt_save_CC"
7352+ CC=$lt_save_CC
7353+ CFLAGS=$lt_save_CFLAGS
68517354 fi # test "$_lt_disable_FC" != yes
68527355
68537356 AC_LANG_POP
@@ -6884,10 +7387,12 @@
68847387 _LT_LINKER_BOILERPLATE
68857388
68867389 # Allow CC to be a program name with arguments.
6887-lt_save_CC="$CC"
7390+lt_save_CC=$CC
7391+lt_save_CFLAGS=$CFLAGS
68887392 lt_save_GCC=$GCC
68897393 GCC=yes
68907394 CC=${GCJ-"gcj"}
7395+CFLAGS=$GCJFLAGS
68917396 compiler=$CC
68927397 _LT_TAGVAR(compiler, $1)=$CC
68937398 _LT_TAGVAR(LD, $1)="$LD"
@@ -6897,6 +7402,8 @@
68977402 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68987403
68997404 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7405+_LT_TAGVAR(reload_flag, $1)=$reload_flag
7406+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
69007407
69017408 if test -n "$compiler"; then
69027409 _LT_COMPILER_NO_RTTI($1)
@@ -6912,7 +7419,8 @@
69127419 AC_LANG_RESTORE
69137420
69147421 GCC=$lt_save_GCC
6915-CC="$lt_save_CC"
7422+CC=$lt_save_CC
7423+CFLAGS=$lt_save_CFLAGS
69167424 ])# _LT_LANG_GCJ_CONFIG
69177425
69187426
@@ -6947,9 +7455,11 @@
69477455
69487456 # Allow CC to be a program name with arguments.
69497457 lt_save_CC="$CC"
7458+lt_save_CFLAGS=$CFLAGS
69507459 lt_save_GCC=$GCC
69517460 GCC=
69527461 CC=${RC-"windres"}
7462+CFLAGS=
69537463 compiler=$CC
69547464 _LT_TAGVAR(compiler, $1)=$CC
69557465 _LT_CC_BASENAME([$compiler])
@@ -6962,7 +7472,8 @@
69627472
69637473 GCC=$lt_save_GCC
69647474 AC_LANG_RESTORE
6965-CC="$lt_save_CC"
7475+CC=$lt_save_CC
7476+CFLAGS=$lt_save_CFLAGS
69667477 ])# _LT_LANG_RC_CONFIG
69677478
69687479
@@ -7021,6 +7532,15 @@
70217532 AC_SUBST([OBJDUMP])
70227533 ])
70237534
7535+# _LT_DECL_DLLTOOL
7536+# ----------------
7537+# Ensure DLLTOOL variable is set.
7538+m4_defun([_LT_DECL_DLLTOOL],
7539+[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7540+test -z "$DLLTOOL" && DLLTOOL=dlltool
7541+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7542+AC_SUBST([DLLTOOL])
7543+])
70247544
70257545 # _LT_DECL_SED
70267546 # ------------
@@ -7112,8 +7632,8 @@
71127632 # Try some XSI features
71137633 xsi_shell=no
71147634 ( _lt_dummy="a/b/c"
7115- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7116- = c,a/b,, \
7635+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7636+ = c,a/b,b/c, \
71177637 && eval 'test $(( 1 + 1 )) -eq 2 \
71187638 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
71197639 && xsi_shell=yes
@@ -7152,215 +7672,170 @@
71527672 ])# _LT_CHECK_SHELL_FEATURES
71537673
71547674
7155-# _LT_PROG_XSI_SHELLFNS
7156-# ---------------------
7157-# Bourne and XSI compatible variants of some useful shell functions.
7158-m4_defun([_LT_PROG_XSI_SHELLFNS],
7159-[case $xsi_shell in
7160- yes)
7161- cat << \_LT_EOF >> "$cfgfile"
7675+# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7676+# ------------------------------------------------------
7677+# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7678+# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7679+m4_defun([_LT_PROG_FUNCTION_REPLACE],
7680+[dnl {
7681+sed -e '/^$1 ()$/,/^} # $1 /c\
7682+$1 ()\
7683+{\
7684+m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7685+} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7686+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7687+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7688+test 0 -eq $? || _lt_function_replace_fail=:
7689+])
71627690
7163-# func_dirname file append nondir_replacement
7164-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7165-# otherwise set result to NONDIR_REPLACEMENT.
7166-func_dirname ()
7167-{
7168- case ${1} in
7169- */*) func_dirname_result="${1%/*}${2}" ;;
7170- * ) func_dirname_result="${3}" ;;
7171- esac
7172-}
71737691
7174-# func_basename file
7175-func_basename ()
7176-{
7177- func_basename_result="${1##*/}"
7178-}
7692+# _LT_PROG_REPLACE_SHELLFNS
7693+# -------------------------
7694+# Replace existing portable implementations of several shell functions with
7695+# equivalent extended shell implementations where those features are available..
7696+m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7697+[if test x"$xsi_shell" = xyes; then
7698+ _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7699+ case ${1} in
7700+ */*) func_dirname_result="${1%/*}${2}" ;;
7701+ * ) func_dirname_result="${3}" ;;
7702+ esac])
71797703
7180-# func_dirname_and_basename file append nondir_replacement
7181-# perform func_basename and func_dirname in a single function
7182-# call:
7183-# dirname: Compute the dirname of FILE. If nonempty,
7184-# add APPEND to the result, otherwise set result
7185-# to NONDIR_REPLACEMENT.
7186-# value returned in "$func_dirname_result"
7187-# basename: Compute filename of FILE.
7188-# value retuned in "$func_basename_result"
7189-# Implementation must be kept synchronized with func_dirname
7190-# and func_basename. For efficiency, we do not delegate to
7191-# those functions but instead duplicate the functionality here.
7192-func_dirname_and_basename ()
7193-{
7194- case ${1} in
7195- */*) func_dirname_result="${1%/*}${2}" ;;
7196- * ) func_dirname_result="${3}" ;;
7197- esac
7198- func_basename_result="${1##*/}"
7199-}
7704+ _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7705+ func_basename_result="${1##*/}"])
72007706
7201-# func_stripname prefix suffix name
7202-# strip PREFIX and SUFFIX off of NAME.
7203-# PREFIX and SUFFIX must not contain globbing or regex special
7204-# characters, hashes, percent signs, but SUFFIX may contain a leading
7205-# dot (in which case that matches only a dot).
7206-func_stripname ()
7207-{
7208- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7209- # positional parameters, so assign one to ordinary parameter first.
7210- func_stripname_result=${3}
7211- func_stripname_result=${func_stripname_result#"${1}"}
7212- func_stripname_result=${func_stripname_result%"${2}"}
7213-}
7707+ _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7708+ case ${1} in
7709+ */*) func_dirname_result="${1%/*}${2}" ;;
7710+ * ) func_dirname_result="${3}" ;;
7711+ esac
7712+ func_basename_result="${1##*/}"])
72147713
7215-# func_opt_split
7216-func_opt_split ()
7217-{
7218- func_opt_split_opt=${1%%=*}
7219- func_opt_split_arg=${1#*=}
7220-}
7714+ _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7715+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7716+ # positional parameters, so assign one to ordinary parameter first.
7717+ func_stripname_result=${3}
7718+ func_stripname_result=${func_stripname_result#"${1}"}
7719+ func_stripname_result=${func_stripname_result%"${2}"}])
72217720
7222-# func_lo2o object
7223-func_lo2o ()
7224-{
7225- case ${1} in
7226- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7227- *) func_lo2o_result=${1} ;;
7228- esac
7229-}
7721+ _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7722+ func_split_long_opt_name=${1%%=*}
7723+ func_split_long_opt_arg=${1#*=}])
72307724
7231-# func_xform libobj-or-source
7232-func_xform ()
7233-{
7234- func_xform_result=${1%.*}.lo
7235-}
7725+ _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7726+ func_split_short_opt_arg=${1#??}
7727+ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
72367728
7237-# func_arith arithmetic-term...
7238-func_arith ()
7239-{
7240- func_arith_result=$(( $[*] ))
7241-}
7729+ _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7730+ case ${1} in
7731+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7732+ *) func_lo2o_result=${1} ;;
7733+ esac])
72427734
7243-# func_len string
7244-# STRING may not start with a hyphen.
7245-func_len ()
7246-{
7247- func_len_result=${#1}
7248-}
7735+ _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
72497736
7250-_LT_EOF
7251- ;;
7252- *) # Bourne compatible functions.
7253- cat << \_LT_EOF >> "$cfgfile"
7737+ _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
72547738
7255-# func_dirname file append nondir_replacement
7256-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7257-# otherwise set result to NONDIR_REPLACEMENT.
7258-func_dirname ()
7259-{
7260- # Extract subdirectory from the argument.
7261- func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7262- if test "X$func_dirname_result" = "X${1}"; then
7263- func_dirname_result="${3}"
7264- else
7265- func_dirname_result="$func_dirname_result${2}"
7266- fi
7267-}
7739+ _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7740+fi
72687741
7269-# func_basename file
7270-func_basename ()
7271-{
7272- func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7273-}
7742+if test x"$lt_shell_append" = xyes; then
7743+ _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
72747744
7275-dnl func_dirname_and_basename
7276-dnl A portable version of this function is already defined in general.m4sh
7277-dnl so there is no need for it here.
7745+ _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7746+ func_quote_for_eval "${2}"
7747+dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7748+ eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
72787749
7279-# func_stripname prefix suffix name
7280-# strip PREFIX and SUFFIX off of NAME.
7281-# PREFIX and SUFFIX must not contain globbing or regex special
7282-# characters, hashes, percent signs, but SUFFIX may contain a leading
7283-# dot (in which case that matches only a dot).
7284-# func_strip_suffix prefix name
7285-func_stripname ()
7286-{
7287- case ${2} in
7288- .*) func_stripname_result=`$ECHO "X${3}" \
7289- | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7290- *) func_stripname_result=`$ECHO "X${3}" \
7291- | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7292- esac
7293-}
7750+ # Save a `func_append' function call where possible by direct use of '+='
7751+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7752+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7753+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7754+ test 0 -eq $? || _lt_function_replace_fail=:
7755+else
7756+ # Save a `func_append' function call even when '+=' is not available
7757+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7758+ && mv -f "$cfgfile.tmp" "$cfgfile" \
7759+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7760+ test 0 -eq $? || _lt_function_replace_fail=:
7761+fi
72947762
7295-# sed scripts:
7296-my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7297-my_sed_long_arg='1s/^-[[^=]]*=//'
7763+if test x"$_lt_function_replace_fail" = x":"; then
7764+ AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7765+fi
7766+])
72987767
7299-# func_opt_split
7300-func_opt_split ()
7301-{
7302- func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7303- func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7304-}
7305-
7306-# func_lo2o object
7307-func_lo2o ()
7308-{
7309- func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7310-}
7311-
7312-# func_xform libobj-or-source
7313-func_xform ()
7314-{
7315- func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7316-}
7317-
7318-# func_arith arithmetic-term...
7319-func_arith ()
7320-{
7321- func_arith_result=`expr "$[@]"`
7322-}
7323-
7324-# func_len string
7325-# STRING may not start with a hyphen.
7326-func_len ()
7327-{
7328- func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7329-}
7330-
7331-_LT_EOF
7768+# _LT_PATH_CONVERSION_FUNCTIONS
7769+# -----------------------------
7770+# Determine which file name conversion functions should be used by
7771+# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7772+# for certain cross-compile configurations and native mingw.
7773+m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7774+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7775+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7776+AC_MSG_CHECKING([how to convert $build file names to $host format])
7777+AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7778+[case $host in
7779+ *-*-mingw* )
7780+ case $build in
7781+ *-*-mingw* ) # actually msys
7782+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7783+ ;;
7784+ *-*-cygwin* )
7785+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7786+ ;;
7787+ * ) # otherwise, assume *nix
7788+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7789+ ;;
7790+ esac
7791+ ;;
7792+ *-*-cygwin* )
7793+ case $build in
7794+ *-*-mingw* ) # actually msys
7795+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7796+ ;;
7797+ *-*-cygwin* )
7798+ lt_cv_to_host_file_cmd=func_convert_file_noop
7799+ ;;
7800+ * ) # otherwise, assume *nix
7801+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7802+ ;;
7803+ esac
7804+ ;;
7805+ * ) # unhandled hosts (and "normal" native builds)
7806+ lt_cv_to_host_file_cmd=func_convert_file_noop
7807+ ;;
73327808 esac
7809+])
7810+to_host_file_cmd=$lt_cv_to_host_file_cmd
7811+AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7812+_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7813+ [0], [convert $build file names to $host format])dnl
73337814
7334-case $lt_shell_append in
7335- yes)
7336- cat << \_LT_EOF >> "$cfgfile"
7337-
7338-# func_append var value
7339-# Append VALUE to the end of shell variable VAR.
7340-func_append ()
7341-{
7342- eval "$[1]+=\$[2]"
7343-}
7344-_LT_EOF
7815+AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7816+AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7817+[#assume ordinary cross tools, or native build.
7818+lt_cv_to_tool_file_cmd=func_convert_file_noop
7819+case $host in
7820+ *-*-mingw* )
7821+ case $build in
7822+ *-*-mingw* ) # actually msys
7823+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7824+ ;;
7825+ esac
73457826 ;;
7346- *)
7347- cat << \_LT_EOF >> "$cfgfile"
7348-
7349-# func_append var value
7350-# Append VALUE to the end of shell variable VAR.
7351-func_append ()
7352-{
7353- eval "$[1]=\$$[1]\$[2]"
7354-}
7355-
7356-_LT_EOF
7357- ;;
7358- esac
7827+esac
73597828 ])
7829+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7830+AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7831+_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7832+ [0], [convert $build files to toolchain format])dnl
7833+])# _LT_PATH_CONVERSION_FUNCTIONS
73607834
73617835 # Helper functions for option handling. -*- Autoconf -*-
73627836 #
7363-# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7837+# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7838+# Inc.
73647839 # Written by Gary V. Vaughan, 2004
73657840 #
73667841 # This file is free software; the Free Software Foundation gives
@@ -7367,7 +7842,7 @@
73677842 # unlimited permission to copy and/or distribute it, with or without
73687843 # modifications, as long as this notice is preserved.
73697844
7370-# serial 6 ltoptions.m4
7845+# serial 7 ltoptions.m4
73717846
73727847 # This is to help aclocal find these macros, as it can't see m4_define.
73737848 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
@@ -7482,7 +7957,7 @@
74827957 [enable_win32_dll=yes
74837958
74847959 case $host in
7485-*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7960+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
74867961 AC_CHECK_TOOL(AS, as, false)
74877962 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
74887963 AC_CHECK_TOOL(OBJDUMP, objdump, false)
@@ -7490,13 +7965,13 @@
74907965 esac
74917966
74927967 test -z "$AS" && AS=as
7493-_LT_DECL([], [AS], [0], [Assembler program])dnl
7968+_LT_DECL([], [AS], [1], [Assembler program])dnl
74947969
74957970 test -z "$DLLTOOL" && DLLTOOL=dlltool
7496-_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7971+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
74977972
74987973 test -z "$OBJDUMP" && OBJDUMP=objdump
7499-_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7974+_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
75007975 ])# win32-dll
75017976
75027977 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
@@ -7854,17 +8329,17 @@
78548329 # unlimited permission to copy and/or distribute it, with or without
78558330 # modifications, as long as this notice is preserved.
78568331
7857-# Generated from ltversion.in.
8332+# @configure_input@
78588333
7859-# serial 3012 ltversion.m4
8334+# serial 3293 ltversion.m4
78608335 # This file is part of GNU Libtool
78618336
7862-m4_define([LT_PACKAGE_VERSION], [2.2.6])
7863-m4_define([LT_PACKAGE_REVISION], [1.3012])
8337+m4_define([LT_PACKAGE_VERSION], [2.4])
8338+m4_define([LT_PACKAGE_REVISION], [1.3293])
78648339
78658340 AC_DEFUN([LTVERSION_VERSION],
7866-[macro_version='2.2.6'
7867-macro_revision='1.3012'
8341+[macro_version='2.4'
8342+macro_revision='1.3293'
78688343 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
78698344 _LT_DECL(, macro_revision, 0)
78708345 ])
@@ -7871,7 +8346,7 @@
78718346
78728347 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
78738348 #
7874-# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8349+# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
78758350 # Written by Scott James Remnant, 2004.
78768351 #
78778352 # This file is free software; the Free Software Foundation gives
@@ -7878,7 +8353,7 @@
78788353 # unlimited permission to copy and/or distribute it, with or without
78798354 # modifications, as long as this notice is preserved.
78808355
7881-# serial 4 lt~obsolete.m4
8356+# serial 5 lt~obsolete.m4
78828357
78838358 # These exist entirely to fool aclocal when bootstrapping libtool.
78848359 #
@@ -7948,7 +8423,6 @@
79488423 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
79498424 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
79508425 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7951-m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
79528426 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
79538427 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
79548428 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
@@ -7961,6 +8435,13 @@
79618435 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
79628436 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
79638437 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8438+m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8439+m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8440+m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8441+m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8442+m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8443+m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8444+m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
79648445
79658446 # Configure paths for SDL
79668447 # Sam Lantinga 9/21/99
旧リポジトリブラウザで表示