Codebase list libva / 066ed63
New upstream version 1.8.2 Sebastian Ramacher 6 years ago
27 changed file(s) with 7850 addition(s) and 5210 deletion(s). Raw diff Collapse all Expand all
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3535 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3636 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3737 VPATH = @srcdir@
38 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
38 am__is_gnu_make = { \
39 if test -z '$(MAKELEVEL)'; then \
40 false; \
41 elif test -n '$(MAKE_HOST)'; then \
42 true; \
43 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
44 true; \
45 else \
46 false; \
47 fi; \
48 }
3949 am__make_running_with_option = \
4050 case $${target_option-} in \
4151 ?) ;; \
99109 build_triplet = @build@
100110 host_triplet = @host@
101111 subdir = .
102 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
103 $(top_srcdir)/configure $(am__configure_deps) \
104 $(srcdir)/config.h.in COPYING NEWS compile config.guess \
105 config.sub depcomp install-sh missing ltmain.sh
106112 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
107113 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
108114 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
110116 $(top_srcdir)/configure.ac
111117 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
112118 $(ACLOCAL_M4)
119 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
120 $(am__configure_deps) $(am__DIST_COMMON)
113121 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
114122 configure.lineno config.status.lineno
115123 mkinstalldirs = $(install_sh) -d
173181 CTAGS = ctags
174182 CSCOPE = cscope
175183 DIST_SUBDIRS = $(SUBDIRS)
184 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in COPYING \
185 NEWS compile config.guess config.sub depcomp install-sh \
186 ltmain.sh missing
176187 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
177188 distdir = $(PACKAGE)-$(VERSION)
178189 top_distdir = $(distdir)
273284 LIPO = @LIPO@
274285 LN_S = @LN_S@
275286 LTLIBOBJS = @LTLIBOBJS@
287 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
276288 MAKEINFO = @MAKEINFO@
277289 MANIFEST_TOOL = @MANIFEST_TOOL@
278290 MKDIR_P = @MKDIR_P@
360372 prefix = @prefix@
361373 program_transform_name = @program_transform_name@
362374 psdir = @psdir@
375 runstatedir = @runstatedir@
363376 sbindir = @sbindir@
364377 sharedstatedir = @sharedstatedir@
365378 srcdir = @srcdir@
397410 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
398411 $(am__cd) $(top_srcdir) && \
399412 $(AUTOMAKE) --foreign Makefile
400 .PRECIOUS: Makefile
401413 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
402414 @case '$?' in \
403415 *config.status*) \
627639 $(am__post_remove_distdir)
628640
629641 dist-tarZ: distdir
630 @echo WARNING: "Support for shar distribution archives is" \
631 "deprecated." >&2
642 @echo WARNING: "Support for distribution archives compressed with" \
643 "legacy program 'compress' is deprecated." >&2
632644 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
633645 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
634646 $(am__post_remove_distdir)
635647
636648 dist-shar: distdir
637 @echo WARNING: "Support for distribution archives compressed with" \
638 "legacy program 'compress' is deprecated." >&2
649 @echo WARNING: "Support for shar distribution archives is" \
650 "deprecated." >&2
639651 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
640652 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
641653 $(am__post_remove_distdir)
671683 esac
672684 chmod -R a-w $(distdir)
673685 chmod u+w $(distdir)
674 mkdir $(distdir)/_build $(distdir)/_inst
686 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
675687 chmod a-w $(distdir)
676688 test -d $(distdir)/_build || exit 0; \
677689 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
678690 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
679691 && am__cwd=`pwd` \
680 && $(am__cd) $(distdir)/_build \
681 && ../configure \
692 && $(am__cd) $(distdir)/_build/sub \
693 && ../../configure \
682694 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
683695 $(DISTCHECK_CONFIGURE_FLAGS) \
684 --srcdir=.. --prefix="$$dc_install_base" \
696 --srcdir=../.. --prefix="$$dc_install_base" \
685697 && $(MAKE) $(AM_MAKEFLAGS) \
686698 && $(MAKE) $(AM_MAKEFLAGS) dvi \
687699 && $(MAKE) $(AM_MAKEFLAGS) check \
859871 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
860872 uninstall-am
861873
874 .PRECIOUS: Makefile
875
862876
863877 # Tell versions [3.59,3.63) of GNU make to not export all variables.
864878 # Otherwise a system limit (for SysV at least) may be exceeded.
0 libva NEWS -- summary of user visible changes. 2017-04-10
0 libva NEWS -- summary of user visible changes. 2017-05-22
11 Copyright (C) 2009-2017 Intel Corporation
2
3 Version 1.8.2 - 22.May.2017
4 * Bump libva to 1.8.2
25
36 Version 1.8.1 - 10.Apr.2017
47 * Bump libva to 1.8.1
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 1 (pkg-config-0.24)
24 #
25 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 #
27 # This program is free software; you can redistribute it and/or modify
28 # it under the terms of the GNU General Public License as published by
29 # the Free Software Foundation; either version 2 of the License, or
30 # (at your option) any later version.
31 #
32 # This program is distributed in the hope that it will be useful, but
33 # WITHOUT ANY WARRANTY; without even the implied warranty of
34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35 # General Public License for more details.
36 #
37 # You should have received a copy of the GNU General Public License
38 # along with this program; if not, write to the Free Software
39 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40 #
41 # As a special exception to the GNU General Public License, if you
42 # distribute this file as part of a program that contains a
43 # configuration script generated by Autoconf, you may include it under
44 # the same distribution terms that you use for the rest of that program.
45
46 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
47 # ----------------------------------
22 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 dnl serial 11 (pkg-config-0.29.1)
24 dnl
25 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
27 dnl
28 dnl This program is free software; you can redistribute it and/or modify
29 dnl it under the terms of the GNU General Public License as published by
30 dnl the Free Software Foundation; either version 2 of the License, or
31 dnl (at your option) any later version.
32 dnl
33 dnl This program is distributed in the hope that it will be useful, but
34 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
35 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36 dnl General Public License for more details.
37 dnl
38 dnl You should have received a copy of the GNU General Public License
39 dnl along with this program; if not, write to the Free Software
40 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41 dnl 02111-1307, USA.
42 dnl
43 dnl As a special exception to the GNU General Public License, if you
44 dnl distribute this file as part of a program that contains a
45 dnl configuration script generated by Autoconf, you may include it under
46 dnl the same distribution terms that you use for the rest of that
47 dnl program.
48
49 dnl PKG_PREREQ(MIN-VERSION)
50 dnl -----------------------
51 dnl Since: 0.29
52 dnl
53 dnl Verify that the version of the pkg-config macros are at least
54 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
55 dnl installed version of pkg-config, this checks the developer's version
56 dnl of pkg.m4 when generating configure.
57 dnl
58 dnl To ensure that this macro is defined, also add:
59 dnl m4_ifndef([PKG_PREREQ],
60 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
61 dnl
62 dnl See the "Since" comment for each macro you use to see what version
63 dnl of the macros you require.
64 m4_defun([PKG_PREREQ],
65 [m4_define([PKG_MACROS_VERSION], [0.29.1])
66 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
67 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
68 ])dnl PKG_PREREQ
69
70 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
71 dnl ----------------------------------
72 dnl Since: 0.16
73 dnl
74 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
75 dnl first found in the path. Checks that the version of pkg-config found
76 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
77 dnl used since that's the first version where most current features of
78 dnl pkg-config existed.
4879 AC_DEFUN([PKG_PROG_PKG_CONFIG],
4980 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
5081 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
6697 PKG_CONFIG=""
6798 fi
6899 fi[]dnl
69 ])# PKG_PROG_PKG_CONFIG
70
71 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
72 #
73 # Check to see whether a particular set of modules exists. Similar
74 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
75 #
76 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
77 # only at the first occurence in configure.ac, so if the first place
78 # it's called might be skipped (such as if it is within an "if", you
79 # have to call PKG_CHECK_EXISTS manually
80 # --------------------------------------------------------------
100 ])dnl PKG_PROG_PKG_CONFIG
101
102 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
103 dnl -------------------------------------------------------------------
104 dnl Since: 0.18
105 dnl
106 dnl Check to see whether a particular set of modules exists. Similar to
107 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
108 dnl
109 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
110 dnl only at the first occurence in configure.ac, so if the first place
111 dnl it's called might be skipped (such as if it is within an "if", you
112 dnl have to call PKG_CHECK_EXISTS manually
81113 AC_DEFUN([PKG_CHECK_EXISTS],
82114 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
83115 if test -n "$PKG_CONFIG" && \
87119 $3])dnl
88120 fi])
89121
90 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
91 # ---------------------------------------------
122 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
123 dnl ---------------------------------------------
124 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
125 dnl pkg_failed based on the result.
92126 m4_define([_PKG_CONFIG],
93127 [if test -n "$$1"; then
94128 pkg_cv_[]$1="$$1"
100134 else
101135 pkg_failed=untried
102136 fi[]dnl
103 ])# _PKG_CONFIG
104
105 # _PKG_SHORT_ERRORS_SUPPORTED
106 # -----------------------------
137 ])dnl _PKG_CONFIG
138
139 dnl _PKG_SHORT_ERRORS_SUPPORTED
140 dnl ---------------------------
141 dnl Internal check to see if pkg-config supports short errors.
107142 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
108143 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
109144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
111146 else
112147 _pkg_short_errors_supported=no
113148 fi[]dnl
114 ])# _PKG_SHORT_ERRORS_SUPPORTED
115
116
117 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
118 # [ACTION-IF-NOT-FOUND])
119 #
120 #
121 # Note that if there is a possibility the first call to
122 # PKG_CHECK_MODULES might not happen, you should be sure to include an
123 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
124 #
125 #
126 # --------------------------------------------------------------
149 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
150
151
152 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
153 dnl [ACTION-IF-NOT-FOUND])
154 dnl --------------------------------------------------------------
155 dnl Since: 0.4.0
156 dnl
157 dnl Note that if there is a possibility the first call to
158 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
159 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
127160 AC_DEFUN([PKG_CHECK_MODULES],
128161 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
129162 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
177210 AC_MSG_RESULT([yes])
178211 $3
179212 fi[]dnl
180 ])# PKG_CHECK_MODULES
181
182 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
213 ])dnl PKG_CHECK_MODULES
214
215
216 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
217 dnl [ACTION-IF-NOT-FOUND])
218 dnl ---------------------------------------------------------------------
219 dnl Since: 0.29
220 dnl
221 dnl Checks for existence of MODULES and gathers its build flags with
222 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
223 dnl and VARIABLE-PREFIX_LIBS from --libs.
224 dnl
225 dnl Note that if there is a possibility the first call to
226 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
227 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
228 dnl configure.ac.
229 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
230 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
231 _save_PKG_CONFIG=$PKG_CONFIG
232 PKG_CONFIG="$PKG_CONFIG --static"
233 PKG_CHECK_MODULES($@)
234 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
235 ])dnl PKG_CHECK_MODULES_STATIC
236
237
238 dnl PKG_INSTALLDIR([DIRECTORY])
239 dnl -------------------------
240 dnl Since: 0.27
241 dnl
242 dnl Substitutes the variable pkgconfigdir as the location where a module
243 dnl should install pkg-config .pc files. By default the directory is
244 dnl $libdir/pkgconfig, but the default can be changed by passing
245 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
246 dnl parameter.
247 AC_DEFUN([PKG_INSTALLDIR],
248 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
249 m4_pushdef([pkg_description],
250 [pkg-config installation directory @<:@]pkg_default[@:>@])
251 AC_ARG_WITH([pkgconfigdir],
252 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
253 [with_pkgconfigdir=]pkg_default)
254 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
255 m4_popdef([pkg_default])
256 m4_popdef([pkg_description])
257 ])dnl PKG_INSTALLDIR
258
259
260 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
261 dnl --------------------------------
262 dnl Since: 0.27
263 dnl
264 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
265 dnl module should install arch-independent pkg-config .pc files. By
266 dnl default the directory is $datadir/pkgconfig, but the default can be
267 dnl changed by passing DIRECTORY. The user can override through the
268 dnl --with-noarch-pkgconfigdir parameter.
269 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
270 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
271 m4_pushdef([pkg_description],
272 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
273 AC_ARG_WITH([noarch-pkgconfigdir],
274 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
275 [with_noarch_pkgconfigdir=]pkg_default)
276 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
277 m4_popdef([pkg_default])
278 m4_popdef([pkg_description])
279 ])dnl PKG_NOARCH_INSTALLDIR
280
281
282 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
283 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
284 dnl -------------------------------------------
285 dnl Since: 0.28
286 dnl
287 dnl Retrieves the value of the pkg-config variable for the given module.
288 AC_DEFUN([PKG_CHECK_VAR],
289 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
290 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
291
292 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
293 AS_VAR_COPY([$1], [pkg_cv_][$1])
294
295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296 ])dnl PKG_CHECK_VAR
297
298 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
183299 #
184300 # This file is free software; the Free Software Foundation
185301 # gives unlimited permission to copy and/or distribute it,
191307 # generated from the m4 files accompanying Automake X.Y.
192308 # (This private macro should not be called outside this file.)
193309 AC_DEFUN([AM_AUTOMAKE_VERSION],
194 [am__api_version='1.14'
310 [am__api_version='1.15'
195311 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
196312 dnl require some minimum version. Point them to the right macro.
197 m4_if([$1], [1.14.1], [],
313 m4_if([$1], [1.15], [],
198314 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
199315 ])
200316
210326 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
211327 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
212328 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
213 [AM_AUTOMAKE_VERSION([1.14.1])dnl
329 [AM_AUTOMAKE_VERSION([1.15])dnl
214330 m4_ifndef([AC_AUTOCONF_VERSION],
215331 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
216332 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
217333
218334 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
219335
220 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
336 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
221337 #
222338 # This file is free software; the Free Software Foundation
223339 # gives unlimited permission to copy and/or distribute it,
262378 # configured tree to be moved without reconfiguration.
263379
264380 AC_DEFUN([AM_AUX_DIR_EXPAND],
265 [dnl Rely on autoconf to set up CDPATH properly.
266 AC_PREREQ([2.50])dnl
267 # expand $ac_aux_dir to an absolute path
268 am_aux_dir=`cd $ac_aux_dir && pwd`
381 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
382 # Expand $ac_aux_dir to an absolute path.
383 am_aux_dir=`cd "$ac_aux_dir" && pwd`
269384 ])
270385
271386 # AM_CONDITIONAL -*- Autoconf -*-
272387
273 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
388 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
274389 #
275390 # This file is free software; the Free Software Foundation
276391 # gives unlimited permission to copy and/or distribute it,
301416 Usually this means the macro was only invoked conditionally.]])
302417 fi])])
303418
304 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
419 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
305420 #
306421 # This file is free software; the Free Software Foundation
307422 # gives unlimited permission to copy and/or distribute it,
492607
493608 # Generate code to set up dependency tracking. -*- Autoconf -*-
494609
495 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
610 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
496611 #
497612 # This file is free software; the Free Software Foundation
498613 # gives unlimited permission to copy and/or distribute it,
568683
569684 # Do all the work for Automake. -*- Autoconf -*-
570685
571 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
686 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
572687 #
573688 # This file is free software; the Free Software Foundation
574689 # gives unlimited permission to copy and/or distribute it,
658773 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
659774 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
660775 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
661 # We need awk for the "check" target. The system "awk" is bad on
662 # some platforms.
776 # We need awk for the "check" target (and possibly the TAP driver). The
777 # system "awk" is bad on some platforms.
663778 AC_REQUIRE([AC_PROG_AWK])dnl
664779 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
665780 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
732847 END
733848 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
734849 fi
735 fi])
850 fi
851 dnl The trailing newline in this macro's definition is deliberate, for
852 dnl backward compatibility and to allow trailing 'dnl'-style comments
853 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
854 ])
736855
737856 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
738857 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
761880 done
762881 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
763882
764 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
883 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
765884 #
766885 # This file is free software; the Free Software Foundation
767886 # gives unlimited permission to copy and/or distribute it,
772891 # Define $install_sh.
773892 AC_DEFUN([AM_PROG_INSTALL_SH],
774893 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
775 if test x"${install_sh}" != xset; then
894 if test x"${install_sh+set}" != xset; then
776895 case $am_aux_dir in
777896 *\ * | *\ *)
778897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
782901 fi
783902 AC_SUBST([install_sh])])
784903
785 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
904 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
786905 #
787906 # This file is free software; the Free Software Foundation
788907 # gives unlimited permission to copy and/or distribute it,
803922
804923 # Check to see how 'make' treats includes. -*- Autoconf -*-
805924
806 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
925 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
807926 #
808927 # This file is free software; the Free Software Foundation
809928 # gives unlimited permission to copy and/or distribute it,
853972
854973 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
855974
856 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
975 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
857976 #
858977 # This file is free software; the Free Software Foundation
859978 # gives unlimited permission to copy and/or distribute it,
8921011
8931012 # Helper functions for option handling. -*- Autoconf -*-
8941013
895 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1014 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
8961015 #
8971016 # This file is free software; the Free Software Foundation
8981017 # gives unlimited permission to copy and/or distribute it,
9211040 AC_DEFUN([_AM_IF_OPTION],
9221041 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9231042
924 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1043 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
9251044 #
9261045 # This file is free software; the Free Software Foundation
9271046 # gives unlimited permission to copy and/or distribute it,
9681087 # For backward compatibility.
9691088 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9701089
971 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1090 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
9721091 #
9731092 # This file is free software; the Free Software Foundation
9741093 # gives unlimited permission to copy and/or distribute it,
9871106
9881107 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9891108
990 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1109 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
9911110 #
9921111 # This file is free software; the Free Software Foundation
9931112 # gives unlimited permission to copy and/or distribute it,
10681187 rm -f conftest.file
10691188 ])
10701189
1071 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1190 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
10721191 #
10731192 # This file is free software; the Free Software Foundation
10741193 # gives unlimited permission to copy and/or distribute it,
11281247 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
11291248 ])
11301249
1131 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1250 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
11321251 #
11331252 # This file is free software; the Free Software Foundation
11341253 # gives unlimited permission to copy and/or distribute it,
11561275 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11571276 AC_SUBST([INSTALL_STRIP_PROGRAM])])
11581277
1159 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1278 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
11601279 #
11611280 # This file is free software; the Free Software Foundation
11621281 # gives unlimited permission to copy and/or distribute it,
11751294
11761295 # Check how to create a tarball. -*- Autoconf -*-
11771296
1178 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1297 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
11791298 #
11801299 # This file is free software; the Free Software Foundation
11811300 # gives unlimited permission to copy and/or distribute it,
22
33 scriptversion=2012-10-14.11; # UTC
44
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-06-10'
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2323 # program. This Exception is an additional permission under section 7
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525 #
26 # Originally written by Per Bothner.
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
2929 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3030 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
31 # Please send patches to <config-patches@gnu.org>.
3232
3333
3434 me=`echo "$0" | sed -e 's,.*/,,'`
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2013 Free Software Foundation, Inc.
52 Copyright 1992-2015 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
148148 LIBC=gnu
149149 #endif
150150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
152152 ;;
153153 esac
154154
167167 # Note: NetBSD doesn't particularly care about the vendor
168168 # portion of the name. We always set it to "unknown".
169169 sysctl="sysctl -n hw.machine_arch"
170 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
171 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
170 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
173 echo unknown)`
172174 case "${UNAME_MACHINE_ARCH}" in
173175 armeb) machine=armeb-unknown ;;
174176 arm*) machine=arm-unknown ;;
175177 sh3el) machine=shl-unknown ;;
176178 sh3eb) machine=sh-unknown ;;
177179 sh5el) machine=sh5le-unknown ;;
180 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
184 ;;
178185 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
179186 esac
180187 # The Operating System including object format, if it has switched
181188 # to ELF recently, or will in the future.
182189 case "${UNAME_MACHINE_ARCH}" in
183 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
190 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
184191 eval $set_cc_for_build
185192 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
186193 | grep -q __ELF__
196203 os=netbsd
197204 ;;
198205 esac
206 # Determine ABI tags.
207 case "${UNAME_MACHINE_ARCH}" in
208 earm*)
209 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
210 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
211 ;;
212 esac
199213 # The OS release
200214 # Debian GNU/NetBSD machines have a different userland, and
201215 # thus, need a distinct triplet. However, they do not need
206220 release='-gnu'
207221 ;;
208222 *)
209 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
223 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
210224 ;;
211225 esac
212226 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
213227 # contains redundant information, the shorter form:
214228 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215 echo "${machine}-${os}${release}"
229 echo "${machine}-${os}${release}${abi}"
216230 exit ;;
217231 *:Bitrig:*:*)
218232 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
233247 exit ;;
234248 *:MirBSD:*:*)
235249 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
250 exit ;;
251 *:Sortix:*:*)
252 echo ${UNAME_MACHINE}-unknown-sortix
236253 exit ;;
237254 alpha:OSF1:*:*)
238255 case $UNAME_RELEASE in
578595 else
579596 IBM_ARCH=powerpc
580597 fi
581 if [ -x /usr/bin/oslevel ] ; then
582 IBM_REV=`/usr/bin/oslevel`
598 if [ -x /usr/bin/lslpp ] ; then
599 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
600 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
583601 else
584602 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
585603 fi
825843 *:MINGW*:*)
826844 echo ${UNAME_MACHINE}-pc-mingw32
827845 exit ;;
828 i*:MSYS*:*)
846 *:MSYS*:*)
829847 echo ${UNAME_MACHINE}-pc-msys
830848 exit ;;
831849 i*:windows32*:*)
930948 exit ;;
931949 crisv32:Linux:*:*)
932950 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
951 exit ;;
952 e2k:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
933954 exit ;;
934955 frv:Linux:*:*)
935956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
968989 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
969990 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
970991 ;;
971 or1k:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 exit ;;
974 or32:Linux:*:*)
992 openrisc*:Linux:*:*)
993 echo or1k-unknown-linux-${LIBC}
994 exit ;;
995 or32:Linux:*:* | or1k*:Linux:*:*)
975996 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
976997 exit ;;
977998 padre:Linux:*:*)
10191040 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
10201041 exit ;;
10211042 x86_64:Linux:*:*)
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1043 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
10231044 exit ;;
10241045 xtensa*:Linux:*:*)
10251046 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
12591280 if test "$UNAME_PROCESSOR" = unknown ; then
12601281 UNAME_PROCESSOR=powerpc
12611282 fi
1262 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1263 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1264 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1265 grep IS_64BIT_ARCH >/dev/null
1266 then
1267 case $UNAME_PROCESSOR in
1268 i386) UNAME_PROCESSOR=x86_64 ;;
1269 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1270 esac
1283 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1284 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1285 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1286 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1287 grep IS_64BIT_ARCH >/dev/null
1288 then
1289 case $UNAME_PROCESSOR in
1290 i386) UNAME_PROCESSOR=x86_64 ;;
1291 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1292 esac
1293 fi
12711294 fi
1295 elif test "$UNAME_PROCESSOR" = i386 ; then
1296 # Avoid executing cc on OS X 10.9, as it ships with a stub
1297 # that puts up a graphical alert prompting to install
1298 # developer tools. Any system running Mac OS X 10.7 or
1299 # later (Darwin 11 and later) is required to have a 64-bit
1300 # processor. This is not true of the ARM version of Darwin
1301 # that Apple uses in portable devices.
1302 UNAME_PROCESSOR=x86_64
12721303 fi
12731304 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12741305 exit ;;
13601391 exit ;;
13611392 esac
13621393
1363 eval $set_cc_for_build
1364 cat >$dummy.c <<EOF
1365 #ifdef _SEQUENT_
1366 # include <sys/types.h>
1367 # include <sys/utsname.h>
1368 #endif
1369 main ()
1370 {
1371 #if defined (sony)
1372 #if defined (MIPSEB)
1373 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1374 I don't know.... */
1375 printf ("mips-sony-bsd\n"); exit (0);
1376 #else
1377 #include <sys/param.h>
1378 printf ("m68k-sony-newsos%s\n",
1379 #ifdef NEWSOS4
1380 "4"
1381 #else
1382 ""
1383 #endif
1384 ); exit (0);
1385 #endif
1386 #endif
1387
1388 #if defined (__arm) && defined (__acorn) && defined (__unix)
1389 printf ("arm-acorn-riscix\n"); exit (0);
1390 #endif
1391
1392 #if defined (hp300) && !defined (hpux)
1393 printf ("m68k-hp-bsd\n"); exit (0);
1394 #endif
1395
1396 #if defined (NeXT)
1397 #if !defined (__ARCHITECTURE__)
1398 #define __ARCHITECTURE__ "m68k"
1399 #endif
1400 int version;
1401 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1402 if (version < 4)
1403 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1404 else
1405 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1406 exit (0);
1407 #endif
1408
1409 #if defined (MULTIMAX) || defined (n16)
1410 #if defined (UMAXV)
1411 printf ("ns32k-encore-sysv\n"); exit (0);
1412 #else
1413 #if defined (CMU)
1414 printf ("ns32k-encore-mach\n"); exit (0);
1415 #else
1416 printf ("ns32k-encore-bsd\n"); exit (0);
1417 #endif
1418 #endif
1419 #endif
1420
1421 #if defined (__386BSD__)
1422 printf ("i386-pc-bsd\n"); exit (0);
1423 #endif
1424
1425 #if defined (sequent)
1426 #if defined (i386)
1427 printf ("i386-sequent-dynix\n"); exit (0);
1428 #endif
1429 #if defined (ns32000)
1430 printf ("ns32k-sequent-dynix\n"); exit (0);
1431 #endif
1432 #endif
1433
1434 #if defined (_SEQUENT_)
1435 struct utsname un;
1436
1437 uname(&un);
1438
1439 if (strncmp(un.version, "V2", 2) == 0) {
1440 printf ("i386-sequent-ptx2\n"); exit (0);
1441 }
1442 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1443 printf ("i386-sequent-ptx1\n"); exit (0);
1444 }
1445 printf ("i386-sequent-ptx\n"); exit (0);
1446
1447 #endif
1448
1449 #if defined (vax)
1450 # if !defined (ultrix)
1451 # include <sys/param.h>
1452 # if defined (BSD)
1453 # if BSD == 43
1454 printf ("vax-dec-bsd4.3\n"); exit (0);
1455 # else
1456 # if BSD == 199006
1457 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1458 # else
1459 printf ("vax-dec-bsd\n"); exit (0);
1460 # endif
1461 # endif
1462 # else
1463 printf ("vax-dec-bsd\n"); exit (0);
1464 # endif
1465 # else
1466 printf ("vax-dec-ultrix\n"); exit (0);
1467 # endif
1468 #endif
1469
1470 #if defined (alliant) && defined (i860)
1471 printf ("i860-alliant-bsd\n"); exit (0);
1472 #endif
1473
1474 exit (1);
1475 }
1476 EOF
1477
1478 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1479 { echo "$SYSTEM_NAME"; exit; }
1480
1481 # Apollos put the system type in the environment.
1482
1483 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1484
1485 # Convex versions that predate uname can use getsysinfo(1)
1486
1487 if [ -x /usr/convex/getsysinfo ]
1488 then
1489 case `getsysinfo -f cpu_type` in
1490 c1*)
1491 echo c1-convex-bsd
1492 exit ;;
1493 c2*)
1494 if getsysinfo -f scalar_acc
1495 then echo c32-convex-bsd
1496 else echo c2-convex-bsd
1497 fi
1498 exit ;;
1499 c34*)
1500 echo c34-convex-bsd
1501 exit ;;
1502 c38*)
1503 echo c38-convex-bsd
1504 exit ;;
1505 c4*)
1506 echo c4-convex-bsd
1507 exit ;;
1508 esac
1509 fi
1510
15111394 cat >&2 <<EOF
15121395 $0: unable to guess system type
15131396
5959 /* Defined to 1 if VA/X11 API is built */
6060 #undef HAVE_VA_X11
6161
62 /* Define to the sub-directory in which libtool stores uninstalled libraries.
63 */
62 /* Define to the sub-directory where libtool stores uninstalled libraries. */
6463 #undef LT_OBJDIR
6564
6665 /* Name of package */
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-08-10'
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525
2626
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
27 # Please send patches to <config-patches@gnu.org>.
2828 #
2929 # Configuration subroutine to validate and canonicalize a configuration type.
3030 # Supply the specified configuration type as an argument.
6767 version="\
6868 GNU config.sub ($timestamp)
6969
70 Copyright 1992-2013 Free Software Foundation, Inc.
70 Copyright 1992-2015 Free Software Foundation, Inc.
7171
7272 This is free software; see the source for copying conditions. There is NO
7373 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
116116 case $maybe_os in
117117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
120120 kopensolaris*-gnu* | \
121121 storm-chaos* | os2-emx* | rtmk-nova*)
122122 os=-$maybe_os
254254 | arc | arceb \
255255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256256 | avr | avr32 \
257 | ba \
257258 | be32 | be64 \
258259 | bfin \
259260 | c4x | c8051 | clipper \
260261 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
262 | fido | fr30 | frv \
262 | e2k | epiphany \
263 | fido | fr30 | frv | ft32 \
263264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264265 | hexagon \
265266 | i370 | i860 | i960 | ia64 \
266267 | ip2k | iq2000 \
268 | k1om \
267269 | le32 | le64 \
268270 | lm32 \
269271 | m32c | m32r | m32rle | m68000 | m68k | m88k \
281283 | mips64vr5900 | mips64vr5900el \
282284 | mipsisa32 | mipsisa32el \
283285 | mipsisa32r2 | mipsisa32r2el \
286 | mipsisa32r6 | mipsisa32r6el \
284287 | mipsisa64 | mipsisa64el \
285288 | mipsisa64r2 | mipsisa64r2el \
289 | mipsisa64r6 | mipsisa64r6el \
286290 | mipsisa64sb1 | mipsisa64sb1el \
287291 | mipsisa64sr71k | mipsisa64sr71kel \
288292 | mipsr5900 | mipsr5900el \
294298 | nds32 | nds32le | nds32be \
295299 | nios | nios2 | nios2eb | nios2el \
296300 | ns16k | ns32k \
297 | open8 \
298 | or1k | or32 \
301 | open8 | or1k | or1knd | or32 \
299302 | pdp10 | pdp11 | pj | pjl \
300303 | powerpc | powerpc64 | powerpc64le | powerpcle \
301304 | pyramid \
305 | riscv32 | riscv64 \
302306 | rl78 | rx \
303307 | score \
304 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
305309 | sh64 | sh64le \
306310 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
307311 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309313 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
310314 | ubicom32 \
311315 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316 | visium \
312317 | we32k \
313318 | x86 | xc16x | xstormy16 | xtensa \
314319 | z8k | z80)
323328 c6x)
324329 basic_machine=tic6x-unknown
325330 ;;
326 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
331 leon|leon[3-9])
332 basic_machine=sparc-$basic_machine
333 ;;
334 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
327335 basic_machine=$basic_machine-unknown
328336 os=-none
329337 ;;
368376 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
369377 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
370378 | avr-* | avr32-* \
379 | ba-* \
371380 | be32-* | be64-* \
372381 | bfin-* | bs2000-* \
373382 | c[123]* | c30-* | [cjt]90-* | c4x-* \
374383 | c8051-* | clipper-* | craynv-* | cydra-* \
375384 | d10v-* | d30v-* | dlx-* \
376 | elxsi-* \
385 | e2k-* | elxsi-* \
377386 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
378387 | h8300-* | h8500-* \
379388 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
380389 | hexagon-* \
381390 | i*86-* | i860-* | i960-* | ia64-* \
382391 | ip2k-* | iq2000-* \
392 | k1om-* \
383393 | le32-* | le64-* \
384394 | lm32-* \
385395 | m32c-* | m32r-* | m32rle-* \
399409 | mips64vr5900-* | mips64vr5900el-* \
400410 | mipsisa32-* | mipsisa32el-* \
401411 | mipsisa32r2-* | mipsisa32r2el-* \
412 | mipsisa32r6-* | mipsisa32r6el-* \
402413 | mipsisa64-* | mipsisa64el-* \
403414 | mipsisa64r2-* | mipsisa64r2el-* \
415 | mipsisa64r6-* | mipsisa64r6el-* \
404416 | mipsisa64sb1-* | mipsisa64sb1el-* \
405417 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
406418 | mipsr5900-* | mipsr5900el-* \
412424 | nios-* | nios2-* | nios2eb-* | nios2el-* \
413425 | none-* | np1-* | ns16k-* | ns32k-* \
414426 | open8-* \
427 | or1k*-* \
415428 | orion-* \
416429 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
417430 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
418431 | pyramid-* \
432 | riscv32-* | riscv64-* \
419433 | rl78-* | romp-* | rs6000-* | rx-* \
420434 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
421435 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
422436 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
423437 | sparclite-* \
424 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
438 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
425439 | tahoe-* \
426440 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
427441 | tile*-* \
429443 | ubicom32-* \
430444 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
431445 | vax-* \
446 | visium-* \
432447 | we32k-* \
433448 | x86-* | x86_64-* | xc16x-* | xps100-* \
434449 | xstormy16-* | xtensa*-* \
504519 aros)
505520 basic_machine=i386-pc
506521 os=-aros
522 ;;
523 asmjs)
524 basic_machine=asmjs-unknown
507525 ;;
508526 aux)
509527 basic_machine=m68k-apple
766784 basic_machine=m68k-isi
767785 os=-sysv
768786 ;;
787 leon-*|leon[3-9]-*)
788 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
789 ;;
769790 m68knommu)
770791 basic_machine=m68k-unknown
771792 os=-linux
820841 morphos)
821842 basic_machine=powerpc-unknown
822843 os=-morphos
844 ;;
845 moxiebox)
846 basic_machine=moxie-unknown
847 os=-moxiebox
823848 ;;
824849 msdos)
825850 basic_machine=i386-pc
13531378 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
13541379 | -sym* | -kopensolaris* | -plan9* \
13551380 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1356 | -aos* | -aros* \
1381 | -aos* | -aros* | -cloudabi* | -sortix* \
13571382 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13581383 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13591384 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
13661391 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
13671392 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13681393 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1369 | -uxpv* | -beos* | -mpeix* | -udk* \
1394 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
13701395 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13711396 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13721397 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13731398 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13741399 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13751400 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1376 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1401 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
13771402 # Remember, each alternative MUST END IN *, to match a version number.
13781403 ;;
13791404 -qnx*)
15911616 mips*-*)
15921617 os=-elf
15931618 ;;
1594 or1k-*)
1595 os=-elf
1596 ;;
15971619 or32-*)
15981620 os=-coff
15991621 ;;
+1892
-1334
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libva 1.8.1.
2 # Generated by GNU Autoconf 2.69 for libva 1.8.2.
33 #
44 # Report bugs to <https://github.com/01org/libva/issues/new>.
55 #
589589 # Identity of this package.
590590 PACKAGE_NAME='libva'
591591 PACKAGE_TARNAME='libva'
592 PACKAGE_VERSION='1.8.1'
593 PACKAGE_STRING='libva 1.8.1'
592 PACKAGE_VERSION='1.8.2'
593 PACKAGE_STRING='libva 1.8.2'
594594 PACKAGE_BUGREPORT='https://github.com/01org/libva/issues/new'
595595 PACKAGE_URL='https://github.com/01org/libva'
596596
677677 CXXFLAGS
678678 CXX
679679 CPP
680 LT_SYS_LIBRARY_PATH
680681 OTOOL64
681682 OTOOL
682683 LIPO
783784 docdir
784785 oldincludedir
785786 includedir
787 runstatedir
786788 localstatedir
787789 sharedstatedir
788790 sysconfdir
819821 enable_shared
820822 with_pic
821823 enable_fast_install
824 with_aix_soname
822825 enable_dependency_tracking
823826 with_gnu_ld
824827 with_sysroot
833836 LDFLAGS
834837 LIBS
835838 CPPFLAGS
839 LT_SYS_LIBRARY_PATH
836840 CPP
837841 CXX
838842 CXXFLAGS
893897 sysconfdir='${prefix}/etc'
894898 sharedstatedir='${prefix}/com'
895899 localstatedir='${prefix}/var'
900 runstatedir='${localstatedir}/run'
896901 includedir='${prefix}/include'
897902 oldincludedir='/usr/include'
898903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
11451150 | -silent | --silent | --silen | --sile | --sil)
11461151 silent=yes ;;
11471152
1153 -runstatedir | --runstatedir | --runstatedi | --runstated \
1154 | --runstate | --runstat | --runsta | --runst | --runs \
1155 | --run | --ru | --r)
1156 ac_prev=runstatedir ;;
1157 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1158 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1159 | --run=* | --ru=* | --r=*)
1160 runstatedir=$ac_optarg ;;
1161
11481162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11491163 ac_prev=sbindir ;;
11501164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12821296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12831297 datadir sysconfdir sharedstatedir localstatedir includedir \
12841298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1299 libdir localedir mandir runstatedir
12861300 do
12871301 eval ac_val=\$$ac_var
12881302 # Remove trailing slashes.
13951409 # Omit some internal or obsolete options to make the list less imposing.
13961410 # This message is too long to be a string in the A/UX 3.1 sh.
13971411 cat <<_ACEOF
1398 \`configure' configures libva 1.8.1 to adapt to many kinds of systems.
1412 \`configure' configures libva 1.8.2 to adapt to many kinds of systems.
13991413
14001414 Usage: $0 [OPTION]... [VAR=VALUE]...
14011415
14351449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14361450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14371451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14381453 --libdir=DIR object code libraries [EPREFIX/lib]
14391454 --includedir=DIR C header files [PREFIX/include]
14401455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
14651480
14661481 if test -n "$ac_init_help"; then
14671482 case $ac_init_help in
1468 short | recursive ) echo "Configuration of libva 1.8.1:";;
1483 short | recursive ) echo "Configuration of libva 1.8.2:";;
14691484 esac
14701485 cat <<\_ACEOF
14711486
15011516 drivers path
15021517 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
15031518 both]
1519 --with-aix-soname=aix|svr4|both
1520 shared library versioning (aka "SONAME") variant to
1521 provide on AIX, [default=aix].
15041522 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-sysroot=DIR Search for dependent libraries within DIR
1506 (or the compiler's sysroot if not specified).
1523 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1524 compiler's sysroot if not specified).
15071525
15081526 Some influential environment variables:
15091527 CC C compiler command
15131531 LIBS libraries to pass to the linker, e.g. -l<library>
15141532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
15151533 you have headers in a nonstandard directory <include dir>
1534 LT_SYS_LIBRARY_PATH
1535 User-defined run-time library search path.
15161536 CPP C preprocessor
15171537 CXX C++ compiler command
15181538 CXXFLAGS C++ compiler flags
16071627 test -n "$ac_init_help" && exit $ac_status
16081628 if $ac_init_version; then
16091629 cat <<\_ACEOF
1610 libva configure 1.8.1
1630 libva configure 1.8.2
16111631 generated by GNU Autoconf 2.69
16121632
16131633 Copyright (C) 2012 Free Software Foundation, Inc.
20972117 This file contains any messages produced by compilers while
20982118 running configure, to aid debugging if configure makes a mistake.
20992119
2100 It was created by libva $as_me 1.8.1, which was
2120 It was created by libva $as_me 1.8.2, which was
21012121 generated by GNU Autoconf 2.69. Invocation command line was
21022122
21032123 $ $0 $@
24482468
24492469
24502470
2451 am__api_version='1.14'
2471 am__api_version='1.15'
24522472
24532473 ac_aux_dir=
24542474 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
26492669 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
26502670 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
26512671
2652 # expand $ac_aux_dir to an absolute path
2653 am_aux_dir=`cd $ac_aux_dir && pwd`
2672 # Expand $ac_aux_dir to an absolute path.
2673 am_aux_dir=`cd "$ac_aux_dir" && pwd`
26542674
26552675 if test x"${MISSING+set}" != xset; then
26562676 case $am_aux_dir in
26692689 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26702690 fi
26712691
2672 if test x"${install_sh}" != xset; then
2692 if test x"${install_sh+set}" != xset; then
26732693 case $am_aux_dir in
26742694 *\ * | *\ *)
26752695 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
29632983
29642984 # Define the identity of the package.
29652985 PACKAGE='libva'
2966 VERSION='1.8.1'
2986 VERSION='1.8.2'
29672987
29682988
29692989 cat >>confdefs.h <<_ACEOF
29973017 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
29983018 mkdir_p='$(MKDIR_P)'
29993019
3000 # We need awk for the "check" target. The system "awk" is bad on
3001 # some platforms.
3020 # We need awk for the "check" target (and possibly the TAP driver). The
3021 # system "awk" is bad on some platforms.
30023022 # Always define AMTAR for backward compatibility. Yes, it's still used
30033023 # in the wild :-( We should find a proper way to deprecate it ...
30043024 AMTAR='$${TAR-tar}'
30563076 fi
30573077 fi
30583078
3079
30593080 ac_config_headers="$ac_config_headers config.h"
30603081
30613082 # Check whether --enable-silent-rules was given.
31123133
31133134 LIBVA_MAJOR_VERSION=1
31143135 LIBVA_MINOR_VERSION=8
3115 LIBVA_MICRO_VERSION=1
3116 LIBVA_VERSION=1.8.1
3136 LIBVA_MICRO_VERSION=2
3137 LIBVA_VERSION=1.8.2
31173138
31183139
31193140
32203241 *)
32213242 enable_static=no
32223243 # Look at the argument we got. We use all the common list separators.
3223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3244 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
32243245 for pkg in $enableval; do
3225 IFS="$lt_save_ifs"
3246 IFS=$lt_save_ifs
32263247 if test "X$pkg" = "X$p"; then
32273248 enable_static=yes
32283249 fi
32293250 done
3230 IFS="$lt_save_ifs"
3251 IFS=$lt_save_ifs
32313252 ;;
32323253 esac
32333254 else
32503271
32513272
32523273
3253 macro_version='2.4.2'
3254 macro_revision='1.3337'
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268 ltmain="$ac_aux_dir/ltmain.sh"
3274 macro_version='2.4.6'
3275 macro_revision='2.4.6'
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289 ltmain=$ac_aux_dir/ltmain.sh
32693290
32703291 # Make sure we can run config.sub.
32713292 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
33853406 $ECHO ""
33863407 }
33873408
3388 case "$ECHO" in
3409 case $ECHO in
33893410 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
33903411 $as_echo "printf" >&6; } ;;
33913412 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
47474768
47484769 # Check whether --with-gnu-ld was given.
47494770 if test "${with_gnu_ld+set}" = set; then :
4750 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4771 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
47514772 else
47524773 with_gnu_ld=no
47534774 fi
47544775
47554776 ac_prog=ld
4756 if test "$GCC" = yes; then
4777 if test yes = "$GCC"; then
47574778 # Check if gcc -print-prog-name=ld gives a path.
47584779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
47594780 $as_echo_n "checking for ld used by $CC... " >&6; }
47604781 case $host in
47614782 *-*-mingw*)
4762 # gcc leaves a trailing carriage return which upsets mingw
4783 # gcc leaves a trailing carriage return, which upsets mingw
47634784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
47644785 *)
47654786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
47734794 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
47744795 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
47754796 done
4776 test -z "$LD" && LD="$ac_prog"
4797 test -z "$LD" && LD=$ac_prog
47774798 ;;
47784799 "")
47794800 # If it fails, then pretend we aren't using GCC.
47844805 with_gnu_ld=unknown
47854806 ;;
47864807 esac
4787 elif test "$with_gnu_ld" = yes; then
4808 elif test yes = "$with_gnu_ld"; then
47884809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
47894810 $as_echo_n "checking for GNU ld... " >&6; }
47904811 else
47954816 $as_echo_n "(cached) " >&6
47964817 else
47974818 if test -z "$LD"; then
4798 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47994820 for ac_dir in $PATH; do
4800 IFS="$lt_save_ifs"
4821 IFS=$lt_save_ifs
48014822 test -z "$ac_dir" && ac_dir=.
48024823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4803 lt_cv_path_LD="$ac_dir/$ac_prog"
4824 lt_cv_path_LD=$ac_dir/$ac_prog
48044825 # Check to see if the program is GNU ld. I'd rather use --version,
48054826 # but apparently some variants of GNU ld only accept -v.
48064827 # Break only if it was the GNU/non-GNU ld that we prefer.
48074828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
48084829 *GNU* | *'with BFD'*)
4809 test "$with_gnu_ld" != no && break
4830 test no != "$with_gnu_ld" && break
48104831 ;;
48114832 *)
4812 test "$with_gnu_ld" != yes && break
4833 test yes != "$with_gnu_ld" && break
48134834 ;;
48144835 esac
48154836 fi
48164837 done
4817 IFS="$lt_save_ifs"
4818 else
4819 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4820 fi
4821 fi
4822
4823 LD="$lt_cv_path_LD"
4838 IFS=$lt_save_ifs
4839 else
4840 lt_cv_path_LD=$LD # Let the user override the test with a path.
4841 fi
4842 fi
4843
4844 LD=$lt_cv_path_LD
48244845 if test -n "$LD"; then
48254846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
48264847 $as_echo "$LD" >&6; }
48634884 else
48644885 if test -n "$NM"; then
48654886 # Let the user override the test.
4866 lt_cv_path_NM="$NM"
4867 else
4868 lt_nm_to_check="${ac_tool_prefix}nm"
4887 lt_cv_path_NM=$NM
4888 else
4889 lt_nm_to_check=${ac_tool_prefix}nm
48694890 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
48704891 lt_nm_to_check="$lt_nm_to_check nm"
48714892 fi
48724893 for lt_tmp_nm in $lt_nm_to_check; do
4873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4894 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
48744895 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4875 IFS="$lt_save_ifs"
4896 IFS=$lt_save_ifs
48764897 test -z "$ac_dir" && ac_dir=.
4877 tmp_nm="$ac_dir/$lt_tmp_nm"
4878 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4898 tmp_nm=$ac_dir/$lt_tmp_nm
4899 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
48794900 # Check to see if the nm accepts a BSD-compat flag.
4880 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4901 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
48814902 # nm: unknown option "B" ignored
48824903 # Tru64's nm complains that /dev/null is an invalid object file
4883 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4884 */dev/null* | *'Invalid file or object type'*)
4904 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4905 case $build_os in
4906 mingw*) lt_bad_file=conftest.nm/nofile ;;
4907 *) lt_bad_file=/dev/null ;;
4908 esac
4909 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4910 *$lt_bad_file* | *'Invalid file or object type'*)
48854911 lt_cv_path_NM="$tmp_nm -B"
4886 break
4912 break 2
48874913 ;;
48884914 *)
48894915 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
48904916 */dev/null*)
48914917 lt_cv_path_NM="$tmp_nm -p"
4892 break
4918 break 2
48934919 ;;
48944920 *)
48954921 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
49004926 esac
49014927 fi
49024928 done
4903 IFS="$lt_save_ifs"
4929 IFS=$lt_save_ifs
49044930 done
49054931 : ${lt_cv_path_NM=no}
49064932 fi
49074933 fi
49084934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
49094935 $as_echo "$lt_cv_path_NM" >&6; }
4910 if test "$lt_cv_path_NM" != "no"; then
4911 NM="$lt_cv_path_NM"
4936 if test no != "$lt_cv_path_NM"; then
4937 NM=$lt_cv_path_NM
49124938 else
49134939 # Didn't find any BSD compatible name lister, look for dumpbin.
49144940 if test -n "$DUMPBIN"; then :
50145040 fi
50155041 fi
50165042
5017 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5043 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
50185044 *COFF*)
5019 DUMPBIN="$DUMPBIN -symbols"
5045 DUMPBIN="$DUMPBIN -symbols -headers"
50205046 ;;
50215047 *)
50225048 DUMPBIN=:
50245050 esac
50255051 fi
50265052
5027 if test "$DUMPBIN" != ":"; then
5028 NM="$DUMPBIN"
5053 if test : != "$DUMPBIN"; then
5054 NM=$DUMPBIN
50295055 fi
50305056 fi
50315057 test -z "$NM" && NM=nm
50765102 $as_echo_n "(cached) " >&6
50775103 else
50785104 i=0
5079 teststring="ABCD"
5105 teststring=ABCD
50805106
50815107 case $build_os in
50825108 msdosdjgpp*)
51165142 lt_cv_sys_max_cmd_len=8192;
51175143 ;;
51185144
5119 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5145 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
51205146 # This has been around since 386BSD, at least. Likely further.
51215147 if test -x /sbin/sysctl; then
51225148 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
51675193 *)
51685194 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
51695195 if test -n "$lt_cv_sys_max_cmd_len" && \
5170 test undefined != "$lt_cv_sys_max_cmd_len"; then
5196 test undefined != "$lt_cv_sys_max_cmd_len"; then
51715197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
51725198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
51735199 else
51745200 # Make teststring a little bigger before we do anything with it.
51755201 # a 1K string should be a reasonable start.
5176 for i in 1 2 3 4 5 6 7 8 ; do
5202 for i in 1 2 3 4 5 6 7 8; do
51775203 teststring=$teststring$teststring
51785204 done
51795205 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
51805206 # If test is not a shell built-in, we'll probably end up computing a
51815207 # maximum length that is only half of the actual maximum length, but
51825208 # we can't tell.
5183 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5209 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
51845210 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5185 test $i != 17 # 1/2 MB should be enough
5211 test 17 != "$i" # 1/2 MB should be enough
51865212 do
51875213 i=`expr $i + 1`
51885214 teststring=$teststring$teststring
52005226
52015227 fi
52025228
5203 if test -n $lt_cv_sys_max_cmd_len ; then
5229 if test -n "$lt_cv_sys_max_cmd_len"; then
52045230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
52055231 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
52065232 else
52175243 : ${CP="cp -f"}
52185244 : ${MV="mv -f"}
52195245 : ${RM="rm -f"}
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5222 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5223 # Try some XSI features
5224 xsi_shell=no
5225 ( _lt_dummy="a/b/c"
5226 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5227 = c,a/b,b/c, \
5228 && eval 'test $(( 1 + 1 )) -eq 2 \
5229 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5230 && xsi_shell=yes
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5232 $as_echo "$xsi_shell" >&6; }
5233
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5236 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5237 lt_shell_append=no
5238 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5239 >/dev/null 2>&1 \
5240 && lt_shell_append=yes
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5242 $as_echo "$lt_shell_append" >&6; }
5243
52445246
52455247 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52465248 lt_unset=unset
53645366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
53655367 case $host_os in
53665368 cygwin* | mingw* | pw32* | cegcc*)
5367 if test "$GCC" != yes; then
5369 if test yes != "$GCC"; then
53685370 reload_cmds=false
53695371 fi
53705372 ;;
53715373 darwin*)
5372 if test "$GCC" = yes; then
5373 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5374 if test yes = "$GCC"; then
5375 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
53745376 else
53755377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
53765378 fi
54985500 # Need to set the preceding variable on all platforms that support
54995501 # interlibrary dependencies.
55005502 # 'none' -- dependencies not supported.
5501 # `unknown' -- same as none, but documents that we really don't know.
5503 # 'unknown' -- same as none, but documents that we really don't know.
55025504 # 'pass_all' -- all dependencies passed with no checks.
55035505 # 'test_compile' -- check by making test program.
55045506 # 'file_magic [[regex]]' -- check by looking for files in library path
5505 # which responds to the $file_magic_cmd with a given extended regex.
5506 # If you have `file' or equivalent on your system and you're not sure
5507 # whether `pass_all' will *always* work, you probably want this one.
5507 # that responds to the $file_magic_cmd with a given extended regex.
5508 # If you have 'file' or equivalent on your system and you're not sure
5509 # whether 'pass_all' will *always* work, you probably want this one.
55085510
55095511 case $host_os in
55105512 aix[4-9]*)
55315533 # Base MSYS/MinGW do not provide the 'file' command needed by
55325534 # func_win32_libid shell function, so use a weaker test based on 'objdump',
55335535 # unless we find 'file', for example because we are cross-compiling.
5534 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5535 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5536 if ( file / ) >/dev/null 2>&1; then
55365537 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
55375538 lt_cv_file_magic_cmd='func_win32_libid'
55385539 else
56285629 lt_cv_deplibs_check_method=pass_all
56295630 ;;
56305631
5631 openbsd*)
5632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5632 openbsd* | bitrig*)
5633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
56335634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
56345635 else
56355636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
56825683 tpf*)
56835684 lt_cv_deplibs_check_method=pass_all
56845685 ;;
5686 os2*)
5687 lt_cv_deplibs_check_method=pass_all
5688 ;;
56855689 esac
56865690
56875691 fi
58395843
58405844 case $host_os in
58415845 cygwin* | mingw* | pw32* | cegcc*)
5842 # two different shell functions defined in ltmain.sh
5843 # decide which to use based on capabilities of $DLLTOOL
5846 # two different shell functions defined in ltmain.sh;
5847 # decide which one to use based on capabilities of $DLLTOOL
58445848 case `$DLLTOOL --help 2>&1` in
58455849 *--identify-strict*)
58465850 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
58525856 ;;
58535857 *)
58545858 # fallback: assume linklib IS sharedlib
5855 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5859 lt_cv_sharedlib_from_linklib_cmd=$ECHO
58565860 ;;
58575861 esac
58585862
60076011 ac_status=$?
60086012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60096013 test $ac_status = 0; }
6010 if test "$ac_status" -eq 0; then
6014 if test 0 -eq "$ac_status"; then
60116015 # Ensure the archiver fails upon bogus file names.
60126016 rm -f conftest.$ac_objext libconftest.a
60136017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
60156019 ac_status=$?
60166020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60176021 test $ac_status = 0; }
6018 if test "$ac_status" -ne 0; then
6022 if test 0 -ne "$ac_status"; then
60196023 lt_cv_ar_at_file=@
60206024 fi
60216025 fi
60286032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
60296033 $as_echo "$lt_cv_ar_at_file" >&6; }
60306034
6031 if test "x$lt_cv_ar_at_file" = xno; then
6035 if test no = "$lt_cv_ar_at_file"; then
60326036 archiver_list_spec=
60336037 else
60346038 archiver_list_spec=$lt_cv_ar_at_file
62456249
62466250 if test -n "$RANLIB"; then
62476251 case $host_os in
6248 openbsd*)
6252 bitrig* | openbsd*)
62496253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
62506254 ;;
62516255 *)
63356339 symcode='[ABCDGISTW]'
63366340 ;;
63376341 hpux*)
6338 if test "$host_cpu" = ia64; then
6342 if test ia64 = "$host_cpu"; then
63396343 symcode='[ABCDEGRST]'
63406344 fi
63416345 ;;
63686372 symcode='[ABCDGIRSTW]' ;;
63696373 esac
63706374
6375 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6376 # Gets list of data symbols to import.
6377 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6378 # Adjust the below global symbol transforms to fixup imported variables.
6379 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6380 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6381 lt_c_name_lib_hook="\
6382 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6383 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6384 else
6385 # Disable hooks by default.
6386 lt_cv_sys_global_symbol_to_import=
6387 lt_cdecl_hook=
6388 lt_c_name_hook=
6389 lt_c_name_lib_hook=
6390 fi
6391
63716392 # Transform an extracted symbol line into a proper C declaration.
63726393 # Some systems (esp. on ia64) link data and code symbols differently,
63736394 # so use this general approach.
6374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6395 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6396 $lt_cdecl_hook\
6397 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6398 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
63756399
63766400 # Transform an extracted symbol line into symbol name and symbol address
6377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6378 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'"
6401 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6402 $lt_c_name_hook\
6403 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6404 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6405
6406 # Transform an extracted symbol line into symbol name with lib prefix and
6407 # symbol address.
6408 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6409 $lt_c_name_lib_hook\
6410 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6411 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6412 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
63796413
63806414 # Handle CRLF in mingw tool chain
63816415 opt_cr=
63936427
63946428 # Write the raw and C identifiers.
63956429 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6396 # Fake it for dumpbin and say T for any non-static function
6397 # and D for any global variable.
6430 # Fake it for dumpbin and say T for any non-static function,
6431 # D for any global variable and I for any imported variable.
63986432 # Also find C++ and __fastcall symbols from MSVC++,
63996433 # which start with @ or ?.
64006434 lt_cv_sys_global_symbol_pipe="$AWK '"\
64016435 " {last_section=section; section=\$ 3};"\
64026436 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
64036437 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6438 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6439 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6440 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
64046441 " \$ 0!~/External *\|/{next};"\
64056442 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
64066443 " {if(hide[section]) next};"\
6407 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6408 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6409 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6410 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6444 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6445 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6446 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6447 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
64116448 " ' prfx=^$ac_symprfx"
64126449 else
64136450 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
64556492 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
64566493 cat <<_LT_EOF > conftest.$ac_ext
64576494 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6458 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6459 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6495 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6496 /* DATA imports from DLLs on WIN32 can't be const, because runtime
64606497 relocations are performed -- see ld's documentation on pseudo-relocs. */
64616498 # define LT_DLSYM_CONST
6462 #elif defined(__osf__)
6499 #elif defined __osf__
64636500 /* This system does not cope well with relocations in const data. */
64646501 # define LT_DLSYM_CONST
64656502 #else
64856522 {
64866523 { "@PROGRAM@", (void *) 0 },
64876524 _LT_EOF
6488 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6525 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
64896526 cat <<\_LT_EOF >> conftest.$ac_ext
64906527 {0, (void *) 0}
64916528 };
65056542 mv conftest.$ac_objext conftstm.$ac_objext
65066543 lt_globsym_save_LIBS=$LIBS
65076544 lt_globsym_save_CFLAGS=$CFLAGS
6508 LIBS="conftstm.$ac_objext"
6545 LIBS=conftstm.$ac_objext
65096546 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
65106547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
65116548 (eval $ac_link) 2>&5
65126549 ac_status=$?
65136550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6551 test $ac_status = 0; } && test -s conftest$ac_exeext; then
65156552 pipe_works=yes
65166553 fi
65176554 LIBS=$lt_globsym_save_LIBS
65326569 rm -rf conftest* conftst*
65336570
65346571 # Do not use the global_symbol_pipe unless it works.
6535 if test "$pipe_works" = yes; then
6572 if test yes = "$pipe_works"; then
65366573 break
65376574 else
65386575 lt_cv_sys_global_symbol_pipe=
65856622
65866623
65876624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
65886635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
65896636 $as_echo_n "checking for sysroot... " >&6; }
65906637
65976644
65986645
65996646 lt_sysroot=
6600 case ${with_sysroot} in #(
6647 case $with_sysroot in #(
66016648 yes)
6602 if test "$GCC" = yes; then
6649 if test yes = "$GCC"; then
66036650 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
66046651 fi
66056652 ;; #(
66096656 no|'')
66106657 ;; #(
66116658 *)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6613 $as_echo "${with_sysroot}" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6660 $as_echo "$with_sysroot" >&6; }
66146661 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
66156662 ;;
66166663 esac
66226669
66236670
66246671
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6673 $as_echo_n "checking for a working dd... " >&6; }
6674 if ${ac_cv_path_lt_DD+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 printf 0123456789abcdef0123456789abcdef >conftest.i
6678 cat conftest.i conftest.i >conftest2.i
6679 : ${lt_DD:=$DD}
6680 if test -z "$lt_DD"; then
6681 ac_path_lt_DD_found=false
6682 # Loop through the user's path and test for each of PROGNAME-LIST
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_prog in dd; do
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6691 as_fn_executable_p "$ac_path_lt_DD" || continue
6692 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6693 cmp -s conftest.i conftest.out \
6694 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6695 fi
6696 $ac_path_lt_DD_found && break 3
6697 done
6698 done
6699 done
6700 IFS=$as_save_IFS
6701 if test -z "$ac_cv_path_lt_DD"; then
6702 :
6703 fi
6704 else
6705 ac_cv_path_lt_DD=$lt_DD
6706 fi
6707
6708 rm -f conftest.i conftest2.i conftest.out
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6711 $as_echo "$ac_cv_path_lt_DD" >&6; }
6712
6713
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6715 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6716 if ${lt_cv_truncate_bin+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 printf 0123456789abcdef0123456789abcdef >conftest.i
6720 cat conftest.i conftest.i >conftest2.i
6721 lt_cv_truncate_bin=
6722 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6723 cmp -s conftest.i conftest.out \
6724 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6725 fi
6726 rm -f conftest.i conftest2.i conftest.out
6727 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6728 fi
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6730 $as_echo "$lt_cv_truncate_bin" >&6; }
6731
6732
6733
6734
6735
6736
6737
6738 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6739 func_cc_basename ()
6740 {
6741 for cc_temp in $*""; do
6742 case $cc_temp in
6743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6745 \-*) ;;
6746 *) break;;
6747 esac
6748 done
6749 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6750 }
6751
66256752 # Check whether --enable-libtool-lock was given.
66266753 if test "${enable_libtool_lock+set}" = set; then :
66276754 enableval=$enable_libtool_lock;
66286755 fi
66296756
6630 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6757 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
66316758
66326759 # Some flags need to be propagated to the compiler or linker for good
66336760 # libtool support.
66346761 case $host in
66356762 ia64-*-hpux*)
6636 # Find out which ABI we are using.
6763 # Find out what ABI is being produced by ac_compile, and set mode
6764 # options accordingly.
66376765 echo 'int i;' > conftest.$ac_ext
66386766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
66396767 (eval $ac_compile) 2>&5
66426770 test $ac_status = 0; }; then
66436771 case `/usr/bin/file conftest.$ac_objext` in
66446772 *ELF-32*)
6645 HPUX_IA64_MODE="32"
6773 HPUX_IA64_MODE=32
66466774 ;;
66476775 *ELF-64*)
6648 HPUX_IA64_MODE="64"
6776 HPUX_IA64_MODE=64
66496777 ;;
66506778 esac
66516779 fi
66526780 rm -rf conftest*
66536781 ;;
66546782 *-*-irix6*)
6655 # Find out which ABI we are using.
6783 # Find out what ABI is being produced by ac_compile, and set linker
6784 # options accordingly.
66566785 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
66576786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
66586787 (eval $ac_compile) 2>&5
66596788 ac_status=$?
66606789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66616790 test $ac_status = 0; }; then
6662 if test "$lt_cv_prog_gnu_ld" = yes; then
6791 if test yes = "$lt_cv_prog_gnu_ld"; then
66636792 case `/usr/bin/file conftest.$ac_objext` in
66646793 *32-bit*)
66656794 LD="${LD-ld} -melf32bsmip"
66886817 rm -rf conftest*
66896818 ;;
66906819
6820 mips64*-*linux*)
6821 # Find out what ABI is being produced by ac_compile, and set linker
6822 # options accordingly.
6823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6825 (eval $ac_compile) 2>&5
6826 ac_status=$?
6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828 test $ac_status = 0; }; then
6829 emul=elf
6830 case `/usr/bin/file conftest.$ac_objext` in
6831 *32-bit*)
6832 emul="${emul}32"
6833 ;;
6834 *64-bit*)
6835 emul="${emul}64"
6836 ;;
6837 esac
6838 case `/usr/bin/file conftest.$ac_objext` in
6839 *MSB*)
6840 emul="${emul}btsmip"
6841 ;;
6842 *LSB*)
6843 emul="${emul}ltsmip"
6844 ;;
6845 esac
6846 case `/usr/bin/file conftest.$ac_objext` in
6847 *N32*)
6848 emul="${emul}n32"
6849 ;;
6850 esac
6851 LD="${LD-ld} -m $emul"
6852 fi
6853 rm -rf conftest*
6854 ;;
6855
66916856 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
66926857 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6693 # Find out which ABI we are using.
6858 # Find out what ABI is being produced by ac_compile, and set linker
6859 # options accordingly. Note that the listed cases only cover the
6860 # situations where additional linker options are needed (such as when
6861 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6862 # vice versa); the common cases where no linker options are needed do
6863 # not appear in the list.
66946864 echo 'int i;' > conftest.$ac_ext
66956865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
66966866 (eval $ac_compile) 2>&5
67136883 ;;
67146884 esac
67156885 ;;
6716 powerpc64le-*)
6886 powerpc64le-*linux*)
67176887 LD="${LD-ld} -m elf32lppclinux"
67186888 ;;
6719 powerpc64-*)
6889 powerpc64-*linux*)
67206890 LD="${LD-ld} -m elf32ppclinux"
67216891 ;;
67226892 s390x-*linux*)
67356905 x86_64-*linux*)
67366906 LD="${LD-ld} -m elf_x86_64"
67376907 ;;
6738 powerpcle-*)
6908 powerpcle-*linux*)
67396909 LD="${LD-ld} -m elf64lppc"
67406910 ;;
6741 powerpc-*)
6911 powerpc-*linux*)
67426912 LD="${LD-ld} -m elf64ppc"
67436913 ;;
67446914 s390*-*linux*|s390*-*tpf*)
67566926
67576927 *-*-sco3.2v5*)
67586928 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6759 SAVE_CFLAGS="$CFLAGS"
6929 SAVE_CFLAGS=$CFLAGS
67606930 CFLAGS="$CFLAGS -belf"
67616931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
67626932 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
67966966 fi
67976967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
67986968 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6799 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6969 if test yes != "$lt_cv_cc_needs_belf"; then
68006970 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6801 CFLAGS="$SAVE_CFLAGS"
6971 CFLAGS=$SAVE_CFLAGS
68026972 fi
68036973 ;;
68046974 *-*solaris*)
6805 # Find out which ABI we are using.
6975 # Find out what ABI is being produced by ac_compile, and set linker
6976 # options accordingly.
68066977 echo 'int i;' > conftest.$ac_ext
68076978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68086979 (eval $ac_compile) 2>&5
68146985 case $lt_cv_prog_gnu_ld in
68156986 yes*)
68166987 case $host in
6817 i?86-*-solaris*)
6988 i?86-*-solaris*|x86_64-*-solaris*)
68186989 LD="${LD-ld} -m elf_x86_64"
68196990 ;;
68206991 sparc*-*-solaris*)
68236994 esac
68246995 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
68256996 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6826 LD="${LD-ld}_sol2"
6997 LD=${LD-ld}_sol2
68276998 fi
68286999 ;;
68297000 *)
68397010 ;;
68407011 esac
68417012
6842 need_locks="$enable_libtool_lock"
7013 need_locks=$enable_libtool_lock
68437014
68447015 if test -n "$ac_tool_prefix"; then
68457016 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
69507121 fi
69517122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
69527123 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6953 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7124 if test yes != "$lt_cv_path_mainfest_tool"; then
69547125 MANIFEST_TOOL=:
69557126 fi
69567127
74537624 $as_echo_n "(cached) " >&6
74547625 else
74557626 lt_cv_apple_cc_single_mod=no
7456 if test -z "${LT_MULTI_MODULE}"; then
7627 if test -z "$LT_MULTI_MODULE"; then
74577628 # By default we will add the -single_module flag. You can override
74587629 # by either setting the environment variable LT_MULTI_MODULE
74597630 # non-empty at configure time, or by adding -multi_module to the
74717642 cat conftest.err >&5
74727643 # Otherwise, if the output was created with a 0 exit code from
74737644 # the compiler, it worked.
7474 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7645 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
74757646 lt_cv_apple_cc_single_mod=yes
74767647 else
74777648 cat conftest.err >&5
75107681 fi
75117682 rm -f core conftest.err conftest.$ac_objext \
75127683 conftest$ac_exeext conftest.$ac_ext
7513 LDFLAGS="$save_LDFLAGS"
7684 LDFLAGS=$save_LDFLAGS
75147685
75157686 fi
75167687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
75397710 _lt_result=$?
75407711 if test -s conftest.err && $GREP force_load conftest.err; then
75417712 cat conftest.err >&5
7542 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7713 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
75437714 lt_cv_ld_force_load=yes
75447715 else
75457716 cat conftest.err >&5
75527723 $as_echo "$lt_cv_ld_force_load" >&6; }
75537724 case $host_os in
75547725 rhapsody* | darwin1.[012])
7555 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7726 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
75567727 darwin1.*)
7557 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7728 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
75587729 darwin*) # darwin 5.x on
75597730 # if running on 10.5 or later, the deployment target defaults
75607731 # to the OS version, if on x86, and 10.4, the deployment
75617732 # target defaults to 10.4. Don't you love it?
75627733 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
75637734 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7564 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7565 10.[012]*)
7566 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7735 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7736 10.[012][,.]*)
7737 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
75677738 10.*)
7568 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7739 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
75697740 esac
75707741 ;;
75717742 esac
7572 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7743 if test yes = "$lt_cv_apple_cc_single_mod"; then
75737744 _lt_dar_single_mod='$single_module'
75747745 fi
7575 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7576 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7746 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7747 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
75777748 else
7578 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7749 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
75797750 fi
7580 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7751 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
75817752 _lt_dsymutil='~$DSYMUTIL $lib || :'
75827753 else
75837754 _lt_dsymutil=
75847755 fi
75857756 ;;
75867757 esac
7758
7759 # func_munge_path_list VARIABLE PATH
7760 # -----------------------------------
7761 # VARIABLE is name of variable containing _space_ separated list of
7762 # directories to be munged by the contents of PATH, which is string
7763 # having a format:
7764 # "DIR[:DIR]:"
7765 # string "DIR[ DIR]" will be prepended to VARIABLE
7766 # ":DIR[:DIR]"
7767 # string "DIR[ DIR]" will be appended to VARIABLE
7768 # "DIRP[:DIRP]::[DIRA:]DIRA"
7769 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7770 # "DIRA[ DIRA]" will be appended to VARIABLE
7771 # "DIR[:DIR]"
7772 # VARIABLE will be replaced by "DIR[ DIR]"
7773 func_munge_path_list ()
7774 {
7775 case x$2 in
7776 x)
7777 ;;
7778 *:)
7779 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7780 ;;
7781 x:*)
7782 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7783 ;;
7784 *::*)
7785 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7786 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7787 ;;
7788 *)
7789 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7790 ;;
7791 esac
7792 }
75877793
75887794 ac_ext=c
75897795 ac_cpp='$CPP $CPPFLAGS'
78888094 *)
78898095 enable_shared=no
78908096 # Look at the argument we got. We use all the common list separators.
7891 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8097 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
78928098 for pkg in $enableval; do
7893 IFS="$lt_save_ifs"
8099 IFS=$lt_save_ifs
78948100 if test "X$pkg" = "X$p"; then
78958101 enable_shared=yes
78968102 fi
78978103 done
7898 IFS="$lt_save_ifs"
8104 IFS=$lt_save_ifs
78998105 ;;
79008106 esac
79018107 else
79208126 *)
79218127 pic_mode=default
79228128 # Look at the argument we got. We use all the common list separators.
7923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8129 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
79248130 for lt_pkg in $withval; do
7925 IFS="$lt_save_ifs"
8131 IFS=$lt_save_ifs
79268132 if test "X$lt_pkg" = "X$lt_p"; then
79278133 pic_mode=yes
79288134 fi
79298135 done
7930 IFS="$lt_save_ifs"
8136 IFS=$lt_save_ifs
79318137 ;;
79328138 esac
79338139 else
79348140 pic_mode=default
79358141 fi
79368142
7937
7938 test -z "$pic_mode" && pic_mode=default
79398143
79408144
79418145
79528156 *)
79538157 enable_fast_install=no
79548158 # Look at the argument we got. We use all the common list separators.
7955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
79568160 for pkg in $enableval; do
7957 IFS="$lt_save_ifs"
8161 IFS=$lt_save_ifs
79588162 if test "X$pkg" = "X$p"; then
79598163 enable_fast_install=yes
79608164 fi
79618165 done
7962 IFS="$lt_save_ifs"
8166 IFS=$lt_save_ifs
79638167 ;;
79648168 esac
79658169 else
79738177
79748178
79758179
8180 shared_archive_member_spec=
8181 case $host,$enable_shared in
8182 power*-*-aix[5-9]*,yes)
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8184 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8185
8186 # Check whether --with-aix-soname was given.
8187 if test "${with_aix_soname+set}" = set; then :
8188 withval=$with_aix_soname; case $withval in
8189 aix|svr4|both)
8190 ;;
8191 *)
8192 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8193 ;;
8194 esac
8195 lt_cv_with_aix_soname=$with_aix_soname
8196 else
8197 if ${lt_cv_with_aix_soname+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 lt_cv_with_aix_soname=aix
8201 fi
8202
8203 with_aix_soname=$lt_cv_with_aix_soname
8204 fi
8205
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8207 $as_echo "$with_aix_soname" >&6; }
8208 if test aix != "$with_aix_soname"; then
8209 # For the AIX way of multilib, we name the shared archive member
8210 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8211 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8212 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8213 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8214 if test 64 = "${OBJECT_MODE-32}"; then
8215 shared_archive_member_spec=shr_64
8216 else
8217 shared_archive_member_spec=shr
8218 fi
8219 fi
8220 ;;
8221 *)
8222 with_aix_soname=aix
8223 ;;
8224 esac
8225
8226
8227
8228
8229
8230
8231
79768232
79778233
79788234
79798235 # This can be used to rebuild libtool when needed
7980 LIBTOOL_DEPS="$ltmain"
8236 LIBTOOL_DEPS=$ltmain
79818237
79828238 # Always use our own libtool.
79838239 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
80268282
80278283
80288284
8029 if test -n "${ZSH_VERSION+set}" ; then
8285 if test -n "${ZSH_VERSION+set}"; then
80308286 setopt NO_GLOB_SUBST
80318287 fi
80328288
80658321 # AIX sometimes has problems with the GCC collect2 program. For some
80668322 # reason, if we set the COLLECT_NAMES environment variable, the problems
80678323 # vanish in a puff of smoke.
8068 if test "X${COLLECT_NAMES+set}" != Xset; then
8324 if test set != "${COLLECT_NAMES+set}"; then
80698325 COLLECT_NAMES=
80708326 export COLLECT_NAMES
80718327 fi
80768332 ofile=libtool
80778333 can_build_shared=yes
80788334
8079 # All known linkers require a `.a' archive for static linking (except MSVC,
8335 # All known linkers require a '.a' archive for static linking (except MSVC,
80808336 # which needs '.lib').
80818337 libext=a
80828338
8083 with_gnu_ld="$lt_cv_prog_gnu_ld"
8084
8085 old_CC="$CC"
8086 old_CFLAGS="$CFLAGS"
8339 with_gnu_ld=$lt_cv_prog_gnu_ld
8340
8341 old_CC=$CC
8342 old_CFLAGS=$CFLAGS
80878343
80888344 # Set sane defaults for various variables
80898345 test -z "$CC" && CC=cc
80928348 test -z "$LD" && LD=ld
80938349 test -z "$ac_objext" && ac_objext=o
80948350
8095 for cc_temp in $compiler""; do
8096 case $cc_temp in
8097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8099 \-*) ;;
8100 *) break;;
8101 esac
8102 done
8103 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8351 func_cc_basename $compiler
8352 cc_basename=$func_cc_basename_result
81048353
81058354
81068355 # Only perform the check for file, if the check method requires it
81158364 else
81168365 case $MAGIC_CMD in
81178366 [\\/*] | ?:[\\/]*)
8118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8367 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
81198368 ;;
81208369 *)
8121 lt_save_MAGIC_CMD="$MAGIC_CMD"
8122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8370 lt_save_MAGIC_CMD=$MAGIC_CMD
8371 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
81238372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
81248373 for ac_dir in $ac_dummy; do
8125 IFS="$lt_save_ifs"
8374 IFS=$lt_save_ifs
81268375 test -z "$ac_dir" && ac_dir=.
8127 if test -f $ac_dir/${ac_tool_prefix}file; then
8128 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8376 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8377 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
81298378 if test -n "$file_magic_test_file"; then
81308379 case $deplibs_check_method in
81318380 "file_magic "*)
81328381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
81348383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
81358384 $EGREP "$file_magic_regex" > /dev/null; then
81368385 :
81538402 break
81548403 fi
81558404 done
8156 IFS="$lt_save_ifs"
8157 MAGIC_CMD="$lt_save_MAGIC_CMD"
8405 IFS=$lt_save_ifs
8406 MAGIC_CMD=$lt_save_MAGIC_CMD
81588407 ;;
81598408 esac
81608409 fi
81618410
8162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8411 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
81638412 if test -n "$MAGIC_CMD"; then
81648413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
81658414 $as_echo "$MAGIC_CMD" >&6; }
81818430 else
81828431 case $MAGIC_CMD in
81838432 [\\/*] | ?:[\\/]*)
8184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8433 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
81858434 ;;
81868435 *)
8187 lt_save_MAGIC_CMD="$MAGIC_CMD"
8188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8436 lt_save_MAGIC_CMD=$MAGIC_CMD
8437 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
81898438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
81908439 for ac_dir in $ac_dummy; do
8191 IFS="$lt_save_ifs"
8440 IFS=$lt_save_ifs
81928441 test -z "$ac_dir" && ac_dir=.
8193 if test -f $ac_dir/file; then
8194 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8442 if test -f "$ac_dir/file"; then
8443 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
81958444 if test -n "$file_magic_test_file"; then
81968445 case $deplibs_check_method in
81978446 "file_magic "*)
81988447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8448 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
82008449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
82018450 $EGREP "$file_magic_regex" > /dev/null; then
82028451 :
82198468 break
82208469 fi
82218470 done
8222 IFS="$lt_save_ifs"
8223 MAGIC_CMD="$lt_save_MAGIC_CMD"
8471 IFS=$lt_save_ifs
8472 MAGIC_CMD=$lt_save_MAGIC_CMD
82248473 ;;
82258474 esac
82268475 fi
82278476
8228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8477 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
82298478 if test -n "$MAGIC_CMD"; then
82308479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
82318480 $as_echo "$MAGIC_CMD" >&6; }
82468495
82478496 # Use C for the default configuration in the libtool script
82488497
8249 lt_save_CC="$CC"
8498 lt_save_CC=$CC
82508499 ac_ext=c
82518500 ac_cpp='$CPP $CPPFLAGS'
82528501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
83088557
83098558 lt_prog_compiler_no_builtin_flag=
83108559
8311 if test "$GCC" = yes; then
8560 if test yes = "$GCC"; then
83128561 case $cc_basename in
83138562 nvcc*)
83148563 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
83248573 lt_cv_prog_compiler_rtti_exceptions=no
83258574 ac_outfile=conftest.$ac_objext
83268575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8327 lt_compiler_flag="-fno-rtti -fno-exceptions"
8576 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
83288577 # Insert the option either (1) after the last *FLAGS variable, or
83298578 # (2) before a word containing "conftest.", or (3) at the end.
83308579 # Note that $ac_compile itself does not contain backslashes and begins
83548603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
83558604 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
83568605
8357 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8606 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
83588607 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
83598608 else
83608609 :
83728621 lt_prog_compiler_static=
83738622
83748623
8375 if test "$GCC" = yes; then
8624 if test yes = "$GCC"; then
83768625 lt_prog_compiler_wl='-Wl,'
83778626 lt_prog_compiler_static='-static'
83788627
83798628 case $host_os in
83808629 aix*)
83818630 # All AIX code is PIC.
8382 if test "$host_cpu" = ia64; then
8631 if test ia64 = "$host_cpu"; then
83838632 # AIX 5 now supports IA64 processor
83848633 lt_prog_compiler_static='-Bstatic'
83858634 fi
8635 lt_prog_compiler_pic='-fPIC'
83868636 ;;
83878637
83888638 amigaos*)
83938643 ;;
83948644 m68k)
83958645 # FIXME: we need at least 68020 code to build shared libraries, but
8396 # adding the `-m68020' flag to GCC prevents building anything better,
8397 # like `-m68040'.
8646 # adding the '-m68020' flag to GCC prevents building anything better,
8647 # like '-m68040'.
83988648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
83998649 ;;
84008650 esac
84108660 # Although the cygwin gcc ignores -fPIC, still need this for old-style
84118661 # (--disable-auto-import) libraries
84128662 lt_prog_compiler_pic='-DDLL_EXPORT'
8663 case $host_os in
8664 os2*)
8665 lt_prog_compiler_static='$wl-static'
8666 ;;
8667 esac
84138668 ;;
84148669
84158670 darwin* | rhapsody*)
84808735 case $host_os in
84818736 aix*)
84828737 lt_prog_compiler_wl='-Wl,'
8483 if test "$host_cpu" = ia64; then
8738 if test ia64 = "$host_cpu"; then
84848739 # AIX 5 now supports IA64 processor
84858740 lt_prog_compiler_static='-Bstatic'
84868741 else
84888743 fi
84898744 ;;
84908745
8746 darwin* | rhapsody*)
8747 # PIC is the default on this platform
8748 # Common symbols not allowed in MH_DYLIB files
8749 lt_prog_compiler_pic='-fno-common'
8750 case $cc_basename in
8751 nagfor*)
8752 # NAG Fortran compiler
8753 lt_prog_compiler_wl='-Wl,-Wl,,'
8754 lt_prog_compiler_pic='-PIC'
8755 lt_prog_compiler_static='-Bstatic'
8756 ;;
8757 esac
8758 ;;
8759
84918760 mingw* | cygwin* | pw32* | os2* | cegcc*)
84928761 # This hack is so that the source file can tell whether it is being
84938762 # built for inclusion in a dll (and should export symbols for example).
84948763 lt_prog_compiler_pic='-DDLL_EXPORT'
8764 case $host_os in
8765 os2*)
8766 lt_prog_compiler_static='$wl-static'
8767 ;;
8768 esac
84958769 ;;
84968770
84978771 hpux9* | hpux10* | hpux11*)
85078781 ;;
85088782 esac
85098783 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8510 lt_prog_compiler_static='${wl}-a ${wl}archive'
8784 lt_prog_compiler_static='$wl-a ${wl}archive'
85118785 ;;
85128786
85138787 irix5* | irix6* | nonstopux*)
85188792
85198793 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
85208794 case $cc_basename in
8521 # old Intel for x86_64 which still supported -KPIC.
8795 # old Intel for x86_64, which still supported -KPIC.
85228796 ecc*)
85238797 lt_prog_compiler_wl='-Wl,'
85248798 lt_prog_compiler_pic='-KPIC'
85428816 lt_prog_compiler_wl='-Wl,-Wl,,'
85438817 lt_prog_compiler_pic='-PIC'
85448818 lt_prog_compiler_static='-Bstatic'
8819 ;;
8820 tcc*)
8821 # Fabrice Bellard et al's Tiny C Compiler
8822 lt_prog_compiler_wl='-Wl,'
8823 lt_prog_compiler_pic='-fPIC'
8824 lt_prog_compiler_static='-static'
85458825 ;;
85468826 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
85478827 # Portland Group compilers (*not* the Pentium gcc compiler,
86408920 ;;
86418921
86428922 sysv4*MP*)
8643 if test -d /usr/nec ;then
8923 if test -d /usr/nec; then
86448924 lt_prog_compiler_pic='-Kconform_pic'
86458925 lt_prog_compiler_static='-Bstatic'
86468926 fi
86698949 fi
86708950
86718951 case $host_os in
8672 # For platforms which do not support PIC, -DPIC is meaningless:
8952 # For platforms that do not support PIC, -DPIC is meaningless:
86738953 *djgpp*)
86748954 lt_prog_compiler_pic=
86758955 ;;
87018981 lt_cv_prog_compiler_pic_works=no
87028982 ac_outfile=conftest.$ac_objext
87038983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8704 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8984 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
87058985 # Insert the option either (1) after the last *FLAGS variable, or
87068986 # (2) before a word containing "conftest.", or (3) at the end.
87078987 # Note that $ac_compile itself does not contain backslashes and begins
87319011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
87329012 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
87339013
8734 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9014 if test yes = "$lt_cv_prog_compiler_pic_works"; then
87359015 case $lt_prog_compiler_pic in
87369016 "" | " "*) ;;
87379017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
87639043 $as_echo_n "(cached) " >&6
87649044 else
87659045 lt_cv_prog_compiler_static_works=no
8766 save_LDFLAGS="$LDFLAGS"
9046 save_LDFLAGS=$LDFLAGS
87679047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
87689048 echo "$lt_simple_link_test_code" > conftest.$ac_ext
87699049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
87829062 fi
87839063 fi
87849064 $RM -r conftest*
8785 LDFLAGS="$save_LDFLAGS"
9065 LDFLAGS=$save_LDFLAGS
87869066
87879067 fi
87889068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
87899069 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
87909070
8791 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9071 if test yes = "$lt_cv_prog_compiler_static_works"; then
87929072 :
87939073 else
87949074 lt_prog_compiler_static=
89089188
89099189
89109190
8911 hard_links="nottested"
8912 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9191 hard_links=nottested
9192 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
89139193 # do not overwrite the value of need_locks provided by the user
89149194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
89159195 $as_echo_n "checking if we can lock with hard links... " >&6; }
89219201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
89229202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
89239203 $as_echo "$hard_links" >&6; }
8924 if test "$hard_links" = no; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8926 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9204 if test no = "$hard_links"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9206 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
89279207 need_locks=warn
89289208 fi
89299209 else
89669246 # included in the symbol list
89679247 include_expsyms=
89689248 # exclude_expsyms can be an extended regexp of symbols to exclude
8969 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8970 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8971 # as well as any symbol that contains `d'.
9249 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9250 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9251 # as well as any symbol that contains 'd'.
89729252 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
89739253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
89749254 # platforms (ab)use it in PIC code, but their linkers get confused if
89839263 # FIXME: the MSVC++ port hasn't been tested in a loooong time
89849264 # When not using gcc, we currently assume that we are using
89859265 # Microsoft Visual C++.
8986 if test "$GCC" != yes; then
9266 if test yes != "$GCC"; then
89879267 with_gnu_ld=no
89889268 fi
89899269 ;;
89919271 # we just hope/assume this is gcc and not c89 (= MSVC++)
89929272 with_gnu_ld=yes
89939273 ;;
8994 openbsd*)
9274 openbsd* | bitrig*)
89959275 with_gnu_ld=no
89969276 ;;
89979277 linux* | k*bsd*-gnu | gnu*)
90049284 # On some targets, GNU ld is compatible enough with the native linker
90059285 # that we're better off using the native interface for both.
90069286 lt_use_gnu_ld_interface=no
9007 if test "$with_gnu_ld" = yes; then
9287 if test yes = "$with_gnu_ld"; then
90089288 case $host_os in
90099289 aix*)
90109290 # The AIX port of GNU ld has always aspired to compatibility
90269306 esac
90279307 fi
90289308
9029 if test "$lt_use_gnu_ld_interface" = yes; then
9309 if test yes = "$lt_use_gnu_ld_interface"; then
90309310 # If archive_cmds runs LD, not CC, wlarc should be empty
9031 wlarc='${wl}'
9311 wlarc='$wl'
90329312
90339313 # Set some defaults for GNU ld with shared library support. These
90349314 # are reset later if shared libraries are not supported. Putting them
90359315 # here allows them to be overridden if necessary.
90369316 runpath_var=LD_RUN_PATH
9037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9038 export_dynamic_flag_spec='${wl}--export-dynamic'
9317 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9318 export_dynamic_flag_spec='$wl--export-dynamic'
90399319 # ancient GNU ld didn't support --whole-archive et. al.
90409320 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9041 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9321 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
90429322 else
90439323 whole_archive_flag_spec=
90449324 fi
90459325 supports_anon_versioning=no
9046 case `$LD -v 2>&1` in
9326 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
90479327 *GNU\ gold*) supports_anon_versioning=yes ;;
90489328 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
90499329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
90569336 case $host_os in
90579337 aix[3-9]*)
90589338 # On AIX/PPC, the GNU linker is very broken
9059 if test "$host_cpu" != ia64; then
9339 if test ia64 != "$host_cpu"; then
90609340 ld_shlibs=no
90619341 cat <<_LT_EOF 1>&2
90629342
90759355 case $host_cpu in
90769356 powerpc)
90779357 # see comment about AmigaOS4 .so support
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
90799359 archive_expsym_cmds=''
90809360 ;;
90819361 m68k)
90919371 allow_undefined_flag=unsupported
90929372 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
90939373 # support --undefined. This deserves some investigation. FIXME
9094 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
90959375 else
90969376 ld_shlibs=no
90979377 fi
91019381 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
91029382 # as there is no search path for DLLs.
91039383 hardcode_libdir_flag_spec='-L$libdir'
9104 export_dynamic_flag_spec='${wl}--export-all-symbols'
9384 export_dynamic_flag_spec='$wl--export-all-symbols'
91059385 allow_undefined_flag=unsupported
91069386 always_export_symbols=no
91079387 enable_shared_with_static_runtimes=yes
91099389 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
91109390
91119391 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9113 # If the export-symbols file already is a .def file (1st line
9114 # is EXPORTS), use it as is; otherwise, prepend...
9115 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9116 cp $export_symbols $output_objdir/$soname.def;
9117 else
9118 echo EXPORTS > $output_objdir/$soname.def;
9119 cat $export_symbols >> $output_objdir/$soname.def;
9120 fi~
9121 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393 # If the export-symbols file already is a .def file, use it as
9394 # is; otherwise, prepend EXPORTS...
9395 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9396 cp $export_symbols $output_objdir/$soname.def;
9397 else
9398 echo EXPORTS > $output_objdir/$soname.def;
9399 cat $export_symbols >> $output_objdir/$soname.def;
9400 fi~
9401 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
91229402 else
91239403 ld_shlibs=no
91249404 fi
91259405 ;;
91269406
91279407 haiku*)
9128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
91299409 link_all_deplibs=yes
9410 ;;
9411
9412 os2*)
9413 hardcode_libdir_flag_spec='-L$libdir'
9414 hardcode_minus_L=yes
9415 allow_undefined_flag=unsupported
9416 shrext_cmds=.dll
9417 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9420 $ECHO EXPORTS >> $output_objdir/$libname.def~
9421 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9422 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9423 emximp -o $lib $output_objdir/$libname.def'
9424 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9425 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9426 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9427 $ECHO EXPORTS >> $output_objdir/$libname.def~
9428 prefix_cmds="$SED"~
9429 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9430 prefix_cmds="$prefix_cmds -e 1d";
9431 fi~
9432 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9433 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9434 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9435 emximp -o $lib $output_objdir/$libname.def'
9436 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9437 enable_shared_with_static_runtimes=yes
91309438 ;;
91319439
91329440 interix[3-9]*)
91339441 hardcode_direct=no
91349442 hardcode_shlibpath_var=no
9135 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9136 export_dynamic_flag_spec='${wl}-E'
9443 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9444 export_dynamic_flag_spec='$wl-E'
91379445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
91389446 # Instead, shared libraries are loaded at an image base (0x10000000 by
91399447 # default) and relocated if they conflict, which is a slow very memory
91409448 # consuming and fragmenting process. To avoid this, we pick a random,
91419449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
91429450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9144 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9451 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9452 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
91459453 ;;
91469454
91479455 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
91489456 tmp_diet=no
9149 if test "$host_os" = linux-dietlibc; then
9457 if test linux-dietlibc = "$host_os"; then
91509458 case $cc_basename in
91519459 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
91529460 esac
91539461 fi
91549462 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9155 && test "$tmp_diet" = no
9463 && test no = "$tmp_diet"
91569464 then
91579465 tmp_addflag=' $pic_flag'
91589466 tmp_sharedflag='-shared'
91599467 case $cc_basename,$host_cpu in
91609468 pgcc*) # Portland Group C compiler
9161 whole_archive_flag_spec='${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'
9469 whole_archive_flag_spec='$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'
91629470 tmp_addflag=' $pic_flag'
91639471 ;;
91649472 pgf77* | pgf90* | pgf95* | pgfortran*)
91659473 # Portland Group f77 and f90 compilers
9166 whole_archive_flag_spec='${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'
9474 whole_archive_flag_spec='$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'
91679475 tmp_addflag=' $pic_flag -Mnomain' ;;
91689476 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
91699477 tmp_addflag=' -i_dynamic' ;;
91749482 lf95*) # Lahey Fortran 8.1
91759483 whole_archive_flag_spec=
91769484 tmp_sharedflag='--shared' ;;
9485 nagfor*) # NAGFOR 5.3
9486 tmp_sharedflag='-Wl,-shared' ;;
91779487 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
91789488 tmp_sharedflag='-qmkshrobj'
91799489 tmp_addflag= ;;
91809490 nvcc*) # Cuda Compiler Driver 2.2
9181 whole_archive_flag_spec='${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'
9491 whole_archive_flag_spec='$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'
91829492 compiler_needs_object=yes
91839493 ;;
91849494 esac
91859495 case `$CC -V 2>&1 | sed 5q` in
91869496 *Sun\ C*) # Sun C 5.9
9187 whole_archive_flag_spec='${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'
9497 whole_archive_flag_spec='$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'
91889498 compiler_needs_object=yes
91899499 tmp_sharedflag='-G' ;;
91909500 *Sun\ F*) # Sun Fortran 8.3
91919501 tmp_sharedflag='-G' ;;
91929502 esac
9193 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194
9195 if test "x$supports_anon_versioning" = xyes; then
9503 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9504
9505 if test yes = "$supports_anon_versioning"; then
91969506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198 echo "local: *; };" >> $output_objdir/$libname.ver~
9199 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9508 echo "local: *; };" >> $output_objdir/$libname.ver~
9509 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
92009510 fi
92019511
92029512 case $cc_basename in
9513 tcc*)
9514 export_dynamic_flag_spec='-rdynamic'
9515 ;;
92039516 xlf* | bgf* | bgxlf* | mpixlf*)
92049517 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
92059518 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9519 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
92079520 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9208 if test "x$supports_anon_versioning" = xyes; then
9521 if test yes = "$supports_anon_versioning"; then
92099522 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9211 echo "local: *; };" >> $output_objdir/$libname.ver~
9212 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9524 echo "local: *; };" >> $output_objdir/$libname.ver~
9525 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
92139526 fi
92149527 ;;
92159528 esac
92239536 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
92249537 wlarc=
92259538 else
9226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9540 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
92289541 fi
92299542 ;;
92309543
92429555
92439556 _LT_EOF
92449557 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9559 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
92479560 else
92489561 ld_shlibs=no
92499562 fi
92559568 ld_shlibs=no
92569569 cat <<_LT_EOF 1>&2
92579570
9258 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9571 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
92599572 *** reliably create shared libraries on SCO systems. Therefore, libtool
92609573 *** is disabling shared libraries support. We urge you to upgrade GNU
92619574 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
92709583 # DT_RUNPATH tag from executables and libraries. But doing so
92719584 # requires that you compile everything twice, which is a pain.
92729585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
92769589 else
92779590 ld_shlibs=no
92789591 fi
92899602
92909603 *)
92919604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9605 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9606 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
92949607 else
92959608 ld_shlibs=no
92969609 fi
92979610 ;;
92989611 esac
92999612
9300 if test "$ld_shlibs" = no; then
9613 if test no = "$ld_shlibs"; then
93019614 runpath_var=
93029615 hardcode_libdir_flag_spec=
93039616 export_dynamic_flag_spec=
93139626 # Note: this linker hardcodes the directories in LIBPATH if there
93149627 # are no directories specified by -L.
93159628 hardcode_minus_L=yes
9316 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9629 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
93179630 # Neither direct hardcoding nor static linking is supported with a
93189631 # broken collect2.
93199632 hardcode_direct=unsupported
93219634 ;;
93229635
93239636 aix[4-9]*)
9324 if test "$host_cpu" = ia64; then
9637 if test ia64 = "$host_cpu"; then
93259638 # On IA64, the linker does run time linking by default, so we don't
93269639 # have to do anything special.
93279640 aix_use_runtimelinking=no
93289641 exp_sym_flag='-Bexport'
9329 no_entry_flag=""
9642 no_entry_flag=
93309643 else
93319644 # If we're using GNU nm, then we don't want the "-C" option.
9332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9333 # Also, AIX nm treats weak defined symbols like other global
9334 # defined symbols, whereas GNU nm marks them as "W".
9645 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9646 # Without the "-l" option, or with the "-B" option, AIX nm treats
9647 # weak defined symbols like other global defined symbols, whereas
9648 # GNU nm marks them as "W".
9649 # While the 'weak' keyword is ignored in the Export File, we need
9650 # it in the Import File for the 'aix-soname' feature, so we have
9651 # to replace the "-B" option with "-P" for AIX nm.
93359652 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9336 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9653 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
93379654 else
9338 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9655 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
93399656 fi
93409657 aix_use_runtimelinking=no
93419658
93429659 # Test if we are trying to use run time linking or normal
93439660 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9344 # need to do runtime linking.
9661 # have runtime linking enabled, and use it for executables.
9662 # For shared libraries, we enable/disable runtime linking
9663 # depending on the kind of the shared library created -
9664 # when "with_aix_soname,aix_use_runtimelinking" is:
9665 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9666 # "aix,yes" lib.so shared, rtl:yes, for executables
9667 # lib.a static archive
9668 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9669 # lib.a(lib.so.V) shared, rtl:no, for executables
9670 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9671 # lib.a(lib.so.V) shared, rtl:no
9672 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9673 # lib.a static archive
93459674 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
93469675 for ld_flag in $LDFLAGS; do
9347 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9676 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
93489677 aix_use_runtimelinking=yes
93499678 break
93509679 fi
93519680 done
9681 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9682 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9683 # so we don't have lib.a shared libs to link our executables.
9684 # We have to force runtime linking in this case.
9685 aix_use_runtimelinking=yes
9686 LDFLAGS="$LDFLAGS -Wl,-brtl"
9687 fi
93529688 ;;
93539689 esac
93549690
93679703 hardcode_direct_absolute=yes
93689704 hardcode_libdir_separator=':'
93699705 link_all_deplibs=yes
9370 file_list_spec='${wl}-f,'
9371
9372 if test "$GCC" = yes; then
9706 file_list_spec='$wl-f,'
9707 case $with_aix_soname,$aix_use_runtimelinking in
9708 aix,*) ;; # traditional, no import file
9709 svr4,* | *,yes) # use import file
9710 # The Import File defines what to hardcode.
9711 hardcode_direct=no
9712 hardcode_direct_absolute=no
9713 ;;
9714 esac
9715
9716 if test yes = "$GCC"; then
93739717 case $host_os in aix4.[012]|aix4.[012].*)
93749718 # We only want to do this on AIX 4.2 and lower, the check
93759719 # below for broken collect2 doesn't work under 4.3+
9376 collect2name=`${CC} -print-prog-name=collect2`
9720 collect2name=`$CC -print-prog-name=collect2`
93779721 if test -f "$collect2name" &&
93789722 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
93799723 then
93929736 ;;
93939737 esac
93949738 shared_flag='-shared'
9395 if test "$aix_use_runtimelinking" = yes; then
9396 shared_flag="$shared_flag "'${wl}-G'
9739 if test yes = "$aix_use_runtimelinking"; then
9740 shared_flag="$shared_flag "'$wl-G'
93979741 fi
9398 link_all_deplibs=no
9742 # Need to ensure runtime linking is disabled for the traditional
9743 # shared library, or the linker may eventually find shared libraries
9744 # /with/ Import File - we do not want to mix them.
9745 shared_flag_aix='-shared'
9746 shared_flag_svr4='-shared $wl-G'
93999747 else
94009748 # not using gcc
9401 if test "$host_cpu" = ia64; then
9749 if test ia64 = "$host_cpu"; then
94029750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
94039751 # chokes on -Wl,-G. The following line is correct:
94049752 shared_flag='-G'
94059753 else
9406 if test "$aix_use_runtimelinking" = yes; then
9407 shared_flag='${wl}-G'
9754 if test yes = "$aix_use_runtimelinking"; then
9755 shared_flag='$wl-G'
94089756 else
9409 shared_flag='${wl}-bM:SRE'
9757 shared_flag='$wl-bM:SRE'
94109758 fi
9759 shared_flag_aix='$wl-bM:SRE'
9760 shared_flag_svr4='$wl-G'
94119761 fi
94129762 fi
94139763
9414 export_dynamic_flag_spec='${wl}-bexpall'
9764 export_dynamic_flag_spec='$wl-bexpall'
94159765 # It seems that -bexpall does not export symbols beginning with
94169766 # underscore (_), so it is better to generate a list of symbols to export.
94179767 always_export_symbols=yes
9418 if test "$aix_use_runtimelinking" = yes; then
9768 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
94199769 # Warning - without using the other runtime loading flags (-brtl),
94209770 # -berok will link without error, but may produce a broken library.
94219771 allow_undefined_flag='-berok'
94229772 # Determine the default libpath from the value encoded in an
94239773 # empty executable.
9424 if test "${lt_cv_aix_libpath+set}" = set; then
9774 if test set = "${lt_cv_aix_libpath+set}"; then
94259775 aix_libpath=$lt_cv_aix_libpath
94269776 else
94279777 if ${lt_cv_aix_libpath_+:} false; then :
94569806 rm -f core conftest.err conftest.$ac_objext \
94579807 conftest$ac_exeext conftest.$ac_ext
94589808 if test -z "$lt_cv_aix_libpath_"; then
9459 lt_cv_aix_libpath_="/usr/lib:/lib"
9809 lt_cv_aix_libpath_=/usr/lib:/lib
94609810 fi
94619811
94629812 fi
94649814 aix_libpath=$lt_cv_aix_libpath_
94659815 fi
94669816
9467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9468 archive_expsym_cmds='$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"
9817 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9818 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
94699819 else
9470 if test "$host_cpu" = ia64; then
9471 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9820 if test ia64 = "$host_cpu"; then
9821 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
94729822 allow_undefined_flag="-z nodefs"
9473 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9823 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
94749824 else
94759825 # Determine the default libpath from the value encoded in an
94769826 # empty executable.
9477 if test "${lt_cv_aix_libpath+set}" = set; then
9827 if test set = "${lt_cv_aix_libpath+set}"; then
94789828 aix_libpath=$lt_cv_aix_libpath
94799829 else
94809830 if ${lt_cv_aix_libpath_+:} false; then :
95099859 rm -f core conftest.err conftest.$ac_objext \
95109860 conftest$ac_exeext conftest.$ac_ext
95119861 if test -z "$lt_cv_aix_libpath_"; then
9512 lt_cv_aix_libpath_="/usr/lib:/lib"
9862 lt_cv_aix_libpath_=/usr/lib:/lib
95139863 fi
95149864
95159865 fi
95179867 aix_libpath=$lt_cv_aix_libpath_
95189868 fi
95199869
9520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
95219871 # Warning - without using the other run time loading flags,
95229872 # -berok will link without error, but may produce a broken library.
9523 no_undefined_flag=' ${wl}-bernotok'
9524 allow_undefined_flag=' ${wl}-berok'
9525 if test "$with_gnu_ld" = yes; then
9873 no_undefined_flag=' $wl-bernotok'
9874 allow_undefined_flag=' $wl-berok'
9875 if test yes = "$with_gnu_ld"; then
95269876 # We only use this code for GNU lds that support --whole-archive.
9527 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9877 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
95289878 else
95299879 # Exported symbols can be pulled into shared objects from archives
95309880 whole_archive_flag_spec='$convenience'
95319881 fi
95329882 archive_cmds_need_lc=yes
9533 # This is similar to how AIX traditionally builds its shared libraries.
9534 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9883 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9884 # -brtl affects multiple linker settings, -berok does not and is overridden later
9885 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9886 if test svr4 != "$with_aix_soname"; then
9887 # This is similar to how AIX traditionally builds its shared libraries.
9888 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9889 fi
9890 if test aix != "$with_aix_soname"; then
9891 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9892 else
9893 # used by -dlpreopen to get the symbols
9894 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9895 fi
9896 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
95359897 fi
95369898 fi
95379899 ;;
95409902 case $host_cpu in
95419903 powerpc)
95429904 # see comment about AmigaOS4 .so support
9543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
95449906 archive_expsym_cmds=''
95459907 ;;
95469908 m68k)
95709932 # Tell ltmain to make .lib files, not .a files.
95719933 libext=lib
95729934 # Tell ltmain to make .dll files, not .so files.
9573 shrext_cmds=".dll"
9935 shrext_cmds=.dll
95749936 # FIXME: Setting linknames here is a bad hack.
9575 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9576 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9577 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9578 else
9579 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9580 fi~
9581 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9582 linknames='
9937 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9938 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9939 cp "$export_symbols" "$output_objdir/$soname.def";
9940 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9941 else
9942 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9943 fi~
9944 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9945 linknames='
95839946 # The linker will not automatically build a static lib if we build a DLL.
95849947 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
95859948 enable_shared_with_static_runtimes=yes
95889951 # Don't use ranlib
95899952 old_postinstall_cmds='chmod 644 $oldlib'
95909953 postlink_cmds='lt_outputfile="@OUTPUT@"~
9591 lt_tool_outputfile="@TOOL_OUTPUT@"~
9592 case $lt_outputfile in
9593 *.exe|*.EXE) ;;
9594 *)
9595 lt_outputfile="$lt_outputfile.exe"
9596 lt_tool_outputfile="$lt_tool_outputfile.exe"
9597 ;;
9598 esac~
9599 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9600 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9601 $RM "$lt_outputfile.manifest";
9602 fi'
9954 lt_tool_outputfile="@TOOL_OUTPUT@"~
9955 case $lt_outputfile in
9956 *.exe|*.EXE) ;;
9957 *)
9958 lt_outputfile=$lt_outputfile.exe
9959 lt_tool_outputfile=$lt_tool_outputfile.exe
9960 ;;
9961 esac~
9962 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9963 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9964 $RM "$lt_outputfile.manifest";
9965 fi'
96039966 ;;
96049967 *)
96059968 # Assume MSVC wrapper
96089971 # Tell ltmain to make .lib files, not .a files.
96099972 libext=lib
96109973 # Tell ltmain to make .dll files, not .so files.
9611 shrext_cmds=".dll"
9974 shrext_cmds=.dll
96129975 # FIXME: Setting linknames here is a bad hack.
96139976 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
96149977 # The linker will automatically build a .lib file if we build a DLL.
96279990 hardcode_direct=no
96289991 hardcode_automatic=yes
96299992 hardcode_shlibpath_var=unsupported
9630 if test "$lt_cv_ld_force_load" = "yes"; then
9631 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9993 if test yes = "$lt_cv_ld_force_load"; then
9994 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
96329995
96339996 else
96349997 whole_archive_flag_spec=''
96359998 fi
96369999 link_all_deplibs=yes
9637 allow_undefined_flag="$_lt_dar_allow_undefined"
10000 allow_undefined_flag=$_lt_dar_allow_undefined
963810001 case $cc_basename in
9639 ifort*) _lt_dar_can_shared=yes ;;
10002 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
964010003 *) _lt_dar_can_shared=$GCC ;;
964110004 esac
9642 if test "$_lt_dar_can_shared" = "yes"; then
10005 if test yes = "$_lt_dar_can_shared"; then
964310006 output_verbose_link_cmd=func_echo_all
9644 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9645 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9646 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9647 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10007 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10008 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10009 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10010 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
964810011
964910012 else
965010013 ld_shlibs=no
968610049 ;;
968710050
968810051 hpux9*)
9689 if test "$GCC" = yes; then
9690 archive_cmds='$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'
10052 if test yes = "$GCC"; then
10053 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
969110054 else
9692 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10055 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
969310056 fi
9694 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10057 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
969510058 hardcode_libdir_separator=:
969610059 hardcode_direct=yes
969710060
969810061 # hardcode_minus_L: Not really in the search PATH,
969910062 # but as the default location of the library.
970010063 hardcode_minus_L=yes
9701 export_dynamic_flag_spec='${wl}-E'
10064 export_dynamic_flag_spec='$wl-E'
970210065 ;;
970310066
970410067 hpux10*)
9705 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9706 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10068 if test yes,no = "$GCC,$with_gnu_ld"; then
10069 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
970710070 else
970810071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
970910072 fi
9710 if test "$with_gnu_ld" = no; then
9711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10073 if test no = "$with_gnu_ld"; then
10074 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
971210075 hardcode_libdir_separator=:
971310076 hardcode_direct=yes
971410077 hardcode_direct_absolute=yes
9715 export_dynamic_flag_spec='${wl}-E'
10078 export_dynamic_flag_spec='$wl-E'
971610079 # hardcode_minus_L: Not really in the search PATH,
971710080 # but as the default location of the library.
971810081 hardcode_minus_L=yes
972010083 ;;
972110084
972210085 hpux11*)
9723 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10086 if test yes,no = "$GCC,$with_gnu_ld"; then
972410087 case $host_cpu in
972510088 hppa*64*)
9726 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
972710090 ;;
972810091 ia64*)
9729 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
973010093 ;;
973110094 *)
9732 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
973310096 ;;
973410097 esac
973510098 else
973610099 case $host_cpu in
973710100 hppa*64*)
9738 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
973910102 ;;
974010103 ia64*)
9741 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10104 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
974210105 ;;
974310106 *)
974410107
975010113 $as_echo_n "(cached) " >&6
975110114 else
975210115 lt_cv_prog_compiler__b=no
9753 save_LDFLAGS="$LDFLAGS"
10116 save_LDFLAGS=$LDFLAGS
975410117 LDFLAGS="$LDFLAGS -b"
975510118 echo "$lt_simple_link_test_code" > conftest.$ac_ext
975610119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
976910132 fi
977010133 fi
977110134 $RM -r conftest*
9772 LDFLAGS="$save_LDFLAGS"
10135 LDFLAGS=$save_LDFLAGS
977310136
977410137 fi
977510138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
977610139 $as_echo "$lt_cv_prog_compiler__b" >&6; }
977710140
9778 if test x"$lt_cv_prog_compiler__b" = xyes; then
9779 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10141 if test yes = "$lt_cv_prog_compiler__b"; then
10142 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
978010143 else
978110144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
978210145 fi
978410147 ;;
978510148 esac
978610149 fi
9787 if test "$with_gnu_ld" = no; then
9788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10150 if test no = "$with_gnu_ld"; then
10151 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
978910152 hardcode_libdir_separator=:
979010153
979110154 case $host_cpu in
979610159 *)
979710160 hardcode_direct=yes
979810161 hardcode_direct_absolute=yes
9799 export_dynamic_flag_spec='${wl}-E'
10162 export_dynamic_flag_spec='$wl-E'
980010163
980110164 # hardcode_minus_L: Not really in the search PATH,
980210165 # but as the default location of the library.
980710170 ;;
980810171
980910172 irix5* | irix6* | nonstopux*)
9810 if test "$GCC" = yes; then
9811 archive_cmds='$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'
10173 if test yes = "$GCC"; then
10174 archive_cmds='$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'
981210175 # Try to use the -exported_symbol ld option, if it does not
981310176 # work, assume that -exports_file does not work either and
981410177 # implicitly export all symbols.
981810181 if ${lt_cv_irix_exported_symbol+:} false; then :
981910182 $as_echo_n "(cached) " >&6
982010183 else
9821 save_LDFLAGS="$LDFLAGS"
9822 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10184 save_LDFLAGS=$LDFLAGS
10185 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
982310186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
982410187 /* end confdefs.h. */
982510188 int foo (void) { return 0; }
983110194 fi
983210195 rm -f core conftest.err conftest.$ac_objext \
983310196 conftest$ac_exeext conftest.$ac_ext
9834 LDFLAGS="$save_LDFLAGS"
10197 LDFLAGS=$save_LDFLAGS
983510198 fi
983610199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
983710200 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9838 if test "$lt_cv_irix_exported_symbol" = yes; then
9839 archive_expsym_cmds='$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'
10201 if test yes = "$lt_cv_irix_exported_symbol"; then
10202 archive_expsym_cmds='$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'
984010203 fi
10204 link_all_deplibs=no
984110205 else
9842 archive_cmds='$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'
9843 archive_expsym_cmds='$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'
10206 archive_cmds='$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'
10207 archive_expsym_cmds='$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'
984410208 fi
984510209 archive_cmds_need_lc='no'
9846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
984710211 hardcode_libdir_separator=:
984810212 inherit_rpath=yes
984910213 link_all_deplibs=yes
10214 ;;
10215
10216 linux*)
10217 case $cc_basename in
10218 tcc*)
10219 # Fabrice Bellard et al's Tiny C Compiler
10220 ld_shlibs=yes
10221 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10222 ;;
10223 esac
985010224 ;;
985110225
985210226 netbsd* | netbsdelf*-gnu)
986310237 newsos6)
986410238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
986510239 hardcode_direct=yes
9866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
986710241 hardcode_libdir_separator=:
986810242 hardcode_shlibpath_var=no
986910243 ;;
987110245 *nto* | *qnx*)
987210246 ;;
987310247
9874 openbsd*)
10248 openbsd* | bitrig*)
987510249 if test -f /usr/libexec/ld.so; then
987610250 hardcode_direct=yes
987710251 hardcode_shlibpath_var=no
987810252 hardcode_direct_absolute=yes
9879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
988010254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9881 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9883 export_dynamic_flag_spec='${wl}-E'
10255 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10256 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10257 export_dynamic_flag_spec='$wl-E'
988410258 else
9885 case $host_os in
9886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_libdir_flag_spec='-R$libdir'
9889 ;;
9890 *)
9891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9893 ;;
9894 esac
10259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10260 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
989510261 fi
989610262 else
989710263 ld_shlibs=no
990210268 hardcode_libdir_flag_spec='-L$libdir'
990310269 hardcode_minus_L=yes
990410270 allow_undefined_flag=unsupported
9905 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9906 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10271 shrext_cmds=.dll
10272 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10275 $ECHO EXPORTS >> $output_objdir/$libname.def~
10276 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10277 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10278 emximp -o $lib $output_objdir/$libname.def'
10279 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10280 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10281 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10282 $ECHO EXPORTS >> $output_objdir/$libname.def~
10283 prefix_cmds="$SED"~
10284 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10285 prefix_cmds="$prefix_cmds -e 1d";
10286 fi~
10287 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10288 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10289 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10290 emximp -o $lib $output_objdir/$libname.def'
10291 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10292 enable_shared_with_static_runtimes=yes
990710293 ;;
990810294
990910295 osf3*)
9910 if test "$GCC" = yes; then
9911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9912 archive_cmds='$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'
10296 if test yes = "$GCC"; then
10297 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10298 archive_cmds='$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'
991310299 else
991410300 allow_undefined_flag=' -expect_unresolved \*'
9915 archive_cmds='$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'
10301 archive_cmds='$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'
991610302 fi
991710303 archive_cmds_need_lc='no'
9918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
991910305 hardcode_libdir_separator=:
992010306 ;;
992110307
992210308 osf4* | osf5*) # as osf3* with the addition of -msym flag
9923 if test "$GCC" = yes; then
9924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9925 archive_cmds='$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'
9926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10309 if test yes = "$GCC"; then
10310 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10311 archive_cmds='$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'
10312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
992710313 else
992810314 allow_undefined_flag=' -expect_unresolved \*'
9929 archive_cmds='$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'
10315 archive_cmds='$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'
993010316 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9931 $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'
10317 $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'
993210318
993310319 # Both c and cxx compiler support -rpath directly
993410320 hardcode_libdir_flag_spec='-rpath $libdir'
993910325
994010326 solaris*)
994110327 no_undefined_flag=' -z defs'
9942 if test "$GCC" = yes; then
9943 wlarc='${wl}'
9944 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 if test yes = "$GCC"; then
10329 wlarc='$wl'
10330 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
994510331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9946 $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'
10332 $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'
994710333 else
994810334 case `$CC -V 2>&1` in
994910335 *"Compilers 5.0"*)
995010336 wlarc=''
9951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
995210338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10339 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
995410340 ;;
995510341 *)
9956 wlarc='${wl}'
9957 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10342 wlarc='$wl'
10343 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
995810344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9959 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10345 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
996010346 ;;
996110347 esac
996210348 fi
996610352 solaris2.[0-5] | solaris2.[0-5].*) ;;
996710353 *)
996810354 # The compiler driver will combine and reorder linker options,
9969 # but understands `-z linker_flag'. GCC discards it without `$wl',
10355 # but understands '-z linker_flag'. GCC discards it without '$wl',
997010356 # but is careful enough not to reorder.
997110357 # Supported since Solaris 2.6 (maybe 2.5.1?)
9972 if test "$GCC" = yes; then
9973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10358 if test yes = "$GCC"; then
10359 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
997410360 else
997510361 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
997610362 fi
998010366 ;;
998110367
998210368 sunos4*)
9983 if test "x$host_vendor" = xsequent; then
10369 if test sequent = "$host_vendor"; then
998410370 # Use $CC to link under sequent, because it throws in some extra .o
998510371 # files that make .init and .fini sections work.
9986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
998710373 else
998810374 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
998910375 fi
1003210418 ;;
1003310419
1003410420 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10035 no_undefined_flag='${wl}-z,text'
10421 no_undefined_flag='$wl-z,text'
1003610422 archive_cmds_need_lc=no
1003710423 hardcode_shlibpath_var=no
1003810424 runpath_var='LD_RUN_PATH'
1003910425
10040 if test "$GCC" = yes; then
10041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 if test yes = "$GCC"; then
10427 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1004310429 else
10044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1004610432 fi
1004710433 ;;
1004810434
1004910435 sysv5* | sco3.2v5* | sco5v6*)
10050 # Note: We can NOT use -z defs as we might desire, because we do not
10436 # Note: We CANNOT use -z defs as we might desire, because we do not
1005110437 # link with -lc, and that would cause any symbols used from libc to
1005210438 # always be unresolved, which means just about no library would
1005310439 # ever link correctly. If we're not using GNU ld we use -z text
1005410440 # though, which does catch some bad symbols but isn't as heavy-handed
1005510441 # as -z defs.
10056 no_undefined_flag='${wl}-z,text'
10057 allow_undefined_flag='${wl}-z,nodefs'
10442 no_undefined_flag='$wl-z,text'
10443 allow_undefined_flag='$wl-z,nodefs'
1005810444 archive_cmds_need_lc=no
1005910445 hardcode_shlibpath_var=no
10060 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10446 hardcode_libdir_flag_spec='$wl-R,$libdir'
1006110447 hardcode_libdir_separator=':'
1006210448 link_all_deplibs=yes
10063 export_dynamic_flag_spec='${wl}-Bexport'
10449 export_dynamic_flag_spec='$wl-Bexport'
1006410450 runpath_var='LD_RUN_PATH'
1006510451
10066 if test "$GCC" = yes; then
10067 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10452 if test yes = "$GCC"; then
10453 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10454 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1006910455 else
10070 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1007210458 fi
1007310459 ;;
1007410460
1008310469 ;;
1008410470 esac
1008510471
10086 if test x$host_vendor = xsni; then
10472 if test sni = "$host_vendor"; then
1008710473 case $host in
1008810474 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10089 export_dynamic_flag_spec='${wl}-Blargedynsym'
10475 export_dynamic_flag_spec='$wl-Blargedynsym'
1009010476 ;;
1009110477 esac
1009210478 fi
1009410480
1009510481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
1009610482 $as_echo "$ld_shlibs" >&6; }
10097 test "$ld_shlibs" = no && can_build_shared=no
10483 test no = "$ld_shlibs" && can_build_shared=no
1009810484
1009910485 with_gnu_ld=$with_gnu_ld
1010010486
1012010506 # Assume -lc should be added
1012110507 archive_cmds_need_lc=yes
1012210508
10123 if test "$enable_shared" = yes && test "$GCC" = yes; then
10509 if test yes,yes = "$GCC,$enable_shared"; then
1012410510 case $archive_cmds in
1012510511 *'~'*)
1012610512 # FIXME: we may have to deal with multi-command sequences.
1033510721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1033610722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1033710723
10338 if test "$GCC" = yes; then
10724 if test yes = "$GCC"; then
1033910725 case $host_os in
10340 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10341 *) lt_awk_arg="/^libraries:/" ;;
10726 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10727 *) lt_awk_arg='/^libraries:/' ;;
1034210728 esac
1034310729 case $host_os in
10344 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10345 *) lt_sed_strip_eq="s,=/,/,g" ;;
10730 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10731 *) lt_sed_strip_eq='s|=/|/|g' ;;
1034610732 esac
1034710733 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
1034810734 case $lt_search_path_spec in
1035810744 ;;
1035910745 esac
1036010746 # Ok, now we have the path, separated by spaces, we can step through it
10361 # and add multilib dir if necessary.
10747 # and add multilib dir if necessary...
1036210748 lt_tmp_lt_search_path_spec=
10363 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10749 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10750 # ...but if some path component already ends with the multilib dir we assume
10751 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10752 case "$lt_multi_os_dir; $lt_search_path_spec " in
10753 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10754 lt_multi_os_dir=
10755 ;;
10756 esac
1036410757 for lt_sys_path in $lt_search_path_spec; do
10365 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10367 else
10758 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10759 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10760 elif test -n "$lt_multi_os_dir"; then
1036810761 test -d "$lt_sys_path" && \
1036910762 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1037010763 fi
1037110764 done
1037210765 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10373 BEGIN {RS=" "; FS="/|\n";} {
10374 lt_foo="";
10375 lt_count=0;
10766 BEGIN {RS = " "; FS = "/|\n";} {
10767 lt_foo = "";
10768 lt_count = 0;
1037610769 for (lt_i = NF; lt_i > 0; lt_i--) {
1037710770 if ($lt_i != "" && $lt_i != ".") {
1037810771 if ($lt_i == "..") {
1037910772 lt_count++;
1038010773 } else {
1038110774 if (lt_count == 0) {
10382 lt_foo="/" $lt_i lt_foo;
10775 lt_foo = "/" $lt_i lt_foo;
1038310776 } else {
1038410777 lt_count--;
1038510778 }
1039310786 # for these hosts.
1039410787 case $host_os in
1039510788 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10396 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10789 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1039710790 esac
1039810791 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1039910792 else
1040210795 library_names_spec=
1040310796 libname_spec='lib$name'
1040410797 soname_spec=
10405 shrext_cmds=".so"
10798 shrext_cmds=.so
1040610799 postinstall_cmds=
1040710800 postuninstall_cmds=
1040810801 finish_cmds=
1041910812 # flags to be left without arguments
1042010813 need_version=unknown
1042110814
10815
10816
1042210817 case $host_os in
1042310818 aix3*)
1042410819 version_type=linux # correct to gnu/linux during the next big refactor
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10820 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1042610821 shlibpath_var=LIBPATH
1042710822
1042810823 # AIX 3 has no versioning support, so we append a major version to the name.
10429 soname_spec='${libname}${release}${shared_ext}$major'
10824 soname_spec='$libname$release$shared_ext$major'
1043010825 ;;
1043110826
1043210827 aix[4-9]*)
1043410829 need_lib_prefix=no
1043510830 need_version=no
1043610831 hardcode_into_libs=yes
10437 if test "$host_cpu" = ia64; then
10832 if test ia64 = "$host_cpu"; then
1043810833 # AIX 5 supports IA64
10439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10834 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1044010835 shlibpath_var=LD_LIBRARY_PATH
1044110836 else
1044210837 # With GCC up to 2.95.x, collect2 would create an import file
1044310838 # for dependence libraries. The import file would start with
10444 # the line `#! .'. This would cause the generated library to
10445 # depend on `.', always an invalid library. This was fixed in
10839 # the line '#! .'. This would cause the generated library to
10840 # depend on '.', always an invalid library. This was fixed in
1044610841 # development snapshots of GCC prior to 3.0.
1044710842 case $host_os in
1044810843 aix4 | aix4.[01] | aix4.[01].*)
1044910844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1045010845 echo ' yes '
10451 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10846 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1045210847 :
1045310848 else
1045410849 can_build_shared=no
1045510850 fi
1045610851 ;;
1045710852 esac
10458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10853 # Using Import Files as archive members, it is possible to support
10854 # filename-based versioning of shared library archives on AIX. While
10855 # this would work for both with and without runtime linking, it will
10856 # prevent static linking of such archives. So we do filename-based
10857 # shared library versioning with .so extension only, which is used
10858 # when both runtime linking and shared linking is enabled.
10859 # Unfortunately, runtime linking may impact performance, so we do
10860 # not want this to be the default eventually. Also, we use the
10861 # versioned .so libs for executables only if there is the -brtl
10862 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10863 # To allow for filename-based versioning support, we need to create
10864 # libNAME.so.V as an archive file, containing:
10865 # *) an Import File, referring to the versioned filename of the
10866 # archive as well as the shared archive member, telling the
10867 # bitwidth (32 or 64) of that shared object, and providing the
10868 # list of exported symbols of that shared object, eventually
10869 # decorated with the 'weak' keyword
10870 # *) the shared object with the F_LOADONLY flag set, to really avoid
10871 # it being seen by the linker.
10872 # At run time we better use the real file rather than another symlink,
10873 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10874
10875 case $with_aix_soname,$aix_use_runtimelinking in
10876 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1045910877 # soname into executable. Probably we can add versioning support to
1046010878 # collect2, so additional links can be useful in future.
10461 if test "$aix_use_runtimelinking" = yes; then
10879 aix,yes) # traditional libtool
10880 dynamic_linker='AIX unversionable lib.so'
1046210881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1046310882 # instead of lib<name>.a to let people know that these are not
1046410883 # typical AIX shared libraries.
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 else
10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10885 ;;
10886 aix,no) # traditional AIX only
10887 dynamic_linker='AIX lib.a(lib.so.V)'
1046710888 # We preserve .a as extension for shared libraries through AIX4.2
1046810889 # and later when we are not doing run time linking.
10469 library_names_spec='${libname}${release}.a $libname.a'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 fi
10890 library_names_spec='$libname$release.a $libname.a'
10891 soname_spec='$libname$release$shared_ext$major'
10892 ;;
10893 svr4,*) # full svr4 only
10894 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10895 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10896 # We do not specify a path in Import Files, so LIBPATH fires.
10897 shlibpath_overrides_runpath=yes
10898 ;;
10899 *,yes) # both, prefer svr4
10900 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10901 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10902 # unpreferred sharedlib libNAME.a needs extra handling
10903 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10904 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10905 # We do not specify a path in Import Files, so LIBPATH fires.
10906 shlibpath_overrides_runpath=yes
10907 ;;
10908 *,no) # both, prefer aix
10909 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10910 library_names_spec='$libname$release.a $libname.a'
10911 soname_spec='$libname$release$shared_ext$major'
10912 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10913 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10914 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10915 ;;
10916 esac
1047210917 shlibpath_var=LIBPATH
1047310918 fi
1047410919 ;;
1047810923 powerpc)
1047910924 # Since July 2007 AmigaOS4 officially supports .so libraries.
1048010925 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1048210927 ;;
1048310928 m68k)
1048410929 library_names_spec='$libname.ixlibrary $libname.a'
1048510930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10486 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'
10931 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
1048710932 ;;
1048810933 esac
1048910934 ;;
1049010935
1049110936 beos*)
10492 library_names_spec='${libname}${shared_ext}'
10937 library_names_spec='$libname$shared_ext'
1049310938 dynamic_linker="$host_os ld.so"
1049410939 shlibpath_var=LIBRARY_PATH
1049510940 ;;
1049710942 bsdi[45]*)
1049810943 version_type=linux # correct to gnu/linux during the next big refactor
1049910944 need_version=no
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946 soname_spec='$libname$release$shared_ext$major'
1050210947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1050310948 shlibpath_var=LD_LIBRARY_PATH
1050410949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1051010955
1051110956 cygwin* | mingw* | pw32* | cegcc*)
1051210957 version_type=windows
10513 shrext_cmds=".dll"
10958 shrext_cmds=.dll
1051410959 need_version=no
1051510960 need_lib_prefix=no
1051610961
1051910964 # gcc
1052010965 library_names_spec='$libname.dll.a'
1052110966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10522 postinstall_cmds='base_file=`basename \${file}`~
10523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10967 postinstall_cmds='base_file=`basename \$file`~
10968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1052410969 dldir=$destdir/`dirname \$dlpath`~
1052510970 test -d \$dldir || mkdir -p \$dldir~
1052610971 $install_prog $dir/$dlname \$dldir/$dlname~
1053610981 case $host_os in
1053710982 cygwin*)
1053810983 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10539 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10984 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1054010985
1054110986 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1054210987 ;;
1054310988 mingw* | cegcc*)
1054410989 # MinGW DLLs use traditional 'lib' prefix
10545 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10990 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1054610991 ;;
1054710992 pw32*)
1054810993 # pw32 DLLs use 'pw' prefix rather than 'lib'
10549 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10994 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1055010995 ;;
1055110996 esac
1055210997 dynamic_linker='Win32 ld.exe'
1055511000 *,cl*)
1055611001 # Native MSVC
1055711002 libname_spec='$name'
10558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10559 library_names_spec='${libname}.dll.lib'
11003 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11004 library_names_spec='$libname.dll.lib'
1056011005
1056111006 case $build_os in
1056211007 mingw*)
1058311028 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1058411029 ;;
1058511030 *)
10586 sys_lib_search_path_spec="$LIB"
11031 sys_lib_search_path_spec=$LIB
1058711032 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1058811033 # It is most probably a Windows format PATH.
1058911034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1059611041 esac
1059711042
1059811043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10599 postinstall_cmds='base_file=`basename \${file}`~
10600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11044 postinstall_cmds='base_file=`basename \$file`~
11045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1060111046 dldir=$destdir/`dirname \$dlpath`~
1060211047 test -d \$dldir || mkdir -p \$dldir~
1060311048 $install_prog $dir/$dlname \$dldir/$dlname'
1061011055
1061111056 *)
1061211057 # Assume MSVC wrapper
10613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11058 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1061411059 dynamic_linker='Win32 ld.exe'
1061511060 ;;
1061611061 esac
1062311068 version_type=darwin
1062411069 need_lib_prefix=no
1062511070 need_version=no
10626 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10627 soname_spec='${libname}${release}${major}$shared_ext'
11071 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11072 soname_spec='$libname$release$major$shared_ext'
1062811073 shlibpath_overrides_runpath=yes
1062911074 shlibpath_var=DYLD_LIBRARY_PATH
1063011075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1063711082 version_type=linux # correct to gnu/linux during the next big refactor
1063811083 need_lib_prefix=no
1063911084 need_version=no
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10641 soname_spec='${libname}${release}${shared_ext}$major'
11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11086 soname_spec='$libname$release$shared_ext$major'
1064211087 shlibpath_var=LD_LIBRARY_PATH
1064311088 ;;
1064411089
1065611101 version_type=freebsd-$objformat
1065711102 case $version_type in
1065811103 freebsd-elf*)
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11105 soname_spec='$libname$release$shared_ext$major'
1066011106 need_version=no
1066111107 need_lib_prefix=no
1066211108 ;;
1066311109 freebsd-*)
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1066511111 need_version=yes
1066611112 ;;
1066711113 esac
1069111137 need_lib_prefix=no
1069211138 need_version=no
1069311139 dynamic_linker="$host_os runtime_loader"
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11141 soname_spec='$libname$release$shared_ext$major'
1069611142 shlibpath_var=LIBRARY_PATH
10697 shlibpath_overrides_runpath=yes
11143 shlibpath_overrides_runpath=no
1069811144 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1069911145 hardcode_into_libs=yes
1070011146 ;;
1071211158 dynamic_linker="$host_os dld.so"
1071311159 shlibpath_var=LD_LIBRARY_PATH
1071411160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 if test "X$HPUX_IA64_MODE" = X32; then
11161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11162 soname_spec='$libname$release$shared_ext$major'
11163 if test 32 = "$HPUX_IA64_MODE"; then
1071811164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11165 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1071911166 else
1072011167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11168 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1072111169 fi
10722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1072311170 ;;
1072411171 hppa*64*)
1072511172 shrext_cmds='.sl'
1072711174 dynamic_linker="$host_os dld.sl"
1072811175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1072911176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
11177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11178 soname_spec='$libname$release$shared_ext$major'
1073211179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1073311180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1073411181 ;;
1073711184 dynamic_linker="$host_os dld.sl"
1073811185 shlibpath_var=SHLIB_PATH
1073911186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 soname_spec='${libname}${release}${shared_ext}$major'
11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188 soname_spec='$libname$release$shared_ext$major'
1074211189 ;;
1074311190 esac
1074411191 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1075111198 version_type=linux # correct to gnu/linux during the next big refactor
1075211199 need_lib_prefix=no
1075311200 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202 soname_spec='$libname$release$shared_ext$major'
1075611203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1075711204 shlibpath_var=LD_LIBRARY_PATH
1075811205 shlibpath_overrides_runpath=no
1076311210 case $host_os in
1076411211 nonstopux*) version_type=nonstopux ;;
1076511212 *)
10766 if test "$lt_cv_prog_gnu_ld" = yes; then
11213 if test yes = "$lt_cv_prog_gnu_ld"; then
1076711214 version_type=linux # correct to gnu/linux during the next big refactor
1076811215 else
1076911216 version_type=irix
1077111218 esac
1077211219 need_lib_prefix=no
1077311220 need_version=no
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11221 soname_spec='$libname$release$shared_ext$major'
11222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1077611223 case $host_os in
1077711224 irix5* | nonstopux*)
1077811225 libsuff= shlibsuff=
1079111238 esac
1079211239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1079311240 shlibpath_overrides_runpath=no
10794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11241 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11242 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1079611243 hardcode_into_libs=yes
1079711244 ;;
1079811245
1079911246 # No shared lib support for Linux oldld, aout, or coff.
1080011247 linux*oldld* | linux*aout* | linux*coff*)
1080111248 dynamic_linker=no
11249 ;;
11250
11251 linux*android*)
11252 version_type=none # Android doesn't support versioned libraries.
11253 need_lib_prefix=no
11254 need_version=no
11255 library_names_spec='$libname$release$shared_ext'
11256 soname_spec='$libname$release$shared_ext'
11257 finish_cmds=
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260
11261 # This implies no fast_install, which is unacceptable.
11262 # Some rework will be needed to allow for fast_install
11263 # before this can be enabled.
11264 hardcode_into_libs=yes
11265
11266 dynamic_linker='Android linker'
11267 # Don't embed -rpath directories since the linker doesn't support them.
11268 hardcode_libdir_flag_spec='-L$libdir'
1080211269 ;;
1080311270
1080411271 # This must be glibc/ELF.
1080611273 version_type=linux # correct to gnu/linux during the next big refactor
1080711274 need_lib_prefix=no
1080811275 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11277 soname_spec='$libname$release$shared_ext$major'
1081111278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1081211279 shlibpath_var=LD_LIBRARY_PATH
1081311280 shlibpath_overrides_runpath=no
1085111318 # before this can be enabled.
1085211319 hardcode_into_libs=yes
1085311320
10854 # Append ld.so.conf contents to the search path
11321 # Ideally, we could use ldconfig to report *all* directores which are
11322 # searched for libraries, however this is still not possible. Aside from not
11323 # being certain /sbin/ldconfig is available, command
11324 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11325 # even though it is searched at run-time. Try to do the best guess by
11326 # appending ld.so.conf contents (and includes) to the search path.
1085511327 if test -f /etc/ld.so.conf; then
1085611328 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' ' '`
1085711329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1088311355 need_lib_prefix=no
1088411356 need_version=no
1088511357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11358 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1088711359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1088811360 dynamic_linker='NetBSD (a.out) ld.so'
1088911361 else
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11363 soname_spec='$libname$release$shared_ext$major'
1089211364 dynamic_linker='NetBSD ld.elf_so'
1089311365 fi
1089411366 shlibpath_var=LD_LIBRARY_PATH
1089811370
1089911371 newsos6)
1090011372 version_type=linux # correct to gnu/linux during the next big refactor
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1090211374 shlibpath_var=LD_LIBRARY_PATH
1090311375 shlibpath_overrides_runpath=yes
1090411376 ;;
1090711379 version_type=qnx
1090811380 need_lib_prefix=no
1090911381 need_version=no
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911 soname_spec='${libname}${release}${shared_ext}$major'
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11383 soname_spec='$libname$release$shared_ext$major'
1091211384 shlibpath_var=LD_LIBRARY_PATH
1091311385 shlibpath_overrides_runpath=no
1091411386 hardcode_into_libs=yes
1091511387 dynamic_linker='ldqnx.so'
1091611388 ;;
1091711389
10918 openbsd*)
11390 openbsd* | bitrig*)
1091911391 version_type=sunos
10920 sys_lib_dlsearch_path_spec="/usr/lib"
11392 sys_lib_dlsearch_path_spec=/usr/lib
1092111393 need_lib_prefix=no
10922 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10923 case $host_os in
10924 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10925 *) need_version=no ;;
10926 esac
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11394 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11395 need_version=no
11396 else
11397 need_version=yes
11398 fi
11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1092811400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1092911401 shlibpath_var=LD_LIBRARY_PATH
10930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10931 case $host_os in
10932 openbsd2.[89] | openbsd2.[89].*)
10933 shlibpath_overrides_runpath=no
10934 ;;
10935 *)
10936 shlibpath_overrides_runpath=yes
10937 ;;
10938 esac
10939 else
10940 shlibpath_overrides_runpath=yes
10941 fi
11402 shlibpath_overrides_runpath=yes
1094211403 ;;
1094311404
1094411405 os2*)
1094511406 libname_spec='$name'
10946 shrext_cmds=".dll"
11407 version_type=windows
11408 shrext_cmds=.dll
11409 need_version=no
1094711410 need_lib_prefix=no
10948 library_names_spec='$libname${shared_ext} $libname.a'
11411 # OS/2 can only load a DLL with a base name of 8 characters or less.
11412 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11413 v=$($ECHO $release$versuffix | tr -d .-);
11414 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11415 $ECHO $n$v`$shared_ext'
11416 library_names_spec='${libname}_dll.$libext'
1094911417 dynamic_linker='OS/2 ld.exe'
10950 shlibpath_var=LIBPATH
11418 shlibpath_var=BEGINLIBPATH
11419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11421 postinstall_cmds='base_file=`basename \$file`~
11422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11423 dldir=$destdir/`dirname \$dlpath`~
11424 test -d \$dldir || mkdir -p \$dldir~
11425 $install_prog $dir/$dlname \$dldir/$dlname~
11426 chmod a+x \$dldir/$dlname~
11427 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11428 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11429 fi'
11430 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11431 dlpath=$dir/\$dldll~
11432 $RM \$dlpath'
1095111433 ;;
1095211434
1095311435 osf3* | osf4* | osf5*)
1095411436 version_type=osf
1095511437 need_lib_prefix=no
1095611438 need_version=no
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 soname_spec='$libname$release$shared_ext$major'
11440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1095911441 shlibpath_var=LD_LIBRARY_PATH
1096011442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10961 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1096211444 ;;
1096311445
1096411446 rdos*)
1096911451 version_type=linux # correct to gnu/linux during the next big refactor
1097011452 need_lib_prefix=no
1097111453 need_version=no
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11455 soname_spec='$libname$release$shared_ext$major'
1097411456 shlibpath_var=LD_LIBRARY_PATH
1097511457 shlibpath_overrides_runpath=yes
1097611458 hardcode_into_libs=yes
1098011462
1098111463 sunos4*)
1098211464 version_type=sunos
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1098411466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1098511467 shlibpath_var=LD_LIBRARY_PATH
1098611468 shlibpath_overrides_runpath=yes
10987 if test "$with_gnu_ld" = yes; then
11469 if test yes = "$with_gnu_ld"; then
1098811470 need_lib_prefix=no
1098911471 fi
1099011472 need_version=yes
1099211474
1099311475 sysv4 | sysv4.3*)
1099411476 version_type=linux # correct to gnu/linux during the next big refactor
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
11477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11478 soname_spec='$libname$release$shared_ext$major'
1099711479 shlibpath_var=LD_LIBRARY_PATH
1099811480 case $host_vendor in
1099911481 sni)
1101411496 ;;
1101511497
1101611498 sysv4*MP*)
11017 if test -d /usr/nec ;then
11499 if test -d /usr/nec; then
1101811500 version_type=linux # correct to gnu/linux during the next big refactor
11019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020 soname_spec='$libname${shared_ext}.$major'
11501 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11502 soname_spec='$libname$shared_ext.$major'
1102111503 shlibpath_var=LD_LIBRARY_PATH
1102211504 fi
1102311505 ;;
1102411506
1102511507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11026 version_type=freebsd-elf
11508 version_type=sco
1102711509 need_lib_prefix=no
1102811510 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11512 soname_spec='$libname$release$shared_ext$major'
1103111513 shlibpath_var=LD_LIBRARY_PATH
1103211514 shlibpath_overrides_runpath=yes
1103311515 hardcode_into_libs=yes
11034 if test "$with_gnu_ld" = yes; then
11516 if test yes = "$with_gnu_ld"; then
1103511517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1103611518 else
1103711519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1104911531 version_type=linux # correct to gnu/linux during the next big refactor
1105011532 need_lib_prefix=no
1105111533 need_version=no
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1105311535 shlibpath_var=LD_LIBRARY_PATH
1105411536 shlibpath_overrides_runpath=no
1105511537 hardcode_into_libs=yes
1105711539
1105811540 uts4*)
1105911541 version_type=linux # correct to gnu/linux during the next big refactor
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11543 soname_spec='$libname$release$shared_ext$major'
1106211544 shlibpath_var=LD_LIBRARY_PATH
1106311545 ;;
1106411546
1106811550 esac
1106911551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1107011552 $as_echo "$dynamic_linker" >&6; }
11071 test "$dynamic_linker" = no && can_build_shared=no
11553 test no = "$dynamic_linker" && can_build_shared=no
1107211554
1107311555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11074 if test "$GCC" = yes; then
11556 if test yes = "$GCC"; then
1107511557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1107611558 fi
1107711559
11078 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11079 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11080 fi
11081 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11082 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11083 fi
11560 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11561 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11562 fi
11563
11564 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11565 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11566 fi
11567
11568 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11569 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11570
11571 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11572 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11573
11574 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11575 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11576
11577
11578
11579
11580
1108411581
1108511582
1108611583
1117811675 hardcode_action=
1117911676 if test -n "$hardcode_libdir_flag_spec" ||
1118011677 test -n "$runpath_var" ||
11181 test "X$hardcode_automatic" = "Xyes" ; then
11678 test yes = "$hardcode_automatic"; then
1118211679
1118311680 # We can hardcode non-existent directories.
11184 if test "$hardcode_direct" != no &&
11681 if test no != "$hardcode_direct" &&
1118511682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1118611683 # have to relink, otherwise we might link with an installed library
1118711684 # when we should be linking with a yet-to-be-installed one
11188 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11189 test "$hardcode_minus_L" != no; then
11685 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11686 test no != "$hardcode_minus_L"; then
1119011687 # Linking always hardcodes the temporary library directory.
1119111688 hardcode_action=relink
1119211689 else
1120111698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1120211699 $as_echo "$hardcode_action" >&6; }
1120311700
11204 if test "$hardcode_action" = relink ||
11205 test "$inherit_rpath" = yes; then
11701 if test relink = "$hardcode_action" ||
11702 test yes = "$inherit_rpath"; then
1120611703 # Fast installation is not supported
1120711704 enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209 test "$enable_shared" = no; then
11705 elif test yes = "$shlibpath_overrides_runpath" ||
11706 test no = "$enable_shared"; then
1121011707 # Fast installation is not necessary
1121111708 enable_fast_install=needless
1121211709 fi
1121611713
1121711714
1121811715
11219 if test "x$enable_dlopen" != xyes; then
11716 if test yes != "$enable_dlopen"; then
1122011717 enable_dlopen=unknown
1122111718 enable_dlopen_self=unknown
1122211719 enable_dlopen_self_static=unknown
1122611723
1122711724 case $host_os in
1122811725 beos*)
11229 lt_cv_dlopen="load_add_on"
11726 lt_cv_dlopen=load_add_on
1123011727 lt_cv_dlopen_libs=
1123111728 lt_cv_dlopen_self=yes
1123211729 ;;
1123311730
1123411731 mingw* | pw32* | cegcc*)
11235 lt_cv_dlopen="LoadLibrary"
11732 lt_cv_dlopen=LoadLibrary
1123611733 lt_cv_dlopen_libs=
1123711734 ;;
1123811735
1123911736 cygwin*)
11240 lt_cv_dlopen="dlopen"
11737 lt_cv_dlopen=dlopen
1124111738 lt_cv_dlopen_libs=
1124211739 ;;
1124311740
1124411741 darwin*)
11245 # if libdl is installed we need to link against it
11742 # if libdl is installed we need to link against it
1124611743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1124711744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1124811745 if ${ac_cv_lib_dl_dlopen+:} false; then :
1128011777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1128111778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1128211779 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11284 else
11285
11286 lt_cv_dlopen="dyld"
11780 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11781 else
11782
11783 lt_cv_dlopen=dyld
1128711784 lt_cv_dlopen_libs=
1128811785 lt_cv_dlopen_self=yes
1128911786
1129011787 fi
1129111788
11789 ;;
11790
11791 tpf*)
11792 # Don't try to run any link tests for TPF. We know it's impossible
11793 # because TPF is a cross-compiler, and we know how we open DSOs.
11794 lt_cv_dlopen=dlopen
11795 lt_cv_dlopen_libs=
11796 lt_cv_dlopen_self=no
1129211797 ;;
1129311798
1129411799 *)
1129511800 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1129611801 if test "x$ac_cv_func_shl_load" = xyes; then :
11297 lt_cv_dlopen="shl_load"
11802 lt_cv_dlopen=shl_load
1129811803 else
1129911804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1130011805 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1133311838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1133411839 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1133511840 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11841 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1133711842 else
1133811843 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1133911844 if test "x$ac_cv_func_dlopen" = xyes; then :
11340 lt_cv_dlopen="dlopen"
11845 lt_cv_dlopen=dlopen
1134111846 else
1134211847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1134311848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1137611881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1137711882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1137811883 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11884 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1138011885 else
1138111886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1138211887 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1141511920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1141611921 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1141711922 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11923 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1141911924 else
1142011925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1142111926 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1145411959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1145511960 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1145611961 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11457 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11962 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1145811963 fi
1145911964
1146011965
1147511980 ;;
1147611981 esac
1147711982
11478 if test "x$lt_cv_dlopen" != xno; then
11983 if test no = "$lt_cv_dlopen"; then
11984 enable_dlopen=no
11985 else
1147911986 enable_dlopen=yes
11480 else
11481 enable_dlopen=no
1148211987 fi
1148311988
1148411989 case $lt_cv_dlopen in
1148511990 dlopen)
11486 save_CPPFLAGS="$CPPFLAGS"
11487 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11488
11489 save_LDFLAGS="$LDFLAGS"
11991 save_CPPFLAGS=$CPPFLAGS
11992 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11993
11994 save_LDFLAGS=$LDFLAGS
1149011995 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1149111996
11492 save_LIBS="$LIBS"
11997 save_LIBS=$LIBS
1149311998 LIBS="$lt_cv_dlopen_libs $LIBS"
1149411999
1149512000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1149712002 if ${lt_cv_dlopen_self+:} false; then :
1149812003 $as_echo_n "(cached) " >&6
1149912004 else
11500 if test "$cross_compiling" = yes; then :
12005 if test yes = "$cross_compiling"; then :
1150112006 lt_cv_dlopen_self=cross
1150212007 else
1150312008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1154412049 # endif
1154512050 #endif
1154612051
11547 /* When -fvisbility=hidden is used, assume the code has been annotated
12052 /* When -fvisibility=hidden is used, assume the code has been annotated
1154812053 correspondingly for the symbols needed. */
11549 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12054 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1155012055 int fnord () __attribute__((visibility("default")));
1155112056 #endif
1155212057
1157612081 (eval $ac_link) 2>&5
1157712082 ac_status=$?
1157812083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12084 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1158012085 (./conftest; exit; ) >&5 2>/dev/null
1158112086 lt_status=$?
1158212087 case x$lt_status in
1159612101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1159712102 $as_echo "$lt_cv_dlopen_self" >&6; }
1159812103
11599 if test "x$lt_cv_dlopen_self" = xyes; then
12104 if test yes = "$lt_cv_dlopen_self"; then
1160012105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1160112106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1160212107 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1160312108 if ${lt_cv_dlopen_self_static+:} false; then :
1160412109 $as_echo_n "(cached) " >&6
1160512110 else
11606 if test "$cross_compiling" = yes; then :
12111 if test yes = "$cross_compiling"; then :
1160712112 lt_cv_dlopen_self_static=cross
1160812113 else
1160912114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1165012155 # endif
1165112156 #endif
1165212157
11653 /* When -fvisbility=hidden is used, assume the code has been annotated
12158 /* When -fvisibility=hidden is used, assume the code has been annotated
1165412159 correspondingly for the symbols needed. */
11655 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12160 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1165612161 int fnord () __attribute__((visibility("default")));
1165712162 #endif
1165812163
1168212187 (eval $ac_link) 2>&5
1168312188 ac_status=$?
1168412189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12190 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1168612191 (./conftest; exit; ) >&5 2>/dev/null
1168712192 lt_status=$?
1168812193 case x$lt_status in
1170312208 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1170412209 fi
1170512210
11706 CPPFLAGS="$save_CPPFLAGS"
11707 LDFLAGS="$save_LDFLAGS"
11708 LIBS="$save_LIBS"
12211 CPPFLAGS=$save_CPPFLAGS
12212 LDFLAGS=$save_LDFLAGS
12213 LIBS=$save_LIBS
1170912214 ;;
1171012215 esac
1171112216
1174912254 # FIXME - insert some real tests, host_os isn't really good enough
1175012255 case $host_os in
1175112256 darwin*)
11752 if test -n "$STRIP" ; then
12257 if test -n "$STRIP"; then
1175312258 striplib="$STRIP -x"
1175412259 old_striplib="$STRIP -S"
1175512260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1177712282
1177812283
1177912284
11780 # Report which library types will actually be built
12285 # Report what library types will actually be built
1178112286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1178212287 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1178312288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1178512290
1178612291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1178712292 $as_echo_n "checking whether to build shared libraries... " >&6; }
11788 test "$can_build_shared" = "no" && enable_shared=no
12293 test no = "$can_build_shared" && enable_shared=no
1178912294
1179012295 # On AIX, shared libraries and static libraries use the same namespace, and
1179112296 # are all built from PIC.
1179212297 case $host_os in
1179312298 aix3*)
11794 test "$enable_shared" = yes && enable_static=no
12299 test yes = "$enable_shared" && enable_static=no
1179512300 if test -n "$RANLIB"; then
1179612301 archive_cmds="$archive_cmds~\$RANLIB \$lib"
1179712302 postinstall_cmds='$RANLIB $lib'
1179912304 ;;
1180012305
1180112306 aix[4-9]*)
11802 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11803 test "$enable_shared" = yes && enable_static=no
12307 if test ia64 != "$host_cpu"; then
12308 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12309 yes,aix,yes) ;; # shared object as lib.so file only
12310 yes,svr4,*) ;; # shared object as lib.so archive member only
12311 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12312 esac
1180412313 fi
1180512314 ;;
1180612315 esac
1181012319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1181112320 $as_echo_n "checking whether to build static libraries... " >&6; }
1181212321 # Make sure either enable_shared or enable_static is yes.
11813 test "$enable_shared" = yes || enable_static=yes
12322 test yes = "$enable_shared" || enable_static=yes
1181412323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1181512324 $as_echo "$enable_static" >&6; }
1181612325
1182412333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1182512334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1182612335
11827 CC="$lt_save_CC"
12336 CC=$lt_save_CC
1182812337
1182912338
1183012339
1296313472
1296413473 func_stripname_cnf ()
1296513474 {
12966 case ${2} in
12967 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12968 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13475 case $2 in
13476 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13477 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
1296913478 esac
1297013479 } # func_stripname_cnf
1297113480
12972 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12973 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12974 (test "X$CXX" != "Xg++"))) ; then
13481 if test -n "$CXX" && ( test no != "$CXX" &&
13482 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13483 (test g++ != "$CXX"))); then
1297513484 ac_ext=cpp
1297613485 ac_cpp='$CXXCPP $CPPFLAGS'
1297713486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315013659 # the CXX compiler isn't working. Some variables (like enable_shared)
1315113660 # are currently assumed to apply to all compilers on this platform,
1315213661 # and will be corrupted by setting them based on a non-working compiler.
13153 if test "$_lt_caught_CXX_error" != yes; then
13662 if test yes != "$_lt_caught_CXX_error"; then
1315413663 # Code to be used in simple compile tests
1315513664 lt_simple_compile_test_code="int some_variable = 0;"
1315613665
1321113720 CFLAGS=$CXXFLAGS
1321213721 compiler=$CC
1321313722 compiler_CXX=$CC
13214 for cc_temp in $compiler""; do
13215 case $cc_temp in
13216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13218 \-*) ;;
13219 *) break;;
13220 esac
13221 done
13222 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13723 func_cc_basename $compiler
13724 cc_basename=$func_cc_basename_result
1322313725
1322413726
1322513727 if test -n "$compiler"; then
1322613728 # We don't want -fno-exception when compiling C++ code, so set the
1322713729 # no_builtin_flag separately
13228 if test "$GXX" = yes; then
13730 if test yes = "$GXX"; then
1322913731 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
1323013732 else
1323113733 lt_prog_compiler_no_builtin_flag_CXX=
1323213734 fi
1323313735
13234 if test "$GXX" = yes; then
13736 if test yes = "$GXX"; then
1323513737 # Set up default GNU C++ configuration
1323613738
1323713739
1323813740
1323913741 # Check whether --with-gnu-ld was given.
1324013742 if test "${with_gnu_ld+set}" = set; then :
13241 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13743 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
1324213744 else
1324313745 with_gnu_ld=no
1324413746 fi
1324513747
1324613748 ac_prog=ld
13247 if test "$GCC" = yes; then
13749 if test yes = "$GCC"; then
1324813750 # Check if gcc -print-prog-name=ld gives a path.
1324913751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
1325013752 $as_echo_n "checking for ld used by $CC... " >&6; }
1325113753 case $host in
1325213754 *-*-mingw*)
13253 # gcc leaves a trailing carriage return which upsets mingw
13755 # gcc leaves a trailing carriage return, which upsets mingw
1325413756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1325513757 *)
1325613758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1326413766 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
1326513767 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1326613768 done
13267 test -z "$LD" && LD="$ac_prog"
13769 test -z "$LD" && LD=$ac_prog
1326813770 ;;
1326913771 "")
1327013772 # If it fails, then pretend we aren't using GCC.
1327513777 with_gnu_ld=unknown
1327613778 ;;
1327713779 esac
13278 elif test "$with_gnu_ld" = yes; then
13780 elif test yes = "$with_gnu_ld"; then
1327913781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
1328013782 $as_echo_n "checking for GNU ld... " >&6; }
1328113783 else
1328613788 $as_echo_n "(cached) " >&6
1328713789 else
1328813790 if test -z "$LD"; then
13289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13791 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1329013792 for ac_dir in $PATH; do
13291 IFS="$lt_save_ifs"
13793 IFS=$lt_save_ifs
1329213794 test -z "$ac_dir" && ac_dir=.
1329313795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13294 lt_cv_path_LD="$ac_dir/$ac_prog"
13796 lt_cv_path_LD=$ac_dir/$ac_prog
1329513797 # Check to see if the program is GNU ld. I'd rather use --version,
1329613798 # but apparently some variants of GNU ld only accept -v.
1329713799 # Break only if it was the GNU/non-GNU ld that we prefer.
1329813800 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1329913801 *GNU* | *'with BFD'*)
13300 test "$with_gnu_ld" != no && break
13802 test no != "$with_gnu_ld" && break
1330113803 ;;
1330213804 *)
13303 test "$with_gnu_ld" != yes && break
13805 test yes != "$with_gnu_ld" && break
1330413806 ;;
1330513807 esac
1330613808 fi
1330713809 done
13308 IFS="$lt_save_ifs"
13309 else
13310 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13311 fi
13312 fi
13313
13314 LD="$lt_cv_path_LD"
13810 IFS=$lt_save_ifs
13811 else
13812 lt_cv_path_LD=$LD # Let the user override the test with a path.
13813 fi
13814 fi
13815
13816 LD=$lt_cv_path_LD
1331513817 if test -n "$LD"; then
1331613818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
1331713819 $as_echo "$LD" >&6; }
1334713849
1334813850 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1334913851 # archiving commands below assume that GNU ld is being used.
13350 if test "$with_gnu_ld" = yes; then
13351 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13352 archive_expsym_cmds_CXX='$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'
13353
13354 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13355 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13852 if test yes = "$with_gnu_ld"; then
13853 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13854 archive_expsym_cmds_CXX='$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'
13855
13856 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13857 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1335613858
1335713859 # If archive_cmds runs LD, not CC, wlarc should be empty
1335813860 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
1335913861 # investigate it a little bit more. (MM)
13360 wlarc='${wl}'
13862 wlarc='$wl'
1336113863
1336213864 # ancient GNU ld didn't support --whole-archive et. al.
1336313865 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
1336413866 $GREP 'no-whole-archive' > /dev/null; then
13365 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13867 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1336613868 else
1336713869 whole_archive_flag_spec_CXX=
1336813870 fi
1339913901 ld_shlibs_CXX=no
1340013902 ;;
1340113903 aix[4-9]*)
13402 if test "$host_cpu" = ia64; then
13904 if test ia64 = "$host_cpu"; then
1340313905 # On IA64, the linker does run time linking by default, so we don't
1340413906 # have to do anything special.
1340513907 aix_use_runtimelinking=no
1340613908 exp_sym_flag='-Bexport'
13407 no_entry_flag=""
13909 no_entry_flag=
1340813910 else
1340913911 aix_use_runtimelinking=no
1341013912
1341113913 # Test if we are trying to use run time linking or normal
1341213914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13413 # need to do runtime linking.
13915 # have runtime linking enabled, and use it for executables.
13916 # For shared libraries, we enable/disable runtime linking
13917 # depending on the kind of the shared library created -
13918 # when "with_aix_soname,aix_use_runtimelinking" is:
13919 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13920 # "aix,yes" lib.so shared, rtl:yes, for executables
13921 # lib.a static archive
13922 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13923 # lib.a(lib.so.V) shared, rtl:no, for executables
13924 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13925 # lib.a(lib.so.V) shared, rtl:no
13926 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13927 # lib.a static archive
1341413928 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1341513929 for ld_flag in $LDFLAGS; do
1341613930 case $ld_flag in
1342013934 ;;
1342113935 esac
1342213936 done
13937 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13938 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13939 # so we don't have lib.a shared libs to link our executables.
13940 # We have to force runtime linking in this case.
13941 aix_use_runtimelinking=yes
13942 LDFLAGS="$LDFLAGS -Wl,-brtl"
13943 fi
1342313944 ;;
1342413945 esac
1342513946
1343813959 hardcode_direct_absolute_CXX=yes
1343913960 hardcode_libdir_separator_CXX=':'
1344013961 link_all_deplibs_CXX=yes
13441 file_list_spec_CXX='${wl}-f,'
13442
13443 if test "$GXX" = yes; then
13962 file_list_spec_CXX='$wl-f,'
13963 case $with_aix_soname,$aix_use_runtimelinking in
13964 aix,*) ;; # no import file
13965 svr4,* | *,yes) # use import file
13966 # The Import File defines what to hardcode.
13967 hardcode_direct_CXX=no
13968 hardcode_direct_absolute_CXX=no
13969 ;;
13970 esac
13971
13972 if test yes = "$GXX"; then
1344413973 case $host_os in aix4.[012]|aix4.[012].*)
1344513974 # We only want to do this on AIX 4.2 and lower, the check
1344613975 # below for broken collect2 doesn't work under 4.3+
13447 collect2name=`${CC} -print-prog-name=collect2`
13976 collect2name=`$CC -print-prog-name=collect2`
1344813977 if test -f "$collect2name" &&
1344913978 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1345013979 then
1346213991 fi
1346313992 esac
1346413993 shared_flag='-shared'
13465 if test "$aix_use_runtimelinking" = yes; then
13466 shared_flag="$shared_flag "'${wl}-G'
13994 if test yes = "$aix_use_runtimelinking"; then
13995 shared_flag=$shared_flag' $wl-G'
1346713996 fi
13997 # Need to ensure runtime linking is disabled for the traditional
13998 # shared library, or the linker may eventually find shared libraries
13999 # /with/ Import File - we do not want to mix them.
14000 shared_flag_aix='-shared'
14001 shared_flag_svr4='-shared $wl-G'
1346814002 else
1346914003 # not using gcc
13470 if test "$host_cpu" = ia64; then
14004 if test ia64 = "$host_cpu"; then
1347114005 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1347214006 # chokes on -Wl,-G. The following line is correct:
1347314007 shared_flag='-G'
1347414008 else
13475 if test "$aix_use_runtimelinking" = yes; then
13476 shared_flag='${wl}-G'
14009 if test yes = "$aix_use_runtimelinking"; then
14010 shared_flag='$wl-G'
1347714011 else
13478 shared_flag='${wl}-bM:SRE'
14012 shared_flag='$wl-bM:SRE'
1347914013 fi
14014 shared_flag_aix='$wl-bM:SRE'
14015 shared_flag_svr4='$wl-G'
1348014016 fi
1348114017 fi
1348214018
13483 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14019 export_dynamic_flag_spec_CXX='$wl-bexpall'
1348414020 # It seems that -bexpall does not export symbols beginning with
1348514021 # underscore (_), so it is better to generate a list of symbols to
1348614022 # export.
1348714023 always_export_symbols_CXX=yes
13488 if test "$aix_use_runtimelinking" = yes; then
14024 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1348914025 # Warning - without using the other runtime loading flags (-brtl),
1349014026 # -berok will link without error, but may produce a broken library.
13491 allow_undefined_flag_CXX='-berok'
14027 # The "-G" linker flag allows undefined symbols.
14028 no_undefined_flag_CXX='-bernotok'
1349214029 # Determine the default libpath from the value encoded in an empty
1349314030 # executable.
13494 if test "${lt_cv_aix_libpath+set}" = set; then
14031 if test set = "${lt_cv_aix_libpath+set}"; then
1349514032 aix_libpath=$lt_cv_aix_libpath
1349614033 else
1349714034 if ${lt_cv_aix_libpath__CXX+:} false; then :
1352614063 rm -f core conftest.err conftest.$ac_objext \
1352714064 conftest$ac_exeext conftest.$ac_ext
1352814065 if test -z "$lt_cv_aix_libpath__CXX"; then
13529 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14066 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1353014067 fi
1353114068
1353214069 fi
1353414071 aix_libpath=$lt_cv_aix_libpath__CXX
1353514072 fi
1353614073
13537 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13538
13539 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14074 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14075
14076 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1354014077 else
13541 if test "$host_cpu" = ia64; then
13542 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14078 if test ia64 = "$host_cpu"; then
14079 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
1354314080 allow_undefined_flag_CXX="-z nodefs"
13544 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14081 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
1354514082 else
1354614083 # Determine the default libpath from the value encoded in an
1354714084 # empty executable.
13548 if test "${lt_cv_aix_libpath+set}" = set; then
14085 if test set = "${lt_cv_aix_libpath+set}"; then
1354914086 aix_libpath=$lt_cv_aix_libpath
1355014087 else
1355114088 if ${lt_cv_aix_libpath__CXX+:} false; then :
1358014117 rm -f core conftest.err conftest.$ac_objext \
1358114118 conftest$ac_exeext conftest.$ac_ext
1358214119 if test -z "$lt_cv_aix_libpath__CXX"; then
13583 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14120 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1358414121 fi
1358514122
1358614123 fi
1358814125 aix_libpath=$lt_cv_aix_libpath__CXX
1358914126 fi
1359014127
13591 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14128 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1359214129 # Warning - without using the other run time loading flags,
1359314130 # -berok will link without error, but may produce a broken library.
13594 no_undefined_flag_CXX=' ${wl}-bernotok'
13595 allow_undefined_flag_CXX=' ${wl}-berok'
13596 if test "$with_gnu_ld" = yes; then
14131 no_undefined_flag_CXX=' $wl-bernotok'
14132 allow_undefined_flag_CXX=' $wl-berok'
14133 if test yes = "$with_gnu_ld"; then
1359714134 # We only use this code for GNU lds that support --whole-archive.
13598 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14135 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1359914136 else
1360014137 # Exported symbols can be pulled into shared objects from archives
1360114138 whole_archive_flag_spec_CXX='$convenience'
1360214139 fi
1360314140 archive_cmds_need_lc_CXX=yes
13604 # This is similar to how AIX traditionally builds its shared
13605 # libraries.
13606 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14141 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14142 # -brtl affects multiple linker settings, -berok does not and is overridden later
14143 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14144 if test svr4 != "$with_aix_soname"; then
14145 # This is similar to how AIX traditionally builds its shared
14146 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14147 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14148 fi
14149 if test aix != "$with_aix_soname"; then
14150 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14151 else
14152 # used by -dlpreopen to get the symbols
14153 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14154 fi
14155 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
1360714156 fi
1360814157 fi
1360914158 ;;
1361314162 allow_undefined_flag_CXX=unsupported
1361414163 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1361514164 # support --undefined. This deserves some investigation. FIXME
13616 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1361714166 else
1361814167 ld_shlibs_CXX=no
1361914168 fi
1364114190 # Tell ltmain to make .lib files, not .a files.
1364214191 libext=lib
1364314192 # Tell ltmain to make .dll files, not .so files.
13644 shrext_cmds=".dll"
14193 shrext_cmds=.dll
1364514194 # FIXME: Setting linknames here is a bad hack.
13646 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13647 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13648 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13649 else
13650 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13651 fi~
13652 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13653 linknames='
14195 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14196 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14197 cp "$export_symbols" "$output_objdir/$soname.def";
14198 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14199 else
14200 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14201 fi~
14202 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14203 linknames='
1365414204 # The linker will not automatically build a static lib if we build a DLL.
1365514205 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
1365614206 enable_shared_with_static_runtimes_CXX=yes
1365714207 # Don't use ranlib
1365814208 old_postinstall_cmds_CXX='chmod 644 $oldlib'
1365914209 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13660 lt_tool_outputfile="@TOOL_OUTPUT@"~
13661 case $lt_outputfile in
13662 *.exe|*.EXE) ;;
13663 *)
13664 lt_outputfile="$lt_outputfile.exe"
13665 lt_tool_outputfile="$lt_tool_outputfile.exe"
13666 ;;
13667 esac~
13668 func_to_tool_file "$lt_outputfile"~
13669 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13670 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13671 $RM "$lt_outputfile.manifest";
13672 fi'
14210 lt_tool_outputfile="@TOOL_OUTPUT@"~
14211 case $lt_outputfile in
14212 *.exe|*.EXE) ;;
14213 *)
14214 lt_outputfile=$lt_outputfile.exe
14215 lt_tool_outputfile=$lt_tool_outputfile.exe
14216 ;;
14217 esac~
14218 func_to_tool_file "$lt_outputfile"~
14219 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14220 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14221 $RM "$lt_outputfile.manifest";
14222 fi'
1367314223 ;;
1367414224 *)
1367514225 # g++
1367614226 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
1367714227 # as there is no search path for DLLs.
1367814228 hardcode_libdir_flag_spec_CXX='-L$libdir'
13679 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14229 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
1368014230 allow_undefined_flag_CXX=unsupported
1368114231 always_export_symbols_CXX=no
1368214232 enable_shared_with_static_runtimes_CXX=yes
1368314233
1368414234 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13686 # If the export-symbols file already is a .def file (1st line
13687 # is EXPORTS), use it as is; otherwise, prepend...
13688 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13689 cp $export_symbols $output_objdir/$soname.def;
13690 else
13691 echo EXPORTS > $output_objdir/$soname.def;
13692 cat $export_symbols >> $output_objdir/$soname.def;
13693 fi~
13694 $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'
14235 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14236 # If the export-symbols file already is a .def file, use it as
14237 # is; otherwise, prepend EXPORTS...
14238 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14239 cp $export_symbols $output_objdir/$soname.def;
14240 else
14241 echo EXPORTS > $output_objdir/$soname.def;
14242 cat $export_symbols >> $output_objdir/$soname.def;
14243 fi~
14244 $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'
1369514245 else
1369614246 ld_shlibs_CXX=no
1369714247 fi
1370514255 hardcode_direct_CXX=no
1370614256 hardcode_automatic_CXX=yes
1370714257 hardcode_shlibpath_var_CXX=unsupported
13708 if test "$lt_cv_ld_force_load" = "yes"; then
13709 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14258 if test yes = "$lt_cv_ld_force_load"; then
14259 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1371014260
1371114261 else
1371214262 whole_archive_flag_spec_CXX=''
1371314263 fi
1371414264 link_all_deplibs_CXX=yes
13715 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14265 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
1371614266 case $cc_basename in
13717 ifort*) _lt_dar_can_shared=yes ;;
14267 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1371814268 *) _lt_dar_can_shared=$GCC ;;
1371914269 esac
13720 if test "$_lt_dar_can_shared" = "yes"; then
14270 if test yes = "$_lt_dar_can_shared"; then
1372114271 output_verbose_link_cmd=func_echo_all
13722 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13723 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13724 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13725 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13726 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13727 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13728 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14272 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14273 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14274 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
14275 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
14276 if test yes != "$lt_cv_apple_cc_single_mod"; then
14277 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14278 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1372914279 fi
1373014280
1373114281 else
1373214282 ld_shlibs_CXX=no
1373314283 fi
1373414284
14285 ;;
14286
14287 os2*)
14288 hardcode_libdir_flag_spec_CXX='-L$libdir'
14289 hardcode_minus_L_CXX=yes
14290 allow_undefined_flag_CXX=unsupported
14291 shrext_cmds=.dll
14292 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14293 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14294 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14295 $ECHO EXPORTS >> $output_objdir/$libname.def~
14296 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14297 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14298 emximp -o $lib $output_objdir/$libname.def'
14299 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14300 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14301 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14302 $ECHO EXPORTS >> $output_objdir/$libname.def~
14303 prefix_cmds="$SED"~
14304 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14305 prefix_cmds="$prefix_cmds -e 1d";
14306 fi~
14307 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14308 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14309 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14310 emximp -o $lib $output_objdir/$libname.def'
14311 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14312 enable_shared_with_static_runtimes_CXX=yes
1373514313 ;;
1373614314
1373714315 dgux*)
1376914347 ;;
1377014348
1377114349 haiku*)
13772 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14350 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1377314351 link_all_deplibs_CXX=yes
1377414352 ;;
1377514353
1377614354 hpux9*)
13777 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14355 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1377814356 hardcode_libdir_separator_CXX=:
13779 export_dynamic_flag_spec_CXX='${wl}-E'
14357 export_dynamic_flag_spec_CXX='$wl-E'
1378014358 hardcode_direct_CXX=yes
1378114359 hardcode_minus_L_CXX=yes # Not in the search PATH,
1378214360 # but as the default
1378814366 ld_shlibs_CXX=no
1378914367 ;;
1379014368 aCC*)
13791 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14369 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1379214370 # Commands to make compiler produce verbose output that lists
1379314371 # what "hidden" libraries, object files and flags are used when
1379414372 # linking a shared library.
1379714375 # explicitly linking system object files so we need to strip them
1379814376 # from the output so that they don't get included in the library
1379914377 # dependencies.
13800 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"'
14378 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"'
1380114379 ;;
1380214380 *)
13803 if test "$GXX" = yes; then
13804 archive_cmds_CXX='$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'
14381 if test yes = "$GXX"; then
14382 archive_cmds_CXX='$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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1380514383 else
1380614384 # FIXME: insert proper C++ library support
1380714385 ld_shlibs_CXX=no
1381114389 ;;
1381214390
1381314391 hpux10*|hpux11*)
13814 if test $with_gnu_ld = no; then
13815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14392 if test no = "$with_gnu_ld"; then
14393 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1381614394 hardcode_libdir_separator_CXX=:
1381714395
1381814396 case $host_cpu in
1381914397 hppa*64*|ia64*)
1382014398 ;;
1382114399 *)
13822 export_dynamic_flag_spec_CXX='${wl}-E'
14400 export_dynamic_flag_spec_CXX='$wl-E'
1382314401 ;;
1382414402 esac
1382514403 fi
1384514423 aCC*)
1384614424 case $host_cpu in
1384714425 hppa*64*)
13848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14426 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1384914427 ;;
1385014428 ia64*)
13851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14429 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1385214430 ;;
1385314431 *)
13854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14432 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1385514433 ;;
1385614434 esac
1385714435 # Commands to make compiler produce verbose output that lists
1386214440 # explicitly linking system object files so we need to strip them
1386314441 # from the output so that they don't get included in the library
1386414442 # dependencies.
13865 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"'
14443 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"'
1386614444 ;;
1386714445 *)
13868 if test "$GXX" = yes; then
13869 if test $with_gnu_ld = no; then
14446 if test yes = "$GXX"; then
14447 if test no = "$with_gnu_ld"; then
1387014448 case $host_cpu in
1387114449 hppa*64*)
13872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14450 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1387314451 ;;
1387414452 ia64*)
13875 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14453 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1387614454 ;;
1387714455 *)
13878 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14456 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1387914457 ;;
1388014458 esac
1388114459 fi
1389014468 interix[3-9]*)
1389114469 hardcode_direct_CXX=no
1389214470 hardcode_shlibpath_var_CXX=no
13893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13894 export_dynamic_flag_spec_CXX='${wl}-E'
14471 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14472 export_dynamic_flag_spec_CXX='$wl-E'
1389514473 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1389614474 # Instead, shared libraries are loaded at an image base (0x10000000 by
1389714475 # default) and relocated if they conflict, which is a slow very memory
1389814476 # consuming and fragmenting process. To avoid this, we pick a random,
1389914477 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1390014478 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13901 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13902 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14479 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14480 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
1390314481 ;;
1390414482 irix5* | irix6*)
1390514483 case $cc_basename in
1390614484 CC*)
1390714485 # SGI C++
13908 archive_cmds_CXX='$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'
14486 archive_cmds_CXX='$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'
1390914487
1391014488 # Archives containing C++ object files must be created using
1391114489 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1391414492 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
1391514493 ;;
1391614494 *)
13917 if test "$GXX" = yes; then
13918 if test "$with_gnu_ld" = no; then
13919 archive_cmds_CXX='$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'
14495 if test yes = "$GXX"; then
14496 if test no = "$with_gnu_ld"; then
14497 archive_cmds_CXX='$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'
1392014498 else
13921 archive_cmds_CXX='$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'
14499 archive_cmds_CXX='$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'
1392214500 fi
1392314501 fi
1392414502 link_all_deplibs_CXX=yes
1392514503 ;;
1392614504 esac
13927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14505 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1392814506 hardcode_libdir_separator_CXX=:
1392914507 inherit_rpath_CXX=yes
1393014508 ;;
1393714515 # KCC will only create a shared library if the output file
1393814516 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1393914517 # to its proper name (with version) after linking.
13940 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13941 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14518 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14519 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
1394214520 # Commands to make compiler produce verbose output that lists
1394314521 # what "hidden" libraries, object files and flags are used when
1394414522 # linking a shared library.
1394714525 # explicitly linking system object files so we need to strip them
1394814526 # from the output so that they don't get included in the library
1394914527 # dependencies.
13950 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"'
13951
13952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14528 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"'
14529
14530 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14531 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1395414532
1395514533 # Archives containing C++ object files must be created using
1395614534 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1396414542 # earlier do not add the objects themselves.
1396514543 case `$CC -V 2>&1` in
1396614544 *"Version 7."*)
13967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13968 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14545 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14546 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1396914547 ;;
1397014548 *) # Version 8.0 or newer
1397114549 tmp_idyn=
1397214550 case $host_cpu in
1397314551 ia64*) tmp_idyn=' -i_dynamic';;
1397414552 esac
13975 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13976 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14553 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14554 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1397714555 ;;
1397814556 esac
1397914557 archive_cmds_need_lc_CXX=no
13980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13982 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14558 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14559 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14560 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1398314561 ;;
1398414562 pgCC* | pgcpp*)
1398514563 # Portland Group C++ compiler
1398614564 case `$CC -V` in
1398714565 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
1398814566 prelink_cmds_CXX='tpldir=Template.dir~
13989 rm -rf $tpldir~
13990 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13991 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14567 rm -rf $tpldir~
14568 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14569 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1399214570 old_archive_cmds_CXX='tpldir=Template.dir~
13993 rm -rf $tpldir~
13994 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13995 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13996 $RANLIB $oldlib'
14571 rm -rf $tpldir~
14572 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14573 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14574 $RANLIB $oldlib'
1399714575 archive_cmds_CXX='tpldir=Template.dir~
13998 rm -rf $tpldir~
13999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14000 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14576 rm -rf $tpldir~
14577 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14578 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
1400114579 archive_expsym_cmds_CXX='tpldir=Template.dir~
14002 rm -rf $tpldir~
14003 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14004 $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'
14580 rm -rf $tpldir~
14581 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14582 $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'
1400514583 ;;
1400614584 *) # Version 6 and above use weak symbols
14007 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14008 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14585 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14586 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1400914587 ;;
1401014588 esac
1401114589
14012 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14013 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14014 whole_archive_flag_spec_CXX='${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'
14590 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14591 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14592 whole_archive_flag_spec_CXX='$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'
1401514593 ;;
1401614594 cxx*)
1401714595 # Compaq C++
14018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14596 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14597 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
1402014598
1402114599 runpath_var=LD_RUN_PATH
1402214600 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1403014608 # explicitly linking system object files so we need to strip them
1403114609 # from the output so that they don't get included in the library
1403214610 # dependencies.
14033 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'
14611 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'
1403414612 ;;
1403514613 xl* | mpixl* | bgxl*)
1403614614 # IBM XL 8.0 on PPC, with GNU ld
14037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14039 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14040 if test "x$supports_anon_versioning" = xyes; then
14615 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14616 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14617 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14618 if test yes = "$supports_anon_versioning"; then
1404114619 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14043 echo "local: *; };" >> $output_objdir/$libname.ver~
14044 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14621 echo "local: *; };" >> $output_objdir/$libname.ver~
14622 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1404514623 fi
1404614624 ;;
1404714625 *)
1404914627 *Sun\ C*)
1405014628 # Sun C++ 5.9
1405114629 no_undefined_flag_CXX=' -zdefs'
14052 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14053 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14630 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14631 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
1405414632 hardcode_libdir_flag_spec_CXX='-R$libdir'
14055 whole_archive_flag_spec_CXX='${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'
14633 whole_archive_flag_spec_CXX='$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'
1405614634 compiler_needs_object_CXX=yes
1405714635
1405814636 # Not sure whether something based on
1411014688 ld_shlibs_CXX=yes
1411114689 ;;
1411214690
14113 openbsd2*)
14114 # C++ shared libraries are fairly broken
14115 ld_shlibs_CXX=no
14116 ;;
14117
14118 openbsd*)
14691 openbsd* | bitrig*)
1411914692 if test -f /usr/libexec/ld.so; then
1412014693 hardcode_direct_CXX=yes
1412114694 hardcode_shlibpath_var_CXX=no
1412214695 hardcode_direct_absolute_CXX=yes
1412314696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14126 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14127 export_dynamic_flag_spec_CXX='${wl}-E'
14128 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14697 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14699 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14700 export_dynamic_flag_spec_CXX='$wl-E'
14701 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1412914702 fi
1413014703 output_verbose_link_cmd=func_echo_all
1413114704 else
1414114714 # KCC will only create a shared library if the output file
1414214715 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1414314716 # to its proper name (with version) after linking.
14144 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14145
14146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14717 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14718
14719 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
1414714720 hardcode_libdir_separator_CXX=:
1414814721
1414914722 # Archives containing C++ object files must be created using
1416114734 cxx*)
1416214735 case $host in
1416314736 osf3*)
14164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14165 archive_cmds_CXX='$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'
14166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14737 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14738 archive_cmds_CXX='$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'
14739 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1416714740 ;;
1416814741 *)
1416914742 allow_undefined_flag_CXX=' -expect_unresolved \*'
14170 archive_cmds_CXX='$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'
14743 archive_cmds_CXX='$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'
1417114744 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14172 echo "-hidden">> $lib.exp~
14173 $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~
14174 $RM $lib.exp'
14745 echo "-hidden">> $lib.exp~
14746 $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~
14747 $RM $lib.exp'
1417514748 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1417614749 ;;
1417714750 esac
1418614759 # explicitly linking system object files so we need to strip them
1418714760 # from the output so that they don't get included in the library
1418814761 # dependencies.
14189 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"'
14762 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"'
1419014763 ;;
1419114764 *)
14192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14193 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14765 if test yes,no = "$GXX,$with_gnu_ld"; then
14766 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
1419414767 case $host in
1419514768 osf3*)
14196 archive_cmds_CXX='$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'
14769 archive_cmds_CXX='$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'
1419714770 ;;
1419814771 *)
14199 archive_cmds_CXX='$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'
14772 archive_cmds_CXX='$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'
1420014773 ;;
1420114774 esac
1420214775
14203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14776 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1420414777 hardcode_libdir_separator_CXX=:
1420514778
1420614779 # Commands to make compiler produce verbose output that lists
1424614819 # Sun C++ 4.2, 5.x and Centerline C++
1424714820 archive_cmds_need_lc_CXX=yes
1424814821 no_undefined_flag_CXX=' -zdefs'
14249 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14822 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1425014823 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14251 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14824 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1425214825
1425314826 hardcode_libdir_flag_spec_CXX='-R$libdir'
1425414827 hardcode_shlibpath_var_CXX=no
1425614829 solaris2.[0-5] | solaris2.[0-5].*) ;;
1425714830 *)
1425814831 # The compiler driver will combine and reorder linker options,
14259 # but understands `-z linker_flag'.
14832 # but understands '-z linker_flag'.
1426014833 # Supported since Solaris 2.6 (maybe 2.5.1?)
1426114834 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
1426214835 ;;
1427314846 ;;
1427414847 gcx*)
1427514848 # Green Hills C++ Compiler
14276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14849 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1427714850
1427814851 # The C++ compiler must be used to create the archive.
1427914852 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
1428014853 ;;
1428114854 *)
1428214855 # GNU C++ compiler with Solaris linker
14283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14284 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14856 if test yes,no = "$GXX,$with_gnu_ld"; then
14857 no_undefined_flag_CXX=' $wl-z ${wl}defs'
1428514858 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14286 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14859 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1428714860 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14288 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14861 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1428914862
1429014863 # Commands to make compiler produce verbose output that lists
1429114864 # what "hidden" libraries, object files and flags are used when
1429214865 # linking a shared library.
1429314866 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1429414867 else
14295 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14868 # g++ 2.7 appears to require '-G' NOT '-shared' on this
1429614869 # platform.
14297 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14870 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1429814871 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14299 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14872 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1430014873
1430114874 # Commands to make compiler produce verbose output that lists
1430214875 # what "hidden" libraries, object files and flags are used when
1430414877 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1430514878 fi
1430614879
14307 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14880 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
1430814881 case $host_os in
1430914882 solaris2.[0-5] | solaris2.[0-5].*) ;;
1431014883 *)
14311 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14884 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1431214885 ;;
1431314886 esac
1431414887 fi
1431714890 ;;
1431814891
1431914892 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14320 no_undefined_flag_CXX='${wl}-z,text'
14893 no_undefined_flag_CXX='$wl-z,text'
1432114894 archive_cmds_need_lc_CXX=no
1432214895 hardcode_shlibpath_var_CXX=no
1432314896 runpath_var='LD_RUN_PATH'
1432414897
1432514898 case $cc_basename in
1432614899 CC*)
14327 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14900 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14901 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1432914902 ;;
1433014903 *)
14331 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14332 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14904 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14905 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1433314906 ;;
1433414907 esac
1433514908 ;;
1433614909
1433714910 sysv5* | sco3.2v5* | sco5v6*)
14338 # Note: We can NOT use -z defs as we might desire, because we do not
14911 # Note: We CANNOT use -z defs as we might desire, because we do not
1433914912 # link with -lc, and that would cause any symbols used from libc to
1434014913 # always be unresolved, which means just about no library would
1434114914 # ever link correctly. If we're not using GNU ld we use -z text
1434214915 # though, which does catch some bad symbols but isn't as heavy-handed
1434314916 # as -z defs.
14344 no_undefined_flag_CXX='${wl}-z,text'
14345 allow_undefined_flag_CXX='${wl}-z,nodefs'
14917 no_undefined_flag_CXX='$wl-z,text'
14918 allow_undefined_flag_CXX='$wl-z,nodefs'
1434614919 archive_cmds_need_lc_CXX=no
1434714920 hardcode_shlibpath_var_CXX=no
14348 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14921 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
1434914922 hardcode_libdir_separator_CXX=':'
1435014923 link_all_deplibs_CXX=yes
14351 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14924 export_dynamic_flag_spec_CXX='$wl-Bexport'
1435214925 runpath_var='LD_RUN_PATH'
1435314926
1435414927 case $cc_basename in
1435514928 CC*)
14356 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14357 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14929 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14930 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1435814931 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14359 '"$old_archive_cmds_CXX"
14932 '"$old_archive_cmds_CXX"
1436014933 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14361 '"$reload_cmds_CXX"
14934 '"$reload_cmds_CXX"
1436214935 ;;
1436314936 *)
14364 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14365 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14937 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14938 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1436614939 ;;
1436714940 esac
1436814941 ;;
1439414967
1439514968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1439614969 $as_echo "$ld_shlibs_CXX" >&6; }
14397 test "$ld_shlibs_CXX" = no && can_build_shared=no
14398
14399 GCC_CXX="$GXX"
14400 LD_CXX="$LD"
14970 test no = "$ld_shlibs_CXX" && can_build_shared=no
14971
14972 GCC_CXX=$GXX
14973 LD_CXX=$LD
1440114974
1440214975 ## CAVEAT EMPTOR:
1440314976 ## There is no encapsulation within the following macros, do not change
1444115014 pre_test_object_deps_done=no
1444215015
1444315016 for p in `eval "$output_verbose_link_cmd"`; do
14444 case ${prev}${p} in
15017 case $prev$p in
1444515018
1444615019 -L* | -R* | -l*)
1444715020 # Some compilers place space between "-{L,R}" and the path.
1444815021 # Remove the space.
14449 if test $p = "-L" ||
14450 test $p = "-R"; then
15022 if test x-L = "$p" ||
15023 test x-R = "$p"; then
1445115024 prev=$p
1445215025 continue
1445315026 fi
1446315036 case $p in
1446415037 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
1446515038 esac
14466 if test "$pre_test_object_deps_done" = no; then
14467 case ${prev} in
15039 if test no = "$pre_test_object_deps_done"; then
15040 case $prev in
1446815041 -L | -R)
1446915042 # Internal compiler library paths should come after those
1447015043 # provided the user. The postdeps already come after the
1447115044 # user supplied libs so there is no need to process them.
1447215045 if test -z "$compiler_lib_search_path_CXX"; then
14473 compiler_lib_search_path_CXX="${prev}${p}"
15046 compiler_lib_search_path_CXX=$prev$p
1447415047 else
14475 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15048 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
1447615049 fi
1447715050 ;;
1447815051 # The "-l" case would never come before the object being
1448015053 esac
1448115054 else
1448215055 if test -z "$postdeps_CXX"; then
14483 postdeps_CXX="${prev}${p}"
15056 postdeps_CXX=$prev$p
1448415057 else
14485 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15058 postdeps_CXX="${postdeps_CXX} $prev$p"
1448615059 fi
1448715060 fi
1448815061 prev=
1449715070 continue
1449815071 fi
1449915072
14500 if test "$pre_test_object_deps_done" = no; then
15073 if test no = "$pre_test_object_deps_done"; then
1450115074 if test -z "$predep_objects_CXX"; then
14502 predep_objects_CXX="$p"
15075 predep_objects_CXX=$p
1450315076 else
1450415077 predep_objects_CXX="$predep_objects_CXX $p"
1450515078 fi
1450615079 else
1450715080 if test -z "$postdep_objects_CXX"; then
14508 postdep_objects_CXX="$p"
15081 postdep_objects_CXX=$p
1450915082 else
1451015083 postdep_objects_CXX="$postdep_objects_CXX $p"
1451115084 fi
1453515108 postdep_objects_CXX=
1453615109 postdeps_CXX=
1453715110 ;;
14538
14539 linux*)
14540 case `$CC -V 2>&1 | sed 5q` in
14541 *Sun\ C*)
14542 # Sun C++ 5.9
14543
14544 # The more standards-conforming stlport4 library is
14545 # incompatible with the Cstd library. Avoid specifying
14546 # it if it's in CXXFLAGS. Ignore libCrun as
14547 # -library=stlport4 depends on it.
14548 case " $CXX $CXXFLAGS " in
14549 *" -library=stlport4 "*)
14550 solaris_use_stlport4=yes
14551 ;;
14552 esac
14553
14554 if test "$solaris_use_stlport4" != yes; then
14555 postdeps_CXX='-library=Cstd -library=Crun'
14556 fi
14557 ;;
14558 esac
14559 ;;
14560
14561 solaris*)
14562 case $cc_basename in
14563 CC* | sunCC*)
14564 # The more standards-conforming stlport4 library is
14565 # incompatible with the Cstd library. Avoid specifying
14566 # it if it's in CXXFLAGS. Ignore libCrun as
14567 # -library=stlport4 depends on it.
14568 case " $CXX $CXXFLAGS " in
14569 *" -library=stlport4 "*)
14570 solaris_use_stlport4=yes
14571 ;;
14572 esac
14573
14574 # Adding this requires a known-good setup of shared libraries for
14575 # Sun compiler versions before 5.6, else PIC objects from an old
14576 # archive will be linked into the output, leading to subtle bugs.
14577 if test "$solaris_use_stlport4" != yes; then
14578 postdeps_CXX='-library=Cstd -library=Crun'
14579 fi
14580 ;;
14581 esac
14582 ;;
1458315111 esac
1458415112
1458515113
1458815116 esac
1458915117 compiler_lib_search_dirs_CXX=
1459015118 if test -n "${compiler_lib_search_path_CXX}"; then
14591 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15119 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
1459215120 fi
1459315121
1459415122
1462715155
1462815156
1462915157 # C++ specific cases for pic, static, wl, etc.
14630 if test "$GXX" = yes; then
15158 if test yes = "$GXX"; then
1463115159 lt_prog_compiler_wl_CXX='-Wl,'
1463215160 lt_prog_compiler_static_CXX='-static'
1463315161
1463415162 case $host_os in
1463515163 aix*)
1463615164 # All AIX code is PIC.
14637 if test "$host_cpu" = ia64; then
15165 if test ia64 = "$host_cpu"; then
1463815166 # AIX 5 now supports IA64 processor
1463915167 lt_prog_compiler_static_CXX='-Bstatic'
1464015168 fi
15169 lt_prog_compiler_pic_CXX='-fPIC'
1464115170 ;;
1464215171
1464315172 amigaos*)
1464815177 ;;
1464915178 m68k)
1465015179 # FIXME: we need at least 68020 code to build shared libraries, but
14651 # adding the `-m68020' flag to GCC prevents building anything better,
14652 # like `-m68040'.
15180 # adding the '-m68020' flag to GCC prevents building anything better,
15181 # like '-m68040'.
1465315182 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
1465415183 ;;
1465515184 esac
1466415193 # Although the cygwin gcc ignores -fPIC, still need this for old-style
1466515194 # (--disable-auto-import) libraries
1466615195 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15196 case $host_os in
15197 os2*)
15198 lt_prog_compiler_static_CXX='$wl-static'
15199 ;;
15200 esac
1466715201 ;;
1466815202 darwin* | rhapsody*)
1466915203 # PIC is the default on this platform
1471315247 case $host_os in
1471415248 aix[4-9]*)
1471515249 # All AIX code is PIC.
14716 if test "$host_cpu" = ia64; then
15250 if test ia64 = "$host_cpu"; then
1471715251 # AIX 5 now supports IA64 processor
1471815252 lt_prog_compiler_static_CXX='-Bstatic'
1471915253 else
1475315287 case $cc_basename in
1475415288 CC*)
1475515289 lt_prog_compiler_wl_CXX='-Wl,'
14756 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14757 if test "$host_cpu" != ia64; then
15290 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15291 if test ia64 != "$host_cpu"; then
1475815292 lt_prog_compiler_pic_CXX='+Z'
1475915293 fi
1476015294 ;;
1476115295 aCC*)
1476215296 lt_prog_compiler_wl_CXX='-Wl,'
14763 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15297 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
1476415298 case $host_cpu in
1476515299 hppa*64*|ia64*)
1476615300 # +Z the default
1479715331 lt_prog_compiler_pic_CXX='-fPIC'
1479815332 ;;
1479915333 ecpc* )
14800 # old Intel C++ for x86_64 which still supported -KPIC.
15334 # old Intel C++ for x86_64, which still supported -KPIC.
1480115335 lt_prog_compiler_wl_CXX='-Wl,'
1480215336 lt_prog_compiler_pic_CXX='-KPIC'
1480315337 lt_prog_compiler_static_CXX='-static'
1494215476 fi
1494315477
1494415478 case $host_os in
14945 # For platforms which do not support PIC, -DPIC is meaningless:
15479 # For platforms that do not support PIC, -DPIC is meaningless:
1494615480 *djgpp*)
1494715481 lt_prog_compiler_pic_CXX=
1494815482 ;;
1497415508 lt_cv_prog_compiler_pic_works_CXX=no
1497515509 ac_outfile=conftest.$ac_objext
1497615510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14977 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15511 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
1497815512 # Insert the option either (1) after the last *FLAGS variable, or
1497915513 # (2) before a word containing "conftest.", or (3) at the end.
1498015514 # Note that $ac_compile itself does not contain backslashes and begins
1500415538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
1500515539 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1500615540
15007 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15541 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1500815542 case $lt_prog_compiler_pic_CXX in
1500915543 "" | " "*) ;;
1501015544 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
1503015564 $as_echo_n "(cached) " >&6
1503115565 else
1503215566 lt_cv_prog_compiler_static_works_CXX=no
15033 save_LDFLAGS="$LDFLAGS"
15567 save_LDFLAGS=$LDFLAGS
1503415568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1503515569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1503615570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1504915583 fi
1505015584 fi
1505115585 $RM -r conftest*
15052 LDFLAGS="$save_LDFLAGS"
15586 LDFLAGS=$save_LDFLAGS
1505315587
1505415588 fi
1505515589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
1505615590 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1505715591
15058 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15592 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1505915593 :
1506015594 else
1506115595 lt_prog_compiler_static_CXX=
1516915703
1517015704
1517115705
15172 hard_links="nottested"
15173 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15706 hard_links=nottested
15707 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1517415708 # do not overwrite the value of need_locks provided by the user
1517515709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
1517615710 $as_echo_n "checking if we can lock with hard links... " >&6; }
1518215716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1518315717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
1518415718 $as_echo "$hard_links" >&6; }
15185 if test "$hard_links" = no; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15187 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15719 if test no = "$hard_links"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15721 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1518815722 need_locks=warn
1518915723 fi
1519015724 else
1520115735 case $host_os in
1520215736 aix[4-9]*)
1520315737 # If we're using GNU nm, then we don't want the "-C" option.
15204 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15205 # Also, AIX nm treats weak defined symbols like other global defined
15206 # symbols, whereas GNU nm marks them as "W".
15738 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15739 # Without the "-l" option, or with the "-B" option, AIX nm treats
15740 # weak defined symbols like other global defined symbols, whereas
15741 # GNU nm marks them as "W".
15742 # While the 'weak' keyword is ignored in the Export File, we need
15743 # it in the Import File for the 'aix-soname' feature, so we have
15744 # to replace the "-B" option with "-P" for AIX nm.
1520715745 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15208 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15746 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1520915747 else
15210 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15748 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1521115749 fi
1521215750 ;;
1521315751 pw32*)
15214 export_symbols_cmds_CXX="$ltdll_cmds"
15752 export_symbols_cmds_CXX=$ltdll_cmds
1521515753 ;;
1521615754 cygwin* | mingw* | cegcc*)
1521715755 case $cc_basename in
1523415772
1523515773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1523615774 $as_echo "$ld_shlibs_CXX" >&6; }
15237 test "$ld_shlibs_CXX" = no && can_build_shared=no
15775 test no = "$ld_shlibs_CXX" && can_build_shared=no
1523815776
1523915777 with_gnu_ld_CXX=$with_gnu_ld
1524015778
1525115789 # Assume -lc should be added
1525215790 archive_cmds_need_lc_CXX=yes
1525315791
15254 if test "$enable_shared" = yes && test "$GCC" = yes; then
15792 if test yes,yes = "$GCC,$enable_shared"; then
1525515793 case $archive_cmds_CXX in
1525615794 *'~'*)
1525715795 # FIXME: we may have to deal with multi-command sequences.
1537915917 library_names_spec=
1538015918 libname_spec='lib$name'
1538115919 soname_spec=
15382 shrext_cmds=".so"
15920 shrext_cmds=.so
1538315921 postinstall_cmds=
1538415922 postuninstall_cmds=
1538515923 finish_cmds=
1539615934 # flags to be left without arguments
1539715935 need_version=unknown
1539815936
15937
15938
1539915939 case $host_os in
1540015940 aix3*)
1540115941 version_type=linux # correct to gnu/linux during the next big refactor
15402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15942 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1540315943 shlibpath_var=LIBPATH
1540415944
1540515945 # AIX 3 has no versioning support, so we append a major version to the name.
15406 soname_spec='${libname}${release}${shared_ext}$major'
15946 soname_spec='$libname$release$shared_ext$major'
1540715947 ;;
1540815948
1540915949 aix[4-9]*)
1541115951 need_lib_prefix=no
1541215952 need_version=no
1541315953 hardcode_into_libs=yes
15414 if test "$host_cpu" = ia64; then
15954 if test ia64 = "$host_cpu"; then
1541515955 # AIX 5 supports IA64
15416 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15956 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1541715957 shlibpath_var=LD_LIBRARY_PATH
1541815958 else
1541915959 # With GCC up to 2.95.x, collect2 would create an import file
1542015960 # for dependence libraries. The import file would start with
15421 # the line `#! .'. This would cause the generated library to
15422 # depend on `.', always an invalid library. This was fixed in
15961 # the line '#! .'. This would cause the generated library to
15962 # depend on '.', always an invalid library. This was fixed in
1542315963 # development snapshots of GCC prior to 3.0.
1542415964 case $host_os in
1542515965 aix4 | aix4.[01] | aix4.[01].*)
1542615966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1542715967 echo ' yes '
15428 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15968 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1542915969 :
1543015970 else
1543115971 can_build_shared=no
1543215972 fi
1543315973 ;;
1543415974 esac
15435 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15975 # Using Import Files as archive members, it is possible to support
15976 # filename-based versioning of shared library archives on AIX. While
15977 # this would work for both with and without runtime linking, it will
15978 # prevent static linking of such archives. So we do filename-based
15979 # shared library versioning with .so extension only, which is used
15980 # when both runtime linking and shared linking is enabled.
15981 # Unfortunately, runtime linking may impact performance, so we do
15982 # not want this to be the default eventually. Also, we use the
15983 # versioned .so libs for executables only if there is the -brtl
15984 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15985 # To allow for filename-based versioning support, we need to create
15986 # libNAME.so.V as an archive file, containing:
15987 # *) an Import File, referring to the versioned filename of the
15988 # archive as well as the shared archive member, telling the
15989 # bitwidth (32 or 64) of that shared object, and providing the
15990 # list of exported symbols of that shared object, eventually
15991 # decorated with the 'weak' keyword
15992 # *) the shared object with the F_LOADONLY flag set, to really avoid
15993 # it being seen by the linker.
15994 # At run time we better use the real file rather than another symlink,
15995 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15996
15997 case $with_aix_soname,$aix_use_runtimelinking in
15998 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1543615999 # soname into executable. Probably we can add versioning support to
1543716000 # collect2, so additional links can be useful in future.
15438 if test "$aix_use_runtimelinking" = yes; then
16001 aix,yes) # traditional libtool
16002 dynamic_linker='AIX unversionable lib.so'
1543916003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1544016004 # instead of lib<name>.a to let people know that these are not
1544116005 # typical AIX shared libraries.
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 else
16006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16007 ;;
16008 aix,no) # traditional AIX only
16009 dynamic_linker='AIX lib.a(lib.so.V)'
1544416010 # We preserve .a as extension for shared libraries through AIX4.2
1544516011 # and later when we are not doing run time linking.
15446 library_names_spec='${libname}${release}.a $libname.a'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 fi
16012 library_names_spec='$libname$release.a $libname.a'
16013 soname_spec='$libname$release$shared_ext$major'
16014 ;;
16015 svr4,*) # full svr4 only
16016 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16017 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16018 # We do not specify a path in Import Files, so LIBPATH fires.
16019 shlibpath_overrides_runpath=yes
16020 ;;
16021 *,yes) # both, prefer svr4
16022 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16023 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16024 # unpreferred sharedlib libNAME.a needs extra handling
16025 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16026 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16027 # We do not specify a path in Import Files, so LIBPATH fires.
16028 shlibpath_overrides_runpath=yes
16029 ;;
16030 *,no) # both, prefer aix
16031 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16032 library_names_spec='$libname$release.a $libname.a'
16033 soname_spec='$libname$release$shared_ext$major'
16034 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16035 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16036 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16037 ;;
16038 esac
1544916039 shlibpath_var=LIBPATH
1545016040 fi
1545116041 ;;
1545516045 powerpc)
1545616046 # Since July 2007 AmigaOS4 officially supports .so libraries.
1545716047 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1545916049 ;;
1546016050 m68k)
1546116051 library_names_spec='$libname.ixlibrary $libname.a'
1546216052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15463 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'
16053 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
1546416054 ;;
1546516055 esac
1546616056 ;;
1546716057
1546816058 beos*)
15469 library_names_spec='${libname}${shared_ext}'
16059 library_names_spec='$libname$shared_ext'
1547016060 dynamic_linker="$host_os ld.so"
1547116061 shlibpath_var=LIBRARY_PATH
1547216062 ;;
1547416064 bsdi[45]*)
1547516065 version_type=linux # correct to gnu/linux during the next big refactor
1547616066 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
16067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16068 soname_spec='$libname$release$shared_ext$major'
1547916069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1548016070 shlibpath_var=LD_LIBRARY_PATH
1548116071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1548716077
1548816078 cygwin* | mingw* | pw32* | cegcc*)
1548916079 version_type=windows
15490 shrext_cmds=".dll"
16080 shrext_cmds=.dll
1549116081 need_version=no
1549216082 need_lib_prefix=no
1549316083
1549616086 # gcc
1549716087 library_names_spec='$libname.dll.a'
1549816088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15499 postinstall_cmds='base_file=`basename \${file}`~
15500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16089 postinstall_cmds='base_file=`basename \$file`~
16090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1550116091 dldir=$destdir/`dirname \$dlpath`~
1550216092 test -d \$dldir || mkdir -p \$dldir~
1550316093 $install_prog $dir/$dlname \$dldir/$dlname~
1551316103 case $host_os in
1551416104 cygwin*)
1551516105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15516 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16106 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1551716107
1551816108 ;;
1551916109 mingw* | cegcc*)
1552016110 # MinGW DLLs use traditional 'lib' prefix
15521 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16111 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1552216112 ;;
1552316113 pw32*)
1552416114 # pw32 DLLs use 'pw' prefix rather than 'lib'
15525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16115 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1552616116 ;;
1552716117 esac
1552816118 dynamic_linker='Win32 ld.exe'
1553116121 *,cl*)
1553216122 # Native MSVC
1553316123 libname_spec='$name'
15534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15535 library_names_spec='${libname}.dll.lib'
16124 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16125 library_names_spec='$libname.dll.lib'
1553616126
1553716127 case $build_os in
1553816128 mingw*)
1555916149 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1556016150 ;;
1556116151 *)
15562 sys_lib_search_path_spec="$LIB"
16152 sys_lib_search_path_spec=$LIB
1556316153 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1556416154 # It is most probably a Windows format PATH.
1556516155 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1557216162 esac
1557316163
1557416164 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15575 postinstall_cmds='base_file=`basename \${file}`~
15576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16165 postinstall_cmds='base_file=`basename \$file`~
16166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1557716167 dldir=$destdir/`dirname \$dlpath`~
1557816168 test -d \$dldir || mkdir -p \$dldir~
1557916169 $install_prog $dir/$dlname \$dldir/$dlname'
1558616176
1558716177 *)
1558816178 # Assume MSVC wrapper
15589 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16179 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1559016180 dynamic_linker='Win32 ld.exe'
1559116181 ;;
1559216182 esac
1559916189 version_type=darwin
1560016190 need_lib_prefix=no
1560116191 need_version=no
15602 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15603 soname_spec='${libname}${release}${major}$shared_ext'
16192 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16193 soname_spec='$libname$release$major$shared_ext'
1560416194 shlibpath_overrides_runpath=yes
1560516195 shlibpath_var=DYLD_LIBRARY_PATH
1560616196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1561216202 version_type=linux # correct to gnu/linux during the next big refactor
1561316203 need_lib_prefix=no
1561416204 need_version=no
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15616 soname_spec='${libname}${release}${shared_ext}$major'
16205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16206 soname_spec='$libname$release$shared_ext$major'
1561716207 shlibpath_var=LD_LIBRARY_PATH
1561816208 ;;
1561916209
1563116221 version_type=freebsd-$objformat
1563216222 case $version_type in
1563316223 freebsd-elf*)
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16225 soname_spec='$libname$release$shared_ext$major'
1563516226 need_version=no
1563616227 need_lib_prefix=no
1563716228 ;;
1563816229 freebsd-*)
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1564016231 need_version=yes
1564116232 ;;
1564216233 esac
1566616257 need_lib_prefix=no
1566716258 need_version=no
1566816259 dynamic_linker="$host_os runtime_loader"
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15670 soname_spec='${libname}${release}${shared_ext}$major'
16260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16261 soname_spec='$libname$release$shared_ext$major'
1567116262 shlibpath_var=LIBRARY_PATH
15672 shlibpath_overrides_runpath=yes
16263 shlibpath_overrides_runpath=no
1567316264 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1567416265 hardcode_into_libs=yes
1567516266 ;;
1568716278 dynamic_linker="$host_os dld.so"
1568816279 shlibpath_var=LD_LIBRARY_PATH
1568916280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 if test "X$HPUX_IA64_MODE" = X32; then
16281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16282 soname_spec='$libname$release$shared_ext$major'
16283 if test 32 = "$HPUX_IA64_MODE"; then
1569316284 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16285 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1569416286 else
1569516287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16288 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1569616289 fi
15697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1569816290 ;;
1569916291 hppa*64*)
1570016292 shrext_cmds='.sl'
1570216294 dynamic_linker="$host_os dld.sl"
1570316295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1570416296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
16297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16298 soname_spec='$libname$release$shared_ext$major'
1570716299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1570816300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1570916301 ;;
1571216304 dynamic_linker="$host_os dld.sl"
1571316305 shlibpath_var=SHLIB_PATH
1571416306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16308 soname_spec='$libname$release$shared_ext$major'
1571716309 ;;
1571816310 esac
1571916311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1572616318 version_type=linux # correct to gnu/linux during the next big refactor
1572716319 need_lib_prefix=no
1572816320 need_version=no
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15730 soname_spec='${libname}${release}${shared_ext}$major'
16321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16322 soname_spec='$libname$release$shared_ext$major'
1573116323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1573216324 shlibpath_var=LD_LIBRARY_PATH
1573316325 shlibpath_overrides_runpath=no
1573816330 case $host_os in
1573916331 nonstopux*) version_type=nonstopux ;;
1574016332 *)
15741 if test "$lt_cv_prog_gnu_ld" = yes; then
16333 if test yes = "$lt_cv_prog_gnu_ld"; then
1574216334 version_type=linux # correct to gnu/linux during the next big refactor
1574316335 else
1574416336 version_type=irix
1574616338 esac
1574716339 need_lib_prefix=no
1574816340 need_version=no
15749 soname_spec='${libname}${release}${shared_ext}$major'
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16341 soname_spec='$libname$release$shared_ext$major'
16342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1575116343 case $host_os in
1575216344 irix5* | nonstopux*)
1575316345 libsuff= shlibsuff=
1576616358 esac
1576716359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1576816360 shlibpath_overrides_runpath=no
15769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16361 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16362 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1577116363 hardcode_into_libs=yes
1577216364 ;;
1577316365
1577416366 # No shared lib support for Linux oldld, aout, or coff.
1577516367 linux*oldld* | linux*aout* | linux*coff*)
1577616368 dynamic_linker=no
16369 ;;
16370
16371 linux*android*)
16372 version_type=none # Android doesn't support versioned libraries.
16373 need_lib_prefix=no
16374 need_version=no
16375 library_names_spec='$libname$release$shared_ext'
16376 soname_spec='$libname$release$shared_ext'
16377 finish_cmds=
16378 shlibpath_var=LD_LIBRARY_PATH
16379 shlibpath_overrides_runpath=yes
16380
16381 # This implies no fast_install, which is unacceptable.
16382 # Some rework will be needed to allow for fast_install
16383 # before this can be enabled.
16384 hardcode_into_libs=yes
16385
16386 dynamic_linker='Android linker'
16387 # Don't embed -rpath directories since the linker doesn't support them.
16388 hardcode_libdir_flag_spec_CXX='-L$libdir'
1577716389 ;;
1577816390
1577916391 # This must be glibc/ELF.
1578116393 version_type=linux # correct to gnu/linux during the next big refactor
1578216394 need_lib_prefix=no
1578316395 need_version=no
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 soname_spec='${libname}${release}${shared_ext}$major'
16396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16397 soname_spec='$libname$release$shared_ext$major'
1578616398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1578716399 shlibpath_var=LD_LIBRARY_PATH
1578816400 shlibpath_overrides_runpath=no
1582616438 # before this can be enabled.
1582716439 hardcode_into_libs=yes
1582816440
15829 # Append ld.so.conf contents to the search path
16441 # Ideally, we could use ldconfig to report *all* directores which are
16442 # searched for libraries, however this is still not possible. Aside from not
16443 # being certain /sbin/ldconfig is available, command
16444 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16445 # even though it is searched at run-time. Try to do the best guess by
16446 # appending ld.so.conf contents (and includes) to the search path.
1583016447 if test -f /etc/ld.so.conf; then
1583116448 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' ' '`
1583216449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1585816475 need_lib_prefix=no
1585916476 need_version=no
1586016477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16478 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1586216479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1586316480 dynamic_linker='NetBSD (a.out) ld.so'
1586416481 else
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15866 soname_spec='${libname}${release}${shared_ext}$major'
16482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16483 soname_spec='$libname$release$shared_ext$major'
1586716484 dynamic_linker='NetBSD ld.elf_so'
1586816485 fi
1586916486 shlibpath_var=LD_LIBRARY_PATH
1587316490
1587416491 newsos6)
1587516492 version_type=linux # correct to gnu/linux during the next big refactor
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1587716494 shlibpath_var=LD_LIBRARY_PATH
1587816495 shlibpath_overrides_runpath=yes
1587916496 ;;
1588216499 version_type=qnx
1588316500 need_lib_prefix=no
1588416501 need_version=no
15885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886 soname_spec='${libname}${release}${shared_ext}$major'
16502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16503 soname_spec='$libname$release$shared_ext$major'
1588716504 shlibpath_var=LD_LIBRARY_PATH
1588816505 shlibpath_overrides_runpath=no
1588916506 hardcode_into_libs=yes
1589016507 dynamic_linker='ldqnx.so'
1589116508 ;;
1589216509
15893 openbsd*)
16510 openbsd* | bitrig*)
1589416511 version_type=sunos
15895 sys_lib_dlsearch_path_spec="/usr/lib"
16512 sys_lib_dlsearch_path_spec=/usr/lib
1589616513 need_lib_prefix=no
15897 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15898 case $host_os in
15899 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15900 *) need_version=no ;;
15901 esac
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16515 need_version=no
16516 else
16517 need_version=yes
16518 fi
16519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1590316520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1590416521 shlibpath_var=LD_LIBRARY_PATH
15905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15906 case $host_os in
15907 openbsd2.[89] | openbsd2.[89].*)
15908 shlibpath_overrides_runpath=no
15909 ;;
15910 *)
15911 shlibpath_overrides_runpath=yes
15912 ;;
15913 esac
15914 else
15915 shlibpath_overrides_runpath=yes
15916 fi
16522 shlibpath_overrides_runpath=yes
1591716523 ;;
1591816524
1591916525 os2*)
1592016526 libname_spec='$name'
15921 shrext_cmds=".dll"
16527 version_type=windows
16528 shrext_cmds=.dll
16529 need_version=no
1592216530 need_lib_prefix=no
15923 library_names_spec='$libname${shared_ext} $libname.a'
16531 # OS/2 can only load a DLL with a base name of 8 characters or less.
16532 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16533 v=$($ECHO $release$versuffix | tr -d .-);
16534 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16535 $ECHO $n$v`$shared_ext'
16536 library_names_spec='${libname}_dll.$libext'
1592416537 dynamic_linker='OS/2 ld.exe'
15925 shlibpath_var=LIBPATH
16538 shlibpath_var=BEGINLIBPATH
16539 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16541 postinstall_cmds='base_file=`basename \$file`~
16542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16543 dldir=$destdir/`dirname \$dlpath`~
16544 test -d \$dldir || mkdir -p \$dldir~
16545 $install_prog $dir/$dlname \$dldir/$dlname~
16546 chmod a+x \$dldir/$dlname~
16547 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16548 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16549 fi'
16550 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16551 dlpath=$dir/\$dldll~
16552 $RM \$dlpath'
1592616553 ;;
1592716554
1592816555 osf3* | osf4* | osf5*)
1592916556 version_type=osf
1593016557 need_lib_prefix=no
1593116558 need_version=no
15932 soname_spec='${libname}${release}${shared_ext}$major'
15933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 soname_spec='$libname$release$shared_ext$major'
16560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1593416561 shlibpath_var=LD_LIBRARY_PATH
1593516562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15936 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1593716564 ;;
1593816565
1593916566 rdos*)
1594416571 version_type=linux # correct to gnu/linux during the next big refactor
1594516572 need_lib_prefix=no
1594616573 need_version=no
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
16574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16575 soname_spec='$libname$release$shared_ext$major'
1594916576 shlibpath_var=LD_LIBRARY_PATH
1595016577 shlibpath_overrides_runpath=yes
1595116578 hardcode_into_libs=yes
1595516582
1595616583 sunos4*)
1595716584 version_type=sunos
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16585 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1595916586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1596016587 shlibpath_var=LD_LIBRARY_PATH
1596116588 shlibpath_overrides_runpath=yes
15962 if test "$with_gnu_ld" = yes; then
16589 if test yes = "$with_gnu_ld"; then
1596316590 need_lib_prefix=no
1596416591 fi
1596516592 need_version=yes
1596716594
1596816595 sysv4 | sysv4.3*)
1596916596 version_type=linux # correct to gnu/linux during the next big refactor
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
16597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16598 soname_spec='$libname$release$shared_ext$major'
1597216599 shlibpath_var=LD_LIBRARY_PATH
1597316600 case $host_vendor in
1597416601 sni)
1598916616 ;;
1599016617
1599116618 sysv4*MP*)
15992 if test -d /usr/nec ;then
16619 if test -d /usr/nec; then
1599316620 version_type=linux # correct to gnu/linux during the next big refactor
15994 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15995 soname_spec='$libname${shared_ext}.$major'
16621 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16622 soname_spec='$libname$shared_ext.$major'
1599616623 shlibpath_var=LD_LIBRARY_PATH
1599716624 fi
1599816625 ;;
1599916626
1600016627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16001 version_type=freebsd-elf
16628 version_type=sco
1600216629 need_lib_prefix=no
1600316630 need_version=no
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16632 soname_spec='$libname$release$shared_ext$major'
1600616633 shlibpath_var=LD_LIBRARY_PATH
1600716634 shlibpath_overrides_runpath=yes
1600816635 hardcode_into_libs=yes
16009 if test "$with_gnu_ld" = yes; then
16636 if test yes = "$with_gnu_ld"; then
1601016637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1601116638 else
1601216639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1602416651 version_type=linux # correct to gnu/linux during the next big refactor
1602516652 need_lib_prefix=no
1602616653 need_version=no
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1602816655 shlibpath_var=LD_LIBRARY_PATH
1602916656 shlibpath_overrides_runpath=no
1603016657 hardcode_into_libs=yes
1603216659
1603316660 uts4*)
1603416661 version_type=linux # correct to gnu/linux during the next big refactor
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16663 soname_spec='$libname$release$shared_ext$major'
1603716664 shlibpath_var=LD_LIBRARY_PATH
1603816665 ;;
1603916666
1604316670 esac
1604416671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1604516672 $as_echo "$dynamic_linker" >&6; }
16046 test "$dynamic_linker" = no && can_build_shared=no
16673 test no = "$dynamic_linker" && can_build_shared=no
1604716674
1604816675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16049 if test "$GCC" = yes; then
16676 if test yes = "$GCC"; then
1605016677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1605116678 fi
1605216679
16053 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16054 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16055 fi
16056 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16057 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16058 fi
16680 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16681 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16682 fi
16683
16684 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16685 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16686 fi
16687
16688 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16689 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16690
16691 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16692 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16693
16694 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16695 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16696
16697
1605916698
1606016699
1606116700
1609916738 hardcode_action_CXX=
1610016739 if test -n "$hardcode_libdir_flag_spec_CXX" ||
1610116740 test -n "$runpath_var_CXX" ||
16102 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16741 test yes = "$hardcode_automatic_CXX"; then
1610316742
1610416743 # We can hardcode non-existent directories.
16105 if test "$hardcode_direct_CXX" != no &&
16744 if test no != "$hardcode_direct_CXX" &&
1610616745 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1610716746 # have to relink, otherwise we might link with an installed library
1610816747 # when we should be linking with a yet-to-be-installed one
16109 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16110 test "$hardcode_minus_L_CXX" != no; then
16748 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16749 test no != "$hardcode_minus_L_CXX"; then
1611116750 # Linking always hardcodes the temporary library directory.
1611216751 hardcode_action_CXX=relink
1611316752 else
1612216761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
1612316762 $as_echo "$hardcode_action_CXX" >&6; }
1612416763
16125 if test "$hardcode_action_CXX" = relink ||
16126 test "$inherit_rpath_CXX" = yes; then
16764 if test relink = "$hardcode_action_CXX" ||
16765 test yes = "$inherit_rpath_CXX"; then
1612716766 # Fast installation is not supported
1612816767 enable_fast_install=no
16129 elif test "$shlibpath_overrides_runpath" = yes ||
16130 test "$enable_shared" = no; then
16768 elif test yes = "$shlibpath_overrides_runpath" ||
16769 test no = "$enable_shared"; then
1613116770 # Fast installation is not necessary
1613216771 enable_fast_install=needless
1613316772 fi
1615016789 lt_cv_path_LD=$lt_save_path_LD
1615116790 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
1615216791 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16153 fi # test "$_lt_caught_CXX_error" != yes
16792 fi # test yes != "$_lt_caught_CXX_error"
1615416793
1615516794 ac_ext=c
1615616795 ac_cpp='$CPP $CPPFLAGS'
1810418743 # report actual input values of CONFIG_FILES etc. instead of their
1810518744 # values after options handling.
1810618745 ac_log="
18107 This file was extended by libva $as_me 1.8.1, which was
18746 This file was extended by libva $as_me 1.8.2, which was
1810818747 generated by GNU Autoconf 2.69. Invocation command line was
1810918748
1811018749 CONFIG_FILES = $CONFIG_FILES
1817118810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1817218811 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1817318812 ac_cs_version="\\
18174 libva config.status 1.8.1
18813 libva config.status 1.8.2
1817518814 configured by $0, generated by GNU Autoconf 2.69,
1817618815 with options \\"\$ac_cs_config\\"
1817718816
1830618945 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1830718946 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1830818947 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18948 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1830918949 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1831018950 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1831118951 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1835518995 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1835618996 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1835718997 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18998 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1835818999 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1835919000 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19001 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1836019002 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1836119003 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19004 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1836219005 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1836319006 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1836419007 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1842319066 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1842419067 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1842519068 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18426 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19069 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19070 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1842719071 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1842819072 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1842919073 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1852819172 compiler \
1852919173 lt_cv_sys_global_symbol_pipe \
1853019174 lt_cv_sys_global_symbol_to_cdecl \
19175 lt_cv_sys_global_symbol_to_import \
1853119176 lt_cv_sys_global_symbol_to_c_name_address \
1853219177 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19178 lt_cv_nm_interface \
1853319179 nm_file_list_spec \
19180 lt_cv_truncate_bin \
1853419181 lt_prog_compiler_no_builtin_flag \
1853519182 lt_prog_compiler_pic \
1853619183 lt_prog_compiler_wl \
1859619243 compiler_lib_search_path_CXX; do
1859719244 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1859819245 *[\\\\\\\`\\"\\\$]*)
18599 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19246 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1860019247 ;;
1860119248 *)
1860219249 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1862319270 postuninstall_cmds \
1862419271 finish_cmds \
1862519272 sys_lib_search_path_spec \
18626 sys_lib_dlsearch_path_spec \
19273 configure_time_dlsearch_path \
19274 configure_time_lt_sys_library_path \
1862719275 reload_cmds_CXX \
1862819276 old_archive_cmds_CXX \
1862919277 old_archive_from_new_cmds_CXX \
1863719285 postlink_cmds_CXX; do
1863819286 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1863919287 *[\\\\\\\`\\"\\\$]*)
18640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19288 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1864119289 ;;
1864219290 *)
1864319291 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1864619294 done
1864719295
1864819296 ac_aux_dir='$ac_aux_dir'
18649 xsi_shell='$xsi_shell'
18650 lt_shell_append='$lt_shell_append'
18651
18652 # See if we are running on zsh, and set the options which allow our
19297
19298 # See if we are running on zsh, and set the options that allow our
1865319299 # commands through without removal of \ escapes INIT.
18654 if test -n "\${ZSH_VERSION+set}" ; then
19300 if test -n "\${ZSH_VERSION+set}"; then
1865519301 setopt NO_GLOB_SUBST
1865619302 fi
1865719303
1865819304
1865919305 PACKAGE='$PACKAGE'
1866019306 VERSION='$VERSION'
18661 TIMESTAMP='$TIMESTAMP'
1866219307 RM='$RM'
1866319308 ofile='$ofile'
1866419309
1938620031 ;;
1938720032 "libtool":C)
1938820033
19389 # See if we are running on zsh, and set the options which allow our
20034 # See if we are running on zsh, and set the options that allow our
1939020035 # commands through without removal of \ escapes.
19391 if test -n "${ZSH_VERSION+set}" ; then
20036 if test -n "${ZSH_VERSION+set}"; then
1939220037 setopt NO_GLOB_SUBST
1939320038 fi
1939420039
19395 cfgfile="${ofile}T"
20040 cfgfile=${ofile}T
1939620041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1939720042 $RM "$cfgfile"
1939820043
1939920044 cat <<_LT_EOF >> "$cfgfile"
1940020045 #! $SHELL
19401
19402 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19403 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20046 # Generated automatically by $as_me ($PACKAGE) $VERSION
1940420047 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1940520048 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20049
20050 # Provide generalized library-building support services.
20051 # Written by Gordon Matzigkeit, 1996
20052
20053 # Copyright (C) 2014 Free Software Foundation, Inc.
20054 # This is free software; see the source for copying conditions. There is NO
20055 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20056
20057 # GNU Libtool is free software; you can redistribute it and/or modify
20058 # it under the terms of the GNU General Public License as published by
20059 # the Free Software Foundation; either version 2 of of the License, or
20060 # (at your option) any later version.
1940620061 #
19407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19408 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19409 # Foundation, Inc.
19410 # Written by Gordon Matzigkeit, 1996
20062 # As a special exception to the GNU General Public License, if you
20063 # distribute this file as part of a program or library that is built
20064 # using GNU Libtool, you may include this file under the same
20065 # distribution terms that you use for the rest of that program.
1941120066 #
19412 # This file is part of GNU Libtool.
19413 #
19414 # GNU Libtool is free software; you can redistribute it and/or
19415 # modify it under the terms of the GNU General Public License as
19416 # published by the Free Software Foundation; either version 2 of
19417 # the License, or (at your option) any later version.
19418 #
19419 # As a special exception to the GNU General Public License,
19420 # if you distribute this file as part of a program or library that
19421 # is built using GNU Libtool, you may include this file under the
19422 # same distribution terms that you use for the rest of that program.
19423 #
19424 # GNU Libtool is distributed in the hope that it will be useful,
19425 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20067 # GNU Libtool is distributed in the hope that it will be useful, but
20068 # WITHOUT ANY WARRANTY; without even the implied warranty of
1942620069 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1942720070 # GNU General Public License for more details.
1942820071 #
1942920072 # You should have received a copy of the GNU General Public License
19430 # along with GNU Libtool; see the file COPYING. If not, a copy
19431 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19432 # obtained by writing to the Free Software Foundation, Inc.,
19433 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20073 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1943420074
1943520075
1943620076 # The names of the tagged configurations supported by this script.
19437 available_tags="CXX "
20077 available_tags='CXX '
20078
20079 # Configured defaults for sys_lib_dlsearch_path munging.
20080 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1943820081
1943920082 # ### BEGIN LIBTOOL CONFIG
1944020083
1945320096
1945420097 # Whether or not to optimize for fast installation.
1945520098 fast_install=$enable_fast_install
20099
20100 # Shared archive member basename,for filename based shared library versioning on AIX.
20101 shared_archive_member_spec=$shared_archive_member_spec
1945620102
1945720103 # Shell to use when invoking shell scripts.
1945820104 SHELL=$lt_SHELL
1957120217 # Transform the output of nm in a proper C declaration.
1957220218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1957320219
20220 # Transform the output of nm into a list of symbols to manually relocate.
20221 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20222
1957420223 # Transform the output of nm in a C name address pair.
1957520224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1957620225
1957720226 # Transform the output of nm in a C name address pair when lib prefix is needed.
1957820227 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1957920228
20229 # The name lister interface.
20230 nm_interface=$lt_lt_cv_nm_interface
20231
1958020232 # Specify filename containing input files for \$NM.
1958120233 nm_file_list_spec=$lt_nm_file_list_spec
1958220234
19583 # The root where to search for dependent libraries,and in which our libraries should be installed.
20235 # The root where to search for dependent libraries,and where our libraries should be installed.
1958420236 lt_sysroot=$lt_sysroot
20237
20238 # Command to truncate a binary pipe.
20239 lt_truncate_bin=$lt_lt_cv_truncate_bin
1958520240
1958620241 # The name of the directory that contains temporary libtool files.
1958720242 objdir=$objdir
1967320328 # Compile-time system search path for libraries.
1967420329 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1967520330
19676 # Run-time system search path for libraries.
19677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20331 # Detected run-time system search path for libraries.
20332 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20333
20334 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20335 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1967820336
1967920337 # Whether dlopen is supported.
1968020338 dlopen_support=$enable_dlopen
1976720425 # Whether we need a single "-rpath" flag with a separated argument.
1976820426 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1976920427
19770 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20428 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1977120429 # DIR into the resulting binary.
1977220430 hardcode_direct=$hardcode_direct
1977320431
19774 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20432 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1977520433 # DIR into the resulting binary and the resulting library dependency is
19776 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20434 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1977720435 # library is relocated.
1977820436 hardcode_direct_absolute=$hardcode_direct_absolute
1977920437
1983920497
1984020498 _LT_EOF
1984120499
20500 cat <<'_LT_EOF' >> "$cfgfile"
20501
20502 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20503
20504 # func_munge_path_list VARIABLE PATH
20505 # -----------------------------------
20506 # VARIABLE is name of variable containing _space_ separated list of
20507 # directories to be munged by the contents of PATH, which is string
20508 # having a format:
20509 # "DIR[:DIR]:"
20510 # string "DIR[ DIR]" will be prepended to VARIABLE
20511 # ":DIR[:DIR]"
20512 # string "DIR[ DIR]" will be appended to VARIABLE
20513 # "DIRP[:DIRP]::[DIRA:]DIRA"
20514 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20515 # "DIRA[ DIRA]" will be appended to VARIABLE
20516 # "DIR[:DIR]"
20517 # VARIABLE will be replaced by "DIR[ DIR]"
20518 func_munge_path_list ()
20519 {
20520 case x$2 in
20521 x)
20522 ;;
20523 *:)
20524 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20525 ;;
20526 x:*)
20527 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20528 ;;
20529 *::*)
20530 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20531 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20532 ;;
20533 *)
20534 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20535 ;;
20536 esac
20537 }
20538
20539
20540 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20541 func_cc_basename ()
20542 {
20543 for cc_temp in $*""; do
20544 case $cc_temp in
20545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20547 \-*) ;;
20548 *) break;;
20549 esac
20550 done
20551 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20552 }
20553
20554
20555 # ### END FUNCTIONS SHARED WITH CONFIGURE
20556
20557 _LT_EOF
20558
1984220559 case $host_os in
1984320560 aix3*)
1984420561 cat <<\_LT_EOF >> "$cfgfile"
1984520562 # AIX sometimes has problems with the GCC collect2 program. For some
1984620563 # reason, if we set the COLLECT_NAMES environment variable, the problems
1984720564 # vanish in a puff of smoke.
19848 if test "X${COLLECT_NAMES+set}" != Xset; then
20565 if test set != "${COLLECT_NAMES+set}"; then
1984920566 COLLECT_NAMES=
1985020567 export COLLECT_NAMES
1985120568 fi
1985420571 esac
1985520572
1985620573
19857 ltmain="$ac_aux_dir/ltmain.sh"
20574 ltmain=$ac_aux_dir/ltmain.sh
1985820575
1985920576
1986020577 # We use sed instead of cat because bash on DJGPP gets confused if
1986420581 sed '$q' "$ltmain" >> "$cfgfile" \
1986520582 || (rm -f "$cfgfile"; exit 1)
1986620583
19867 if test x"$xsi_shell" = xyes; then
19868 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19869 func_dirname ()\
19870 {\
19871 \ case ${1} in\
19872 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19873 \ * ) func_dirname_result="${3}" ;;\
19874 \ esac\
19875 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19876 && mv -f "$cfgfile.tmp" "$cfgfile" \
19877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19878 test 0 -eq $? || _lt_function_replace_fail=:
19879
19880
19881 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19882 func_basename ()\
19883 {\
19884 \ func_basename_result="${1##*/}"\
19885 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19886 && mv -f "$cfgfile.tmp" "$cfgfile" \
19887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19888 test 0 -eq $? || _lt_function_replace_fail=:
19889
19890
19891 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19892 func_dirname_and_basename ()\
19893 {\
19894 \ case ${1} in\
19895 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19896 \ * ) func_dirname_result="${3}" ;;\
19897 \ esac\
19898 \ func_basename_result="${1##*/}"\
19899 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19900 && mv -f "$cfgfile.tmp" "$cfgfile" \
19901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19902 test 0 -eq $? || _lt_function_replace_fail=:
19903
19904
19905 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19906 func_stripname ()\
19907 {\
19908 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19909 \ # positional parameters, so assign one to ordinary parameter first.\
19910 \ func_stripname_result=${3}\
19911 \ func_stripname_result=${func_stripname_result#"${1}"}\
19912 \ func_stripname_result=${func_stripname_result%"${2}"}\
19913 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19914 && mv -f "$cfgfile.tmp" "$cfgfile" \
19915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19916 test 0 -eq $? || _lt_function_replace_fail=:
19917
19918
19919 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19920 func_split_long_opt ()\
19921 {\
19922 \ func_split_long_opt_name=${1%%=*}\
19923 \ func_split_long_opt_arg=${1#*=}\
19924 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19925 && mv -f "$cfgfile.tmp" "$cfgfile" \
19926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19927 test 0 -eq $? || _lt_function_replace_fail=:
19928
19929
19930 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19931 func_split_short_opt ()\
19932 {\
19933 \ func_split_short_opt_arg=${1#??}\
19934 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19935 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19936 && mv -f "$cfgfile.tmp" "$cfgfile" \
19937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19938 test 0 -eq $? || _lt_function_replace_fail=:
19939
19940
19941 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19942 func_lo2o ()\
19943 {\
19944 \ case ${1} in\
19945 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19946 \ *) func_lo2o_result=${1} ;;\
19947 \ esac\
19948 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19949 && mv -f "$cfgfile.tmp" "$cfgfile" \
19950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19951 test 0 -eq $? || _lt_function_replace_fail=:
19952
19953
19954 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19955 func_xform ()\
19956 {\
19957 func_xform_result=${1%.*}.lo\
19958 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19959 && mv -f "$cfgfile.tmp" "$cfgfile" \
19960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19961 test 0 -eq $? || _lt_function_replace_fail=:
19962
19963
19964 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19965 func_arith ()\
19966 {\
19967 func_arith_result=$(( $* ))\
19968 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19969 && mv -f "$cfgfile.tmp" "$cfgfile" \
19970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19971 test 0 -eq $? || _lt_function_replace_fail=:
19972
19973
19974 sed -e '/^func_len ()$/,/^} # func_len /c\
19975 func_len ()\
19976 {\
19977 func_len_result=${#1}\
19978 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19979 && mv -f "$cfgfile.tmp" "$cfgfile" \
19980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19981 test 0 -eq $? || _lt_function_replace_fail=:
19982
19983 fi
19984
19985 if test x"$lt_shell_append" = xyes; then
19986 sed -e '/^func_append ()$/,/^} # func_append /c\
19987 func_append ()\
19988 {\
19989 eval "${1}+=\\${2}"\
19990 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19991 && mv -f "$cfgfile.tmp" "$cfgfile" \
19992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19993 test 0 -eq $? || _lt_function_replace_fail=:
19994
19995
19996 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19997 func_append_quoted ()\
19998 {\
19999 \ func_quote_for_eval "${2}"\
20000 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20001 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20002 && mv -f "$cfgfile.tmp" "$cfgfile" \
20003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20004 test 0 -eq $? || _lt_function_replace_fail=:
20005
20006
20007 # Save a `func_append' function call where possible by direct use of '+='
20008 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20009 && mv -f "$cfgfile.tmp" "$cfgfile" \
20010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20011 test 0 -eq $? || _lt_function_replace_fail=:
20012 else
20013 # Save a `func_append' function call even when '+=' is not available
20014 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20015 && mv -f "$cfgfile.tmp" "$cfgfile" \
20016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20017 test 0 -eq $? || _lt_function_replace_fail=:
20018 fi
20019
20020 if test x"$_lt_function_replace_fail" = x":"; then
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20022 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20023 fi
20024
20025
2002620584 mv -f "$cfgfile" "$ofile" ||
2002720585 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2002820586 chmod +x "$ofile"
2010920667 # Whether we need a single "-rpath" flag with a separated argument.
2011020668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
2011120669
20112 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20670 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
2011320671 # DIR into the resulting binary.
2011420672 hardcode_direct=$hardcode_direct_CXX
2011520673
20116 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20674 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
2011720675 # DIR into the resulting binary and the resulting library dependency is
20118 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20676 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
2011920677 # library is relocated.
2012020678 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
2012120679
4141 # - reset micro version to zero when VA-API major or minor version is changed
4242 m4_define([libva_major_version], [m4_eval(va_api_major_version + 1)])
4343 m4_define([libva_minor_version], [m4_eval(va_api_minor_version - 32)])
44 m4_define([libva_micro_version], [1])
44 m4_define([libva_micro_version], [2])
4545 m4_define([libva_pre_version], [0])
4646
4747 m4_define([libva_version],
22
33 scriptversion=2013-05-30.07; # UTC
44
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3535 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
3636 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3737 VPATH = @srcdir@
38 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
38 am__is_gnu_make = { \
39 if test -z '$(MAKELEVEL)'; then \
40 false; \
41 elif test -n '$(MAKE_HOST)'; then \
42 true; \
43 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
44 true; \
45 else \
46 false; \
47 fi; \
48 }
3949 am__make_running_with_option = \
4050 case $${target_option-} in \
4151 ?) ;; \
99109 build_triplet = @build@
100110 host_triplet = @host@
101111 subdir = doc
102 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
103112 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
104113 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
105114 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
107116 $(top_srcdir)/configure.ac
108117 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
109118 $(ACLOCAL_M4)
119 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
110120 mkinstalldirs = $(install_sh) -d
111121 CONFIG_HEADER = $(top_builddir)/config.h
112122 CONFIG_CLEAN_FILES =
131141 *) (install-info --version) >/dev/null 2>&1;; \
132142 esac
133143 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
144 am__DIST_COMMON = $(srcdir)/Makefile.in
134145 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
135146 ACLOCAL = @ACLOCAL@
136147 AMTAR = @AMTAR@
190201 LIPO = @LIPO@
191202 LN_S = @LN_S@
192203 LTLIBOBJS = @LTLIBOBJS@
204 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
193205 MAKEINFO = @MAKEINFO@
194206 MANIFEST_TOOL = @MANIFEST_TOOL@
195207 MKDIR_P = @MKDIR_P@
277289 prefix = @prefix@
278290 program_transform_name = @program_transform_name@
279291 psdir = @psdir@
292 runstatedir = @runstatedir@
280293 sbindir = @sbindir@
281294 sharedstatedir = @sharedstatedir@
282295 srcdir = @srcdir@
313326 exit 1;; \
314327 esac; \
315328 done; \
316 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
329 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
317330 $(am__cd) $(top_srcdir) && \
318 $(AUTOMAKE) --foreign doc/Makefile
319 .PRECIOUS: Makefile
331 $(AUTOMAKE) --gnu doc/Makefile
320332 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
321333 @case '$?' in \
322334 *config.status*) \
495507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
496508 tags-am uninstall uninstall-am uninstall-local
497509
510 .PRECIOUS: Makefile
511
498512
499513 all: html
500514 install-data-local: install-html
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3737
3838
3939 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
4151 am__make_running_with_option = \
4252 case $${target_option-} in \
4353 ?) ;; \
102112 host_triplet = @host@
103113 @BUILD_DUMMY_DRIVER_FALSE@dummy_drv_video_la_DEPENDENCIES =
104114 subdir = dummy_drv_video
105 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
106 $(top_srcdir)/depcomp $(am__noinst_HEADERS_DIST)
107115 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108116 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
109117 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
111119 $(top_srcdir)/configure.ac
112120 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
113121 $(ACLOCAL_M4)
122 DIST_COMMON = $(srcdir)/Makefile.am $(am__noinst_HEADERS_DIST) \
123 $(am__DIST_COMMON)
114124 mkinstalldirs = $(install_sh) -d
115125 CONFIG_HEADER = $(top_builddir)/config.h
116126 CONFIG_CLEAN_FILES =
220230 done | $(am__uniquify_input)`
221231 ETAGS = etags
222232 CTAGS = ctags
233 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
223234 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
224235 ACLOCAL = @ACLOCAL@
225236 AMTAR = @AMTAR@
279290 LIPO = @LIPO@
280291 LN_S = @LN_S@
281292 LTLIBOBJS = @LTLIBOBJS@
293 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
282294 MAKEINFO = @MAKEINFO@
283295 MANIFEST_TOOL = @MANIFEST_TOOL@
284296 MKDIR_P = @MKDIR_P@
366378 prefix = @prefix@
367379 program_transform_name = @program_transform_name@
368380 psdir = @psdir@
381 runstatedir = @runstatedir@
369382 sbindir = @sbindir@
370383 sharedstatedir = @sharedstatedir@
371384 srcdir = @srcdir@
395408 exit 1;; \
396409 esac; \
397410 done; \
398 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign dummy_drv_video/Makefile'; \
411 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu dummy_drv_video/Makefile'; \
399412 $(am__cd) $(top_srcdir) && \
400 $(AUTOMAKE) --foreign dummy_drv_video/Makefile
401 .PRECIOUS: Makefile
413 $(AUTOMAKE) --gnu dummy_drv_video/Makefile
402414 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
403415 @case '$?' in \
404416 *config.status*) \
699711 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
700712 uninstall-dummy_drv_video_laLTLIBRARIES
701713
714 .PRECIOUS: Makefile
715
702716
703717 # Tell versions [3.59,3.63) of GNU make to not export all variables.
704718 # Otherwise a system limit (for SysV at least) may be exceeded.
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-11-20.07; # UTC
3 scriptversion=2014-09-12.12; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
4040 # This script is compatible with the BSD install script, but was written
4141 # from scratch.
4242
43 tab=' '
4344 nl='
4445 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
5050 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
51 doit_exec=${doit:-exec}
5652
5753 # Put in absolute file names if you don't have them in your path;
5854 # or use environment vars.
6763 rmprog=${RMPROG-rm}
6864 stripprog=${STRIPPROG-strip}
6965
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
8166 posix_mkdir=
8267
8368 # Desired mode of installed file.
9681 dst_arg=
9782
9883 copy_on_change=false
99 no_target_directory=
84 is_target_a_directory=possibly
10085
10186 usage="\
10287 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
136121 -d) dir_arg=true;;
137122
138123 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
124 shift;;
140125
141126 --help) echo "$usage"; exit $?;;
142127
143128 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
151135
152136 -o) chowncmd="$chownprog $2"
153 shift;;
137 shift;;
154138
155139 -s) stripcmd=$stripprog;;
156140
157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
162 shift;;
163
164 -T) no_target_directory=true;;
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
165151
166152 --version) echo "$0 $scriptversion"; exit $?;;
167153
168 --) shift
169 break;;
170
171 -*) echo "$0: invalid option: $1" >&2
172 exit 1;;
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
173159
174160 *) break;;
175161 esac
176162 shift
177163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
178174
179175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
180176 # When -d is used, all remaining arguments are directories to create.
207203 fi
208204
209205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
210215 do_exit='(exit $ret); exit $ret'
211216 trap "ret=129; $do_exit" 1
212217 trap "ret=130; $do_exit" 2
222227
223228 *[0-7])
224229 if test -z "$stripcmd"; then
225 u_plus_rw=
230 u_plus_rw=
226231 else
227 u_plus_rw='% 200'
232 u_plus_rw='% 200'
228233 fi
229234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
230235 *)
231236 if test -z "$stripcmd"; then
232 u_plus_rw=
237 u_plus_rw=
233238 else
234 u_plus_rw=,u+rw
239 u_plus_rw=,u+rw
235240 fi
236241 cp_umask=$mode$u_plus_rw;;
237242 esac
268273 # If destination is a directory, append the input filename; won't work
269274 # if double slashes aren't ignored.
270275 if test -d "$dst"; then
271 if test -n "$no_target_directory"; then
272 echo "$0: $dst_arg: Is a directory" >&2
273 exit 1
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
274279 fi
275280 dstdir=$dst
276281 dst=$dstdir/`basename "$src"`
277282 dstdir_status=0
278283 else
279 # Prefer dirname, but fall back on a substitute if dirname fails.
280 dstdir=`
281 (dirname "$dst") 2>/dev/null ||
282 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
283 X"$dst" : 'X\(//\)[^/]' \| \
284 X"$dst" : 'X\(//\)$' \| \
285 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
286 echo X"$dst" |
287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
288 s//\1/
289 q
290 }
291 /^X\(\/\/\)[^/].*/{
292 s//\1/
293 q
294 }
295 /^X\(\/\/\)$/{
296 s//\1/
297 q
298 }
299 /^X\(\/\).*/{
300 s//\1/
301 q
302 }
303 s/.*/./; q'
304 `
305
284 dstdir=`dirname "$dst"`
306285 test -d "$dstdir"
307286 dstdir_status=$?
308287 fi
313292 if test $dstdir_status != 0; then
314293 case $posix_mkdir in
315294 '')
316 # Create intermediate dirs using mode 755 as modified by the umask.
317 # This is like FreeBSD 'install' as of 1997-10-28.
318 umask=`umask`
319 case $stripcmd.$umask in
320 # Optimize common cases.
321 *[2367][2367]) mkdir_umask=$umask;;
322 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
323
324 *[0-7])
325 mkdir_umask=`expr $umask + 22 \
326 - $umask % 100 % 40 + $umask % 20 \
327 - $umask % 10 % 4 + $umask % 2
328 `;;
329 *) mkdir_umask=$umask,go-w;;
330 esac
331
332 # With -d, create the new directory with the user-specified mode.
333 # Otherwise, rely on $mkdir_umask.
334 if test -n "$dir_arg"; then
335 mkdir_mode=-m$mode
336 else
337 mkdir_mode=
338 fi
339
340 posix_mkdir=false
341 case $umask in
342 *[123567][0-7][0-7])
343 # POSIX mkdir -p sets u+wx bits regardless of umask, which
344 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
345 ;;
346 *)
347 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
348 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
349
350 if (umask $mkdir_umask &&
351 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
352 then
353 if test -z "$dir_arg" || {
354 # Check for POSIX incompatibilities with -m.
355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writable bit of parent directory when it shouldn't.
357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359 case $ls_ld_tmpdir in
360 d????-?r-*) different_mode=700;;
361 d????-?--*) different_mode=755;;
362 *) false;;
363 esac &&
364 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
365 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
366 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
367 }
368 }
369 then posix_mkdir=:
370 fi
371 rmdir "$tmpdir/d" "$tmpdir"
372 else
373 # Remove any dirs left behind by ancient mkdir implementations.
374 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
375 fi
376 trap '' 0;;
377 esac;;
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 # $RANDOM is not portable (e.g. dash); use it when possible to
327 # lower collision chance
328 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
329 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
330
331 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so
332 # create the $tmpdir first (and fail if unsuccessful) to make sure
333 # that nobody tries to guess the $tmpdir name.
334 if (umask $mkdir_umask &&
335 $mkdirprog $mkdir_mode "$tmpdir" &&
336 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
337 then
338 if test -z "$dir_arg" || {
339 # Check for POSIX incompatibilities with -m.
340 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
341 # other-writable bit of parent directory when it shouldn't.
342 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
343 test_tmpdir="$tmpdir/a"
344 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
345 case $ls_ld_tmpdir in
346 d????-?r-*) different_mode=700;;
347 d????-?--*) different_mode=755;;
348 *) false;;
349 esac &&
350 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
351 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
352 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
353 }
354 }
355 then posix_mkdir=:
356 fi
357 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
358 else
359 # Remove any dirs left behind by ancient mkdir implementations.
360 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
361 fi
362 trap '' 0;;
363 esac;;
378364 esac
379365
380366 if
381367 $posix_mkdir && (
382 umask $mkdir_umask &&
383 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
368 umask $mkdir_umask &&
369 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
384370 )
385371 then :
386372 else
390376 # directory the slow way, step by step, checking for races as we go.
391377
392378 case $dstdir in
393 /*) prefix='/';;
394 [-=\(\)!]*) prefix='./';;
395 *) prefix='';;
379 /*) prefix='/';;
380 [-=\(\)!]*) prefix='./';;
381 *) prefix='';;
396382 esac
397
398 eval "$initialize_posix_glob"
399383
400384 oIFS=$IFS
401385 IFS=/
402 $posix_glob set -f
386 set -f
403387 set fnord $dstdir
404388 shift
405 $posix_glob set +f
389 set +f
406390 IFS=$oIFS
407391
408392 prefixes=
409393
410394 for d
411395 do
412 test X"$d" = X && continue
413
414 prefix=$prefix$d
415 if test -d "$prefix"; then
416 prefixes=
417 else
418 if $posix_mkdir; then
419 (umask=$mkdir_umask &&
420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
421 # Don't fail if two instances are running concurrently.
422 test -d "$prefix" || exit 1
423 else
424 case $prefix in
425 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
426 *) qprefix=$prefix;;
427 esac
428 prefixes="$prefixes '$qprefix'"
429 fi
430 fi
431 prefix=$prefix/
396 test X"$d" = X && continue
397
398 prefix=$prefix$d
399 if test -d "$prefix"; then
400 prefixes=
401 else
402 if $posix_mkdir; then
403 (umask=$mkdir_umask &&
404 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
405 # Don't fail if two instances are running concurrently.
406 test -d "$prefix" || exit 1
407 else
408 case $prefix in
409 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
410 *) qprefix=$prefix;;
411 esac
412 prefixes="$prefixes '$qprefix'"
413 fi
414 fi
415 prefix=$prefix/
432416 done
433417
434418 if test -n "$prefixes"; then
435 # Don't fail if two instances are running concurrently.
436 (umask $mkdir_umask &&
437 eval "\$doit_exec \$mkdirprog $prefixes") ||
438 test -d "$dstdir" || exit 1
439 obsolete_mkdir_used=true
419 # Don't fail if two instances are running concurrently.
420 (umask $mkdir_umask &&
421 eval "\$doit_exec \$mkdirprog $prefixes") ||
422 test -d "$dstdir" || exit 1
423 obsolete_mkdir_used=true
440424 fi
441425 fi
442426 fi
471455
472456 # If -C, don't bother to copy if it wouldn't change the file.
473457 if $copy_on_change &&
474 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
475 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
476
477 eval "$initialize_posix_glob" &&
478 $posix_glob set -f &&
458 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
459 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
460 set -f &&
479461 set X $old && old=:$2:$4:$5:$6 &&
480462 set X $new && new=:$2:$4:$5:$6 &&
481 $posix_glob set +f &&
482
463 set +f &&
483464 test "$old" = "$new" &&
484465 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
485466 then
492473 # to itself, or perhaps because mv is so ancient that it does not
493474 # support -f.
494475 {
495 # Now remove or move aside any old file at destination location.
496 # We try this two ways since rm can't unlink itself on some
497 # systems and the destination file might be busy for other
498 # reasons. In this case, the final cleanup might fail but the new
499 # file should still install successfully.
500 {
501 test ! -f "$dst" ||
502 $doit $rmcmd -f "$dst" 2>/dev/null ||
503 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
504 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
505 } ||
506 { echo "$0: cannot unlink or rename $dst" >&2
507 (exit 1); exit 1
508 }
509 } &&
510
511 # Now rename the file to the real destination.
512 $doit $mvcmd "$dsttmp" "$dst"
476 # Now remove or move aside any old file at destination location.
477 # We try this two ways since rm can't unlink itself on some
478 # systems and the destination file might be busy for other
479 # reasons. In this case, the final cleanup might fail but the new
480 # file should still install successfully.
481 {
482 test ! -f "$dst" ||
483 $doit $rmcmd -f "$dst" 2>/dev/null ||
484 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
485 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
486 } ||
487 { echo "$0: cannot unlink or rename $dst" >&2
488 (exit 1); exit 1
489 }
490 } &&
491
492 # Now rename the file to the real destination.
493 $doit $mvcmd "$dsttmp" "$dst"
513494 }
514495 fi || exit 1
515496
+3656
-2161
ltmain.sh less more
0
1 # libtool (GNU libtool) 2.4.2
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
26 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
37
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
69 # This is free software; see the source for copying conditions. There is NO
710 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
811
2225 # General Public License for more details.
2326 #
2427 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
49 #
50 # MODE must be one of the following:
51 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
59 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
63 #
64 # When reporting a bug, please describe a test case to reproduce it and
65 # include the following information:
66 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
73 # automake: $automake_version
74 # autoconf: $autoconf_version
75 #
76 # Report bugs to <bug-libtool@gnu.org>.
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
7930
8031 PROGRAM=libtool
8132 PACKAGE=libtool
82 VERSION="2.4.2 Debian-2.4.2-1.7ubuntu1"
83 TIMESTAMP=""
84 package_revision=1.3337
85
86 # Be Bourne compatible
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33 VERSION="2.4.6 Debian-2.4.6-0.1"
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
88118 emulate sh
89119 NULLCMD=:
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
91121 # is contrary to our usage. Disable this feature.
92122 alias -g '${1+"$@"}'='"$@"'
93123 setopt NO_GLOB_SUBST
94124 else
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
96126 fi
97 BIN_SH=xpg4; export BIN_SH # for Tru64
98 DUALCASE=1; export DUALCASE # for MKS sh
99
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
108 # NLS nuisances: We save the old values to restore during execute mode.
109 lt_user_locale=
110 lt_safe_locale=
111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
112132 do
113 eval "if test \"\${$lt_var+set}\" = set; then
114 save_$lt_var=\$$lt_var
115 $lt_var=C
116 export $lt_var
117 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
119139 fi"
120140 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124
125 $lt_unset CDPATH
126
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
127401
128402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129403 # is ksh but when the shell is invoked as "sh" and the current value of
130404 # the _XPG environment variable is not equal to 1 (one), the special
131405 # positional parameter $0, within a function call, is the name of the
132406 # function.
133 progpath="$0"
134
135
136
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${MAKE="make"}
140 : ${MKDIR="mkdir"}
141 : ${MV="mv -f"}
142 : ${RM="rm -f"}
143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144 : ${Xsed="$SED -e 1s/^X//"}
145
146 # Global variables:
147 EXIT_SUCCESS=0
148 EXIT_FAILURE=1
149 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
150 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
151
152 exit_status=$EXIT_SUCCESS
153
154 # Make sure IFS has a sensible default
155 lt_nl='
156 '
157 IFS=" $lt_nl"
158
159 dirname="s,/[^/]*$,,"
160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
163679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164680 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
182
183 # func_dirname_and_basename file append nondir_replacement
184 # perform func_basename and func_dirname in a single function
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
185692 # call:
186693 # dirname: Compute the dirname of FILE. If nonempty,
187694 # add APPEND to the result, otherwise set result
189696 # value returned in "$func_dirname_result"
190697 # basename: Compute filename of FILE.
191698 # value retuned in "$func_basename_result"
192 # Implementation must be kept synchronized with func_dirname
193 # and func_basename. For efficiency, we do not delegate to
194 # those functions but instead duplicate the functionality here.
195 func_dirname_and_basename ()
196 {
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
201898 else
202 func_dirname_result="$func_dirname_result${2}"
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
203916 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
917
918 $ECHO "$_G_tmpdir"
919 }
920
232921
233922 # func_normal_abspath PATH
923 # ------------------------
234924 # Remove doubled-up and trailing slashes, "." path components,
235925 # and cancel out any ".." path components in PATH after making
236926 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238927 func_normal_abspath ()
239928 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
287976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
337984 fi
338985 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
360 fi
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
370
371 # The name of this program:
372 func_dirname_and_basename "$progpath"
373 progname=$func_basename_result
374
375 # Make sure we have an absolute path for reexecution:
376 case $progpath in
377 [\\/]*|[A-Za-z]:\\*) ;;
378 *[\\/]*)
379 progdir=$func_dirname_result
380 progdir=`cd "$progdir" && pwd`
381 progpath="$progdir/$progname"
382 ;;
383 *)
384 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
386 for progdir in $PATH; do
387 IFS="$save_IFS"
388 test -x "$progdir/$progname" && break
389 done
390 IFS="$save_IFS"
391 test -n "$progdir" || progdir=`pwd`
392 progpath="$progdir/$progname"
393 ;;
394 esac
395
396 # Sed substitution that helps us do robust quoting. It backslashifies
397 # metacharacters that are still active within double-quoted strings.
398 Xsed="${SED}"' -e 1s/^X//'
399 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
400
401 # Same as above, but do not quote variable references.
402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
412
413 # Re-`\' parameter expansions in output of double_quote_subst that were
414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
415 # in input to double_quote_subst, that '$' was protected from expansion.
416 # Since each input `\' is now two `\'s, look for any number of runs of
417 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
418 bs='\\'
419 bs2='\\\\'
420 bs4='\\\\\\\\'
421 dollar='\$'
422 sed_double_backslash="\
423 s/$bs4/&\\
424 /g
425 s/^$bs2$dollar/$bs&/
426 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
427 s/\n//g"
428
429 # Standard options:
430 opt_dry_run=false
431 opt_help=false
432 opt_quiet=false
433 opt_verbose=false
434 opt_warning=:
435
436 # func_echo arg...
437 # Echo program name prefixed message, along with the current mode
438 # name if it has been set yet.
439 func_echo ()
440 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
442 }
443
444 # func_verbose arg...
445 # Echo program name prefixed message in verbose mode only.
446 func_verbose ()
447 {
448 $opt_verbose && func_echo ${1+"$@"}
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
4491020
4501021 # A bug in bash halts the script if the last line of a function
4511022 # fails when set -e is in force, so we need another command to
4531024 :
4541025 }
4551026
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463 # func_error arg...
464 # Echo program name prefixed message to standard error.
465 func_error ()
466 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
468 }
469
470 # func_warning arg...
471 # Echo program name prefixed warning message to standard error.
472 func_warning ()
473 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
475
476 # bash bug again:
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
4771089 :
4781090 }
4791091
480 # func_fatal_error arg...
481 # Echo program name prefixed message to standard error, and exit.
482 func_fatal_error ()
483 {
484 func_error ${1+"$@"}
485 exit $EXIT_FAILURE
486 }
487
488 # func_fatal_help arg...
489 # Echo program name prefixed message to standard error, followed by
490 # a help hint, and exit.
491 func_fatal_help ()
492 {
493 func_error ${1+"$@"}
494 func_fatal_error "$help"
495 }
496 help="Try \`$progname --help' for more information." ## default
497
498
499 # func_grep expression filename
500 # Check whether EXPRESSION matches any line of FILENAME, without output.
501 func_grep ()
502 {
503 $GREP "$1" "$2" >/dev/null 2>&1
504 }
505
506
507 # func_mkdir_p directory-path
508 # Make sure the entire path to DIRECTORY-PATH is available.
509 func_mkdir_p ()
510 {
511 my_directory_path="$1"
512 my_dir_list=
513
514 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
515
516 # Protect directory names starting with `-'
517 case $my_directory_path in
518 -*) my_directory_path="./$my_directory_path" ;;
1092
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1103 {
1104 $debug_cmd
1105
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
5191114 esac
520
521 # While some portion of DIR does not yet exist...
522 while test ! -d "$my_directory_path"; do
523 # ...make a list in topmost first order. Use a colon delimited
524 # list incase some portion of path contains whitespace.
525 my_dir_list="$my_directory_path:$my_dir_list"
526
527 # If the last portion added has no slash in it, the list is done
528 case $my_directory_path in */*) ;; *) break ;; esac
529
530 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
532 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
534
535 save_mkdir_p_IFS="$IFS"; IFS=':'
536 for my_dir in $my_dir_list; do
537 IFS="$save_mkdir_p_IFS"
538 # mkdir can fail with a `File exist' error if two processes
539 # try to create one of the directories concurrently. Don't
540 # stop in that case!
541 $MKDIR "$my_dir" 2>/dev/null || :
542 done
543 IFS="$save_mkdir_p_IFS"
544
545 # Bail out if we (or some other process) failed to create a directory.
546 test -d "$my_directory_path" || \
547 func_fatal_error "Failed to create \`$1'"
548 fi
549 }
550
551
552 # func_mktempdir [string]
553 # Make a temporary directory that won't clash with other running
554 # libtool processes, and avoids race conditions if possible. If
555 # given, STRING is the basename for that directory.
556 func_mktempdir ()
557 {
558 my_template="${TMPDIR-/tmp}/${1-$progname}"
559
560 if test "$opt_dry_run" = ":"; then
561 # Return a directory name, but don't create it in dry-run mode
562 my_tmpdir="${my_template}-$$"
563 else
564
565 # If mktemp works, use that first and foremost
566 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
567
568 if test ! -d "$my_tmpdir"; then
569 # Failing that, at least try and use $RANDOM to avoid a race
570 my_tmpdir="${my_template}-${RANDOM-0}$$"
571
572 save_mktempdir_umask=`umask`
573 umask 0077
574 $MKDIR "$my_tmpdir"
575 umask $save_mktempdir_umask
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
5761119 fi
5771120
578 # If we're not in dry-run mode, bomb out on failure
579 test -d "$my_tmpdir" || \
580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581 fi
582
583 $ECHO "$my_tmpdir"
584 }
585
586
587 # func_quote_for_eval arg
588 # Aesthetically quote ARG to be evaled later.
589 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
590 # is double-quoted, suitable for a subsequent eval, whereas
591 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
592 # which are still active within double quotes backslashified.
593 func_quote_for_eval ()
594 {
595 case $1 in
596 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
598 *)
599 func_quote_for_eval_unquoted_result="$1" ;;
600 esac
601
602 case $func_quote_for_eval_unquoted_result in
603 # Double-quote args containing shell metacharacters to delay
604 # word splitting, command substitution and and variable
605 # expansion for a subsequent eval.
606 # Many Bourne shells cannot handle close brackets correctly
607 # in scan sets, so we specify it separately.
608 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
609 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
610 ;;
611 *)
612 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
613 esac
614 }
615
616
617 # func_quote_for_expand arg
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1129 ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1133 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1137 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1139 fi
1140 shift
1141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
6181147 # Aesthetically quote ARG to be evaled later; same as above,
6191148 # but do not quote variable references.
6201149 func_quote_for_expand ()
6211150 {
1151 $debug_cmd
1152
6221153 case $1 in
6231154 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
6261157 *)
627 my_arg="$1" ;;
1158 _G_arg=$1 ;;
6281159 esac
6291160
630 case $my_arg in
1161 case $_G_arg in
6311162 # Double-quote args containing shell metacharacters to delay
6321163 # word splitting and command substitution for a subsequent eval.
6331164 # Many Bourne shells cannot handle close brackets correctly
6341165 # in scan sets, so we specify it separately.
6351166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
1167 _G_arg=\"$_G_arg\"
6371168 ;;
6381169 esac
6391170
640 func_quote_for_expand_result="$my_arg"
641 }
642
643
644 # func_show_eval cmd [fail_exp]
645 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1171 func_quote_for_expand_result=$_G_arg
1172 }
1173
1174
1175 # func_stripname PREFIX SUFFIX NAME
1176 # ---------------------------------
1177 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1178 # PREFIX and SUFFIX must not contain globbing or regex special
1179 # characters, hashes, percent signs, but SUFFIX may contain a leading
1180 # dot (in which case that matches only a dot).
1181 if test yes = "$_G_HAVE_XSI_OPS"; then
1182 eval 'func_stripname ()
1183 {
1184 $debug_cmd
1185
1186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1187 # positional parameters, so assign one to ordinary variable first.
1188 func_stripname_result=$3
1189 func_stripname_result=${func_stripname_result#"$1"}
1190 func_stripname_result=${func_stripname_result%"$2"}
1191 }'
1192 else
1193 func_stripname ()
1194 {
1195 $debug_cmd
1196
1197 case $2 in
1198 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1199 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1200 esac
1201 }
1202 fi
1203
1204
1205 # func_show_eval CMD [FAIL_EXP]
1206 # -----------------------------
1207 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6461208 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6471209 # is given, then evaluate it.
6481210 func_show_eval ()
6491211 {
650 my_cmd="$1"
651 my_fail_exp="${2-:}"
652
653 ${opt_silent-false} || {
654 func_quote_for_expand "$my_cmd"
655 eval "func_echo $func_quote_for_expand_result"
1212 $debug_cmd
1213
1214 _G_cmd=$1
1215 _G_fail_exp=${2-':'}
1216
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1219
1220 $opt_dry_run || {
1221 eval "$_G_cmd"
1222 _G_status=$?
1223 if test 0 -ne "$_G_status"; then
1224 eval "(exit $_G_status); $_G_fail_exp"
1225 fi
6561226 }
657
658 if ${opt_dry_run-false}; then :; else
659 eval "$my_cmd"
660 my_status=$?
661 if test "$my_status" -eq 0; then :; else
662 eval "(exit $my_status); $my_fail_exp"
663 fi
664 fi
665 }
666
667
668 # func_show_eval_locale cmd [fail_exp]
669 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1227 }
1228
1229
1230 # func_show_eval_locale CMD [FAIL_EXP]
1231 # ------------------------------------
1232 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6701233 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6711234 # is given, then evaluate it. Use the saved locale for evaluation.
6721235 func_show_eval_locale ()
6731236 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
1237 $debug_cmd
1238
1239 _G_cmd=$1
1240 _G_fail_exp=${2-':'}
1241
1242 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
6791244 eval "func_echo $func_quote_for_expand_result"
6801245 }
6811246
682 if ${opt_dry_run-false}; then :; else
683 eval "$lt_user_locale
684 $my_cmd"
685 my_status=$?
686 eval "$lt_safe_locale"
687 if test "$my_status" -eq 0; then :; else
688 eval "(exit $my_status); $my_fail_exp"
1247 $opt_dry_run || {
1248 eval "$_G_user_locale
1249 $_G_cmd"
1250 _G_status=$?
1251 eval "$_G_safe_locale"
1252 if test 0 -ne "$_G_status"; then
1253 eval "(exit $_G_status); $_G_fail_exp"
6891254 fi
690 fi
691 }
1255 }
1256 }
1257
6921258
6931259 # func_tr_sh
1260 # ----------
6941261 # Turn $1 into a string suitable for a shell variable name.
6951262 # Result is stored in $func_tr_sh_result. All characters
6961263 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
6971264 # if $1 begins with a digit, a '_' is prepended as well.
6981265 func_tr_sh ()
6991266 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
710
711 # func_version
712 # Echo version message to standard output and exit.
713 func_version ()
714 {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
726 s/^# //
727 s/^# *$//
728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
729 p
730 }' < "$progpath"
731 exit $?
732 }
733
734 # func_usage
735 # Echo short help message to standard output and exit.
736 func_usage ()
737 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
741 s/^# //
742 s/^# *$//
743 s/\$progname/'$progname'/
744 p
745 }' < "$progpath"
746 echo
747 $ECHO "run \`$progname --help | more' for full usage"
748 exit $?
749 }
750
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
1267 $debug_cmd
1268
1269 case $1 in
1270 [0-9]* | *[!a-zA-Z0-9_]*)
1271 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1272 ;;
1273 * )
1274 func_tr_sh_result=$1
1275 ;;
1276 esac
1277 }
1278
1279
1280 # func_verbose ARG...
1281 # -------------------
1282 # Echo program name prefixed message in verbose mode only.
1283 func_verbose ()
1284 {
1285 $debug_cmd
1286
1287 $opt_verbose && func_echo "$*"
1288
1289 :
1290 }
1291
1292
1293 # func_warn_and_continue ARG...
1294 # -----------------------------
1295 # Echo program name prefixed warning message to standard error.
1296 func_warn_and_continue ()
1297 {
1298 $debug_cmd
1299
1300 $require_term_colors
1301
1302 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1303 }
1304
1305
1306 # func_warning CATEGORY ARG...
1307 # ----------------------------
1308 # Echo program name prefixed warning message to standard error. Warning
1309 # messages can be filtered according to CATEGORY, where this function
1310 # elides messages where CATEGORY is not listed in the global variable
1311 # 'opt_warning_types'.
1312 func_warning ()
1313 {
1314 $debug_cmd
1315
1316 # CATEGORY must be in the warning_categories list!
1317 case " $warning_categories " in
1318 *" $1 "*) ;;
1319 *) func_internal_error "invalid warning category '$1'" ;;
1320 esac
1321
1322 _G_category=$1
1323 shift
1324
1325 case " $opt_warning_types " in
1326 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1327 esac
1328 }
1329
1330
1331 # func_sort_ver VER1 VER2
1332 # -----------------------
1333 # 'sort -V' is not generally available.
1334 # Note this deviates from the version comparison in automake
1335 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1336 # but this should suffice as we won't be specifying old
1337 # version formats or redundant trailing .0 in bootstrap.conf.
1338 # If we did want full compatibility then we should probably
1339 # use m4_version_compare from autoconf.
1340 func_sort_ver ()
1341 {
1342 $debug_cmd
1343
1344 printf '%s\n%s\n' "$1" "$2" \
1345 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1346 }
1347
1348 # func_lt_ver PREV CURR
1349 # ---------------------
1350 # Return true if PREV and CURR are in the correct order according to
1351 # func_sort_ver, otherwise false. Use it like this:
1352 #
1353 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1354 func_lt_ver ()
1355 {
1356 $debug_cmd
1357
1358 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1359 }
1360
1361
1362 # Local variables:
1363 # mode: shell-script
1364 # sh-indentation: 2
1365 # eval: (add-hook 'before-save-hook 'time-stamp)
1366 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1367 # time-stamp-time-zone: "UTC"
1368 # End:
1369 #! /bin/sh
1370
1371 # Set a version string for this script.
1372 scriptversion=2014-01-07.03; # UTC
1373
1374 # A portable, pluggable option parser for Bourne shell.
1375 # Written by Gary V. Vaughan, 2010
1376
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1395
1396
1397 ## ------ ##
1398 ## Usage. ##
1399 ## ------ ##
1400
1401 # This file is a library for parsing options in your shell scripts along
1402 # with assorted other useful supporting features that you can make use
1403 # of too.
1404 #
1405 # For the simplest scripts you might need only:
1406 #
1407 # #!/bin/sh
1408 # . relative/path/to/funclib.sh
1409 # . relative/path/to/options-parser
1410 # scriptversion=1.0
1411 # func_options ${1+"$@"}
1412 # eval set dummy "$func_options_result"; shift
1413 # ...rest of your script...
1414 #
1415 # In order for the '--version' option to work, you will need to have a
1416 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1418 #
1419 # For '-h' and '--help' to work, you will also need a one line
1420 # description of your script's purpose in a comment directly above the
1421 # '# Written by ' line, like the one at the top of this file.
1422 #
1423 # The default options also support '--debug', which will turn on shell
1424 # execution tracing (see the comment above debug_cmd below for another
1425 # use), and '--verbose' and the func_verbose function to allow your script
1426 # to display verbose messages only when your user has specified
1427 # '--verbose'.
1428 #
1429 # After sourcing this file, you can plug processing for additional
1430 # options by amending the variables from the 'Configuration' section
1431 # below, and following the instructions in the 'Option parsing'
1432 # section further down.
1433
1434 ## -------------- ##
1435 ## Configuration. ##
1436 ## -------------- ##
1437
1438 # You should override these variables in your script after sourcing this
1439 # file so that they reflect the customisations you have added to the
1440 # option parser.
1441
1442 # The usage line for option parsing errors and the start of '-h' and
1443 # '--help' output messages. You can embed shell variables for delayed
1444 # expansion at the time the message is displayed, but you will need to
1445 # quote other shell meta-characters carefully to prevent them being
1446 # expanded when the contents are evaled.
1447 usage='$progpath [OPTION]...'
1448
1449 # Short help message in response to '-h' and '--help'. Add to this or
1450 # override it after sourcing this library to reflect the full set of
1451 # options your script accepts.
1452 usage_message="\
1453 --debug enable verbose shell tracing
1454 -W, --warnings=CATEGORY
1455 report the warnings falling in CATEGORY [all]
1456 -v, --verbose verbosely report processing
1457 --version print version information and exit
1458 -h, --help print short or long help message and exit
1459 "
1460
1461 # Additional text appended to 'usage_message' in response to '--help'.
1462 long_help_message="
1463 Warning categories include:
1464 'all' show all warnings
1465 'none' turn off all the warnings
1466 'error' warnings are treated as fatal errors"
1467
1468 # Help message printed before fatal option parsing errors.
1469 fatal_help="Try '\$progname --help' for more information."
1470
1471
1472
1473 ## ------------------------- ##
1474 ## Hook function management. ##
1475 ## ------------------------- ##
1476
1477 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1480
1481 # func_hookable FUNC_NAME
1482 # -----------------------
1483 # Declare that FUNC_NAME will run hooks added with
1484 # 'func_add_hook FUNC_NAME ...'.
1485 func_hookable ()
1486 {
1487 $debug_cmd
1488
1489 func_append hookable_fns " $1"
1490 }
1491
1492
1493 # func_add_hook FUNC_NAME HOOK_FUNC
1494 # ---------------------------------
1495 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1496 # first have been declared "hookable" by a call to 'func_hookable'.
1497 func_add_hook ()
1498 {
1499 $debug_cmd
1500
1501 case " $hookable_fns " in
1502 *" $1 "*) ;;
1503 *) func_fatal_error "'$1' does not accept hook functions." ;;
1504 esac
1505
1506 eval func_append ${1}_hooks '" $2"'
1507 }
1508
1509
1510 # func_remove_hook FUNC_NAME HOOK_FUNC
1511 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1513 func_remove_hook ()
1514 {
1515 $debug_cmd
1516
1517 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1518 }
1519
1520
1521 # func_run_hooks FUNC_NAME [ARG]...
1522 # ---------------------------------
1523 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1525 # than a whitespace-delimited list of legal shell function names, and
1526 # no effort is wasted trying to catch shell meta-characters or preserve
1527 # whitespace.
1528 func_run_hooks ()
1529 {
1530 $debug_cmd
1531
1532 case " $hookable_fns " in
1533 *" $1 "*) ;;
1534 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1535 esac
1536
1537 eval _G_hook_fns=\$$1_hooks; shift
1538
1539 for _G_hook in $_G_hook_fns; do
1540 eval $_G_hook '"$@"'
1541
1542 # store returned options list back into positional
1543 # parameters for next 'cmd' execution.
1544 eval _G_hook_result=\$${_G_hook}_result
1545 eval set dummy "$_G_hook_result"; shift
1546 done
1547
1548 func_quote_for_eval ${1+"$@"}
1549 func_run_hooks_result=$func_quote_for_eval_result
1550 }
1551
1552
1553
1554 ## --------------- ##
1555 ## Option parsing. ##
1556 ## --------------- ##
1557
1558 # In order to add your own option parsing hooks, you must accept the
1559 # full positional parameter list in your hook function, remove any
1560 # options that you action, and then pass back the remaining unprocessed
1561 # options in '<hooked_function_name>_result', escaped suitably for
1562 # 'eval'. Like this:
1563 #
1564 # my_options_prep ()
1565 # {
1566 # $debug_cmd
1567 #
1568 # # Extend the existing usage message.
1569 # usage_message=$usage_message'
1570 # -s, --silent don'\''t print informational messages
1571 # '
1572 #
1573 # func_quote_for_eval ${1+"$@"}
1574 # my_options_prep_result=$func_quote_for_eval_result
1575 # }
1576 # func_add_hook func_options_prep my_options_prep
1577 #
1578 #
1579 # my_silent_option ()
1580 # {
1581 # $debug_cmd
1582 #
1583 # # Note that for efficiency, we parse as many options as we can
1584 # # recognise in a loop before passing the remainder back to the
1585 # # caller on the first unrecognised argument we encounter.
1586 # while test $# -gt 0; do
1587 # opt=$1; shift
1588 # case $opt in
1589 # --silent|-s) opt_silent=: ;;
1590 # # Separate non-argument short options:
1591 # -s*) func_split_short_opt "$_G_opt"
1592 # set dummy "$func_split_short_opt_name" \
1593 # "-$func_split_short_opt_arg" ${1+"$@"}
1594 # shift
1595 # ;;
1596 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1597 # esac
1598 # done
1599 #
1600 # func_quote_for_eval ${1+"$@"}
1601 # my_silent_option_result=$func_quote_for_eval_result
1602 # }
1603 # func_add_hook func_parse_options my_silent_option
1604 #
1605 #
1606 # my_option_validation ()
1607 # {
1608 # $debug_cmd
1609 #
1610 # $opt_silent && $opt_verbose && func_fatal_help "\
1611 # '--silent' and '--verbose' options are mutually exclusive."
1612 #
1613 # func_quote_for_eval ${1+"$@"}
1614 # my_option_validation_result=$func_quote_for_eval_result
1615 # }
1616 # func_add_hook func_validate_options my_option_validation
1617 #
1618 # You'll alse need to manually amend $usage_message to reflect the extra
1619 # options you parse. It's preferable to append if you can, so that
1620 # multiple option parsing hooks can be added safely.
1621
1622
1623 # func_options [ARG]...
1624 # ---------------------
1625 # All the functions called inside func_options are hookable. See the
1626 # individual implementations for details.
1627 func_hookable func_options
1628 func_options ()
1629 {
1630 $debug_cmd
1631
1632 func_options_prep ${1+"$@"}
1633 eval func_parse_options \
1634 ${func_options_prep_result+"$func_options_prep_result"}
1635 eval func_validate_options \
1636 ${func_parse_options_result+"$func_parse_options_result"}
1637
1638 eval func_run_hooks func_options \
1639 ${func_validate_options_result+"$func_validate_options_result"}
1640
1641 # save modified positional parameters for caller
1642 func_options_result=$func_run_hooks_result
1643 }
1644
1645
1646 # func_options_prep [ARG]...
1647 # --------------------------
1648 # All initialisations required before starting the option parse loop.
1649 # Note that when calling hook functions, we pass through the list of
1650 # positional parameters. If a hook function modifies that list, and
1651 # needs to propogate that back to rest of this script, then the complete
1652 # modified list must be put in 'func_run_hooks_result' before
1653 # returning.
1654 func_hookable func_options_prep
1655 func_options_prep ()
1656 {
1657 $debug_cmd
1658
1659 # Option defaults:
1660 opt_verbose=false
1661 opt_warning_types=
1662
1663 func_run_hooks func_options_prep ${1+"$@"}
1664
1665 # save modified positional parameters for caller
1666 func_options_prep_result=$func_run_hooks_result
1667 }
1668
1669
1670 # func_parse_options [ARG]...
1671 # ---------------------------
1672 # The main option parsing loop.
1673 func_hookable func_parse_options
1674 func_parse_options ()
1675 {
1676 $debug_cmd
1677
1678 func_parse_options_result=
1679
1680 # this just eases exit handling
1681 while test $# -gt 0; do
1682 # Defer to hook functions for initial option parsing, so they
1683 # get priority in the event of reusing an option name.
1684 func_run_hooks func_parse_options ${1+"$@"}
1685
1686 # Adjust func_parse_options positional parameters to match
1687 eval set dummy "$func_run_hooks_result"; shift
1688
1689 # Break out of the loop if we already parsed every option.
1690 test $# -gt 0 || break
1691
1692 _G_opt=$1
1693 shift
1694 case $_G_opt in
1695 --debug|-x) debug_cmd='set -x'
1696 func_echo "enabling shell trace mode"
1697 $debug_cmd
1698 ;;
1699
1700 --no-warnings|--no-warning|--no-warn)
1701 set dummy --warnings none ${1+"$@"}
1702 shift
1703 ;;
1704
1705 --warnings|--warning|-W)
1706 test $# = 0 && func_missing_arg $_G_opt && break
1707 case " $warning_categories $1" in
1708 *" $1 "*)
1709 # trailing space prevents matching last $1 above
1710 func_append_uniq opt_warning_types " $1"
1711 ;;
1712 *all)
1713 opt_warning_types=$warning_categories
1714 ;;
1715 *none)
1716 opt_warning_types=none
1717 warning_func=:
1718 ;;
1719 *error)
1720 opt_warning_types=$warning_categories
1721 warning_func=func_fatal_error
1722 ;;
1723 *)
1724 func_fatal_error \
1725 "unsupported warning category: '$1'"
1726 ;;
1727 esac
1728 shift
1729 ;;
1730
1731 --verbose|-v) opt_verbose=: ;;
1732 --version) func_version ;;
1733 -\?|-h) func_usage ;;
1734 --help) func_help ;;
1735
1736 # Separate optargs to long options (plugins may need this):
1737 --*=*) func_split_equals "$_G_opt"
1738 set dummy "$func_split_equals_lhs" \
1739 "$func_split_equals_rhs" ${1+"$@"}
1740 shift
1741 ;;
1742
1743 # Separate optargs to short options:
1744 -W*)
1745 func_split_short_opt "$_G_opt"
1746 set dummy "$func_split_short_opt_name" \
1747 "$func_split_short_opt_arg" ${1+"$@"}
1748 shift
1749 ;;
1750
1751 # Separate non-argument short options:
1752 -\?*|-h*|-v*|-x*)
1753 func_split_short_opt "$_G_opt"
1754 set dummy "$func_split_short_opt_name" \
1755 "-$func_split_short_opt_arg" ${1+"$@"}
1756 shift
1757 ;;
1758
1759 --) break ;;
1760 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1761 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1762 esac
1763 done
1764
1765 # save modified positional parameters for caller
1766 func_quote_for_eval ${1+"$@"}
1767 func_parse_options_result=$func_quote_for_eval_result
1768 }
1769
1770
1771 # func_validate_options [ARG]...
1772 # ------------------------------
1773 # Perform any sanity checks on option settings and/or unconsumed
1774 # arguments.
1775 func_hookable func_validate_options
1776 func_validate_options ()
1777 {
1778 $debug_cmd
1779
1780 # Display all warnings if -W was not given.
1781 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1782
1783 func_run_hooks func_validate_options ${1+"$@"}
1784
1785 # Bail if the options were screwed!
1786 $exit_cmd $EXIT_FAILURE
1787
1788 # save modified positional parameters for caller
1789 func_validate_options_result=$func_run_hooks_result
1790 }
1791
1792
1793
1794 ## ----------------- ##
1795 ## Helper functions. ##
1796 ## ----------------- ##
1797
1798 # This section contains the helper functions used by the rest of the
1799 # hookable option parser framework in ascii-betical order.
1800
1801
1802 # func_fatal_help ARG...
1803 # ----------------------
1804 # Echo program name prefixed message to standard error, followed by
1805 # a help hint, and exit.
1806 func_fatal_help ()
1807 {
1808 $debug_cmd
1809
1810 eval \$ECHO \""Usage: $usage"\"
1811 eval \$ECHO \""$fatal_help"\"
1812 func_error ${1+"$@"}
1813 exit $EXIT_FAILURE
1814 }
1815
1816
1817 # func_help
1818 # ---------
1819 # Echo long help message to standard output and exit.
7541820 func_help ()
7551821 {
756 $opt_debug
757
758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760 s/^# //
761 s/^# *$//
762 s*\$progname*'$progname'*
763 s*\$host*'"$host"'*
764 s*\$SHELL*'"$SHELL"'*
765 s*\$LTCC*'"$LTCC"'*
766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767 s*\$LD*'"$LD"'*
768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
771 p
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
781 }
782
783 # func_missing_arg argname
1822 $debug_cmd
1823
1824 func_usage_message
1825 $ECHO "$long_help_message"
1826 exit 0
1827 }
1828
1829
1830 # func_missing_arg ARGNAME
1831 # ------------------------
7841832 # Echo program name prefixed message to standard error and set global
7851833 # exit_cmd.
7861834 func_missing_arg ()
7871835 {
788 $opt_debug
789
790 func_error "missing argument for $1."
1836 $debug_cmd
1837
1838 func_error "Missing argument for '$1'."
7911839 exit_cmd=exit
7921840 }
7931841
7941842
795 # func_split_short_opt shortopt
1843 # func_split_equals STRING
1844 # ------------------------
1845 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1846 # splitting STRING at the '=' sign.
1847 test -z "$_G_HAVE_XSI_OPS" \
1848 && (eval 'x=a/b/c;
1849 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1850 && _G_HAVE_XSI_OPS=yes
1851
1852 if test yes = "$_G_HAVE_XSI_OPS"
1853 then
1854 # This is an XSI compatible shell, allowing a faster implementation...
1855 eval 'func_split_equals ()
1856 {
1857 $debug_cmd
1858
1859 func_split_equals_lhs=${1%%=*}
1860 func_split_equals_rhs=${1#*=}
1861 test "x$func_split_equals_lhs" = "x$1" \
1862 && func_split_equals_rhs=
1863 }'
1864 else
1865 # ...otherwise fall back to using expr, which is often a shell builtin.
1866 func_split_equals ()
1867 {
1868 $debug_cmd
1869
1870 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1871 func_split_equals_rhs=
1872 test "x$func_split_equals_lhs" = "x$1" \
1873 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1874 }
1875 fi #func_split_equals
1876
1877
1878 # func_split_short_opt SHORTOPT
1879 # -----------------------------
7961880 # Set func_split_short_opt_name and func_split_short_opt_arg shell
7971881 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
820 exit_cmd=:
821
822
823
824
825
826 magic="%%%MAGIC variable%%%"
827 magic_exe="%%%MAGIC EXE variable%%%"
828
829 # Global variables.
830 nonopt=
831 preserve_args=
832 lo2o="s/\\.lo\$/.${objext}/"
833 o2lo="s/\\.${objext}\$/.lo/"
834 extracted_archives=
835 extracted_serial=0
836
837 # If this variable is set in any of the actions, the command in it
838 # will be execed at the end. This prevents here-documents from being
839 # left over by shells.
840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
888 # func_fatal_configuration arg...
1882 if test yes = "$_G_HAVE_XSI_OPS"
1883 then
1884 # This is an XSI compatible shell, allowing a faster implementation...
1885 eval 'func_split_short_opt ()
1886 {
1887 $debug_cmd
1888
1889 func_split_short_opt_arg=${1#??}
1890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1891 }'
1892 else
1893 # ...otherwise fall back to using expr, which is often a shell builtin.
1894 func_split_short_opt ()
1895 {
1896 $debug_cmd
1897
1898 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1899 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1900 }
1901 fi #func_split_short_opt
1902
1903
1904 # func_usage
1905 # ----------
1906 # Echo short help message to standard output and exit.
1907 func_usage ()
1908 {
1909 $debug_cmd
1910
1911 func_usage_message
1912 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1913 exit 0
1914 }
1915
1916
1917 # func_usage_message
1918 # ------------------
1919 # Echo short help message to standard output.
1920 func_usage_message ()
1921 {
1922 $debug_cmd
1923
1924 eval \$ECHO \""Usage: $usage"\"
1925 echo
1926 $SED -n 's|^# ||
1927 /^Written by/{
1928 x;p;x
1929 }
1930 h
1931 /^Written by/q' < "$progpath"
1932 echo
1933 eval \$ECHO \""$usage_message"\"
1934 }
1935
1936
1937 # func_version
1938 # ------------
1939 # Echo version message to standard output and exit.
1940 func_version ()
1941 {
1942 $debug_cmd
1943
1944 printf '%s\n' "$progname $scriptversion"
1945 $SED -n '
1946 /(C)/!b go
1947 :more
1948 /\./!{
1949 N
1950 s|\n# | |
1951 b more
1952 }
1953 :go
1954 /^# Written by /,/# warranty; / {
1955 s|^# ||
1956 s|^# *$||
1957 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1958 p
1959 }
1960 /^# Written by / {
1961 s|^# ||
1962 p
1963 }
1964 /^warranty; /q' < "$progpath"
1965
1966 exit $?
1967 }
1968
1969
1970 # Local variables:
1971 # mode: shell-script
1972 # sh-indentation: 2
1973 # eval: (add-hook 'before-save-hook 'time-stamp)
1974 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1975 # time-stamp-time-zone: "UTC"
1976 # End:
1977
1978 # Set a version string.
1979 scriptversion='(GNU libtool) 2.4.6'
1980
1981
1982 # func_echo ARG...
1983 # ----------------
1984 # Libtool also displays the current mode in messages, so override
1985 # funclib.sh func_echo with this custom definition.
1986 func_echo ()
1987 {
1988 $debug_cmd
1989
1990 _G_message=$*
1991
1992 func_echo_IFS=$IFS
1993 IFS=$nl
1994 for _G_line in $_G_message; do
1995 IFS=$func_echo_IFS
1996 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
1997 done
1998 IFS=$func_echo_IFS
1999 }
2000
2001
2002 # func_warning ARG...
2003 # -------------------
2004 # Libtool warnings are not categorized, so override funclib.sh
2005 # func_warning with this simpler definition.
2006 func_warning ()
2007 {
2008 $debug_cmd
2009
2010 $warning_func ${1+"$@"}
2011 }
2012
2013
2014 ## ---------------- ##
2015 ## Options parsing. ##
2016 ## ---------------- ##
2017
2018 # Hook in the functions to make sure our own options are parsed during
2019 # the option parsing loop.
2020
2021 usage='$progpath [OPTION]... [MODE-ARG]...'
2022
2023 # Short help message in response to '-h'.
2024 usage_message="Options:
2025 --config show all configuration variables
2026 --debug enable verbose shell tracing
2027 -n, --dry-run display commands without modifying any files
2028 --features display basic configuration information and exit
2029 --mode=MODE use operation mode MODE
2030 --no-warnings equivalent to '-Wnone'
2031 --preserve-dup-deps don't remove duplicate dependency libraries
2032 --quiet, --silent don't print informational messages
2033 --tag=TAG use configuration variables from tag TAG
2034 -v, --verbose print more informational messages than default
2035 --version print version information
2036 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2037 -h, --help, --help-all print short, long, or detailed help message
2038 "
2039
2040 # Additional text appended to 'usage_message' in response to '--help'.
2041 func_help ()
2042 {
2043 $debug_cmd
2044
2045 func_usage_message
2046 $ECHO "$long_help_message
2047
2048 MODE must be one of the following:
2049
2050 clean remove files from the build directory
2051 compile compile a source file into a libtool object
2052 execute automatically set library path, then run a program
2053 finish complete the installation of libtool libraries
2054 install install libraries or executables
2055 link create a library or an executable
2056 uninstall remove libraries from an installed directory
2057
2058 MODE-ARGS vary depending on the MODE. When passed as first option,
2059 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2060 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2061
2062 When reporting a bug, please describe a test case to reproduce it and
2063 include the following information:
2064
2065 host-triplet: $host
2066 shell: $SHELL
2067 compiler: $LTCC
2068 compiler flags: $LTCFLAGS
2069 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname (GNU libtool) 2.4.6
2071 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2072 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2073
2074 Report bugs to <bug-libtool@gnu.org>.
2075 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2076 General help using GNU software: <http://www.gnu.org/gethelp/>."
2077 exit 0
2078 }
2079
2080
2081 # func_lo2o OBJECT-NAME
2082 # ---------------------
2083 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2084 # object suffix.
2085
2086 lo2o=s/\\.lo\$/.$objext/
2087 o2lo=s/\\.$objext\$/.lo/
2088
2089 if test yes = "$_G_HAVE_XSI_OPS"; then
2090 eval 'func_lo2o ()
2091 {
2092 case $1 in
2093 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2094 * ) func_lo2o_result=$1 ;;
2095 esac
2096 }'
2097
2098 # func_xform LIBOBJ-OR-SOURCE
2099 # ---------------------------
2100 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2101 # suffix to a '.lo' libtool-object suffix.
2102 eval 'func_xform ()
2103 {
2104 func_xform_result=${1%.*}.lo
2105 }'
2106 else
2107 # ...otherwise fall back to using sed.
2108 func_lo2o ()
2109 {
2110 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2111 }
2112
2113 func_xform ()
2114 {
2115 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2116 }
2117 fi
2118
2119
2120 # func_fatal_configuration ARG...
2121 # -------------------------------
8892122 # Echo program name prefixed message to standard error, followed by
8902123 # a configuration failure hint, and exit.
8912124 func_fatal_configuration ()
8922125 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
2126 func__fatal_error ${1+"$@"} \
2127 "See the $PACKAGE documentation for more information." \
2128 "Fatal configuration error."
8962129 }
8972130
8982131
8992132 # func_config
2133 # -----------
9002134 # Display the configuration for all the tags in this script.
9012135 func_config ()
9022136 {
9142148 exit $?
9152149 }
9162150
2151
9172152 # func_features
2153 # -------------
9182154 # Display the features supported by this script.
9192155 func_features ()
9202156 {
9212157 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
2158 if test yes = "$build_libtool_libs"; then
9232159 echo "enable shared libraries"
9242160 else
9252161 echo "disable shared libraries"
9262162 fi
927 if test "$build_old_libs" = yes; then
2163 if test yes = "$build_old_libs"; then
9282164 echo "enable static libraries"
9292165 else
9302166 echo "disable static libraries"
9332169 exit $?
9342170 }
9352171
936 # func_enable_tag tagname
2172
2173 # func_enable_tag TAGNAME
2174 # -----------------------
9372175 # Verify that TAGNAME is valid, and either flag an error and exit, or
9382176 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
9392177 # variable here.
9402178 func_enable_tag ()
9412179 {
942 # Global variable:
943 tagname="$1"
944
945 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
946 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
947 sed_extractcf="/$re_begincf/,/$re_endcf/p"
948
949 # Validate tagname.
950 case $tagname in
951 *[!-_A-Za-z0-9,/]*)
952 func_fatal_error "invalid tag name: $tagname"
953 ;;
954 esac
955
956 # Don't test for the "default" C tag, as we know it's
957 # there but not specially marked.
958 case $tagname in
959 CC) ;;
2180 # Global variable:
2181 tagname=$1
2182
2183 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2184 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2185 sed_extractcf=/$re_begincf/,/$re_endcf/p
2186
2187 # Validate tagname.
2188 case $tagname in
2189 *[!-_A-Za-z0-9,/]*)
2190 func_fatal_error "invalid tag name: $tagname"
2191 ;;
2192 esac
2193
2194 # Don't test for the "default" C tag, as we know it's
2195 # there but not specially marked.
2196 case $tagname in
2197 CC) ;;
9602198 *)
961 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
962 taglist="$taglist $tagname"
963
964 # Evaluate the configuration. Be careful to quote the path
965 # and the sed script, to avoid splitting on whitespace, but
966 # also don't use non-portable quotes within backquotes within
967 # quotes we have to do it in 2 steps:
968 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
969 eval "$extractedcf"
970 else
971 func_error "ignoring unknown tag $tagname"
972 fi
973 ;;
974 esac
975 }
2199 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2200 taglist="$taglist $tagname"
2201
2202 # Evaluate the configuration. Be careful to quote the path
2203 # and the sed script, to avoid splitting on whitespace, but
2204 # also don't use non-portable quotes within backquotes within
2205 # quotes we have to do it in 2 steps:
2206 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2207 eval "$extractedcf"
2208 else
2209 func_error "ignoring unknown tag $tagname"
2210 fi
2211 ;;
2212 esac
2213 }
2214
9762215
9772216 # func_check_version_match
2217 # ------------------------
9782218 # Ensure that we are using m4 macros, and libtool script from the same
9792219 # release of libtool.
9802220 func_check_version_match ()
9812221 {
982 if test "$package_revision" != "$macro_revision"; then
983 if test "$VERSION" != "$macro_version"; then
984 if test -z "$macro_version"; then
985 cat >&2 <<_LT_EOF
2222 if test "$package_revision" != "$macro_revision"; then
2223 if test "$VERSION" != "$macro_version"; then
2224 if test -z "$macro_version"; then
2225 cat >&2 <<_LT_EOF
9862226 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9872227 $progname: definition of this LT_INIT comes from an older release.
9882228 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9892229 $progname: and run autoconf again.
9902230 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
2231 else
2232 cat >&2 <<_LT_EOF
9932233 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9942234 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
9952235 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9962236 $progname: and run autoconf again.
9972237 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
2238 fi
2239 else
2240 cat >&2 <<_LT_EOF
10012241 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
10022242 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
10032243 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
10042244 $progname: of $PACKAGE $VERSION and run autoconf again.
10052245 _LT_EOF
2246 fi
2247
2248 exit $EXIT_MISMATCH
10062249 fi
1007
1008 exit $EXIT_MISMATCH
1009 fi
1010 }
1011
1012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
2250 }
2251
2252
2253 # libtool_options_prep [ARG]...
2254 # -----------------------------
2255 # Preparation for options parsed by libtool.
2256 libtool_options_prep ()
2257 {
2258 $debug_mode
2259
2260 # Option defaults:
2261 opt_config=false
2262 opt_dlopen=
2263 opt_dry_run=false
2264 opt_help=false
2265 opt_mode=
2266 opt_preserve_dup_deps=false
2267 opt_quiet=false
2268
2269 nonopt=
2270 preserve_args=
2271
2272 # Shorthand for --mode=foo, only valid as the first argument
2273 case $1 in
2274 clean|clea|cle|cl)
2275 shift; set dummy --mode clean ${1+"$@"}; shift
2276 ;;
2277 compile|compil|compi|comp|com|co|c)
2278 shift; set dummy --mode compile ${1+"$@"}; shift
2279 ;;
2280 execute|execut|execu|exec|exe|ex|e)
2281 shift; set dummy --mode execute ${1+"$@"}; shift
2282 ;;
2283 finish|finis|fini|fin|fi|f)
2284 shift; set dummy --mode finish ${1+"$@"}; shift
2285 ;;
2286 install|instal|insta|inst|ins|in|i)
2287 shift; set dummy --mode install ${1+"$@"}; shift
2288 ;;
2289 link|lin|li|l)
2290 shift; set dummy --mode link ${1+"$@"}; shift
2291 ;;
2292 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2293 shift; set dummy --mode uninstall ${1+"$@"}; shift
2294 ;;
11672295 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
2296
2297 # Pass back the list of options.
2298 func_quote_for_eval ${1+"$@"}
2299 libtool_options_prep_result=$func_quote_for_eval_result
2300 }
2301 func_add_hook func_options_prep libtool_options_prep
2302
2303
2304 # libtool_parse_options [ARG]...
2305 # ---------------------------------
2306 # Provide handling for libtool specific options.
2307 libtool_parse_options ()
2308 {
2309 $debug_cmd
2310
2311 # Perform our own loop to consume as many options as possible in
2312 # each iteration.
2313 while test $# -gt 0; do
2314 _G_opt=$1
2315 shift
2316 case $_G_opt in
2317 --dry-run|--dryrun|-n)
2318 opt_dry_run=:
2319 ;;
2320
2321 --config) func_config ;;
2322
2323 --dlopen|-dlopen)
2324 opt_dlopen="${opt_dlopen+$opt_dlopen
2325 }$1"
2326 shift
2327 ;;
2328
2329 --preserve-dup-deps)
2330 opt_preserve_dup_deps=: ;;
2331
2332 --features) func_features ;;
2333
2334 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2335
2336 --help) opt_help=: ;;
2337
2338 --help-all) opt_help=': help-all' ;;
2339
2340 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2341 opt_mode=$1
2342 case $1 in
2343 # Valid mode arguments:
2344 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2345
2346 # Catch anything else as an error
2347 *) func_error "invalid argument for $_G_opt"
2348 exit_cmd=exit
2349 break
2350 ;;
2351 esac
2352 shift
2353 ;;
2354
2355 --no-silent|--no-quiet)
2356 opt_quiet=false
2357 func_append preserve_args " $_G_opt"
2358 ;;
2359
2360 --no-warnings|--no-warning|--no-warn)
2361 opt_warning=false
2362 func_append preserve_args " $_G_opt"
2363 ;;
2364
2365 --no-verbose)
2366 opt_verbose=false
2367 func_append preserve_args " $_G_opt"
2368 ;;
2369
2370 --silent|--quiet)
2371 opt_quiet=:
2372 opt_verbose=false
2373 func_append preserve_args " $_G_opt"
2374 ;;
2375
2376 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2377 opt_tag=$1
2378 func_append preserve_args " $_G_opt $1"
2379 func_enable_tag "$1"
2380 shift
2381 ;;
2382
2383 --verbose|-v) opt_quiet=false
2384 opt_verbose=:
2385 func_append preserve_args " $_G_opt"
2386 ;;
2387
2388 # An option not handled by this hook function:
2389 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2390 esac
2391 done
2392
2393
2394 # save modified positional parameters for caller
2395 func_quote_for_eval ${1+"$@"}
2396 libtool_parse_options_result=$func_quote_for_eval_result
2397 }
2398 func_add_hook func_parse_options libtool_parse_options
2399
2400
2401
2402 # libtool_validate_options [ARG]...
2403 # ---------------------------------
2404 # Perform any sanity checks on option settings and/or unconsumed
2405 # arguments.
2406 libtool_validate_options ()
2407 {
2408 # save first non-option argument
2409 if test 0 -lt $#; then
2410 nonopt=$1
2411 shift
11972412 fi
11982413
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
2414 # preserve --debug
2415 test : = "$debug_cmd" || func_append preserve_args " --debug"
2416
2417 case $host in
2418 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2419 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2420 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2421 # don't eliminate duplications in $postdeps and $predeps
2422 opt_duplicate_compiler_generated_deps=:
2423 ;;
2424 *)
2425 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2426 ;;
2427 esac
2428
2429 $opt_help || {
2430 # Sanity checks first:
2431 func_check_version_match
2432
2433 test yes != "$build_libtool_libs" \
2434 && test yes != "$build_old_libs" \
2435 && func_fatal_configuration "not configured to build any kind of library"
2436
2437 # Darwin sucks
2438 eval std_shrext=\"$shrext_cmds\"
2439
2440 # Only execute mode is allowed to have -dlopen flags.
2441 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2442 func_error "unrecognized option '-dlopen'"
2443 $ECHO "$help" 1>&2
2444 exit $EXIT_FAILURE
2445 fi
2446
2447 # Change the help message to a mode-specific one.
2448 generic_help=$help
2449 help="Try '$progname --help --mode=$opt_mode' for more information."
2450 }
2451
2452 # Pass back the unparsed argument list
2453 func_quote_for_eval ${1+"$@"}
2454 libtool_validate_options_result=$func_quote_for_eval_result
2455 }
2456 func_add_hook func_validate_options libtool_validate_options
2457
2458
2459 # Process options as early as possible so that --help and --version
2460 # can return quickly.
2461 func_options ${1+"$@"}
2462 eval set dummy "$func_options_result"; shift
12192463
12202464
12212465
12232467 ## Main. ##
12242468 ## ----------- ##
12252469
2470 magic='%%%MAGIC variable%%%'
2471 magic_exe='%%%MAGIC EXE variable%%%'
2472
2473 # Global variables.
2474 extracted_archives=
2475 extracted_serial=0
2476
2477 # If this variable is set in any of the actions, the command in it
2478 # will be execed at the end. This prevents here-documents from being
2479 # left over by shells.
2480 exec_cmd=
2481
2482
2483 # A function that is used when there is no print builtin or printf.
2484 func_fallback_echo ()
2485 {
2486 eval 'cat <<_LTECHO_EOF
2487 $1
2488 _LTECHO_EOF'
2489 }
2490
2491 # func_generated_by_libtool
2492 # True iff stdin has been generated by Libtool. This function is only
2493 # a basic sanity check; it will hardly flush out determined imposters.
2494 func_generated_by_libtool_p ()
2495 {
2496 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2497 }
2498
12262499 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
2500 # True iff FILE is a libtool '.la' library or '.lo' object file.
12282501 # This function is only a basic sanity check; it will hardly flush out
12292502 # determined imposters.
12302503 func_lalib_p ()
12312504 {
12322505 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2506 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
12352507 }
12362508
12372509 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
2510 # True iff FILE is a libtool '.la' library or '.lo' object file.
12392511 # This function implements the same check as func_lalib_p without
12402512 # resorting to external programs. To this end, it redirects stdin and
12412513 # closes it afterwards, without saving the original file descriptor.
12422514 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
2515 # fatal anyway. Works if 'file' does not exist.
12442516 func_lalib_unsafe_p ()
12452517 {
12462518 lalib_p=no
12482520 for lalib_p_l in 1 2 3 4
12492521 do
12502522 read lalib_p_line
1251 case "$lalib_p_line" in
2523 case $lalib_p_line in
12522524 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
12532525 esac
12542526 done
12552527 exec 0<&5 5<&-
12562528 fi
1257 test "$lalib_p" = yes
2529 test yes = "$lalib_p"
12582530 }
12592531
12602532 # func_ltwrapper_script_p file
12632535 # determined imposters.
12642536 func_ltwrapper_script_p ()
12652537 {
1266 func_lalib_p "$1"
2538 test -f "$1" &&
2539 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
12672540 }
12682541
12692542 # func_ltwrapper_executable_p file
12882561 {
12892562 func_dirname_and_basename "$1" "" "."
12902563 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
2564 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
12922565 }
12932566
12942567 # func_ltwrapper_p file
13072580 # FAIL_CMD may read-access the current command in variable CMD!
13082581 func_execute_cmds ()
13092582 {
1310 $opt_debug
2583 $debug_cmd
2584
13112585 save_ifs=$IFS; IFS='~'
13122586 for cmd in $1; do
2587 IFS=$sp$nl
2588 eval cmd=\"$cmd\"
13132589 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
13152590 func_show_eval "$cmd" "${2-:}"
13162591 done
13172592 IFS=$save_ifs
13232598 # Note that it is not necessary on cygwin/mingw to append a dot to
13242599 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
13252600 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
2601 # 'FILE.' does not work on cygwin managed mounts.
13272602 func_source ()
13282603 {
1329 $opt_debug
2604 $debug_cmd
2605
13302606 case $1 in
13312607 */* | *\\*) . "$1" ;;
13322608 *) . "./$1" ;;
13532629 # store the result into func_replace_sysroot_result.
13542630 func_replace_sysroot ()
13552631 {
1356 case "$lt_sysroot:$1" in
2632 case $lt_sysroot:$1 in
13572633 ?*:"$lt_sysroot"*)
13582634 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
2635 func_replace_sysroot_result='='$func_stripname_result
13602636 ;;
13612637 *)
13622638 # Including no sysroot.
13732649 # arg is usually of the form 'gcc ...'
13742650 func_infer_tag ()
13752651 {
1376 $opt_debug
2652 $debug_cmd
2653
13772654 if test -n "$available_tags" && test -z "$tagname"; then
13782655 CC_quoted=
13792656 for arg in $CC; do
13922669 for z in $available_tags; do
13932670 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
13942671 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2672 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
13962673 CC_quoted=
13972674 for arg in $CC; do
13982675 # Double-quote args containing other shell metacharacters.
14172694 # line option must be used.
14182695 if test -z "$tagname"; then
14192696 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
2697 func_fatal_error "specify a tag with '--tag'"
14212698 # else
14222699 # func_verbose "using $tagname tagged configuration"
14232700 fi
14332710 # but don't create it if we're doing a dry run.
14342711 func_write_libtool_object ()
14352712 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
2713 write_libobj=$1
2714 if test yes = "$build_libtool_libs"; then
2715 write_lobj=\'$2\'
14392716 else
14402717 write_lobj=none
14412718 fi
14422719
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
2720 if test yes = "$build_old_libs"; then
2721 write_oldobj=\'$3\'
14452722 else
14462723 write_oldobj=none
14472724 fi
14492726 $opt_dry_run || {
14502727 cat >${write_libobj}T <<EOF
14512728 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2729 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
14532730 #
14542731 # Please DO NOT delete this file!
14552732 # It is necessary for linking the library.
14612738 non_pic_object=$write_oldobj
14622739
14632740 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
2741 $MV "${write_libobj}T" "$write_libobj"
14652742 }
14662743 }
14672744
14812758 # be empty on error (or when ARG is empty)
14822759 func_convert_core_file_wine_to_w32 ()
14832760 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
2761 $debug_cmd
2762
2763 func_convert_core_file_wine_to_w32_result=$1
14862764 if test -n "$1"; then
14872765 # Unfortunately, winepath does not exit with a non-zero error code, so we
14882766 # are forced to check the contents of stdout. On the other hand, if the
14902768 # *an error message* to stdout. So we must check for both error code of
14912769 # zero AND non-empty stdout, which explains the odd construction:
14922770 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
2771 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
14942772 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
2773 $SED -e "$sed_naive_backslashify"`
14962774 else
14972775 func_convert_core_file_wine_to_w32_result=
14982776 fi
15132791 # are convertible, then the result may be empty.
15142792 func_convert_core_path_wine_to_w32 ()
15152793 {
1516 $opt_debug
2794 $debug_cmd
2795
15172796 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
2797 func_convert_core_path_wine_to_w32_result=
15192798 if test -n "$1"; then
15202799 oldIFS=$IFS
15212800 IFS=:
15222801 for func_convert_core_path_wine_to_w32_f in $1; do
15232802 IFS=$oldIFS
15242803 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
2804 if test -n "$func_convert_core_file_wine_to_w32_result"; then
15262805 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
2806 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
15282807 else
15292808 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15302809 fi
15532832 # environment variable; do not put it in $PATH.
15542833 func_cygpath ()
15552834 {
1556 $opt_debug
2835 $debug_cmd
2836
15572837 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15582838 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15592839 if test "$?" -ne 0; then
15622842 fi
15632843 else
15642844 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
2845 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
15662846 fi
15672847 }
15682848 #end: func_cygpath
15732853 # result in func_convert_core_msys_to_w32_result.
15742854 func_convert_core_msys_to_w32 ()
15752855 {
1576 $opt_debug
2856 $debug_cmd
2857
15772858 # awkward: cmd appends spaces to result
15782859 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2860 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
15802861 }
15812862 #end: func_convert_core_msys_to_w32
15822863
15872868 # func_to_host_file_result to ARG1).
15882869 func_convert_file_check ()
15892870 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
2871 $debug_cmd
2872
2873 if test -z "$2" && test -n "$1"; then
15922874 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
2875 func_error " '$1'"
15942876 func_error "Continuing, but uninstalled executables may not work."
15952877 # Fallback:
1596 func_to_host_file_result="$1"
2878 func_to_host_file_result=$1
15972879 fi
15982880 }
15992881 # end func_convert_file_check
16052887 # func_to_host_file_result to a simplistic fallback value (see below).
16062888 func_convert_path_check ()
16072889 {
1608 $opt_debug
2890 $debug_cmd
2891
16092892 if test -z "$4" && test -n "$3"; then
16102893 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
2894 func_error " '$3'"
16122895 func_error "Continuing, but uninstalled executables may not work."
16132896 # Fallback. This is a deliberately simplistic "conversion" and
16142897 # should not be "improved". See libtool.info.
16172900 func_to_host_path_result=`echo "$3" |
16182901 $SED -e "$lt_replace_pathsep_chars"`
16192902 else
1620 func_to_host_path_result="$3"
2903 func_to_host_path_result=$3
16212904 fi
16222905 fi
16232906 }
16292912 # and appending REPL if ORIG matches BACKPAT.
16302913 func_convert_path_front_back_pathsep ()
16312914 {
1632 $opt_debug
2915 $debug_cmd
2916
16332917 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
2918 $1 ) func_to_host_path_result=$3$func_to_host_path_result
16352919 ;;
16362920 esac
16372921 case $4 in
16452929 ##################################################
16462930 # $build to $host FILE NAME CONVERSION FUNCTIONS #
16472931 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
2932 # invoked via '$to_host_file_cmd ARG'
16492933 #
16502934 # In each case, ARG is the path to be converted from $build to $host format.
16512935 # Result will be available in $func_to_host_file_result.
16562940 # in func_to_host_file_result.
16572941 func_to_host_file ()
16582942 {
1659 $opt_debug
2943 $debug_cmd
2944
16602945 $to_host_file_cmd "$1"
16612946 }
16622947 # end func_to_host_file
16682953 # in (the comma separated) LAZY, no conversion takes place.
16692954 func_to_tool_file ()
16702955 {
1671 $opt_debug
2956 $debug_cmd
2957
16722958 case ,$2, in
16732959 *,"$to_tool_file_cmd",*)
16742960 func_to_tool_file_result=$1
16862972 # Copy ARG to func_to_host_file_result.
16872973 func_convert_file_noop ()
16882974 {
1689 func_to_host_file_result="$1"
2975 func_to_host_file_result=$1
16902976 }
16912977 # end func_convert_file_noop
16922978
16972983 # func_to_host_file_result.
16982984 func_convert_file_msys_to_w32 ()
16992985 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
2986 $debug_cmd
2987
2988 func_to_host_file_result=$1
17022989 if test -n "$1"; then
17032990 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
2991 func_to_host_file_result=$func_convert_core_msys_to_w32_result
17052992 fi
17062993 func_convert_file_check "$1" "$func_to_host_file_result"
17072994 }
17133000 # func_to_host_file_result.
17143001 func_convert_file_cygwin_to_w32 ()
17153002 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
3003 $debug_cmd
3004
3005 func_to_host_file_result=$1
17183006 if test -n "$1"; then
17193007 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
17203008 # LT_CYGPATH in this case.
17303018 # and a working winepath. Returns result in func_to_host_file_result.
17313019 func_convert_file_nix_to_w32 ()
17323020 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
3021 $debug_cmd
3022
3023 func_to_host_file_result=$1
17353024 if test -n "$1"; then
17363025 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
3026 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
17383027 fi
17393028 func_convert_file_check "$1" "$func_to_host_file_result"
17403029 }
17463035 # Returns result in func_to_host_file_result.
17473036 func_convert_file_msys_to_cygwin ()
17483037 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
3038 $debug_cmd
3039
3040 func_to_host_file_result=$1
17513041 if test -n "$1"; then
17523042 func_convert_core_msys_to_w32 "$1"
17533043 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
3044 func_to_host_file_result=$func_cygpath_result
17553045 fi
17563046 func_convert_file_check "$1" "$func_to_host_file_result"
17573047 }
17643054 # in func_to_host_file_result.
17653055 func_convert_file_nix_to_cygwin ()
17663056 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
3057 $debug_cmd
3058
3059 func_to_host_file_result=$1
17693060 if test -n "$1"; then
17703061 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
17713062 func_convert_core_file_wine_to_w32 "$1"
17723063 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
3064 func_to_host_file_result=$func_cygpath_result
17743065 fi
17753066 func_convert_file_check "$1" "$func_to_host_file_result"
17763067 }
17803071 #############################################
17813072 # $build to $host PATH CONVERSION FUNCTIONS #
17823073 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
3074 # invoked via '$to_host_path_cmd ARG'
17843075 #
17853076 # In each case, ARG is the path to be converted from $build to $host format.
17863077 # The result will be available in $func_to_host_path_result.
18043095 to_host_path_cmd=
18053096 func_init_to_host_path_cmd ()
18063097 {
1807 $opt_debug
3098 $debug_cmd
3099
18083100 if test -z "$to_host_path_cmd"; then
18093101 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
3102 to_host_path_cmd=func_convert_path_$func_stripname_result
18113103 fi
18123104 }
18133105
18173109 # in func_to_host_path_result.
18183110 func_to_host_path ()
18193111 {
1820 $opt_debug
3112 $debug_cmd
3113
18213114 func_init_to_host_path_cmd
18223115 $to_host_path_cmd "$1"
18233116 }
18283121 # Copy ARG to func_to_host_path_result.
18293122 func_convert_path_noop ()
18303123 {
1831 func_to_host_path_result="$1"
3124 func_to_host_path_result=$1
18323125 }
18333126 # end func_convert_path_noop
18343127
18393132 # func_to_host_path_result.
18403133 func_convert_path_msys_to_w32 ()
18413134 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
3135 $debug_cmd
3136
3137 func_to_host_path_result=$1
18443138 if test -n "$1"; then
18453139 # Remove leading and trailing path separator characters from ARG. MSYS
18463140 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
18483142 func_stripname : : "$1"
18493143 func_to_host_path_tmp1=$func_stripname_result
18503144 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
3145 func_to_host_path_result=$func_convert_core_msys_to_w32_result
18523146 func_convert_path_check : ";" \
18533147 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18543148 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
18623156 # func_to_host_file_result.
18633157 func_convert_path_cygwin_to_w32 ()
18643158 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
3159 $debug_cmd
3160
3161 func_to_host_path_result=$1
18673162 if test -n "$1"; then
18683163 # See func_convert_path_msys_to_w32:
18693164 func_stripname : : "$1"
18823177 # a working winepath. Returns result in func_to_host_file_result.
18833178 func_convert_path_nix_to_w32 ()
18843179 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
3180 $debug_cmd
3181
3182 func_to_host_path_result=$1
18873183 if test -n "$1"; then
18883184 # See func_convert_path_msys_to_w32:
18893185 func_stripname : : "$1"
18903186 func_to_host_path_tmp1=$func_stripname_result
18913187 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
3188 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
18933189 func_convert_path_check : ";" \
18943190 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18953191 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
19033199 # Returns result in func_to_host_file_result.
19043200 func_convert_path_msys_to_cygwin ()
19053201 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
3202 $debug_cmd
3203
3204 func_to_host_path_result=$1
19083205 if test -n "$1"; then
19093206 # See func_convert_path_msys_to_w32:
19103207 func_stripname : : "$1"
19113208 func_to_host_path_tmp1=$func_stripname_result
19123209 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
19133210 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
3211 func_to_host_path_result=$func_cygpath_result
19153212 func_convert_path_check : : \
19163213 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19173214 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19263223 # func_to_host_file_result.
19273224 func_convert_path_nix_to_cygwin ()
19283225 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
3226 $debug_cmd
3227
3228 func_to_host_path_result=$1
19313229 if test -n "$1"; then
19323230 # Remove leading and trailing path separator characters from
19333231 # ARG. msys behavior is inconsistent here, cygpath turns them
19363234 func_to_host_path_tmp1=$func_stripname_result
19373235 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
19383236 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
3237 func_to_host_path_result=$func_cygpath_result
19403238 func_convert_path_check : : \
19413239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19423240 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19453243 # end func_convert_path_nix_to_cygwin
19463244
19473245
3246 # func_dll_def_p FILE
3247 # True iff FILE is a Windows DLL '.def' file.
3248 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3249 func_dll_def_p ()
3250 {
3251 $debug_cmd
3252
3253 func_dll_def_p_tmp=`$SED -n \
3254 -e 's/^[ ]*//' \
3255 -e '/^\(;.*\)*$/d' \
3256 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3257 -e q \
3258 "$1"`
3259 test DEF = "$func_dll_def_p_tmp"
3260 }
3261
3262
19483263 # func_mode_compile arg...
19493264 func_mode_compile ()
19503265 {
1951 $opt_debug
3266 $debug_cmd
3267
19523268 # Get the compilation command and the source file.
19533269 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
3270 srcfile=$nonopt # always keep a non-empty value in "srcfile"
19553271 suppress_opt=yes
19563272 suppress_output=
19573273 arg_mode=normal
19643280 case $arg_mode in
19653281 arg )
19663282 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
3283 lastarg=$arg
19683284 arg_mode=normal
19693285 ;;
19703286
19713287 target )
1972 libobj="$arg"
3288 libobj=$arg
19733289 arg_mode=normal
19743290 continue
19753291 ;;
19793295 case $arg in
19803296 -o)
19813297 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
3298 func_fatal_error "you cannot specify '-o' more than once"
19833299 arg_mode=target
19843300 continue
19853301 ;;
20083324 func_stripname '-Wc,' '' "$arg"
20093325 args=$func_stripname_result
20103326 lastarg=
2011 save_ifs="$IFS"; IFS=','
3327 save_ifs=$IFS; IFS=,
20123328 for arg in $args; do
2013 IFS="$save_ifs"
3329 IFS=$save_ifs
20143330 func_append_quoted lastarg "$arg"
20153331 done
2016 IFS="$save_ifs"
3332 IFS=$save_ifs
20173333 func_stripname ' ' '' "$lastarg"
20183334 lastarg=$func_stripname_result
20193335
20263342 # Accept the current argument as the source file.
20273343 # The previous "srcfile" becomes the current argument.
20283344 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
3345 lastarg=$srcfile
3346 srcfile=$arg
20313347 ;;
20323348 esac # case $arg
20333349 ;;
20423358 func_fatal_error "you must specify an argument for -Xcompile"
20433359 ;;
20443360 target)
2045 func_fatal_error "you must specify a target with \`-o'"
3361 func_fatal_error "you must specify a target with '-o'"
20463362 ;;
20473363 *)
20483364 # Get the name of the library object.
20493365 test -z "$libobj" && {
20503366 func_basename "$srcfile"
2051 libobj="$func_basename_result"
3367 libobj=$func_basename_result
20523368 }
20533369 ;;
20543370 esac
20683384 case $libobj in
20693385 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
20703386 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
3387 func_fatal_error "cannot determine name of library object from '$libobj'"
20723388 ;;
20733389 esac
20743390
20773393 for arg in $later; do
20783394 case $arg in
20793395 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
3396 test yes = "$build_libtool_libs" \
3397 || func_fatal_configuration "cannot build a shared library"
20823398 build_old_libs=no
20833399 continue
20843400 ;;
21043420 func_quote_for_eval "$libobj"
21053421 test "X$libobj" != "X$func_quote_for_eval_result" \
21063422 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
3423 && func_warning "libobj name '$libobj' may not contain shell special characters."
21083424 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
3425 objname=$func_basename_result
3426 xdir=$func_dirname_result
3427 lobj=$xdir$objdir/$objname
21123428
21133429 test -z "$base_compile" && \
21143430 func_fatal_help "you must specify a compilation command"
21153431
21163432 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
3433 if test yes = "$build_old_libs"; then
21183434 removelist="$obj $lobj $libobj ${libobj}T"
21193435 else
21203436 removelist="$lobj $libobj ${libobj}T"
21263442 pic_mode=default
21273443 ;;
21283444 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
3445 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
21303446 # non-PIC code in shared libraries is not supported
21313447 pic_mode=default
21323448 fi
21333449
21343450 # Calculate the filename of the output object if compiler does
21353451 # not support -o with -c
2136 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2138 lockfile="$output_obj.lock"
3452 if test no = "$compiler_c_o"; then
3453 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3454 lockfile=$output_obj.lock
21393455 else
21403456 output_obj=
21413457 need_locks=no
21443460
21453461 # Lock this critical section if it is needed
21463462 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
3463 if test yes = "$need_locks"; then
21483464 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
21493465 func_echo "Waiting for $lockfile to be removed"
21503466 sleep 2
21513467 done
2152 elif test "$need_locks" = warn; then
3468 elif test warn = "$need_locks"; then
21533469 if test -f "$lockfile"; then
21543470 $ECHO "\
21553471 *** ERROR, $lockfile exists and contains:
21573473
21583474 This indicates that another process is trying to use the same
21593475 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
3476 your compiler does not support '-c' and '-o' together. If you
21613477 repeat this compilation, it may succeed, by chance, but you had better
21623478 avoid parallel builds (make -j) in this platform, or get a better
21633479 compiler."
21793495 qsrcfile=$func_quote_for_eval_result
21803496
21813497 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
3498 if test yes = "$build_libtool_libs"; then
21833499 # Without this assignment, base_compile gets emptied.
21843500 fbsd_hideous_sh_bug=$base_compile
21853501
2186 if test "$pic_mode" != no; then
3502 if test no != "$pic_mode"; then
21873503 command="$base_compile $qsrcfile $pic_flag"
21883504 else
21893505 # Don't build PIC code
22003516 func_show_eval_locale "$command" \
22013517 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
22023518
2203 if test "$need_locks" = warn &&
3519 if test warn = "$need_locks" &&
22043520 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22053521 $ECHO "\
22063522 *** ERROR, $lockfile contains:
22113527
22123528 This indicates that another process is trying to use the same
22133529 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
3530 your compiler does not support '-c' and '-o' together. If you
22153531 repeat this compilation, it may succeed, by chance, but you had better
22163532 avoid parallel builds (make -j) in this platform, or get a better
22173533 compiler."
22273543 fi
22283544
22293545 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
3546 if test yes = "$suppress_opt"; then
22313547 suppress_output=' >/dev/null 2>&1'
22323548 fi
22333549 fi
22343550
22353551 # Only build a position-dependent object if we build old libraries.
2236 if test "$build_old_libs" = yes; then
2237 if test "$pic_mode" != yes; then
3552 if test yes = "$build_old_libs"; then
3553 if test yes != "$pic_mode"; then
22383554 # Don't build PIC code
22393555 command="$base_compile $qsrcfile$pie_flag"
22403556 else
22413557 command="$base_compile $qsrcfile $pic_flag"
22423558 fi
2243 if test "$compiler_c_o" = yes; then
3559 if test yes = "$compiler_c_o"; then
22443560 func_append command " -o $obj"
22453561 fi
22463562
22493565 func_show_eval_locale "$command" \
22503566 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22513567
2252 if test "$need_locks" = warn &&
3568 if test warn = "$need_locks" &&
22533569 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22543570 $ECHO "\
22553571 *** ERROR, $lockfile contains:
22603576
22613577 This indicates that another process is trying to use the same
22623578 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
3579 your compiler does not support '-c' and '-o' together. If you
22643580 repeat this compilation, it may succeed, by chance, but you had better
22653581 avoid parallel builds (make -j) in this platform, or get a better
22663582 compiler."
22803596 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
22813597
22823598 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
3599 if test no != "$need_locks"; then
22843600 removelist=$lockfile
22853601 $RM "$lockfile"
22863602 fi
22903606 }
22913607
22923608 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
3609 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
22943610 }
22953611
22963612 func_mode_help ()
23103626 Remove files from the build directory.
23113627
23123628 RM is the name of the program to use to delete files associated with each FILE
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3629 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
23143630 to RM.
23153631
23163632 If FILE is a libtool library, object or program, all the files associated
23293645 -no-suppress do not suppress compiler output for multiple passes
23303646 -prefer-pic try to build PIC objects only
23313647 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
3648 -shared do not build a '.o' file suitable for static linking
3649 -static only build a '.o' file suitable for static linking
23343650 -Wc,FLAG pass FLAG directly to the compiler
23353651
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3652 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
23373653 from the given SOURCEFILE.
23383654
23393655 The output file name is determined by removing the directory component from
2340 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2341 library object suffix, \`.lo'."
3656 SOURCEFILE, then substituting the C source code suffix '.c' with the
3657 library object suffix, '.lo'."
23423658 ;;
23433659
23443660 execute)
23513667
23523668 -dlopen FILE add the directory containing FILE to the library path
23533669
2354 This mode sets the library path environment variable according to \`-dlopen'
3670 This mode sets the library path environment variable according to '-dlopen'
23553671 flags.
23563672
23573673 If any of the ARGS are libtool executable wrappers, then they are translated
23703686 Each LIBDIR is a directory that contains libtool libraries.
23713687
23723688 The commands that this mode executes may require superuser privileges. Use
2373 the \`--dry-run' option if you just want to see what would be executed."
3689 the '--dry-run' option if you just want to see what would be executed."
23743690 ;;
23753691
23763692 install)
23803696 Install executables or libraries.
23813697
23823698 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
3699 either the 'install' or 'cp' program.
23843700
23853701 The following components of INSTALL-COMMAND are treated specially:
23863702
24063722 -avoid-version do not add a version suffix if possible
24073723 -bindir BINDIR specify path to binaries directory (for systems where
24083724 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3725 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
24103726 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24113727 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24123728 -export-symbols SYMFILE
24203736 -no-install link a not-installable executable
24213737 -no-undefined declare that a library does not refer to external symbols
24223738 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
3739 -objectlist FILE use a list of object files found in FILE to specify objects
3740 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
24243741 -precious-files-regex REGEX
24253742 don't remove output files matching REGEX
24263743 -release RELEASE specify package release information
24403757 -Xlinker FLAG pass linker-specific FLAG directly to the linker
24413758 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
24423759
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
3760 All other options (arguments beginning with '-') are ignored.
3761
3762 Every other argument is treated as a filename. Files ending in '.la' are
24463763 treated as uninstalled libtool libraries, other files are standard or library
24473764 object files.
24483765
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
3766 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3767 only library objects ('.lo' files) may be specified, and '-rpath' is
24513768 required, except when creating a convenience library.
24523769
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2454 using \`ar' and \`ranlib', or on Windows using \`lib'.
2455
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
3770 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3771 using 'ar' and 'ranlib', or on Windows using 'lib'.
3772
3773 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
24573774 is created, otherwise an executable program is created."
24583775 ;;
24593776
24643781 Remove libraries from an installation directory.
24653782
24663783 RM is the name of the program to use to delete files associated with each FILE
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3784 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
24683785 to RM.
24693786
24703787 If FILE is a libtool library, all the files associated with it are deleted.
24723789 ;;
24733790
24743791 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
3792 func_fatal_help "invalid operation mode '$opt_mode'"
24763793 ;;
24773794 esac
24783795
24793796 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
3797 $ECHO "Try '$progname --help' for more information about other modes."
24813798 }
24823799
24833800 # Now that we've collected a possible --mode arg, show help if necessary
24843801 if $opt_help; then
2485 if test "$opt_help" = :; then
3802 if test : = "$opt_help"; then
24863803 func_mode_help
24873804 else
24883805 {
24903807 for opt_mode in compile link execute install finish uninstall clean; do
24913808 func_mode_help
24923809 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
3810 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
24943811 {
24953812 func_help noexit
24963813 for opt_mode in compile link execute install finish uninstall clean; do
24983815 func_mode_help
24993816 done
25003817 } |
2501 sed '1d
3818 $SED '1d
25023819 /^When reporting/,/^Report/{
25033820 H
25043821 d
25153832 # func_mode_execute arg...
25163833 func_mode_execute ()
25173834 {
2518 $opt_debug
3835 $debug_cmd
3836
25193837 # The first argument is the command name.
2520 cmd="$nonopt"
3838 cmd=$nonopt
25213839 test -z "$cmd" && \
25223840 func_fatal_help "you must specify a COMMAND"
25233841
25243842 # Handle -dlopen flags immediately.
25253843 for file in $opt_dlopen; do
25263844 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
3845 || func_fatal_help "'$file' is not a file"
25283846
25293847 dir=
25303848 case $file in
25343852
25353853 # Check to see that this really is a libtool archive.
25363854 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
3855 || func_fatal_help "'$lib' is not a valid libtool archive"
25383856
25393857 # Read the libtool library.
25403858 dlname=
25453863 if test -z "$dlname"; then
25463864 # Warn if it was a shared library.
25473865 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
3866 func_warning "'$file' was not linked with '-export-dynamic'"
25493867 continue
25503868 fi
25513869
25523870 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
3871 dir=$func_dirname_result
25543872
25553873 if test -f "$dir/$objdir/$dlname"; then
25563874 func_append dir "/$objdir"
25573875 else
25583876 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
3877 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
25603878 fi
25613879 fi
25623880 ;;
25643882 *.lo)
25653883 # Just add the directory containing the .lo file.
25663884 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
3885 dir=$func_dirname_result
25683886 ;;
25693887
25703888 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
3889 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
25723890 continue
25733891 ;;
25743892 esac
25753893
25763894 # Get the absolute pathname.
25773895 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
3896 test -n "$absdir" && dir=$absdir
25793897
25803898 # Now add the directory to shlibpath_var.
25813899 if eval "test -z \"\$$shlibpath_var\""; then
25873905
25883906 # This variable tells wrapper scripts just to set shlibpath_var
25893907 # rather than running their programs.
2590 libtool_execute_magic="$magic"
3908 libtool_execute_magic=$magic
25913909
25923910 # Check if any of the arguments is a wrapper script.
25933911 args=
26003918 if func_ltwrapper_script_p "$file"; then
26013919 func_source "$file"
26023920 # Transform arg to wrapped name.
2603 file="$progdir/$program"
3921 file=$progdir/$program
26043922 elif func_ltwrapper_executable_p "$file"; then
26053923 func_ltwrapper_scriptname "$file"
26063924 func_source "$func_ltwrapper_scriptname_result"
26073925 # Transform arg to wrapped name.
2608 file="$progdir/$program"
3926 file=$progdir/$program
26093927 fi
26103928 ;;
26113929 esac
26133931 func_append_quoted args "$file"
26143932 done
26153933
2616 if test "X$opt_dry_run" = Xfalse; then
3934 if $opt_dry_run; then
3935 # Display what would be done.
3936 if test -n "$shlibpath_var"; then
3937 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
3938 echo "export $shlibpath_var"
3939 fi
3940 $ECHO "$cmd$args"
3941 exit $EXIT_SUCCESS
3942 else
26173943 if test -n "$shlibpath_var"; then
26183944 # Export the shlibpath_var.
26193945 eval "export $shlibpath_var"
26303956 done
26313957
26323958 # Now prepare to actually exec the command.
2633 exec_cmd="\$cmd$args"
2634 else
2635 # Display what would be done.
2636 if test -n "$shlibpath_var"; then
2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
2639 fi
2640 $ECHO "$cmd$args"
2641 exit $EXIT_SUCCESS
3959 exec_cmd=\$cmd$args
26423960 fi
26433961 }
26443962
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
3963 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
26463964
26473965
26483966 # func_mode_finish arg...
26493967 func_mode_finish ()
26503968 {
2651 $opt_debug
3969 $debug_cmd
3970
26523971 libs=
26533972 libdirs=
26543973 admincmds=
26623981 if func_lalib_unsafe_p "$opt"; then
26633982 func_append libs " $opt"
26643983 else
2665 func_warning "\`$opt' is not a valid libtool archive"
3984 func_warning "'$opt' is not a valid libtool archive"
26663985 fi
26673986
26683987 else
2669 func_fatal_error "invalid argument \`$opt'"
3988 func_fatal_error "invalid argument '$opt'"
26703989 fi
26713990 done
26723991
26814000 # Remove sysroot references
26824001 if $opt_dry_run; then
26834002 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
4003 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
26854004 done
26864005 else
26874006 tmpdir=`func_mktempdir`
26884007 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4008 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26904009 > $tmpdir/tmp-la
26914010 mv -f $tmpdir/tmp-la $lib
26924011 done
27114030 fi
27124031
27134032 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
4033 $opt_quiet && exit $EXIT_SUCCESS
27154034
27164035 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
27174036 echo "----------------------------------------------------------------------"
27224041 echo
27234042 echo "If you ever happen to want to link against installed libraries"
27244043 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
4044 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
27264045 echo "flag during linking and do at least one of the following:"
27274046 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
4047 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
27294048 echo " during execution"
27304049 fi
27314050 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
4051 echo " - add LIBDIR to the '$runpath_var' environment variable"
27334052 echo " during linking"
27344053 fi
27354054 if test -n "$hardcode_libdir_flag_spec"; then
27364055 libdir=LIBDIR
27374056 eval flag=\"$hardcode_libdir_flag_spec\"
27384057
2739 $ECHO " - use the \`$flag' linker flag"
4058 $ECHO " - use the '$flag' linker flag"
27404059 fi
27414060 if test -n "$admincmds"; then
27424061 $ECHO " - have your system administrator run these commands:$admincmds"
27434062 fi
27444063 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
4064 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
27464065 fi
27474066 echo
27484067
27614080 exit $EXIT_SUCCESS
27624081 }
27634082
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
4083 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
27654084
27664085
27674086 # func_mode_install arg...
27684087 func_mode_install ()
27694088 {
2770 $opt_debug
4089 $debug_cmd
4090
27714091 # There may be an optional sh(1) argument at the beginning of
27724092 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
4093 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
27744094 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
4095 case $nonopt in *shtool*) :;; *) false;; esac
4096 then
27764097 # Aesthetically quote it.
27774098 func_quote_for_eval "$nonopt"
27784099 install_prog="$func_quote_for_eval_result "
27994120 opts=
28004121 prev=
28014122 install_type=
2802 isdir=no
4123 isdir=false
28034124 stripme=
28044125 no_mode=:
28054126 for arg
28124133 fi
28134134
28144135 case $arg in
2815 -d) isdir=yes ;;
4136 -d) isdir=: ;;
28164137 -f)
28174138 if $install_cp; then :; else
28184139 prev=$arg
28304151 *)
28314152 # If the previous option needed an argument, then skip it.
28324153 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
4154 if test X-m = "X$prev" && test -n "$install_override_mode"; then
28344155 arg2=$install_override_mode
28354156 no_mode=false
28364157 fi
28554176 func_fatal_help "you must specify an install program"
28564177
28574178 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
4179 func_fatal_help "the '$prev' option requires an argument"
28594180
28604181 if test -n "$install_override_mode" && $no_mode; then
28614182 if $install_cp; then :; else
28774198 dest=$func_stripname_result
28784199
28794200 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
4201 test -d "$dest" && isdir=:
4202 if $isdir; then
4203 destdir=$dest
28834204 destname=
28844205 else
28854206 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
4207 destdir=$func_dirname_result
4208 destname=$func_basename_result
28884209
28894210 # Not a directory, so check to see that there is only one file specified.
28904211 set dummy $files; shift
28914212 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
4213 func_fatal_help "'$dest' is not a directory"
28934214 fi
28944215 case $destdir in
28954216 [\\/]* | [A-Za-z]:[\\/]*) ;;
28984219 case $file in
28994220 *.lo) ;;
29004221 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
4222 func_fatal_help "'$destdir' must be an absolute directory name"
29024223 ;;
29034224 esac
29044225 done
29074228
29084229 # This variable tells wrapper scripts just to set variables rather
29094230 # than running their programs.
2910 libtool_install_magic="$magic"
4231 libtool_install_magic=$magic
29114232
29124233 staticlibs=
29134234 future_libdirs=
29274248
29284249 # Check to see that this really is a libtool archive.
29294250 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
4251 || func_fatal_help "'$file' is not a valid libtool archive"
29314252
29324253 library_names=
29334254 old_library=
29494270 fi
29504271
29514272 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
4273 dir=$func_dirname_result
29534274 func_append dir "$objdir"
29544275
29554276 if test -n "$relink_command"; then
29634284 # are installed into $libdir/../bin (currently, that works fine)
29644285 # but it's something to keep an eye on.
29654286 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
4287 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
29674288
29684289 if test -n "$inst_prefix_dir"; then
29694290 # Stick the inst_prefix_dir data into the link command.
29724293 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
29734294 fi
29744295
2975 func_warning "relinking \`$file'"
4296 func_warning "relinking '$file'"
29764297 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
4298 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
29784299 fi
29794300
29804301 # See the names of the shared library.
29814302 set dummy $library_names; shift
29824303 if test -n "$1"; then
2983 realname="$1"
4304 realname=$1
29844305 shift
29854306
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
4307 srcname=$realname
4308 test -n "$relink_command" && srcname=${realname}T
29884309
29894310 # Install the shared library and build the symlinks.
29904311 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
29914312 'exit $?'
2992 tstripme="$stripme"
4313 tstripme=$stripme
29934314 case $host_os in
29944315 cygwin* | mingw* | pw32* | cegcc*)
29954316 case $realname in
29964317 *.dll.a)
2997 tstripme=""
4318 tstripme=
4319 ;;
4320 esac
4321 ;;
4322 os2*)
4323 case $realname in
4324 *_dll.a)
4325 tstripme=
29984326 ;;
29994327 esac
30004328 ;;
30054333
30064334 if test "$#" -gt 0; then
30074335 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
4336 # Try 'ln -sf' first, because the 'ln' binary might depend on
30094337 # the symlink we replace! Solaris /bin/ln does not understand -f,
30104338 # so we also need to try rm && ln -s.
30114339 for linkname
30164344 fi
30174345
30184346 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
4347 lib=$destdir/$realname
30204348 func_execute_cmds "$postinstall_cmds" 'exit $?'
30214349 fi
30224350
30234351 # Install the pseudo-library for information purposes.
30244352 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
4353 name=$func_basename_result
4354 instname=$dir/${name}i
30274355 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
30284356
30294357 # Maybe install the static library, too.
30354363
30364364 # Figure out destination file name, if it wasn't already specified.
30374365 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
4366 destfile=$destdir/$destname
30394367 else
30404368 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
4369 destfile=$func_basename_result
4370 destfile=$destdir/$destfile
30434371 fi
30444372
30454373 # Deduce the name of the destination old-style object file.
30494377 staticdest=$func_lo2o_result
30504378 ;;
30514379 *.$objext)
3052 staticdest="$destfile"
4380 staticdest=$destfile
30534381 destfile=
30544382 ;;
30554383 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
4384 func_fatal_help "cannot copy a libtool object to '$destfile'"
30574385 ;;
30584386 esac
30594387
30624390 func_show_eval "$install_prog $file $destfile" 'exit $?'
30634391
30644392 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
4393 if test yes = "$build_old_libs"; then
30664394 # Deduce the name of the old-style object file.
30674395 func_lo2o "$file"
30684396 staticobj=$func_lo2o_result
30744402 *)
30754403 # Figure out destination file name, if it wasn't already specified.
30764404 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
4405 destfile=$destdir/$destname
30784406 else
30794407 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
4408 destfile=$func_basename_result
4409 destfile=$destdir/$destfile
30824410 fi
30834411
30844412 # If the file is missing, and there is a .exe on the end, strip it
30854413 # because it is most likely a libtool script we actually want to
30864414 # install
3087 stripped_ext=""
4415 stripped_ext=
30884416 case $file in
30894417 *.exe)
30904418 if test ! -f "$file"; then
30914419 func_stripname '' '.exe' "$file"
30924420 file=$func_stripname_result
3093 stripped_ext=".exe"
4421 stripped_ext=.exe
30944422 fi
30954423 ;;
30964424 esac
31184446
31194447 # Check the variables that should have been set.
31204448 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
4449 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4450
4451 finalize=:
31244452 for lib in $notinst_deplibs; do
31254453 # Check to see that each library is installed.
31264454 libdir=
31274455 if test -f "$lib"; then
31284456 func_source "$lib"
31294457 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
4458 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
31314459 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
4460 func_warning "'$lib' has not been installed in '$libdir'"
4461 finalize=false
31344462 fi
31354463 done
31364464
31384466 func_source "$wrapper"
31394467
31404468 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
4469 if test no = "$fast_install" && test -n "$relink_command"; then
31424470 $opt_dry_run || {
3143 if test "$finalize" = yes; then
4471 if $finalize; then
31444472 tmpdir=`func_mktempdir`
31454473 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
4474 file=$func_basename_result
4475 outputname=$tmpdir/$file
31484476 # Replace the output file specification.
31494477 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
31504478
3151 $opt_silent || {
4479 $opt_quiet || {
31524480 func_quote_for_expand "$relink_command"
31534481 eval "func_echo $func_quote_for_expand_result"
31544482 }
31554483 if eval "$relink_command"; then :
31564484 else
3157 func_error "error: relink \`$file' with the above command before installing it"
4485 func_error "error: relink '$file' with the above command before installing it"
31584486 $opt_dry_run || ${RM}r "$tmpdir"
31594487 continue
31604488 fi
3161 file="$outputname"
4489 file=$outputname
31624490 else
3163 func_warning "cannot relink \`$file'"
4491 func_warning "cannot relink '$file'"
31644492 fi
31654493 }
31664494 else
31974525
31984526 for file in $staticlibs; do
31994527 func_basename "$file"
3200 name="$func_basename_result"
4528 name=$func_basename_result
32014529
32024530 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
4531 oldlib=$destdir/$name
32044532 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
32054533 tool_oldlib=$func_to_tool_file_result
32064534
32154543 done
32164544
32174545 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
4546 func_warning "remember to run '$progname --finish$future_libdirs'"
32194547
32204548 if test -n "$current_libdirs"; then
32214549 # Maybe just do a dry run.
32224550 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
4551 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
32244552 else
32254553 exit $EXIT_SUCCESS
32264554 fi
32274555 }
32284556
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
4557 test install = "$opt_mode" && func_mode_install ${1+"$@"}
32304558
32314559
32324560 # func_generate_dlsyms outputname originator pic_p
32344562 # a dlpreopen symbol table.
32354563 func_generate_dlsyms ()
32364564 {
3237 $opt_debug
3238 my_outputname="$1"
3239 my_originator="$2"
3240 my_pic_p="${3-no}"
3241 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
4565 $debug_cmd
4566
4567 my_outputname=$1
4568 my_originator=$2
4569 my_pic_p=${3-false}
4570 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
32424571 my_dlsyms=
32434572
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4573 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
32454574 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
4575 my_dlsyms=${my_outputname}S.c
32474576 else
32484577 func_error "not configured to extract global symbols from dlpreopened files"
32494578 fi
32544583 "") ;;
32554584 *.c)
32564585 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
4586 nlist=$output_objdir/$my_outputname.nm
32584587
32594588 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
32604589
32624591 func_verbose "creating $output_objdir/$my_dlsyms"
32634592
32644593 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3265 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3266 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
4594 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4595 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
32674596
32684597 #ifdef __cplusplus
32694598 extern \"C\" {
32704599 #endif
32714600
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4601 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
32734602 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
32744603 #endif
32754604
32764605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4606 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4607 /* DATA imports from DLLs on WIN32 can't be const, because runtime
32794608 relocations are performed -- see ld's documentation on pseudo-relocs. */
32804609 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
4610 #elif defined __osf__
32824611 /* This system does not cope well with relocations in const data. */
32834612 # define LT_DLSYM_CONST
32844613 #else
32854614 # define LT_DLSYM_CONST const
32864615 #endif
32874616
4617 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4618
32884619 /* External symbol declarations for the compiler. */\
32894620 "
32904621
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
4622 if test yes = "$dlself"; then
4623 func_verbose "generating symbol list for '$output'"
32934624
32944625 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32954626
32974628 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
32984629 for progfile in $progfiles; do
32994630 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
4631 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
33014632 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
33024633 done
33034634
33174648
33184649 # Prepare the list of exported symbols
33194650 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
4651 export_symbols=$output_objdir/$outputname.exp
33214652 $opt_dry_run || {
33224653 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4654 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
33244655 case $host in
33254656 *cygwin* | *mingw* | *cegcc* )
33264657 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
33304661 }
33314662 else
33324663 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4664 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
33344665 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
33354666 eval '$MV "$nlist"T "$nlist"'
33364667 case $host in
33444675 fi
33454676
33464677 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
4678 func_verbose "extracting global C symbols from '$dlprefile'"
33484679 func_basename "$dlprefile"
3349 name="$func_basename_result"
4680 name=$func_basename_result
33504681 case $host in
33514682 *cygwin* | *mingw* | *cegcc* )
33524683 # if an import library, we need to obtain dlname
33534684 if func_win32_import_lib_p "$dlprefile"; then
33544685 func_tr_sh "$dlprefile"
33554686 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
4687 dlprefile_dlbasename=
33574688 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
33584689 # Use subshell, to avoid clobbering current variable values
33594690 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
4691 if test -n "$dlprefile_dlname"; then
33614692 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
4693 dlprefile_dlbasename=$func_basename_result
33634694 else
33644695 # no lafile. user explicitly requested -dlpreopen <import library>.
33654696 $sharedlib_from_linklib_cmd "$dlprefile"
33674698 fi
33684699 fi
33694700 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
4701 if test -n "$dlprefile_dlbasename"; then
33714702 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
33724703 else
33734704 func_warning "Could not compute DLL name from $name"
34234754 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
34244755 fi
34254756
4757 func_show_eval '$RM "${nlist}I"'
4758 if test -n "$global_symbol_to_import"; then
4759 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4760 fi
4761
34264762 echo >> "$output_objdir/$my_dlsyms" "\
34274763
34284764 /* The mapping between symbol names and symbols. */
34314767 void *address;
34324768 } lt_dlsymlist;
34334769 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
4770 lt_${my_prefix}_LTX_preloaded_symbols[];\
4771 "
4772
4773 if test -s "$nlist"I; then
4774 echo >> "$output_objdir/$my_dlsyms" "\
4775 static void lt_syminit(void)
4776 {
4777 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4778 for (; symbol->name; ++symbol)
4779 {"
4780 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4781 echo >> "$output_objdir/$my_dlsyms" "\
4782 }
4783 }"
4784 fi
4785 echo >> "$output_objdir/$my_dlsyms" "\
34354786 LT_DLSYM_CONST lt_dlsymlist
34364787 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
4788 { {\"$my_originator\", (void *) 0},"
4789
4790 if test -s "$nlist"I; then
4791 echo >> "$output_objdir/$my_dlsyms" "\
4792 {\"@INIT@\", (void *) &lt_syminit},"
4793 fi
34394794
34404795 case $need_lib_prefix in
34414796 no)
34774832 *-*-hpux*)
34784833 pic_flag_for_symtable=" $pic_flag" ;;
34794834 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
4835 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
34834836 ;;
34844837 esac
34854838 ;;
34964849 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
34974850
34984851 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
4852 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
35004853
35014854 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
4855 symfileobj=$output_objdir/${my_outputname}S.$objext
35034856 case $host in
35044857 *cygwin* | *mingw* | *cegcc* )
35054858 if test -f "$output_objdir/$my_outputname.def"; then
35174870 esac
35184871 ;;
35194872 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
4873 func_fatal_error "unknown suffix for '$my_dlsyms'"
35214874 ;;
35224875 esac
35234876 else
35294882 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
35304883 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
35314884 fi
4885 }
4886
4887 # func_cygming_gnu_implib_p ARG
4888 # This predicate returns with zero status (TRUE) if
4889 # ARG is a GNU/binutils-style import library. Returns
4890 # with nonzero status (FALSE) otherwise.
4891 func_cygming_gnu_implib_p ()
4892 {
4893 $debug_cmd
4894
4895 func_to_tool_file "$1" func_convert_file_msys_to_w32
4896 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
4897 test -n "$func_cygming_gnu_implib_tmp"
4898 }
4899
4900 # func_cygming_ms_implib_p ARG
4901 # This predicate returns with zero status (TRUE) if
4902 # ARG is an MS-style import library. Returns
4903 # with nonzero status (FALSE) otherwise.
4904 func_cygming_ms_implib_p ()
4905 {
4906 $debug_cmd
4907
4908 func_to_tool_file "$1" func_convert_file_msys_to_w32
4909 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
4910 test -n "$func_cygming_ms_implib_tmp"
35324911 }
35334912
35344913 # func_win32_libid arg
35404919 # Despite the name, also deal with 64 bit binaries.
35414920 func_win32_libid ()
35424921 {
3543 $opt_debug
3544 win32_libid_type="unknown"
4922 $debug_cmd
4923
4924 win32_libid_type=unknown
35454925 win32_fileres=`file -L $1 2>/dev/null`
35464926 case $win32_fileres in
35474927 *ar\ archive\ import\ library*) # definitely import
35514931 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35524932 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
35534933 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3556 $SED -n -e '
4934 case $nm_interface in
4935 "MS dumpbin")
4936 if func_cygming_ms_implib_p "$1" ||
4937 func_cygming_gnu_implib_p "$1"
4938 then
4939 win32_nmres=import
4940 else
4941 win32_nmres=
4942 fi
4943 ;;
4944 *)
4945 func_to_tool_file "$1" func_convert_file_msys_to_w32
4946 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4947 $SED -n -e '
35574948 1,100{
35584949 / I /{
3559 s,.*,import,
4950 s|.*|import|
35604951 p
35614952 q
35624953 }
35634954 }'`
4955 ;;
4956 esac
35644957 case $win32_nmres in
35654958 import*) win32_libid_type="x86 archive import";;
35664959 *) win32_libid_type="x86 archive static";;
35924985 # $sharedlib_from_linklib_result
35934986 func_cygming_dll_for_implib ()
35944987 {
3595 $opt_debug
4988 $debug_cmd
4989
35964990 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
35974991 }
35984992
36095003 # specified import library.
36105004 func_cygming_dll_for_implib_fallback_core ()
36115005 {
3612 $opt_debug
5006 $debug_cmd
5007
36135008 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
36145009 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
36155010 $SED '/^Contents of section '"$match_literal"':/{
36455040 /./p' |
36465041 # we now have a list, one entry per line, of the stringified
36475042 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
5043 # archive that possess that section. Heuristic: eliminate
5044 # all those that have a first or second character that is
36505045 # a '.' (that is, objdump's representation of an unprintable
36515046 # character.) This should work for all archives with less than
36525047 # 0x302f exports -- but will fail for DLLs whose name actually
36555050 #
36565051 # Of those that remain, print the first one.
36575052 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
36825053 }
36835054
36845055 # func_cygming_dll_for_implib_fallback ARG
36945065 # $sharedlib_from_linklib_result
36955066 func_cygming_dll_for_implib_fallback ()
36965067 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
5068 $debug_cmd
5069
5070 if func_cygming_gnu_implib_p "$1"; then
36995071 # binutils import library
37005072 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
5073 elif func_cygming_ms_implib_p "$1"; then
37025074 # ms-generated import library
37035075 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
37045076 else
37055077 # unknown
3706 sharedlib_from_linklib_result=""
5078 sharedlib_from_linklib_result=
37075079 fi
37085080 }
37095081
37115083 # func_extract_an_archive dir oldlib
37125084 func_extract_an_archive ()
37135085 {
3714 $opt_debug
3715 f_ex_an_ar_dir="$1"; shift
3716 f_ex_an_ar_oldlib="$1"
3717 if test "$lock_old_archive_extraction" = yes; then
5086 $debug_cmd
5087
5088 f_ex_an_ar_dir=$1; shift
5089 f_ex_an_ar_oldlib=$1
5090 if test yes = "$lock_old_archive_extraction"; then
37185091 lockfile=$f_ex_an_ar_oldlib.lock
37195092 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
37205093 func_echo "Waiting for $lockfile to be removed"
37235096 fi
37245097 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
37255098 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
5099 if test yes = "$lock_old_archive_extraction"; then
37275100 $opt_dry_run || rm -f "$lockfile"
37285101 fi
37295102 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
37375110 # func_extract_archives gentop oldlib ...
37385111 func_extract_archives ()
37395112 {
3740 $opt_debug
3741 my_gentop="$1"; shift
5113 $debug_cmd
5114
5115 my_gentop=$1; shift
37425116 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
5117 my_oldobjs=
5118 my_xlib=
5119 my_xabs=
5120 my_xdir=
37475121
37485122 for my_xlib in $my_oldlibs; do
37495123 # Extract the objects.
37505124 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
5125 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
37525126 *) my_xabs=`pwd`"/$my_xlib" ;;
37535127 esac
37545128 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
5129 my_xlib=$func_basename_result
37565130 my_xlib_u=$my_xlib
37575131 while :; do
37585132 case " $extracted_archives " in
37645138 esac
37655139 done
37665140 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
5141 my_xdir=$my_gentop/$my_xlib_u
37685142
37695143 func_mkdir_p "$my_xdir"
37705144
37775151 cd $my_xdir || exit $?
37785152 darwin_archive=$my_xabs
37795153 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
5154 func_basename "$darwin_archive"
5155 darwin_base_archive=$func_basename_result
37815156 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
37825157 if test -n "$darwin_arches"; then
37835158 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
37845159 darwin_arch=
37855160 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3786 for darwin_arch in $darwin_arches ; do
3787 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3788 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3789 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
5161 for darwin_arch in $darwin_arches; do
5162 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5163 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5164 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5165 func_extract_an_archive "`pwd`" "$darwin_base_archive"
37915166 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
5167 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
37935168 done # $darwin_arches
37945169 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3795 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
5170 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
37965171 darwin_file=
37975172 darwin_files=
37985173 for darwin_file in $darwin_filelist; do
38145189 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
38155190 done
38165191
3817 func_extract_archives_result="$my_oldobjs"
5192 func_extract_archives_result=$my_oldobjs
38185193 }
38195194
38205195
38295204 #
38305205 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
38315206 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
5207 # will assume that the directory where it is stored is
38335208 # the $objdir directory. This is a cygwin/mingw-specific
38345209 # behavior.
38355210 func_emit_wrapper ()
38405215 #! $SHELL
38415216
38425217 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5218 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
38445219 #
38455220 # The $output program cannot be directly executed until all the libtool
38465221 # libraries that it depends on are installed.
38975272
38985273 # Very basic option parsing. These options are (a) specific to
38995274 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
5275 # /script/ and the wrapper /executable/ that is used only on
39015276 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
5277 # (application programs are unlikely to have options that match
39035278 # this pattern).
39045279 #
39055280 # There are only two supported options: --lt-debug and
39325307
39335308 # Print the debug banner immediately:
39345309 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
5310 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
39365311 fi
39375312 }
39385313
39435318 lt_dump_args_N=1;
39445319 for lt_arg
39455320 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
5321 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
39475322 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
39485323 done
39495324 }
39575332 *-*-mingw | *-*-os2* | *-cegcc*)
39585333 $ECHO "\
39595334 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
5335 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
39615336 func_lt_dump_args \${1+\"\$@\"} 1>&2
39625337 fi
39635338 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
39675342 *)
39685343 $ECHO "\
39695344 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
5345 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
39715346 func_lt_dump_args \${1+\"\$@\"} 1>&2
39725347 fi
39735348 exec \"\$progdir/\$program\" \${1+\"\$@\"}
40425417 test -n \"\$absdir\" && thisdir=\"\$absdir\"
40435418 "
40445419
4045 if test "$fast_install" = yes; then
5420 if test yes = "$fast_install"; then
40465421 $ECHO "\
40475422 program=lt-'$outputname'$exeext
40485423 progdir=\"\$thisdir/$objdir\"
40495424
40505425 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5426 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
40525427 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
40535428
40545429 file=\"\$\$-\$program\"
40655440 if test -n \"\$relink_command\"; then
40665441 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
40675442 else
4068 $ECHO \"\$relink_command_output\" >&2
5443 \$ECHO \"\$relink_command_output\" >&2
40695444 $RM \"\$progdir/\$file\"
40705445 exit 1
40715446 fi
41005475 fi
41015476
41025477 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5478 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
41045479 $ECHO "\
41055480 # Add our own library path to $shlibpath_var
41065481 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
41205495 fi
41215496 else
41225497 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5498 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
41245499 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
41255500 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
41265501 exit 1
41395514 cat <<EOF
41405515
41415516 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5517 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
41435518
41445519 The $output program cannot be directly executed until all the libtool
41455520 libraries that it depends on are installed.
41745549 #include <fcntl.h>
41755550 #include <sys/stat.h>
41765551
5552 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5553
41775554 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
5555 #if defined __MINGW32__
41795556 # ifdef __STRICT_ANSI__
41805557 int _putenv (const char *);
41815558 # endif
4182 #elif defined(__CYGWIN__)
5559 #elif defined __CYGWIN__
41835560 # ifdef __STRICT_ANSI__
41845561 char *realpath (const char *, char *);
41855562 int putenv (char *);
41865563 int setenv (const char *, const char *, int);
41875564 # endif
4188 /* #elif defined (other platforms) ... */
5565 /* #elif defined other_platform || defined ... */
41895566 #endif
41905567
41915568 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
5569 #if defined _MSC_VER
41935570 # define setmode _setmode
41945571 # define stat _stat
41955572 # define chmod _chmod
41965573 # define getcwd _getcwd
41975574 # define putenv _putenv
41985575 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
5576 #elif defined __MINGW32__
42045577 # define setmode _setmode
42055578 # define stat _stat
42065579 # define chmod _chmod
42075580 # define getcwd _getcwd
42085581 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
5582 #elif defined __CYGWIN__
42105583 # define HAVE_SETENV
42115584 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
5585 /* #elif defined other platforms ... */
42135586 #endif
42145587
4215 #if defined(PATH_MAX)
5588 #if defined PATH_MAX
42165589 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
5590 #elif defined MAXPATHLEN
42185591 # define LT_PATHMAX MAXPATHLEN
42195592 #else
42205593 # define LT_PATHMAX 1024
42335606 # define PATH_SEPARATOR ':'
42345607 #endif
42355608
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
5609 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5610 defined __OS2__
42385611 # define HAVE_DOS_BASED_FILE_SYSTEM
42395612 # define FOPEN_WB "wb"
42405613 # ifndef DIR_SEPARATOR_2
42675640
42685641 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
42695642 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
5643 if (stale) { free (stale); stale = 0; } \
42715644 } while (0)
42725645
4273 #if defined(LT_DEBUGWRAPPER)
5646 #if defined LT_DEBUGWRAPPER
42745647 static int lt_debug = 1;
42755648 #else
42765649 static int lt_debug = 0;
42995672 EOF
43005673
43015674 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
5675 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5676 # define externally_visible volatile
5677 #else
5678 # define externally_visible __attribute__((externally_visible)) volatile
5679 #endif
5680 externally_visible const char * MAGIC_EXE = "$magic_exe";
43035681 const char * LIB_PATH_VARNAME = "$shlibpath_var";
43045682 EOF
43055683
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5684 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
43075685 func_to_host_path "$temp_rpath"
43085686 cat <<EOF
43095687 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
43275705 EOF
43285706 fi
43295707
4330 if test "$fast_install" = yes; then
5708 if test yes = "$fast_install"; then
43315709 cat <<EOF
43325710 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
43335711 EOF
43565734 char *actual_cwrapper_name;
43575735 char *target_name;
43585736 char *lt_argv_zero;
4359 intptr_t rval = 127;
5737 int rval = 127;
43605738
43615739 int i;
43625740
43635741 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
5742 newargz = XMALLOC (char *, (size_t) argc + 1);
43655743
43665744 /* very simple arg parsing; don't want to rely on getopt
43675745 * also, copy all non cwrapper options to newargz, except
43705748 newargc=0;
43715749 for (i = 1; i < argc; i++)
43725750 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
5751 if (STREQ (argv[i], dumpscript_opt))
43745752 {
43755753 EOF
4376 case "$host" in
5754 case $host in
43775755 *mingw* | *cygwin* )
43785756 # make stdout use "unix" line endings
43795757 echo " setmode(1,_O_BINARY);"
43845762 lt_dump_script (stdout);
43855763 return 0;
43865764 }
4387 if (strcmp (argv[i], debug_opt) == 0)
5765 if (STREQ (argv[i], debug_opt))
43885766 {
43895767 lt_debug = 1;
43905768 continue;
43915769 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
5770 if (STREQ (argv[i], ltwrapper_option_prefix))
43935771 {
43945772 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
43955773 namespace, but it is not one of the ones we know about and
44125790 EOF
44135791 cat <<EOF
44145792 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
5793 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
44165794 EOF
44175795 cat <<"EOF"
44185796 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
45235901 cat <<"EOF"
45245902 /* execv doesn't actually work on mingw as expected on unix */
45255903 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5904 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
45275905 if (rval == -1)
45285906 {
45295907 /* failed to start process */
45685946 {
45695947 const char *base;
45705948
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5949 #if defined HAVE_DOS_BASED_FILE_SYSTEM
45725950 /* Skip over the disk name in MSDOS pathnames. */
45735951 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
45745952 name += 2;
46276005 const char *p_next;
46286006 /* static buffer for getcwd */
46296007 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
6008 size_t tmp_len;
46316009 char *concat_name;
46326010
46336011 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
46376015 return NULL;
46386016
46396017 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6018 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46416019 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
46426020 {
46436021 concat_name = xstrdup (wrapper);
46556033 return concat_name;
46566034 XFREE (concat_name);
46576035 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6036 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46596037 }
46606038 #endif
46616039
46786056 for (q = p; *q; q++)
46796057 if (IS_PATH_SEPARATOR (*q))
46806058 break;
4681 p_len = q - p;
6059 p_len = (size_t) (q - p);
46826060 p_next = (*q == '\0' ? q : q + 1);
46836061 if (p_len == 0)
46846062 {
47976175 if (patlen <= len)
47986176 {
47996177 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
6178 if (STREQ (str, pat))
48016179 *str = '\0';
48026180 }
48036181 return str;
48626240 char *str = xstrdup (value);
48636241 setenv (name, str, 1);
48646242 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
6243 size_t len = strlen (name) + 1 + strlen (value) + 1;
48666244 char *str = XMALLOC (char, len);
48676245 sprintf (str, "%s=%s", name, value);
48686246 if (putenv (str) != EXIT_SUCCESS)
48796257 char *new_value;
48806258 if (orig_value && *orig_value)
48816259 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
6260 size_t orig_value_len = strlen (orig_value);
6261 size_t add_len = strlen (add);
48846262 new_value = XMALLOC (char, add_len + orig_value_len + 1);
48856263 if (to_end)
48866264 {
49116289 {
49126290 char *new_value = lt_extend_str (getenv (name), value, 0);
49136291 /* some systems can't cope with a ':'-terminated path #' */
4914 int len = strlen (new_value);
4915 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6292 size_t len = strlen (new_value);
6293 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
49166294 {
4917 new_value[len-1] = '\0';
6295 new_value[--len] = '\0';
49186296 }
49196297 lt_setenv (name, new_value);
49206298 XFREE (new_value);
50816459 # True if ARG is an import lib, as indicated by $file_magic_cmd
50826460 func_win32_import_lib_p ()
50836461 {
5084 $opt_debug
6462 $debug_cmd
6463
50856464 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
50866465 *import*) : ;;
50876466 *) false ;;
50886467 esac
50896468 }
50906469
6470 # func_suncc_cstd_abi
6471 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6472 # Several compiler flags select an ABI that is incompatible with the
6473 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6474 func_suncc_cstd_abi ()
6475 {
6476 $debug_cmd
6477
6478 case " $compile_command " in
6479 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6480 suncc_use_cstd_abi=no
6481 ;;
6482 *)
6483 suncc_use_cstd_abi=yes
6484 ;;
6485 esac
6486 }
6487
50916488 # func_mode_link arg...
50926489 func_mode_link ()
50936490 {
5094 $opt_debug
6491 $debug_cmd
6492
50956493 case $host in
50966494 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
50976495 # It is impossible to link a dll without this setting, and
50986496 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
6497 # what system we are compiling for in order to pass an extra
51006498 # flag for every libtool invocation.
51016499 # allow_undefined=no
51026500
51036501 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
6502 # to make a dll that has undefined symbols, in which case not
51056503 # even a static library is built. For now, we need to specify
51066504 # -no-undefined on the libtool link line when we can be certain
51076505 # that all symbols are satisfied, otherwise we get a static library.
51456543 module=no
51466544 no_install=no
51476545 objs=
6546 os2dllname=
51486547 non_pic_objects=
51496548 precious_files_regex=
51506549 prefer_static_libs=no
5151 preload=no
6550 preload=false
51526551 prev=
51536552 prevarg=
51546553 release=
51606559 vinfo=
51616560 vinfo_number=no
51626561 weak_libs=
5163 single_module="${wl}-single_module"
6562 single_module=$wl-single_module
51646563 func_infer_tag $base_compile
51656564
51666565 # We need to know -static, to get the right output filenames.
51686567 do
51696568 case $arg in
51706569 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
6570 test yes != "$build_libtool_libs" \
6571 && func_fatal_configuration "cannot build a shared library"
51736572 build_old_libs=no
51746573 break
51756574 ;;
51766575 -all-static | -static | -static-libtool-libs)
51776576 case $arg in
51786577 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
6578 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
51806579 func_warning "complete static linking is impossible in this configuration"
51816580 fi
51826581 if test -n "$link_static_flag"; then
52096608
52106609 # Go through the arguments, transforming them on the way.
52116610 while test "$#" -gt 0; do
5212 arg="$1"
6611 arg=$1
52136612 shift
52146613 func_quote_for_eval "$arg"
52156614 qarg=$func_quote_for_eval_unquoted_result
52266625
52276626 case $prev in
52286627 bindir)
5229 bindir="$arg"
6628 bindir=$arg
52306629 prev=
52316630 continue
52326631 ;;
52336632 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
6633 $preload || {
52356634 # Add the symbol object into the linking commands.
52366635 func_append compile_command " @SYMFILE@"
52376636 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
6637 preload=:
6638 }
52406639 case $arg in
52416640 *.la | *.lo) ;; # We handle these cases below.
52426641 force)
5243 if test "$dlself" = no; then
6642 if test no = "$dlself"; then
52446643 dlself=needless
52456644 export_dynamic=yes
52466645 fi
52486647 continue
52496648 ;;
52506649 self)
5251 if test "$prev" = dlprefiles; then
6650 if test dlprefiles = "$prev"; then
52526651 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
6652 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
52546653 dlself=yes
52556654 else
52566655 dlself=needless
52606659 continue
52616660 ;;
52626661 *)
5263 if test "$prev" = dlfiles; then
6662 if test dlfiles = "$prev"; then
52646663 func_append dlfiles " $arg"
52656664 else
52666665 func_append dlprefiles " $arg"
52716670 esac
52726671 ;;
52736672 expsyms)
5274 export_symbols="$arg"
6673 export_symbols=$arg
52756674 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
6675 || func_fatal_error "symbol file '$arg' does not exist"
52776676 prev=
52786677 continue
52796678 ;;
52806679 expsyms_regex)
5281 export_symbols_regex="$arg"
6680 export_symbols_regex=$arg
52826681 prev=
52836682 continue
52846683 ;;
52966695 continue
52976696 ;;
52986697 inst_prefix)
5299 inst_prefix_dir="$arg"
6698 inst_prefix_dir=$arg
6699 prev=
6700 continue
6701 ;;
6702 mllvm)
6703 # Clang does not use LLVM to link, so we can simply discard any
6704 # '-mllvm $arg' options when doing the link step.
53006705 prev=
53016706 continue
53026707 ;;
53206725
53216726 if test -z "$pic_object" ||
53226727 test -z "$non_pic_object" ||
5323 test "$pic_object" = none &&
5324 test "$non_pic_object" = none; then
5325 func_fatal_error "cannot find name of object for \`$arg'"
6728 test none = "$pic_object" &&
6729 test none = "$non_pic_object"; then
6730 func_fatal_error "cannot find name of object for '$arg'"
53266731 fi
53276732
53286733 # Extract subdirectory from the argument.
53296734 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
6735 xdir=$func_dirname_result
6736
6737 if test none != "$pic_object"; then
53336738 # Prepend the subdirectory the object is found in.
5334 pic_object="$xdir$pic_object"
5335
5336 if test "$prev" = dlfiles; then
5337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6739 pic_object=$xdir$pic_object
6740
6741 if test dlfiles = "$prev"; then
6742 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
53386743 func_append dlfiles " $pic_object"
53396744 prev=
53406745 continue
53456750 fi
53466751
53476752 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
6753 if test dlprefiles = "$prev"; then
53496754 # Preload the old-style object.
53506755 func_append dlprefiles " $pic_object"
53516756 prev=
53536758
53546759 # A PIC object.
53556760 func_append libobjs " $pic_object"
5356 arg="$pic_object"
6761 arg=$pic_object
53576762 fi
53586763
53596764 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
6765 if test none != "$non_pic_object"; then
53616766 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
6767 non_pic_object=$xdir$non_pic_object
53636768
53646769 # A standard non-PIC object
53656770 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
6771 if test -z "$pic_object" || test none = "$pic_object"; then
6772 arg=$non_pic_object
53686773 fi
53696774 else
53706775 # If the PIC object exists, use it instead.
53716776 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
6777 non_pic_object=$pic_object
53736778 func_append non_pic_objects " $non_pic_object"
53746779 fi
53756780 else
53776782 if $opt_dry_run; then
53786783 # Extract subdirectory from the argument.
53796784 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
6785 xdir=$func_dirname_result
53816786
53826787 func_lo2o "$arg"
53836788 pic_object=$xdir$objdir/$func_lo2o_result
53856790 func_append libobjs " $pic_object"
53866791 func_append non_pic_objects " $non_pic_object"
53876792 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
6793 func_fatal_error "'$arg' is not a valid libtool object"
53896794 fi
53906795 fi
53916796 done
53926797 else
5393 func_fatal_error "link input file \`$arg' does not exist"
6798 func_fatal_error "link input file '$arg' does not exist"
53946799 fi
53956800 arg=$save_arg
53966801 prev=
53976802 continue
53986803 ;;
6804 os2dllname)
6805 os2dllname=$arg
6806 prev=
6807 continue
6808 ;;
53996809 precious_regex)
5400 precious_files_regex="$arg"
6810 precious_files_regex=$arg
54016811 prev=
54026812 continue
54036813 ;;
54046814 release)
5405 release="-$arg"
6815 release=-$arg
54066816 prev=
54076817 continue
54086818 ;;
54146824 func_fatal_error "only absolute run-paths are allowed"
54156825 ;;
54166826 esac
5417 if test "$prev" = rpath; then
6827 if test rpath = "$prev"; then
54186828 case "$rpath " in
54196829 *" $arg "*) ;;
54206830 *) func_append rpath " $arg" ;;
54296839 continue
54306840 ;;
54316841 shrext)
5432 shrext_cmds="$arg"
6842 shrext_cmds=$arg
54336843 prev=
54346844 continue
54356845 ;;
54696879 esac
54706880 fi # test -n "$prev"
54716881
5472 prevarg="$arg"
6882 prevarg=$arg
54736883
54746884 case $arg in
54756885 -all-static)
54836893
54846894 -allow-undefined)
54856895 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
6896 func_fatal_error "'-allow-undefined' must not be used because it is the default"
54876897 ;;
54886898
54896899 -avoid-version)
55156925 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
55166926 func_fatal_error "more than one -exported-symbols argument is not allowed"
55176927 fi
5518 if test "X$arg" = "X-export-symbols"; then
6928 if test X-export-symbols = "X$arg"; then
55196929 prev=expsyms
55206930 else
55216931 prev=expsyms_regex
55496959 func_stripname "-L" '' "$arg"
55506960 if test -z "$func_stripname_result"; then
55516961 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
6962 func_fatal_error "require no space between '-L' and '$1'"
55536963 else
5554 func_fatal_error "need path for \`-L' option"
6964 func_fatal_error "need path for '-L' option"
55556965 fi
55566966 fi
55576967 func_resolve_sysroot "$func_stripname_result"
55626972 *)
55636973 absdir=`cd "$dir" && pwd`
55646974 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
6975 func_fatal_error "cannot determine absolute directory name of '$dir'"
6976 dir=$absdir
55676977 ;;
55686978 esac
55696979 case "$deplibs " in
55987008 ;;
55997009
56007010 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7011 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
56027012 case $host in
56037013 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
56047014 # These systems don't actually have a C or math library (as such)
56067016 ;;
56077017 *-*-os2*)
56087018 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
7019 test X-lc = "X$arg" && continue
56107020 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7021 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56127022 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
7023 test X-lc = "X$arg" && continue
56147024 ;;
56157025 *-*-rhapsody* | *-*-darwin1.[012])
56167026 # Rhapsody C and math libraries are in the System framework
56197029 ;;
56207030 *-*-sco3.2v5* | *-*-sco5v6*)
56217031 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
7032 test X-lc = "X$arg" && continue
56237033 ;;
56247034 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
56257035 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
7036 test X-lc = "X$arg" && continue
56277037 ;;
56287038 esac
5629 elif test "X$arg" = "X-lc_r"; then
7039 elif test X-lc_r = "X$arg"; then
56307040 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7041 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56327042 # Do not include libc_r directly, use -pthread flag.
56337043 continue
56347044 ;;
56357045 esac
56367046 fi
56377047 func_append deplibs " $arg"
7048 continue
7049 ;;
7050
7051 -mllvm)
7052 prev=mllvm
56387053 continue
56397054 ;;
56407055
56677082 ;;
56687083
56697084 -multi_module)
5670 single_module="${wl}-multi_module"
7085 single_module=$wl-multi_module
56717086 continue
56727087 ;;
56737088
56817096 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
56827097 # The PATH hackery in wrapper scripts is required on Windows
56837098 # and Darwin in order for the loader to find any dlls it needs.
5684 func_warning "\`-no-install' is ignored for $host"
5685 func_warning "assuming \`-no-fast-install' instead"
7099 func_warning "'-no-install' is ignored for $host"
7100 func_warning "assuming '-no-fast-install' instead"
56867101 fast_install=no
56877102 ;;
56887103 *) no_install=yes ;;
56977112
56987113 -objectlist)
56997114 prev=objectlist
7115 continue
7116 ;;
7117
7118 -os2dllname)
7119 prev=os2dllname
57007120 continue
57017121 ;;
57027122
57877207 func_stripname '-Wc,' '' "$arg"
57887208 args=$func_stripname_result
57897209 arg=
5790 save_ifs="$IFS"; IFS=','
7210 save_ifs=$IFS; IFS=,
57917211 for flag in $args; do
5792 IFS="$save_ifs"
7212 IFS=$save_ifs
57937213 func_quote_for_eval "$flag"
57947214 func_append arg " $func_quote_for_eval_result"
57957215 func_append compiler_flags " $func_quote_for_eval_result"
57967216 done
5797 IFS="$save_ifs"
7217 IFS=$save_ifs
57987218 func_stripname ' ' '' "$arg"
57997219 arg=$func_stripname_result
58007220 ;;
58037223 func_stripname '-Wl,' '' "$arg"
58047224 args=$func_stripname_result
58057225 arg=
5806 save_ifs="$IFS"; IFS=','
7226 save_ifs=$IFS; IFS=,
58077227 for flag in $args; do
5808 IFS="$save_ifs"
7228 IFS=$save_ifs
58097229 func_quote_for_eval "$flag"
58107230 func_append arg " $wl$func_quote_for_eval_result"
58117231 func_append compiler_flags " $wl$func_quote_for_eval_result"
58127232 func_append linker_flags " $func_quote_for_eval_result"
58137233 done
5814 IFS="$save_ifs"
7234 IFS=$save_ifs
58157235 func_stripname ' ' '' "$arg"
58167236 arg=$func_stripname_result
58177237 ;;
58347254 # -msg_* for osf cc
58357255 -msg_*)
58367256 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
7257 arg=$func_quote_for_eval_result
58387258 ;;
58397259
58407260 # Flags to be passed through unchanged, with rationale:
58467266 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
58477267 # -F/path path to uninstalled frameworks, gcc on darwin
58487268 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7269 # -fstack-protector* stack protector flags for GCC
58497270 # @file GCC response files
58507271 # -tp=* Portland pgcc target processor selection
58517272 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7273 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7274 # -specs=* GCC specs files
7275 # -stdlib=* select c++ std lib with clang
7276 # -fsanitize=* Clang/GCC memory and address sanitizer
58537277 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
58547278 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
7279 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7280 -specs=*|-fsanitize=*)
58567281 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
7282 arg=$func_quote_for_eval_result
58587283 func_append compile_command " $arg"
58597284 func_append finalize_command " $arg"
58607285 func_append compiler_flags " $arg"
58617286 continue
58627287 ;;
58637288
7289 -Z*)
7290 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7291 # OS/2 uses -Zxxx to specify OS/2-specific options
7292 compiler_flags="$compiler_flags $arg"
7293 func_append compile_command " $arg"
7294 func_append finalize_command " $arg"
7295 case $arg in
7296 -Zlinker | -Zstack)
7297 prev=xcompiler
7298 ;;
7299 esac
7300 continue
7301 else
7302 # Otherwise treat like 'Some other compiler flag' below
7303 func_quote_for_eval "$arg"
7304 arg=$func_quote_for_eval_result
7305 fi
7306 ;;
7307
58647308 # Some other compiler flag.
58657309 -* | +*)
58667310 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
7311 arg=$func_quote_for_eval_result
58687312 ;;
58697313
58707314 *.$objext)
58857329
58867330 if test -z "$pic_object" ||
58877331 test -z "$non_pic_object" ||
5888 test "$pic_object" = none &&
5889 test "$non_pic_object" = none; then
5890 func_fatal_error "cannot find name of object for \`$arg'"
7332 test none = "$pic_object" &&
7333 test none = "$non_pic_object"; then
7334 func_fatal_error "cannot find name of object for '$arg'"
58917335 fi
58927336
58937337 # Extract subdirectory from the argument.
58947338 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
7339 xdir=$func_dirname_result
7340
7341 test none = "$pic_object" || {
58987342 # Prepend the subdirectory the object is found in.
5899 pic_object="$xdir$pic_object"
5900
5901 if test "$prev" = dlfiles; then
5902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
7343 pic_object=$xdir$pic_object
7344
7345 if test dlfiles = "$prev"; then
7346 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
59037347 func_append dlfiles " $pic_object"
59047348 prev=
59057349 continue
59107354 fi
59117355
59127356 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
7357 if test dlprefiles = "$prev"; then
59147358 # Preload the old-style object.
59157359 func_append dlprefiles " $pic_object"
59167360 prev=
59187362
59197363 # A PIC object.
59207364 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
7365 arg=$pic_object
7366 }
59237367
59247368 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
7369 if test none != "$non_pic_object"; then
59267370 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
7371 non_pic_object=$xdir$non_pic_object
59287372
59297373 # A standard non-PIC object
59307374 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
7375 if test -z "$pic_object" || test none = "$pic_object"; then
7376 arg=$non_pic_object
59337377 fi
59347378 else
59357379 # If the PIC object exists, use it instead.
59367380 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
7381 non_pic_object=$pic_object
59387382 func_append non_pic_objects " $non_pic_object"
59397383 fi
59407384 else
59427386 if $opt_dry_run; then
59437387 # Extract subdirectory from the argument.
59447388 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
7389 xdir=$func_dirname_result
59467390
59477391 func_lo2o "$arg"
59487392 pic_object=$xdir$objdir/$func_lo2o_result
59507394 func_append libobjs " $pic_object"
59517395 func_append non_pic_objects " $non_pic_object"
59527396 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
7397 func_fatal_error "'$arg' is not a valid libtool object"
59547398 fi
59557399 fi
59567400 ;;
59667410 # A libtool-controlled library.
59677411
59687412 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
7413 if test dlfiles = "$prev"; then
59707414 # This library was specified with -dlopen.
59717415 func_append dlfiles " $func_resolve_sysroot_result"
59727416 prev=
5973 elif test "$prev" = dlprefiles; then
7417 elif test dlprefiles = "$prev"; then
59747418 # The library was specified with -dlpreopen.
59757419 func_append dlprefiles " $func_resolve_sysroot_result"
59767420 prev=
59857429 # Unknown arguments in both finalize_command and compile_command need
59867430 # to be aesthetically quoted because they are evaled later.
59877431 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
7432 arg=$func_quote_for_eval_result
59897433 ;;
59907434 esac # arg
59917435
59977441 done # argument parsing loop
59987442
59997443 test -n "$prev" && \
6000 func_fatal_help "the \`$prevarg' option requires an argument"
6001
6002 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
7444 func_fatal_help "the '$prevarg' option requires an argument"
7445
7446 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
60037447 eval arg=\"$export_dynamic_flag_spec\"
60047448 func_append compile_command " $arg"
60057449 func_append finalize_command " $arg"
60087452 oldlibs=
60097453 # calculate the name of the file, without its directory
60107454 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
7455 outputname=$func_basename_result
7456 libobjs_save=$libobjs
60137457
60147458 if test -n "$shlibpath_var"; then
60157459 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
7460 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
60177461 else
60187462 shlib_search_path=
60197463 fi
60207464 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
60217465 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
60227466
7467 # Definition is injected by LT_CONFIG during libtool generation.
7468 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7469
60237470 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
7471 output_objdir=$func_dirname_result$objdir
60257472 func_to_tool_file "$output_objdir/"
60267473 tool_output_objdir=$func_to_tool_file_result
60277474 # Create the object directory.
60447491 # Find all interdependent deplibs by searching for libraries
60457492 # that are linked more than once (e.g. -la -lb -la)
60467493 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
7494 if $opt_preserve_dup_deps; then
60487495 case "$libs " in
60497496 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
60507497 esac
60527499 func_append libs " $deplib"
60537500 done
60547501
6055 if test "$linkmode" = lib; then
7502 if test lib = "$linkmode"; then
60567503 libs="$predeps $libs $compiler_lib_search_path $postdeps"
60577504
60587505 # Compute libraries that are listed more than once in $predeps
60847531 case $file in
60857532 *.la) ;;
60867533 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
7534 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
60887535 ;;
60897536 esac
60907537 done
60927539 prog)
60937540 compile_deplibs=
60947541 finalize_deplibs=
6095 alldeplibs=no
7542 alldeplibs=false
60967543 newdlfiles=
60977544 newdlprefiles=
60987545 passes="conv scan dlopen dlpreopen link"
61047551 for pass in $passes; do
61057552 # The preopen pass in lib mode reverses $deplibs; put it back here
61067553 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
7554 if test lib,link = "$linkmode,$pass"; then
61087555 ## FIXME: Find the place where the list is rebuilt in the wrong
61097556 ## order, and fix it there properly
61107557 tmp_deplibs=
61117558 for deplib in $deplibs; do
61127559 tmp_deplibs="$deplib $tmp_deplibs"
61137560 done
6114 deplibs="$tmp_deplibs"
7561 deplibs=$tmp_deplibs
61157562 fi
61167563
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
7564 if test lib,link = "$linkmode,$pass" ||
7565 test prog,scan = "$linkmode,$pass"; then
7566 libs=$deplibs
61207567 deplibs=
61217568 fi
6122 if test "$linkmode" = prog; then
7569 if test prog = "$linkmode"; then
61237570 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
7571 dlopen) libs=$dlfiles ;;
7572 dlpreopen) libs=$dlprefiles ;;
61267573 link)
61277574 libs="$deplibs %DEPLIBS%"
61287575 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
61297576 ;;
61307577 esac
61317578 fi
6132 if test "$linkmode,$pass" = "lib,dlpreopen"; then
7579 if test lib,dlpreopen = "$linkmode,$pass"; then
61337580 # Collect and forward deplibs of preopened libtool libs
61347581 for lib in $dlprefiles; do
61357582 # Ignore non-libtool-libs
61507597 esac
61517598 done
61527599 done
6153 libs="$dlprefiles"
7600 libs=$dlprefiles
61547601 fi
6155 if test "$pass" = dlopen; then
7602 if test dlopen = "$pass"; then
61567603 # Collect dlpreopened libraries
6157 save_deplibs="$deplibs"
7604 save_deplibs=$deplibs
61587605 deplibs=
61597606 fi
61607607
61617608 for deplib in $libs; do
61627609 lib=
6163 found=no
7610 found=false
61647611 case $deplib in
61657612 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
61667613 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6167 if test "$linkmode,$pass" = "prog,link"; then
7614 if test prog,link = "$linkmode,$pass"; then
61687615 compile_deplibs="$deplib $compile_deplibs"
61697616 finalize_deplibs="$deplib $finalize_deplibs"
61707617 else
61717618 func_append compiler_flags " $deplib"
6172 if test "$linkmode" = lib ; then
7619 if test lib = "$linkmode"; then
61737620 case "$new_inherited_linker_flags " in
61747621 *" $deplib "*) ;;
61757622 * ) func_append new_inherited_linker_flags " $deplib" ;;
61797626 continue
61807627 ;;
61817628 -l*)
6182 if test "$linkmode" != lib && test "$linkmode" != prog; then
6183 func_warning "\`-l' is ignored for archives/objects"
7629 if test lib != "$linkmode" && test prog != "$linkmode"; then
7630 func_warning "'-l' is ignored for archives/objects"
61847631 continue
61857632 fi
61867633 func_stripname '-l' '' "$deplib"
61877634 name=$func_stripname_result
6188 if test "$linkmode" = lib; then
7635 if test lib = "$linkmode"; then
61897636 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
61907637 else
61917638 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
61937640 for searchdir in $searchdirs; do
61947641 for search_ext in .la $std_shrext .so .a; do
61957642 # Search the libtool library
6196 lib="$searchdir/lib${name}${search_ext}"
7643 lib=$searchdir/lib$name$search_ext
61977644 if test -f "$lib"; then
6198 if test "$search_ext" = ".la"; then
6199 found=yes
7645 if test .la = "$search_ext"; then
7646 found=:
62007647 else
6201 found=no
7648 found=false
62027649 fi
62037650 break 2
62047651 fi
62057652 done
62067653 done
6207 if test "$found" != yes; then
6208 # deplib doesn't seem to be a libtool library
6209 if test "$linkmode,$pass" = "prog,link"; then
6210 compile_deplibs="$deplib $compile_deplibs"
6211 finalize_deplibs="$deplib $finalize_deplibs"
6212 else
6213 deplibs="$deplib $deplibs"
6214 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6215 fi
6216 continue
6217 else # deplib is a libtool library
7654 if $found; then
7655 # deplib is a libtool library
62187656 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
62197657 # We need to do some special things here, and not later.
6220 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7658 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
62217659 case " $predeps $postdeps " in
62227660 *" $deplib "*)
62237661 if func_lalib_p "$lib"; then
62257663 old_library=
62267664 func_source "$lib"
62277665 for l in $old_library $library_names; do
6228 ll="$l"
7666 ll=$l
62297667 done
6230 if test "X$ll" = "X$old_library" ; then # only static version available
6231 found=no
7668 if test "X$ll" = "X$old_library"; then # only static version available
7669 found=false
62327670 func_dirname "$lib" "" "."
6233 ladir="$func_dirname_result"
7671 ladir=$func_dirname_result
62347672 lib=$ladir/$old_library
6235 if test "$linkmode,$pass" = "prog,link"; then
7673 if test prog,link = "$linkmode,$pass"; then
62367674 compile_deplibs="$deplib $compile_deplibs"
62377675 finalize_deplibs="$deplib $finalize_deplibs"
62387676 else
62397677 deplibs="$deplib $deplibs"
6240 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
7678 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
62417679 fi
62427680 continue
62437681 fi
62467684 *) ;;
62477685 esac
62487686 fi
7687 else
7688 # deplib doesn't seem to be a libtool library
7689 if test prog,link = "$linkmode,$pass"; then
7690 compile_deplibs="$deplib $compile_deplibs"
7691 finalize_deplibs="$deplib $finalize_deplibs"
7692 else
7693 deplibs="$deplib $deplibs"
7694 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7695 fi
7696 continue
62497697 fi
62507698 ;; # -l
62517699 *.ltframework)
6252 if test "$linkmode,$pass" = "prog,link"; then
7700 if test prog,link = "$linkmode,$pass"; then
62537701 compile_deplibs="$deplib $compile_deplibs"
62547702 finalize_deplibs="$deplib $finalize_deplibs"
62557703 else
62567704 deplibs="$deplib $deplibs"
6257 if test "$linkmode" = lib ; then
7705 if test lib = "$linkmode"; then
62587706 case "$new_inherited_linker_flags " in
62597707 *" $deplib "*) ;;
62607708 * ) func_append new_inherited_linker_flags " $deplib" ;;
62677715 case $linkmode in
62687716 lib)
62697717 deplibs="$deplib $deplibs"
6270 test "$pass" = conv && continue
7718 test conv = "$pass" && continue
62717719 newdependency_libs="$deplib $newdependency_libs"
62727720 func_stripname '-L' '' "$deplib"
62737721 func_resolve_sysroot "$func_stripname_result"
62747722 func_append newlib_search_path " $func_resolve_sysroot_result"
62757723 ;;
62767724 prog)
6277 if test "$pass" = conv; then
7725 if test conv = "$pass"; then
62787726 deplibs="$deplib $deplibs"
62797727 continue
62807728 fi
6281 if test "$pass" = scan; then
7729 if test scan = "$pass"; then
62827730 deplibs="$deplib $deplibs"
62837731 else
62847732 compile_deplibs="$deplib $compile_deplibs"
62897737 func_append newlib_search_path " $func_resolve_sysroot_result"
62907738 ;;
62917739 *)
6292 func_warning "\`-L' is ignored for archives/objects"
7740 func_warning "'-L' is ignored for archives/objects"
62937741 ;;
62947742 esac # linkmode
62957743 continue
62967744 ;; # -L
62977745 -R*)
6298 if test "$pass" = link; then
7746 if test link = "$pass"; then
62997747 func_stripname '-R' '' "$deplib"
63007748 func_resolve_sysroot "$func_stripname_result"
63017749 dir=$func_resolve_sysroot_result
63137761 lib=$func_resolve_sysroot_result
63147762 ;;
63157763 *.$libext)
6316 if test "$pass" = conv; then
7764 if test conv = "$pass"; then
63177765 deplibs="$deplib $deplibs"
63187766 continue
63197767 fi
63247772 case " $dlpreconveniencelibs " in
63257773 *" $deplib "*) ;;
63267774 *)
6327 valid_a_lib=no
7775 valid_a_lib=false
63287776 case $deplibs_check_method in
63297777 match_pattern*)
63307778 set dummy $deplibs_check_method; shift
63317779 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
63327780 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
63337781 | $EGREP "$match_pattern_regex" > /dev/null; then
6334 valid_a_lib=yes
7782 valid_a_lib=:
63357783 fi
63367784 ;;
63377785 pass_all)
6338 valid_a_lib=yes
7786 valid_a_lib=:
63397787 ;;
63407788 esac
6341 if test "$valid_a_lib" != yes; then
7789 if $valid_a_lib; then
7790 echo
7791 $ECHO "*** Warning: Linking the shared library $output against the"
7792 $ECHO "*** static library $deplib is not portable!"
7793 deplibs="$deplib $deplibs"
7794 else
63427795 echo
63437796 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
63447797 echo "*** I have the capability to make that library automatically link in when"
63467799 echo "*** shared version of the library, which you do not appear to have"
63477800 echo "*** because the file extensions .$libext of this argument makes me believe"
63487801 echo "*** that it is just a static archive that I should not use here."
6349 else
6350 echo
6351 $ECHO "*** Warning: Linking the shared library $output against the"
6352 $ECHO "*** static library $deplib is not portable!"
6353 deplibs="$deplib $deplibs"
63547802 fi
63557803 ;;
63567804 esac
63577805 continue
63587806 ;;
63597807 prog)
6360 if test "$pass" != link; then
7808 if test link != "$pass"; then
63617809 deplibs="$deplib $deplibs"
63627810 else
63637811 compile_deplibs="$deplib $compile_deplibs"
63687816 esac # linkmode
63697817 ;; # *.$libext
63707818 *.lo | *.$objext)
6371 if test "$pass" = conv; then
7819 if test conv = "$pass"; then
63727820 deplibs="$deplib $deplibs"
6373 elif test "$linkmode" = prog; then
6374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
7821 elif test prog = "$linkmode"; then
7822 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
63757823 # If there is no dlopen support or we're linking statically,
63767824 # we need to preload.
63777825 func_append newdlprefiles " $deplib"
63847832 continue
63857833 ;;
63867834 %DEPLIBS%)
6387 alldeplibs=yes
7835 alldeplibs=:
63887836 continue
63897837 ;;
63907838 esac # case $deplib
63917839
6392 if test "$found" = yes || test -f "$lib"; then :
6393 else
6394 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6395 fi
7840 $found || test -f "$lib" \
7841 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
63967842
63977843 # Check to see that this really is a libtool archive.
63987844 func_lalib_unsafe_p "$lib" \
6399 || func_fatal_error "\`$lib' is not a valid libtool archive"
7845 || func_fatal_error "'$lib' is not a valid libtool archive"
64007846
64017847 func_dirname "$lib" "" "."
6402 ladir="$func_dirname_result"
7848 ladir=$func_dirname_result
64037849
64047850 dlname=
64057851 dlopen=
64297875 done
64307876 fi
64317877 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6432 if test "$linkmode,$pass" = "lib,link" ||
6433 test "$linkmode,$pass" = "prog,scan" ||
6434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
7878 if test lib,link = "$linkmode,$pass" ||
7879 test prog,scan = "$linkmode,$pass" ||
7880 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
64357881 test -n "$dlopen" && func_append dlfiles " $dlopen"
64367882 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
64377883 fi
64387884
6439 if test "$pass" = conv; then
7885 if test conv = "$pass"; then
64407886 # Only check for convenience libraries
64417887 deplibs="$lib $deplibs"
64427888 if test -z "$libdir"; then
64437889 if test -z "$old_library"; then
6444 func_fatal_error "cannot find name of link library for \`$lib'"
7890 func_fatal_error "cannot find name of link library for '$lib'"
64457891 fi
64467892 # It is a libtool convenience library, so add in its objects.
64477893 func_append convenience " $ladir/$objdir/$old_library"
64497895 tmp_libs=
64507896 for deplib in $dependency_libs; do
64517897 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
7898 if $opt_preserve_dup_deps; then
64537899 case "$tmp_libs " in
64547900 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
64557901 esac
64567902 fi
64577903 func_append tmp_libs " $deplib"
64587904 done
6459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6460 func_fatal_error "\`$lib' is not a convenience library"
7905 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7906 func_fatal_error "'$lib' is not a convenience library"
64617907 fi
64627908 continue
64637909 fi # $pass = conv
64667912 # Get the name of the library we link against.
64677913 linklib=
64687914 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
7915 { test yes = "$prefer_static_libs" ||
7916 test built,no = "$prefer_static_libs,$installed"; }; then
64717917 linklib=$old_library
64727918 else
64737919 for l in $old_library $library_names; do
6474 linklib="$l"
7920 linklib=$l
64757921 done
64767922 fi
64777923 if test -z "$linklib"; then
6478 func_fatal_error "cannot find name of link library for \`$lib'"
7924 func_fatal_error "cannot find name of link library for '$lib'"
64797925 fi
64807926
64817927 # This library was specified with -dlopen.
6482 if test "$pass" = dlopen; then
6483 if test -z "$libdir"; then
6484 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6485 fi
7928 if test dlopen = "$pass"; then
7929 test -z "$libdir" \
7930 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
64867931 if test -z "$dlname" ||
6487 test "$dlopen_support" != yes ||
6488 test "$build_libtool_libs" = no; then
7932 test yes != "$dlopen_support" ||
7933 test no = "$build_libtool_libs"
7934 then
64897935 # If there is no dlname, no dlopen support or we're linking
64907936 # statically, we need to preload. We also need to preload any
64917937 # dependent libraries so libltdl's deplib preloader doesn't
64997945
65007946 # We need an absolute path.
65017947 case $ladir in
6502 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
7948 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
65037949 *)
65047950 abs_ladir=`cd "$ladir" && pwd`
65057951 if test -z "$abs_ladir"; then
6506 func_warning "cannot determine absolute directory name of \`$ladir'"
7952 func_warning "cannot determine absolute directory name of '$ladir'"
65077953 func_warning "passing it literally to the linker, although it might fail"
6508 abs_ladir="$ladir"
7954 abs_ladir=$ladir
65097955 fi
65107956 ;;
65117957 esac
65127958 func_basename "$lib"
6513 laname="$func_basename_result"
7959 laname=$func_basename_result
65147960
65157961 # Find the relevant object directory and library name.
6516 if test "X$installed" = Xyes; then
7962 if test yes = "$installed"; then
65177963 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6518 func_warning "library \`$lib' was moved."
6519 dir="$ladir"
6520 absdir="$abs_ladir"
6521 libdir="$abs_ladir"
7964 func_warning "library '$lib' was moved."
7965 dir=$ladir
7966 absdir=$abs_ladir
7967 libdir=$abs_ladir
65227968 else
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
7969 dir=$lt_sysroot$libdir
7970 absdir=$lt_sysroot$libdir
65257971 fi
6526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
7972 test yes = "$hardcode_automatic" && avoidtemprpath=yes
65277973 else
65287974 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6529 dir="$ladir"
6530 absdir="$abs_ladir"
7975 dir=$ladir
7976 absdir=$abs_ladir
65317977 # Remove this search path later
65327978 func_append notinst_path " $abs_ladir"
65337979 else
6534 dir="$ladir/$objdir"
6535 absdir="$abs_ladir/$objdir"
7980 dir=$ladir/$objdir
7981 absdir=$abs_ladir/$objdir
65367982 # Remove this search path later
65377983 func_append notinst_path " $abs_ladir"
65387984 fi
65417987 name=$func_stripname_result
65427988
65437989 # This library was specified with -dlpreopen.
6544 if test "$pass" = dlpreopen; then
6545 if test -z "$libdir" && test "$linkmode" = prog; then
6546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
7990 if test dlpreopen = "$pass"; then
7991 if test -z "$libdir" && test prog = "$linkmode"; then
7992 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
65477993 fi
6548 case "$host" in
7994 case $host in
65497995 # special handling for platforms with PE-DLLs.
65507996 *cygwin* | *mingw* | *cegcc* )
65517997 # Linker will automatically link against shared library if both
65898035
65908036 if test -z "$libdir"; then
65918037 # Link the convenience library
6592 if test "$linkmode" = lib; then
8038 if test lib = "$linkmode"; then
65938039 deplibs="$dir/$old_library $deplibs"
6594 elif test "$linkmode,$pass" = "prog,link"; then
8040 elif test prog,link = "$linkmode,$pass"; then
65958041 compile_deplibs="$dir/$old_library $compile_deplibs"
65968042 finalize_deplibs="$dir/$old_library $finalize_deplibs"
65978043 else
66018047 fi
66028048
66038049
6604 if test "$linkmode" = prog && test "$pass" != link; then
8050 if test prog = "$linkmode" && test link != "$pass"; then
66058051 func_append newlib_search_path " $ladir"
66068052 deplibs="$lib $deplibs"
66078053
6608 linkalldeplibs=no
6609 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6610 test "$build_libtool_libs" = no; then
6611 linkalldeplibs=yes
8054 linkalldeplibs=false
8055 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8056 test no = "$build_libtool_libs"; then
8057 linkalldeplibs=:
66128058 fi
66138059
66148060 tmp_libs=
66208066 ;;
66218067 esac
66228068 # Need to link against all dependency_libs?
6623 if test "$linkalldeplibs" = yes; then
8069 if $linkalldeplibs; then
66248070 deplibs="$deplib $deplibs"
66258071 else
66268072 # Need to hardcode shared library paths
66278073 # or/and link against static libraries
66288074 newdependency_libs="$deplib $newdependency_libs"
66298075 fi
6630 if $opt_preserve_dup_deps ; then
8076 if $opt_preserve_dup_deps; then
66318077 case "$tmp_libs " in
66328078 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
66338079 esac
66378083 continue
66388084 fi # $linkmode = prog...
66398085
6640 if test "$linkmode,$pass" = "prog,link"; then
8086 if test prog,link = "$linkmode,$pass"; then
66418087 if test -n "$library_names" &&
6642 { { test "$prefer_static_libs" = no ||
6643 test "$prefer_static_libs,$installed" = "built,yes"; } ||
8088 { { test no = "$prefer_static_libs" ||
8089 test built,yes = "$prefer_static_libs,$installed"; } ||
66448090 test -z "$old_library"; }; then
66458091 # We need to hardcode the library path
6646 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
8092 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
66478093 # Make sure the rpath contains only unique directories.
6648 case "$temp_rpath:" in
8094 case $temp_rpath: in
66498095 *"$absdir:"*) ;;
66508096 *) func_append temp_rpath "$absdir:" ;;
66518097 esac
66748120 esac
66758121 fi # $linkmode,$pass = prog,link...
66768122
6677 if test "$alldeplibs" = yes &&
6678 { test "$deplibs_check_method" = pass_all ||
6679 { test "$build_libtool_libs" = yes &&
8123 if $alldeplibs &&
8124 { test pass_all = "$deplibs_check_method" ||
8125 { test yes = "$build_libtool_libs" &&
66808126 test -n "$library_names"; }; }; then
66818127 # We only need to search for static libraries
66828128 continue
66858131
66868132 link_static=no # Whether the deplib will be linked statically
66878133 use_static_libs=$prefer_static_libs
6688 if test "$use_static_libs" = built && test "$installed" = yes; then
8134 if test built = "$use_static_libs" && test yes = "$installed"; then
66898135 use_static_libs=no
66908136 fi
66918137 if test -n "$library_names" &&
6692 { test "$use_static_libs" = no || test -z "$old_library"; }; then
8138 { test no = "$use_static_libs" || test -z "$old_library"; }; then
66938139 case $host in
6694 *cygwin* | *mingw* | *cegcc*)
8140 *cygwin* | *mingw* | *cegcc* | *os2*)
66958141 # No point in relinking DLLs because paths are not encoded
66968142 func_append notinst_deplibs " $lib"
66978143 need_relink=no
66988144 ;;
66998145 *)
6700 if test "$installed" = no; then
8146 if test no = "$installed"; then
67018147 func_append notinst_deplibs " $lib"
67028148 need_relink=yes
67038149 fi
67078153
67088154 # Warn about portability, can't link against -module's on some
67098155 # systems (darwin). Don't bleat about dlopened modules though!
6710 dlopenmodule=""
8156 dlopenmodule=
67118157 for dlpremoduletest in $dlprefiles; do
67128158 if test "X$dlpremoduletest" = "X$lib"; then
6713 dlopenmodule="$dlpremoduletest"
8159 dlopenmodule=$dlpremoduletest
67148160 break
67158161 fi
67168162 done
6717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8163 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
67188164 echo
6719 if test "$linkmode" = prog; then
8165 if test prog = "$linkmode"; then
67208166 $ECHO "*** Warning: Linking the executable $output against the loadable module"
67218167 else
67228168 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
67238169 fi
67248170 $ECHO "*** $linklib is not portable!"
67258171 fi
6726 if test "$linkmode" = lib &&
6727 test "$hardcode_into_libs" = yes; then
8172 if test lib = "$linkmode" &&
8173 test yes = "$hardcode_into_libs"; then
67288174 # Hardcode the library path.
67298175 # Skip directories that are in the system default run-time
67308176 # search path.
67528198 # figure out the soname
67538199 set dummy $library_names
67548200 shift
6755 realname="$1"
8201 realname=$1
67568202 shift
67578203 libname=`eval "\\$ECHO \"$libname_spec\""`
67588204 # use dlname if we got it. it's perfectly good, no?
67598205 if test -n "$dlname"; then
6760 soname="$dlname"
8206 soname=$dlname
67618207 elif test -n "$soname_spec"; then
67628208 # bleh windows
67638209 case $host in
6764 *cygwin* | mingw* | *cegcc*)
8210 *cygwin* | mingw* | *cegcc* | *os2*)
67658211 func_arith $current - $age
67668212 major=$func_arith_result
6767 versuffix="-$major"
8213 versuffix=-$major
67688214 ;;
67698215 esac
67708216 eval soname=\"$soname_spec\"
67718217 else
6772 soname="$realname"
8218 soname=$realname
67738219 fi
67748220
67758221 # Make a new name for the extract_expsyms_cmds to use
6776 soroot="$soname"
8222 soroot=$soname
67778223 func_basename "$soroot"
6778 soname="$func_basename_result"
8224 soname=$func_basename_result
67798225 func_stripname 'lib' '.dll' "$soname"
67808226 newlib=libimp-$func_stripname_result.a
67818227
67828228 # If the library has no export list, then create one now
67838229 if test -f "$output_objdir/$soname-def"; then :
67848230 else
6785 func_verbose "extracting exported symbol list from \`$soname'"
8231 func_verbose "extracting exported symbol list from '$soname'"
67868232 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
67878233 fi
67888234
67898235 # Create $newlib
67908236 if test -f "$output_objdir/$newlib"; then :; else
6791 func_verbose "generating import library for \`$soname'"
8237 func_verbose "generating import library for '$soname'"
67928238 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
67938239 fi
67948240 # make sure the library variables are pointing to the new library
67968242 linklib=$newlib
67978243 fi # test -n "$old_archive_from_expsyms_cmds"
67988244
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
8245 if test prog = "$linkmode" || test relink != "$opt_mode"; then
68008246 add_shlibpath=
68018247 add_dir=
68028248 add=
68038249 lib_linked=yes
68048250 case $hardcode_action in
68058251 immediate | unsupported)
6806 if test "$hardcode_direct" = no; then
6807 add="$dir/$linklib"
8252 if test no = "$hardcode_direct"; then
8253 add=$dir/$linklib
68088254 case $host in
6809 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6810 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
8255 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8256 *-*-sysv4*uw2*) add_dir=-L$dir ;;
68118257 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6812 *-*-unixware7*) add_dir="-L$dir" ;;
8258 *-*-unixware7*) add_dir=-L$dir ;;
68138259 *-*-darwin* )
6814 # if the lib is a (non-dlopened) module then we can not
8260 # if the lib is a (non-dlopened) module then we cannot
68158261 # link against it, someone is ignoring the earlier warnings
68168262 if /usr/bin/file -L $add 2> /dev/null |
6817 $GREP ": [^:]* bundle" >/dev/null ; then
8263 $GREP ": [^:]* bundle" >/dev/null; then
68188264 if test "X$dlopenmodule" != "X$lib"; then
68198265 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6820 if test -z "$old_library" ; then
8266 if test -z "$old_library"; then
68218267 echo
68228268 echo "*** And there doesn't seem to be a static archive available"
68238269 echo "*** The link will probably fail, sorry"
68248270 else
6825 add="$dir/$old_library"
8271 add=$dir/$old_library
68268272 fi
68278273 elif test -n "$old_library"; then
6828 add="$dir/$old_library"
8274 add=$dir/$old_library
68298275 fi
68308276 fi
68318277 esac
6832 elif test "$hardcode_minus_L" = no; then
8278 elif test no = "$hardcode_minus_L"; then
68338279 case $host in
6834 *-*-sunos*) add_shlibpath="$dir" ;;
8280 *-*-sunos*) add_shlibpath=$dir ;;
68358281 esac
6836 add_dir="-L$dir"
6837 add="-l$name"
6838 elif test "$hardcode_shlibpath_var" = no; then
6839 add_shlibpath="$dir"
6840 add="-l$name"
8282 add_dir=-L$dir
8283 add=-l$name
8284 elif test no = "$hardcode_shlibpath_var"; then
8285 add_shlibpath=$dir
8286 add=-l$name
68418287 else
68428288 lib_linked=no
68438289 fi
68448290 ;;
68458291 relink)
6846 if test "$hardcode_direct" = yes &&
6847 test "$hardcode_direct_absolute" = no; then
6848 add="$dir/$linklib"
6849 elif test "$hardcode_minus_L" = yes; then
6850 add_dir="-L$absdir"
8292 if test yes = "$hardcode_direct" &&
8293 test no = "$hardcode_direct_absolute"; then
8294 add=$dir/$linklib
8295 elif test yes = "$hardcode_minus_L"; then
8296 add_dir=-L$absdir
68518297 # Try looking first in the location we're being installed to.
68528298 if test -n "$inst_prefix_dir"; then
68538299 case $libdir in
68568302 ;;
68578303 esac
68588304 fi
6859 add="-l$name"
6860 elif test "$hardcode_shlibpath_var" = yes; then
6861 add_shlibpath="$dir"
6862 add="-l$name"
8305 add=-l$name
8306 elif test yes = "$hardcode_shlibpath_var"; then
8307 add_shlibpath=$dir
8308 add=-l$name
68638309 else
68648310 lib_linked=no
68658311 fi
68678313 *) lib_linked=no ;;
68688314 esac
68698315
6870 if test "$lib_linked" != yes; then
8316 if test yes != "$lib_linked"; then
68718317 func_fatal_configuration "unsupported hardcode properties"
68728318 fi
68738319
68778323 *) func_append compile_shlibpath "$add_shlibpath:" ;;
68788324 esac
68798325 fi
6880 if test "$linkmode" = prog; then
8326 if test prog = "$linkmode"; then
68818327 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
68828328 test -n "$add" && compile_deplibs="$add $compile_deplibs"
68838329 else
68848330 test -n "$add_dir" && deplibs="$add_dir $deplibs"
68858331 test -n "$add" && deplibs="$add $deplibs"
6886 if test "$hardcode_direct" != yes &&
6887 test "$hardcode_minus_L" != yes &&
6888 test "$hardcode_shlibpath_var" = yes; then
8332 if test yes != "$hardcode_direct" &&
8333 test yes != "$hardcode_minus_L" &&
8334 test yes = "$hardcode_shlibpath_var"; then
68898335 case :$finalize_shlibpath: in
68908336 *":$libdir:"*) ;;
68918337 *) func_append finalize_shlibpath "$libdir:" ;;
68948340 fi
68958341 fi
68968342
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
8343 if test prog = "$linkmode" || test relink = "$opt_mode"; then
68988344 add_shlibpath=
68998345 add_dir=
69008346 add=
69018347 # Finalize command for both is simple: just hardcode it.
6902 if test "$hardcode_direct" = yes &&
6903 test "$hardcode_direct_absolute" = no; then
6904 add="$libdir/$linklib"
6905 elif test "$hardcode_minus_L" = yes; then
6906 add_dir="-L$libdir"
6907 add="-l$name"
6908 elif test "$hardcode_shlibpath_var" = yes; then
8348 if test yes = "$hardcode_direct" &&
8349 test no = "$hardcode_direct_absolute"; then
8350 add=$libdir/$linklib
8351 elif test yes = "$hardcode_minus_L"; then
8352 add_dir=-L$libdir
8353 add=-l$name
8354 elif test yes = "$hardcode_shlibpath_var"; then
69098355 case :$finalize_shlibpath: in
69108356 *":$libdir:"*) ;;
69118357 *) func_append finalize_shlibpath "$libdir:" ;;
69128358 esac
6913 add="-l$name"
6914 elif test "$hardcode_automatic" = yes; then
8359 add=-l$name
8360 elif test yes = "$hardcode_automatic"; then
69158361 if test -n "$inst_prefix_dir" &&
6916 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6917 add="$inst_prefix_dir$libdir/$linklib"
8362 test -f "$inst_prefix_dir$libdir/$linklib"; then
8363 add=$inst_prefix_dir$libdir/$linklib
69188364 else
6919 add="$libdir/$linklib"
8365 add=$libdir/$linklib
69208366 fi
69218367 else
69228368 # We cannot seem to hardcode it, guess we'll fake it.
6923 add_dir="-L$libdir"
8369 add_dir=-L$libdir
69248370 # Try looking first in the location we're being installed to.
69258371 if test -n "$inst_prefix_dir"; then
69268372 case $libdir in
69298375 ;;
69308376 esac
69318377 fi
6932 add="-l$name"
8378 add=-l$name
69338379 fi
69348380
6935 if test "$linkmode" = prog; then
8381 if test prog = "$linkmode"; then
69368382 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
69378383 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
69388384 else
69408386 test -n "$add" && deplibs="$add $deplibs"
69418387 fi
69428388 fi
6943 elif test "$linkmode" = prog; then
8389 elif test prog = "$linkmode"; then
69448390 # Here we assume that one of hardcode_direct or hardcode_minus_L
69458391 # is not unsupported. This is valid on all known static and
69468392 # shared platforms.
6947 if test "$hardcode_direct" != unsupported; then
6948 test -n "$old_library" && linklib="$old_library"
8393 if test unsupported != "$hardcode_direct"; then
8394 test -n "$old_library" && linklib=$old_library
69498395 compile_deplibs="$dir/$linklib $compile_deplibs"
69508396 finalize_deplibs="$dir/$linklib $finalize_deplibs"
69518397 else
69528398 compile_deplibs="-l$name -L$dir $compile_deplibs"
69538399 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
69548400 fi
6955 elif test "$build_libtool_libs" = yes; then
8401 elif test yes = "$build_libtool_libs"; then
69568402 # Not a shared library
6957 if test "$deplibs_check_method" != pass_all; then
8403 if test pass_all != "$deplibs_check_method"; then
69588404 # We're trying link a shared library against a static one
69598405 # but the system doesn't support it.
69608406
69618407 # Just print a warning and add the library to dependency_libs so
69628408 # that the program can be linked against the static library.
69638409 echo
6964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8410 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
69658411 echo "*** I have the capability to make that library automatically link in when"
69668412 echo "*** you link to this library. But I can only do this if you have a"
69678413 echo "*** shared version of the library, which you do not appear to have."
6968 if test "$module" = yes; then
8414 if test yes = "$module"; then
69698415 echo "*** But as you try to build a module library, libtool will still create "
69708416 echo "*** a static module, that should work as long as the dlopening application"
69718417 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
69728418 if test -z "$global_symbol_pipe"; then
69738419 echo
69748420 echo "*** However, this would only work if libtool was able to extract symbol"
6975 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8421 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
69768422 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8423 echo "*** 'nm' from GNU binutils and a full rebuild may help."
69788424 fi
6979 if test "$build_old_libs" = no; then
8425 if test no = "$build_old_libs"; then
69808426 build_libtool_libs=module
69818427 build_old_libs=yes
69828428 else
69898435 fi
69908436 fi # link shared/static library?
69918437
6992 if test "$linkmode" = lib; then
8438 if test lib = "$linkmode"; then
69938439 if test -n "$dependency_libs" &&
6994 { test "$hardcode_into_libs" != yes ||
6995 test "$build_old_libs" = yes ||
6996 test "$link_static" = yes; }; then
8440 { test yes != "$hardcode_into_libs" ||
8441 test yes = "$build_old_libs" ||
8442 test yes = "$link_static"; }; then
69978443 # Extract -R from dependency_libs
69988444 temp_deplibs=
69998445 for libdir in $dependency_libs; do
70078453 *) func_append temp_deplibs " $libdir";;
70088454 esac
70098455 done
7010 dependency_libs="$temp_deplibs"
8456 dependency_libs=$temp_deplibs
70118457 fi
70128458
70138459 func_append newlib_search_path " $absdir"
70148460 # Link against this library
7015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8461 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
70168462 # ... and its dependency_libs
70178463 tmp_libs=
70188464 for deplib in $dependency_libs; do
70228468 func_resolve_sysroot "$func_stripname_result";;
70238469 *) func_resolve_sysroot "$deplib" ;;
70248470 esac
7025 if $opt_preserve_dup_deps ; then
8471 if $opt_preserve_dup_deps; then
70268472 case "$tmp_libs " in
70278473 *" $func_resolve_sysroot_result "*)
70288474 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
70318477 func_append tmp_libs " $func_resolve_sysroot_result"
70328478 done
70338479
7034 if test "$link_all_deplibs" != no; then
8480 if test no != "$link_all_deplibs"; then
70358481 # Add the search paths of all dependency libraries
70368482 for deplib in $dependency_libs; do
70378483 path=
70388484 case $deplib in
7039 -L*) path="$deplib" ;;
8485 -L*) path=$deplib ;;
70408486 *.la)
70418487 func_resolve_sysroot "$deplib"
70428488 deplib=$func_resolve_sysroot_result
70448490 dir=$func_dirname_result
70458491 # We need an absolute path.
70468492 case $dir in
7047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
8493 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
70488494 *)
70498495 absdir=`cd "$dir" && pwd`
70508496 if test -z "$absdir"; then
7051 func_warning "cannot determine absolute directory name of \`$dir'"
7052 absdir="$dir"
8497 func_warning "cannot determine absolute directory name of '$dir'"
8498 absdir=$dir
70538499 fi
70548500 ;;
70558501 esac
70578503 case $host in
70588504 *-*-darwin*)
70598505 depdepl=
7060 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7061 if test -n "$deplibrary_names" ; then
7062 for tmp in $deplibrary_names ; do
8506 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8507 if test -n "$deplibrary_names"; then
8508 for tmp in $deplibrary_names; do
70638509 depdepl=$tmp
70648510 done
7065 if test -f "$absdir/$objdir/$depdepl" ; then
7066 depdepl="$absdir/$objdir/$depdepl"
7067 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8511 if test -f "$absdir/$objdir/$depdepl"; then
8512 depdepl=$absdir/$objdir/$depdepl
8513 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70688514 if test -z "$darwin_install_name"; then
7069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8515 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70708516 fi
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
8517 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8518 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
70738519 path=
70748520 fi
70758521 fi
70768522 ;;
70778523 *)
7078 path="-L$absdir/$objdir"
8524 path=-L$absdir/$objdir
70798525 ;;
70808526 esac
70818527 else
7082 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8528 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
70838529 test -z "$libdir" && \
7084 func_fatal_error "\`$deplib' is not a valid libtool archive"
8530 func_fatal_error "'$deplib' is not a valid libtool archive"
70858531 test "$absdir" != "$libdir" && \
7086 func_warning "\`$deplib' seems to be moved"
7087
7088 path="-L$absdir"
8532 func_warning "'$deplib' seems to be moved"
8533
8534 path=-L$absdir
70898535 fi
70908536 ;;
70918537 esac
70978543 fi # link_all_deplibs != no
70988544 fi # linkmode = lib
70998545 done # for deplib in $libs
7100 if test "$pass" = link; then
7101 if test "$linkmode" = "prog"; then
8546 if test link = "$pass"; then
8547 if test prog = "$linkmode"; then
71028548 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
71038549 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
71048550 else
71058551 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
71068552 fi
71078553 fi
7108 dependency_libs="$newdependency_libs"
7109 if test "$pass" = dlpreopen; then
8554 dependency_libs=$newdependency_libs
8555 if test dlpreopen = "$pass"; then
71108556 # Link the dlpreopened libraries before other libraries
71118557 for deplib in $save_deplibs; do
71128558 deplibs="$deplib $deplibs"
71138559 done
71148560 fi
7115 if test "$pass" != dlopen; then
7116 if test "$pass" != conv; then
8561 if test dlopen != "$pass"; then
8562 test conv = "$pass" || {
71178563 # Make sure lib_search_path contains only unique directories.
71188564 lib_search_path=
71198565 for dir in $newlib_search_path; do
71238569 esac
71248570 done
71258571 newlib_search_path=
7126 fi
7127
7128 if test "$linkmode,$pass" != "prog,link"; then
7129 vars="deplibs"
8572 }
8573
8574 if test prog,link = "$linkmode,$pass"; then
8575 vars="compile_deplibs finalize_deplibs"
71308576 else
7131 vars="compile_deplibs finalize_deplibs"
8577 vars=deplibs
71328578 fi
71338579 for var in $vars dependency_libs; do
71348580 # Add libraries to $var in reverse order
71868632 eval $var=\"$tmp_libs\"
71878633 done # for var
71888634 fi
8635
8636 # Add Sun CC postdeps if required:
8637 test CXX = "$tagname" && {
8638 case $host_os in
8639 linux*)
8640 case `$CC -V 2>&1 | sed 5q` in
8641 *Sun\ C*) # Sun C++ 5.9
8642 func_suncc_cstd_abi
8643
8644 if test no != "$suncc_use_cstd_abi"; then
8645 func_append postdeps ' -library=Cstd -library=Crun'
8646 fi
8647 ;;
8648 esac
8649 ;;
8650
8651 solaris*)
8652 func_cc_basename "$CC"
8653 case $func_cc_basename_result in
8654 CC* | sunCC*)
8655 func_suncc_cstd_abi
8656
8657 if test no != "$suncc_use_cstd_abi"; then
8658 func_append postdeps ' -library=Cstd -library=Crun'
8659 fi
8660 ;;
8661 esac
8662 ;;
8663 esac
8664 }
8665
71898666 # Last step: remove runtime libs from dependency_libs
71908667 # (they stay in deplibs)
71918668 tmp_libs=
7192 for i in $dependency_libs ; do
8669 for i in $dependency_libs; do
71938670 case " $predeps $postdeps $compiler_lib_search_path " in
71948671 *" $i "*)
7195 i=""
8672 i=
71968673 ;;
71978674 esac
7198 if test -n "$i" ; then
8675 if test -n "$i"; then
71998676 func_append tmp_libs " $i"
72008677 fi
72018678 done
72028679 dependency_libs=$tmp_libs
72038680 done # for pass
7204 if test "$linkmode" = prog; then
7205 dlfiles="$newdlfiles"
8681 if test prog = "$linkmode"; then
8682 dlfiles=$newdlfiles
72068683 fi
7207 if test "$linkmode" = prog || test "$linkmode" = lib; then
7208 dlprefiles="$newdlprefiles"
8684 if test prog = "$linkmode" || test lib = "$linkmode"; then
8685 dlprefiles=$newdlprefiles
72098686 fi
72108687
72118688 case $linkmode in
72128689 oldlib)
7213 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7214 func_warning "\`-dlopen' is ignored for archives"
8690 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8691 func_warning "'-dlopen' is ignored for archives"
72158692 fi
72168693
72178694 case " $deplibs" in
72188695 *\ -l* | *\ -L*)
7219 func_warning "\`-l' and \`-L' are ignored for archives" ;;
8696 func_warning "'-l' and '-L' are ignored for archives" ;;
72208697 esac
72218698
72228699 test -n "$rpath" && \
7223 func_warning "\`-rpath' is ignored for archives"
8700 func_warning "'-rpath' is ignored for archives"
72248701
72258702 test -n "$xrpath" && \
7226 func_warning "\`-R' is ignored for archives"
8703 func_warning "'-R' is ignored for archives"
72278704
72288705 test -n "$vinfo" && \
7229 func_warning "\`-version-info/-version-number' is ignored for archives"
8706 func_warning "'-version-info/-version-number' is ignored for archives"
72308707
72318708 test -n "$release" && \
7232 func_warning "\`-release' is ignored for archives"
8709 func_warning "'-release' is ignored for archives"
72338710
72348711 test -n "$export_symbols$export_symbols_regex" && \
7235 func_warning "\`-export-symbols' is ignored for archives"
8712 func_warning "'-export-symbols' is ignored for archives"
72368713
72378714 # Now set the variables for building old libraries.
72388715 build_libtool_libs=no
7239 oldlibs="$output"
8716 oldlibs=$output
72408717 func_append objs "$old_deplibs"
72418718 ;;
72428719
72438720 lib)
7244 # Make sure we only generate libraries of the form `libNAME.la'.
8721 # Make sure we only generate libraries of the form 'libNAME.la'.
72458722 case $outputname in
72468723 lib*)
72478724 func_stripname 'lib' '.la' "$outputname"
72508727 eval libname=\"$libname_spec\"
72518728 ;;
72528729 *)
7253 test "$module" = no && \
7254 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7255
7256 if test "$need_lib_prefix" != no; then
8730 test no = "$module" \
8731 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8732
8733 if test no != "$need_lib_prefix"; then
72578734 # Add the "lib" prefix for modules if required
72588735 func_stripname '' '.la' "$outputname"
72598736 name=$func_stripname_result
72678744 esac
72688745
72698746 if test -n "$objs"; then
7270 if test "$deplibs_check_method" != pass_all; then
7271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
8747 if test pass_all != "$deplibs_check_method"; then
8748 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
72728749 else
72738750 echo
72748751 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72778754 fi
72788755 fi
72798756
7280 test "$dlself" != no && \
7281 func_warning "\`-dlopen self' is ignored for libtool libraries"
8757 test no = "$dlself" \
8758 || func_warning "'-dlopen self' is ignored for libtool libraries"
72828759
72838760 set dummy $rpath
72848761 shift
7285 test "$#" -gt 1 && \
7286 func_warning "ignoring multiple \`-rpath's for a libtool library"
7287
7288 install_libdir="$1"
8762 test 1 -lt "$#" \
8763 && func_warning "ignoring multiple '-rpath's for a libtool library"
8764
8765 install_libdir=$1
72898766
72908767 oldlibs=
72918768 if test -z "$rpath"; then
7292 if test "$build_libtool_libs" = yes; then
8769 if test yes = "$build_libtool_libs"; then
72938770 # Building a libtool convenience library.
7294 # Some compilers have problems with a `.al' extension so
8771 # Some compilers have problems with a '.al' extension so
72958772 # convenience libraries should have the same extension an
72968773 # archive normally would.
72978774 oldlibs="$output_objdir/$libname.$libext $oldlibs"
73008777 fi
73018778
73028779 test -n "$vinfo" && \
7303 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
8780 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
73048781
73058782 test -n "$release" && \
7306 func_warning "\`-release' is ignored for convenience libraries"
8783 func_warning "'-release' is ignored for convenience libraries"
73078784 else
73088785
73098786 # Parse the version information argument.
7310 save_ifs="$IFS"; IFS=':'
8787 save_ifs=$IFS; IFS=:
73118788 set dummy $vinfo 0 0 0
73128789 shift
7313 IFS="$save_ifs"
8790 IFS=$save_ifs
73148791
73158792 test -n "$7" && \
7316 func_fatal_help "too many parameters to \`-version-info'"
8793 func_fatal_help "too many parameters to '-version-info'"
73178794
73188795 # convert absolute version numbers to libtool ages
73198796 # this retains compatibility with .la files and attempts
73218798
73228799 case $vinfo_number in
73238800 yes)
7324 number_major="$1"
7325 number_minor="$2"
7326 number_revision="$3"
8801 number_major=$1
8802 number_minor=$2
8803 number_revision=$3
73278804 #
73288805 # There are really only two kinds -- those that
73298806 # use the current revision as the major version
73308807 # and those that subtract age and use age as
73318808 # a minor version. But, then there is irix
7332 # which has an extra 1 added just for fun
8809 # that has an extra 1 added just for fun
73338810 #
73348811 case $version_type in
73358812 # correct linux to gnu/linux during the next big refactor
7336 darwin|linux|osf|windows|none)
8813 darwin|freebsd-elf|linux|osf|windows|none)
73378814 func_arith $number_major + $number_minor
73388815 current=$func_arith_result
7339 age="$number_minor"
7340 revision="$number_revision"
8816 age=$number_minor
8817 revision=$number_revision
73418818 ;;
7342 freebsd-aout|freebsd-elf|qnx|sunos)
7343 current="$number_major"
7344 revision="$number_minor"
7345 age="0"
8819 freebsd-aout|qnx|sunos)
8820 current=$number_major
8821 revision=$number_minor
8822 age=0
73468823 ;;
73478824 irix|nonstopux)
73488825 func_arith $number_major + $number_minor
73498826 current=$func_arith_result
7350 age="$number_minor"
7351 revision="$number_minor"
8827 age=$number_minor
8828 revision=$number_minor
73528829 lt_irix_increment=no
73538830 ;;
73548831 *)
7355 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
8832 func_fatal_configuration "$modename: unknown library version type '$version_type'"
73568833 ;;
73578834 esac
73588835 ;;
73598836 no)
7360 current="$1"
7361 revision="$2"
7362 age="$3"
8837 current=$1
8838 revision=$2
8839 age=$3
73638840 ;;
73648841 esac
73658842
73678844 case $current in
73688845 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73698846 *)
7370 func_error "CURRENT \`$current' must be a nonnegative integer"
7371 func_fatal_error "\`$vinfo' is not valid version information"
8847 func_error "CURRENT '$current' must be a nonnegative integer"
8848 func_fatal_error "'$vinfo' is not valid version information"
73728849 ;;
73738850 esac
73748851
73758852 case $revision in
73768853 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73778854 *)
7378 func_error "REVISION \`$revision' must be a nonnegative integer"
7379 func_fatal_error "\`$vinfo' is not valid version information"
8855 func_error "REVISION '$revision' must be a nonnegative integer"
8856 func_fatal_error "'$vinfo' is not valid version information"
73808857 ;;
73818858 esac
73828859
73838860 case $age in
73848861 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73858862 *)
7386 func_error "AGE \`$age' must be a nonnegative integer"
7387 func_fatal_error "\`$vinfo' is not valid version information"
8863 func_error "AGE '$age' must be a nonnegative integer"
8864 func_fatal_error "'$vinfo' is not valid version information"
73888865 ;;
73898866 esac
73908867
73918868 if test "$age" -gt "$current"; then
7392 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7393 func_fatal_error "\`$vinfo' is not valid version information"
8869 func_error "AGE '$age' is greater than the current interface number '$current'"
8870 func_fatal_error "'$vinfo' is not valid version information"
73948871 fi
73958872
73968873 # Calculate the version variables.
74058882 # verstring for coding it into the library header
74068883 func_arith $current - $age
74078884 major=.$func_arith_result
7408 versuffix="$major.$age.$revision"
8885 versuffix=$major.$age.$revision
74098886 # Darwin ld doesn't like 0 for these options...
74108887 func_arith $current + 1
74118888 minor_current=$func_arith_result
7412 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8889 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
74138890 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8891 # On Darwin other compilers
8892 case $CC in
8893 nagfor*)
8894 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8895 ;;
8896 *)
8897 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8898 ;;
8899 esac
74148900 ;;
74158901
74168902 freebsd-aout)
7417 major=".$current"
7418 versuffix=".$current.$revision";
8903 major=.$current
8904 versuffix=.$current.$revision
74198905 ;;
74208906
74218907 freebsd-elf)
7422 major=".$current"
7423 versuffix=".$current"
8908 func_arith $current - $age
8909 major=.$func_arith_result
8910 versuffix=$major.$age.$revision
74248911 ;;
74258912
74268913 irix | nonstopux)
7427 if test "X$lt_irix_increment" = "Xno"; then
8914 if test no = "$lt_irix_increment"; then
74288915 func_arith $current - $age
74298916 else
74308917 func_arith $current - $age + 1
74358922 nonstopux) verstring_prefix=nonstopux ;;
74368923 *) verstring_prefix=sgi ;;
74378924 esac
7438 verstring="$verstring_prefix$major.$revision"
8925 verstring=$verstring_prefix$major.$revision
74398926
74408927 # Add in all the interfaces that we are compatible with.
74418928 loop=$revision
7442 while test "$loop" -ne 0; do
8929 while test 0 -ne "$loop"; do
74438930 func_arith $revision - $loop
74448931 iface=$func_arith_result
74458932 func_arith $loop - 1
74468933 loop=$func_arith_result
7447 verstring="$verstring_prefix$major.$iface:$verstring"
8934 verstring=$verstring_prefix$major.$iface:$verstring
74488935 done
74498936
7450 # Before this point, $major must not contain `.'.
8937 # Before this point, $major must not contain '.'.
74518938 major=.$major
7452 versuffix="$major.$revision"
8939 versuffix=$major.$revision
74538940 ;;
74548941
74558942 linux) # correct to gnu/linux during the next big refactor
74568943 func_arith $current - $age
74578944 major=.$func_arith_result
7458 versuffix="$major.$age.$revision"
8945 versuffix=$major.$age.$revision
74598946 ;;
74608947
74618948 osf)
74628949 func_arith $current - $age
74638950 major=.$func_arith_result
7464 versuffix=".$current.$age.$revision"
7465 verstring="$current.$age.$revision"
8951 versuffix=.$current.$age.$revision
8952 verstring=$current.$age.$revision
74668953
74678954 # Add in all the interfaces that we are compatible with.
74688955 loop=$age
7469 while test "$loop" -ne 0; do
8956 while test 0 -ne "$loop"; do
74708957 func_arith $current - $loop
74718958 iface=$func_arith_result
74728959 func_arith $loop - 1
74738960 loop=$func_arith_result
7474 verstring="$verstring:${iface}.0"
8961 verstring=$verstring:$iface.0
74758962 done
74768963
74778964 # Make executables depend on our current version.
7478 func_append verstring ":${current}.0"
8965 func_append verstring ":$current.0"
74798966 ;;
74808967
74818968 qnx)
7482 major=".$current"
7483 versuffix=".$current"
8969 major=.$current
8970 versuffix=.$current
74848971 ;;
74858972
8973 sco)
8974 major=.$current
8975 versuffix=.$current
8976 ;;
8977
74868978 sunos)
7487 major=".$current"
7488 versuffix=".$current.$revision"
8979 major=.$current
8980 versuffix=.$current.$revision
74898981 ;;
74908982
74918983 windows)
74928984 # Use '-' rather than '.', since we only want one
7493 # extension on DOS 8.3 filesystems.
8985 # extension on DOS 8.3 file systems.
74948986 func_arith $current - $age
74958987 major=$func_arith_result
7496 versuffix="-$major"
8988 versuffix=-$major
74978989 ;;
74988990
74998991 *)
7500 func_fatal_configuration "unknown library version type \`$version_type'"
8992 func_fatal_configuration "unknown library version type '$version_type'"
75018993 ;;
75028994 esac
75038995
75119003 verstring=
75129004 ;;
75139005 *)
7514 verstring="0.0"
9006 verstring=0.0
75159007 ;;
75169008 esac
7517 if test "$need_version" = no; then
9009 if test no = "$need_version"; then
75189010 versuffix=
75199011 else
7520 versuffix=".0.0"
9012 versuffix=.0.0
75219013 fi
75229014 fi
75239015
75249016 # Remove version info from name if versioning should be avoided
7525 if test "$avoid_version" = yes && test "$need_version" = no; then
9017 if test yes,no = "$avoid_version,$need_version"; then
75269018 major=
75279019 versuffix=
7528 verstring=""
9020 verstring=
75299021 fi
75309022
75319023 # Check to see if the archive will have undefined symbols.
7532 if test "$allow_undefined" = yes; then
7533 if test "$allow_undefined_flag" = unsupported; then
7534 func_warning "undefined symbols not allowed in $host shared libraries"
7535 build_libtool_libs=no
7536 build_old_libs=yes
9024 if test yes = "$allow_undefined"; then
9025 if test unsupported = "$allow_undefined_flag"; then
9026 if test yes = "$build_old_libs"; then
9027 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9028 build_libtool_libs=no
9029 else
9030 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9031 fi
75379032 fi
75389033 else
75399034 # Don't allow undefined symbols.
7540 allow_undefined_flag="$no_undefined_flag"
9035 allow_undefined_flag=$no_undefined_flag
75419036 fi
75429037
75439038 fi
75449039
7545 func_generate_dlsyms "$libname" "$libname" "yes"
9040 func_generate_dlsyms "$libname" "$libname" :
75469041 func_append libobjs " $symfileobj"
7547 test "X$libobjs" = "X " && libobjs=
7548
7549 if test "$opt_mode" != relink; then
9042 test " " = "$libobjs" && libobjs=
9043
9044 if test relink != "$opt_mode"; then
75509045 # Remove our outputs, but don't remove object files since they
75519046 # may have been created when compiling PIC objects.
75529047 removelist=
75559050 case $p in
75569051 *.$objext | *.gcno)
75579052 ;;
7558 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7559 if test "X$precious_files_regex" != "X"; then
9053 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9054 if test -n "$precious_files_regex"; then
75609055 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
75619056 then
75629057 continue
75729067 fi
75739068
75749069 # Now set the variables for building old libraries.
7575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
9070 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
75769071 func_append oldlibs " $output_objdir/$libname.$libext"
75779072
75789073 # Transform .lo files to .o files.
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
9074 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
75809075 fi
75819076
75829077 # Eliminate all temporary directories.
75979092 *) func_append finalize_rpath " $libdir" ;;
75989093 esac
75999094 done
7600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
9095 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
76019096 dependency_libs="$temp_xrpath $dependency_libs"
76029097 fi
76039098 fi
76049099
76059100 # Make sure dlfiles contains only unique files that won't be dlpreopened
7606 old_dlfiles="$dlfiles"
9101 old_dlfiles=$dlfiles
76079102 dlfiles=
76089103 for lib in $old_dlfiles; do
76099104 case " $dlprefiles $dlfiles " in
76139108 done
76149109
76159110 # Make sure dlprefiles contains only unique files
7616 old_dlprefiles="$dlprefiles"
9111 old_dlprefiles=$dlprefiles
76179112 dlprefiles=
76189113 for lib in $old_dlprefiles; do
76199114 case "$dlprefiles " in
76229117 esac
76239118 done
76249119
7625 if test "$build_libtool_libs" = yes; then
9120 if test yes = "$build_libtool_libs"; then
76269121 if test -n "$rpath"; then
76279122 case $host in
76289123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
76469141 ;;
76479142 *)
76489143 # Add libc to deplibs on all other systems if necessary.
7649 if test "$build_libtool_need_lc" = "yes"; then
9144 if test yes = "$build_libtool_need_lc"; then
76509145 func_append deplibs " -lc"
76519146 fi
76529147 ;;
76629157 # I'm not sure if I'm treating the release correctly. I think
76639158 # release should show up in the -l (ie -lgmp5) so we don't want to
76649159 # add it in twice. Is that correct?
7665 release=""
7666 versuffix=""
7667 major=""
9160 release=
9161 versuffix=
9162 major=
76689163 newdeplibs=
76699164 droppeddeps=no
76709165 case $deplibs_check_method in
76939188 -l*)
76949189 func_stripname -l '' "$i"
76959190 name=$func_stripname_result
7696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9191 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
76979192 case " $predeps $postdeps " in
76989193 *" $i "*)
76999194 func_append newdeplibs " $i"
7700 i=""
9195 i=
77019196 ;;
77029197 esac
77039198 fi
7704 if test -n "$i" ; then
9199 if test -n "$i"; then
77059200 libname=`eval "\\$ECHO \"$libname_spec\""`
77069201 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77079202 set dummy $deplib_matches; shift
77089203 deplib_match=$1
7709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9204 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77109205 func_append newdeplibs " $i"
77119206 else
77129207 droppeddeps=yes
77369231 $opt_dry_run || $RM conftest
77379232 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
77389233 ldd_output=`ldd conftest`
7739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9234 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77409235 case " $predeps $postdeps " in
77419236 *" $i "*)
77429237 func_append newdeplibs " $i"
7743 i=""
9238 i=
77449239 ;;
77459240 esac
77469241 fi
7747 if test -n "$i" ; then
9242 if test -n "$i"; then
77489243 libname=`eval "\\$ECHO \"$libname_spec\""`
77499244 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77509245 set dummy $deplib_matches; shift
77519246 deplib_match=$1
7752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9247 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77539248 func_append newdeplibs " $i"
77549249 else
77559250 droppeddeps=yes
77869281 -l*)
77879282 func_stripname -l '' "$a_deplib"
77889283 name=$func_stripname_result
7789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9284 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77909285 case " $predeps $postdeps " in
77919286 *" $a_deplib "*)
77929287 func_append newdeplibs " $a_deplib"
7793 a_deplib=""
9288 a_deplib=
77949289 ;;
77959290 esac
77969291 fi
7797 if test -n "$a_deplib" ; then
9292 if test -n "$a_deplib"; then
77989293 libname=`eval "\\$ECHO \"$libname_spec\""`
77999294 if test -n "$file_magic_glob"; then
78009295 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
78019296 else
78029297 libnameglob=$libname
78039298 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
9299 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
78059300 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7806 if test "$want_nocaseglob" = yes; then
9301 if test yes = "$want_nocaseglob"; then
78079302 shopt -s nocaseglob
78089303 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
78099304 $nocaseglob
78219316 # We might still enter an endless loop, since a link
78229317 # loop can be closed while we follow links,
78239318 # but so what?
7824 potlib="$potent_lib"
9319 potlib=$potent_lib
78259320 while test -h "$potlib" 2>/dev/null; do
7826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
9321 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
78279322 case $potliblink in
7828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
9323 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9324 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
78309325 esac
78319326 done
78329327 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78339328 $SED -e 10q |
78349329 $EGREP "$file_magic_regex" > /dev/null; then
78359330 func_append newdeplibs " $a_deplib"
7836 a_deplib=""
9331 a_deplib=
78379332 break 2
78389333 fi
78399334 done
78409335 done
78419336 fi
7842 if test -n "$a_deplib" ; then
9337 if test -n "$a_deplib"; then
78439338 droppeddeps=yes
78449339 echo
78459340 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78479342 echo "*** you link to this library. But I can only do this if you have a"
78489343 echo "*** shared version of the library, which you do not appear to have"
78499344 echo "*** because I did check the linker path looking for a file starting"
7850 if test -z "$potlib" ; then
9345 if test -z "$potlib"; then
78519346 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78529347 else
78539348 $ECHO "*** with $libname and none of the candidates passed a file format test"
78709365 -l*)
78719366 func_stripname -l '' "$a_deplib"
78729367 name=$func_stripname_result
7873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9368 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
78749369 case " $predeps $postdeps " in
78759370 *" $a_deplib "*)
78769371 func_append newdeplibs " $a_deplib"
7877 a_deplib=""
9372 a_deplib=
78789373 ;;
78799374 esac
78809375 fi
7881 if test -n "$a_deplib" ; then
9376 if test -n "$a_deplib"; then
78829377 libname=`eval "\\$ECHO \"$libname_spec\""`
78839378 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
78849379 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78859380 for potent_lib in $potential_libs; do
7886 potlib="$potent_lib" # see symlink-check above in file_magic test
9381 potlib=$potent_lib # see symlink-check above in file_magic test
78879382 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
78889383 $EGREP "$match_pattern_regex" > /dev/null; then
78899384 func_append newdeplibs " $a_deplib"
7890 a_deplib=""
9385 a_deplib=
78919386 break 2
78929387 fi
78939388 done
78949389 done
78959390 fi
7896 if test -n "$a_deplib" ; then
9391 if test -n "$a_deplib"; then
78979392 droppeddeps=yes
78989393 echo
78999394 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
79019396 echo "*** you link to this library. But I can only do this if you have a"
79029397 echo "*** shared version of the library, which you do not appear to have"
79039398 echo "*** because I did check the linker path looking for a file starting"
7904 if test -z "$potlib" ; then
9399 if test -z "$potlib"; then
79059400 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
79069401 else
79079402 $ECHO "*** with $libname and none of the candidates passed a file format test"
79179412 done # Gone through all deplibs.
79189413 ;;
79199414 none | unknown | *)
7920 newdeplibs=""
9415 newdeplibs=
79219416 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7923 for i in $predeps $postdeps ; do
9417 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9418 for i in $predeps $postdeps; do
79249419 # can't use Xsed below, because $i might contain '/'
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
9420 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
79269421 done
79279422 fi
79289423 case $tmp_deplibs in
79299424 *[!\ \ ]*)
79309425 echo
7931 if test "X$deplibs_check_method" = "Xnone"; then
9426 if test none = "$deplibs_check_method"; then
79329427 echo "*** Warning: inter-library dependencies are not supported in this platform."
79339428 else
79349429 echo "*** Warning: inter-library dependencies are not known to be supported."
79529447 ;;
79539448 esac
79549449
7955 if test "$droppeddeps" = yes; then
7956 if test "$module" = yes; then
9450 if test yes = "$droppeddeps"; then
9451 if test yes = "$module"; then
79579452 echo
79589453 echo "*** Warning: libtool could not satisfy all declared inter-library"
79599454 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
79629457 if test -z "$global_symbol_pipe"; then
79639458 echo
79649459 echo "*** However, this would only work if libtool was able to extract symbol"
7965 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
9460 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
79669461 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
9462 echo "*** 'nm' from GNU binutils and a full rebuild may help."
79689463 fi
7969 if test "$build_old_libs" = no; then
7970 oldlibs="$output_objdir/$libname.$libext"
9464 if test no = "$build_old_libs"; then
9465 oldlibs=$output_objdir/$libname.$libext
79719466 build_libtool_libs=module
79729467 build_old_libs=yes
79739468 else
79789473 echo "*** automatically added whenever a program is linked with this library"
79799474 echo "*** or is declared to -dlopen it."
79809475
7981 if test "$allow_undefined" = no; then
9476 if test no = "$allow_undefined"; then
79829477 echo
79839478 echo "*** Since this library must not contain undefined symbols,"
79849479 echo "*** because either the platform does not support them or"
79859480 echo "*** it was explicitly requested with -no-undefined,"
79869481 echo "*** libtool will only create a static version of it."
7987 if test "$build_old_libs" = no; then
7988 oldlibs="$output_objdir/$libname.$libext"
9482 if test no = "$build_old_libs"; then
9483 oldlibs=$output_objdir/$libname.$libext
79899484 build_libtool_libs=module
79909485 build_old_libs=yes
79919486 else
80319526 *) func_append new_libs " $deplib" ;;
80329527 esac
80339528 done
8034 deplibs="$new_libs"
9529 deplibs=$new_libs
80359530
80369531 # All the library-specific variables (install_libdir is set above).
80379532 library_names=
80399534 dlname=
80409535
80419536 # Test again, we may have decided not to build it any more
8042 if test "$build_libtool_libs" = yes; then
8043 # Remove ${wl} instances when linking with ld.
9537 if test yes = "$build_libtool_libs"; then
9538 # Remove $wl instances when linking with ld.
80449539 # FIXME: should test the right _cmds variable.
80459540 case $archive_cmds in
80469541 *\$LD\ *) wl= ;;
80479542 esac
8048 if test "$hardcode_into_libs" = yes; then
9543 if test yes = "$hardcode_into_libs"; then
80499544 # Hardcode the library paths
80509545 hardcode_libdirs=
80519546 dep_rpath=
8052 rpath="$finalize_rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
9547 rpath=$finalize_rpath
9548 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
80549549 for libdir in $rpath; do
80559550 if test -n "$hardcode_libdir_flag_spec"; then
80569551 if test -n "$hardcode_libdir_separator"; then
80579552 func_replace_sysroot "$libdir"
80589553 libdir=$func_replace_sysroot_result
80599554 if test -z "$hardcode_libdirs"; then
8060 hardcode_libdirs="$libdir"
9555 hardcode_libdirs=$libdir
80619556 else
80629557 # Just accumulate the unique libdirs.
80639558 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
80829577 # Substitute the hardcoded libdirs into the rpath.
80839578 if test -n "$hardcode_libdir_separator" &&
80849579 test -n "$hardcode_libdirs"; then
8085 libdir="$hardcode_libdirs"
9580 libdir=$hardcode_libdirs
80869581 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80879582 fi
80889583 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80969591 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
80979592 fi
80989593
8099 shlibpath="$finalize_shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
9594 shlibpath=$finalize_shlibpath
9595 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
81019596 if test -n "$shlibpath"; then
81029597 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
81039598 fi
81079602 eval library_names=\"$library_names_spec\"
81089603 set dummy $library_names
81099604 shift
8110 realname="$1"
9605 realname=$1
81119606 shift
81129607
81139608 if test -n "$soname_spec"; then
81149609 eval soname=\"$soname_spec\"
81159610 else
8116 soname="$realname"
9611 soname=$realname
81179612 fi
81189613 if test -z "$dlname"; then
81199614 dlname=$soname
81209615 fi
81219616
8122 lib="$output_objdir/$realname"
9617 lib=$output_objdir/$realname
81239618 linknames=
81249619 for link
81259620 do
81339628 delfiles=
81349629 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81359630 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8136 export_symbols="$output_objdir/$libname.uexp"
9631 export_symbols=$output_objdir/$libname.uexp
81379632 func_append delfiles " $export_symbols"
81389633 fi
81399634
81429637 cygwin* | mingw* | cegcc*)
81439638 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
81449639 # exporting using user supplied symfile
8145 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
9640 func_dll_def_p "$export_symbols" || {
81469641 # and it's NOT already a .def file. Must figure out
81479642 # which of the given symbols are data symbols and tag
81489643 # them as such. So, trigger use of export_symbols_cmds.
81499644 # export_symbols gets reassigned inside the "prepare
81509645 # the list of exported symbols" if statement, so the
81519646 # include_expsyms logic still works.
8152 orig_export_symbols="$export_symbols"
9647 orig_export_symbols=$export_symbols
81539648 export_symbols=
81549649 always_export_symbols=yes
8155 fi
9650 }
81569651 fi
81579652 ;;
81589653 esac
81599654
81609655 # Prepare the list of exported symbols
81619656 if test -z "$export_symbols"; then
8162 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8163 func_verbose "generating symbol list for \`$libname.la'"
8164 export_symbols="$output_objdir/$libname.exp"
9657 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9658 func_verbose "generating symbol list for '$libname.la'"
9659 export_symbols=$output_objdir/$libname.exp
81659660 $opt_dry_run || $RM $export_symbols
81669661 cmds=$export_symbols_cmds
8167 save_ifs="$IFS"; IFS='~'
9662 save_ifs=$IFS; IFS='~'
81689663 for cmd1 in $cmds; do
8169 IFS="$save_ifs"
9664 IFS=$save_ifs
81709665 # Take the normal branch if the nm_file_list_spec branch
81719666 # doesn't work or if tool conversion is not needed.
81729667 case $nm_file_list_spec~$to_tool_file_cmd in
81809675 try_normal_branch=no
81819676 ;;
81829677 esac
8183 if test "$try_normal_branch" = yes \
9678 if test yes = "$try_normal_branch" \
81849679 && { test "$len" -lt "$max_cmd_len" \
81859680 || test "$max_cmd_len" -le -1; }
81869681 then
81919686 output_la=$func_basename_result
81929687 save_libobjs=$libobjs
81939688 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
9689 output=$output_objdir/$output_la.nm
81959690 func_to_tool_file "$output"
81969691 libobjs=$nm_file_list_spec$func_to_tool_file_result
81979692 func_append delfiles " $output"
82149709 break
82159710 fi
82169711 done
8217 IFS="$save_ifs"
8218 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
9712 IFS=$save_ifs
9713 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
82199714 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
82209715 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
82219716 fi
82239718 fi
82249719
82259720 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8226 tmp_export_symbols="$export_symbols"
8227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9721 tmp_export_symbols=$export_symbols
9722 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
82289723 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
82299724 fi
82309725
8231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
9726 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
82329727 # The given exports_symbols file has to be filtered, so filter it.
8233 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9728 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
82349729 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8235 # 's' commands which not all seds can handle. GNU sed should be fine
9730 # 's' commands, which not all seds can handle. GNU sed should be fine
82369731 # though. Also, the filter scales superlinearly with the number of
82379732 # global variables. join(1) would be nice here, but unfortunately
82389733 # isn't a blessed tool.
82519746 ;;
82529747 esac
82539748 done
8254 deplibs="$tmp_deplibs"
9749 deplibs=$tmp_deplibs
82559750
82569751 if test -n "$convenience"; then
82579752 if test -n "$whole_archive_flag_spec" &&
8258 test "$compiler_needs_object" = yes &&
9753 test yes = "$compiler_needs_object" &&
82599754 test -z "$libobjs"; then
82609755 # extract the archives, so we have objects to list.
82619756 # TODO: could optimize this to just extract one archive.
82669761 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
82679762 test "X$libobjs" = "X " && libobjs=
82689763 else
8269 gentop="$output_objdir/${outputname}x"
9764 gentop=$output_objdir/${outputname}x
82709765 func_append generated " $gentop"
82719766
82729767 func_extract_archives $gentop $convenience
82759770 fi
82769771 fi
82779772
8278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
9773 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
82799774 eval flag=\"$thread_safe_flag_spec\"
82809775 func_append linker_flags " $flag"
82819776 fi
82829777
82839778 # Make a backup of the uninstalled library when relinking
8284 if test "$opt_mode" = relink; then
9779 if test relink = "$opt_mode"; then
82859780 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82869781 fi
82879782
82889783 # Do each of the archive commands.
8289 if test "$module" = yes && test -n "$module_cmds" ; then
9784 if test yes = "$module" && test -n "$module_cmds"; then
82909785 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
82919786 eval test_cmds=\"$module_expsym_cmds\"
82929787 cmds=$module_expsym_cmds
83049799 fi
83059800 fi
83069801
8307 if test "X$skipped_export" != "X:" &&
9802 if test : != "$skipped_export" &&
83089803 func_len " $test_cmds" &&
83099804 len=$func_len_result &&
83109805 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
83379832 last_robj=
83389833 k=1
83399834
8340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8341 output=${output_objdir}/${output_la}.lnkscript
9835 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9836 output=$output_objdir/$output_la.lnkscript
83429837 func_verbose "creating GNU ld script: $output"
83439838 echo 'INPUT (' > $output
83449839 for obj in $save_libobjs
83509845 func_append delfiles " $output"
83519846 func_to_tool_file "$output"
83529847 output=$func_to_tool_file_result
8353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8354 output=${output_objdir}/${output_la}.lnk
9848 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9849 output=$output_objdir/$output_la.lnk
83559850 func_verbose "creating linker input file list: $output"
83569851 : > $output
83579852 set x $save_libobjs
83589853 shift
83599854 firstobj=
8360 if test "$compiler_needs_object" = yes; then
9855 if test yes = "$compiler_needs_object"; then
83619856 firstobj="$1 "
83629857 shift
83639858 fi
83729867 else
83739868 if test -n "$save_libobjs"; then
83749869 func_verbose "creating reloadable object files..."
8375 output=$output_objdir/$output_la-${k}.$objext
9870 output=$output_objdir/$output_la-$k.$objext
83769871 eval test_cmds=\"$reload_cmds\"
83779872 func_len " $test_cmds"
83789873 len0=$func_len_result
83849879 func_len " $obj"
83859880 func_arith $len + $func_len_result
83869881 len=$func_arith_result
8387 if test "X$objlist" = X ||
9882 if test -z "$objlist" ||
83889883 test "$len" -lt "$max_cmd_len"; then
83899884 func_append objlist " $obj"
83909885 else
83919886 # The command $test_cmds is almost too long, add a
83929887 # command to the queue.
8393 if test "$k" -eq 1 ; then
9888 if test 1 -eq "$k"; then
83949889 # The first file doesn't have a previous command to add.
83959890 reload_objs=$objlist
83969891 eval concat_cmds=\"$reload_cmds\"
84009895 reload_objs="$objlist $last_robj"
84019896 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
84029897 fi
8403 last_robj=$output_objdir/$output_la-${k}.$objext
9898 last_robj=$output_objdir/$output_la-$k.$objext
84049899 func_arith $k + 1
84059900 k=$func_arith_result
8406 output=$output_objdir/$output_la-${k}.$objext
9901 output=$output_objdir/$output_la-$k.$objext
84079902 objlist=" $obj"
84089903 func_len " $last_robj"
84099904 func_arith $len0 + $func_len_result
84159910 # files will link in the last one created.
84169911 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
84179912 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
9913 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
84199914 if test -n "$last_robj"; then
8420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
9915 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84219916 fi
84229917 func_append delfiles " $output"
84239918
84259920 output=
84269921 fi
84279922
8428 if ${skipped_export-false}; then
8429 func_verbose "generating symbol list for \`$libname.la'"
8430 export_symbols="$output_objdir/$libname.exp"
9923 ${skipped_export-false} && {
9924 func_verbose "generating symbol list for '$libname.la'"
9925 export_symbols=$output_objdir/$libname.exp
84319926 $opt_dry_run || $RM $export_symbols
84329927 libobjs=$output
84339928 # Append the command to create the export file.
84369931 if test -n "$last_robj"; then
84379932 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84389933 fi
8439 fi
9934 }
84409935
84419936 test -n "$save_libobjs" &&
84429937 func_verbose "creating a temporary reloadable object file: $output"
84439938
84449939 # Loop through the commands generated above and execute them.
8445 save_ifs="$IFS"; IFS='~'
9940 save_ifs=$IFS; IFS='~'
84469941 for cmd in $concat_cmds; do
8447 IFS="$save_ifs"
8448 $opt_silent || {
9942 IFS=$save_ifs
9943 $opt_quiet || {
84499944 func_quote_for_expand "$cmd"
84509945 eval "func_echo $func_quote_for_expand_result"
84519946 }
84539948 lt_exit=$?
84549949
84559950 # Restore the uninstalled library and exit
8456 if test "$opt_mode" = relink; then
9951 if test relink = "$opt_mode"; then
84579952 ( cd "$output_objdir" && \
84589953 $RM "${realname}T" && \
84599954 $MV "${realname}U" "$realname" )
84629957 exit $lt_exit
84639958 }
84649959 done
8465 IFS="$save_ifs"
9960 IFS=$save_ifs
84669961
84679962 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
84689963 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
84709965 fi
84719966 fi
84729967
8473 if ${skipped_export-false}; then
9968 ${skipped_export-false} && {
84749969 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8475 tmp_export_symbols="$export_symbols"
8476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9970 tmp_export_symbols=$export_symbols
9971 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
84779972 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
84789973 fi
84799974
84809975 if test -n "$orig_export_symbols"; then
84819976 # The given exports_symbols file has to be filtered, so filter it.
8482 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9977 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
84839978 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8484 # 's' commands which not all seds can handle. GNU sed should be fine
9979 # 's' commands, which not all seds can handle. GNU sed should be fine
84859980 # though. Also, the filter scales superlinearly with the number of
84869981 # global variables. join(1) would be nice here, but unfortunately
84879982 # isn't a blessed tool.
84909985 export_symbols=$output_objdir/$libname.def
84919986 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
84929987 fi
8493 fi
9988 }
84949989
84959990 libobjs=$output
84969991 # Restore the value of output.
85049999 # value of $libobjs for piecewise linking.
850510000
850610001 # Do each of the archive commands.
8507 if test "$module" = yes && test -n "$module_cmds" ; then
10002 if test yes = "$module" && test -n "$module_cmds"; then
850810003 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
850910004 cmds=$module_expsym_cmds
851010005 else
852610021
852710022 # Add any objects from preloaded convenience libraries
852810023 if test -n "$dlprefiles"; then
8529 gentop="$output_objdir/${outputname}x"
10024 gentop=$output_objdir/${outputname}x
853010025 func_append generated " $gentop"
853110026
853210027 func_extract_archives $gentop $dlprefiles
853410029 test "X$libobjs" = "X " && libobjs=
853510030 fi
853610031
8537 save_ifs="$IFS"; IFS='~'
10032 save_ifs=$IFS; IFS='~'
853810033 for cmd in $cmds; do
8539 IFS="$save_ifs"
10034 IFS=$sp$nl
854010035 eval cmd=\"$cmd\"
8541 $opt_silent || {
10036 IFS=$save_ifs
10037 $opt_quiet || {
854210038 func_quote_for_expand "$cmd"
854310039 eval "func_echo $func_quote_for_expand_result"
854410040 }
854610042 lt_exit=$?
854710043
854810044 # Restore the uninstalled library and exit
8549 if test "$opt_mode" = relink; then
10045 if test relink = "$opt_mode"; then
855010046 ( cd "$output_objdir" && \
855110047 $RM "${realname}T" && \
855210048 $MV "${realname}U" "$realname" )
855510051 exit $lt_exit
855610052 }
855710053 done
8558 IFS="$save_ifs"
10054 IFS=$save_ifs
855910055
856010056 # Restore the uninstalled library and exit
8561 if test "$opt_mode" = relink; then
10057 if test relink = "$opt_mode"; then
856210058 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
856310059
856410060 if test -n "$convenience"; then
857810074 done
857910075
858010076 # If -module or -export-dynamic was specified, set the dlname.
8581 if test "$module" = yes || test "$export_dynamic" = yes; then
10077 if test yes = "$module" || test yes = "$export_dynamic"; then
858210078 # On all known operating systems, these are identical.
8583 dlname="$soname"
10079 dlname=$soname
858410080 fi
858510081 fi
858610082 ;;
858710083
858810084 obj)
8589 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8590 func_warning "\`-dlopen' is ignored for objects"
10085 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10086 func_warning "'-dlopen' is ignored for objects"
859110087 fi
859210088
859310089 case " $deplibs" in
859410090 *\ -l* | *\ -L*)
8595 func_warning "\`-l' and \`-L' are ignored for objects" ;;
10091 func_warning "'-l' and '-L' are ignored for objects" ;;
859610092 esac
859710093
859810094 test -n "$rpath" && \
8599 func_warning "\`-rpath' is ignored for objects"
10095 func_warning "'-rpath' is ignored for objects"
860010096
860110097 test -n "$xrpath" && \
8602 func_warning "\`-R' is ignored for objects"
10098 func_warning "'-R' is ignored for objects"
860310099
860410100 test -n "$vinfo" && \
8605 func_warning "\`-version-info' is ignored for objects"
10101 func_warning "'-version-info' is ignored for objects"
860610102
860710103 test -n "$release" && \
8608 func_warning "\`-release' is ignored for objects"
10104 func_warning "'-release' is ignored for objects"
860910105
861010106 case $output in
861110107 *.lo)
861210108 test -n "$objs$old_deplibs" && \
8613 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
10109 func_fatal_error "cannot build library object '$output' from non-libtool objects"
861410110
861510111 libobj=$output
861610112 func_lo2o "$libobj"
861810114 ;;
861910115 *)
862010116 libobj=
8621 obj="$output"
10117 obj=$output
862210118 ;;
862310119 esac
862410120
863110127 # the extraction.
863210128 reload_conv_objs=
863310129 gentop=
8634 # reload_cmds runs $LD directly, so let us get rid of
8635 # -Wl from whole_archive_flag_spec and hope we can get by with
8636 # turning comma into space..
8637 wl=
8638
10130 # if reload_cmds runs $LD directly, get rid of -Wl from
10131 # whole_archive_flag_spec and hope we can get by with turning comma
10132 # into space.
10133 case $reload_cmds in
10134 *\$LD[\ \$]*) wl= ;;
10135 esac
863910136 if test -n "$convenience"; then
864010137 if test -n "$whole_archive_flag_spec"; then
864110138 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10139 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10140 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
864310141 else
8644 gentop="$output_objdir/${obj}x"
10142 gentop=$output_objdir/${obj}x
864510143 func_append generated " $gentop"
864610144
864710145 func_extract_archives $gentop $convenience
865010148 fi
865110149
865210150 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
10151 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
865410152
865510153 # Create the old-style object.
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8657
8658 output="$obj"
10154 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10155
10156 output=$obj
865910157 func_execute_cmds "$reload_cmds" 'exit $?'
866010158
866110159 # Exit if we aren't doing a library object file.
866710165 exit $EXIT_SUCCESS
866810166 fi
866910167
8670 if test "$build_libtool_libs" != yes; then
10168 test yes = "$build_libtool_libs" || {
867110169 if test -n "$gentop"; then
867210170 func_show_eval '${RM}r "$gentop"'
867310171 fi
867710175 # $show "echo timestamp > $libobj"
867810176 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
867910177 exit $EXIT_SUCCESS
8680 fi
8681
8682 if test -n "$pic_flag" || test "$pic_mode" != default; then
10178 }
10179
10180 if test -n "$pic_flag" || test default != "$pic_mode"; then
868310181 # Only do commands if we really have different PIC objects.
868410182 reload_objs="$libobjs $reload_conv_objs"
8685 output="$libobj"
10183 output=$libobj
868610184 func_execute_cmds "$reload_cmds" 'exit $?'
868710185 fi
868810186
869910197 output=$func_stripname_result.exe;;
870010198 esac
870110199 test -n "$vinfo" && \
8702 func_warning "\`-version-info' is ignored for programs"
10200 func_warning "'-version-info' is ignored for programs"
870310201
870410202 test -n "$release" && \
8705 func_warning "\`-release' is ignored for programs"
8706
8707 test "$preload" = yes \
8708 && test "$dlopen_support" = unknown \
8709 && test "$dlopen_self" = unknown \
8710 && test "$dlopen_self_static" = unknown && \
8711 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
10203 func_warning "'-release' is ignored for programs"
10204
10205 $preload \
10206 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10207 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
871210208
871310209 case $host in
871410210 *-*-rhapsody* | *-*-darwin1.[012])
872210218 *-*-darwin*)
872310219 # Don't allow lazy linking, it breaks C++ global constructors
872410220 # But is supposedly fixed on 10.4 or later (yay!).
8725 if test "$tagname" = CXX ; then
10221 if test CXX = "$tagname"; then
872610222 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
872710223 10.[0123])
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
10224 func_append compile_command " $wl-bind_at_load"
10225 func_append finalize_command " $wl-bind_at_load"
873010226 ;;
873110227 esac
873210228 fi
876210258 *) func_append new_libs " $deplib" ;;
876310259 esac
876410260 done
8765 compile_deplibs="$new_libs"
10261 compile_deplibs=$new_libs
876610262
876710263
876810264 func_append compile_command " $compile_deplibs"
878610282 if test -n "$hardcode_libdir_flag_spec"; then
878710283 if test -n "$hardcode_libdir_separator"; then
878810284 if test -z "$hardcode_libdirs"; then
8789 hardcode_libdirs="$libdir"
10285 hardcode_libdirs=$libdir
879010286 else
879110287 # Just accumulate the unique libdirs.
879210288 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
880910305 fi
881010306 case $host in
881110307 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8812 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
10308 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
881310309 case :$dllsearchpath: in
881410310 *":$libdir:"*) ;;
881510311 ::) dllsearchpath=$libdir;;
882610322 # Substitute the hardcoded libdirs into the rpath.
882710323 if test -n "$hardcode_libdir_separator" &&
882810324 test -n "$hardcode_libdirs"; then
8829 libdir="$hardcode_libdirs"
10325 libdir=$hardcode_libdirs
883010326 eval rpath=\" $hardcode_libdir_flag_spec\"
883110327 fi
8832 compile_rpath="$rpath"
10328 compile_rpath=$rpath
883310329
883410330 rpath=
883510331 hardcode_libdirs=
883710333 if test -n "$hardcode_libdir_flag_spec"; then
883810334 if test -n "$hardcode_libdir_separator"; then
883910335 if test -z "$hardcode_libdirs"; then
8840 hardcode_libdirs="$libdir"
10336 hardcode_libdirs=$libdir
884110337 else
884210338 # Just accumulate the unique libdirs.
884310339 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
886210358 # Substitute the hardcoded libdirs into the rpath.
886310359 if test -n "$hardcode_libdir_separator" &&
886410360 test -n "$hardcode_libdirs"; then
8865 libdir="$hardcode_libdirs"
10361 libdir=$hardcode_libdirs
886610362 eval rpath=\" $hardcode_libdir_flag_spec\"
886710363 fi
8868 finalize_rpath="$rpath"
8869
8870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
10364 finalize_rpath=$rpath
10365
10366 if test -n "$libobjs" && test yes = "$build_old_libs"; then
887110367 # Transform all the library objects into standard objects.
887210368 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887310369 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887410370 fi
887510371
8876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
10372 func_generate_dlsyms "$outputname" "@PROGRAM@" false
887710373
887810374 # template prelinking step
887910375 if test -n "$prelink_cmds"; then
888010376 func_execute_cmds "$prelink_cmds" 'exit $?'
888110377 fi
888210378
8883 wrappers_required=yes
10379 wrappers_required=:
888410380 case $host in
888510381 *cegcc* | *mingw32ce*)
888610382 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
10383 wrappers_required=false
888810384 ;;
888910385 *cygwin* | *mingw* )
8890 if test "$build_libtool_libs" != yes; then
8891 wrappers_required=no
8892 fi
10386 test yes = "$build_libtool_libs" || wrappers_required=false
889310387 ;;
889410388 *)
8895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8896 wrappers_required=no
10389 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10390 wrappers_required=false
889710391 fi
889810392 ;;
889910393 esac
8900 if test "$wrappers_required" = no; then
10394 $wrappers_required || {
890110395 # Replace the output file specification.
890210396 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8903 link_command="$compile_command$compile_rpath"
10397 link_command=$compile_command$compile_rpath
890410398
890510399 # We have no uninstalled library dependencies, so finalize right now.
890610400 exit_status=0
891310407 fi
891410408
891510409 # Delete the generated files.
8916 if test -f "$output_objdir/${outputname}S.${objext}"; then
8917 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
10410 if test -f "$output_objdir/${outputname}S.$objext"; then
10411 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
891810412 fi
891910413
892010414 exit $exit_status
8921 fi
10415 }
892210416
892310417 if test -n "$compile_shlibpath$finalize_shlibpath"; then
892410418 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
894810442 fi
894910443 fi
895010444
8951 if test "$no_install" = yes; then
10445 if test yes = "$no_install"; then
895210446 # We don't need to create a wrapper script.
8953 link_command="$compile_var$compile_command$compile_rpath"
10447 link_command=$compile_var$compile_command$compile_rpath
895410448 # Replace the output file specification.
895510449 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
895610450 # Delete the old output file.
896710461 exit $EXIT_SUCCESS
896810462 fi
896910463
8970 if test "$hardcode_action" = relink; then
8971 # Fast installation is not supported
8972 link_command="$compile_var$compile_command$compile_rpath"
8973 relink_command="$finalize_var$finalize_command$finalize_rpath"
8974
8975 func_warning "this platform does not like uninstalled shared libraries"
8976 func_warning "\`$output' will be relinked during installation"
8977 else
8978 if test "$fast_install" != no; then
8979 link_command="$finalize_var$compile_command$finalize_rpath"
8980 if test "$fast_install" = yes; then
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8982 else
8983 # fast_install is set to needless
8984 relink_command=
8985 fi
8986 else
8987 link_command="$compile_var$compile_command$compile_rpath"
8988 relink_command="$finalize_var$finalize_command$finalize_rpath"
8989 fi
8990 fi
10464 case $hardcode_action,$fast_install in
10465 relink,*)
10466 # Fast installation is not supported
10467 link_command=$compile_var$compile_command$compile_rpath
10468 relink_command=$finalize_var$finalize_command$finalize_rpath
10469
10470 func_warning "this platform does not like uninstalled shared libraries"
10471 func_warning "'$output' will be relinked during installation"
10472 ;;
10473 *,yes)
10474 link_command=$finalize_var$compile_command$finalize_rpath
10475 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10476 ;;
10477 *,no)
10478 link_command=$compile_var$compile_command$compile_rpath
10479 relink_command=$finalize_var$finalize_command$finalize_rpath
10480 ;;
10481 *,needless)
10482 link_command=$finalize_var$compile_command$finalize_rpath
10483 relink_command=
10484 ;;
10485 esac
899110486
899210487 # Replace the output file specification.
899310488 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
904410539 func_dirname_and_basename "$output" "" "."
904510540 output_name=$func_basename_result
904610541 output_path=$func_dirname_result
9047 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9048 cwrapper="$output_path/$output_name.exe"
10542 cwrappersource=$output_path/$objdir/lt-$output_name.c
10543 cwrapper=$output_path/$output_name.exe
904910544 $RM $cwrappersource $cwrapper
905010545 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
905110546
906610561 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
906710562 $opt_dry_run || {
906810563 # note: this script will not be executed, so do not chmod.
9069 if test "x$build" = "x$host" ; then
10564 if test "x$build" = "x$host"; then
907010565 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
907110566 else
907210567 func_emit_wrapper no > $func_ltwrapper_scriptname_result
908910584 # See if we need to build an old-fashioned archive.
909010585 for oldlib in $oldlibs; do
909110586
9092 if test "$build_libtool_libs" = convenience; then
9093 oldobjs="$libobjs_save $symfileobj"
9094 addlibs="$convenience"
9095 build_libtool_libs=no
9096 else
9097 if test "$build_libtool_libs" = module; then
9098 oldobjs="$libobjs_save"
10587 case $build_libtool_libs in
10588 convenience)
10589 oldobjs="$libobjs_save $symfileobj"
10590 addlibs=$convenience
909910591 build_libtool_libs=no
9100 else
10592 ;;
10593 module)
10594 oldobjs=$libobjs_save
10595 addlibs=$old_convenience
10596 build_libtool_libs=no
10597 ;;
10598 *)
910110599 oldobjs="$old_deplibs $non_pic_objects"
9102 if test "$preload" = yes && test -f "$symfileobj"; then
9103 func_append oldobjs " $symfileobj"
9104 fi
9105 fi
9106 addlibs="$old_convenience"
9107 fi
10600 $preload && test -f "$symfileobj" \
10601 && func_append oldobjs " $symfileobj"
10602 addlibs=$old_convenience
10603 ;;
10604 esac
910810605
910910606 if test -n "$addlibs"; then
9110 gentop="$output_objdir/${outputname}x"
10607 gentop=$output_objdir/${outputname}x
911110608 func_append generated " $gentop"
911210609
911310610 func_extract_archives $gentop $addlibs
911510612 fi
911610613
911710614 # Do each command in the archive commands.
9118 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
10615 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
911910616 cmds=$old_archive_from_new_cmds
912010617 else
912110618
912210619 # Add any objects from preloaded convenience libraries
912310620 if test -n "$dlprefiles"; then
9124 gentop="$output_objdir/${outputname}x"
10621 gentop=$output_objdir/${outputname}x
912510622 func_append generated " $gentop"
912610623
912710624 func_extract_archives $gentop $dlprefiles
914210639 :
914310640 else
914410641 echo "copying selected object files to avoid basename conflicts..."
9145 gentop="$output_objdir/${outputname}x"
10642 gentop=$output_objdir/${outputname}x
914610643 func_append generated " $gentop"
914710644 func_mkdir_p "$gentop"
914810645 save_oldobjs=$oldobjs
915110648 for obj in $save_oldobjs
915210649 do
915310650 func_basename "$obj"
9154 objbase="$func_basename_result"
10651 objbase=$func_basename_result
915510652 case " $oldobjs " in
915610653 " ") oldobjs=$obj ;;
915710654 *[\ /]"$objbase "*)
922010717 else
922110718 # the above command should be used before it gets too long
922210719 oldobjs=$objlist
9223 if test "$obj" = "$last_oldobj" ; then
10720 if test "$obj" = "$last_oldobj"; then
922410721 RANLIB=$save_RANLIB
922510722 fi
922610723 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9227 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
10724 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
922810725 objlist=
922910726 len=$len0
923010727 fi
923110728 done
923210729 RANLIB=$save_RANLIB
923310730 oldobjs=$objlist
9234 if test "X$oldobjs" = "X" ; then
10731 if test -z "$oldobjs"; then
923510732 eval cmds=\"\$concat_cmds\"
923610733 else
923710734 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
924810745 case $output in
924910746 *.la)
925010747 old_library=
9251 test "$build_old_libs" = yes && old_library="$libname.$libext"
10748 test yes = "$build_old_libs" && old_library=$libname.$libext
925210749 func_verbose "creating $output"
925310750
925410751 # Preserve any variables that may affect compiler behavior
926310760 fi
926410761 done
926510762 # Quote the link command for shipping.
9266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10763 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
926710764 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9268 if test "$hardcode_automatic" = yes ; then
10765 if test yes = "$hardcode_automatic"; then
926910766 relink_command=
927010767 fi
927110768
927210769 # Only create the output if not a dry run.
927310770 $opt_dry_run || {
927410771 for installed in no yes; do
9275 if test "$installed" = yes; then
10772 if test yes = "$installed"; then
927610773 if test -z "$install_libdir"; then
927710774 break
927810775 fi
9279 output="$output_objdir/$outputname"i
10776 output=$output_objdir/${outputname}i
928010777 # Replace all uninstalled libtool libraries with the installed ones
928110778 newdependency_libs=
928210779 for deplib in $dependency_libs; do
928310780 case $deplib in
928410781 *.la)
928510782 func_basename "$deplib"
9286 name="$func_basename_result"
10783 name=$func_basename_result
928710784 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10785 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
928910786 test -z "$libdir" && \
9290 func_fatal_error "\`$deplib' is not a valid libtool archive"
10787 func_fatal_error "'$deplib' is not a valid libtool archive"
929110788 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
929210789 ;;
929310790 -L*)
930310800 *) func_append newdependency_libs " $deplib" ;;
930410801 esac
930510802 done
9306 dependency_libs="$newdependency_libs"
10803 dependency_libs=$newdependency_libs
930710804 newdlfiles=
930810805
930910806 for lib in $dlfiles; do
931010807 case $lib in
931110808 *.la)
931210809 func_basename "$lib"
9313 name="$func_basename_result"
9314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10810 name=$func_basename_result
10811 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
931510812 test -z "$libdir" && \
9316 func_fatal_error "\`$lib' is not a valid libtool archive"
10813 func_fatal_error "'$lib' is not a valid libtool archive"
931710814 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
931810815 ;;
931910816 *) func_append newdlfiles " $lib" ;;
932010817 esac
932110818 done
9322 dlfiles="$newdlfiles"
10819 dlfiles=$newdlfiles
932310820 newdlprefiles=
932410821 for lib in $dlprefiles; do
932510822 case $lib in
932910826 # didn't already link the preopened objects directly into
933010827 # the library:
933110828 func_basename "$lib"
9332 name="$func_basename_result"
9333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10829 name=$func_basename_result
10830 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
933410831 test -z "$libdir" && \
9335 func_fatal_error "\`$lib' is not a valid libtool archive"
10832 func_fatal_error "'$lib' is not a valid libtool archive"
933610833 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
933710834 ;;
933810835 esac
933910836 done
9340 dlprefiles="$newdlprefiles"
10837 dlprefiles=$newdlprefiles
934110838 else
934210839 newdlfiles=
934310840 for lib in $dlfiles; do
934410841 case $lib in
9345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10842 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934610843 *) abs=`pwd`"/$lib" ;;
934710844 esac
934810845 func_append newdlfiles " $abs"
934910846 done
9350 dlfiles="$newdlfiles"
10847 dlfiles=$newdlfiles
935110848 newdlprefiles=
935210849 for lib in $dlprefiles; do
935310850 case $lib in
9354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10851 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
935510852 *) abs=`pwd`"/$lib" ;;
935610853 esac
935710854 func_append newdlprefiles " $abs"
935810855 done
9359 dlprefiles="$newdlprefiles"
10856 dlprefiles=$newdlprefiles
936010857 fi
936110858 $RM $output
936210859 # place dlname in correct position for cygwin
937210869 case $host,$output,$installed,$module,$dlname in
937310870 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
937410871 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
10872 if test -n "$bindir"; then
937710873 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
10874 tdlname=$func_relative_path_result/$dlname
937910875 else
938010876 # Otherwise fall back on heuristic.
938110877 tdlname=../bin/$dlname
938410880 esac
938510881 $ECHO > $output "\
938610882 # $outputname - a libtool library file
9387 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10883 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
938810884 #
938910885 # Please DO NOT delete this file!
939010886 # It is necessary for linking the library.
939810894 # The name of the static archive.
939910895 old_library='$old_library'
940010896
9401 # Linker flags that can not go in dependency_libs.
10897 # Linker flags that cannot go in dependency_libs.
940210898 inherited_linker_flags='$new_inherited_linker_flags'
940310899
940410900 # Libraries that this one depends upon.
942410920
942510921 # Directory that this library needs to be installed in:
942610922 libdir='$install_libdir'"
9427 if test "$installed" = no && test "$need_relink" = yes; then
10923 if test no,yes = "$installed,$need_relink"; then
942810924 $ECHO >> $output "\
942910925 relink_command=\"$relink_command\""
943010926 fi
943910935 exit $EXIT_SUCCESS
944010936 }
944110937
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9443 func_mode_link ${1+"$@"}
10938 if test link = "$opt_mode" || test relink = "$opt_mode"; then
10939 func_mode_link ${1+"$@"}
10940 fi
944410941
944510942
944610943 # func_mode_uninstall arg...
944710944 func_mode_uninstall ()
944810945 {
9449 $opt_debug
9450 RM="$nonopt"
10946 $debug_cmd
10947
10948 RM=$nonopt
945110949 files=
9452 rmforce=
10950 rmforce=false
945310951 exit_status=0
945410952
945510953 # This variable tells wrapper scripts just to set variables rather
945610954 # than running their programs.
9457 libtool_install_magic="$magic"
10955 libtool_install_magic=$magic
945810956
945910957 for arg
946010958 do
946110959 case $arg in
9462 -f) func_append RM " $arg"; rmforce=yes ;;
10960 -f) func_append RM " $arg"; rmforce=: ;;
946310961 -*) func_append RM " $arg" ;;
946410962 *) func_append files " $arg" ;;
946510963 esac
947210970
947310971 for file in $files; do
947410972 func_dirname "$file" "" "."
9475 dir="$func_dirname_result"
9476 if test "X$dir" = X.; then
9477 odir="$objdir"
10973 dir=$func_dirname_result
10974 if test . = "$dir"; then
10975 odir=$objdir
947810976 else
9479 odir="$dir/$objdir"
10977 odir=$dir/$objdir
948010978 fi
948110979 func_basename "$file"
9482 name="$func_basename_result"
9483 test "$opt_mode" = uninstall && odir="$dir"
10980 name=$func_basename_result
10981 test uninstall = "$opt_mode" && odir=$dir
948410982
948510983 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
10984 if test clean = "$opt_mode"; then
948710985 case " $rmdirs " in
948810986 *" $odir "*) ;;
948910987 *) func_append rmdirs " $odir" ;;
949810996 elif test -d "$file"; then
949910997 exit_status=1
950010998 continue
9501 elif test "$rmforce" = yes; then
10999 elif $rmforce; then
950211000 continue
950311001 fi
950411002
9505 rmfiles="$file"
11003 rmfiles=$file
950611004
950711005 case $name in
950811006 *.la)
951611014 done
951711015 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
951811016
9519 case "$opt_mode" in
11017 case $opt_mode in
952011018 clean)
952111019 case " $library_names " in
952211020 *" $dlname "*) ;;
952711025 uninstall)
952811026 if test -n "$library_names"; then
952911027 # Do each command in the postuninstall commands.
9530 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11028 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
953111029 fi
953211030
953311031 if test -n "$old_library"; then
953411032 # Do each command in the old_postuninstall commands.
9535 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11033 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
953611034 fi
953711035 # FIXME: should reinstall the best remaining shared library.
953811036 ;;
954811046 func_source $dir/$name
954911047
955011048 # Add PIC object to the list of files to remove.
9551 if test -n "$pic_object" &&
9552 test "$pic_object" != none; then
11049 if test -n "$pic_object" && test none != "$pic_object"; then
955311050 func_append rmfiles " $dir/$pic_object"
955411051 fi
955511052
955611053 # Add non-PIC object to the list of files to remove.
9557 if test -n "$non_pic_object" &&
9558 test "$non_pic_object" != none; then
11054 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
955911055 func_append rmfiles " $dir/$non_pic_object"
956011056 fi
956111057 fi
956211058 ;;
956311059
956411060 *)
9565 if test "$opt_mode" = clean ; then
11061 if test clean = "$opt_mode"; then
956611062 noexename=$name
956711063 case $file in
956811064 *.exe)
958911085
959011086 # note $name still contains .exe if it was in $file originally
959111087 # as does the version of $file that was added into $rmfiles
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9593 if test "$fast_install" = yes && test -n "$relink_command"; then
11088 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11089 if test yes = "$fast_install" && test -n "$relink_command"; then
959411090 func_append rmfiles " $odir/lt-$name"
959511091 fi
9596 if test "X$noexename" != "X$name" ; then
9597 func_append rmfiles " $odir/lt-${noexename}.c"
11092 if test "X$noexename" != "X$name"; then
11093 func_append rmfiles " $odir/lt-$noexename.c"
959811094 fi
959911095 fi
960011096 fi
960311099 func_show_eval "$RM $rmfiles" 'exit_status=1'
960411100 done
960511101
9606 # Try to remove the ${objdir}s in the directories where we deleted files
11102 # Try to remove the $objdir's in the directories where we deleted files
960711103 for dir in $rmdirs; do
960811104 if test -d "$dir"; then
960911105 func_show_eval "rmdir $dir >/dev/null 2>&1"
961311109 exit $exit_status
961411110 }
961511111
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9617 func_mode_uninstall ${1+"$@"}
11112 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11113 func_mode_uninstall ${1+"$@"}
11114 fi
961811115
961911116 test -z "$opt_mode" && {
9620 help="$generic_help"
11117 help=$generic_help
962111118 func_fatal_help "you must specify a MODE"
962211119 }
962311120
962411121 test -z "$exec_cmd" && \
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
11122 func_fatal_help "invalid operation mode '$opt_mode'"
962611123
962711124 if test -n "$exec_cmd"; then
962811125 eval exec "$exec_cmd"
963311130
963411131
963511132 # The TAGs below are defined such that we never get into a situation
9636 # in which we disable both kinds of libraries. Given conflicting
11133 # where we disable both kinds of libraries. Given conflicting
963711134 # choices, we go for a static library, that is the most portable,
963811135 # since we can't tell whether shared libraries were disabled because
963911136 # the user asked for that or because the platform doesn't support
965611153 # mode:shell-script
965711154 # sh-indentation:2
965811155 # End:
9659 # vi:sw=2
9660
00 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
11 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
53 # Written by Gordon Matzigkeit, 1996
64 #
75 # This file is free software; the Free Software Foundation gives
97 # modifications, as long as this notice is preserved.
108
119 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
10 # Copyright (C) 2014 Free Software Foundation, Inc.
11 # This is free software; see the source for copying conditions. There is NO
12 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 # GNU Libtool is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of of the License, or
17 # (at your option) any later version.
1618 #
17 # This file is part of GNU Libtool.
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program or library that is built
21 # using GNU Libtool, you may include this file under the same
22 # distribution terms that you use for the rest of that program.
1823 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24 # GNU Libtool is distributed in the hope that it will be useful, but
25 # WITHOUT ANY WARRANTY; without even the implied warranty of
3126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3227 # GNU General Public License for more details.
3328 #
3429 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30 # along with this program. If not, see <http://www.gnu.org/licenses/>.
3931 ])
4032
41 # serial 57 LT_INIT
33 # serial 58 LT_INIT
4234
4335
4436 # LT_PREREQ(VERSION)
6658 # LT_INIT([OPTIONS])
6759 # ------------------
6860 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
61 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
7062 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
7163 AC_BEFORE([$0], [LT_LANG])dnl
7264 AC_BEFORE([$0], [LT_OUTPUT])dnl
9082 _LT_SET_OPTIONS([$0], [$1])
9183
9284 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
85 LIBTOOL_DEPS=$ltmain
9486
9587 # Always use our own libtool.
9688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
110102 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111103
112104
105 # _LT_PREPARE_CC_BASENAME
106 # -----------------------
107 m4_defun([_LT_PREPARE_CC_BASENAME], [
108 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
109 func_cc_basename ()
110 {
111 for cc_temp in @S|@*""; do
112 case $cc_temp in
113 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
114 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
115 \-*) ;;
116 *) break;;
117 esac
118 done
119 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
120 }
121 ])# _LT_PREPARE_CC_BASENAME
122
123
113124 # _LT_CC_BASENAME(CC)
114125 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
126 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
127 # but that macro is also expanded into generated libtool script, which
128 # arranges for $SED and $ECHO to be set by different means.
116129 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
130 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
131 AC_REQUIRE([_LT_DECL_SED])dnl
132 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
133 func_cc_basename $1
134 cc_basename=$func_cc_basename_result
126135 ])
127136
128137
129138 # _LT_FILEUTILS_DEFAULTS
130139 # ----------------------
131140 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
141 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
133142 m4_defun([_LT_FILEUTILS_DEFAULTS],
134143 [: ${CP="cp -f"}
135144 : ${MV="mv -f"}
176185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178187 m4_require([_LT_WITH_SYSROOT])dnl
188 m4_require([_LT_CMD_TRUNCATE])dnl
179189
180190 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
191 # See if we are running on zsh, and set the options that allow our
182192 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
193 if test -n "\${ZSH_VERSION+set}"; then
184194 setopt NO_GLOB_SUBST
185195 fi
186196 ])
187 if test -n "${ZSH_VERSION+set}" ; then
197 if test -n "${ZSH_VERSION+set}"; then
188198 setopt NO_GLOB_SUBST
189199 fi
190200
197207 # AIX sometimes has problems with the GCC collect2 program. For some
198208 # reason, if we set the COLLECT_NAMES environment variable, the problems
199209 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
210 if test set != "${COLLECT_NAMES+set}"; then
201211 COLLECT_NAMES=
202212 export COLLECT_NAMES
203213 fi
208218 ofile=libtool
209219 can_build_shared=yes
210220
211 # All known linkers require a `.a' archive for static linking (except MSVC,
221 # All known linkers require a '.a' archive for static linking (except MSVC,
212222 # which needs '.lib').
213223 libext=a
214224
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
225 with_gnu_ld=$lt_cv_prog_gnu_ld
226
227 old_CC=$CC
228 old_CFLAGS=$CFLAGS
219229
220230 # Set sane defaults for various variables
221231 test -z "$CC" && CC=cc
268278
269279 # _LT_PROG_LTMAIN
270280 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
281 # Note that this code is called both from 'configure', and 'config.status'
272282 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
283 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
274284 # so we pass a copy along to make sure it has a sensible value anyway.
275285 m4_defun([_LT_PROG_LTMAIN],
276286 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277287 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
288 ltmain=$ac_aux_dir/ltmain.sh
279289 ])# _LT_PROG_LTMAIN
280290
281291
285295
286296 # So that we can recreate a full libtool script including additional
287297 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
298 # in macros and then make a single call at the end using the 'libtool'
289299 # label.
290300
291301
420430
421431 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422432 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
433 # Quote a variable value, and forward it to 'config.status' so that its
434 # declaration there will have the same value as in 'configure'. VARNAME
425435 # must have a single quote delimited value for this to work.
426436 m4_define([_LT_CONFIG_STATUS_DECLARE],
427437 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
445455 # Output comment and list of tags supported by the script
446456 m4_defun([_LT_LIBTOOL_TAGS],
447457 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
458 available_tags='_LT_TAGS'dnl
449459 ])
450460
451461
473483 # _LT_LIBTOOL_CONFIG_VARS
474484 # -----------------------
475485 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
486 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
477487 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478488 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479489 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
499509 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500510 # variables for single and double quote escaping we saved from calls
501511 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
512 # into 'config.status', and then the shell code to quote escape them in
513 # for loops in 'config.status'. Finally, any additional code accumulated
504514 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505515 m4_defun([_LT_CONFIG_COMMANDS],
506516 [AC_PROVIDE_IFELSE([LT_OUTPUT],
546556 ]], lt_decl_quote_varnames); do
547557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548558 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
550560 ;;
551561 *)
552562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
559569 ]], lt_decl_dquote_varnames); do
560570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561571 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
563573 ;;
564574 *)
565575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
575585 # Generate a child script FILE with all initialization necessary to
576586 # reuse the environment learned by the parent script, and make the
577587 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
588 # '#!' sequence but before initialization text begins. After this
579589 # macro, additional text can be appended to FILE to form the body of
580590 # the child script. The macro ends with non-zero status if the
581591 # file could not be fully written (such as if the disk is full).
597607 _AS_PREPARE
598608 exec AS_MESSAGE_FD>&1
599609 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
610 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
601611 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602612
603613 # LT_OUTPUT
620630 } >&AS_MESSAGE_LOG_FD
621631
622632 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
633 '$as_me' creates a local libtool stub from the current configuration,
624634 for use in further configure time tests before the real libtool is
625635 generated.
626636
642652 This config.lt script is free software; the Free Software Foundation
643653 gives unlimited permision to copy, distribute and modify it."
644654
645 while test $[#] != 0
655 while test 0 != $[#]
646656 do
647657 case $[1] in
648658 --version | --v* | -V )
655665 lt_cl_silent=: ;;
656666
657667 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
668 Try '$[0] --help' for more information.]) ;;
659669
660670 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
671 Try '$[0] --help' for more information.]) ;;
662672 esac
663673 shift
664674 done
684694 # open by configure. Here we exec the FD to /dev/null, effectively closing
685695 # config.log, so it can be properly (re)opened and appended to by config.lt.
686696 lt_cl_success=:
687 test "$silent" = yes &&
697 test yes = "$silent" &&
688698 lt_config_lt_args="$lt_config_lt_args --quiet"
689699 exec AS_MESSAGE_LOG_FD>/dev/null
690700 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
704714 _LT_CONFIG_SAVE_COMMANDS([
705715 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706716 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
717 # See if we are running on zsh, and set the options that allow our
708718 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
719 if test -n "${ZSH_VERSION+set}"; then
710720 setopt NO_GLOB_SUBST
711721 fi
712722
713 cfgfile="${ofile}T"
723 cfgfile=${ofile}T
714724 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715725 $RM "$cfgfile"
716726
717727 cat <<_LT_EOF >> "$cfgfile"
718728 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
729 # Generated automatically by $as_me ($PACKAGE) $VERSION
722730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723731 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
732
733 # Provide generalized library-building support services.
734 # Written by Gordon Matzigkeit, 1996
735
725736 _LT_COPYING
726737 _LT_LIBTOOL_TAGS
738
739 # Configured defaults for sys_lib_dlsearch_path munging.
740 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
727741
728742 # ### BEGIN LIBTOOL CONFIG
729743 _LT_LIBTOOL_CONFIG_VARS
730744 _LT_LIBTOOL_TAG_VARS
731745 # ### END LIBTOOL CONFIG
746
747 _LT_EOF
748
749 cat <<'_LT_EOF' >> "$cfgfile"
750
751 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
752
753 _LT_PREPARE_MUNGE_PATH_LIST
754 _LT_PREPARE_CC_BASENAME
755
756 # ### END FUNCTIONS SHARED WITH CONFIGURE
732757
733758 _LT_EOF
734759
738763 # AIX sometimes has problems with the GCC collect2 program. For some
739764 # reason, if we set the COLLECT_NAMES environment variable, the problems
740765 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
766 if test set != "${COLLECT_NAMES+set}"; then
742767 COLLECT_NAMES=
743768 export COLLECT_NAMES
744769 fi
754779 # is reportedly fixed, but why not run on old versions too?
755780 sed '$q' "$ltmain" >> "$cfgfile" \
756781 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759782
760783 mv -f "$cfgfile" "$ofile" ||
761784 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
774797 [m4_if([$1], [], [
775798 PACKAGE='$PACKAGE'
776799 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778800 RM='$RM'
779801 ofile='$ofile'], [])
780802 ])dnl /_LT_CONFIG_SAVE_COMMANDS
973995
974996 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975997 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
998 if test -z "$LT_MULTI_MODULE"; then
977999 # By default we will add the -single_module flag. You can override
9781000 # by either setting the environment variable LT_MULTI_MODULE
9791001 # non-empty at configure time, or by adding -multi_module to the
9911013 cat conftest.err >&AS_MESSAGE_LOG_FD
9921014 # Otherwise, if the output was created with a 0 exit code from
9931015 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1016 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9951017 lt_cv_apple_cc_single_mod=yes
9961018 else
9971019 cat conftest.err >&AS_MESSAGE_LOG_FD
10091031 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
10101032 [lt_cv_ld_exported_symbols_list=yes],
10111033 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1034 LDFLAGS=$save_LDFLAGS
10131035 ])
10141036
10151037 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
10311053 _lt_result=$?
10321054 if test -s conftest.err && $GREP force_load conftest.err; then
10331055 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1056 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10351057 lt_cv_ld_force_load=yes
10361058 else
10371059 cat conftest.err >&AS_MESSAGE_LOG_FD
10411063 ])
10421064 case $host_os in
10431065 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1066 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10451067 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1068 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10471069 darwin*) # darwin 5.x on
10481070 # if running on 10.5 or later, the deployment target defaults
10491071 # to the OS version, if on x86, and 10.4, the deployment
10501072 # target defaults to 10.4. Don't you love it?
10511073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10521074 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1076 10.[[012]][[,.]]*)
1077 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10561078 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1079 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10581080 esac
10591081 ;;
10601082 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1083 if test yes = "$lt_cv_apple_cc_single_mod"; then
10621084 _lt_dar_single_mod='$single_module'
10631085 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1086 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1087 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10661088 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10681090 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1091 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10701092 _lt_dsymutil='~$DSYMUTIL $lib || :'
10711093 else
10721094 _lt_dsymutil=
10861108 _LT_TAGVAR(hardcode_direct, $1)=no
10871109 _LT_TAGVAR(hardcode_automatic, $1)=yes
10881110 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _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\"`'
1111 if test yes = "$lt_cv_ld_force_load"; then
1112 _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\"`'
10911113 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
10921114 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
10931115 else
10941116 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
10951117 fi
10961118 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1119 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
10981120 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1121 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11001122 *) _lt_dar_can_shared=$GCC ;;
11011123 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1124 if test yes = "$_lt_dar_can_shared"; then
11031125 output_verbose_link_cmd=func_echo_all
1104 _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}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _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}"
1107 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1126 _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"
1127 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1128 _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"
1129 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11081130 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1111 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1131 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1132 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1133 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
11121134 fi
11131135 ],[])
11141136 else
11281150 # Allow to override them for all tags through lt_cv_aix_libpath.
11291151 m4_defun([_LT_SYS_MODULE_PATH_AIX],
11301152 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1153 if test set = "${lt_cv_aix_libpath+set}"; then
11321154 aix_libpath=$lt_cv_aix_libpath
11331155 else
11341156 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
11461168 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471169 fi],[])
11481170 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1171 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
11501172 fi
11511173 ])
11521174 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
11661188 # -----------------------
11671189 # Find how we can fake an echo command that does not interpret backslash.
11681190 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1191 # of the generated configure script that will find a shell with a builtin
1192 # printf (that we can use as an echo command).
11711193 m4_defun([_LT_PROG_ECHO_BACKSLASH],
11721194 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11731195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11951217 # Invoke $ECHO with all args, space-separated.
11961218 func_echo_all ()
11971219 {
1198 $ECHO "$*"
1220 $ECHO "$*"
11991221 }
12001222
1201 case "$ECHO" in
1223 case $ECHO in
12021224 printf*) AC_MSG_RESULT([printf]) ;;
12031225 print*) AC_MSG_RESULT([print -r]) ;;
12041226 *) AC_MSG_RESULT([cat]) ;;
12241246 AC_DEFUN([_LT_WITH_SYSROOT],
12251247 [AC_MSG_CHECKING([for sysroot])
12261248 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1249 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1250 [Search for dependent libraries within DIR (or the compiler's sysroot
1251 if not specified).])],
12291252 [], [with_sysroot=no])
12301253
12311254 dnl lt_sysroot will always be passed unquoted. We quote it here
12321255 dnl in case the user passed a directory name.
12331256 lt_sysroot=
1234 case ${with_sysroot} in #(
1257 case $with_sysroot in #(
12351258 yes)
1236 if test "$GCC" = yes; then
1259 if test yes = "$GCC"; then
12371260 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12381261 fi
12391262 ;; #(
12431266 no|'')
12441267 ;; #(
12451268 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1269 AC_MSG_RESULT([$with_sysroot])
12471270 AC_MSG_ERROR([The sysroot must be an absolute path.])
12481271 ;;
12491272 esac
12501273
12511274 AC_MSG_RESULT([${lt_sysroot:-no}])
12521275 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1276 [dependent libraries, and where our libraries should be installed.])])
12541277
12551278 # _LT_ENABLE_LOCK
12561279 # ---------------
12581281 [AC_ARG_ENABLE([libtool-lock],
12591282 [AS_HELP_STRING([--disable-libtool-lock],
12601283 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1284 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12621285
12631286 # Some flags need to be propagated to the compiler or linker for good
12641287 # libtool support.
12651288 case $host in
12661289 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1290 # Find out what ABI is being produced by ac_compile, and set mode
1291 # options accordingly.
12681292 echo 'int i;' > conftest.$ac_ext
12691293 if AC_TRY_EVAL(ac_compile); then
12701294 case `/usr/bin/file conftest.$ac_objext` in
12711295 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1296 HPUX_IA64_MODE=32
12731297 ;;
12741298 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1299 HPUX_IA64_MODE=64
12761300 ;;
12771301 esac
12781302 fi
12791303 rm -rf conftest*
12801304 ;;
12811305 *-*-irix6*)
1282 # Find out which ABI we are using.
1306 # Find out what ABI is being produced by ac_compile, and set linker
1307 # options accordingly.
12831308 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12841309 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1310 if test yes = "$lt_cv_prog_gnu_ld"; then
12861311 case `/usr/bin/file conftest.$ac_objext` in
12871312 *32-bit*)
12881313 LD="${LD-ld} -melf32bsmip"
13111336 rm -rf conftest*
13121337 ;;
13131338
1339 mips64*-*linux*)
1340 # Find out what ABI is being produced by ac_compile, and set linker
1341 # options accordingly.
1342 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1343 if AC_TRY_EVAL(ac_compile); then
1344 emul=elf
1345 case `/usr/bin/file conftest.$ac_objext` in
1346 *32-bit*)
1347 emul="${emul}32"
1348 ;;
1349 *64-bit*)
1350 emul="${emul}64"
1351 ;;
1352 esac
1353 case `/usr/bin/file conftest.$ac_objext` in
1354 *MSB*)
1355 emul="${emul}btsmip"
1356 ;;
1357 *LSB*)
1358 emul="${emul}ltsmip"
1359 ;;
1360 esac
1361 case `/usr/bin/file conftest.$ac_objext` in
1362 *N32*)
1363 emul="${emul}n32"
1364 ;;
1365 esac
1366 LD="${LD-ld} -m $emul"
1367 fi
1368 rm -rf conftest*
1369 ;;
1370
13141371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13151372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1373 # Find out what ABI is being produced by ac_compile, and set linker
1374 # options accordingly. Note that the listed cases only cover the
1375 # situations where additional linker options are needed (such as when
1376 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1377 # vice versa); the common cases where no linker options are needed do
1378 # not appear in the list.
13171379 echo 'int i;' > conftest.$ac_ext
13181380 if AC_TRY_EVAL(ac_compile); then
13191381 case `/usr/bin/file conftest.o` in
13321394 ;;
13331395 esac
13341396 ;;
1335 powerpc64le-*)
1397 powerpc64le-*linux*)
13361398 LD="${LD-ld} -m elf32lppclinux"
13371399 ;;
1338 powerpc64-*)
1400 powerpc64-*linux*)
13391401 LD="${LD-ld} -m elf32ppclinux"
13401402 ;;
13411403 s390x-*linux*)
13541416 x86_64-*linux*)
13551417 LD="${LD-ld} -m elf_x86_64"
13561418 ;;
1357 powerpcle-*)
1419 powerpcle-*linux*)
13581420 LD="${LD-ld} -m elf64lppc"
13591421 ;;
1360 powerpc-*)
1422 powerpc-*linux*)
13611423 LD="${LD-ld} -m elf64ppc"
13621424 ;;
13631425 s390*-*linux*|s390*-*tpf*)
13751437
13761438 *-*-sco3.2v5*)
13771439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1378 SAVE_CFLAGS="$CFLAGS"
1440 SAVE_CFLAGS=$CFLAGS
13791441 CFLAGS="$CFLAGS -belf"
13801442 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13811443 [AC_LANG_PUSH(C)
13821444 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13831445 AC_LANG_POP])
1384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1446 if test yes != "$lt_cv_cc_needs_belf"; then
13851447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1386 CFLAGS="$SAVE_CFLAGS"
1448 CFLAGS=$SAVE_CFLAGS
13871449 fi
13881450 ;;
13891451 *-*solaris*)
1390 # Find out which ABI we are using.
1452 # Find out what ABI is being produced by ac_compile, and set linker
1453 # options accordingly.
13911454 echo 'int i;' > conftest.$ac_ext
13921455 if AC_TRY_EVAL(ac_compile); then
13931456 case `/usr/bin/file conftest.o` in
13951458 case $lt_cv_prog_gnu_ld in
13961459 yes*)
13971460 case $host in
1398 i?86-*-solaris*)
1461 i?86-*-solaris*|x86_64-*-solaris*)
13991462 LD="${LD-ld} -m elf_x86_64"
14001463 ;;
14011464 sparc*-*-solaris*)
14041467 esac
14051468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14061469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1407 LD="${LD-ld}_sol2"
1470 LD=${LD-ld}_sol2
14081471 fi
14091472 ;;
14101473 *)
14201483 ;;
14211484 esac
14221485
1423 need_locks="$enable_libtool_lock"
1486 need_locks=$enable_libtool_lock
14241487 ])# _LT_ENABLE_LOCK
14251488
14261489
14391502 [echo conftest.$ac_objext > conftest.lst
14401503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
14411504 AC_TRY_EVAL([lt_ar_try])
1442 if test "$ac_status" -eq 0; then
1505 if test 0 -eq "$ac_status"; then
14431506 # Ensure the archiver fails upon bogus file names.
14441507 rm -f conftest.$ac_objext libconftest.a
14451508 AC_TRY_EVAL([lt_ar_try])
1446 if test "$ac_status" -ne 0; then
1509 if test 0 -ne "$ac_status"; then
14471510 lt_cv_ar_at_file=@
14481511 fi
14491512 fi
14511514 ])
14521515 ])
14531516
1454 if test "x$lt_cv_ar_at_file" = xno; then
1517 if test no = "$lt_cv_ar_at_file"; then
14551518 archiver_list_spec=
14561519 else
14571520 archiver_list_spec=$lt_cv_ar_at_file
14821545
14831546 if test -n "$RANLIB"; then
14841547 case $host_os in
1485 openbsd*)
1548 bitrig* | openbsd*)
14861549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14871550 ;;
14881551 *)
15181581 [$2=no
15191582 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15201583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1521 lt_compiler_flag="$3"
1584 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
15221585 # Insert the option either (1) after the last *FLAGS variable, or
15231586 # (2) before a word containing "conftest.", or (3) at the end.
15241587 # Note that $ac_compile itself does not contain backslashes and begins
15451608 $RM conftest*
15461609 ])
15471610
1548 if test x"[$]$2" = xyes; then
1611 if test yes = "[$]$2"; then
15491612 m4_if([$5], , :, [$5])
15501613 else
15511614 m4_if([$6], , :, [$6])
15671630 m4_require([_LT_DECL_SED])dnl
15681631 AC_CACHE_CHECK([$1], [$2],
15691632 [$2=no
1570 save_LDFLAGS="$LDFLAGS"
1633 save_LDFLAGS=$LDFLAGS
15711634 LDFLAGS="$LDFLAGS $3"
15721635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15731636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15861649 fi
15871650 fi
15881651 $RM -r conftest*
1589 LDFLAGS="$save_LDFLAGS"
1652 LDFLAGS=$save_LDFLAGS
15901653 ])
15911654
1592 if test x"[$]$2" = xyes; then
1655 if test yes = "[$]$2"; then
15931656 m4_if([$4], , :, [$4])
15941657 else
15951658 m4_if([$5], , :, [$5])
16101673 AC_MSG_CHECKING([the maximum length of command line arguments])
16111674 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
16121675 i=0
1613 teststring="ABCD"
1676 teststring=ABCD
16141677
16151678 case $build_os in
16161679 msdosdjgpp*)
16501713 lt_cv_sys_max_cmd_len=8192;
16511714 ;;
16521715
1653 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1716 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
16541717 # This has been around since 386BSD, at least. Likely further.
16551718 if test -x /sbin/sysctl; then
16561719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17011764 *)
17021765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
17031766 if test -n "$lt_cv_sys_max_cmd_len" && \
1704 test undefined != "$lt_cv_sys_max_cmd_len"; then
1767 test undefined != "$lt_cv_sys_max_cmd_len"; then
17051768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
17061769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
17071770 else
17081771 # Make teststring a little bigger before we do anything with it.
17091772 # a 1K string should be a reasonable start.
1710 for i in 1 2 3 4 5 6 7 8 ; do
1773 for i in 1 2 3 4 5 6 7 8; do
17111774 teststring=$teststring$teststring
17121775 done
17131776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
17141777 # If test is not a shell built-in, we'll probably end up computing a
17151778 # maximum length that is only half of the actual maximum length, but
17161779 # we can't tell.
1717 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1780 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
17181781 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1719 test $i != 17 # 1/2 MB should be enough
1782 test 17 != "$i" # 1/2 MB should be enough
17201783 do
17211784 i=`expr $i + 1`
17221785 teststring=$teststring$teststring
17321795 ;;
17331796 esac
17341797 ])
1735 if test -n $lt_cv_sys_max_cmd_len ; then
1798 if test -n "$lt_cv_sys_max_cmd_len"; then
17361799 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
17371800 else
17381801 AC_MSG_RESULT(none)
17601823 # ----------------------------------------------------------------
17611824 m4_defun([_LT_TRY_DLOPEN_SELF],
17621825 [m4_require([_LT_HEADER_DLFCN])dnl
1763 if test "$cross_compiling" = yes; then :
1826 if test yes = "$cross_compiling"; then :
17641827 [$4]
17651828 else
17661829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18071870 # endif
18081871 #endif
18091872
1810 /* When -fvisbility=hidden is used, assume the code has been annotated
1873 /* When -fvisibility=hidden is used, assume the code has been annotated
18111874 correspondingly for the symbols needed. */
1812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1875 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18131876 int fnord () __attribute__((visibility("default")));
18141877 #endif
18151878
18351898 return status;
18361899 }]
18371900 _LT_EOF
1838 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1901 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
18391902 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
18401903 lt_status=$?
18411904 case x$lt_status in
18561919 # ------------------
18571920 AC_DEFUN([LT_SYS_DLOPEN_SELF],
18581921 [m4_require([_LT_HEADER_DLFCN])dnl
1859 if test "x$enable_dlopen" != xyes; then
1922 if test yes != "$enable_dlopen"; then
18601923 enable_dlopen=unknown
18611924 enable_dlopen_self=unknown
18621925 enable_dlopen_self_static=unknown
18661929
18671930 case $host_os in
18681931 beos*)
1869 lt_cv_dlopen="load_add_on"
1932 lt_cv_dlopen=load_add_on
18701933 lt_cv_dlopen_libs=
18711934 lt_cv_dlopen_self=yes
18721935 ;;
18731936
18741937 mingw* | pw32* | cegcc*)
1875 lt_cv_dlopen="LoadLibrary"
1938 lt_cv_dlopen=LoadLibrary
18761939 lt_cv_dlopen_libs=
18771940 ;;
18781941
18791942 cygwin*)
1880 lt_cv_dlopen="dlopen"
1943 lt_cv_dlopen=dlopen
18811944 lt_cv_dlopen_libs=
18821945 ;;
18831946
18841947 darwin*)
1885 # if libdl is installed we need to link against it
1948 # if libdl is installed we need to link against it
18861949 AC_CHECK_LIB([dl], [dlopen],
1887 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1888 lt_cv_dlopen="dyld"
1950 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1951 lt_cv_dlopen=dyld
18891952 lt_cv_dlopen_libs=
18901953 lt_cv_dlopen_self=yes
18911954 ])
18921955 ;;
18931956
1957 tpf*)
1958 # Don't try to run any link tests for TPF. We know it's impossible
1959 # because TPF is a cross-compiler, and we know how we open DSOs.
1960 lt_cv_dlopen=dlopen
1961 lt_cv_dlopen_libs=
1962 lt_cv_dlopen_self=no
1963 ;;
1964
18941965 *)
18951966 AC_CHECK_FUNC([shl_load],
1896 [lt_cv_dlopen="shl_load"],
1967 [lt_cv_dlopen=shl_load],
18971968 [AC_CHECK_LIB([dld], [shl_load],
1898 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1969 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
18991970 [AC_CHECK_FUNC([dlopen],
1900 [lt_cv_dlopen="dlopen"],
1971 [lt_cv_dlopen=dlopen],
19011972 [AC_CHECK_LIB([dl], [dlopen],
1902 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1973 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
19031974 [AC_CHECK_LIB([svld], [dlopen],
1904 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1975 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
19051976 [AC_CHECK_LIB([dld], [dld_link],
1906 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1977 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
19071978 ])
19081979 ])
19091980 ])
19121983 ;;
19131984 esac
19141985
1915 if test "x$lt_cv_dlopen" != xno; then
1986 if test no = "$lt_cv_dlopen"; then
1987 enable_dlopen=no
1988 else
19161989 enable_dlopen=yes
1917 else
1918 enable_dlopen=no
19191990 fi
19201991
19211992 case $lt_cv_dlopen in
19221993 dlopen)
1923 save_CPPFLAGS="$CPPFLAGS"
1924 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1925
1926 save_LDFLAGS="$LDFLAGS"
1994 save_CPPFLAGS=$CPPFLAGS
1995 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1996
1997 save_LDFLAGS=$LDFLAGS
19271998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19281999
1929 save_LIBS="$LIBS"
2000 save_LIBS=$LIBS
19302001 LIBS="$lt_cv_dlopen_libs $LIBS"
19312002
19322003 AC_CACHE_CHECK([whether a program can dlopen itself],
19362007 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
19372008 ])
19382009
1939 if test "x$lt_cv_dlopen_self" = xyes; then
2010 if test yes = "$lt_cv_dlopen_self"; then
19402011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19412012 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
19422013 lt_cv_dlopen_self_static, [dnl
19462017 ])
19472018 fi
19482019
1949 CPPFLAGS="$save_CPPFLAGS"
1950 LDFLAGS="$save_LDFLAGS"
1951 LIBS="$save_LIBS"
2020 CPPFLAGS=$save_CPPFLAGS
2021 LDFLAGS=$save_LDFLAGS
2022 LIBS=$save_LIBS
19522023 ;;
19532024 esac
19542025
20402111 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20412112 _LT_COMPILER_C_O([$1])
20422113
2043 hard_links="nottested"
2044 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2114 hard_links=nottested
2115 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
20452116 # do not overwrite the value of need_locks provided by the user
20462117 AC_MSG_CHECKING([if we can lock with hard links])
20472118 hard_links=yes
20512122 ln conftest.a conftest.b 2>&5 || hard_links=no
20522123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20532124 AC_MSG_RESULT([$hard_links])
2054 if test "$hard_links" = no; then
2055 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2125 if test no = "$hard_links"; then
2126 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
20562127 need_locks=warn
20572128 fi
20582129 else
20792150 _LT_DECL([], [objdir], [0],
20802151 [The name of the directory that contains temporary libtool files])dnl
20812152 m4_pattern_allow([LT_OBJDIR])dnl
2082 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2083 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2153 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2154 [Define to the sub-directory where libtool stores uninstalled libraries.])
20842155 ])# _LT_CHECK_OBJDIR
20852156
20862157
20922163 _LT_TAGVAR(hardcode_action, $1)=
20932164 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
20942165 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2095 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2166 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
20962167
20972168 # We can hardcode non-existent directories.
2098 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2169 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
20992170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21002171 # have to relink, otherwise we might link with an installed library
21012172 # when we should be linking with a yet-to-be-installed one
2102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2103 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2173 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2174 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
21042175 # Linking always hardcodes the temporary library directory.
21052176 _LT_TAGVAR(hardcode_action, $1)=relink
21062177 else
21142185 fi
21152186 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
21162187
2117 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2118 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2188 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2189 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
21192190 # Fast installation is not supported
21202191 enable_fast_install=no
2121 elif test "$shlibpath_overrides_runpath" = yes ||
2122 test "$enable_shared" = no; then
2192 elif test yes = "$shlibpath_overrides_runpath" ||
2193 test no = "$enable_shared"; then
21232194 # Fast installation is not necessary
21242195 enable_fast_install=needless
21252196 fi
21432214 # FIXME - insert some real tests, host_os isn't really good enough
21442215 case $host_os in
21452216 darwin*)
2146 if test -n "$STRIP" ; then
2217 if test -n "$STRIP"; then
21472218 striplib="$STRIP -x"
21482219 old_striplib="$STRIP -S"
21492220 AC_MSG_RESULT([yes])
21612232 ])# _LT_CMD_STRIPLIB
21622233
21632234
2235 # _LT_PREPARE_MUNGE_PATH_LIST
2236 # ---------------------------
2237 # Make sure func_munge_path_list() is defined correctly.
2238 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2239 [[# func_munge_path_list VARIABLE PATH
2240 # -----------------------------------
2241 # VARIABLE is name of variable containing _space_ separated list of
2242 # directories to be munged by the contents of PATH, which is string
2243 # having a format:
2244 # "DIR[:DIR]:"
2245 # string "DIR[ DIR]" will be prepended to VARIABLE
2246 # ":DIR[:DIR]"
2247 # string "DIR[ DIR]" will be appended to VARIABLE
2248 # "DIRP[:DIRP]::[DIRA:]DIRA"
2249 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2250 # "DIRA[ DIRA]" will be appended to VARIABLE
2251 # "DIR[:DIR]"
2252 # VARIABLE will be replaced by "DIR[ DIR]"
2253 func_munge_path_list ()
2254 {
2255 case x@S|@2 in
2256 x)
2257 ;;
2258 *:)
2259 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2260 ;;
2261 x:*)
2262 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2263 ;;
2264 *::*)
2265 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2266 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2267 ;;
2268 *)
2269 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2270 ;;
2271 esac
2272 }
2273 ]])# _LT_PREPARE_PATH_LIST
2274
2275
21642276 # _LT_SYS_DYNAMIC_LINKER([TAG])
21652277 # -----------------------------
21662278 # PORTME Fill in your ld.so characteristics
21712283 m4_require([_LT_DECL_OBJDUMP])dnl
21722284 m4_require([_LT_DECL_SED])dnl
21732285 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2286 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
21742287 AC_MSG_CHECKING([dynamic linker characteristics])
21752288 m4_if([$1],
21762289 [], [
2177 if test "$GCC" = yes; then
2290 if test yes = "$GCC"; then
21782291 case $host_os in
2179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2180 *) lt_awk_arg="/^libraries:/" ;;
2292 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2293 *) lt_awk_arg='/^libraries:/' ;;
21812294 esac
21822295 case $host_os in
2183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2184 *) lt_sed_strip_eq="s,=/,/,g" ;;
2296 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2297 *) lt_sed_strip_eq='s|=/|/|g' ;;
21852298 esac
21862299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21872300 case $lt_search_path_spec in
21972310 ;;
21982311 esac
21992312 # Ok, now we have the path, separated by spaces, we can step through it
2200 # and add multilib dir if necessary.
2313 # and add multilib dir if necessary...
22012314 lt_tmp_lt_search_path_spec=
2202 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2315 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2316 # ...but if some path component already ends with the multilib dir we assume
2317 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2318 case "$lt_multi_os_dir; $lt_search_path_spec " in
2319 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2320 lt_multi_os_dir=
2321 ;;
2322 esac
22032323 for lt_sys_path in $lt_search_path_spec; do
2204 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2206 else
2324 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2326 elif test -n "$lt_multi_os_dir"; then
22072327 test -d "$lt_sys_path" && \
22082328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
22092329 fi
22102330 done
22112331 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2212 BEGIN {RS=" "; FS="/|\n";} {
2213 lt_foo="";
2214 lt_count=0;
2332 BEGIN {RS = " "; FS = "/|\n";} {
2333 lt_foo = "";
2334 lt_count = 0;
22152335 for (lt_i = NF; lt_i > 0; lt_i--) {
22162336 if ($lt_i != "" && $lt_i != ".") {
22172337 if ($lt_i == "..") {
22182338 lt_count++;
22192339 } else {
22202340 if (lt_count == 0) {
2221 lt_foo="/" $lt_i lt_foo;
2341 lt_foo = "/" $lt_i lt_foo;
22222342 } else {
22232343 lt_count--;
22242344 }
22322352 # for these hosts.
22332353 case $host_os in
22342354 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2235 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2355 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
22362356 esac
22372357 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
22382358 else
22412361 library_names_spec=
22422362 libname_spec='lib$name'
22432363 soname_spec=
2244 shrext_cmds=".so"
2364 shrext_cmds=.so
22452365 postinstall_cmds=
22462366 postuninstall_cmds=
22472367 finish_cmds=
22582378 # flags to be left without arguments
22592379 need_version=unknown
22602380
2381 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2382 [User-defined run-time library search path.])
2383
22612384 case $host_os in
22622385 aix3*)
22632386 version_type=linux # correct to gnu/linux during the next big refactor
2264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2387 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22652388 shlibpath_var=LIBPATH
22662389
22672390 # AIX 3 has no versioning support, so we append a major version to the name.
2268 soname_spec='${libname}${release}${shared_ext}$major'
2391 soname_spec='$libname$release$shared_ext$major'
22692392 ;;
22702393
22712394 aix[[4-9]]*)
22732396 need_lib_prefix=no
22742397 need_version=no
22752398 hardcode_into_libs=yes
2276 if test "$host_cpu" = ia64; then
2399 if test ia64 = "$host_cpu"; then
22772400 # AIX 5 supports IA64
2278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2401 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22792402 shlibpath_var=LD_LIBRARY_PATH
22802403 else
22812404 # With GCC up to 2.95.x, collect2 would create an import file
22822405 # for dependence libraries. The import file would start with
2283 # the line `#! .'. This would cause the generated library to
2284 # depend on `.', always an invalid library. This was fixed in
2406 # the line '#! .'. This would cause the generated library to
2407 # depend on '.', always an invalid library. This was fixed in
22852408 # development snapshots of GCC prior to 3.0.
22862409 case $host_os in
22872410 aix4 | aix4.[[01]] | aix4.[[01]].*)
22882411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22892412 echo ' yes '
2290 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2413 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22912414 :
22922415 else
22932416 can_build_shared=no
22942417 fi
22952418 ;;
22962419 esac
2297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2420 # Using Import Files as archive members, it is possible to support
2421 # filename-based versioning of shared library archives on AIX. While
2422 # this would work for both with and without runtime linking, it will
2423 # prevent static linking of such archives. So we do filename-based
2424 # shared library versioning with .so extension only, which is used
2425 # when both runtime linking and shared linking is enabled.
2426 # Unfortunately, runtime linking may impact performance, so we do
2427 # not want this to be the default eventually. Also, we use the
2428 # versioned .so libs for executables only if there is the -brtl
2429 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2430 # To allow for filename-based versioning support, we need to create
2431 # libNAME.so.V as an archive file, containing:
2432 # *) an Import File, referring to the versioned filename of the
2433 # archive as well as the shared archive member, telling the
2434 # bitwidth (32 or 64) of that shared object, and providing the
2435 # list of exported symbols of that shared object, eventually
2436 # decorated with the 'weak' keyword
2437 # *) the shared object with the F_LOADONLY flag set, to really avoid
2438 # it being seen by the linker.
2439 # At run time we better use the real file rather than another symlink,
2440 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2441
2442 case $with_aix_soname,$aix_use_runtimelinking in
2443 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22982444 # soname into executable. Probably we can add versioning support to
22992445 # collect2, so additional links can be useful in future.
2300 if test "$aix_use_runtimelinking" = yes; then
2446 aix,yes) # traditional libtool
2447 dynamic_linker='AIX unversionable lib.so'
23012448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23022449 # instead of lib<name>.a to let people know that these are not
23032450 # typical AIX shared libraries.
2304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2305 else
2451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2452 ;;
2453 aix,no) # traditional AIX only
2454 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
23062455 # We preserve .a as extension for shared libraries through AIX4.2
23072456 # and later when we are not doing run time linking.
2308 library_names_spec='${libname}${release}.a $libname.a'
2309 soname_spec='${libname}${release}${shared_ext}$major'
2310 fi
2457 library_names_spec='$libname$release.a $libname.a'
2458 soname_spec='$libname$release$shared_ext$major'
2459 ;;
2460 svr4,*) # full svr4 only
2461 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2462 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2463 # We do not specify a path in Import Files, so LIBPATH fires.
2464 shlibpath_overrides_runpath=yes
2465 ;;
2466 *,yes) # both, prefer svr4
2467 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2468 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2469 # unpreferred sharedlib libNAME.a needs extra handling
2470 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2471 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2472 # We do not specify a path in Import Files, so LIBPATH fires.
2473 shlibpath_overrides_runpath=yes
2474 ;;
2475 *,no) # both, prefer aix
2476 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2477 library_names_spec='$libname$release.a $libname.a'
2478 soname_spec='$libname$release$shared_ext$major'
2479 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2480 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2481 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2482 ;;
2483 esac
23112484 shlibpath_var=LIBPATH
23122485 fi
23132486 ;;
23172490 powerpc)
23182491 # Since July 2007 AmigaOS4 officially supports .so libraries.
23192492 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23212494 ;;
23222495 m68k)
23232496 library_names_spec='$libname.ixlibrary $libname.a'
23242497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2325 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'
2498 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
23262499 ;;
23272500 esac
23282501 ;;
23292502
23302503 beos*)
2331 library_names_spec='${libname}${shared_ext}'
2504 library_names_spec='$libname$shared_ext'
23322505 dynamic_linker="$host_os ld.so"
23332506 shlibpath_var=LIBRARY_PATH
23342507 ;;
23362509 bsdi[[45]]*)
23372510 version_type=linux # correct to gnu/linux during the next big refactor
23382511 need_version=no
2339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2340 soname_spec='${libname}${release}${shared_ext}$major'
2512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2513 soname_spec='$libname$release$shared_ext$major'
23412514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23422515 shlibpath_var=LD_LIBRARY_PATH
23432516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23492522
23502523 cygwin* | mingw* | pw32* | cegcc*)
23512524 version_type=windows
2352 shrext_cmds=".dll"
2525 shrext_cmds=.dll
23532526 need_version=no
23542527 need_lib_prefix=no
23552528
23582531 # gcc
23592532 library_names_spec='$libname.dll.a'
23602533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2361 postinstall_cmds='base_file=`basename \${file}`~
2362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2534 postinstall_cmds='base_file=`basename \$file`~
2535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23632536 dldir=$destdir/`dirname \$dlpath`~
23642537 test -d \$dldir || mkdir -p \$dldir~
23652538 $install_prog $dir/$dlname \$dldir/$dlname~
23752548 case $host_os in
23762549 cygwin*)
23772550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2551 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23792552 m4_if([$1], [],[
23802553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
23812554 ;;
23822555 mingw* | cegcc*)
23832556 # MinGW DLLs use traditional 'lib' prefix
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2557 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23852558 ;;
23862559 pw32*)
23872560 # pw32 DLLs use 'pw' prefix rather than 'lib'
2388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2561 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23892562 ;;
23902563 esac
23912564 dynamic_linker='Win32 ld.exe'
23942567 *,cl*)
23952568 # Native MSVC
23962569 libname_spec='$name'
2397 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2398 library_names_spec='${libname}.dll.lib'
2570 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2571 library_names_spec='$libname.dll.lib'
23992572
24002573 case $build_os in
24012574 mingw*)
24222595 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24232596 ;;
24242597 *)
2425 sys_lib_search_path_spec="$LIB"
2598 sys_lib_search_path_spec=$LIB
24262599 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
24272600 # It is most probably a Windows format PATH.
24282601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24352608 esac
24362609
24372610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2438 postinstall_cmds='base_file=`basename \${file}`~
2439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2611 postinstall_cmds='base_file=`basename \$file`~
2612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
24402613 dldir=$destdir/`dirname \$dlpath`~
24412614 test -d \$dldir || mkdir -p \$dldir~
24422615 $install_prog $dir/$dlname \$dldir/$dlname'
24492622
24502623 *)
24512624 # Assume MSVC wrapper
2452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2625 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
24532626 dynamic_linker='Win32 ld.exe'
24542627 ;;
24552628 esac
24622635 version_type=darwin
24632636 need_lib_prefix=no
24642637 need_version=no
2465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2466 soname_spec='${libname}${release}${major}$shared_ext'
2638 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2639 soname_spec='$libname$release$major$shared_ext'
24672640 shlibpath_overrides_runpath=yes
24682641 shlibpath_var=DYLD_LIBRARY_PATH
24692642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24762649 version_type=linux # correct to gnu/linux during the next big refactor
24772650 need_lib_prefix=no
24782651 need_version=no
2479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2480 soname_spec='${libname}${release}${shared_ext}$major'
2652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2653 soname_spec='$libname$release$shared_ext$major'
24812654 shlibpath_var=LD_LIBRARY_PATH
24822655 ;;
24832656
24952668 version_type=freebsd-$objformat
24962669 case $version_type in
24972670 freebsd-elf*)
2498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2672 soname_spec='$libname$release$shared_ext$major'
24992673 need_version=no
25002674 need_lib_prefix=no
25012675 ;;
25022676 freebsd-*)
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
25042678 need_version=yes
25052679 ;;
25062680 esac
25302704 need_lib_prefix=no
25312705 need_version=no
25322706 dynamic_linker="$host_os runtime_loader"
2533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2534 soname_spec='${libname}${release}${shared_ext}$major'
2707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2708 soname_spec='$libname$release$shared_ext$major'
25352709 shlibpath_var=LIBRARY_PATH
2536 shlibpath_overrides_runpath=yes
2710 shlibpath_overrides_runpath=no
25372711 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
25382712 hardcode_into_libs=yes
25392713 ;;
25512725 dynamic_linker="$host_os dld.so"
25522726 shlibpath_var=LD_LIBRARY_PATH
25532727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2555 soname_spec='${libname}${release}${shared_ext}$major'
2556 if test "X$HPUX_IA64_MODE" = X32; then
2728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2729 soname_spec='$libname$release$shared_ext$major'
2730 if test 32 = "$HPUX_IA64_MODE"; then
25572731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2732 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
25582733 else
25592734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2735 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
25602736 fi
2561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25622737 ;;
25632738 hppa*64*)
25642739 shrext_cmds='.sl'
25662741 dynamic_linker="$host_os dld.sl"
25672742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25682743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2570 soname_spec='${libname}${release}${shared_ext}$major'
2744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2745 soname_spec='$libname$release$shared_ext$major'
25712746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25722747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25732748 ;;
25762751 dynamic_linker="$host_os dld.sl"
25772752 shlibpath_var=SHLIB_PATH
25782753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2580 soname_spec='${libname}${release}${shared_ext}$major'
2754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2755 soname_spec='$libname$release$shared_ext$major'
25812756 ;;
25822757 esac
25832758 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
25902765 version_type=linux # correct to gnu/linux during the next big refactor
25912766 need_lib_prefix=no
25922767 need_version=no
2593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2594 soname_spec='${libname}${release}${shared_ext}$major'
2768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2769 soname_spec='$libname$release$shared_ext$major'
25952770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25962771 shlibpath_var=LD_LIBRARY_PATH
25972772 shlibpath_overrides_runpath=no
26022777 case $host_os in
26032778 nonstopux*) version_type=nonstopux ;;
26042779 *)
2605 if test "$lt_cv_prog_gnu_ld" = yes; then
2780 if test yes = "$lt_cv_prog_gnu_ld"; then
26062781 version_type=linux # correct to gnu/linux during the next big refactor
26072782 else
26082783 version_type=irix
26102785 esac
26112786 need_lib_prefix=no
26122787 need_version=no
2613 soname_spec='${libname}${release}${shared_ext}$major'
2614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2788 soname_spec='$libname$release$shared_ext$major'
2789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
26152790 case $host_os in
26162791 irix5* | nonstopux*)
26172792 libsuff= shlibsuff=
26302805 esac
26312806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26322807 shlibpath_overrides_runpath=no
2633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2808 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2809 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
26352810 hardcode_into_libs=yes
26362811 ;;
26372812
26382813 # No shared lib support for Linux oldld, aout, or coff.
26392814 linux*oldld* | linux*aout* | linux*coff*)
26402815 dynamic_linker=no
2816 ;;
2817
2818 linux*android*)
2819 version_type=none # Android doesn't support versioned libraries.
2820 need_lib_prefix=no
2821 need_version=no
2822 library_names_spec='$libname$release$shared_ext'
2823 soname_spec='$libname$release$shared_ext'
2824 finish_cmds=
2825 shlibpath_var=LD_LIBRARY_PATH
2826 shlibpath_overrides_runpath=yes
2827
2828 # This implies no fast_install, which is unacceptable.
2829 # Some rework will be needed to allow for fast_install
2830 # before this can be enabled.
2831 hardcode_into_libs=yes
2832
2833 dynamic_linker='Android linker'
2834 # Don't embed -rpath directories since the linker doesn't support them.
2835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
26412836 ;;
26422837
26432838 # This must be glibc/ELF.
26452840 version_type=linux # correct to gnu/linux during the next big refactor
26462841 need_lib_prefix=no
26472842 need_version=no
2648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2649 soname_spec='${libname}${release}${shared_ext}$major'
2843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2844 soname_spec='$libname$release$shared_ext$major'
26502845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26512846 shlibpath_var=LD_LIBRARY_PATH
26522847 shlibpath_overrides_runpath=no
26712866 # before this can be enabled.
26722867 hardcode_into_libs=yes
26732868
2674 # Append ld.so.conf contents to the search path
2869 # Ideally, we could use ldconfig to report *all* directores which are
2870 # searched for libraries, however this is still not possible. Aside from not
2871 # being certain /sbin/ldconfig is available, command
2872 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2873 # even though it is searched at run-time. Try to do the best guess by
2874 # appending ld.so.conf contents (and includes) to the search path.
26752875 if test -f /etc/ld.so.conf; then
26762876 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' ' '`
26772877 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27032903 need_lib_prefix=no
27042904 need_version=no
27052905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2906 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27072907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27082908 dynamic_linker='NetBSD (a.out) ld.so'
27092909 else
2710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2711 soname_spec='${libname}${release}${shared_ext}$major'
2910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2911 soname_spec='$libname$release$shared_ext$major'
27122912 dynamic_linker='NetBSD ld.elf_so'
27132913 fi
27142914 shlibpath_var=LD_LIBRARY_PATH
27182918
27192919 newsos6)
27202920 version_type=linux # correct to gnu/linux during the next big refactor
2721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27222922 shlibpath_var=LD_LIBRARY_PATH
27232923 shlibpath_overrides_runpath=yes
27242924 ;;
27272927 version_type=qnx
27282928 need_lib_prefix=no
27292929 need_version=no
2730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2731 soname_spec='${libname}${release}${shared_ext}$major'
2930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2931 soname_spec='$libname$release$shared_ext$major'
27322932 shlibpath_var=LD_LIBRARY_PATH
27332933 shlibpath_overrides_runpath=no
27342934 hardcode_into_libs=yes
27352935 dynamic_linker='ldqnx.so'
27362936 ;;
27372937
2738 openbsd*)
2938 openbsd* | bitrig*)
27392939 version_type=sunos
2740 sys_lib_dlsearch_path_spec="/usr/lib"
2940 sys_lib_dlsearch_path_spec=/usr/lib
27412941 need_lib_prefix=no
2742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2743 case $host_os in
2744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2745 *) need_version=no ;;
2746 esac
2747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2943 need_version=no
2944 else
2945 need_version=yes
2946 fi
2947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27482948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27492949 shlibpath_var=LD_LIBRARY_PATH
2750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2751 case $host_os in
2752 openbsd2.[[89]] | openbsd2.[[89]].*)
2753 shlibpath_overrides_runpath=no
2754 ;;
2755 *)
2756 shlibpath_overrides_runpath=yes
2757 ;;
2758 esac
2759 else
2760 shlibpath_overrides_runpath=yes
2761 fi
2950 shlibpath_overrides_runpath=yes
27622951 ;;
27632952
27642953 os2*)
27652954 libname_spec='$name'
2766 shrext_cmds=".dll"
2955 version_type=windows
2956 shrext_cmds=.dll
2957 need_version=no
27672958 need_lib_prefix=no
2768 library_names_spec='$libname${shared_ext} $libname.a'
2959 # OS/2 can only load a DLL with a base name of 8 characters or less.
2960 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2961 v=$($ECHO $release$versuffix | tr -d .-);
2962 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2963 $ECHO $n$v`$shared_ext'
2964 library_names_spec='${libname}_dll.$libext'
27692965 dynamic_linker='OS/2 ld.exe'
2770 shlibpath_var=LIBPATH
2966 shlibpath_var=BEGINLIBPATH
2967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2969 postinstall_cmds='base_file=`basename \$file`~
2970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2971 dldir=$destdir/`dirname \$dlpath`~
2972 test -d \$dldir || mkdir -p \$dldir~
2973 $install_prog $dir/$dlname \$dldir/$dlname~
2974 chmod a+x \$dldir/$dlname~
2975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2977 fi'
2978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2979 dlpath=$dir/\$dldll~
2980 $RM \$dlpath'
27712981 ;;
27722982
27732983 osf3* | osf4* | osf5*)
27742984 version_type=osf
27752985 need_lib_prefix=no
27762986 need_version=no
2777 soname_spec='${libname}${release}${shared_ext}$major'
2778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2987 soname_spec='$libname$release$shared_ext$major'
2988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27792989 shlibpath_var=LD_LIBRARY_PATH
27802990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27822992 ;;
27832993
27842994 rdos*)
27892999 version_type=linux # correct to gnu/linux during the next big refactor
27903000 need_lib_prefix=no
27913001 need_version=no
2792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2793 soname_spec='${libname}${release}${shared_ext}$major'
3002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3003 soname_spec='$libname$release$shared_ext$major'
27943004 shlibpath_var=LD_LIBRARY_PATH
27953005 shlibpath_overrides_runpath=yes
27963006 hardcode_into_libs=yes
28003010
28013011 sunos4*)
28023012 version_type=sunos
2803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3013 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
28043014 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28053015 shlibpath_var=LD_LIBRARY_PATH
28063016 shlibpath_overrides_runpath=yes
2807 if test "$with_gnu_ld" = yes; then
3017 if test yes = "$with_gnu_ld"; then
28083018 need_lib_prefix=no
28093019 fi
28103020 need_version=yes
28123022
28133023 sysv4 | sysv4.3*)
28143024 version_type=linux # correct to gnu/linux during the next big refactor
2815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2816 soname_spec='${libname}${release}${shared_ext}$major'
3025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3026 soname_spec='$libname$release$shared_ext$major'
28173027 shlibpath_var=LD_LIBRARY_PATH
28183028 case $host_vendor in
28193029 sni)
28343044 ;;
28353045
28363046 sysv4*MP*)
2837 if test -d /usr/nec ;then
3047 if test -d /usr/nec; then
28383048 version_type=linux # correct to gnu/linux during the next big refactor
2839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2840 soname_spec='$libname${shared_ext}.$major'
3049 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3050 soname_spec='$libname$shared_ext.$major'
28413051 shlibpath_var=LD_LIBRARY_PATH
28423052 fi
28433053 ;;
28443054
28453055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2846 version_type=freebsd-elf
3056 version_type=sco
28473057 need_lib_prefix=no
28483058 need_version=no
2849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2850 soname_spec='${libname}${release}${shared_ext}$major'
3059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3060 soname_spec='$libname$release$shared_ext$major'
28513061 shlibpath_var=LD_LIBRARY_PATH
28523062 shlibpath_overrides_runpath=yes
28533063 hardcode_into_libs=yes
2854 if test "$with_gnu_ld" = yes; then
3064 if test yes = "$with_gnu_ld"; then
28553065 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28563066 else
28573067 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28693079 version_type=linux # correct to gnu/linux during the next big refactor
28703080 need_lib_prefix=no
28713081 need_version=no
2872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
28733083 shlibpath_var=LD_LIBRARY_PATH
28743084 shlibpath_overrides_runpath=no
28753085 hardcode_into_libs=yes
28773087
28783088 uts4*)
28793089 version_type=linux # correct to gnu/linux during the next big refactor
2880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2881 soname_spec='${libname}${release}${shared_ext}$major'
3090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3091 soname_spec='$libname$release$shared_ext$major'
28823092 shlibpath_var=LD_LIBRARY_PATH
28833093 ;;
28843094
28873097 ;;
28883098 esac
28893099 AC_MSG_RESULT([$dynamic_linker])
2890 test "$dynamic_linker" = no && can_build_shared=no
3100 test no = "$dynamic_linker" && can_build_shared=no
28913101
28923102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2893 if test "$GCC" = yes; then
3103 if test yes = "$GCC"; then
28943104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28953105 fi
28963106
2897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3107 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3108 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
28993109 fi
2900 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2901 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3110
3111 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3112 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
29023113 fi
3114
3115 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3116 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3117
3118 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3119 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3120
3121 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3122 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
29033123
29043124 _LT_DECL([], [variables_saved_for_relink], [1],
29053125 [Variables whose values should be saved in libtool wrapper scripts and
29333153 [Whether we should hardcode library paths into libraries])
29343154 _LT_DECL([], [sys_lib_search_path_spec], [2],
29353155 [Compile-time system search path for libraries])
2936 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2937 [Run-time system search path for libraries])
3156 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3157 [Detected run-time system search path for libraries])
3158 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3159 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
29383160 ])# _LT_SYS_DYNAMIC_LINKER
29393161
29403162
29413163 # _LT_PATH_TOOL_PREFIX(TOOL)
29423164 # --------------------------
2943 # find a file program which can recognize shared library
3165 # find a file program that can recognize shared library
29443166 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
29453167 [m4_require([_LT_DECL_EGREP])dnl
29463168 AC_MSG_CHECKING([for $1])
29473169 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
29483170 [case $MAGIC_CMD in
29493171 [[\\/*] | ?:[\\/]*])
2950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3172 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
29513173 ;;
29523174 *)
2953 lt_save_MAGIC_CMD="$MAGIC_CMD"
2954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3175 lt_save_MAGIC_CMD=$MAGIC_CMD
3176 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
29553177 dnl $ac_dummy forces splitting on constant user-supplied paths.
29563178 dnl POSIX.2 word splitting is done only on the output of word expansions,
29573179 dnl not every word. This closes a longstanding sh security hole.
29583180 ac_dummy="m4_if([$2], , $PATH, [$2])"
29593181 for ac_dir in $ac_dummy; do
2960 IFS="$lt_save_ifs"
3182 IFS=$lt_save_ifs
29613183 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$1; then
2963 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3184 if test -f "$ac_dir/$1"; then
3185 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
29643186 if test -n "$file_magic_test_file"; then
29653187 case $deplibs_check_method in
29663188 "file_magic "*)
29673189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3190 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29693191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
29703192 $EGREP "$file_magic_regex" > /dev/null; then
29713193 :
29883210 break
29893211 fi
29903212 done
2991 IFS="$lt_save_ifs"
2992 MAGIC_CMD="$lt_save_MAGIC_CMD"
3213 IFS=$lt_save_ifs
3214 MAGIC_CMD=$lt_save_MAGIC_CMD
29933215 ;;
29943216 esac])
2995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3217 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29963218 if test -n "$MAGIC_CMD"; then
29973219 AC_MSG_RESULT($MAGIC_CMD)
29983220 else
30103232
30113233 # _LT_PATH_MAGIC
30123234 # --------------
3013 # find a file program which can recognize a shared library
3235 # find a file program that can recognize a shared library
30143236 m4_defun([_LT_PATH_MAGIC],
30153237 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
30163238 if test -z "$lt_cv_path_MAGIC_CMD"; then
30373259 AC_ARG_WITH([gnu-ld],
30383260 [AS_HELP_STRING([--with-gnu-ld],
30393261 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3040 [test "$withval" = no || with_gnu_ld=yes],
3262 [test no = "$withval" || with_gnu_ld=yes],
30413263 [with_gnu_ld=no])dnl
30423264
30433265 ac_prog=ld
3044 if test "$GCC" = yes; then
3266 if test yes = "$GCC"; then
30453267 # Check if gcc -print-prog-name=ld gives a path.
30463268 AC_MSG_CHECKING([for ld used by $CC])
30473269 case $host in
30483270 *-*-mingw*)
3049 # gcc leaves a trailing carriage return which upsets mingw
3271 # gcc leaves a trailing carriage return, which upsets mingw
30503272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
30513273 *)
30523274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
30603282 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
30613283 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
30623284 done
3063 test -z "$LD" && LD="$ac_prog"
3285 test -z "$LD" && LD=$ac_prog
30643286 ;;
30653287 "")
30663288 # If it fails, then pretend we aren't using GCC.
30713293 with_gnu_ld=unknown
30723294 ;;
30733295 esac
3074 elif test "$with_gnu_ld" = yes; then
3296 elif test yes = "$with_gnu_ld"; then
30753297 AC_MSG_CHECKING([for GNU ld])
30763298 else
30773299 AC_MSG_CHECKING([for non-GNU ld])
30783300 fi
30793301 AC_CACHE_VAL(lt_cv_path_LD,
30803302 [if test -z "$LD"; then
3081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3303 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
30823304 for ac_dir in $PATH; do
3083 IFS="$lt_save_ifs"
3305 IFS=$lt_save_ifs
30843306 test -z "$ac_dir" && ac_dir=.
30853307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3086 lt_cv_path_LD="$ac_dir/$ac_prog"
3308 lt_cv_path_LD=$ac_dir/$ac_prog
30873309 # Check to see if the program is GNU ld. I'd rather use --version,
30883310 # but apparently some variants of GNU ld only accept -v.
30893311 # Break only if it was the GNU/non-GNU ld that we prefer.
30903312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
30913313 *GNU* | *'with BFD'*)
3092 test "$with_gnu_ld" != no && break
3314 test no != "$with_gnu_ld" && break
30933315 ;;
30943316 *)
3095 test "$with_gnu_ld" != yes && break
3317 test yes != "$with_gnu_ld" && break
30963318 ;;
30973319 esac
30983320 fi
30993321 done
3100 IFS="$lt_save_ifs"
3322 IFS=$lt_save_ifs
31013323 else
3102 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3324 lt_cv_path_LD=$LD # Let the user override the test with a path.
31033325 fi])
3104 LD="$lt_cv_path_LD"
3326 LD=$lt_cv_path_LD
31053327 if test -n "$LD"; then
31063328 AC_MSG_RESULT($LD)
31073329 else
31553377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31563378 case $host_os in
31573379 cygwin* | mingw* | pw32* | cegcc*)
3158 if test "$GCC" != yes; then
3380 if test yes != "$GCC"; then
31593381 reload_cmds=false
31603382 fi
31613383 ;;
31623384 darwin*)
3163 if test "$GCC" = yes; then
3164 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3385 if test yes = "$GCC"; then
3386 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
31653387 else
31663388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31673389 fi
31703392 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
31713393 _LT_TAGDECL([], [reload_cmds], [2])dnl
31723394 ])# _LT_CMD_RELOAD
3395
3396
3397 # _LT_PATH_DD
3398 # -----------
3399 # find a working dd
3400 m4_defun([_LT_PATH_DD],
3401 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3402 [printf 0123456789abcdef0123456789abcdef >conftest.i
3403 cat conftest.i conftest.i >conftest2.i
3404 : ${lt_DD:=$DD}
3405 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3406 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3407 cmp -s conftest.i conftest.out \
3408 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3409 fi])
3410 rm -f conftest.i conftest2.i conftest.out])
3411 ])# _LT_PATH_DD
3412
3413
3414 # _LT_CMD_TRUNCATE
3415 # ----------------
3416 # find command to truncate a binary pipe
3417 m4_defun([_LT_CMD_TRUNCATE],
3418 [m4_require([_LT_PATH_DD])
3419 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3420 [printf 0123456789abcdef0123456789abcdef >conftest.i
3421 cat conftest.i conftest.i >conftest2.i
3422 lt_cv_truncate_bin=
3423 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3424 cmp -s conftest.i conftest.out \
3425 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3426 fi
3427 rm -f conftest.i conftest2.i conftest.out
3428 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3429 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3430 [Command to truncate a binary pipe])
3431 ])# _LT_CMD_TRUNCATE
31733432
31743433
31753434 # _LT_CHECK_MAGIC_METHOD
31873446 # Need to set the preceding variable on all platforms that support
31883447 # interlibrary dependencies.
31893448 # 'none' -- dependencies not supported.
3190 # `unknown' -- same as none, but documents that we really don't know.
3449 # 'unknown' -- same as none, but documents that we really don't know.
31913450 # 'pass_all' -- all dependencies passed with no checks.
31923451 # 'test_compile' -- check by making test program.
31933452 # 'file_magic [[regex]]' -- check by looking for files in library path
3194 # which responds to the $file_magic_cmd with a given extended regex.
3195 # If you have `file' or equivalent on your system and you're not sure
3196 # whether `pass_all' will *always* work, you probably want this one.
3453 # that responds to the $file_magic_cmd with a given extended regex.
3454 # If you have 'file' or equivalent on your system and you're not sure
3455 # whether 'pass_all' will *always* work, you probably want this one.
31973456
31983457 case $host_os in
31993458 aix[[4-9]]*)
32203479 # Base MSYS/MinGW do not provide the 'file' command needed by
32213480 # func_win32_libid shell function, so use a weaker test based on 'objdump',
32223481 # unless we find 'file', for example because we are cross-compiling.
3223 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3224 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3482 if ( file / ) >/dev/null 2>&1; then
32253483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32263484 lt_cv_file_magic_cmd='func_win32_libid'
32273485 else
33173575 lt_cv_deplibs_check_method=pass_all
33183576 ;;
33193577
3320 openbsd*)
3321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3578 openbsd* | bitrig*)
3579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
33223580 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
33233581 else
33243582 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
33713629 tpf*)
33723630 lt_cv_deplibs_check_method=pass_all
33733631 ;;
3632 os2*)
3633 lt_cv_deplibs_check_method=pass_all
3634 ;;
33743635 esac
33753636 ])
33763637
34113672 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
34123673 [if test -n "$NM"; then
34133674 # Let the user override the test.
3414 lt_cv_path_NM="$NM"
3675 lt_cv_path_NM=$NM
34153676 else
3416 lt_nm_to_check="${ac_tool_prefix}nm"
3677 lt_nm_to_check=${ac_tool_prefix}nm
34173678 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
34183679 lt_nm_to_check="$lt_nm_to_check nm"
34193680 fi
34203681 for lt_tmp_nm in $lt_nm_to_check; do
3421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
34223683 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3423 IFS="$lt_save_ifs"
3684 IFS=$lt_save_ifs
34243685 test -z "$ac_dir" && ac_dir=.
3425 tmp_nm="$ac_dir/$lt_tmp_nm"
3426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3686 tmp_nm=$ac_dir/$lt_tmp_nm
3687 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
34273688 # Check to see if the nm accepts a BSD-compat flag.
3428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3689 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
34293690 # nm: unknown option "B" ignored
34303691 # Tru64's nm complains that /dev/null is an invalid object file
3431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3432 */dev/null* | *'Invalid file or object type'*)
3692 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3693 case $build_os in
3694 mingw*) lt_bad_file=conftest.nm/nofile ;;
3695 *) lt_bad_file=/dev/null ;;
3696 esac
3697 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3698 *$lt_bad_file* | *'Invalid file or object type'*)
34333699 lt_cv_path_NM="$tmp_nm -B"
3434 break
3700 break 2
34353701 ;;
34363702 *)
34373703 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34383704 */dev/null*)
34393705 lt_cv_path_NM="$tmp_nm -p"
3440 break
3706 break 2
34413707 ;;
34423708 *)
34433709 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34483714 esac
34493715 fi
34503716 done
3451 IFS="$lt_save_ifs"
3717 IFS=$lt_save_ifs
34523718 done
34533719 : ${lt_cv_path_NM=no}
34543720 fi])
3455 if test "$lt_cv_path_NM" != "no"; then
3456 NM="$lt_cv_path_NM"
3721 if test no != "$lt_cv_path_NM"; then
3722 NM=$lt_cv_path_NM
34573723 else
34583724 # Didn't find any BSD compatible name lister, look for dumpbin.
34593725 if test -n "$DUMPBIN"; then :
34603726 # Let the user override the test.
34613727 else
34623728 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3463 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3729 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
34643730 *COFF*)
3465 DUMPBIN="$DUMPBIN -symbols"
3731 DUMPBIN="$DUMPBIN -symbols -headers"
34663732 ;;
34673733 *)
34683734 DUMPBIN=:
34703736 esac
34713737 fi
34723738 AC_SUBST([DUMPBIN])
3473 if test "$DUMPBIN" != ":"; then
3474 NM="$DUMPBIN"
3739 if test : != "$DUMPBIN"; then
3740 NM=$DUMPBIN
34753741 fi
34763742 fi
34773743 test -z "$NM" && NM=nm
35173783
35183784 case $host_os in
35193785 cygwin* | mingw* | pw32* | cegcc*)
3520 # two different shell functions defined in ltmain.sh
3521 # decide which to use based on capabilities of $DLLTOOL
3786 # two different shell functions defined in ltmain.sh;
3787 # decide which one to use based on capabilities of $DLLTOOL
35223788 case `$DLLTOOL --help 2>&1` in
35233789 *--identify-strict*)
35243790 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
35303796 ;;
35313797 *)
35323798 # fallback: assume linklib IS sharedlib
3533 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3799 lt_cv_sharedlib_from_linklib_cmd=$ECHO
35343800 ;;
35353801 esac
35363802 ])
35573823 lt_cv_path_mainfest_tool=yes
35583824 fi
35593825 rm -f conftest*])
3560 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3826 if test yes != "$lt_cv_path_mainfest_tool"; then
35613827 MANIFEST_TOOL=:
35623828 fi
35633829 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
35643830 ])# _LT_PATH_MANIFEST_TOOL
3831
3832
3833 # _LT_DLL_DEF_P([FILE])
3834 # ---------------------
3835 # True iff FILE is a Windows DLL '.def' file.
3836 # Keep in sync with func_dll_def_p in the libtool script
3837 AC_DEFUN([_LT_DLL_DEF_P],
3838 [dnl
3839 test DEF = "`$SED -n dnl
3840 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3841 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3842 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3843 -e q dnl Only consider the first "real" line
3844 $1`" dnl
3845 ])# _LT_DLL_DEF_P
35653846
35663847
35673848 # LT_LIB_M
35753856 # These system don't have libm, or don't need it
35763857 ;;
35773858 *-ncr-sysv4.3*)
3578 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3859 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
35793860 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
35803861 ;;
35813862 *)
3582 AC_CHECK_LIB(m, cos, LIBM="-lm")
3863 AC_CHECK_LIB(m, cos, LIBM=-lm)
35833864 ;;
35843865 esac
35853866 AC_SUBST([LIBM])
35983879
35993880 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
36003881
3601 if test "$GCC" = yes; then
3882 if test yes = "$GCC"; then
36023883 case $cc_basename in
36033884 nvcc*)
36043885 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
36503931 symcode='[[ABCDGISTW]]'
36513932 ;;
36523933 hpux*)
3653 if test "$host_cpu" = ia64; then
3934 if test ia64 = "$host_cpu"; then
36543935 symcode='[[ABCDEGRST]]'
36553936 fi
36563937 ;;
36833964 symcode='[[ABCDGIRSTW]]' ;;
36843965 esac
36853966
3967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3968 # Gets list of data symbols to import.
3969 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3970 # Adjust the below global symbol transforms to fixup imported variables.
3971 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3972 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3973 lt_c_name_lib_hook="\
3974 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3975 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3976 else
3977 # Disable hooks by default.
3978 lt_cv_sys_global_symbol_to_import=
3979 lt_cdecl_hook=
3980 lt_c_name_hook=
3981 lt_c_name_lib_hook=
3982 fi
3983
36863984 # Transform an extracted symbol line into a proper C declaration.
36873985 # Some systems (esp. on ia64) link data and code symbols differently,
36883986 # so use this general approach.
3689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3987 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3988 $lt_cdecl_hook\
3989 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3990 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
36903991
36913992 # Transform an extracted symbol line into symbol name and symbol address
3692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3693 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'"
3993 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
3994 $lt_c_name_hook\
3995 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3996 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3997
3998 # Transform an extracted symbol line into symbol name with lib prefix and
3999 # symbol address.
4000 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4001 $lt_c_name_lib_hook\
4002 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4003 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4004 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
36944005
36954006 # Handle CRLF in mingw tool chain
36964007 opt_cr=
37084019
37094020 # Write the raw and C identifiers.
37104021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3711 # Fake it for dumpbin and say T for any non-static function
3712 # and D for any global variable.
4022 # Fake it for dumpbin and say T for any non-static function,
4023 # D for any global variable and I for any imported variable.
37134024 # Also find C++ and __fastcall symbols from MSVC++,
37144025 # which start with @ or ?.
37154026 lt_cv_sys_global_symbol_pipe="$AWK ['"\
37164027 " {last_section=section; section=\$ 3};"\
37174028 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37184029 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4030 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4031 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4032 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
37194033 " \$ 0!~/External *\|/{next};"\
37204034 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37214035 " {if(hide[section]) next};"\
3722 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3723 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3724 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3725 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4036 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4037 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4038 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4039 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
37264040 " ' prfx=^$ac_symprfx]"
37274041 else
37284042 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37624076 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37634077 cat <<_LT_EOF > conftest.$ac_ext
37644078 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3765 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3766 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4079 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4080 /* DATA imports from DLLs on WIN32 can't be const, because runtime
37674081 relocations are performed -- see ld's documentation on pseudo-relocs. */
37684082 # define LT@&t@_DLSYM_CONST
3769 #elif defined(__osf__)
4083 #elif defined __osf__
37704084 /* This system does not cope well with relocations in const data. */
37714085 # define LT@&t@_DLSYM_CONST
37724086 #else
37924106 {
37934107 { "@PROGRAM@", (void *) 0 },
37944108 _LT_EOF
3795 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4109 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37964110 cat <<\_LT_EOF >> conftest.$ac_ext
37974111 {0, (void *) 0}
37984112 };
38124126 mv conftest.$ac_objext conftstm.$ac_objext
38134127 lt_globsym_save_LIBS=$LIBS
38144128 lt_globsym_save_CFLAGS=$CFLAGS
3815 LIBS="conftstm.$ac_objext"
4129 LIBS=conftstm.$ac_objext
38164130 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3817 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4131 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
38184132 pipe_works=yes
38194133 fi
38204134 LIBS=$lt_globsym_save_LIBS
38354149 rm -rf conftest* conftst*
38364150
38374151 # Do not use the global_symbol_pipe unless it works.
3838 if test "$pipe_works" = yes; then
4152 if test yes = "$pipe_works"; then
38394153 break
38404154 else
38414155 lt_cv_sys_global_symbol_pipe=
38624176 [Take the output of nm and produce a listing of raw symbols and C names])
38634177 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
38644178 [Transform the output of nm in a proper C declaration])
4179 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4180 [Transform the output of nm into a list of symbols to manually relocate])
38654181 _LT_DECL([global_symbol_to_c_name_address],
38664182 [lt_cv_sys_global_symbol_to_c_name_address], [1],
38674183 [Transform the output of nm in a C name address pair])
38684184 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
38694185 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
38704186 [Transform the output of nm in a C name address pair when lib prefix is needed])
4187 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4188 [The name lister interface])
38714189 _LT_DECL([], [nm_file_list_spec], [1],
38724190 [Specify filename containing input files for $NM])
38734191 ]) # _LT_CMD_GLOBAL_SYMBOLS
38834201
38844202 m4_if([$1], [CXX], [
38854203 # C++ specific cases for pic, static, wl, etc.
3886 if test "$GXX" = yes; then
4204 if test yes = "$GXX"; then
38874205 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38884206 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38894207
38904208 case $host_os in
38914209 aix*)
38924210 # All AIX code is PIC.
3893 if test "$host_cpu" = ia64; then
4211 if test ia64 = "$host_cpu"; then
38944212 # AIX 5 now supports IA64 processor
38954213 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38964214 fi
4215 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
38974216 ;;
38984217
38994218 amigaos*)
39044223 ;;
39054224 m68k)
39064225 # FIXME: we need at least 68020 code to build shared libraries, but
3907 # adding the `-m68020' flag to GCC prevents building anything better,
3908 # like `-m68040'.
4226 # adding the '-m68020' flag to GCC prevents building anything better,
4227 # like '-m68040'.
39094228 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
39104229 ;;
39114230 esac
39214240 # (--disable-auto-import) libraries
39224241 m4_if([$1], [GCJ], [],
39234242 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4243 case $host_os in
4244 os2*)
4245 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4246 ;;
4247 esac
39244248 ;;
39254249 darwin* | rhapsody*)
39264250 # PIC is the default on this platform
39704294 case $host_os in
39714295 aix[[4-9]]*)
39724296 # All AIX code is PIC.
3973 if test "$host_cpu" = ia64; then
4297 if test ia64 = "$host_cpu"; then
39744298 # AIX 5 now supports IA64 processor
39754299 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39764300 else
40114335 case $cc_basename in
40124336 CC*)
40134337 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4014 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4015 if test "$host_cpu" != ia64; then
4338 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4339 if test ia64 != "$host_cpu"; then
40164340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
40174341 fi
40184342 ;;
40194343 aCC*)
40204344 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4021 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
40224346 case $host_cpu in
40234347 hppa*64*|ia64*)
40244348 # +Z the default
40554379 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
40564380 ;;
40574381 ecpc* )
4058 # old Intel C++ for x86_64 which still supported -KPIC.
4382 # old Intel C++ for x86_64, which still supported -KPIC.
40594383 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40604384 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40614385 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42004524 fi
42014525 ],
42024526 [
4203 if test "$GCC" = yes; then
4527 if test yes = "$GCC"; then
42044528 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42054529 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42064530
42074531 case $host_os in
42084532 aix*)
42094533 # All AIX code is PIC.
4210 if test "$host_cpu" = ia64; then
4534 if test ia64 = "$host_cpu"; then
42114535 # AIX 5 now supports IA64 processor
42124536 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42134537 fi
4538 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42144539 ;;
42154540
42164541 amigaos*)
42214546 ;;
42224547 m68k)
42234548 # FIXME: we need at least 68020 code to build shared libraries, but
4224 # adding the `-m68020' flag to GCC prevents building anything better,
4225 # like `-m68040'.
4549 # adding the '-m68020' flag to GCC prevents building anything better,
4550 # like '-m68040'.
42264551 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
42274552 ;;
42284553 esac
42394564 # (--disable-auto-import) libraries
42404565 m4_if([$1], [GCJ], [],
42414566 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4567 case $host_os in
4568 os2*)
4569 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4570 ;;
4571 esac
42424572 ;;
42434573
42444574 darwin* | rhapsody*)
43094639 case $host_os in
43104640 aix*)
43114641 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4312 if test "$host_cpu" = ia64; then
4642 if test ia64 = "$host_cpu"; then
43134643 # AIX 5 now supports IA64 processor
43144644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43154645 else
43174647 fi
43184648 ;;
43194649
4650 darwin* | rhapsody*)
4651 # PIC is the default on this platform
4652 # Common symbols not allowed in MH_DYLIB files
4653 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4654 case $cc_basename in
4655 nagfor*)
4656 # NAG Fortran compiler
4657 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4658 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4659 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4660 ;;
4661 esac
4662 ;;
4663
43204664 mingw* | cygwin* | pw32* | os2* | cegcc*)
43214665 # This hack is so that the source file can tell whether it is being
43224666 # built for inclusion in a dll (and should export symbols for example).
43234667 m4_if([$1], [GCJ], [],
43244668 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4669 case $host_os in
4670 os2*)
4671 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4672 ;;
4673 esac
43254674 ;;
43264675
43274676 hpux9* | hpux10* | hpux11*)
43374686 ;;
43384687 esac
43394688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4340 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4689 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
43414690 ;;
43424691
43434692 irix5* | irix6* | nonstopux*)
43484697
43494698 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
43504699 case $cc_basename in
4351 # old Intel for x86_64 which still supported -KPIC.
4700 # old Intel for x86_64, which still supported -KPIC.
43524701 ecc*)
43534702 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
43544703 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43724721 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
43734722 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
43744723 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4724 ;;
4725 tcc*)
4726 # Fabrice Bellard et al's Tiny C Compiler
4727 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4728 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
43754730 ;;
43764731 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
43774732 # Portland Group compilers (*not* the Pentium gcc compiler,
44704825 ;;
44714826
44724827 sysv4*MP*)
4473 if test -d /usr/nec ;then
4828 if test -d /usr/nec; then
44744829 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
44754830 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44764831 fi
44994854 fi
45004855 ])
45014856 case $host_os in
4502 # For platforms which do not support PIC, -DPIC is meaningless:
4857 # For platforms that do not support PIC, -DPIC is meaningless:
45034858 *djgpp*)
45044859 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
45054860 ;;
45654920 case $host_os in
45664921 aix[[4-9]]*)
45674922 # If we're using GNU nm, then we don't want the "-C" option.
4568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4569 # Also, AIX nm treats weak defined symbols like other global defined
4570 # symbols, whereas GNU nm marks them as "W".
4923 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4924 # Without the "-l" option, or with the "-B" option, AIX nm treats
4925 # weak defined symbols like other global defined symbols, whereas
4926 # GNU nm marks them as "W".
4927 # While the 'weak' keyword is ignored in the Export File, we need
4928 # it in the Import File for the 'aix-soname' feature, so we have
4929 # to replace the "-B" option with "-P" for AIX nm.
45714930 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4572 _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'
4931 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
45734932 else
4574 _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'
4933 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
45754934 fi
45764935 ;;
45774936 pw32*)
4578 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4937 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
45794938 ;;
45804939 cygwin* | mingw* | cegcc*)
45814940 case $cc_basename in
46244983 # included in the symbol list
46254984 _LT_TAGVAR(include_expsyms, $1)=
46264985 # exclude_expsyms can be an extended regexp of symbols to exclude
4627 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4629 # as well as any symbol that contains `d'.
4986 # it will be wrapped by ' (' and ')$', so one must not match beginning or
4987 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4988 # as well as any symbol that contains 'd'.
46304989 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
46314990 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46324991 # platforms (ab)use it in PIC code, but their linkers get confused if
46425001 # FIXME: the MSVC++ port hasn't been tested in a loooong time
46435002 # When not using gcc, we currently assume that we are using
46445003 # Microsoft Visual C++.
4645 if test "$GCC" != yes; then
5004 if test yes != "$GCC"; then
46465005 with_gnu_ld=no
46475006 fi
46485007 ;;
46505009 # we just hope/assume this is gcc and not c89 (= MSVC++)
46515010 with_gnu_ld=yes
46525011 ;;
4653 openbsd*)
5012 openbsd* | bitrig*)
46545013 with_gnu_ld=no
46555014 ;;
46565015 linux* | k*bsd*-gnu | gnu*)
46635022 # On some targets, GNU ld is compatible enough with the native linker
46645023 # that we're better off using the native interface for both.
46655024 lt_use_gnu_ld_interface=no
4666 if test "$with_gnu_ld" = yes; then
5025 if test yes = "$with_gnu_ld"; then
46675026 case $host_os in
46685027 aix*)
46695028 # The AIX port of GNU ld has always aspired to compatibility
46855044 esac
46865045 fi
46875046
4688 if test "$lt_use_gnu_ld_interface" = yes; then
5047 if test yes = "$lt_use_gnu_ld_interface"; then
46895048 # If archive_cmds runs LD, not CC, wlarc should be empty
4690 wlarc='${wl}'
5049 wlarc='$wl'
46915050
46925051 # Set some defaults for GNU ld with shared library support. These
46935052 # are reset later if shared libraries are not supported. Putting them
46945053 # here allows them to be overridden if necessary.
46955054 runpath_var=LD_RUN_PATH
4696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4697 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
46985057 # ancient GNU ld didn't support --whole-archive et. al.
46995058 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4700 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5059 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47015060 else
47025061 _LT_TAGVAR(whole_archive_flag_spec, $1)=
47035062 fi
47045063 supports_anon_versioning=no
4705 case `$LD -v 2>&1` in
5064 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
47065065 *GNU\ gold*) supports_anon_versioning=yes ;;
47075066 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
47085067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47155074 case $host_os in
47165075 aix[[3-9]]*)
47175076 # On AIX/PPC, the GNU linker is very broken
4718 if test "$host_cpu" != ia64; then
5077 if test ia64 != "$host_cpu"; then
47195078 _LT_TAGVAR(ld_shlibs, $1)=no
47205079 cat <<_LT_EOF 1>&2
47215080
47345093 case $host_cpu in
47355094 powerpc)
47365095 # see comment about AmigaOS4 .so support
4737 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5096 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47385097 _LT_TAGVAR(archive_expsym_cmds, $1)=''
47395098 ;;
47405099 m68k)
47505109 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47515110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47525111 # support --undefined. This deserves some investigation. FIXME
4753 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5112 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47545113 else
47555114 _LT_TAGVAR(ld_shlibs, $1)=no
47565115 fi
47605119 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
47615120 # as there is no search path for DLLs.
47625121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5122 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
47645123 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47655124 _LT_TAGVAR(always_export_symbols, $1)=no
47665125 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47685127 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
47695128
47705129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4771 _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'
4772 # If the export-symbols file already is a .def file (1st line
4773 # is EXPORTS), use it as is; otherwise, prepend...
4774 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4775 cp $export_symbols $output_objdir/$soname.def;
4776 else
4777 echo EXPORTS > $output_objdir/$soname.def;
4778 cat $export_symbols >> $output_objdir/$soname.def;
4779 fi~
4780 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5130 _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'
5131 # If the export-symbols file already is a .def file, use it as
5132 # is; otherwise, prepend EXPORTS...
5133 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5134 cp $export_symbols $output_objdir/$soname.def;
5135 else
5136 echo EXPORTS > $output_objdir/$soname.def;
5137 cat $export_symbols >> $output_objdir/$soname.def;
5138 fi~
5139 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
47815140 else
47825141 _LT_TAGVAR(ld_shlibs, $1)=no
47835142 fi
47845143 ;;
47855144
47865145 haiku*)
4787 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5146 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47885147 _LT_TAGVAR(link_all_deplibs, $1)=yes
5148 ;;
5149
5150 os2*)
5151 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5152 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5153 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5154 shrext_cmds=.dll
5155 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5158 $ECHO EXPORTS >> $output_objdir/$libname.def~
5159 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5161 emximp -o $lib $output_objdir/$libname.def'
5162 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5165 $ECHO EXPORTS >> $output_objdir/$libname.def~
5166 prefix_cmds="$SED"~
5167 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5168 prefix_cmds="$prefix_cmds -e 1d";
5169 fi~
5170 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5171 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5173 emximp -o $lib $output_objdir/$libname.def'
5174 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5175 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47895176 ;;
47905177
47915178 interix[[3-9]]*)
47925179 _LT_TAGVAR(hardcode_direct, $1)=no
47935180 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4795 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5182 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
47965183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
47975184 # Instead, shared libraries are loaded at an image base (0x10000000 by
47985185 # default) and relocated if they conflict, which is a slow very memory
47995186 # consuming and fragmenting process. To avoid this, we pick a random,
48005187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
48015188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4803 _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'
5189 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5190 _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'
48045191 ;;
48055192
48065193 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
48075194 tmp_diet=no
4808 if test "$host_os" = linux-dietlibc; then
5195 if test linux-dietlibc = "$host_os"; then
48095196 case $cc_basename in
48105197 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
48115198 esac
48125199 fi
48135200 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4814 && test "$tmp_diet" = no
5201 && test no = "$tmp_diet"
48155202 then
48165203 tmp_addflag=' $pic_flag'
48175204 tmp_sharedflag='-shared'
48185205 case $cc_basename,$host_cpu in
48195206 pgcc*) # Portland Group C compiler
4820 _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'
5207 _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'
48215208 tmp_addflag=' $pic_flag'
48225209 ;;
48235210 pgf77* | pgf90* | pgf95* | pgfortran*)
48245211 # Portland Group f77 and f90 compilers
4825 _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'
5212 _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'
48265213 tmp_addflag=' $pic_flag -Mnomain' ;;
48275214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
48285215 tmp_addflag=' -i_dynamic' ;;
48335220 lf95*) # Lahey Fortran 8.1
48345221 _LT_TAGVAR(whole_archive_flag_spec, $1)=
48355222 tmp_sharedflag='--shared' ;;
5223 nagfor*) # NAGFOR 5.3
5224 tmp_sharedflag='-Wl,-shared' ;;
48365225 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
48375226 tmp_sharedflag='-qmkshrobj'
48385227 tmp_addflag= ;;
48395228 nvcc*) # Cuda Compiler Driver 2.2
4840 _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'
5229 _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'
48415230 _LT_TAGVAR(compiler_needs_object, $1)=yes
48425231 ;;
48435232 esac
48445233 case `$CC -V 2>&1 | sed 5q` in
48455234 *Sun\ C*) # Sun C 5.9
4846 _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'
5235 _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'
48475236 _LT_TAGVAR(compiler_needs_object, $1)=yes
48485237 tmp_sharedflag='-G' ;;
48495238 *Sun\ F*) # Sun Fortran 8.3
48505239 tmp_sharedflag='-G' ;;
48515240 esac
4852 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4853
4854 if test "x$supports_anon_versioning" = xyes; then
5241 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5242
5243 if test yes = "$supports_anon_versioning"; then
48555244 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4857 echo "local: *; };" >> $output_objdir/$libname.ver~
4858 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5246 echo "local: *; };" >> $output_objdir/$libname.ver~
5247 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
48595248 fi
48605249
48615250 case $cc_basename in
5251 tcc*)
5252 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5253 ;;
48625254 xlf* | bgf* | bgxlf* | mpixlf*)
48635255 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48645256 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5257 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
48665258 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4867 if test "x$supports_anon_versioning" = xyes; then
5259 if test yes = "$supports_anon_versioning"; then
48685260 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4870 echo "local: *; };" >> $output_objdir/$libname.ver~
4871 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5262 echo "local: *; };" >> $output_objdir/$libname.ver~
5263 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48725264 fi
48735265 ;;
48745266 esac
48825274 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48835275 wlarc=
48845276 else
4885 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4886 _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'
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5278 _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'
48875279 fi
48885280 ;;
48895281
49015293
49025294 _LT_EOF
49035295 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4905 _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'
5296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5297 _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'
49065298 else
49075299 _LT_TAGVAR(ld_shlibs, $1)=no
49085300 fi
49145306 _LT_TAGVAR(ld_shlibs, $1)=no
49155307 cat <<_LT_EOF 1>&2
49165308
4917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5309 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
49185310 *** reliably create shared libraries on SCO systems. Therefore, libtool
49195311 *** is disabling shared libraries support. We urge you to upgrade GNU
49205312 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
49295321 # DT_RUNPATH tag from executables and libraries. But doing so
49305322 # requires that you compile everything twice, which is a pain.
49315323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4933 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4934 _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'
5324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5325 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5326 _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'
49355327 else
49365328 _LT_TAGVAR(ld_shlibs, $1)=no
49375329 fi
49485340
49495341 *)
49505342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4951 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4952 _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'
5343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5344 _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'
49535345 else
49545346 _LT_TAGVAR(ld_shlibs, $1)=no
49555347 fi
49565348 ;;
49575349 esac
49585350
4959 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5351 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
49605352 runpath_var=
49615353 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
49625354 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
49725364 # Note: this linker hardcodes the directories in LIBPATH if there
49735365 # are no directories specified by -L.
49745366 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4975 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5367 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
49765368 # Neither direct hardcoding nor static linking is supported with a
49775369 # broken collect2.
49785370 _LT_TAGVAR(hardcode_direct, $1)=unsupported
49805372 ;;
49815373
49825374 aix[[4-9]]*)
4983 if test "$host_cpu" = ia64; then
5375 if test ia64 = "$host_cpu"; then
49845376 # On IA64, the linker does run time linking by default, so we don't
49855377 # have to do anything special.
49865378 aix_use_runtimelinking=no
49875379 exp_sym_flag='-Bexport'
4988 no_entry_flag=""
5380 no_entry_flag=
49895381 else
49905382 # If we're using GNU nm, then we don't want the "-C" option.
4991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4992 # Also, AIX nm treats weak defined symbols like other global
4993 # defined symbols, whereas GNU nm marks them as "W".
5383 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5384 # Without the "-l" option, or with the "-B" option, AIX nm treats
5385 # weak defined symbols like other global defined symbols, whereas
5386 # GNU nm marks them as "W".
5387 # While the 'weak' keyword is ignored in the Export File, we need
5388 # it in the Import File for the 'aix-soname' feature, so we have
5389 # to replace the "-B" option with "-P" for AIX nm.
49945390 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4995 _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'
5391 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
49965392 else
4997 _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'
5393 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
49985394 fi
49995395 aix_use_runtimelinking=no
50005396
50015397 # Test if we are trying to use run time linking or normal
50025398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5003 # need to do runtime linking.
5399 # have runtime linking enabled, and use it for executables.
5400 # For shared libraries, we enable/disable runtime linking
5401 # depending on the kind of the shared library created -
5402 # when "with_aix_soname,aix_use_runtimelinking" is:
5403 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5404 # "aix,yes" lib.so shared, rtl:yes, for executables
5405 # lib.a static archive
5406 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5407 # lib.a(lib.so.V) shared, rtl:no, for executables
5408 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5409 # lib.a(lib.so.V) shared, rtl:no
5410 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5411 # lib.a static archive
50045412 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
50055413 for ld_flag in $LDFLAGS; do
5006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5414 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
50075415 aix_use_runtimelinking=yes
50085416 break
50095417 fi
50105418 done
5419 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5420 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5421 # so we don't have lib.a shared libs to link our executables.
5422 # We have to force runtime linking in this case.
5423 aix_use_runtimelinking=yes
5424 LDFLAGS="$LDFLAGS -Wl,-brtl"
5425 fi
50115426 ;;
50125427 esac
50135428
50265441 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
50275442 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
50285443 _LT_TAGVAR(link_all_deplibs, $1)=yes
5029 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5030
5031 if test "$GCC" = yes; then
5444 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5445 case $with_aix_soname,$aix_use_runtimelinking in
5446 aix,*) ;; # traditional, no import file
5447 svr4,* | *,yes) # use import file
5448 # The Import File defines what to hardcode.
5449 _LT_TAGVAR(hardcode_direct, $1)=no
5450 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5451 ;;
5452 esac
5453
5454 if test yes = "$GCC"; then
50325455 case $host_os in aix4.[[012]]|aix4.[[012]].*)
50335456 # We only want to do this on AIX 4.2 and lower, the check
50345457 # below for broken collect2 doesn't work under 4.3+
5035 collect2name=`${CC} -print-prog-name=collect2`
5458 collect2name=`$CC -print-prog-name=collect2`
50365459 if test -f "$collect2name" &&
50375460 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50385461 then
50515474 ;;
50525475 esac
50535476 shared_flag='-shared'
5054 if test "$aix_use_runtimelinking" = yes; then
5055 shared_flag="$shared_flag "'${wl}-G'
5477 if test yes = "$aix_use_runtimelinking"; then
5478 shared_flag="$shared_flag "'$wl-G'
50565479 fi
5057 _LT_TAGVAR(link_all_deplibs, $1)=no
5480 # Need to ensure runtime linking is disabled for the traditional
5481 # shared library, or the linker may eventually find shared libraries
5482 # /with/ Import File - we do not want to mix them.
5483 shared_flag_aix='-shared'
5484 shared_flag_svr4='-shared $wl-G'
50585485 else
50595486 # not using gcc
5060 if test "$host_cpu" = ia64; then
5487 if test ia64 = "$host_cpu"; then
50615488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50625489 # chokes on -Wl,-G. The following line is correct:
50635490 shared_flag='-G'
50645491 else
5065 if test "$aix_use_runtimelinking" = yes; then
5066 shared_flag='${wl}-G'
5492 if test yes = "$aix_use_runtimelinking"; then
5493 shared_flag='$wl-G'
50675494 else
5068 shared_flag='${wl}-bM:SRE'
5495 shared_flag='$wl-bM:SRE'
50695496 fi
5497 shared_flag_aix='$wl-bM:SRE'
5498 shared_flag_svr4='$wl-G'
50705499 fi
50715500 fi
50725501
5073 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5502 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
50745503 # It seems that -bexpall does not export symbols beginning with
50755504 # underscore (_), so it is better to generate a list of symbols to export.
50765505 _LT_TAGVAR(always_export_symbols, $1)=yes
5077 if test "$aix_use_runtimelinking" = yes; then
5506 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
50785507 # Warning - without using the other runtime loading flags (-brtl),
50795508 # -berok will link without error, but may produce a broken library.
50805509 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
50815510 # Determine the default libpath from the value encoded in an
50825511 # empty executable.
50835512 _LT_SYS_MODULE_PATH_AIX([$1])
5084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5085 _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"
5513 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5514 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
50865515 else
5087 if test "$host_cpu" = ia64; then
5088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5516 if test ia64 = "$host_cpu"; then
5517 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
50895518 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5090 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5519 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
50915520 else
50925521 # Determine the default libpath from the value encoded in an
50935522 # empty executable.
50945523 _LT_SYS_MODULE_PATH_AIX([$1])
5095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
50965525 # Warning - without using the other run time loading flags,
50975526 # -berok will link without error, but may produce a broken library.
5098 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5099 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5100 if test "$with_gnu_ld" = yes; then
5527 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5528 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5529 if test yes = "$with_gnu_ld"; then
51015530 # We only use this code for GNU lds that support --whole-archive.
5102 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5531 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
51035532 else
51045533 # Exported symbols can be pulled into shared objects from archives
51055534 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
51065535 fi
51075536 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5108 # This is similar to how AIX traditionally builds its shared libraries.
5109 _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'
5537 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5538 # -brtl affects multiple linker settings, -berok does not and is overridden later
5539 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5540 if test svr4 != "$with_aix_soname"; then
5541 # This is similar to how AIX traditionally builds its shared libraries.
5542 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5543 fi
5544 if test aix != "$with_aix_soname"; then
5545 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5546 else
5547 # used by -dlpreopen to get the symbols
5548 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5549 fi
5550 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
51105551 fi
51115552 fi
51125553 ;;
51155556 case $host_cpu in
51165557 powerpc)
51175558 # see comment about AmigaOS4 .so support
5118 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5559 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
51195560 _LT_TAGVAR(archive_expsym_cmds, $1)=''
51205561 ;;
51215562 m68k)
51455586 # Tell ltmain to make .lib files, not .a files.
51465587 libext=lib
51475588 # Tell ltmain to make .dll files, not .so files.
5148 shrext_cmds=".dll"
5589 shrext_cmds=.dll
51495590 # FIXME: Setting linknames here is a bad hack.
5150 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5151 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5152 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5153 else
5154 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5155 fi~
5156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5157 linknames='
5591 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5592 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5593 cp "$export_symbols" "$output_objdir/$soname.def";
5594 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5595 else
5596 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5597 fi~
5598 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5599 linknames='
51585600 # The linker will not automatically build a static lib if we build a DLL.
51595601 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
51605602 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
51635605 # Don't use ranlib
51645606 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
51655607 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5166 lt_tool_outputfile="@TOOL_OUTPUT@"~
5167 case $lt_outputfile in
5168 *.exe|*.EXE) ;;
5169 *)
5170 lt_outputfile="$lt_outputfile.exe"
5171 lt_tool_outputfile="$lt_tool_outputfile.exe"
5172 ;;
5173 esac~
5174 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5176 $RM "$lt_outputfile.manifest";
5177 fi'
5608 lt_tool_outputfile="@TOOL_OUTPUT@"~
5609 case $lt_outputfile in
5610 *.exe|*.EXE) ;;
5611 *)
5612 lt_outputfile=$lt_outputfile.exe
5613 lt_tool_outputfile=$lt_tool_outputfile.exe
5614 ;;
5615 esac~
5616 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5617 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5618 $RM "$lt_outputfile.manifest";
5619 fi'
51785620 ;;
51795621 *)
51805622 # Assume MSVC wrapper
51835625 # Tell ltmain to make .lib files, not .a files.
51845626 libext=lib
51855627 # Tell ltmain to make .dll files, not .so files.
5186 shrext_cmds=".dll"
5628 shrext_cmds=.dll
51875629 # FIXME: Setting linknames here is a bad hack.
51885630 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
51895631 # The linker will automatically build a .lib file if we build a DLL.
52335675 ;;
52345676
52355677 hpux9*)
5236 if test "$GCC" = yes; then
5237 _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'
5678 if test yes = "$GCC"; then
5679 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
52385680 else
5239 _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'
5681 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
52405682 fi
5241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52425684 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52435685 _LT_TAGVAR(hardcode_direct, $1)=yes
52445686
52455687 # hardcode_minus_L: Not really in the search PATH,
52465688 # but as the default location of the library.
52475689 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5248 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52495691 ;;
52505692
52515693 hpux10*)
5252 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5253 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5694 if test yes,no = "$GCC,$with_gnu_ld"; then
5695 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52545696 else
52555697 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
52565698 fi
5257 if test "$with_gnu_ld" = no; then
5258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5699 if test no = "$with_gnu_ld"; then
5700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52595701 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52605702 _LT_TAGVAR(hardcode_direct, $1)=yes
52615703 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5262 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5704 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52635705 # hardcode_minus_L: Not really in the search PATH,
52645706 # but as the default location of the library.
52655707 _LT_TAGVAR(hardcode_minus_L, $1)=yes
52675709 ;;
52685710
52695711 hpux11*)
5270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5712 if test yes,no = "$GCC,$with_gnu_ld"; then
52715713 case $host_cpu in
52725714 hppa*64*)
5273 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5715 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52745716 ;;
52755717 ia64*)
5276 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5718 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52775719 ;;
52785720 *)
5279 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5721 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52805722 ;;
52815723 esac
52825724 else
52835725 case $host_cpu in
52845726 hppa*64*)
5285 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5727 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52865728 ;;
52875729 ia64*)
5288 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5730 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52895731 ;;
52905732 *)
52915733 m4_if($1, [], [
52935735 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
52945736 _LT_LINKER_OPTION([if $CC understands -b],
52955737 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5296 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5738 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
52975739 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5298 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5740 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
52995741 ;;
53005742 esac
53015743 fi
5302 if test "$with_gnu_ld" = no; then
5303 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5744 if test no = "$with_gnu_ld"; then
5745 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
53045746 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53055747
53065748 case $host_cpu in
53115753 *)
53125754 _LT_TAGVAR(hardcode_direct, $1)=yes
53135755 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5314 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53155757
53165758 # hardcode_minus_L: Not really in the search PATH,
53175759 # but as the default location of the library.
53225764 ;;
53235765
53245766 irix5* | irix6* | nonstopux*)
5325 if test "$GCC" = yes; then
5326 _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'
5767 if test yes = "$GCC"; then
5768 _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'
53275769 # Try to use the -exported_symbol ld option, if it does not
53285770 # work, assume that -exports_file does not work either and
53295771 # implicitly export all symbols.
53305772 # This should be the same for all languages, so no per-tag cache variable.
53315773 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
53325774 [lt_cv_irix_exported_symbol],
5333 [save_LDFLAGS="$LDFLAGS"
5334 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5775 [save_LDFLAGS=$LDFLAGS
5776 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
53355777 AC_LINK_IFELSE(
53365778 [AC_LANG_SOURCE(
53375779 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
53445786 end]])])],
53455787 [lt_cv_irix_exported_symbol=yes],
53465788 [lt_cv_irix_exported_symbol=no])
5347 LDFLAGS="$save_LDFLAGS"])
5348 if test "$lt_cv_irix_exported_symbol" = yes; then
5349 _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'
5789 LDFLAGS=$save_LDFLAGS])
5790 if test yes = "$lt_cv_irix_exported_symbol"; then
5791 _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'
53505792 fi
5793 _LT_TAGVAR(link_all_deplibs, $1)=no
53515794 else
5352 _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'
5353 _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'
5795 _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'
5796 _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'
53545797 fi
53555798 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5799 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53575800 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53585801 _LT_TAGVAR(inherit_rpath, $1)=yes
53595802 _LT_TAGVAR(link_all_deplibs, $1)=yes
5803 ;;
5804
5805 linux*)
5806 case $cc_basename in
5807 tcc*)
5808 # Fabrice Bellard et al's Tiny C Compiler
5809 _LT_TAGVAR(ld_shlibs, $1)=yes
5810 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5811 ;;
5812 esac
53605813 ;;
53615814
53625815 netbsd* | netbsdelf*-gnu)
53735826 newsos6)
53745827 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
53755828 _LT_TAGVAR(hardcode_direct, $1)=yes
5376 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5829 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53775830 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53785831 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53795832 ;;
53815834 *nto* | *qnx*)
53825835 ;;
53835836
5384 openbsd*)
5837 openbsd* | bitrig*)
53855838 if test -f /usr/libexec/ld.so; then
53865839 _LT_TAGVAR(hardcode_direct, $1)=yes
53875840 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53885841 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
53905843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5391 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5392 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5393 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5844 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5846 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53945847 else
5395 case $host_os in
5396 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5397 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5399 ;;
5400 *)
5401 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5402 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5403 ;;
5404 esac
5848 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
54055850 fi
54065851 else
54075852 _LT_TAGVAR(ld_shlibs, $1)=no
54125857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
54135858 _LT_TAGVAR(hardcode_minus_L, $1)=yes
54145859 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5415 _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'
5416 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5860 shrext_cmds=.dll
5861 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5862 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5863 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5864 $ECHO EXPORTS >> $output_objdir/$libname.def~
5865 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5866 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5867 emximp -o $lib $output_objdir/$libname.def'
5868 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5869 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5870 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5871 $ECHO EXPORTS >> $output_objdir/$libname.def~
5872 prefix_cmds="$SED"~
5873 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5874 prefix_cmds="$prefix_cmds -e 1d";
5875 fi~
5876 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5877 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5878 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5879 emximp -o $lib $output_objdir/$libname.def'
5880 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5881 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54175882 ;;
54185883
54195884 osf3*)
5420 if test "$GCC" = yes; then
5421 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5422 _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'
5885 if test yes = "$GCC"; then
5886 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5887 _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'
54235888 else
54245889 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5425 _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'
5890 _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'
54265891 fi
54275892 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5893 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54295894 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
54305895 ;;
54315896
54325897 osf4* | osf5*) # as osf3* with the addition of -msym flag
5433 if test "$GCC" = yes; then
5434 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5435 _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'
5436 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5898 if test yes = "$GCC"; then
5899 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5900 _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'
5901 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54375902 else
54385903 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5439 _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'
5904 _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'
54405905 _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~
5441 $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'
5906 $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'
54425907
54435908 # Both c and cxx compiler support -rpath directly
54445909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
54495914
54505915 solaris*)
54515916 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5452 if test "$GCC" = yes; then
5453 wlarc='${wl}'
5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5917 if test yes = "$GCC"; then
5918 wlarc='$wl'
5919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
54555920 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5456 $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'
5921 $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'
54575922 else
54585923 case `$CC -V 2>&1` in
54595924 *"Compilers 5.0"*)
54605925 wlarc=''
5461 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5926 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
54625927 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5928 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
54645929 ;;
54655930 *)
5466 wlarc='${wl}'
5467 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5931 wlarc='$wl'
5932 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
54685933 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5469 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5934 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54705935 ;;
54715936 esac
54725937 fi
54765941 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
54775942 *)
54785943 # The compiler driver will combine and reorder linker options,
5479 # but understands `-z linker_flag'. GCC discards it without `$wl',
5944 # but understands '-z linker_flag'. GCC discards it without '$wl',
54805945 # but is careful enough not to reorder.
54815946 # Supported since Solaris 2.6 (maybe 2.5.1?)
5482 if test "$GCC" = yes; then
5483 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5947 if test yes = "$GCC"; then
5948 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
54845949 else
54855950 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
54865951 fi
54905955 ;;
54915956
54925957 sunos4*)
5493 if test "x$host_vendor" = xsequent; then
5958 if test sequent = "$host_vendor"; then
54945959 # Use $CC to link under sequent, because it throws in some extra .o
54955960 # files that make .init and .fini sections work.
5496 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5961 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
54975962 else
54985963 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
54995964 fi
55426007 ;;
55436008
55446009 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5545 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6010 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
55466011 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55476012 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55486013 runpath_var='LD_RUN_PATH'
55496014
5550 if test "$GCC" = yes; then
5551 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5552 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6015 if test yes = "$GCC"; then
6016 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6017 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55536018 else
5554 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5555 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6019 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6020 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55566021 fi
55576022 ;;
55586023
55596024 sysv5* | sco3.2v5* | sco5v6*)
5560 # Note: We can NOT use -z defs as we might desire, because we do not
6025 # Note: We CANNOT use -z defs as we might desire, because we do not
55616026 # link with -lc, and that would cause any symbols used from libc to
55626027 # always be unresolved, which means just about no library would
55636028 # ever link correctly. If we're not using GNU ld we use -z text
55646029 # though, which does catch some bad symbols but isn't as heavy-handed
55656030 # as -z defs.
5566 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5567 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6031 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6032 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
55686033 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55696034 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6035 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
55716036 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
55726037 _LT_TAGVAR(link_all_deplibs, $1)=yes
5573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6038 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
55746039 runpath_var='LD_RUN_PATH'
55756040
5576 if test "$GCC" = yes; then
5577 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5578 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6041 if test yes = "$GCC"; then
6042 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6043 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55796044 else
5580 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5581 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6045 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6046 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55826047 fi
55836048 ;;
55846049
55936058 ;;
55946059 esac
55956060
5596 if test x$host_vendor = xsni; then
6061 if test sni = "$host_vendor"; then
55976062 case $host in
55986063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5599 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6064 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
56006065 ;;
56016066 esac
56026067 fi
56036068 fi
56046069 ])
56056070 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5606 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6071 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
56076072
56086073 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
56096074
56206085 # Assume -lc should be added
56216086 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56226087
5623 if test "$enable_shared" = yes && test "$GCC" = yes; then
6088 if test yes,yes = "$GCC,$enable_shared"; then
56246089 case $_LT_TAGVAR(archive_cmds, $1) in
56256090 *'~'*)
56266091 # FIXME: we may have to deal with multi-command sequences.
57006165 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
57016166 [Whether we need a single "-rpath" flag with a separated argument])
57026167 _LT_TAGDECL([], [hardcode_direct], [0],
5703 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6168 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57046169 DIR into the resulting binary])
57056170 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5706 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6171 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57076172 DIR into the resulting binary and the resulting library dependency is
5708 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6173 "absolute", i.e impossible to change by setting $shlibpath_var if the
57096174 library is relocated])
57106175 _LT_TAGDECL([], [hardcode_minus_L], [0],
57116176 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57466211 # ------------------------
57476212 # Ensure that the configuration variables for a C compiler are suitably
57486213 # defined. These variables are subsequently used by _LT_CONFIG to write
5749 # the compiler configuration to `libtool'.
6214 # the compiler configuration to 'libtool'.
57506215 m4_defun([_LT_LANG_C_CONFIG],
57516216 [m4_require([_LT_DECL_EGREP])dnl
5752 lt_save_CC="$CC"
6217 lt_save_CC=$CC
57536218 AC_LANG_PUSH(C)
57546219
57556220 # Source file extension for C test sources.
57896254 LT_SYS_DLOPEN_SELF
57906255 _LT_CMD_STRIPLIB
57916256
5792 # Report which library types will actually be built
6257 # Report what library types will actually be built
57936258 AC_MSG_CHECKING([if libtool supports shared libraries])
57946259 AC_MSG_RESULT([$can_build_shared])
57956260
57966261 AC_MSG_CHECKING([whether to build shared libraries])
5797 test "$can_build_shared" = "no" && enable_shared=no
6262 test no = "$can_build_shared" && enable_shared=no
57986263
57996264 # On AIX, shared libraries and static libraries use the same namespace, and
58006265 # are all built from PIC.
58016266 case $host_os in
58026267 aix3*)
5803 test "$enable_shared" = yes && enable_static=no
6268 test yes = "$enable_shared" && enable_static=no
58046269 if test -n "$RANLIB"; then
58056270 archive_cmds="$archive_cmds~\$RANLIB \$lib"
58066271 postinstall_cmds='$RANLIB $lib'
58086273 ;;
58096274
58106275 aix[[4-9]]*)
5811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5812 test "$enable_shared" = yes && enable_static=no
6276 if test ia64 != "$host_cpu"; then
6277 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6278 yes,aix,yes) ;; # shared object as lib.so file only
6279 yes,svr4,*) ;; # shared object as lib.so archive member only
6280 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6281 esac
58136282 fi
58146283 ;;
58156284 esac
58176286
58186287 AC_MSG_CHECKING([whether to build static libraries])
58196288 # Make sure either enable_shared or enable_static is yes.
5820 test "$enable_shared" = yes || enable_static=yes
6289 test yes = "$enable_shared" || enable_static=yes
58216290 AC_MSG_RESULT([$enable_static])
58226291
58236292 _LT_CONFIG($1)
58246293 fi
58256294 AC_LANG_POP
5826 CC="$lt_save_CC"
6295 CC=$lt_save_CC
58276296 ])# _LT_LANG_C_CONFIG
58286297
58296298
58316300 # --------------------------
58326301 # Ensure that the configuration variables for a C++ compiler are suitably
58336302 # defined. These variables are subsequently used by _LT_CONFIG to write
5834 # the compiler configuration to `libtool'.
6303 # the compiler configuration to 'libtool'.
58356304 m4_defun([_LT_LANG_CXX_CONFIG],
58366305 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
58376306 m4_require([_LT_DECL_EGREP])dnl
58386307 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5839 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5840 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5841 (test "X$CXX" != "Xg++"))) ; then
6308 if test -n "$CXX" && ( test no != "$CXX" &&
6309 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6310 (test g++ != "$CXX"))); then
58426311 AC_PROG_CXXCPP
58436312 else
58446313 _lt_caught_CXX_error=yes
58806349 # the CXX compiler isn't working. Some variables (like enable_shared)
58816350 # are currently assumed to apply to all compilers on this platform,
58826351 # and will be corrupted by setting them based on a non-working compiler.
5883 if test "$_lt_caught_CXX_error" != yes; then
6352 if test yes != "$_lt_caught_CXX_error"; then
58846353 # Code to be used in simple compile tests
58856354 lt_simple_compile_test_code="int some_variable = 0;"
58866355
59226391 if test -n "$compiler"; then
59236392 # We don't want -fno-exception when compiling C++ code, so set the
59246393 # no_builtin_flag separately
5925 if test "$GXX" = yes; then
6394 if test yes = "$GXX"; then
59266395 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
59276396 else
59286397 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
59296398 fi
59306399
5931 if test "$GXX" = yes; then
6400 if test yes = "$GXX"; then
59326401 # Set up default GNU C++ configuration
59336402
59346403 LT_PATH_LD
59356404
59366405 # Check if GNU C++ uses GNU ld as the underlying linker, since the
59376406 # archiving commands below assume that GNU ld is being used.
5938 if test "$with_gnu_ld" = yes; then
5939 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5940 _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'
5941
5942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5943 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6407 if test yes = "$with_gnu_ld"; then
6408 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6409 _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'
6410
6411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6412 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
59446413
59456414 # If archive_cmds runs LD, not CC, wlarc should be empty
59466415 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
59476416 # investigate it a little bit more. (MM)
5948 wlarc='${wl}'
6417 wlarc='$wl'
59496418
59506419 # ancient GNU ld didn't support --whole-archive et. al.
59516420 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
59526421 $GREP 'no-whole-archive' > /dev/null; then
5953 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6422 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
59546423 else
59556424 _LT_TAGVAR(whole_archive_flag_spec, $1)=
59566425 fi
59866455 _LT_TAGVAR(ld_shlibs, $1)=no
59876456 ;;
59886457 aix[[4-9]]*)
5989 if test "$host_cpu" = ia64; then
6458 if test ia64 = "$host_cpu"; then
59906459 # On IA64, the linker does run time linking by default, so we don't
59916460 # have to do anything special.
59926461 aix_use_runtimelinking=no
59936462 exp_sym_flag='-Bexport'
5994 no_entry_flag=""
6463 no_entry_flag=
59956464 else
59966465 aix_use_runtimelinking=no
59976466
59986467 # Test if we are trying to use run time linking or normal
59996468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6000 # need to do runtime linking.
6469 # have runtime linking enabled, and use it for executables.
6470 # For shared libraries, we enable/disable runtime linking
6471 # depending on the kind of the shared library created -
6472 # when "with_aix_soname,aix_use_runtimelinking" is:
6473 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6474 # "aix,yes" lib.so shared, rtl:yes, for executables
6475 # lib.a static archive
6476 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6477 # lib.a(lib.so.V) shared, rtl:no, for executables
6478 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6479 # lib.a(lib.so.V) shared, rtl:no
6480 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6481 # lib.a static archive
60016482 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
60026483 for ld_flag in $LDFLAGS; do
60036484 case $ld_flag in
60076488 ;;
60086489 esac
60096490 done
6491 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6492 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6493 # so we don't have lib.a shared libs to link our executables.
6494 # We have to force runtime linking in this case.
6495 aix_use_runtimelinking=yes
6496 LDFLAGS="$LDFLAGS -Wl,-brtl"
6497 fi
60106498 ;;
60116499 esac
60126500
60256513 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
60266514 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
60276515 _LT_TAGVAR(link_all_deplibs, $1)=yes
6028 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6029
6030 if test "$GXX" = yes; then
6516 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6517 case $with_aix_soname,$aix_use_runtimelinking in
6518 aix,*) ;; # no import file
6519 svr4,* | *,yes) # use import file
6520 # The Import File defines what to hardcode.
6521 _LT_TAGVAR(hardcode_direct, $1)=no
6522 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6523 ;;
6524 esac
6525
6526 if test yes = "$GXX"; then
60316527 case $host_os in aix4.[[012]]|aix4.[[012]].*)
60326528 # We only want to do this on AIX 4.2 and lower, the check
60336529 # below for broken collect2 doesn't work under 4.3+
6034 collect2name=`${CC} -print-prog-name=collect2`
6530 collect2name=`$CC -print-prog-name=collect2`
60356531 if test -f "$collect2name" &&
60366532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
60376533 then
60496545 fi
60506546 esac
60516547 shared_flag='-shared'
6052 if test "$aix_use_runtimelinking" = yes; then
6053 shared_flag="$shared_flag "'${wl}-G'
6548 if test yes = "$aix_use_runtimelinking"; then
6549 shared_flag=$shared_flag' $wl-G'
60546550 fi
6551 # Need to ensure runtime linking is disabled for the traditional
6552 # shared library, or the linker may eventually find shared libraries
6553 # /with/ Import File - we do not want to mix them.
6554 shared_flag_aix='-shared'
6555 shared_flag_svr4='-shared $wl-G'
60556556 else
60566557 # not using gcc
6057 if test "$host_cpu" = ia64; then
6558 if test ia64 = "$host_cpu"; then
60586559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
60596560 # chokes on -Wl,-G. The following line is correct:
60606561 shared_flag='-G'
60616562 else
6062 if test "$aix_use_runtimelinking" = yes; then
6063 shared_flag='${wl}-G'
6563 if test yes = "$aix_use_runtimelinking"; then
6564 shared_flag='$wl-G'
60646565 else
6065 shared_flag='${wl}-bM:SRE'
6566 shared_flag='$wl-bM:SRE'
60666567 fi
6568 shared_flag_aix='$wl-bM:SRE'
6569 shared_flag_svr4='$wl-G'
60676570 fi
60686571 fi
60696572
6070 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
60716574 # It seems that -bexpall does not export symbols beginning with
60726575 # underscore (_), so it is better to generate a list of symbols to
60736576 # export.
60746577 _LT_TAGVAR(always_export_symbols, $1)=yes
6075 if test "$aix_use_runtimelinking" = yes; then
6578 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
60766579 # Warning - without using the other runtime loading flags (-brtl),
60776580 # -berok will link without error, but may produce a broken library.
6078 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6581 # The "-G" linker flag allows undefined symbols.
6582 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
60796583 # Determine the default libpath from the value encoded in an empty
60806584 # executable.
60816585 _LT_SYS_MODULE_PATH_AIX([$1])
6082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6083
6084 _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"
6586 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6587
6588 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
60856589 else
6086 if test "$host_cpu" = ia64; then
6087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6590 if test ia64 = "$host_cpu"; then
6591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
60886592 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6089 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6593 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
60906594 else
60916595 # Determine the default libpath from the value encoded in an
60926596 # empty executable.
60936597 _LT_SYS_MODULE_PATH_AIX([$1])
6094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6598 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
60956599 # Warning - without using the other run time loading flags,
60966600 # -berok will link without error, but may produce a broken library.
6097 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6098 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6099 if test "$with_gnu_ld" = yes; then
6601 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6602 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6603 if test yes = "$with_gnu_ld"; then
61006604 # We only use this code for GNU lds that support --whole-archive.
6101 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6605 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
61026606 else
61036607 # Exported symbols can be pulled into shared objects from archives
61046608 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
61056609 fi
61066610 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6107 # This is similar to how AIX traditionally builds its shared
6108 # libraries.
6109 _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'
6611 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6612 # -brtl affects multiple linker settings, -berok does not and is overridden later
6613 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6614 if test svr4 != "$with_aix_soname"; then
6615 # This is similar to how AIX traditionally builds its shared
6616 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6617 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6618 fi
6619 if test aix != "$with_aix_soname"; then
6620 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6621 else
6622 # used by -dlpreopen to get the symbols
6623 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6624 fi
6625 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
61106626 fi
61116627 fi
61126628 ;;
61166632 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61176633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
61186634 # support --undefined. This deserves some investigation. FIXME
6119 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
61206636 else
61216637 _LT_TAGVAR(ld_shlibs, $1)=no
61226638 fi
61446660 # Tell ltmain to make .lib files, not .a files.
61456661 libext=lib
61466662 # Tell ltmain to make .dll files, not .so files.
6147 shrext_cmds=".dll"
6663 shrext_cmds=.dll
61486664 # FIXME: Setting linknames here is a bad hack.
6149 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6150 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6151 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6152 else
6153 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6154 fi~
6155 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6156 linknames='
6665 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6666 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6667 cp "$export_symbols" "$output_objdir/$soname.def";
6668 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6669 else
6670 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6671 fi~
6672 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6673 linknames='
61576674 # The linker will not automatically build a static lib if we build a DLL.
61586675 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
61596676 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61606677 # Don't use ranlib
61616678 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
61626679 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6163 lt_tool_outputfile="@TOOL_OUTPUT@"~
6164 case $lt_outputfile in
6165 *.exe|*.EXE) ;;
6166 *)
6167 lt_outputfile="$lt_outputfile.exe"
6168 lt_tool_outputfile="$lt_tool_outputfile.exe"
6169 ;;
6170 esac~
6171 func_to_tool_file "$lt_outputfile"~
6172 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6173 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6174 $RM "$lt_outputfile.manifest";
6175 fi'
6680 lt_tool_outputfile="@TOOL_OUTPUT@"~
6681 case $lt_outputfile in
6682 *.exe|*.EXE) ;;
6683 *)
6684 lt_outputfile=$lt_outputfile.exe
6685 lt_tool_outputfile=$lt_tool_outputfile.exe
6686 ;;
6687 esac~
6688 func_to_tool_file "$lt_outputfile"~
6689 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6690 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6691 $RM "$lt_outputfile.manifest";
6692 fi'
61766693 ;;
61776694 *)
61786695 # g++
61796696 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
61806697 # as there is no search path for DLLs.
61816698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6182 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6699 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
61836700 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61846701 _LT_TAGVAR(always_export_symbols, $1)=no
61856702 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61866703
61876704 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6188 _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'
6189 # If the export-symbols file already is a .def file (1st line
6190 # is EXPORTS), use it as is; otherwise, prepend...
6191 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6192 cp $export_symbols $output_objdir/$soname.def;
6193 else
6194 echo EXPORTS > $output_objdir/$soname.def;
6195 cat $export_symbols >> $output_objdir/$soname.def;
6196 fi~
6197 $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'
6705 _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'
6706 # If the export-symbols file already is a .def file, use it as
6707 # is; otherwise, prepend EXPORTS...
6708 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6709 cp $export_symbols $output_objdir/$soname.def;
6710 else
6711 echo EXPORTS > $output_objdir/$soname.def;
6712 cat $export_symbols >> $output_objdir/$soname.def;
6713 fi~
6714 $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'
61986715 else
61996716 _LT_TAGVAR(ld_shlibs, $1)=no
62006717 fi
62036720 ;;
62046721 darwin* | rhapsody*)
62056722 _LT_DARWIN_LINKER_FEATURES($1)
6723 ;;
6724
6725 os2*)
6726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6727 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6728 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6729 shrext_cmds=.dll
6730 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6731 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6732 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6733 $ECHO EXPORTS >> $output_objdir/$libname.def~
6734 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6735 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6736 emximp -o $lib $output_objdir/$libname.def'
6737 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6738 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6739 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6740 $ECHO EXPORTS >> $output_objdir/$libname.def~
6741 prefix_cmds="$SED"~
6742 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6743 prefix_cmds="$prefix_cmds -e 1d";
6744 fi~
6745 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6746 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6747 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6748 emximp -o $lib $output_objdir/$libname.def'
6749 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6750 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
62066751 ;;
62076752
62086753 dgux*)
62406785 ;;
62416786
62426787 haiku*)
6243 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62446789 _LT_TAGVAR(link_all_deplibs, $1)=yes
62456790 ;;
62466791
62476792 hpux9*)
6248 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6793 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62496794 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6250 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6795 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62516796 _LT_TAGVAR(hardcode_direct, $1)=yes
62526797 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
62536798 # but as the default
62596804 _LT_TAGVAR(ld_shlibs, $1)=no
62606805 ;;
62616806 aCC*)
6262 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6807 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62636808 # Commands to make compiler produce verbose output that lists
62646809 # what "hidden" libraries, object files and flags are used when
62656810 # linking a shared library.
62686813 # explicitly linking system object files so we need to strip them
62696814 # from the output so that they don't get included in the library
62706815 # dependencies.
6271 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"'
6816 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"'
62726817 ;;
62736818 *)
6274 if test "$GXX" = yes; then
6275 _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'
6819 if test yes = "$GXX"; then
6820 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62766821 else
62776822 # FIXME: insert proper C++ library support
62786823 _LT_TAGVAR(ld_shlibs, $1)=no
62826827 ;;
62836828
62846829 hpux10*|hpux11*)
6285 if test $with_gnu_ld = no; then
6286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6830 if test no = "$with_gnu_ld"; then
6831 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62876832 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62886833
62896834 case $host_cpu in
62906835 hppa*64*|ia64*)
62916836 ;;
62926837 *)
6293 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6838 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62946839 ;;
62956840 esac
62966841 fi
63166861 aCC*)
63176862 case $host_cpu in
63186863 hppa*64*)
6319 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6864 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63206865 ;;
63216866 ia64*)
6322 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6867 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63236868 ;;
63246869 *)
6325 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6870 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63266871 ;;
63276872 esac
63286873 # Commands to make compiler produce verbose output that lists
63336878 # explicitly linking system object files so we need to strip them
63346879 # from the output so that they don't get included in the library
63356880 # dependencies.
6336 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"'
6881 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"'
63376882 ;;
63386883 *)
6339 if test "$GXX" = yes; then
6340 if test $with_gnu_ld = no; then
6884 if test yes = "$GXX"; then
6885 if test no = "$with_gnu_ld"; then
63416886 case $host_cpu in
63426887 hppa*64*)
6343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6888 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63446889 ;;
63456890 ia64*)
6346 _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'
6891 _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'
63476892 ;;
63486893 *)
6349 _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'
6894 _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'
63506895 ;;
63516896 esac
63526897 fi
63616906 interix[[3-9]]*)
63626907 _LT_TAGVAR(hardcode_direct, $1)=no
63636908 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6364 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6365 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6910 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63666911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
63676912 # Instead, shared libraries are loaded at an image base (0x10000000 by
63686913 # default) and relocated if they conflict, which is a slow very memory
63696914 # consuming and fragmenting process. To avoid this, we pick a random,
63706915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
63716916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6372 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6373 _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'
6917 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6918 _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'
63746919 ;;
63756920 irix5* | irix6*)
63766921 case $cc_basename in
63776922 CC*)
63786923 # SGI C++
6379 _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'
6924 _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'
63806925
63816926 # Archives containing C++ object files must be created using
63826927 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
63856930 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
63866931 ;;
63876932 *)
6388 if test "$GXX" = yes; then
6389 if test "$with_gnu_ld" = no; then
6390 _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'
6933 if test yes = "$GXX"; then
6934 if test no = "$with_gnu_ld"; then
6935 _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'
63916936 else
6392 _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'
6937 _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'
63936938 fi
63946939 fi
63956940 _LT_TAGVAR(link_all_deplibs, $1)=yes
63966941 ;;
63976942 esac
6398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
63996944 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
64006945 _LT_TAGVAR(inherit_rpath, $1)=yes
64016946 ;;
64086953 # KCC will only create a shared library if the output file
64096954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
64106955 # to its proper name (with version) after linking.
6411 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6412 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6956 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6957 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
64136958 # Commands to make compiler produce verbose output that lists
64146959 # what "hidden" libraries, object files and flags are used when
64156960 # linking a shared library.
64186963 # explicitly linking system object files so we need to strip them
64196964 # from the output so that they don't get included in the library
64206965 # dependencies.
6421 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"'
6422
6423 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6424 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6966 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"'
6967
6968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6969 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
64256970
64266971 # Archives containing C++ object files must be created using
64276972 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
64356980 # earlier do not add the objects themselves.
64366981 case `$CC -V 2>&1` in
64376982 *"Version 7."*)
6438 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6439 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6983 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6984 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64406985 ;;
64416986 *) # Version 8.0 or newer
64426987 tmp_idyn=
64436988 case $host_cpu in
64446989 ia64*) tmp_idyn=' -i_dynamic';;
64456990 esac
6446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6447 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6991 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6992 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64486993 ;;
64496994 esac
64506995 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6452 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6453 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6997 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6998 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
64546999 ;;
64557000 pgCC* | pgcpp*)
64567001 # Portland Group C++ compiler
64577002 case `$CC -V` in
64587003 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
64597004 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6460 rm -rf $tpldir~
6461 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6462 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7005 rm -rf $tpldir~
7006 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7007 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
64637008 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6464 rm -rf $tpldir~
6465 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6466 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6467 $RANLIB $oldlib'
7009 rm -rf $tpldir~
7010 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7011 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7012 $RANLIB $oldlib'
64687013 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6469 rm -rf $tpldir~
6470 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6471 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7014 rm -rf $tpldir~
7015 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7016 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
64727017 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6473 rm -rf $tpldir~
6474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6475 $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'
7018 rm -rf $tpldir~
7019 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7020 $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'
64767021 ;;
64777022 *) # Version 6 and above use weak symbols
6478 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6479 _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'
7023 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7024 _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'
64807025 ;;
64817026 esac
64827027
6483 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6484 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6485 _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'
7028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7029 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7030 _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'
64867031 ;;
64877032 cxx*)
64887033 # Compaq C++
6489 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6490 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7034 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7035 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
64917036
64927037 runpath_var=LD_RUN_PATH
64937038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
65017046 # explicitly linking system object files so we need to strip them
65027047 # from the output so that they don't get included in the library
65037048 # dependencies.
6504 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'
7049 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'
65057050 ;;
65067051 xl* | mpixl* | bgxl*)
65077052 # IBM XL 8.0 on PPC, with GNU ld
6508 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6509 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6510 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6511 if test "x$supports_anon_versioning" = xyes; then
7053 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7054 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7055 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7056 if test yes = "$supports_anon_versioning"; then
65127057 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6514 echo "local: *; };" >> $output_objdir/$libname.ver~
6515 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7059 echo "local: *; };" >> $output_objdir/$libname.ver~
7060 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
65167061 fi
65177062 ;;
65187063 *)
65207065 *Sun\ C*)
65217066 # Sun C++ 5.9
65227067 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6523 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6524 _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'
7068 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7069 _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'
65257070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6526 _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'
7071 _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'
65277072 _LT_TAGVAR(compiler_needs_object, $1)=yes
65287073
65297074 # Not sure whether something based on
65817126 _LT_TAGVAR(ld_shlibs, $1)=yes
65827127 ;;
65837128
6584 openbsd2*)
6585 # C++ shared libraries are fairly broken
6586 _LT_TAGVAR(ld_shlibs, $1)=no
6587 ;;
6588
6589 openbsd*)
7129 openbsd* | bitrig*)
65907130 if test -f /usr/libexec/ld.so; then
65917131 _LT_TAGVAR(hardcode_direct, $1)=yes
65927132 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
65937133 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
65947134 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6597 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6598 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6599 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7135 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7137 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
7138 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7139 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
66007140 fi
66017141 output_verbose_link_cmd=func_echo_all
66027142 else
66127152 # KCC will only create a shared library if the output file
66137153 # ends with ".so" (or ".sl" for HP-UX), so rename the library
66147154 # to its proper name (with version) after linking.
6615 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6616
6617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7155 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7156
7157 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
66187158 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66197159
66207160 # Archives containing C++ object files must be created using
66327172 cxx*)
66337173 case $host in
66347174 osf3*)
6635 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6636 _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'
6637 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7175 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7176 _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'
7177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66387178 ;;
66397179 *)
66407180 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6641 _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'
7181 _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'
66427182 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6643 echo "-hidden">> $lib.exp~
6644 $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~
6645 $RM $lib.exp'
7183 echo "-hidden">> $lib.exp~
7184 $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~
7185 $RM $lib.exp'
66467186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
66477187 ;;
66487188 esac
66577197 # explicitly linking system object files so we need to strip them
66587198 # from the output so that they don't get included in the library
66597199 # dependencies.
6660 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"'
7200 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"'
66617201 ;;
66627202 *)
6663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6664 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7203 if test yes,no = "$GXX,$with_gnu_ld"; then
7204 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
66657205 case $host in
66667206 osf3*)
6667 _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'
7207 _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'
66687208 ;;
66697209 *)
6670 _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'
7210 _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'
66717211 ;;
66727212 esac
66737213
6674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7214 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66757215 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66767216
66777217 # Commands to make compiler produce verbose output that lists
67177257 # Sun C++ 4.2, 5.x and Centerline C++
67187258 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
67197259 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6720 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7260 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67217261 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6722 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7262 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67237263
67247264 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
67257265 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67277267 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67287268 *)
67297269 # The compiler driver will combine and reorder linker options,
6730 # but understands `-z linker_flag'.
7270 # but understands '-z linker_flag'.
67317271 # Supported since Solaris 2.6 (maybe 2.5.1?)
67327272 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
67337273 ;;
67447284 ;;
67457285 gcx*)
67467286 # Green Hills C++ Compiler
6747 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7287 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67487288
67497289 # The C++ compiler must be used to create the archive.
67507290 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
67517291 ;;
67527292 *)
67537293 # GNU C++ compiler with Solaris linker
6754 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6755 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7294 if test yes,no = "$GXX,$with_gnu_ld"; then
7295 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
67567296 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6757 _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'
7297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67587298 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6759 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7299 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67607300
67617301 # Commands to make compiler produce verbose output that lists
67627302 # what "hidden" libraries, object files and flags are used when
67637303 # linking a shared library.
67647304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67657305 else
6766 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7306 # g++ 2.7 appears to require '-G' NOT '-shared' on this
67677307 # platform.
6768 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7308 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67697309 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6770 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7310 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67717311
67727312 # Commands to make compiler produce verbose output that lists
67737313 # what "hidden" libraries, object files and flags are used when
67757315 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67767316 fi
67777317
6778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
67797319 case $host_os in
67807320 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67817321 *)
6782 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7322 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
67837323 ;;
67847324 esac
67857325 fi
67887328 ;;
67897329
67907330 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6791 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7331 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
67927332 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67937333 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67947334 runpath_var='LD_RUN_PATH'
67957335
67967336 case $cc_basename in
67977337 CC*)
6798 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6799 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7339 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68007340 ;;
68017341 *)
6802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6803 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7343 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68047344 ;;
68057345 esac
68067346 ;;
68077347
68087348 sysv5* | sco3.2v5* | sco5v6*)
6809 # Note: We can NOT use -z defs as we might desire, because we do not
7349 # Note: We CANNOT use -z defs as we might desire, because we do not
68107350 # link with -lc, and that would cause any symbols used from libc to
68117351 # always be unresolved, which means just about no library would
68127352 # ever link correctly. If we're not using GNU ld we use -z text
68137353 # though, which does catch some bad symbols but isn't as heavy-handed
68147354 # as -z defs.
6815 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6816 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7355 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7356 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
68177357 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68187358 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6819 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
68207360 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
68217361 _LT_TAGVAR(link_all_deplibs, $1)=yes
6822 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7362 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
68237363 runpath_var='LD_RUN_PATH'
68247364
68257365 case $cc_basename in
68267366 CC*)
6827 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6828 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7367 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7368 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68297369 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6830 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7370 '"$_LT_TAGVAR(old_archive_cmds, $1)"
68317371 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6832 '"$_LT_TAGVAR(reload_cmds, $1)"
7372 '"$_LT_TAGVAR(reload_cmds, $1)"
68337373 ;;
68347374 *)
6835 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6836 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7375 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7376 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68377377 ;;
68387378 esac
68397379 ;;
68647404 esac
68657405
68667406 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6867 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6868
6869 _LT_TAGVAR(GCC, $1)="$GXX"
6870 _LT_TAGVAR(LD, $1)="$LD"
7407 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7408
7409 _LT_TAGVAR(GCC, $1)=$GXX
7410 _LT_TAGVAR(LD, $1)=$LD
68717411
68727412 ## CAVEAT EMPTOR:
68737413 ## There is no encapsulation within the following macros, do not change
68947434 lt_cv_path_LD=$lt_save_path_LD
68957435 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
68967436 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6897 fi # test "$_lt_caught_CXX_error" != yes
7437 fi # test yes != "$_lt_caught_CXX_error"
68987438
68997439 AC_LANG_POP
69007440 ])# _LT_LANG_CXX_CONFIG
69167456 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
69177457 func_stripname_cnf ()
69187458 {
6919 case ${2} in
6920 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6921 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7459 case @S|@2 in
7460 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7461 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
69227462 esac
69237463 } # func_stripname_cnf
69247464 ])# _LT_FUNC_STRIPNAME_CNF
7465
69257466
69267467 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
69277468 # ---------------------------------
70067547 pre_test_object_deps_done=no
70077548
70087549 for p in `eval "$output_verbose_link_cmd"`; do
7009 case ${prev}${p} in
7550 case $prev$p in
70107551
70117552 -L* | -R* | -l*)
70127553 # Some compilers place space between "-{L,R}" and the path.
70137554 # Remove the space.
7014 if test $p = "-L" ||
7015 test $p = "-R"; then
7555 if test x-L = "$p" ||
7556 test x-R = "$p"; then
70167557 prev=$p
70177558 continue
70187559 fi
70287569 case $p in
70297570 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
70307571 esac
7031 if test "$pre_test_object_deps_done" = no; then
7032 case ${prev} in
7572 if test no = "$pre_test_object_deps_done"; then
7573 case $prev in
70337574 -L | -R)
70347575 # Internal compiler library paths should come after those
70357576 # provided the user. The postdeps already come after the
70367577 # user supplied libs so there is no need to process them.
70377578 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7038 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7579 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
70397580 else
7040 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7581 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
70417582 fi
70427583 ;;
70437584 # The "-l" case would never come before the object being
70457586 esac
70467587 else
70477588 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7048 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7589 _LT_TAGVAR(postdeps, $1)=$prev$p
70497590 else
7050 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7591 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
70517592 fi
70527593 fi
70537594 prev=
70627603 continue
70637604 fi
70647605
7065 if test "$pre_test_object_deps_done" = no; then
7606 if test no = "$pre_test_object_deps_done"; then
70667607 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7067 _LT_TAGVAR(predep_objects, $1)="$p"
7608 _LT_TAGVAR(predep_objects, $1)=$p
70687609 else
70697610 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
70707611 fi
70717612 else
70727613 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7073 _LT_TAGVAR(postdep_objects, $1)="$p"
7614 _LT_TAGVAR(postdep_objects, $1)=$p
70747615 else
70757616 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
70767617 fi
71017642 _LT_TAGVAR(postdep_objects,$1)=
71027643 _LT_TAGVAR(postdeps,$1)=
71037644 ;;
7104
7105 linux*)
7106 case `$CC -V 2>&1 | sed 5q` in
7107 *Sun\ C*)
7108 # Sun C++ 5.9
7109
7110 # The more standards-conforming stlport4 library is
7111 # incompatible with the Cstd library. Avoid specifying
7112 # it if it's in CXXFLAGS. Ignore libCrun as
7113 # -library=stlport4 depends on it.
7114 case " $CXX $CXXFLAGS " in
7115 *" -library=stlport4 "*)
7116 solaris_use_stlport4=yes
7117 ;;
7118 esac
7119
7120 if test "$solaris_use_stlport4" != yes; then
7121 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7122 fi
7123 ;;
7124 esac
7125 ;;
7126
7127 solaris*)
7128 case $cc_basename in
7129 CC* | sunCC*)
7130 # The more standards-conforming stlport4 library is
7131 # incompatible with the Cstd library. Avoid specifying
7132 # it if it's in CXXFLAGS. Ignore libCrun as
7133 # -library=stlport4 depends on it.
7134 case " $CXX $CXXFLAGS " in
7135 *" -library=stlport4 "*)
7136 solaris_use_stlport4=yes
7137 ;;
7138 esac
7139
7140 # Adding this requires a known-good setup of shared libraries for
7141 # Sun compiler versions before 5.6, else PIC objects from an old
7142 # archive will be linked into the output, leading to subtle bugs.
7143 if test "$solaris_use_stlport4" != yes; then
7144 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7145 fi
7146 ;;
7147 esac
7148 ;;
71497645 esac
71507646 ])
71517647
71547650 esac
71557651 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
71567652 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7157 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7653 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
71587654 fi
71597655 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
71607656 [The directories searched by this compiler when creating a shared library])
71747670 # --------------------------
71757671 # Ensure that the configuration variables for a Fortran 77 compiler are
71767672 # suitably defined. These variables are subsequently used by _LT_CONFIG
7177 # to write the compiler configuration to `libtool'.
7673 # to write the compiler configuration to 'libtool'.
71787674 m4_defun([_LT_LANG_F77_CONFIG],
71797675 [AC_LANG_PUSH(Fortran 77)
7180 if test -z "$F77" || test "X$F77" = "Xno"; then
7676 if test -z "$F77" || test no = "$F77"; then
71817677 _lt_disable_F77=yes
71827678 fi
71837679
72147710 # the F77 compiler isn't working. Some variables (like enable_shared)
72157711 # are currently assumed to apply to all compilers on this platform,
72167712 # and will be corrupted by setting them based on a non-working compiler.
7217 if test "$_lt_disable_F77" != yes; then
7713 if test yes != "$_lt_disable_F77"; then
72187714 # Code to be used in simple compile tests
72197715 lt_simple_compile_test_code="\
72207716 subroutine t
72367732 _LT_LINKER_BOILERPLATE
72377733
72387734 # Allow CC to be a program name with arguments.
7239 lt_save_CC="$CC"
7735 lt_save_CC=$CC
72407736 lt_save_GCC=$GCC
72417737 lt_save_CFLAGS=$CFLAGS
72427738 CC=${F77-"f77"}
72507746 AC_MSG_RESULT([$can_build_shared])
72517747
72527748 AC_MSG_CHECKING([whether to build shared libraries])
7253 test "$can_build_shared" = "no" && enable_shared=no
7749 test no = "$can_build_shared" && enable_shared=no
72547750
72557751 # On AIX, shared libraries and static libraries use the same namespace, and
72567752 # are all built from PIC.
72577753 case $host_os in
72587754 aix3*)
7259 test "$enable_shared" = yes && enable_static=no
7755 test yes = "$enable_shared" && enable_static=no
72607756 if test -n "$RANLIB"; then
72617757 archive_cmds="$archive_cmds~\$RANLIB \$lib"
72627758 postinstall_cmds='$RANLIB $lib'
72637759 fi
72647760 ;;
72657761 aix[[4-9]]*)
7266 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7267 test "$enable_shared" = yes && enable_static=no
7762 if test ia64 != "$host_cpu"; then
7763 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7764 yes,aix,yes) ;; # shared object as lib.so file only
7765 yes,svr4,*) ;; # shared object as lib.so archive member only
7766 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7767 esac
72687768 fi
72697769 ;;
72707770 esac
72727772
72737773 AC_MSG_CHECKING([whether to build static libraries])
72747774 # Make sure either enable_shared or enable_static is yes.
7275 test "$enable_shared" = yes || enable_static=yes
7775 test yes = "$enable_shared" || enable_static=yes
72767776 AC_MSG_RESULT([$enable_static])
72777777
7278 _LT_TAGVAR(GCC, $1)="$G77"
7279 _LT_TAGVAR(LD, $1)="$LD"
7778 _LT_TAGVAR(GCC, $1)=$G77
7779 _LT_TAGVAR(LD, $1)=$LD
72807780
72817781 ## CAVEAT EMPTOR:
72827782 ## There is no encapsulation within the following macros, do not change
72937793 fi # test -n "$compiler"
72947794
72957795 GCC=$lt_save_GCC
7296 CC="$lt_save_CC"
7297 CFLAGS="$lt_save_CFLAGS"
7298 fi # test "$_lt_disable_F77" != yes
7796 CC=$lt_save_CC
7797 CFLAGS=$lt_save_CFLAGS
7798 fi # test yes != "$_lt_disable_F77"
72997799
73007800 AC_LANG_POP
73017801 ])# _LT_LANG_F77_CONFIG
73057805 # -------------------------
73067806 # Ensure that the configuration variables for a Fortran compiler are
73077807 # suitably defined. These variables are subsequently used by _LT_CONFIG
7308 # to write the compiler configuration to `libtool'.
7808 # to write the compiler configuration to 'libtool'.
73097809 m4_defun([_LT_LANG_FC_CONFIG],
73107810 [AC_LANG_PUSH(Fortran)
73117811
7312 if test -z "$FC" || test "X$FC" = "Xno"; then
7812 if test -z "$FC" || test no = "$FC"; then
73137813 _lt_disable_FC=yes
73147814 fi
73157815
73467846 # the FC compiler isn't working. Some variables (like enable_shared)
73477847 # are currently assumed to apply to all compilers on this platform,
73487848 # and will be corrupted by setting them based on a non-working compiler.
7349 if test "$_lt_disable_FC" != yes; then
7849 if test yes != "$_lt_disable_FC"; then
73507850 # Code to be used in simple compile tests
73517851 lt_simple_compile_test_code="\
73527852 subroutine t
73687868 _LT_LINKER_BOILERPLATE
73697869
73707870 # Allow CC to be a program name with arguments.
7371 lt_save_CC="$CC"
7871 lt_save_CC=$CC
73727872 lt_save_GCC=$GCC
73737873 lt_save_CFLAGS=$CFLAGS
73747874 CC=${FC-"f95"}
73847884 AC_MSG_RESULT([$can_build_shared])
73857885
73867886 AC_MSG_CHECKING([whether to build shared libraries])
7387 test "$can_build_shared" = "no" && enable_shared=no
7887 test no = "$can_build_shared" && enable_shared=no
73887888
73897889 # On AIX, shared libraries and static libraries use the same namespace, and
73907890 # are all built from PIC.
73917891 case $host_os in
73927892 aix3*)
7393 test "$enable_shared" = yes && enable_static=no
7893 test yes = "$enable_shared" && enable_static=no
73947894 if test -n "$RANLIB"; then
73957895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
73967896 postinstall_cmds='$RANLIB $lib'
73977897 fi
73987898 ;;
73997899 aix[[4-9]]*)
7400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7401 test "$enable_shared" = yes && enable_static=no
7900 if test ia64 != "$host_cpu"; then
7901 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7902 yes,aix,yes) ;; # shared object as lib.so file only
7903 yes,svr4,*) ;; # shared object as lib.so archive member only
7904 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7905 esac
74027906 fi
74037907 ;;
74047908 esac
74067910
74077911 AC_MSG_CHECKING([whether to build static libraries])
74087912 # Make sure either enable_shared or enable_static is yes.
7409 test "$enable_shared" = yes || enable_static=yes
7913 test yes = "$enable_shared" || enable_static=yes
74107914 AC_MSG_RESULT([$enable_static])
74117915
7412 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7413 _LT_TAGVAR(LD, $1)="$LD"
7916 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7917 _LT_TAGVAR(LD, $1)=$LD
74147918
74157919 ## CAVEAT EMPTOR:
74167920 ## There is no encapsulation within the following macros, do not change
74307934 GCC=$lt_save_GCC
74317935 CC=$lt_save_CC
74327936 CFLAGS=$lt_save_CFLAGS
7433 fi # test "$_lt_disable_FC" != yes
7937 fi # test yes != "$_lt_disable_FC"
74347938
74357939 AC_LANG_POP
74367940 ])# _LT_LANG_FC_CONFIG
74407944 # --------------------------
74417945 # Ensure that the configuration variables for the GNU Java Compiler compiler
74427946 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7443 # to write the compiler configuration to `libtool'.
7947 # to write the compiler configuration to 'libtool'.
74447948 m4_defun([_LT_LANG_GCJ_CONFIG],
74457949 [AC_REQUIRE([LT_PROG_GCJ])dnl
74467950 AC_LANG_SAVE
74747978 CFLAGS=$GCJFLAGS
74757979 compiler=$CC
74767980 _LT_TAGVAR(compiler, $1)=$CC
7477 _LT_TAGVAR(LD, $1)="$LD"
7981 _LT_TAGVAR(LD, $1)=$LD
74787982 _LT_CC_BASENAME([$compiler])
74797983
74807984 # GCJ did not exist at the time GCC didn't implicitly link libc in.
75118015 # --------------------------
75128016 # Ensure that the configuration variables for the GNU Go compiler
75138017 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7514 # to write the compiler configuration to `libtool'.
8018 # to write the compiler configuration to 'libtool'.
75158019 m4_defun([_LT_LANG_GO_CONFIG],
75168020 [AC_REQUIRE([LT_PROG_GO])dnl
75178021 AC_LANG_SAVE
75458049 CFLAGS=$GOFLAGS
75468050 compiler=$CC
75478051 _LT_TAGVAR(compiler, $1)=$CC
7548 _LT_TAGVAR(LD, $1)="$LD"
8052 _LT_TAGVAR(LD, $1)=$LD
75498053 _LT_CC_BASENAME([$compiler])
75508054
75518055 # Go did not exist at the time GCC didn't implicitly link libc in.
75828086 # -------------------------
75838087 # Ensure that the configuration variables for the Windows resource compiler
75848088 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7585 # to write the compiler configuration to `libtool'.
8089 # to write the compiler configuration to 'libtool'.
75868090 m4_defun([_LT_LANG_RC_CONFIG],
75878091 [AC_REQUIRE([LT_PROG_RC])dnl
75888092 AC_LANG_SAVE
75988102 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
75998103
76008104 # Code to be used in simple link tests
7601 lt_simple_link_test_code="$lt_simple_compile_test_code"
8105 lt_simple_link_test_code=$lt_simple_compile_test_code
76028106
76038107 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
76048108 _LT_TAG_COMPILER
76088112 _LT_LINKER_BOILERPLATE
76098113
76108114 # Allow CC to be a program name with arguments.
7611 lt_save_CC="$CC"
8115 lt_save_CC=$CC
76128116 lt_save_CFLAGS=$CFLAGS
76138117 lt_save_GCC=$GCC
76148118 GCC=
76378141 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
76388142 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
76398143 [AC_CHECK_TOOL(GCJ, gcj,)
7640 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8144 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
76418145 AC_SUBST(GCJFLAGS)])])[]dnl
76428146 ])
76438147
77488252 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
77498253 # along with /bin/sed that truncates output.
77508254 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7751 test ! -f $lt_ac_sed && continue
8255 test ! -f "$lt_ac_sed" && continue
77528256 cat /dev/null > conftest.in
77538257 lt_ac_count=0
77548258 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
77658269 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
77668270 cmp -s conftest.out conftest.nl || break
77678271 # 10000 chars as input seems more than enough
7768 test $lt_ac_count -gt 10 && break
8272 test 10 -lt "$lt_ac_count" && break
77698273 lt_ac_count=`expr $lt_ac_count + 1`
7770 if test $lt_ac_count -gt $lt_ac_max; then
8274 if test "$lt_ac_count" -gt "$lt_ac_max"; then
77718275 lt_ac_max=$lt_ac_count
77728276 lt_cv_path_SED=$lt_ac_sed
77738277 fi
77918295 # Find out whether the shell is Bourne or XSI compatible,
77928296 # or has some other useful features.
77938297 m4_defun([_LT_CHECK_SHELL_FEATURES],
7794 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7795 # Try some XSI features
7796 xsi_shell=no
7797 ( _lt_dummy="a/b/c"
7798 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7799 = c,a/b,b/c, \
7800 && eval 'test $(( 1 + 1 )) -eq 2 \
7801 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7802 && xsi_shell=yes
7803 AC_MSG_RESULT([$xsi_shell])
7804 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7805
7806 AC_MSG_CHECKING([whether the shell understands "+="])
7807 lt_shell_append=no
7808 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7809 >/dev/null 2>&1 \
7810 && lt_shell_append=yes
7811 AC_MSG_RESULT([$lt_shell_append])
7812 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7813
7814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8298 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
78158299 lt_unset=unset
78168300 else
78178301 lt_unset=false
78358319 ])# _LT_CHECK_SHELL_FEATURES
78368320
78378321
7838 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7839 # ------------------------------------------------------
7840 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7841 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7842 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7843 [dnl {
7844 sed -e '/^$1 ()$/,/^} # $1 /c\
7845 $1 ()\
7846 {\
7847 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7848 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7849 && mv -f "$cfgfile.tmp" "$cfgfile" \
7850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7851 test 0 -eq $? || _lt_function_replace_fail=:
7852 ])
7853
7854
7855 # _LT_PROG_REPLACE_SHELLFNS
7856 # -------------------------
7857 # Replace existing portable implementations of several shell functions with
7858 # equivalent extended shell implementations where those features are available..
7859 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7860 [if test x"$xsi_shell" = xyes; then
7861 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7862 case ${1} in
7863 */*) func_dirname_result="${1%/*}${2}" ;;
7864 * ) func_dirname_result="${3}" ;;
7865 esac])
7866
7867 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7868 func_basename_result="${1##*/}"])
7869
7870 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7871 case ${1} in
7872 */*) func_dirname_result="${1%/*}${2}" ;;
7873 * ) func_dirname_result="${3}" ;;
7874 esac
7875 func_basename_result="${1##*/}"])
7876
7877 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7878 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7879 # positional parameters, so assign one to ordinary parameter first.
7880 func_stripname_result=${3}
7881 func_stripname_result=${func_stripname_result#"${1}"}
7882 func_stripname_result=${func_stripname_result%"${2}"}])
7883
7884 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7885 func_split_long_opt_name=${1%%=*}
7886 func_split_long_opt_arg=${1#*=}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7889 func_split_short_opt_arg=${1#??}
7890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7893 case ${1} in
7894 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7895 *) func_lo2o_result=${1} ;;
7896 esac])
7897
7898 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7899
7900 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7903 fi
7904
7905 if test x"$lt_shell_append" = xyes; then
7906 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7907
7908 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7909 func_quote_for_eval "${2}"
7910 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7911 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7912
7913 # Save a `func_append' function call where possible by direct use of '+='
7914 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7915 && mv -f "$cfgfile.tmp" "$cfgfile" \
7916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7917 test 0 -eq $? || _lt_function_replace_fail=:
7918 else
7919 # Save a `func_append' function call even when '+=' is not available
7920 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7921 && mv -f "$cfgfile.tmp" "$cfgfile" \
7922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7923 test 0 -eq $? || _lt_function_replace_fail=:
7924 fi
7925
7926 if test x"$_lt_function_replace_fail" = x":"; then
7927 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7928 fi
7929 ])
7930
79318322 # _LT_PATH_CONVERSION_FUNCTIONS
79328323 # -----------------------------
7933 # Determine which file name conversion functions should be used by
8324 # Determine what file name conversion functions should be used by
79348325 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
79358326 # for certain cross-compile configurations and native mingw.
79368327 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
00 # Helper functions for option handling. -*- Autoconf -*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
3 # Foundation, Inc.
44 # Written by Gary V. Vaughan, 2004
55 #
66 # This file is free software; the Free Software Foundation gives
77 # unlimited permission to copy and/or distribute it, with or without
88 # modifications, as long as this notice is preserved.
99
10 # serial 7 ltoptions.m4
10 # serial 8 ltoptions.m4
1111
1212 # This is to help aclocal find these macros, as it can't see m4_define.
1313 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
2828 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
2929 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
3030 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
31 [m4_warning([Unknown $1 option '$2'])])[]dnl
3232 ])
3333
3434
7474 dnl
7575 dnl If no reference was made to various pairs of opposing options, then
7676 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
77 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
7878 dnl archives by default:
7979 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8080 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8181 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8282 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
83 [_LT_ENABLE_FAST_INSTALL])
84 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
85 [_LT_WITH_AIX_SONAME([aix])])
8486 ])
8587 ])# _LT_SET_OPTIONS
8688
111113 [_LT_SET_OPTION([LT_INIT], [dlopen])
112114 AC_DIAGNOSE([obsolete],
113115 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
116 put the 'dlopen' option into LT_INIT's first parameter.])
115117 ])
116118
117119 dnl aclocal-1.4 backwards compatibility:
147149 _LT_SET_OPTION([LT_INIT], [win32-dll])
148150 AC_DIAGNOSE([obsolete],
149151 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
152 put the 'win32-dll' option into LT_INIT's first parameter.])
151153 ])
152154
153155 dnl aclocal-1.4 backwards compatibility:
156158
157159 # _LT_ENABLE_SHARED([DEFAULT])
158160 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
161 # implement the --enable-shared flag, and supports the 'shared' and
162 # 'disable-shared' LT_INIT options.
163 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
162164 m4_define([_LT_ENABLE_SHARED],
163165 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164166 AC_ARG_ENABLE([shared],
171173 *)
172174 enable_shared=no
173175 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
175177 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
178 IFS=$lt_save_ifs
177179 if test "X$pkg" = "X$p"; then
178180 enable_shared=yes
179181 fi
180182 done
181 IFS="$lt_save_ifs"
183 IFS=$lt_save_ifs
182184 ;;
183185 esac],
184186 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
210212
211213 # _LT_ENABLE_STATIC([DEFAULT])
212214 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
215 # implement the --enable-static flag, and support the 'static' and
216 # 'disable-static' LT_INIT options.
217 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
216218 m4_define([_LT_ENABLE_STATIC],
217219 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218220 AC_ARG_ENABLE([static],
225227 *)
226228 enable_static=no
227229 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
230 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
229231 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
232 IFS=$lt_save_ifs
231233 if test "X$pkg" = "X$p"; then
232234 enable_static=yes
233235 fi
234236 done
235 IFS="$lt_save_ifs"
237 IFS=$lt_save_ifs
236238 ;;
237239 esac],
238240 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
264266
265267 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266268 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
269 # implement the --enable-fast-install flag, and support the 'fast-install'
270 # and 'disable-fast-install' LT_INIT options.
271 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
270272 m4_define([_LT_ENABLE_FAST_INSTALL],
271273 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272274 AC_ARG_ENABLE([fast-install],
279281 *)
280282 enable_fast_install=no
281283 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
283285 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
286 IFS=$lt_save_ifs
285287 if test "X$pkg" = "X$p"; then
286288 enable_fast_install=yes
287289 fi
288290 done
289 IFS="$lt_save_ifs"
291 IFS=$lt_save_ifs
290292 ;;
291293 esac],
292294 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
303305 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304306 AC_DIAGNOSE([obsolete],
305307 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
308 the 'fast-install' option into LT_INIT's first parameter.])
307309 ])
308310
309311 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310312 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311313 AC_DIAGNOSE([obsolete],
312314 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
315 the 'disable-fast-install' option into LT_INIT's first parameter.])
314316 ])
315317
316318 dnl aclocal-1.4 backwards compatibility:
318320 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319321
320322
323 # _LT_WITH_AIX_SONAME([DEFAULT])
324 # ----------------------------------
325 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
326 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
327 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
328 m4_define([_LT_WITH_AIX_SONAME],
329 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
330 shared_archive_member_spec=
331 case $host,$enable_shared in
332 power*-*-aix[[5-9]]*,yes)
333 AC_MSG_CHECKING([which variant of shared library versioning to provide])
334 AC_ARG_WITH([aix-soname],
335 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
336 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
337 [case $withval in
338 aix|svr4|both)
339 ;;
340 *)
341 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
342 ;;
343 esac
344 lt_cv_with_aix_soname=$with_aix_soname],
345 [AC_CACHE_VAL([lt_cv_with_aix_soname],
346 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
347 with_aix_soname=$lt_cv_with_aix_soname])
348 AC_MSG_RESULT([$with_aix_soname])
349 if test aix != "$with_aix_soname"; then
350 # For the AIX way of multilib, we name the shared archive member
351 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
352 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
353 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
354 # the AIX toolchain works better with OBJECT_MODE set (default 32).
355 if test 64 = "${OBJECT_MODE-32}"; then
356 shared_archive_member_spec=shr_64
357 else
358 shared_archive_member_spec=shr
359 fi
360 fi
361 ;;
362 *)
363 with_aix_soname=aix
364 ;;
365 esac
366
367 _LT_DECL([], [shared_archive_member_spec], [0],
368 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
369 ])# _LT_WITH_AIX_SONAME
370
371 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
374
375
321376 # _LT_WITH_PIC([MODE])
322377 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
378 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
324379 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
380 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
326381 m4_define([_LT_WITH_PIC],
327382 [AC_ARG_WITH([pic],
328383 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
333388 *)
334389 pic_mode=default
335390 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
391 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
337392 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
393 IFS=$lt_save_ifs
339394 if test "X$lt_pkg" = "X$lt_p"; then
340395 pic_mode=yes
341396 fi
342397 done
343 IFS="$lt_save_ifs"
398 IFS=$lt_save_ifs
344399 ;;
345400 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
401 [pic_mode=m4_default([$1], [default])])
349402
350403 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351404 ])# _LT_WITH_PIC
358411 [_LT_SET_OPTION([LT_INIT], [pic-only])
359412 AC_DIAGNOSE([obsolete],
360413 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
414 put the 'pic-only' option into LT_INIT's first parameter.])
362415 ])
363416
364417 dnl aclocal-1.4 backwards compatibility:
00 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
3 # Foundation, Inc.
34 # Written by Gary V. Vaughan, 2004
45 #
56 # This file is free software; the Free Software Foundation gives
3233 # ------------
3334 # Manipulate m4 lists.
3435 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 # Autoconf-2.59, which quotes differently.
3637 m4_define([lt_car], [[$1]])
3738 m4_define([lt_cdr],
3839 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
4344
4445 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
4546 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
4748 # Note that neither SEPARATOR nor STRING are expanded; they are appended
4849 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4950 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
00 # ltversion.m4 -- version numbers -*- Autoconf -*-
11 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
2 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
33 # Written by Scott James Remnant, 2004
44 #
55 # This file is free software; the Free Software Foundation gives
88
99 # @configure_input@
1010
11 # serial 3337 ltversion.m4
11 # serial 4179 ltversion.m4
1212 # This file is part of GNU Libtool
1313
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
14 m4_define([LT_PACKAGE_VERSION], [2.4.6])
15 m4_define([LT_PACKAGE_REVISION], [2.4.6])
1616
1717 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
18 [macro_version='2.4.6'
19 macro_revision='2.4.6'
2020 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
2121 _LT_DECL(, macro_revision, 0)
2222 ])
00 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
11 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
3 # Foundation, Inc.
34 # Written by Scott James Remnant, 2004.
45 #
56 # This file is free software; the Free Software Foundation gives
1011
1112 # These exist entirely to fool aclocal when bootstrapping libtool.
1213 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
1415 # which have later been changed to m4_define as they aren't part of the
1516 # exported API, or moved to Autoconf or Automake where they belong.
1617 #
2425 # included after everything else. This provides aclocal with the
2526 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
2627 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
2829 #
2930 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3031 # Yes, that means every name once taken will need to remain here until
22
33 scriptversion=2013-10-28.13; # UTC
44
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3636 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3737
3838 VPATH = @srcdir@
39 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
39 am__is_gnu_make = { \
40 if test -z '$(MAKELEVEL)'; then \
41 false; \
42 elif test -n '$(MAKE_HOST)'; then \
43 true; \
44 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
45 true; \
46 else \
47 false; \
48 fi; \
49 }
4050 am__make_running_with_option = \
4151 case $${target_option-} in \
4252 ?) ;; \
105115 @USE_EGL_TRUE@am__append_4 = libva-egl.pc
106116 @USE_WAYLAND_TRUE@am__append_5 = libva-wayland.pc
107117 subdir = pkgconfig
108 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
109 $(srcdir)/libva-drm.pc.in $(srcdir)/libva-egl.pc.in \
110 $(srcdir)/libva-glx.pc.in $(srcdir)/libva-tpi.pc.in \
111 $(srcdir)/libva-wayland.pc.in $(srcdir)/libva-x11.pc.in \
112 $(srcdir)/libva.pc.in
113118 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
114119 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
115120 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
117122 $(top_srcdir)/configure.ac
118123 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
119124 $(ACLOCAL_M4)
125 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
120126 mkinstalldirs = $(install_sh) -d
121127 CONFIG_HEADER = $(top_builddir)/config.h
122128 CONFIG_CLEAN_FILES = libva-drm.pc libva-egl.pc libva-glx.pc \
171177 am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
172178 DATA = $(pkgconfig_DATA)
173179 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
180 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/libva-drm.pc.in \
181 $(srcdir)/libva-egl.pc.in $(srcdir)/libva-glx.pc.in \
182 $(srcdir)/libva-tpi.pc.in $(srcdir)/libva-wayland.pc.in \
183 $(srcdir)/libva-x11.pc.in $(srcdir)/libva.pc.in
174184 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
175185 ACLOCAL = @ACLOCAL@
176186 AMTAR = @AMTAR@
230240 LIPO = @LIPO@
231241 LN_S = @LN_S@
232242 LTLIBOBJS = @LTLIBOBJS@
243 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
233244 MAKEINFO = @MAKEINFO@
234245 MANIFEST_TOOL = @MANIFEST_TOOL@
235246 MKDIR_P = @MKDIR_P@
317328 prefix = @prefix@
318329 program_transform_name = @program_transform_name@
319330 psdir = @psdir@
331 runstatedir = @runstatedir@
320332 sbindir = @sbindir@
321333 sharedstatedir = @sharedstatedir@
322334 srcdir = @srcdir@
348360 exit 1;; \
349361 esac; \
350362 done; \
351 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign pkgconfig/Makefile'; \
363 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu pkgconfig/Makefile'; \
352364 $(am__cd) $(top_srcdir) && \
353 $(AUTOMAKE) --foreign pkgconfig/Makefile
354 .PRECIOUS: Makefile
365 $(AUTOMAKE) --gnu pkgconfig/Makefile
355366 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
356367 @case '$?' in \
357368 *config.status*) \
567578 ps ps-am tags-am uninstall uninstall-am \
568579 uninstall-pkgconfigDATA
569580
581 .PRECIOUS: Makefile
582
570583
571584 # Tell versions [3.59,3.63) of GNU make to not export all variables.
572585 # Otherwise a system limit (for SysV at least) may be exceeded.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3737
3838
3939 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
4151 am__make_running_with_option = \
4252 case $${target_option-} in \
4353 ?) ;; \
112122 @USE_WAYLAND_TRUE@am__append_10 = wayland
113123 @USE_WAYLAND_TRUE@am__append_11 = libva-wayland.la
114124 subdir = va
115 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
116 $(srcdir)/va_version.h.in $(top_srcdir)/depcomp \
117 $(am__libvainclude_HEADERS_DIST) $(noinst_HEADERS)
118125 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
119126 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
120127 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
122129 $(top_srcdir)/configure.ac
123130 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
124131 $(ACLOCAL_M4)
132 DIST_COMMON = $(srcdir)/Makefile.am $(am__libvainclude_HEADERS_DIST) \
133 $(noinst_HEADERS) $(am__DIST_COMMON)
125134 mkinstalldirs = $(install_sh) -d
126135 CONFIG_HEADER = $(top_builddir)/config.h
127136 CONFIG_CLEAN_FILES = va_version.h
290299 done | $(am__uniquify_input)`
291300 ETAGS = etags
292301 CTAGS = ctags
302 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/va_version.h.in \
303 $(top_srcdir)/depcomp
293304 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
294305 am__relativize = \
295306 dir0=`pwd`; \
374385 LIPO = @LIPO@
375386 LN_S = @LN_S@
376387 LTLIBOBJS = @LTLIBOBJS@
388 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
377389 MAKEINFO = @MAKEINFO@
378390 MANIFEST_TOOL = @MANIFEST_TOOL@
379391 MKDIR_P = @MKDIR_P@
461473 prefix = @prefix@
462474 program_transform_name = @program_transform_name@
463475 psdir = @psdir@
476 runstatedir = @runstatedir@
464477 sbindir = @sbindir@
465478 sharedstatedir = @sharedstatedir@
466479 srcdir = @srcdir@
568581 exit 1;; \
569582 esac; \
570583 done; \
571 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/Makefile'; \
584 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/Makefile'; \
572585 $(am__cd) $(top_srcdir) && \
573 $(AUTOMAKE) --foreign va/Makefile
574 .PRECIOUS: Makefile
586 $(AUTOMAKE) --gnu va/Makefile
575587 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
576588 @case '$?' in \
577589 *config.status*) \
9911003 uninstall-am uninstall-libLTLIBRARIES \
9921004 uninstall-libvaincludeHEADERS
9931005
1006 .PRECIOUS: Makefile
1007
9941008
9951009 # Tell versions [3.59,3.63) of GNU make to not export all variables.
9961010 # Otherwise a system limit (for SysV at least) may be exceeded.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3737
3838
3939 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
4151 am__make_running_with_option = \
4252 case $${target_option-} in \
4353 ?) ;; \
103113 @USE_X11_TRUE@am__append_1 = va_drm_auth_x11.c
104114 @USE_X11_TRUE@am__append_2 = $(X11_CFLAGS)
105115 subdir = va/drm
106 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
107 $(top_srcdir)/depcomp $(libva_drminclude_HEADERS) \
108 $(noinst_HEADERS)
109116 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
110117 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
111118 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
113120 $(top_srcdir)/configure.ac
114121 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
115122 $(ACLOCAL_M4)
123 DIST_COMMON = $(srcdir)/Makefile.am $(libva_drminclude_HEADERS) \
124 $(noinst_HEADERS) $(am__DIST_COMMON)
116125 mkinstalldirs = $(install_sh) -d
117126 CONFIG_HEADER = $(top_builddir)/config.h
118127 CONFIG_CLEAN_FILES =
219228 done | $(am__uniquify_input)`
220229 ETAGS = etags
221230 CTAGS = ctags
231 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
222232 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
223233 ACLOCAL = @ACLOCAL@
224234 AMTAR = @AMTAR@
278288 LIPO = @LIPO@
279289 LN_S = @LN_S@
280290 LTLIBOBJS = @LTLIBOBJS@
291 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
281292 MAKEINFO = @MAKEINFO@
282293 MANIFEST_TOOL = @MANIFEST_TOOL@
283294 MKDIR_P = @MKDIR_P@
365376 prefix = @prefix@
366377 program_transform_name = @program_transform_name@
367378 psdir = @psdir@
379 runstatedir = @runstatedir@
368380 sbindir = @sbindir@
369381 sharedstatedir = @sharedstatedir@
370382 srcdir = @srcdir@
408420 exit 1;; \
409421 esac; \
410422 done; \
411 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/drm/Makefile'; \
423 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/drm/Makefile'; \
412424 $(am__cd) $(top_srcdir) && \
413 $(AUTOMAKE) --foreign va/drm/Makefile
414 .PRECIOUS: Makefile
425 $(AUTOMAKE) --gnu va/drm/Makefile
415426 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
416427 @case '$?' in \
417428 *config.status*) \
711722 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
712723 uninstall-libva_drmincludeHEADERS
713724
725 .PRECIOUS: Makefile
726
714727
715728 # Tell versions [3.59,3.63) of GNU make to not export all variables.
716729 # Otherwise a system limit (for SysV at least) may be exceeded.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3737
3838
3939 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
4151 am__make_running_with_option = \
4252 case $${target_option-} in \
4353 ?) ;; \
101111 build_triplet = @build@
102112 host_triplet = @host@
103113 subdir = va/egl
104 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
105 $(top_srcdir)/depcomp $(libva_eglinclude_HEADERS) \
106 $(noinst_HEADERS)
107114 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108115 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
109116 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
111118 $(top_srcdir)/configure.ac
112119 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
113120 $(ACLOCAL_M4)
121 DIST_COMMON = $(srcdir)/Makefile.am $(libva_eglinclude_HEADERS) \
122 $(noinst_HEADERS) $(am__DIST_COMMON)
114123 mkinstalldirs = $(install_sh) -d
115124 CONFIG_HEADER = $(top_builddir)/config.h
116125 CONFIG_CLEAN_FILES =
213222 done | $(am__uniquify_input)`
214223 ETAGS = etags
215224 CTAGS = ctags
225 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
216226 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
217227 ACLOCAL = @ACLOCAL@
218228 AMTAR = @AMTAR@
272282 LIPO = @LIPO@
273283 LN_S = @LN_S@
274284 LTLIBOBJS = @LTLIBOBJS@
285 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
275286 MAKEINFO = @MAKEINFO@
276287 MANIFEST_TOOL = @MANIFEST_TOOL@
277288 MKDIR_P = @MKDIR_P@
359370 prefix = @prefix@
360371 program_transform_name = @program_transform_name@
361372 psdir = @psdir@
373 runstatedir = @runstatedir@
362374 sbindir = @sbindir@
363375 sharedstatedir = @sharedstatedir@
364376 srcdir = @srcdir@
400412 exit 1;; \
401413 esac; \
402414 done; \
403 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/egl/Makefile'; \
415 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/egl/Makefile'; \
404416 $(am__cd) $(top_srcdir) && \
405 $(AUTOMAKE) --foreign va/egl/Makefile
406 .PRECIOUS: Makefile
417 $(AUTOMAKE) --gnu va/egl/Makefile
407418 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
408419 @case '$?' in \
409420 *config.status*) \
699710 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
700711 uninstall-libva_eglincludeHEADERS
701712
713 .PRECIOUS: Makefile
714
702715
703716 # Tell versions [3.59,3.63) of GNU make to not export all variables.
704717 # Otherwise a system limit (for SysV at least) may be exceeded.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3737
3838
3939 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
4151 am__make_running_with_option = \
4252 case $${target_option-} in \
4353 ?) ;; \
101111 build_triplet = @build@
102112 host_triplet = @host@
103113 subdir = va/glx
104 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
105 $(top_srcdir)/depcomp $(libva_glxinclude_HEADERS) \
106 $(noinst_HEADERS)
107114 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108115 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
109116 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
111118 $(top_srcdir)/configure.ac
112119 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
113120 $(ACLOCAL_M4)
121 DIST_COMMON = $(srcdir)/Makefile.am $(libva_glxinclude_HEADERS) \
122 $(noinst_HEADERS) $(am__DIST_COMMON)
114123 mkinstalldirs = $(install_sh) -d
115124 CONFIG_HEADER = $(top_builddir)/config.h
116125 CONFIG_CLEAN_FILES =
213222 done | $(am__uniquify_input)`
214223 ETAGS = etags
215224 CTAGS = ctags
225 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
216226 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
217227 ACLOCAL = @ACLOCAL@
218228 AMTAR = @AMTAR@
272282 LIPO = @LIPO@
273283 LN_S = @LN_S@
274284 LTLIBOBJS = @LTLIBOBJS@
285 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
275286 MAKEINFO = @MAKEINFO@
276287 MANIFEST_TOOL = @MANIFEST_TOOL@
277288 MKDIR_P = @MKDIR_P@
359370 prefix = @prefix@
360371 program_transform_name = @program_transform_name@
361372 psdir = @psdir@
373 runstatedir = @runstatedir@
362374 sbindir = @sbindir@
363375 sharedstatedir = @sharedstatedir@
364376 srcdir = @srcdir@
409421 exit 1;; \
410422 esac; \
411423 done; \
412 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/glx/Makefile'; \
424 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/glx/Makefile'; \
413425 $(am__cd) $(top_srcdir) && \
414 $(AUTOMAKE) --foreign va/glx/Makefile
415 .PRECIOUS: Makefile
426 $(AUTOMAKE) --gnu va/glx/Makefile
416427 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
417428 @case '$?' in \
418429 *config.status*) \
709720 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
710721 uninstall-libva_glxincludeHEADERS
711722
723 .PRECIOUS: Makefile
724
712725
713726 # Tell versions [3.59,3.63) of GNU make to not export all variables.
714727 # Otherwise a system limit (for SysV at least) may be exceeded.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3737
3838
3939 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
4151 am__make_running_with_option = \
4252 case $${target_option-} in \
4353 ?) ;; \
101111 build_triplet = @build@
102112 host_triplet = @host@
103113 subdir = va/wayland
104 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
105 $(top_srcdir)/depcomp $(libva_waylandinclude_HEADERS) \
106 $(noinst_HEADERS)
107114 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108115 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
109116 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
111118 $(top_srcdir)/configure.ac
112119 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
113120 $(ACLOCAL_M4)
121 DIST_COMMON = $(srcdir)/Makefile.am $(libva_waylandinclude_HEADERS) \
122 $(noinst_HEADERS) $(am__DIST_COMMON)
114123 mkinstalldirs = $(install_sh) -d
115124 CONFIG_HEADER = $(top_builddir)/config.h
116125 CONFIG_CLEAN_FILES =
214223 done | $(am__uniquify_input)`
215224 ETAGS = etags
216225 CTAGS = ctags
226 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
217227 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
218228 ACLOCAL = @ACLOCAL@
219229 AMTAR = @AMTAR@
273283 LIPO = @LIPO@
274284 LN_S = @LN_S@
275285 LTLIBOBJS = @LTLIBOBJS@
286 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
276287 MAKEINFO = @MAKEINFO@
277288 MANIFEST_TOOL = @MANIFEST_TOOL@
278289 MKDIR_P = @MKDIR_P@
360371 prefix = @prefix@
361372 program_transform_name = @program_transform_name@
362373 psdir = @psdir@
374 runstatedir = @runstatedir@
363375 sbindir = @sbindir@
364376 sharedstatedir = @sharedstatedir@
365377 srcdir = @srcdir@
426438 exit 1;; \
427439 esac; \
428440 done; \
429 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/wayland/Makefile'; \
441 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/wayland/Makefile'; \
430442 $(am__cd) $(top_srcdir) && \
431 $(AUTOMAKE) --foreign va/wayland/Makefile
432 .PRECIOUS: Makefile
443 $(AUTOMAKE) --gnu va/wayland/Makefile
433444 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
434445 @case '$?' in \
435446 *config.status*) \
740751 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
741752 uninstall-am uninstall-libva_waylandincludeHEADERS
742753
754 .PRECIOUS: Makefile
755
743756
744757 # Wayland protocol
745758 va_wayland_drm.c: $(protocol_source_h)
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
3737
3838
3939 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
4151 am__make_running_with_option = \
4252 case $${target_option-} in \
4353 ?) ;; \
101111 build_triplet = @build@
102112 host_triplet = @host@
103113 subdir = va/x11
104 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
105 $(top_srcdir)/depcomp $(libva_x11include_HEADERS) \
106 $(noinst_HEADERS)
107114 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108115 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
109116 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
111118 $(top_srcdir)/configure.ac
112119 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
113120 $(ACLOCAL_M4)
121 DIST_COMMON = $(srcdir)/Makefile.am $(libva_x11include_HEADERS) \
122 $(noinst_HEADERS) $(am__DIST_COMMON)
114123 mkinstalldirs = $(install_sh) -d
115124 CONFIG_HEADER = $(top_builddir)/config.h
116125 CONFIG_CLEAN_FILES =
214223 done | $(am__uniquify_input)`
215224 ETAGS = etags
216225 CTAGS = ctags
226 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
217227 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
218228 ACLOCAL = @ACLOCAL@
219229 AMTAR = @AMTAR@
273283 LIPO = @LIPO@
274284 LN_S = @LN_S@
275285 LTLIBOBJS = @LTLIBOBJS@
286 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
276287 MAKEINFO = @MAKEINFO@
277288 MANIFEST_TOOL = @MANIFEST_TOOL@
278289 MKDIR_P = @MKDIR_P@
360371 prefix = @prefix@
361372 program_transform_name = @program_transform_name@
362373 psdir = @psdir@
374 runstatedir = @runstatedir@
363375 sbindir = @sbindir@
364376 sharedstatedir = @sharedstatedir@
365377 srcdir = @srcdir@
417429 exit 1;; \
418430 esac; \
419431 done; \
420 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign va/x11/Makefile'; \
432 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu va/x11/Makefile'; \
421433 $(am__cd) $(top_srcdir) && \
422 $(AUTOMAKE) --foreign va/x11/Makefile
423 .PRECIOUS: Makefile
434 $(AUTOMAKE) --gnu va/x11/Makefile
424435 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
425436 @case '$?' in \
426437 *config.status*) \
721732 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
722733 uninstall-libva_x11includeHEADERS
723734
735 .PRECIOUS: Makefile
736
724737
725738 # Tell versions [3.59,3.63) of GNU make to not export all variables.
726739 # Otherwise a system limit (for SysV at least) may be exceeded.