Codebase list burgerspace / 67e07eb
New upstream release. Debian Janitor 2 years ago
28 changed file(s) with 8364 addition(s) and 5502 deletion(s). Raw diff Collapse all Expand all
0 # $Id: Makefile.am,v 1.16 2019/11/12 02:22:31 sarrazip Exp $
0 # $Id: Makefile.am,v 1.17 2021/06/13 02:43:45 sarrazip Exp $
11
22 SUBDIRS = src
33
4 man_MANS = doc/burgerspace.6 doc/burgerspace-server.6
4 man_MANS = doc/burgerspace.6
5 if BUILD_NETWORK
6 man_MANS += doc/burgerspace-server.6
7 endif
58
6 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
79 doc_DATA = \
810 AUTHORS \
9 COPYING \
1011 NEWS \
1112 README \
1213 THANKS
1617 $(RPMBUILD) -ta $(distdir).tar.gz
1718
1819 EXTRA_DIST = \
20 COPYING \
1921 bootstrap \
2022 autogen.sh \
2123 $(PACKAGE).spec \
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 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,
1313
1414 @SET_MAKE@
1515
16 # $Id: Makefile.am,v 1.16 2019/11/12 02:22:31 sarrazip Exp $
16 # $Id: Makefile.am,v 1.17 2021/06/13 02:43:45 sarrazip Exp $
1717
1818 VPATH = @srcdir@
1919 am__is_gnu_make = { \
8989 POST_UNINSTALL = :
9090 build_triplet = @build@
9191 host_triplet = @host@
92 @BUILD_NETWORK_TRUE@am__append_1 = doc/burgerspace-server.6
9293 subdir = .
9394 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
9495 am__aclocal_m4_deps = $(top_srcdir)/macros/ac_compile_warnings.m4 \
174175 $(RECURSIVE_CLEAN_TARGETS) \
175176 $(am__extra_recursive_targets)
176177 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
177 cscope distdir dist dist-all distcheck
178 cscope distdir distdir-am dist dist-all distcheck
178179 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
179180 # Read a list of newline-separated strings from the standard input,
180181 # and print each of them once, without duplicates. Input order is
289290 LIPO = @LIPO@
290291 LN_S = @LN_S@
291292 LTLIBOBJS = @LTLIBOBJS@
293 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
292294 MAKEINFO = @MAKEINFO@
293295 MANIFEST_TOOL = @MANIFEST_TOOL@
294296 MANUAL_DATE_EN = @MANUAL_DATE_EN@
345347 builddir = @builddir@
346348 datadir = @datadir@
347349 datarootdir = @datarootdir@
348 docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
350 docdir = @docdir@
349351 dvidir = @dvidir@
350352 exec_prefix = @exec_prefix@
351353 host = @host@
368370 prefix = @prefix@
369371 program_transform_name = @program_transform_name@
370372 psdir = @psdir@
373 runstatedir = @runstatedir@
371374 sbindir = @sbindir@
372375 sharedstatedir = @sharedstatedir@
373376 srcdir = @srcdir@
377380 top_builddir = @top_builddir@
378381 top_srcdir = @top_srcdir@
379382 SUBDIRS = src
380 man_MANS = doc/burgerspace.6 doc/burgerspace-server.6
383 man_MANS = doc/burgerspace.6 $(am__append_1)
381384 doc_DATA = \
382385 AUTHORS \
383 COPYING \
384386 NEWS \
385387 README \
386388 THANKS
387389
388390 RPMBUILD = rpmbuild
389391 EXTRA_DIST = \
392 COPYING \
390393 bootstrap \
391394 autogen.sh \
392395 $(PACKAGE).spec \
434437 echo ' $(SHELL) ./config.status'; \
435438 $(SHELL) ./config.status;; \
436439 *) \
437 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
438 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
440 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
441 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
439442 esac;
440443
441444 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
632635 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
633636 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
634637
635 distdir: $(DISTFILES)
638 distdir: $(BUILT_SOURCES)
639 $(MAKE) $(AM_MAKEFLAGS) distdir-am
640
641 distdir-am: $(DISTFILES)
636642 $(am__remove_distdir)
637643 test -d "$(distdir)" || mkdir "$(distdir)"
638644 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
697703 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
698704 || chmod -R a+r "$(distdir)"
699705 dist-gzip: distdir
700 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
706 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
701707 $(am__post_remove_distdir)
702708
703709 dist-bzip2: distdir
723729 @echo WARNING: "Support for shar distribution archives is" \
724730 "deprecated." >&2
725731 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
726 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
732 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
727733 $(am__post_remove_distdir)
728734
729735 dist-zip: distdir
741747 distcheck: dist
742748 case '$(DIST_ARCHIVES)' in \
743749 *.tar.gz*) \
744 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
750 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
745751 *.tar.bz2*) \
746752 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
747753 *.tar.lz*) \
751757 *.tar.Z*) \
752758 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
753759 *.shar.gz*) \
754 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
760 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
755761 *.zip*) \
756762 unzip $(distdir).zip ;;\
757763 esac
0 2021-06-18: Version 1.9.4 released
1
2 New option --no-active-event allows the user to avoid the
3 automatic pausing that happens when the window loses the focus
4 or is iconified.
5
6 The sound files are now installed under /usr/share/burgerspace/sounds
7 instead of /usr/share/sounds/burgerspace (assuming /usr as the
8 installation prefix).
9
10 The burgerspace-server manual page is now only installed if
11 the network version is built.
12
13 The COPYING license file is not installed anymore.
14
15 Resolved g++ 9.3.0 compilation warnings.
16
017 2019-11-11: Version 1.9.3 released
118
219 Fixed a crash that happened when the last life is lost at
00 BurgerSpace - A hamburger-smashing video game.
11
2 Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
3 This program is free software distributed under the GNU GPL.
2 Copyright (C) 2001-2021 Pierre Sarrazin <http://sarrazip.com/>
3 This program is free software distributed under the GNU GPL v2 or later.
44 See the file COPYING.
5
6 BurgerSpace Home Page: http://sarrazip.com/dev/burgerspace.html
7
58
69 INSTALLATION
710
811 The program requires my `flatzebra' library and the Simple
9 DirectMedia Layer multimedia library, version 1.2.0 or later
10 (see http://www.libsdl.org/). Links to both are offered on the
11 BurgerSpace Home Page at
12
13 http://sarrazip.com/dev/burgerspace.html
12 DirectMedia Layer multimedia library, version 1.2.4 or later
13 (see http://www.libsdl.org/).
14
15 It also requires SDL_image 1.2.2 or later, and SDL_Mixer 1.2.4 or later.
1416
1517 See INSTALL for generic installation instructions.
16
17 This package installs a manual page: burgerspace(6).
18
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 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-2014 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-2018 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.15'
310 [am__api_version='1.16'
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.15], [],
313 m4_if([$1], [1.16.1], [],
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.15])dnl
329 [AM_AUTOMAKE_VERSION([1.16.1])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-2014 Free Software Foundation, Inc.
336 # Copyright (C) 2001-2018 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,
269385
270386 # AM_CONDITIONAL -*- Autoconf -*-
271387
272 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
388 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
273389 #
274390 # This file is free software; the Free Software Foundation
275391 # gives unlimited permission to copy and/or distribute it,
300416 Usually this means the macro was only invoked conditionally.]])
301417 fi])])
302418
303 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
419 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
304420 #
305421 # This file is free software; the Free Software Foundation
306422 # gives unlimited permission to copy and/or distribute it,
491607
492608 # Generate code to set up dependency tracking. -*- Autoconf -*-
493609
494 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
495 #
496 # This file is free software; the Free Software Foundation
497 # gives unlimited permission to copy and/or distribute it,
498 # with or without modifications, as long as this notice is preserved.
499
610 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
611 #
612 # This file is free software; the Free Software Foundation
613 # gives unlimited permission to copy and/or distribute it,
614 # with or without modifications, as long as this notice is preserved.
500615
501616 # _AM_OUTPUT_DEPENDENCY_COMMANDS
502617 # ------------------------------
505620 # Older Autoconf quotes --file arguments for eval, but not when files
506621 # are listed without --file. Let's play safe and only enable the eval
507622 # if we detect the quoting.
508 case $CONFIG_FILES in
509 *\'*) eval set x "$CONFIG_FILES" ;;
510 *) set x $CONFIG_FILES ;;
511 esac
623 # TODO: see whether this extra hack can be removed once we start
624 # requiring Autoconf 2.70 or later.
625 AS_CASE([$CONFIG_FILES],
626 [*\'*], [eval set x "$CONFIG_FILES"],
627 [*], [set x $CONFIG_FILES])
512628 shift
513 for mf
629 # Used to flag and report bootstrapping failures.
630 am_rc=0
631 for am_mf
514632 do
515633 # Strip MF so we end up with the name of the file.
516 mf=`echo "$mf" | sed -e 's/:.*$//'`
517 # Check whether this is an Automake generated Makefile or not.
518 # We used to match only the files named 'Makefile.in', but
519 # some people rename them; so instead we look at the file content.
520 # Grep'ing the first line is not enough: some people post-process
521 # each Makefile.in and add a new line on top of each file to say so.
522 # Grep'ing the whole file is not good either: AIX grep has a line
634 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
635 # Check whether this is an Automake generated Makefile which includes
636 # dependency-tracking related rules and includes.
637 # Grep'ing the whole file directly is not great: AIX grep has a line
523638 # limit of 2048, but all sed's we know have understand at least 4000.
524 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
525 dirpart=`AS_DIRNAME("$mf")`
526 else
527 continue
528 fi
529 # Extract the definition of DEPDIR, am__include, and am__quote
530 # from the Makefile without running 'make'.
531 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
532 test -z "$DEPDIR" && continue
533 am__include=`sed -n 's/^am__include = //p' < "$mf"`
534 test -z "$am__include" && continue
535 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
536 # Find all dependency output files, they are included files with
537 # $(DEPDIR) in their names. We invoke sed twice because it is the
538 # simplest approach to changing $(DEPDIR) to its actual value in the
539 # expansion.
540 for file in `sed -n "
541 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
542 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
543 # Make sure the directory exists.
544 test -f "$dirpart/$file" && continue
545 fdir=`AS_DIRNAME(["$file"])`
546 AS_MKDIR_P([$dirpart/$fdir])
547 # echo "creating $dirpart/$file"
548 echo '# dummy' > "$dirpart/$file"
549 done
639 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
640 || continue
641 am_dirpart=`AS_DIRNAME(["$am_mf"])`
642 am_filepart=`AS_BASENAME(["$am_mf"])`
643 AM_RUN_LOG([cd "$am_dirpart" \
644 && sed -e '/# am--include-marker/d' "$am_filepart" \
645 | $MAKE -f - am--depfiles]) || am_rc=$?
550646 done
647 if test $am_rc -ne 0; then
648 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
649 for automatic dependency tracking. Try re-running configure with the
650 '--disable-dependency-tracking' option to at least be able to build
651 the package (albeit without support for automatic dependency tracking).])
652 fi
653 AS_UNSET([am_dirpart])
654 AS_UNSET([am_filepart])
655 AS_UNSET([am_mf])
656 AS_UNSET([am_rc])
657 rm -f conftest-deps.mk
551658 }
552659 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
553660
556663 # -----------------------------
557664 # This macro should only be invoked once -- use via AC_REQUIRE.
558665 #
559 # This code is only required when automatic dependency tracking
560 # is enabled. FIXME. This creates each '.P' file that we will
561 # need in order to bootstrap the dependency handling code.
666 # This code is only required when automatic dependency tracking is enabled.
667 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
668 # order to bootstrap the dependency handling code.
562669 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
563670 [AC_CONFIG_COMMANDS([depfiles],
564671 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
565 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
566 ])
672 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
567673
568674 # Do all the work for Automake. -*- Autoconf -*-
569675
570 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
676 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
571677 #
572678 # This file is free software; the Free Software Foundation
573679 # gives unlimited permission to copy and/or distribute it,
654760 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
655761 # For better backward compatibility. To be removed once Automake 1.9.x
656762 # dies out for good. For more background, see:
657 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
658 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
763 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
764 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
659765 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
660766 # We need awk for the "check" target (and possibly the TAP driver). The
661767 # system "awk" is bad on some platforms.
722828 Aborting the configuration process, to ensure you take notice of the issue.
723829
724830 You can download and install GNU coreutils to get an 'rm' implementation
725 that behaves properly: <http://www.gnu.org/software/coreutils/>.
831 that behaves properly: <https://www.gnu.org/software/coreutils/>.
726832
727833 If you want to complete the configuration process using your problematic
728834 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
764870 done
765871 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
766872
767 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
873 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
768874 #
769875 # This file is free software; the Free Software Foundation
770876 # gives unlimited permission to copy and/or distribute it,
785891 fi
786892 AC_SUBST([install_sh])])
787893
788 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
894 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
789895 #
790896 # This file is free software; the Free Software Foundation
791897 # gives unlimited permission to copy and/or distribute it,
806912
807913 # Check to see how 'make' treats includes. -*- Autoconf -*-
808914
809 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
915 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
810916 #
811917 # This file is free software; the Free Software Foundation
812918 # gives unlimited permission to copy and/or distribute it,
814920
815921 # AM_MAKE_INCLUDE()
816922 # -----------------
817 # Check to see how make treats includes.
923 # Check whether make has an 'include' directive that can support all
924 # the idioms we need for our automatic dependency tracking code.
818925 AC_DEFUN([AM_MAKE_INCLUDE],
819 [am_make=${MAKE-make}
820 cat > confinc << 'END'
926 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
927 cat > confinc.mk << 'END'
821928 am__doit:
822 @echo this is the am__doit target
929 @echo this is the am__doit target >confinc.out
823930 .PHONY: am__doit
824931 END
825 # If we don't find an include directive, just comment out the code.
826 AC_MSG_CHECKING([for style of include used by $am_make])
827932 am__include="#"
828933 am__quote=
829 _am_result=none
830 # First try GNU make style include.
831 echo "include confinc" > confmf
832 # Ignore all kinds of additional output from 'make'.
833 case `$am_make -s -f confmf 2> /dev/null` in #(
834 *the\ am__doit\ target*)
835 am__include=include
836 am__quote=
837 _am_result=GNU
838 ;;
839 esac
840 # Now try BSD make style include.
841 if test "$am__include" = "#"; then
842 echo '.include "confinc"' > confmf
843 case `$am_make -s -f confmf 2> /dev/null` in #(
844 *the\ am__doit\ target*)
845 am__include=.include
846 am__quote="\""
847 _am_result=BSD
848 ;;
849 esac
850 fi
851 AC_SUBST([am__include])
852 AC_SUBST([am__quote])
853 AC_MSG_RESULT([$_am_result])
854 rm -f confinc confmf
855 ])
934 # BSD make does it like this.
935 echo '.include "confinc.mk" # ignored' > confmf.BSD
936 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
937 echo 'include confinc.mk # ignored' > confmf.GNU
938 _am_result=no
939 for s in GNU BSD; do
940 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
941 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
942 ['0:this is the am__doit target'],
943 [AS_CASE([$s],
944 [BSD], [am__include='.include' am__quote='"'],
945 [am__include='include' am__quote=''])])
946 if test "$am__include" != "#"; then
947 _am_result="yes ($s style)"
948 break
949 fi
950 done
951 rm -f confinc.* confmf.*
952 AC_MSG_RESULT([${_am_result}])
953 AC_SUBST([am__include])])
954 AC_SUBST([am__quote])])
856955
857956 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
858957
859 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
958 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
860959 #
861960 # This file is free software; the Free Software Foundation
862961 # gives unlimited permission to copy and/or distribute it,
895994
896995 # Helper functions for option handling. -*- Autoconf -*-
897996
898 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
997 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
899998 #
900999 # This file is free software; the Free Software Foundation
9011000 # gives unlimited permission to copy and/or distribute it,
9241023 AC_DEFUN([_AM_IF_OPTION],
9251024 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9261025
927 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
1026 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
9281027 #
9291028 # This file is free software; the Free Software Foundation
9301029 # gives unlimited permission to copy and/or distribute it,
9711070 # For backward compatibility.
9721071 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9731072
974 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1073 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
9751074 #
9761075 # This file is free software; the Free Software Foundation
9771076 # gives unlimited permission to copy and/or distribute it,
9901089
9911090 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9921091
993 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1092 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
9941093 #
9951094 # This file is free software; the Free Software Foundation
9961095 # gives unlimited permission to copy and/or distribute it,
10711170 rm -f conftest.file
10721171 ])
10731172
1074 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
1173 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
10751174 #
10761175 # This file is free software; the Free Software Foundation
10771176 # gives unlimited permission to copy and/or distribute it,
11311230 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
11321231 ])
11331232
1134 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1233 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
11351234 #
11361235 # This file is free software; the Free Software Foundation
11371236 # gives unlimited permission to copy and/or distribute it,
11591258 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11601259 AC_SUBST([INSTALL_STRIP_PROGRAM])])
11611260
1162 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
1261 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
11631262 #
11641263 # This file is free software; the Free Software Foundation
11651264 # gives unlimited permission to copy and/or distribute it,
11781277
11791278 # Check how to create a tarball. -*- Autoconf -*-
11801279
1181 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1280 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
11821281 #
11831282 # This file is free software; the Free Software Foundation
11841283 # gives unlimited permission to copy and/or distribute it,
00 Name: burgerspace
1 Version: 1.9.3
1 Version: 1.9.4
22 Release: 1%{?dist}
33 Summary: A hamburger-smashing video game
44 Summary(fr): Un jeu de hamburgers qu'on écrase
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 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
1616 # GNU General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
254254 echo "compile $scriptversion"
255255 exit $?
256256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
258259 func_cl_wrapper "$@" # Doesn't return...
259260 ;;
260261 esac
338339 # Local Variables:
339340 # mode: shell-script
340341 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # eval: (add-hook 'before-save-hook 'time-stamp)
342343 # time-stamp-start: "scriptversion="
343344 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-time-zone: "UTC0"
345346 # time-stamp-end: "; # UTC"
346347 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-11-04'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-24'
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
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
2626 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
3030 #
3131 # Please send patches to <config-patches@gnu.org>.
3232
3838
3939 Output the configuration name of the system \`$me' is run on.
4040
41 Operation modes:
41 Options:
4242 -h, --help print this help, then exit
4343 -t, --time-stamp print date of last modification, then exit
4444 -v, --version print version number, then exit
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2014 Free Software Foundation, Inc.
52 Copyright 1992-2018 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."
106106 dummy=$tmp/dummy ;
107107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > $dummy.c ;
109 ,,) echo "int x;" > "$dummy.c" ;
110110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112112 CC_FOR_BUILD="$c"; break ;
113113 fi ;
114114 done ;
131131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133133
134 case "${UNAME_SYSTEM}" in
134 case "$UNAME_SYSTEM" in
135135 Linux|GNU|GNU/*)
136136 # If the system lacks a compiler, then just pick glibc.
137137 # We could probably try harder.
138138 LIBC=gnu
139139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
140 eval "$set_cc_for_build"
141 cat <<-EOF > "$dummy.c"
142142 #include <features.h>
143143 #if defined(__UCLIBC__)
144144 LIBC=uclibc
148148 LIBC=gnu
149149 #endif
150150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
158 fi
152159 ;;
153160 esac
154161
155162 # Note: order is significant - the case branches are not exclusive.
156163
157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
158165 *:NetBSD:*:*)
159166 # NetBSD (nbsd) targets should (where applicable) match one or
160167 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
167174 # Note: NetBSD doesn't particularly care about the vendor
168175 # portion of the name. We always set it to "unknown".
169176 sysctl="sysctl -n hw.machine_arch"
170 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
171 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
172 case "${UNAME_MACHINE_ARCH}" in
177 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
180 echo unknown)`
181 case "$UNAME_MACHINE_ARCH" in
173182 armeb) machine=armeb-unknown ;;
174183 arm*) machine=arm-unknown ;;
175184 sh3el) machine=shl-unknown ;;
176185 sh3eb) machine=sh-unknown ;;
177186 sh5el) machine=sh5le-unknown ;;
178 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
187 earmv*)
188 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
191 ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
179193 esac
180194 # The Operating System including object format, if it has switched
181 # to ELF recently, or will in the future.
182 case "${UNAME_MACHINE_ARCH}" in
195 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
197 earm*)
198 os=netbsdelf
199 ;;
183200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
184 eval $set_cc_for_build
201 eval "$set_cc_for_build"
185202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
186203 | grep -q __ELF__
187204 then
196213 os=netbsd
197214 ;;
198215 esac
216 # Determine ABI tags.
217 case "$UNAME_MACHINE_ARCH" in
218 earm*)
219 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
220 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
221 ;;
222 esac
199223 # The OS release
200224 # Debian GNU/NetBSD machines have a different userland, and
201225 # thus, need a distinct triplet. However, they do not need
202226 # kernel version information, so it can be replaced with a
203227 # suitable tag, in the style of linux-gnu.
204 case "${UNAME_VERSION}" in
228 case "$UNAME_VERSION" in
205229 Debian*)
206230 release='-gnu'
207231 ;;
208232 *)
209 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
233 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
210234 ;;
211235 esac
212236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
213237 # contains redundant information, the shorter form:
214238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215 echo "${machine}-${os}${release}"
239 echo "$machine-${os}${release}${abi}"
216240 exit ;;
217241 *:Bitrig:*:*)
218242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
220244 exit ;;
221245 *:OpenBSD:*:*)
222246 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
223 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
249 *:LibertyBSD:*:*)
250 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
253 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
224255 exit ;;
225256 *:ekkoBSD:*:*)
226 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
227258 exit ;;
228259 *:SolidBSD:*:*)
229 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
230261 exit ;;
231262 macppc:MirBSD:*:*)
232 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
233264 exit ;;
234265 *:MirBSD:*:*)
235 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
236 exit ;;
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
267 exit ;;
268 *:Sortix:*:*)
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
271 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
274 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
237277 alpha:OSF1:*:*)
238278 case $UNAME_RELEASE in
239279 *4.0)
250290 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
251291 case "$ALPHA_CPU_TYPE" in
252292 "EV4 (21064)")
253 UNAME_MACHINE="alpha" ;;
293 UNAME_MACHINE=alpha ;;
254294 "EV4.5 (21064)")
255 UNAME_MACHINE="alpha" ;;
295 UNAME_MACHINE=alpha ;;
256296 "LCA4 (21066/21068)")
257 UNAME_MACHINE="alpha" ;;
297 UNAME_MACHINE=alpha ;;
258298 "EV5 (21164)")
259 UNAME_MACHINE="alphaev5" ;;
299 UNAME_MACHINE=alphaev5 ;;
260300 "EV5.6 (21164A)")
261 UNAME_MACHINE="alphaev56" ;;
301 UNAME_MACHINE=alphaev56 ;;
262302 "EV5.6 (21164PC)")
263 UNAME_MACHINE="alphapca56" ;;
303 UNAME_MACHINE=alphapca56 ;;
264304 "EV5.7 (21164PC)")
265 UNAME_MACHINE="alphapca57" ;;
305 UNAME_MACHINE=alphapca57 ;;
266306 "EV6 (21264)")
267 UNAME_MACHINE="alphaev6" ;;
307 UNAME_MACHINE=alphaev6 ;;
268308 "EV6.7 (21264A)")
269 UNAME_MACHINE="alphaev67" ;;
309 UNAME_MACHINE=alphaev67 ;;
270310 "EV6.8CB (21264C)")
271 UNAME_MACHINE="alphaev68" ;;
311 UNAME_MACHINE=alphaev68 ;;
272312 "EV6.8AL (21264B)")
273 UNAME_MACHINE="alphaev68" ;;
313 UNAME_MACHINE=alphaev68 ;;
274314 "EV6.8CX (21264D)")
275 UNAME_MACHINE="alphaev68" ;;
315 UNAME_MACHINE=alphaev68 ;;
276316 "EV6.9A (21264/EV69A)")
277 UNAME_MACHINE="alphaev69" ;;
317 UNAME_MACHINE=alphaev69 ;;
278318 "EV7 (21364)")
279 UNAME_MACHINE="alphaev7" ;;
319 UNAME_MACHINE=alphaev7 ;;
280320 "EV7.9 (21364A)")
281 UNAME_MACHINE="alphaev79" ;;
321 UNAME_MACHINE=alphaev79 ;;
282322 esac
283323 # A Pn.n version is a patched version.
284324 # A Vn.n version is a released version.
285325 # A Tn.n version is a released field test version.
286326 # A Xn.n version is an unreleased experimental baselevel.
287327 # 1.2 uses "1.2" for uname -r.
288 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
289329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
290330 exitcode=$?
291331 trap '' 0
292332 exit $exitcode ;;
293 Alpha\ *:Windows_NT*:*)
294 # How do we know it's Interix rather than the generic POSIX subsystem?
295 # Should we change UNAME_MACHINE based on the output of uname instead
296 # of the specific Alpha model?
297 echo alpha-pc-interix
298 exit ;;
299 21064:Windows_NT:50:3)
300 echo alpha-dec-winnt3.5
301 exit ;;
302333 Amiga*:UNIX_System_V:4.0:*)
303334 echo m68k-unknown-sysv4
304335 exit ;;
305336 *:[Aa]miga[Oo][Ss]:*:*)
306 echo ${UNAME_MACHINE}-unknown-amigaos
337 echo "$UNAME_MACHINE"-unknown-amigaos
307338 exit ;;
308339 *:[Mm]orph[Oo][Ss]:*:*)
309 echo ${UNAME_MACHINE}-unknown-morphos
340 echo "$UNAME_MACHINE"-unknown-morphos
310341 exit ;;
311342 *:OS/390:*:*)
312343 echo i370-ibm-openedition
318349 echo powerpc-ibm-os400
319350 exit ;;
320351 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
321 echo arm-acorn-riscix${UNAME_RELEASE}
352 echo arm-acorn-riscix"$UNAME_RELEASE"
322353 exit ;;
323354 arm*:riscos:*:*|arm*:RISCOS:*:*)
324355 echo arm-unknown-riscos
345376 sparc) echo sparc-icl-nx7; exit ;;
346377 esac ;;
347378 s390x:SunOS:*:*)
348 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
349380 exit ;;
350381 sun4H:SunOS:5.*:*)
351 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
352383 exit ;;
353384 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
354 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
355386 exit ;;
356387 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
357 echo i386-pc-auroraux${UNAME_RELEASE}
388 echo i386-pc-auroraux"$UNAME_RELEASE"
358389 exit ;;
359390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
360 eval $set_cc_for_build
361 SUN_ARCH="i386"
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
362393 # If there is a compiler, see if it is configured for 64-bit objects.
363394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
364395 # This test works for both compilers.
365 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
366397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
367 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
368399 grep IS_64BIT_ARCH >/dev/null
369400 then
370 SUN_ARCH="x86_64"
401 SUN_ARCH=x86_64
371402 fi
372403 fi
373 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
374405 exit ;;
375406 sun4*:SunOS:6*:*)
376407 # According to config.sub, this is the proper way to canonicalize
377408 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
378409 # it's likely to be more like Solaris than SunOS4.
379 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
380411 exit ;;
381412 sun4*:SunOS:*:*)
382413 case "`/usr/bin/arch -k`" in
385416 ;;
386417 esac
387418 # Japanese Language versions have a version number like `4.1.3-JL'.
388 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
389420 exit ;;
390421 sun3*:SunOS:*:*)
391 echo m68k-sun-sunos${UNAME_RELEASE}
422 echo m68k-sun-sunos"$UNAME_RELEASE"
392423 exit ;;
393424 sun*:*:4.2BSD:*)
394425 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
395 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
426 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
396427 case "`/bin/arch`" in
397428 sun3)
398 echo m68k-sun-sunos${UNAME_RELEASE}
429 echo m68k-sun-sunos"$UNAME_RELEASE"
399430 ;;
400431 sun4)
401 echo sparc-sun-sunos${UNAME_RELEASE}
432 echo sparc-sun-sunos"$UNAME_RELEASE"
402433 ;;
403434 esac
404435 exit ;;
405436 aushp:SunOS:*:*)
406 echo sparc-auspex-sunos${UNAME_RELEASE}
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
407438 exit ;;
408439 # The situation for MiNT is a little confusing. The machine name
409440 # can be virtually everything (everything which is not
414445 # MiNT. But MiNT is downward compatible to TOS, so this should
415446 # be no problem.
416447 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
417 echo m68k-atari-mint${UNAME_RELEASE}
448 echo m68k-atari-mint"$UNAME_RELEASE"
418449 exit ;;
419450 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
420 echo m68k-atari-mint${UNAME_RELEASE}
451 echo m68k-atari-mint"$UNAME_RELEASE"
421452 exit ;;
422453 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
423 echo m68k-atari-mint${UNAME_RELEASE}
454 echo m68k-atari-mint"$UNAME_RELEASE"
424455 exit ;;
425456 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
426 echo m68k-milan-mint${UNAME_RELEASE}
457 echo m68k-milan-mint"$UNAME_RELEASE"
427458 exit ;;
428459 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
429 echo m68k-hades-mint${UNAME_RELEASE}
460 echo m68k-hades-mint"$UNAME_RELEASE"
430461 exit ;;
431462 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
432 echo m68k-unknown-mint${UNAME_RELEASE}
463 echo m68k-unknown-mint"$UNAME_RELEASE"
433464 exit ;;
434465 m68k:machten:*:*)
435 echo m68k-apple-machten${UNAME_RELEASE}
466 echo m68k-apple-machten"$UNAME_RELEASE"
436467 exit ;;
437468 powerpc:machten:*:*)
438 echo powerpc-apple-machten${UNAME_RELEASE}
469 echo powerpc-apple-machten"$UNAME_RELEASE"
439470 exit ;;
440471 RISC*:Mach:*:*)
441472 echo mips-dec-mach_bsd4.3
442473 exit ;;
443474 RISC*:ULTRIX:*:*)
444 echo mips-dec-ultrix${UNAME_RELEASE}
475 echo mips-dec-ultrix"$UNAME_RELEASE"
445476 exit ;;
446477 VAX*:ULTRIX*:*:*)
447 echo vax-dec-ultrix${UNAME_RELEASE}
478 echo vax-dec-ultrix"$UNAME_RELEASE"
448479 exit ;;
449480 2020:CLIX:*:* | 2430:CLIX:*:*)
450 echo clipper-intergraph-clix${UNAME_RELEASE}
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
451482 exit ;;
452483 mips:*:*:UMIPS | mips:*:*:RISCos)
453 eval $set_cc_for_build
454 sed 's/^ //' << EOF >$dummy.c
484 eval "$set_cc_for_build"
485 sed 's/^ //' << EOF > "$dummy.c"
455486 #ifdef __cplusplus
456487 #include <stdio.h> /* for printf() prototype */
457488 int main (int argc, char *argv[]) {
460491 #endif
461492 #if defined (host_mips) && defined (MIPSEB)
462493 #if defined (SYSTYPE_SYSV)
463 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
494 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
464495 #endif
465496 #if defined (SYSTYPE_SVR4)
466 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
497 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
467498 #endif
468499 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
469 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
500 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
470501 #endif
471502 #endif
472503 exit (-1);
473504 }
474505 EOF
475 $CC_FOR_BUILD -o $dummy $dummy.c &&
476 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
477 SYSTEM_NAME=`$dummy $dummyarg` &&
506 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
507 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
478509 { echo "$SYSTEM_NAME"; exit; }
479 echo mips-mips-riscos${UNAME_RELEASE}
510 echo mips-mips-riscos"$UNAME_RELEASE"
480511 exit ;;
481512 Motorola:PowerMAX_OS:*:*)
482513 echo powerpc-motorola-powermax
502533 AViiON:dgux:*:*)
503534 # DG/UX returns AViiON for all architectures
504535 UNAME_PROCESSOR=`/usr/bin/uname -p`
505 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
506537 then
507 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
508 [ ${TARGET_BINARY_INTERFACE}x = x ]
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
509540 then
510 echo m88k-dg-dgux${UNAME_RELEASE}
541 echo m88k-dg-dgux"$UNAME_RELEASE"
511542 else
512 echo m88k-dg-dguxbcs${UNAME_RELEASE}
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
513544 fi
514545 else
515 echo i586-dg-dgux${UNAME_RELEASE}
546 echo i586-dg-dgux"$UNAME_RELEASE"
516547 fi
517548 exit ;;
518549 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
529560 echo m68k-tektronix-bsd
530561 exit ;;
531562 *:IRIX*:*:*)
532 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
533564 exit ;;
534565 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
535566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
541572 if [ -x /usr/bin/oslevel ] ; then
542573 IBM_REV=`/usr/bin/oslevel`
543574 else
544 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
545 fi
546 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
547578 exit ;;
548579 *:AIX:2:3)
549580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
550 eval $set_cc_for_build
551 sed 's/^ //' << EOF >$dummy.c
581 eval "$set_cc_for_build"
582 sed 's/^ //' << EOF > "$dummy.c"
552583 #include <sys/systemcfg.h>
553584
554585 main()
559590 exit(0);
560591 }
561592 EOF
562 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
593 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
563594 then
564595 echo "$SYSTEM_NAME"
565596 else
573604 exit ;;
574605 *:AIX:*:[4567])
575606 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
576 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
607 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
577608 IBM_ARCH=rs6000
578609 else
579610 IBM_ARCH=powerpc
582613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
583614 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
584615 else
585 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
586 fi
587 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
588619 exit ;;
589620 *:AIX:*:*)
590621 echo rs6000-ibm-aix
591622 exit ;;
592 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
623 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
593624 echo romp-ibm-bsd4.4
594625 exit ;;
595626 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
596 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
597628 exit ;; # report: romp-ibm BSD 4.3
598629 *:BOSX:*:*)
599630 echo rs6000-bull-bosx
608639 echo m68k-hp-bsd4.4
609640 exit ;;
610641 9000/[34678]??:HP-UX:*:*)
611 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
612 case "${UNAME_MACHINE}" in
613 9000/31? ) HP_ARCH=m68000 ;;
614 9000/[34]?? ) HP_ARCH=m68k ;;
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
644 9000/31?) HP_ARCH=m68000 ;;
645 9000/[34]??) HP_ARCH=m68k ;;
615646 9000/[678][0-9][0-9])
616647 if [ -x /usr/bin/getconf ]; then
617648 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
618649 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
619 case "${sc_cpu_version}" in
620 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
621 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
650 case "$sc_cpu_version" in
651 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
622653 532) # CPU_PA_RISC2_0
623 case "${sc_kernel_bits}" in
624 32) HP_ARCH="hppa2.0n" ;;
625 64) HP_ARCH="hppa2.0w" ;;
626 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
654 case "$sc_kernel_bits" in
655 32) HP_ARCH=hppa2.0n ;;
656 64) HP_ARCH=hppa2.0w ;;
657 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
627658 esac ;;
628659 esac
629660 fi
630 if [ "${HP_ARCH}" = "" ]; then
631 eval $set_cc_for_build
632 sed 's/^ //' << EOF >$dummy.c
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
663 sed 's/^ //' << EOF > "$dummy.c"
633664
634665 #define _HPUX_SOURCE
635666 #include <stdlib.h>
662693 exit (0);
663694 }
664695 EOF
665 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
696 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
666697 test -z "$HP_ARCH" && HP_ARCH=hppa
667698 fi ;;
668699 esac
669 if [ ${HP_ARCH} = "hppa2.0w" ]
700 if [ "$HP_ARCH" = hppa2.0w ]
670701 then
671 eval $set_cc_for_build
702 eval "$set_cc_for_build"
672703
673704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
674705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
679710 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
680711 # => hppa64-hp-hpux11.23
681712
682 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
713 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
683714 grep -q __LP64__
684715 then
685 HP_ARCH="hppa2.0w"
716 HP_ARCH=hppa2.0w
686717 else
687 HP_ARCH="hppa64"
718 HP_ARCH=hppa64
688719 fi
689720 fi
690 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
691722 exit ;;
692723 ia64:HP-UX:*:*)
693 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
694 echo ia64-hp-hpux${HPUX_REV}
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
695726 exit ;;
696727 3050*:HI-UX:*:*)
697 eval $set_cc_for_build
698 sed 's/^ //' << EOF >$dummy.c
728 eval "$set_cc_for_build"
729 sed 's/^ //' << EOF > "$dummy.c"
699730 #include <unistd.h>
700731 int
701732 main ()
720751 exit (0);
721752 }
722753 EOF
723 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
754 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
724755 { echo "$SYSTEM_NAME"; exit; }
725756 echo unknown-hitachi-hiuxwe2
726757 exit ;;
727 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
758 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
728759 echo hppa1.1-hp-bsd
729760 exit ;;
730761 9000/8??:4.3bsd:*:*)
733764 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
734765 echo hppa1.0-hp-mpeix
735766 exit ;;
736 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
767 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
737768 echo hppa1.1-hp-osf
738769 exit ;;
739770 hp8??:OSF1:*:*)
741772 exit ;;
742773 i*86:OSF1:*:*)
743774 if [ -x /usr/sbin/sysversion ] ; then
744 echo ${UNAME_MACHINE}-unknown-osf1mk
775 echo "$UNAME_MACHINE"-unknown-osf1mk
745776 else
746 echo ${UNAME_MACHINE}-unknown-osf1
777 echo "$UNAME_MACHINE"-unknown-osf1
747778 fi
748779 exit ;;
749780 parisc*:Lites*:*:*)
768799 echo c4-convex-bsd
769800 exit ;;
770801 CRAY*Y-MP:*:*:*)
771 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
772803 exit ;;
773804 CRAY*[A-Z]90:*:*:*)
774 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
805 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
775806 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
776807 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
777808 -e 's/\.[^.]*$/.X/'
778809 exit ;;
779810 CRAY*TS:*:*:*)
780 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
781812 exit ;;
782813 CRAY*T3E:*:*:*)
783 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
784815 exit ;;
785816 CRAY*SV1:*:*:*)
786 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
787818 exit ;;
788819 *:UNICOS/mp:*:*)
789 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
790821 exit ;;
791822 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
792 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
793 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
794 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
823 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
795826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
796827 exit ;;
797828 5000:UNIX_System_V:4.*:*)
798 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
799 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
829 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
800831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
801832 exit ;;
802833 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
803 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
804835 exit ;;
805836 sparc*:BSD/OS:*:*)
806 echo sparc-unknown-bsdi${UNAME_RELEASE}
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
807838 exit ;;
808839 *:BSD/OS:*:*)
809 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
810841 exit ;;
811842 *:FreeBSD:*:*)
812843 UNAME_PROCESSOR=`/usr/bin/uname -p`
813 case ${UNAME_PROCESSOR} in
844 case "$UNAME_PROCESSOR" in
814845 amd64)
815 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
816 *)
817 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
846 UNAME_PROCESSOR=x86_64 ;;
847 i386)
848 UNAME_PROCESSOR=i586 ;;
818849 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
819851 exit ;;
820852 i*:CYGWIN*:*)
821 echo ${UNAME_MACHINE}-pc-cygwin
853 echo "$UNAME_MACHINE"-pc-cygwin
822854 exit ;;
823855 *:MINGW64*:*)
824 echo ${UNAME_MACHINE}-pc-mingw64
856 echo "$UNAME_MACHINE"-pc-mingw64
825857 exit ;;
826858 *:MINGW*:*)
827 echo ${UNAME_MACHINE}-pc-mingw32
859 echo "$UNAME_MACHINE"-pc-mingw32
828860 exit ;;
829861 *:MSYS*:*)
830 echo ${UNAME_MACHINE}-pc-msys
831 exit ;;
832 i*:windows32*:*)
833 # uname -m includes "-pc" on this system.
834 echo ${UNAME_MACHINE}-mingw32
862 echo "$UNAME_MACHINE"-pc-msys
835863 exit ;;
836864 i*:PW*:*)
837 echo ${UNAME_MACHINE}-pc-pw32
865 echo "$UNAME_MACHINE"-pc-pw32
838866 exit ;;
839867 *:Interix*:*)
840 case ${UNAME_MACHINE} in
868 case "$UNAME_MACHINE" in
841869 x86)
842 echo i586-pc-interix${UNAME_RELEASE}
870 echo i586-pc-interix"$UNAME_RELEASE"
843871 exit ;;
844872 authenticamd | genuineintel | EM64T)
845 echo x86_64-unknown-interix${UNAME_RELEASE}
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
846874 exit ;;
847875 IA64)
848 echo ia64-unknown-interix${UNAME_RELEASE}
876 echo ia64-unknown-interix"$UNAME_RELEASE"
849877 exit ;;
850878 esac ;;
851 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
852 echo i${UNAME_MACHINE}-pc-mks
853 exit ;;
854 8664:Windows_NT:*)
855 echo x86_64-pc-mks
856 exit ;;
857 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
858 # How do we know it's Interix rather than the generic POSIX subsystem?
859 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
860 # UNAME_MACHINE based on the output of uname instead of i386?
861 echo i586-pc-interix
862 exit ;;
863879 i*:UWIN*:*)
864 echo ${UNAME_MACHINE}-pc-uwin
880 echo "$UNAME_MACHINE"-pc-uwin
865881 exit ;;
866882 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
867883 echo x86_64-unknown-cygwin
868884 exit ;;
869 p*:CYGWIN*:*)
870 echo powerpcle-unknown-cygwin
871 exit ;;
872885 prep*:SunOS:5.*:*)
873 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
874887 exit ;;
875888 *:GNU:*:*)
876889 # the GNU system
877 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
878891 exit ;;
879892 *:GNU/*:*:*)
880893 # other systems with GNU libc and userland
881 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
882895 exit ;;
883896 i*86:Minix:*:*)
884 echo ${UNAME_MACHINE}-pc-minix
897 echo "$UNAME_MACHINE"-pc-minix
885898 exit ;;
886899 aarch64:Linux:*:*)
887 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
888901 exit ;;
889902 aarch64_be:Linux:*:*)
890903 UNAME_MACHINE=aarch64_be
891 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
892905 exit ;;
893906 alpha:Linux:*:*)
894907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
901914 EV68*) UNAME_MACHINE=alphaev68 ;;
902915 esac
903916 objdump --private-headers /bin/sh | grep -q ld.so.1
904 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
905 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
917 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
906919 exit ;;
907920 arc:Linux:*:* | arceb:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
909922 exit ;;
910923 arm*:Linux:*:*)
911 eval $set_cc_for_build
924 eval "$set_cc_for_build"
912925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
913926 | grep -q __ARM_EABI__
914927 then
915 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
916929 else
917930 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
918931 | grep -q __ARM_PCS_VFP
919932 then
920 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
921934 else
922 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
923936 fi
924937 fi
925938 exit ;;
926939 avr32*:Linux:*:*)
927 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
928941 exit ;;
929942 cris:Linux:*:*)
930 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
931944 exit ;;
932945 crisv32:Linux:*:*)
933 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
947 exit ;;
948 e2k:Linux:*:*)
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
934950 exit ;;
935951 frv:Linux:*:*)
936 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
937953 exit ;;
938954 hexagon:Linux:*:*)
939 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
940956 exit ;;
941957 i*86:Linux:*:*)
942 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
943959 exit ;;
944960 ia64:Linux:*:*)
945 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
963 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
946965 exit ;;
947966 m32r*:Linux:*:*)
948 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
949968 exit ;;
950969 m68*:Linux:*:*)
951 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
952971 exit ;;
953972 mips:Linux:*:* | mips64:Linux:*:*)
954 eval $set_cc_for_build
955 sed 's/^ //' << EOF >$dummy.c
973 eval "$set_cc_for_build"
974 sed 's/^ //' << EOF > "$dummy.c"
956975 #undef CPU
957976 #undef ${UNAME_MACHINE}
958977 #undef ${UNAME_MACHINE}el
966985 #endif
967986 #endif
968987 EOF
969 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
970 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
971990 ;;
991 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
972994 openrisc*:Linux:*:*)
973 echo or1k-unknown-linux-${LIBC}
995 echo or1k-unknown-linux-"$LIBC"
974996 exit ;;
975997 or32:Linux:*:* | or1k*:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
977999 exit ;;
9781000 padre:Linux:*:*)
979 echo sparc-unknown-linux-${LIBC}
1001 echo sparc-unknown-linux-"$LIBC"
9801002 exit ;;
9811003 parisc64:Linux:*:* | hppa64:Linux:*:*)
982 echo hppa64-unknown-linux-${LIBC}
1004 echo hppa64-unknown-linux-"$LIBC"
9831005 exit ;;
9841006 parisc:Linux:*:* | hppa:Linux:*:*)
9851007 # Look for CPU level
9861008 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
987 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
988 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
989 *) echo hppa-unknown-linux-${LIBC} ;;
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
9901012 esac
9911013 exit ;;
9921014 ppc64:Linux:*:*)
993 echo powerpc64-unknown-linux-${LIBC}
1015 echo powerpc64-unknown-linux-"$LIBC"
9941016 exit ;;
9951017 ppc:Linux:*:*)
996 echo powerpc-unknown-linux-${LIBC}
1018 echo powerpc-unknown-linux-"$LIBC"
9971019 exit ;;
9981020 ppc64le:Linux:*:*)
999 echo powerpc64le-unknown-linux-${LIBC}
1021 echo powerpc64le-unknown-linux-"$LIBC"
10001022 exit ;;
10011023 ppcle:Linux:*:*)
1002 echo powerpcle-unknown-linux-${LIBC}
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10031028 exit ;;
10041029 s390:Linux:*:* | s390x:Linux:*:*)
1005 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
10061031 exit ;;
10071032 sh64*:Linux:*:*)
1008 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10091034 exit ;;
10101035 sh*:Linux:*:*)
1011 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10121037 exit ;;
10131038 sparc:Linux:*:* | sparc64:Linux:*:*)
1014 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10151040 exit ;;
10161041 tile*:Linux:*:*)
1017 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10181043 exit ;;
10191044 vax:Linux:*:*)
1020 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
10211046 exit ;;
10221047 x86_64:Linux:*:*)
1023 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1048 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1050 else
1051 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1052 fi
10241053 exit ;;
10251054 xtensa*:Linux:*:*)
1026 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10271056 exit ;;
10281057 i*86:DYNIX/ptx:4*:*)
10291058 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10371066 # I am not positive that other SVR4 systems won't match this,
10381067 # I just have to hope. -- rms.
10391068 # Use sysv4.2uw... so that sysv4* matches it.
1040 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1069 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
10411070 exit ;;
10421071 i*86:OS/2:*:*)
10431072 # If we were able to find `uname', then EMX Unix compatibility
10441073 # is probably installed.
1045 echo ${UNAME_MACHINE}-pc-os2-emx
1074 echo "$UNAME_MACHINE"-pc-os2-emx
10461075 exit ;;
10471076 i*86:XTS-300:*:STOP)
1048 echo ${UNAME_MACHINE}-unknown-stop
1077 echo "$UNAME_MACHINE"-unknown-stop
10491078 exit ;;
10501079 i*86:atheos:*:*)
1051 echo ${UNAME_MACHINE}-unknown-atheos
1080 echo "$UNAME_MACHINE"-unknown-atheos
10521081 exit ;;
10531082 i*86:syllable:*:*)
1054 echo ${UNAME_MACHINE}-pc-syllable
1083 echo "$UNAME_MACHINE"-pc-syllable
10551084 exit ;;
10561085 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1057 echo i386-unknown-lynxos${UNAME_RELEASE}
1086 echo i386-unknown-lynxos"$UNAME_RELEASE"
10581087 exit ;;
10591088 i*86:*DOS:*:*)
1060 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1061 exit ;;
1062 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1063 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1089 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1090 exit ;;
1091 i*86:*:4.*:*)
1092 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10641093 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1065 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1094 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
10661095 else
1067 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1096 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
10681097 fi
10691098 exit ;;
10701099 i*86:*:5:[678]*)
10741103 *Pentium) UNAME_MACHINE=i586 ;;
10751104 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10761105 esac
1077 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1106 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
10781107 exit ;;
10791108 i*86:*:3.2:*)
10801109 if test -f /usr/options/cb.name; then
10811110 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1082 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1111 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
10831112 elif /bin/uname -X 2>/dev/null >/dev/null ; then
10841113 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
10851114 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
10891118 && UNAME_MACHINE=i686
10901119 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
10911120 && UNAME_MACHINE=i686
1092 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1121 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
10931122 else
1094 echo ${UNAME_MACHINE}-pc-sysv32
1123 echo "$UNAME_MACHINE"-pc-sysv32
10951124 fi
10961125 exit ;;
10971126 pc:*:*:*)
10991128 # uname -m prints for DJGPP always 'pc', but it prints nothing about
11001129 # the processor, so we play safe by assuming i586.
11011130 # Note: whatever this is, it MUST be the same as what config.sub
1102 # prints for the "djgpp" host, or else GDB configury will decide that
1131 # prints for the "djgpp" host, or else GDB configure will decide that
11031132 # this is a cross-build.
11041133 echo i586-pc-msdosdjgpp
11051134 exit ;;
11111140 exit ;;
11121141 i860:*:4.*:*) # i860-SVR4
11131142 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1114 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1143 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
11151144 else # Add other i860-SVR4 vendors below as they are discovered.
1116 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1145 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
11171146 fi
11181147 exit ;;
11191148 mini*:CTIX:SYS*5:*)
11331162 test -r /etc/.relid \
11341163 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11351164 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1136 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1165 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11371166 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1138 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1167 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11391168 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11401169 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11411170 && { echo i486-ncr-sysv4; exit; } ;;
11441173 test -r /etc/.relid \
11451174 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11461175 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1147 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1176 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11481177 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1149 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1178 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11501179 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1151 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1180 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11521181 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1153 echo m68k-unknown-lynxos${UNAME_RELEASE}
1182 echo m68k-unknown-lynxos"$UNAME_RELEASE"
11541183 exit ;;
11551184 mc68030:UNIX_System_V:4.*:*)
11561185 echo m68k-atari-sysv4
11571186 exit ;;
11581187 TSUNAMI:LynxOS:2.*:*)
1159 echo sparc-unknown-lynxos${UNAME_RELEASE}
1188 echo sparc-unknown-lynxos"$UNAME_RELEASE"
11601189 exit ;;
11611190 rs6000:LynxOS:2.*:*)
1162 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1191 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
11631192 exit ;;
11641193 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1165 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1194 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
11661195 exit ;;
11671196 SM[BE]S:UNIX_SV:*:*)
1168 echo mips-dde-sysv${UNAME_RELEASE}
1197 echo mips-dde-sysv"$UNAME_RELEASE"
11691198 exit ;;
11701199 RM*:ReliantUNIX-*:*:*)
11711200 echo mips-sni-sysv4
11761205 *:SINIX-*:*:*)
11771206 if uname -p 2>/dev/null >/dev/null ; then
11781207 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1179 echo ${UNAME_MACHINE}-sni-sysv4
1208 echo "$UNAME_MACHINE"-sni-sysv4
11801209 else
11811210 echo ns32k-sni-sysv
11821211 fi
11961225 exit ;;
11971226 i*86:VOS:*:*)
11981227 # From Paul.Green@stratus.com.
1199 echo ${UNAME_MACHINE}-stratus-vos
1228 echo "$UNAME_MACHINE"-stratus-vos
12001229 exit ;;
12011230 *:VOS:*:*)
12021231 # From Paul.Green@stratus.com.
12031232 echo hppa1.1-stratus-vos
12041233 exit ;;
12051234 mc68*:A/UX:*:*)
1206 echo m68k-apple-aux${UNAME_RELEASE}
1235 echo m68k-apple-aux"$UNAME_RELEASE"
12071236 exit ;;
12081237 news*:NEWS-OS:6*:*)
12091238 echo mips-sony-newsos6
12101239 exit ;;
12111240 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12121241 if [ -d /usr/nec ]; then
1213 echo mips-nec-sysv${UNAME_RELEASE}
1242 echo mips-nec-sysv"$UNAME_RELEASE"
12141243 else
1215 echo mips-unknown-sysv${UNAME_RELEASE}
1244 echo mips-unknown-sysv"$UNAME_RELEASE"
12161245 fi
12171246 exit ;;
12181247 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12311260 echo x86_64-unknown-haiku
12321261 exit ;;
12331262 SX-4:SUPER-UX:*:*)
1234 echo sx4-nec-superux${UNAME_RELEASE}
1263 echo sx4-nec-superux"$UNAME_RELEASE"
12351264 exit ;;
12361265 SX-5:SUPER-UX:*:*)
1237 echo sx5-nec-superux${UNAME_RELEASE}
1266 echo sx5-nec-superux"$UNAME_RELEASE"
12381267 exit ;;
12391268 SX-6:SUPER-UX:*:*)
1240 echo sx6-nec-superux${UNAME_RELEASE}
1269 echo sx6-nec-superux"$UNAME_RELEASE"
12411270 exit ;;
12421271 SX-7:SUPER-UX:*:*)
1243 echo sx7-nec-superux${UNAME_RELEASE}
1272 echo sx7-nec-superux"$UNAME_RELEASE"
12441273 exit ;;
12451274 SX-8:SUPER-UX:*:*)
1246 echo sx8-nec-superux${UNAME_RELEASE}
1275 echo sx8-nec-superux"$UNAME_RELEASE"
12471276 exit ;;
12481277 SX-8R:SUPER-UX:*:*)
1249 echo sx8r-nec-superux${UNAME_RELEASE}
1278 echo sx8r-nec-superux"$UNAME_RELEASE"
1279 exit ;;
1280 SX-ACE:SUPER-UX:*:*)
1281 echo sxace-nec-superux"$UNAME_RELEASE"
12501282 exit ;;
12511283 Power*:Rhapsody:*:*)
1252 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1284 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
12531285 exit ;;
12541286 *:Rhapsody:*:*)
1255 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1287 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
12561288 exit ;;
12571289 *:Darwin:*:*)
12581290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1259 eval $set_cc_for_build
1291 eval "$set_cc_for_build"
12601292 if test "$UNAME_PROCESSOR" = unknown ; then
12611293 UNAME_PROCESSOR=powerpc
12621294 fi
1263 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1264 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1295 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1296 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
12651297 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1266 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1267 grep IS_64BIT_ARCH >/dev/null
1298 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1299 grep IS_64BIT_ARCH >/dev/null
12681300 then
12691301 case $UNAME_PROCESSOR in
12701302 i386) UNAME_PROCESSOR=x86_64 ;;
12711303 powerpc) UNAME_PROCESSOR=powerpc64 ;;
12721304 esac
1305 fi
1306 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1307 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1308 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1309 grep IS_PPC >/dev/null
1310 then
1311 UNAME_PROCESSOR=powerpc
12731312 fi
12741313 fi
12751314 elif test "$UNAME_PROCESSOR" = i386 ; then
12811320 # that Apple uses in portable devices.
12821321 UNAME_PROCESSOR=x86_64
12831322 fi
1284 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1323 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
12851324 exit ;;
12861325 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12871326 UNAME_PROCESSOR=`uname -p`
1288 if test "$UNAME_PROCESSOR" = "x86"; then
1327 if test "$UNAME_PROCESSOR" = x86; then
12891328 UNAME_PROCESSOR=i386
12901329 UNAME_MACHINE=pc
12911330 fi
1292 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1331 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
12931332 exit ;;
12941333 *:QNX:*:4*)
12951334 echo i386-pc-qnx
12961335 exit ;;
1297 NEO-?:NONSTOP_KERNEL:*:*)
1298 echo neo-tandem-nsk${UNAME_RELEASE}
1336 NEO-*:NONSTOP_KERNEL:*:*)
1337 echo neo-tandem-nsk"$UNAME_RELEASE"
12991338 exit ;;
13001339 NSE-*:NONSTOP_KERNEL:*:*)
1301 echo nse-tandem-nsk${UNAME_RELEASE}
1302 exit ;;
1303 NSR-?:NONSTOP_KERNEL:*:*)
1304 echo nsr-tandem-nsk${UNAME_RELEASE}
1340 echo nse-tandem-nsk"$UNAME_RELEASE"
1341 exit ;;
1342 NSR-*:NONSTOP_KERNEL:*:*)
1343 echo nsr-tandem-nsk"$UNAME_RELEASE"
1344 exit ;;
1345 NSV-*:NONSTOP_KERNEL:*:*)
1346 echo nsv-tandem-nsk"$UNAME_RELEASE"
1347 exit ;;
1348 NSX-*:NONSTOP_KERNEL:*:*)
1349 echo nsx-tandem-nsk"$UNAME_RELEASE"
13051350 exit ;;
13061351 *:NonStop-UX:*:*)
13071352 echo mips-compaq-nonstopux
13101355 echo bs2000-siemens-sysv
13111356 exit ;;
13121357 DS/*:UNIX_System_V:*:*)
1313 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1358 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
13141359 exit ;;
13151360 *:Plan9:*:*)
13161361 # "uname -m" is not consistent, so use $cputype instead. 386
13171362 # is converted to i386 for consistency with other x86
13181363 # operating systems.
1319 if test "$cputype" = "386"; then
1364 if test "$cputype" = 386; then
13201365 UNAME_MACHINE=i386
13211366 else
13221367 UNAME_MACHINE="$cputype"
13231368 fi
1324 echo ${UNAME_MACHINE}-unknown-plan9
1369 echo "$UNAME_MACHINE"-unknown-plan9
13251370 exit ;;
13261371 *:TOPS-10:*:*)
13271372 echo pdp10-unknown-tops10
13421387 echo pdp10-unknown-its
13431388 exit ;;
13441389 SEI:*:*:SEIUX)
1345 echo mips-sei-seiux${UNAME_RELEASE}
1390 echo mips-sei-seiux"$UNAME_RELEASE"
13461391 exit ;;
13471392 *:DragonFly:*:*)
1348 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1393 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
13491394 exit ;;
13501395 *:*VMS:*:*)
13511396 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1352 case "${UNAME_MACHINE}" in
1397 case "$UNAME_MACHINE" in
13531398 A*) echo alpha-dec-vms ; exit ;;
13541399 I*) echo ia64-dec-vms ; exit ;;
13551400 V*) echo vax-dec-vms ; exit ;;
13581403 echo i386-pc-xenix
13591404 exit ;;
13601405 i*86:skyos:*:*)
1361 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1406 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
13621407 exit ;;
13631408 i*86:rdos:*:*)
1364 echo ${UNAME_MACHINE}-pc-rdos
1409 echo "$UNAME_MACHINE"-pc-rdos
13651410 exit ;;
13661411 i*86:AROS:*:*)
1367 echo ${UNAME_MACHINE}-pc-aros
1412 echo "$UNAME_MACHINE"-pc-aros
13681413 exit ;;
13691414 x86_64:VMkernel:*:*)
1370 echo ${UNAME_MACHINE}-unknown-esx
1415 echo "$UNAME_MACHINE"-unknown-esx
1416 exit ;;
1417 amd64:Isilon\ OneFS:*:*)
1418 echo x86_64-unknown-onefs
13711419 exit ;;
13721420 esac
13731421
1422 echo "$0: unable to guess system type" >&2
1423
1424 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1425 mips:Linux | mips64:Linux)
1426 # If we got here on MIPS GNU/Linux, output extra information.
1427 cat >&2 <<EOF
1428
1429 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1430 the system type. Please install a C compiler and try again.
1431 EOF
1432 ;;
1433 esac
1434
13741435 cat >&2 <<EOF
1375 $0: unable to guess system type
1376
1377 This script, last modified $timestamp, has failed to recognize
1378 the operating system you are using. It is advised that you
1379 download the most up to date version of the config scripts from
1380
1381 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1436
1437 This script (version $timestamp), has failed to recognize the
1438 operating system you are using. If your script is old, overwrite *all*
1439 copies of config.guess and config.sub with the latest versions from:
1440
1441 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
13821442 and
1383 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1384
1385 If the version you run ($0) is already up to date, please
1386 send the following data and any information you think might be
1387 pertinent to <config-patches@gnu.org> in order to provide the needed
1388 information to handle your system.
1443 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1444
1445 If $0 has already been updated, send the following data and any
1446 information you think might be pertinent to config-patches@gnu.org to
1447 provide the necessary information to handle your system.
13891448
13901449 config.guess timestamp = $timestamp
13911450
14041463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
14051464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14061465
1407 UNAME_MACHINE = ${UNAME_MACHINE}
1408 UNAME_RELEASE = ${UNAME_RELEASE}
1409 UNAME_SYSTEM = ${UNAME_SYSTEM}
1410 UNAME_VERSION = ${UNAME_VERSION}
1466 UNAME_MACHINE = "$UNAME_MACHINE"
1467 UNAME_RELEASE = "$UNAME_RELEASE"
1468 UNAME_SYSTEM = "$UNAME_SYSTEM"
1469 UNAME_VERSION = "$UNAME_VERSION"
14111470 EOF
14121471
14131472 exit 1
14141473
14151474 # Local variables:
1416 # eval: (add-hook 'write-file-hooks 'time-stamp)
1475 # eval: (add-hook 'write-file-functions 'time-stamp)
14171476 # time-stamp-start: "timestamp='"
14181477 # time-stamp-format: "%:y-%02m-%02d"
14191478 # time-stamp-end: "'"
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-12-03'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-22'
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
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
3232 # Otherwise, we print the canonical config type on stdout and succeed.
3333
3434 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
3636
3737 # This file is supposed to be the same for all GNU packages
3838 # and recognize all the CPU types, system types and aliases
5252 me=`echo "$0" | sed -e 's,.*/,,'`
5353
5454 usage="\
55 Usage: $0 [OPTION] CPU-MFR-OPSYS
56 $0 [OPTION] ALIAS
55 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
5756
5857 Canonicalize a configuration name.
5958
60 Operation modes:
59 Options:
6160 -h, --help print this help, then exit
6261 -t, --time-stamp print date of last modification, then exit
6362 -v, --version print version number, then exit
6766 version="\
6867 GNU config.sub ($timestamp)
6968
70 Copyright 1992-2014 Free Software Foundation, Inc.
69 Copyright 1992-2018 Free Software Foundation, Inc.
7170
7271 This is free software; see the source for copying conditions. There is NO
7372 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
9493
9594 *local*)
9695 # First pass through any local machine types.
97 echo $1
96 echo "$1"
9897 exit ;;
9998
10099 * )
112111
113112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114113 # Here we must recognize all the valid KERNEL-OS combinations.
115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116115 case $maybe_os in
117116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
120 kopensolaris*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
121120 storm-chaos* | os2-emx* | rtmk-nova*)
122121 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124123 ;;
125124 android-linux)
126125 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128127 ;;
129128 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
133132 else os=; fi
134133 ;;
135134 esac
178177 ;;
179178 -sco6)
180179 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
182181 ;;
183182 -sco5)
184183 os=-sco3.2v5
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
186185 ;;
187186 -sco4)
188187 os=-sco3.2v4
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
190189 ;;
191190 -sco3.2.[4-9]*)
192191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
194193 ;;
195194 -sco3.2v[4-9]*)
196195 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
198197 ;;
199198 -sco5v6*)
200199 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
202201 ;;
203202 -sco*)
204203 os=-sco3.2v2
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
206205 ;;
207206 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209208 ;;
210209 -isc)
211210 os=-isc2.2
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
213212 ;;
214213 -clix*)
215214 basic_machine=clipper-intergraph
216215 ;;
217216 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
219218 ;;
220219 -lynx*178)
221220 os=-lynxos178
227226 os=-lynxos
228227 ;;
229228 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
234230 ;;
235231 -psos*)
236232 os=-psos
254250 | arc | arceb \
255251 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256252 | avr | avr32 \
253 | ba \
257254 | be32 | be64 \
258255 | bfin \
259256 | c4x | c8051 | clipper \
260257 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
262 | fido | fr30 | frv \
258 | e2k | epiphany \
259 | fido | fr30 | frv | ft32 \
263260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264261 | hexagon \
265 | i370 | i860 | i960 | ia64 \
262 | i370 | i860 | i960 | ia16 | ia64 \
266263 | ip2k | iq2000 \
267264 | k1om \
268265 | le32 | le64 \
298295 | nios | nios2 | nios2eb | nios2el \
299296 | ns16k | ns32k \
300297 | open8 | or1k | or1knd | or32 \
301 | pdp10 | pdp11 | pj | pjl \
298 | pdp10 | pj | pjl \
302299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
303301 | pyramid \
304302 | riscv32 | riscv64 \
305303 | rl78 | rx \
306304 | score \
307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308306 | sh64 | sh64le \
309307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
310308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
313311 | ubicom32 \
314312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
315313 | visium \
316 | we32k \
314 | wasm32 \
317315 | x86 | xc16x | xstormy16 | xtensa \
318316 | z8k | z80)
319317 basic_machine=$basic_machine-unknown
334332 basic_machine=$basic_machine-unknown
335333 os=-none
336334 ;;
337 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
338336 ;;
339337 ms1)
340338 basic_machine=mt-unknown
363361 ;;
364362 # Object if more than one company name word.
365363 *-*-*)
366 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
367365 exit 1
368366 ;;
369367 # Recognize the basic CPU types with company name.
375373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
376374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
377375 | avr-* | avr32-* \
376 | ba-* \
378377 | be32-* | be64-* \
379378 | bfin-* | bs2000-* \
380379 | c[123]* | c30-* | [cjt]90-* | c4x-* \
381380 | c8051-* | clipper-* | craynv-* | cydra-* \
382381 | d10v-* | d30v-* | dlx-* \
383 | elxsi-* \
382 | e2k-* | elxsi-* \
384383 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
385384 | h8300-* | h8500-* \
386385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
387386 | hexagon-* \
388 | i*86-* | i860-* | i960-* | ia64-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
389388 | ip2k-* | iq2000-* \
390389 | k1om-* \
391390 | le32-* | le64-* \
426425 | orion-* \
427426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
428427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
429429 | pyramid-* \
430 | riscv32-* | riscv64-* \
430431 | rl78-* | romp-* | rs6000-* | rx-* \
431432 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
432433 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
433434 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
434435 | sparclite-* \
435 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
436 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
436437 | tahoe-* \
437438 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
438439 | tile*-* \
441442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
442443 | vax-* \
443444 | visium-* \
445 | wasm32-* \
444446 | we32k-* \
445447 | x86-* | x86_64-* | xc16x-* | xps100-* \
446448 | xstormy16-* | xtensa*-* \
454456 # Recognize the various machine names and aliases which stand
455457 # for a CPU type and a company and sometimes even an OS.
456458 386bsd)
457 basic_machine=i386-unknown
459 basic_machine=i386-pc
458460 os=-bsd
459461 ;;
460462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
488490 basic_machine=x86_64-pc
489491 ;;
490492 amd64-*)
491 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
492494 ;;
493495 amdahl)
494496 basic_machine=580-amdahl
517519 basic_machine=i386-pc
518520 os=-aros
519521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
520525 aux)
521526 basic_machine=m68k-apple
522527 os=-aux
530535 os=-linux
531536 ;;
532537 blackfin-*)
533 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
534539 os=-linux
535540 ;;
536541 bluegene*)
538543 os=-cnk
539544 ;;
540545 c54x-*)
541 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
542547 ;;
543548 c55x-*)
544 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
545550 ;;
546551 c6x-*)
547 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
548553 ;;
549554 c90)
550555 basic_machine=c90-cray
633638 basic_machine=rs6000-bull
634639 os=-bosx
635640 ;;
636 dpx2* | dpx2*-bull)
641 dpx2*)
637642 basic_machine=m68k-bull
638643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
648 ;;
649 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
639652 ;;
640653 ebmon29k)
641654 basic_machine=a29k-amd
726739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
727740 basic_machine=hppa1.0-hp
728741 ;;
729 hppa-next)
730 os=-nextstep3
731 ;;
732742 hppaosf)
733743 basic_machine=hppa1.1-hp
734744 os=-osf
741751 basic_machine=i370-ibm
742752 ;;
743753 i*86v32)
744 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
745755 os=-sysv32
746756 ;;
747757 i*86v4*)
748 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
749759 os=-sysv4
750760 ;;
751761 i*86v)
752 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
753763 os=-sysv
754764 ;;
755765 i*86sol2)
756 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
757767 os=-solaris2
758768 ;;
759769 i386mach)
760770 basic_machine=i386-mach
761771 os=-mach
762772 ;;
763 i386-vsta | vsta)
773 vsta)
764774 basic_machine=i386-unknown
765775 os=-vsta
766776 ;;
779789 os=-sysv
780790 ;;
781791 leon-*|leon[3-9]-*)
782 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
783793 ;;
784794 m68knommu)
785795 basic_machine=m68k-unknown
786796 os=-linux
787797 ;;
788798 m68knommu-*)
789 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
790800 os=-linux
791 ;;
792 m88k-omron*)
793 basic_machine=m88k-omron
794801 ;;
795802 magnum | m3230)
796803 basic_machine=mips-mips
823830 os=-mint
824831 ;;
825832 mips3*-*)
826 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
827834 ;;
828835 mips3*)
829 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
830837 ;;
831838 monitor)
832839 basic_machine=m68k-rom68k
845852 os=-msdos
846853 ;;
847854 ms1-*)
848 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
849856 ;;
850857 msys)
851858 basic_machine=i686-pc
887894 basic_machine=v70-nec
888895 os=-sysv
889896 ;;
890 next | m*-next )
897 next | m*-next)
891898 basic_machine=m68k-next
892899 case $os in
893900 -nextstep* )
932939 nsr-tandem)
933940 basic_machine=nsr-tandem
934941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
935948 op50n-* | op60c-*)
936949 basic_machine=hppa1.1-oki
937950 os=-proelf
964977 os=-linux
965978 ;;
966979 parisc-*)
967 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
968981 os=-linux
969982 ;;
970983 pbd)
980993 basic_machine=i386-pc
981994 ;;
982995 pc98-*)
983 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
984997 ;;
985998 pentium | p5 | k5 | k6 | nexgen | viac3)
986999 basic_machine=i586-pc
9951008 basic_machine=i786-pc
9961009 ;;
9971010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
998 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9991012 ;;
10001013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1001 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10021015 ;;
10031016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1004 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10051018 ;;
10061019 pentium4-*)
1007 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10081021 ;;
10091022 pn)
10101023 basic_machine=pn-gould
10141027 ppc | ppcbe) basic_machine=powerpc-unknown
10151028 ;;
10161029 ppc-* | ppcbe-*)
1017 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1018 ;;
1019 ppcle | powerpclittle | ppc-le | powerpc-little)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
10201033 basic_machine=powerpcle-unknown
10211034 ;;
10221035 ppcle-* | powerpclittle-*)
1023 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10241037 ;;
10251038 ppc64) basic_machine=powerpc64-unknown
10261039 ;;
1027 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1028 ;;
1029 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
10301043 basic_machine=powerpc64le-unknown
10311044 ;;
10321045 ppc64le-* | powerpc64little-*)
1033 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10341047 ;;
10351048 ps2)
10361049 basic_machine=i386-ibm
10841097 sequent)
10851098 basic_machine=i386-sequent
10861099 ;;
1087 sh)
1088 basic_machine=sh-hitachi
1089 os=-hms
1090 ;;
10911100 sh5el)
10921101 basic_machine=sh5le-unknown
10931102 ;;
1094 sh64)
1095 basic_machine=sh64-unknown
1096 ;;
1097 sparclite-wrs | simso-wrs)
1103 simso-wrs)
10981104 basic_machine=sparclite-wrs
10991105 os=-vxworks
11001106 ;;
11131119 os=-sysv4
11141120 ;;
11151121 strongarm-* | thumb-*)
1116 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
11171123 ;;
11181124 sun2)
11191125 basic_machine=m68000-sun
12351241 basic_machine=hppa1.1-winbond
12361242 os=-proelf
12371243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
12381247 xbox)
12391248 basic_machine=i686-pc
12401249 os=-mingw32
12431252 basic_machine=xps100-honeywell
12441253 ;;
12451254 xscale-* | xscalee[bl]-*)
1246 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
12471256 ;;
12481257 ymp)
12491258 basic_machine=ymp-cray
12501259 os=-unicos
1251 ;;
1252 z8k-*-coff)
1253 basic_machine=z8k-unknown
1254 os=-sim
1255 ;;
1256 z80-*-coff)
1257 basic_machine=z80-unknown
1258 os=-sim
12591260 ;;
12601261 none)
12611262 basic_machine=none-none
12851286 vax)
12861287 basic_machine=vax-dec
12871288 ;;
1288 pdp10)
1289 # there are many clones, so DEC is not a safe bet
1290 basic_machine=pdp10-unknown
1291 ;;
12921289 pdp11)
12931290 basic_machine=pdp11-dec
12941291 ;;
12981295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
12991296 basic_machine=sh-unknown
13001297 ;;
1301 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1302 basic_machine=sparc-sun
1303 ;;
13041298 cydra)
13051299 basic_machine=cydra-cydrome
13061300 ;;
13201314 # Make sure to match an already-canonicalized machine name.
13211315 ;;
13221316 *)
1323 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
13241318 exit 1
13251319 ;;
13261320 esac
13281322 # Here we canonicalize certain aliases for manufacturers.
13291323 case $basic_machine in
13301324 *-digital*)
1331 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
13321326 ;;
13331327 *-commodore*)
1334 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
13351329 ;;
13361330 *)
13371331 ;;
13421336 if [ x"$os" != x"" ]
13431337 then
13441338 case $os in
1345 # First match some system type aliases
1346 # that might get confused with valid system types.
1339 # First match some system type aliases that might get confused
1340 # with valid system types.
13471341 # -solaris* is a basic system type, with this one exception.
13481342 -auroraux)
13491343 os=-auroraux
13541348 -solaris)
13551349 os=-solaris2
13561350 ;;
1357 -svr4*)
1358 os=-sysv4
1359 ;;
13601351 -unixware*)
13611352 os=-sysv4.2uw
13621353 ;;
13631354 -gnu/linux*)
13641355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
13651356 ;;
1366 # First accept the basic system types.
1357 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
13671362 # The portable systems comes first.
1368 # Each alternative MUST END IN A *, to match a version number.
1363 # Each alternative MUST end in a * to match a version number.
13691364 # -sysv* is not here because it comes later, after sysvr4.
13701365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13711366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13721367 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
13731368 | -sym* | -kopensolaris* | -plan9* \
13741369 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1375 | -aos* | -aros* \
1370 | -aos* | -aros* | -cloudabi* | -sortix* \
13761371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13771372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1378 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1379 | -bitrig* | -openbsd* | -solidbsd* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
13801375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13811376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13821377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13831378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1384 | -chorusos* | -chorusrdb* | -cegcc* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
13851380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1386 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13871382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
13881383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1389 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
13901385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13911386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13921387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1393 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
13941389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1395 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
13961393 # Remember, each alternative MUST END IN *, to match a version number.
13971394 ;;
13981395 -qnx*)
14091406 -nto*)
14101407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
14111408 ;;
1412 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1413 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
14141411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
14151412 ;;
14161413 -mac*)
1417 os=`echo $os | sed -e 's|mac|macos|'`
1414 os=`echo "$os" | sed -e 's|mac|macos|'`
14181415 ;;
14191416 -linux-dietlibc)
14201417 os=-linux-dietlibc
14231420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
14241421 ;;
14251422 -sunos5*)
1426 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1423 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14271424 ;;
14281425 -sunos6*)
1429 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1426 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14301427 ;;
14311428 -opened*)
14321429 os=-openedition
14371434 -wince*)
14381435 os=-wince
14391436 ;;
1440 -osfrose*)
1441 os=-osfrose
1442 ;;
1443 -osf*)
1444 os=-osf
1445 ;;
14461437 -utek*)
14471438 os=-bsd
14481439 ;;
14671458 -nova*)
14681459 os=-rtmk-nova
14691460 ;;
1470 -ns2 )
1461 -ns2)
14711462 os=-nextstep2
14721463 ;;
14731464 -nsk*)
14891480 -oss*)
14901481 os=-sysv3
14911482 ;;
1492 -svr4)
1483 -svr4*)
14931484 os=-sysv4
14941485 ;;
14951486 -svr3)
15041495 -ose*)
15051496 os=-ose
15061497 ;;
1507 -es1800*)
1508 os=-ose
1509 ;;
1510 -xenix)
1511 os=-xenix
1512 ;;
15131498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
15141499 os=-mint
15151500 ;;
1516 -aros*)
1517 os=-aros
1518 ;;
15191501 -zvmoe)
15201502 os=-zvmoe
15211503 ;;
15221504 -dicos*)
15231505 os=-dicos
15241506 ;;
1507 -pikeos*)
1508 # Until real need of OS specific support for
1509 # particular features comes up, bare metal
1510 # configurations are quite functional.
1511 case $basic_machine in
1512 arm*)
1513 os=-eabi
1514 ;;
1515 *)
1516 os=-elf
1517 ;;
1518 esac
1519 ;;
15251520 -nacl*)
1521 ;;
1522 -ios)
15261523 ;;
15271524 -none)
15281525 ;;
15291526 *)
15301527 # Get rid of the `-' at the beginning of $os.
15311528 os=`echo $os | sed 's/[^-]*-//'`
1532 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
15331530 exit 1
15341531 ;;
15351532 esac
16191616 sparc-* | *-sun)
16201617 os=-sunos4.1.1
16211618 ;;
1619 pru-*)
1620 os=-elf
1621 ;;
16221622 *-be)
16231623 os=-beos
16241624 ;;
1625 *-haiku)
1626 os=-haiku
1627 ;;
16281625 *-ibm)
16291626 os=-aix
16301627 ;;
16641661 m88k-omron*)
16651662 os=-luna
16661663 ;;
1667 *-next )
1664 *-next)
16681665 os=-nextstep
16691666 ;;
16701667 *-sequent)
16781675 ;;
16791676 i370-*)
16801677 os=-mvs
1681 ;;
1682 *-next)
1683 os=-nextstep3
16841678 ;;
16851679 *-gould)
16861680 os=-sysv
17911785 vendor=stratus
17921786 ;;
17931787 esac
1794 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
17951789 ;;
17961790 esac
17971791
1798 echo $basic_machine$os
1792 echo "$basic_machine$os"
17991793 exit
18001794
18011795 # Local variables:
1802 # eval: (add-hook 'write-file-hooks 'time-stamp)
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
18031797 # time-stamp-start: "timestamp='"
18041798 # time-stamp-format: "%:y-%02m-%02d"
18051799 # time-stamp-end: "'"
+1996
-1436
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for burgerspace 1.9.3.
2 # Generated by GNU Autoconf 2.69 for burgerspace 1.9.4.
33 #
44 #
55 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
586586 # Identity of this package.
587587 PACKAGE_NAME='burgerspace'
588588 PACKAGE_TARNAME='burgerspace'
589 PACKAGE_VERSION='1.9.3'
590 PACKAGE_STRING='burgerspace 1.9.3'
589 PACKAGE_VERSION='1.9.4'
590 PACKAGE_STRING='burgerspace 1.9.4'
591591 PACKAGE_BUGREPORT=''
592592 PACKAGE_URL=''
593593
651651 CXXFLAGS
652652 CXX
653653 CPP
654 LT_SYS_LIBRARY_PATH
654655 OTOOL64
655656 OTOOL
656657 LIPO
678679 AMDEPBACKSLASH
679680 AMDEP_FALSE
680681 AMDEP_TRUE
681 am__quote
682682 am__include
683683 DEPDIR
684684 OBJEXT
750750 docdir
751751 oldincludedir
752752 includedir
753 runstatedir
753754 localstatedir
754755 sharedstatedir
755756 sysconfdir
768769 PACKAGE_TARNAME
769770 PACKAGE_NAME
770771 PATH_SEPARATOR
771 SHELL'
772 SHELL
773 am__quote'
772774 ac_subst_files=''
773775 ac_user_opts='
774776 enable_option_checking
777779 enable_shared
778780 with_pic
779781 enable_fast_install
782 with_aix_soname
780783 enable_dependency_tracking
781784 with_gnu_ld
782785 with_sysroot
792795 LDFLAGS
793796 LIBS
794797 CPPFLAGS
798 LT_SYS_LIBRARY_PATH
795799 CPP
796800 CXX
797801 CXXFLAGS
840844 sysconfdir='${prefix}/etc'
841845 sharedstatedir='${prefix}/com'
842846 localstatedir='${prefix}/var'
847 runstatedir='${localstatedir}/run'
843848 includedir='${prefix}/include'
844849 oldincludedir='/usr/include'
845850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
10921097 | -silent | --silent | --silen | --sile | --sil)
10931098 silent=yes ;;
10941099
1100 -runstatedir | --runstatedir | --runstatedi | --runstated \
1101 | --runstate | --runstat | --runsta | --runst | --runs \
1102 | --run | --ru | --r)
1103 ac_prev=runstatedir ;;
1104 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1105 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1106 | --run=* | --ru=* | --r=*)
1107 runstatedir=$ac_optarg ;;
1108
10951109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10961110 ac_prev=sbindir ;;
10971111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12291243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12301244 datadir sysconfdir sharedstatedir localstatedir includedir \
12311245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1246 libdir localedir mandir runstatedir
12331247 do
12341248 eval ac_val=\$$ac_var
12351249 # Remove trailing slashes.
13421356 # Omit some internal or obsolete options to make the list less imposing.
13431357 # This message is too long to be a string in the A/UX 3.1 sh.
13441358 cat <<_ACEOF
1345 \`configure' configures burgerspace 1.9.3 to adapt to many kinds of systems.
1359 \`configure' configures burgerspace 1.9.4 to adapt to many kinds of systems.
13461360
13471361 Usage: $0 [OPTION]... [VAR=VALUE]...
13481362
13821396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13831397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13841398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
13851400 --libdir=DIR object code libraries [EPREFIX/lib]
13861401 --includedir=DIR C header files [PREFIX/include]
13871402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
14121427
14131428 if test -n "$ac_init_help"; then
14141429 case $ac_init_help in
1415 short | recursive ) echo "Configuration of burgerspace 1.9.3:";;
1430 short | recursive ) echo "Configuration of burgerspace 1.9.4:";;
14161431 esac
14171432 cat <<\_ACEOF
14181433
14371452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
14381453 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14391454 both]
1455 --with-aix-soname=aix|svr4|both
1456 shared library versioning (aka "SONAME") variant to
1457 provide on AIX, [default=aix].
14401458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-sysroot=DIR Search for dependent libraries within DIR
1442 (or the compiler's sysroot if not specified).
1459 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1460 compiler's sysroot if not specified).
14431461 --with-network build network (client-server) version (default: yes)
14441462 --with-default-udp-port default UDP port number on which to accept clients (default: 49152)
14451463
14511469 LIBS libraries to pass to the linker, e.g. -l<library>
14521470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14531471 you have headers in a nonstandard directory <include dir>
1472 LT_SYS_LIBRARY_PATH
1473 User-defined run-time library search path.
14541474 CPP C preprocessor
14551475 CXX C++ compiler command
14561476 CXXFLAGS C++ compiler flags
15311551 test -n "$ac_init_help" && exit $ac_status
15321552 if $ac_init_version; then
15331553 cat <<\_ACEOF
1534 burgerspace configure 1.9.3
1554 burgerspace configure 1.9.4
15351555 generated by GNU Autoconf 2.69
15361556
15371557 Copyright (C) 2012 Free Software Foundation, Inc.
20842104 This file contains any messages produced by compilers while
20852105 running configure, to aid debugging if configure makes a mistake.
20862106
2087 It was created by burgerspace $as_me 1.9.3, which was
2107 It was created by burgerspace $as_me 1.9.4, which was
20882108 generated by GNU Autoconf 2.69. Invocation command line was
20892109
20902110 $ $0 $@
24332453
24342454
24352455
2436 am__api_version='1.15'
2456 am__api_version='1.16'
24372457
24382458 ac_aux_dir=
24392459 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
29482968
29492969 # Define the identity of the package.
29502970 PACKAGE='burgerspace'
2951 VERSION='1.9.3'
2971 VERSION='1.9.4'
29522972
29532973
29542974 cat >>confdefs.h <<_ACEOF
29782998
29792999 # For better backward compatibility. To be removed once Automake 1.9.x
29803000 # dies out for good. For more background, see:
2981 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2982 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3001 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3002 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
29833003 mkdir_p='$(MKDIR_P)'
29843004
29853005 # We need awk for the "check" target (and possibly the TAP driver). The
30303050 Aborting the configuration process, to ensure you take notice of the issue.
30313051
30323052 You can download and install GNU coreutils to get an 'rm' implementation
3033 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3053 that behaves properly: <https://www.gnu.org/software/coreutils/>.
30343054
30353055 If you want to complete the configuration process using your problematic
30363056 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
30423062 fi
30433063
30443064
3045 MANUAL_DATE_EN="November 11th, 2019";
3046 MANUAL_DATE_FR="11 novembre 2019"; # UTF-8
3065 MANUAL_DATE_EN="June 18th, 2021";
3066 MANUAL_DATE_FR="18 juin 2021"; # UTF-8
30473067
30483068 PACKAGE_FULL_NAME="BurgerSpace"
30493069 PACKAGE_SUMMARY_EN="A hamburger-smashing video game"
30663086 *)
30673087 enable_static=no
30683088 # Look at the argument we got. We use all the common list separators.
3069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3089 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
30703090 for pkg in $enableval; do
3071 IFS="$lt_save_ifs"
3091 IFS=$lt_save_ifs
30723092 if test "X$pkg" = "X$p"; then
30733093 enable_static=yes
30743094 fi
30753095 done
3076 IFS="$lt_save_ifs"
3096 IFS=$lt_save_ifs
30773097 ;;
30783098 esac
30793099 else
30963116
30973117
30983118
3099 macro_version='2.4.2'
3100 macro_revision='1.3337'
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114 ltmain="$ac_aux_dir/ltmain.sh"
3119 macro_version='2.4.6'
3120 macro_revision='2.4.6'
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134 ltmain=$ac_aux_dir/ltmain.sh
31153135
31163136 # Make sure we can run config.sub.
31173137 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
32313251 $ECHO ""
32323252 }
32333253
3234 case "$ECHO" in
3254 case $ECHO in
32353255 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
32363256 $as_echo "printf" >&6; } ;;
32373257 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
32573277
32583278 ac_config_commands="$ac_config_commands depfiles"
32593279
3260
3261 am_make=${MAKE-make}
3262 cat > confinc << 'END'
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3281 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3282 cat > confinc.mk << 'END'
32633283 am__doit:
3264 @echo this is the am__doit target
3284 @echo this is the am__doit target >confinc.out
32653285 .PHONY: am__doit
32663286 END
3267 # If we don't find an include directive, just comment out the code.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3269 $as_echo_n "checking for style of include used by $am_make... " >&6; }
32703287 am__include="#"
32713288 am__quote=
3272 _am_result=none
3273 # First try GNU make style include.
3274 echo "include confinc" > confmf
3275 # Ignore all kinds of additional output from 'make'.
3276 case `$am_make -s -f confmf 2> /dev/null` in #(
3277 *the\ am__doit\ target*)
3278 am__include=include
3279 am__quote=
3280 _am_result=GNU
3281 ;;
3289 # BSD make does it like this.
3290 echo '.include "confinc.mk" # ignored' > confmf.BSD
3291 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3292 echo 'include confinc.mk # ignored' > confmf.GNU
3293 _am_result=no
3294 for s in GNU BSD; do
3295 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3296 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }
3300 case $?:`cat confinc.out 2>/dev/null` in #(
3301 '0:this is the am__doit target') :
3302 case $s in #(
3303 BSD) :
3304 am__include='.include' am__quote='"' ;; #(
3305 *) :
3306 am__include='include' am__quote='' ;;
3307 esac ;; #(
3308 *) :
3309 ;;
32823310 esac
3283 # Now try BSD make style include.
3284 if test "$am__include" = "#"; then
3285 echo '.include "confinc"' > confmf
3286 case `$am_make -s -f confmf 2> /dev/null` in #(
3287 *the\ am__doit\ target*)
3288 am__include=.include
3289 am__quote="\""
3290 _am_result=BSD
3291 ;;
3292 esac
3293 fi
3294
3295
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3297 $as_echo "$_am_result" >&6; }
3298 rm -f confinc confmf
3311 if test "$am__include" != "#"; then
3312 _am_result="yes ($s style)"
3313 break
3314 fi
3315 done
3316 rm -f confinc.* confmf.*
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3318 $as_echo "${_am_result}" >&6; }
32993319
33003320 # Check whether --enable-dependency-tracking was given.
33013321 if test "${enable_dependency_tracking+set}" = set; then :
45934613
45944614 # Check whether --with-gnu-ld was given.
45954615 if test "${with_gnu_ld+set}" = set; then :
4596 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4616 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
45974617 else
45984618 with_gnu_ld=no
45994619 fi
46004620
46014621 ac_prog=ld
4602 if test "$GCC" = yes; then
4622 if test yes = "$GCC"; then
46034623 # Check if gcc -print-prog-name=ld gives a path.
46044624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
46054625 $as_echo_n "checking for ld used by $CC... " >&6; }
46064626 case $host in
46074627 *-*-mingw*)
4608 # gcc leaves a trailing carriage return which upsets mingw
4628 # gcc leaves a trailing carriage return, which upsets mingw
46094629 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
46104630 *)
46114631 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
46194639 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
46204640 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
46214641 done
4622 test -z "$LD" && LD="$ac_prog"
4642 test -z "$LD" && LD=$ac_prog
46234643 ;;
46244644 "")
46254645 # If it fails, then pretend we aren't using GCC.
46304650 with_gnu_ld=unknown
46314651 ;;
46324652 esac
4633 elif test "$with_gnu_ld" = yes; then
4653 elif test yes = "$with_gnu_ld"; then
46344654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
46354655 $as_echo_n "checking for GNU ld... " >&6; }
46364656 else
46414661 $as_echo_n "(cached) " >&6
46424662 else
46434663 if test -z "$LD"; then
4644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
46454665 for ac_dir in $PATH; do
4646 IFS="$lt_save_ifs"
4666 IFS=$lt_save_ifs
46474667 test -z "$ac_dir" && ac_dir=.
46484668 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4649 lt_cv_path_LD="$ac_dir/$ac_prog"
4669 lt_cv_path_LD=$ac_dir/$ac_prog
46504670 # Check to see if the program is GNU ld. I'd rather use --version,
46514671 # but apparently some variants of GNU ld only accept -v.
46524672 # Break only if it was the GNU/non-GNU ld that we prefer.
46534673 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
46544674 *GNU* | *'with BFD'*)
4655 test "$with_gnu_ld" != no && break
4675 test no != "$with_gnu_ld" && break
46564676 ;;
46574677 *)
4658 test "$with_gnu_ld" != yes && break
4678 test yes != "$with_gnu_ld" && break
46594679 ;;
46604680 esac
46614681 fi
46624682 done
4663 IFS="$lt_save_ifs"
4664 else
4665 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4666 fi
4667 fi
4668
4669 LD="$lt_cv_path_LD"
4683 IFS=$lt_save_ifs
4684 else
4685 lt_cv_path_LD=$LD # Let the user override the test with a path.
4686 fi
4687 fi
4688
4689 LD=$lt_cv_path_LD
46704690 if test -n "$LD"; then
46714691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
46724692 $as_echo "$LD" >&6; }
47094729 else
47104730 if test -n "$NM"; then
47114731 # Let the user override the test.
4712 lt_cv_path_NM="$NM"
4713 else
4714 lt_nm_to_check="${ac_tool_prefix}nm"
4732 lt_cv_path_NM=$NM
4733 else
4734 lt_nm_to_check=${ac_tool_prefix}nm
47154735 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
47164736 lt_nm_to_check="$lt_nm_to_check nm"
47174737 fi
47184738 for lt_tmp_nm in $lt_nm_to_check; do
4719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4739 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47204740 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4721 IFS="$lt_save_ifs"
4741 IFS=$lt_save_ifs
47224742 test -z "$ac_dir" && ac_dir=.
4723 tmp_nm="$ac_dir/$lt_tmp_nm"
4724 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4743 tmp_nm=$ac_dir/$lt_tmp_nm
4744 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
47254745 # Check to see if the nm accepts a BSD-compat flag.
4726 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4746 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
47274747 # nm: unknown option "B" ignored
47284748 # Tru64's nm complains that /dev/null is an invalid object file
4729 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4730 */dev/null* | *'Invalid file or object type'*)
4749 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4750 case $build_os in
4751 mingw*) lt_bad_file=conftest.nm/nofile ;;
4752 *) lt_bad_file=/dev/null ;;
4753 esac
4754 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4755 *$lt_bad_file* | *'Invalid file or object type'*)
47314756 lt_cv_path_NM="$tmp_nm -B"
4732 break
4757 break 2
47334758 ;;
47344759 *)
47354760 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
47364761 */dev/null*)
47374762 lt_cv_path_NM="$tmp_nm -p"
4738 break
4763 break 2
47394764 ;;
47404765 *)
47414766 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
47464771 esac
47474772 fi
47484773 done
4749 IFS="$lt_save_ifs"
4774 IFS=$lt_save_ifs
47504775 done
47514776 : ${lt_cv_path_NM=no}
47524777 fi
47534778 fi
47544779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
47554780 $as_echo "$lt_cv_path_NM" >&6; }
4756 if test "$lt_cv_path_NM" != "no"; then
4757 NM="$lt_cv_path_NM"
4781 if test no != "$lt_cv_path_NM"; then
4782 NM=$lt_cv_path_NM
47584783 else
47594784 # Didn't find any BSD compatible name lister, look for dumpbin.
47604785 if test -n "$DUMPBIN"; then :
48604885 fi
48614886 fi
48624887
4863 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4888 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
48644889 *COFF*)
4865 DUMPBIN="$DUMPBIN -symbols"
4890 DUMPBIN="$DUMPBIN -symbols -headers"
48664891 ;;
48674892 *)
48684893 DUMPBIN=:
48704895 esac
48714896 fi
48724897
4873 if test "$DUMPBIN" != ":"; then
4874 NM="$DUMPBIN"
4898 if test : != "$DUMPBIN"; then
4899 NM=$DUMPBIN
48754900 fi
48764901 fi
48774902 test -z "$NM" && NM=nm
49224947 $as_echo_n "(cached) " >&6
49234948 else
49244949 i=0
4925 teststring="ABCD"
4950 teststring=ABCD
49264951
49274952 case $build_os in
49284953 msdosdjgpp*)
49624987 lt_cv_sys_max_cmd_len=8192;
49634988 ;;
49644989
4965 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4990 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
49664991 # This has been around since 386BSD, at least. Likely further.
49674992 if test -x /sbin/sysctl; then
49684993 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
50135038 *)
50145039 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
50155040 if test -n "$lt_cv_sys_max_cmd_len" && \
5016 test undefined != "$lt_cv_sys_max_cmd_len"; then
5041 test undefined != "$lt_cv_sys_max_cmd_len"; then
50175042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
50185043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
50195044 else
50205045 # Make teststring a little bigger before we do anything with it.
50215046 # a 1K string should be a reasonable start.
5022 for i in 1 2 3 4 5 6 7 8 ; do
5047 for i in 1 2 3 4 5 6 7 8; do
50235048 teststring=$teststring$teststring
50245049 done
50255050 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
50265051 # If test is not a shell built-in, we'll probably end up computing a
50275052 # maximum length that is only half of the actual maximum length, but
50285053 # we can't tell.
5029 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5054 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
50305055 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5031 test $i != 17 # 1/2 MB should be enough
5056 test 17 != "$i" # 1/2 MB should be enough
50325057 do
50335058 i=`expr $i + 1`
50345059 teststring=$teststring$teststring
50465071
50475072 fi
50485073
5049 if test -n $lt_cv_sys_max_cmd_len ; then
5074 if test -n "$lt_cv_sys_max_cmd_len"; then
50505075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
50515076 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
50525077 else
50635088 : ${CP="cp -f"}
50645089 : ${MV="mv -f"}
50655090 : ${RM="rm -f"}
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5068 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5069 # Try some XSI features
5070 xsi_shell=no
5071 ( _lt_dummy="a/b/c"
5072 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5073 = c,a/b,b/c, \
5074 && eval 'test $(( 1 + 1 )) -eq 2 \
5075 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5076 && xsi_shell=yes
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5078 $as_echo "$xsi_shell" >&6; }
5079
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5082 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5083 lt_shell_append=no
5084 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5085 >/dev/null 2>&1 \
5086 && lt_shell_append=yes
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5088 $as_echo "$lt_shell_append" >&6; }
5089
50905091
50915092 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50925093 lt_unset=unset
52105211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
52115212 case $host_os in
52125213 cygwin* | mingw* | pw32* | cegcc*)
5213 if test "$GCC" != yes; then
5214 if test yes != "$GCC"; then
52145215 reload_cmds=false
52155216 fi
52165217 ;;
52175218 darwin*)
5218 if test "$GCC" = yes; then
5219 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5219 if test yes = "$GCC"; then
5220 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
52205221 else
52215222 reload_cmds='$LD$reload_flag -o $output$reload_objs'
52225223 fi
53445345 # Need to set the preceding variable on all platforms that support
53455346 # interlibrary dependencies.
53465347 # 'none' -- dependencies not supported.
5347 # `unknown' -- same as none, but documents that we really don't know.
5348 # 'unknown' -- same as none, but documents that we really don't know.
53485349 # 'pass_all' -- all dependencies passed with no checks.
53495350 # 'test_compile' -- check by making test program.
53505351 # 'file_magic [[regex]]' -- check by looking for files in library path
5351 # which responds to the $file_magic_cmd with a given extended regex.
5352 # If you have `file' or equivalent on your system and you're not sure
5353 # whether `pass_all' will *always* work, you probably want this one.
5352 # that responds to the $file_magic_cmd with a given extended regex.
5353 # If you have 'file' or equivalent on your system and you're not sure
5354 # whether 'pass_all' will *always* work, you probably want this one.
53545355
53555356 case $host_os in
53565357 aix[4-9]*)
53775378 # Base MSYS/MinGW do not provide the 'file' command needed by
53785379 # func_win32_libid shell function, so use a weaker test based on 'objdump',
53795380 # unless we find 'file', for example because we are cross-compiling.
5380 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5381 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5381 if ( file / ) >/dev/null 2>&1; then
53825382 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
53835383 lt_cv_file_magic_cmd='func_win32_libid'
53845384 else
54745474 lt_cv_deplibs_check_method=pass_all
54755475 ;;
54765476
5477 openbsd*)
5478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5477 openbsd* | bitrig*)
5478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
54795479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
54805480 else
54815481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
55285528 tpf*)
55295529 lt_cv_deplibs_check_method=pass_all
55305530 ;;
5531 os2*)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
55315534 esac
55325535
55335536 fi
56855688
56865689 case $host_os in
56875690 cygwin* | mingw* | pw32* | cegcc*)
5688 # two different shell functions defined in ltmain.sh
5689 # decide which to use based on capabilities of $DLLTOOL
5691 # two different shell functions defined in ltmain.sh;
5692 # decide which one to use based on capabilities of $DLLTOOL
56905693 case `$DLLTOOL --help 2>&1` in
56915694 *--identify-strict*)
56925695 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
56985701 ;;
56995702 *)
57005703 # fallback: assume linklib IS sharedlib
5701 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5704 lt_cv_sharedlib_from_linklib_cmd=$ECHO
57025705 ;;
57035706 esac
57045707
58165819 fi
58175820
58185821 : ${AR=ar}
5819 : ${AR_FLAGS=cru}
5822 : ${AR_FLAGS=cr}
58205823
58215824
58225825
58535856 ac_status=$?
58545857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58555858 test $ac_status = 0; }
5856 if test "$ac_status" -eq 0; then
5859 if test 0 -eq "$ac_status"; then
58575860 # Ensure the archiver fails upon bogus file names.
58585861 rm -f conftest.$ac_objext libconftest.a
58595862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
58615864 ac_status=$?
58625865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58635866 test $ac_status = 0; }
5864 if test "$ac_status" -ne 0; then
5867 if test 0 -ne "$ac_status"; then
58655868 lt_cv_ar_at_file=@
58665869 fi
58675870 fi
58745877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
58755878 $as_echo "$lt_cv_ar_at_file" >&6; }
58765879
5877 if test "x$lt_cv_ar_at_file" = xno; then
5880 if test no = "$lt_cv_ar_at_file"; then
58785881 archiver_list_spec=
58795882 else
58805883 archiver_list_spec=$lt_cv_ar_at_file
60916094
60926095 if test -n "$RANLIB"; then
60936096 case $host_os in
6094 openbsd*)
6097 bitrig* | openbsd*)
60956098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
60966099 ;;
60976100 *)
61816184 symcode='[ABCDGISTW]'
61826185 ;;
61836186 hpux*)
6184 if test "$host_cpu" = ia64; then
6187 if test ia64 = "$host_cpu"; then
61856188 symcode='[ABCDEGRST]'
61866189 fi
61876190 ;;
62146217 symcode='[ABCDGIRSTW]' ;;
62156218 esac
62166219
6220 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6221 # Gets list of data symbols to import.
6222 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6223 # Adjust the below global symbol transforms to fixup imported variables.
6224 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6225 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6226 lt_c_name_lib_hook="\
6227 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6228 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6229 else
6230 # Disable hooks by default.
6231 lt_cv_sys_global_symbol_to_import=
6232 lt_cdecl_hook=
6233 lt_c_name_hook=
6234 lt_c_name_lib_hook=
6235 fi
6236
62176237 # Transform an extracted symbol line into a proper C declaration.
62186238 # Some systems (esp. on ia64) link data and code symbols differently,
62196239 # so use this general approach.
6220 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6240 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6241 $lt_cdecl_hook\
6242 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6243 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
62216244
62226245 # Transform an extracted symbol line into symbol name and symbol address
6223 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6224 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'"
6246 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6247 $lt_c_name_hook\
6248 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6249 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6250
6251 # Transform an extracted symbol line into symbol name with lib prefix and
6252 # symbol address.
6253 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6254 $lt_c_name_lib_hook\
6255 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6256 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6257 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
62256258
62266259 # Handle CRLF in mingw tool chain
62276260 opt_cr=
62396272
62406273 # Write the raw and C identifiers.
62416274 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6242 # Fake it for dumpbin and say T for any non-static function
6243 # and D for any global variable.
6275 # Fake it for dumpbin and say T for any non-static function,
6276 # D for any global variable and I for any imported variable.
62446277 # Also find C++ and __fastcall symbols from MSVC++,
62456278 # which start with @ or ?.
62466279 lt_cv_sys_global_symbol_pipe="$AWK '"\
62476280 " {last_section=section; section=\$ 3};"\
62486281 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
62496282 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6283 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6284 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6285 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
62506286 " \$ 0!~/External *\|/{next};"\
62516287 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
62526288 " {if(hide[section]) next};"\
6253 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6254 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6255 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6256 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6289 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6290 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6291 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6292 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
62576293 " ' prfx=^$ac_symprfx"
62586294 else
62596295 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
62846320 test $ac_status = 0; }; then
62856321 # Now try to grab the symbols.
62866322 nlist=conftest.nm
6287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6288 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6289 ac_status=$?
6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291 test $ac_status = 0; } && test -s "$nlist"; then
6323 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6324 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
62926325 # Try sorting and uniquifying the output.
62936326 if sort "$nlist" | uniq > "$nlist"T; then
62946327 mv -f "$nlist"T "$nlist"
63016334 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
63026335 cat <<_LT_EOF > conftest.$ac_ext
63036336 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6304 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6305 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6337 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6338 /* DATA imports from DLLs on WIN32 can't be const, because runtime
63066339 relocations are performed -- see ld's documentation on pseudo-relocs. */
63076340 # define LT_DLSYM_CONST
6308 #elif defined(__osf__)
6341 #elif defined __osf__
63096342 /* This system does not cope well with relocations in const data. */
63106343 # define LT_DLSYM_CONST
63116344 #else
63316364 {
63326365 { "@PROGRAM@", (void *) 0 },
63336366 _LT_EOF
6334 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6367 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
63356368 cat <<\_LT_EOF >> conftest.$ac_ext
63366369 {0, (void *) 0}
63376370 };
63516384 mv conftest.$ac_objext conftstm.$ac_objext
63526385 lt_globsym_save_LIBS=$LIBS
63536386 lt_globsym_save_CFLAGS=$CFLAGS
6354 LIBS="conftstm.$ac_objext"
6387 LIBS=conftstm.$ac_objext
63556388 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
63566389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
63576390 (eval $ac_link) 2>&5
63586391 ac_status=$?
63596392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6360 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6393 test $ac_status = 0; } && test -s conftest$ac_exeext; then
63616394 pipe_works=yes
63626395 fi
63636396 LIBS=$lt_globsym_save_LIBS
63786411 rm -rf conftest* conftst*
63796412
63806413 # Do not use the global_symbol_pipe unless it works.
6381 if test "$pipe_works" = yes; then
6414 if test yes = "$pipe_works"; then
63826415 break
63836416 else
63846417 lt_cv_sys_global_symbol_pipe=
64316464
64326465
64336466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
64346477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
64356478 $as_echo_n "checking for sysroot... " >&6; }
64366479
64436486
64446487
64456488 lt_sysroot=
6446 case ${with_sysroot} in #(
6489 case $with_sysroot in #(
64476490 yes)
6448 if test "$GCC" = yes; then
6491 if test yes = "$GCC"; then
64496492 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
64506493 fi
64516494 ;; #(
64556498 no|'')
64566499 ;; #(
64576500 *)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6459 $as_echo "${with_sysroot}" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6502 $as_echo "$with_sysroot" >&6; }
64606503 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
64616504 ;;
64626505 esac
64686511
64696512
64706513
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6515 $as_echo_n "checking for a working dd... " >&6; }
6516 if ${ac_cv_path_lt_DD+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 printf 0123456789abcdef0123456789abcdef >conftest.i
6520 cat conftest.i conftest.i >conftest2.i
6521 : ${lt_DD:=$DD}
6522 if test -z "$lt_DD"; then
6523 ac_path_lt_DD_found=false
6524 # Loop through the user's path and test for each of PROGNAME-LIST
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_prog in dd; do
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6533 as_fn_executable_p "$ac_path_lt_DD" || continue
6534 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6535 cmp -s conftest.i conftest.out \
6536 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6537 fi
6538 $ac_path_lt_DD_found && break 3
6539 done
6540 done
6541 done
6542 IFS=$as_save_IFS
6543 if test -z "$ac_cv_path_lt_DD"; then
6544 :
6545 fi
6546 else
6547 ac_cv_path_lt_DD=$lt_DD
6548 fi
6549
6550 rm -f conftest.i conftest2.i conftest.out
6551 fi
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6553 $as_echo "$ac_cv_path_lt_DD" >&6; }
6554
6555
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6557 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6558 if ${lt_cv_truncate_bin+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 printf 0123456789abcdef0123456789abcdef >conftest.i
6562 cat conftest.i conftest.i >conftest2.i
6563 lt_cv_truncate_bin=
6564 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6565 cmp -s conftest.i conftest.out \
6566 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6567 fi
6568 rm -f conftest.i conftest2.i conftest.out
6569 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6572 $as_echo "$lt_cv_truncate_bin" >&6; }
6573
6574
6575
6576
6577
6578
6579
6580 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6581 func_cc_basename ()
6582 {
6583 for cc_temp in $*""; do
6584 case $cc_temp in
6585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6587 \-*) ;;
6588 *) break;;
6589 esac
6590 done
6591 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6592 }
6593
64716594 # Check whether --enable-libtool-lock was given.
64726595 if test "${enable_libtool_lock+set}" = set; then :
64736596 enableval=$enable_libtool_lock;
64746597 fi
64756598
6476 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6599 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
64776600
64786601 # Some flags need to be propagated to the compiler or linker for good
64796602 # libtool support.
64806603 case $host in
64816604 ia64-*-hpux*)
6482 # Find out which ABI we are using.
6605 # Find out what ABI is being produced by ac_compile, and set mode
6606 # options accordingly.
64836607 echo 'int i;' > conftest.$ac_ext
64846608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
64856609 (eval $ac_compile) 2>&5
64886612 test $ac_status = 0; }; then
64896613 case `/usr/bin/file conftest.$ac_objext` in
64906614 *ELF-32*)
6491 HPUX_IA64_MODE="32"
6615 HPUX_IA64_MODE=32
64926616 ;;
64936617 *ELF-64*)
6494 HPUX_IA64_MODE="64"
6618 HPUX_IA64_MODE=64
64956619 ;;
64966620 esac
64976621 fi
64986622 rm -rf conftest*
64996623 ;;
65006624 *-*-irix6*)
6501 # Find out which ABI we are using.
6625 # Find out what ABI is being produced by ac_compile, and set linker
6626 # options accordingly.
65026627 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
65036628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65046629 (eval $ac_compile) 2>&5
65056630 ac_status=$?
65066631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65076632 test $ac_status = 0; }; then
6508 if test "$lt_cv_prog_gnu_ld" = yes; then
6633 if test yes = "$lt_cv_prog_gnu_ld"; then
65096634 case `/usr/bin/file conftest.$ac_objext` in
65106635 *32-bit*)
65116636 LD="${LD-ld} -melf32bsmip"
65346659 rm -rf conftest*
65356660 ;;
65366661
6662 mips64*-*linux*)
6663 # Find out what ABI is being produced by ac_compile, and set linker
6664 # options accordingly.
6665 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6667 (eval $ac_compile) 2>&5
6668 ac_status=$?
6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; }; then
6671 emul=elf
6672 case `/usr/bin/file conftest.$ac_objext` in
6673 *32-bit*)
6674 emul="${emul}32"
6675 ;;
6676 *64-bit*)
6677 emul="${emul}64"
6678 ;;
6679 esac
6680 case `/usr/bin/file conftest.$ac_objext` in
6681 *MSB*)
6682 emul="${emul}btsmip"
6683 ;;
6684 *LSB*)
6685 emul="${emul}ltsmip"
6686 ;;
6687 esac
6688 case `/usr/bin/file conftest.$ac_objext` in
6689 *N32*)
6690 emul="${emul}n32"
6691 ;;
6692 esac
6693 LD="${LD-ld} -m $emul"
6694 fi
6695 rm -rf conftest*
6696 ;;
6697
65376698 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
65386699 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6539 # Find out which ABI we are using.
6700 # Find out what ABI is being produced by ac_compile, and set linker
6701 # options accordingly. Note that the listed cases only cover the
6702 # situations where additional linker options are needed (such as when
6703 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6704 # vice versa); the common cases where no linker options are needed do
6705 # not appear in the list.
65406706 echo 'int i;' > conftest.$ac_ext
65416707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
65426708 (eval $ac_compile) 2>&5
65596725 ;;
65606726 esac
65616727 ;;
6562 powerpc64le-*)
6728 powerpc64le-*linux*)
65636729 LD="${LD-ld} -m elf32lppclinux"
65646730 ;;
6565 powerpc64-*)
6731 powerpc64-*linux*)
65666732 LD="${LD-ld} -m elf32ppclinux"
65676733 ;;
65686734 s390x-*linux*)
65816747 x86_64-*linux*)
65826748 LD="${LD-ld} -m elf_x86_64"
65836749 ;;
6584 powerpcle-*)
6750 powerpcle-*linux*)
65856751 LD="${LD-ld} -m elf64lppc"
65866752 ;;
6587 powerpc-*)
6753 powerpc-*linux*)
65886754 LD="${LD-ld} -m elf64ppc"
65896755 ;;
65906756 s390*-*linux*|s390*-*tpf*)
66026768
66036769 *-*-sco3.2v5*)
66046770 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6605 SAVE_CFLAGS="$CFLAGS"
6771 SAVE_CFLAGS=$CFLAGS
66066772 CFLAGS="$CFLAGS -belf"
66076773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
66086774 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
66426808 fi
66436809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
66446810 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6645 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6811 if test yes != "$lt_cv_cc_needs_belf"; then
66466812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6647 CFLAGS="$SAVE_CFLAGS"
6813 CFLAGS=$SAVE_CFLAGS
66486814 fi
66496815 ;;
66506816 *-*solaris*)
6651 # Find out which ABI we are using.
6817 # Find out what ABI is being produced by ac_compile, and set linker
6818 # options accordingly.
66526819 echo 'int i;' > conftest.$ac_ext
66536820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
66546821 (eval $ac_compile) 2>&5
66606827 case $lt_cv_prog_gnu_ld in
66616828 yes*)
66626829 case $host in
6663 i?86-*-solaris*)
6830 i?86-*-solaris*|x86_64-*-solaris*)
66646831 LD="${LD-ld} -m elf_x86_64"
66656832 ;;
66666833 sparc*-*-solaris*)
66696836 esac
66706837 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
66716838 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6672 LD="${LD-ld}_sol2"
6839 LD=${LD-ld}_sol2
66736840 fi
66746841 ;;
66756842 *)
66856852 ;;
66866853 esac
66876854
6688 need_locks="$enable_libtool_lock"
6855 need_locks=$enable_libtool_lock
66896856
66906857 if test -n "$ac_tool_prefix"; then
66916858 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
67966963 fi
67976964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
67986965 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6799 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6966 if test yes != "$lt_cv_path_mainfest_tool"; then
68006967 MANIFEST_TOOL=:
68016968 fi
68026969
72997466 $as_echo_n "(cached) " >&6
73007467 else
73017468 lt_cv_apple_cc_single_mod=no
7302 if test -z "${LT_MULTI_MODULE}"; then
7469 if test -z "$LT_MULTI_MODULE"; then
73037470 # By default we will add the -single_module flag. You can override
73047471 # by either setting the environment variable LT_MULTI_MODULE
73057472 # non-empty at configure time, or by adding -multi_module to the
73177484 cat conftest.err >&5
73187485 # Otherwise, if the output was created with a 0 exit code from
73197486 # the compiler, it worked.
7320 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7487 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
73217488 lt_cv_apple_cc_single_mod=yes
73227489 else
73237490 cat conftest.err >&5
73567523 fi
73577524 rm -f core conftest.err conftest.$ac_objext \
73587525 conftest$ac_exeext conftest.$ac_ext
7359 LDFLAGS="$save_LDFLAGS"
7526 LDFLAGS=$save_LDFLAGS
73607527
73617528 fi
73627529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
73737540 _LT_EOF
73747541 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
73757542 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7376 echo "$AR cru libconftest.a conftest.o" >&5
7377 $AR cru libconftest.a conftest.o 2>&5
7543 echo "$AR cr libconftest.a conftest.o" >&5
7544 $AR cr libconftest.a conftest.o 2>&5
73787545 echo "$RANLIB libconftest.a" >&5
73797546 $RANLIB libconftest.a 2>&5
73807547 cat > conftest.c << _LT_EOF
73857552 _lt_result=$?
73867553 if test -s conftest.err && $GREP force_load conftest.err; then
73877554 cat conftest.err >&5
7388 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7555 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
73897556 lt_cv_ld_force_load=yes
73907557 else
73917558 cat conftest.err >&5
73987565 $as_echo "$lt_cv_ld_force_load" >&6; }
73997566 case $host_os in
74007567 rhapsody* | darwin1.[012])
7401 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7568 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
74027569 darwin1.*)
7403 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7570 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
74047571 darwin*) # darwin 5.x on
74057572 # if running on 10.5 or later, the deployment target defaults
74067573 # to the OS version, if on x86, and 10.4, the deployment
74077574 # target defaults to 10.4. Don't you love it?
74087575 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
74097576 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7411 10.[012]*)
7412 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7578 10.[012][,.]*)
7579 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
74137580 10.*)
7414 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7581 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
74157582 esac
74167583 ;;
74177584 esac
7418 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7585 if test yes = "$lt_cv_apple_cc_single_mod"; then
74197586 _lt_dar_single_mod='$single_module'
74207587 fi
7421 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7422 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7588 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7589 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
74237590 else
7424 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7591 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
74257592 fi
7426 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7593 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
74277594 _lt_dsymutil='~$DSYMUTIL $lib || :'
74287595 else
74297596 _lt_dsymutil=
74307597 fi
74317598 ;;
74327599 esac
7600
7601 # func_munge_path_list VARIABLE PATH
7602 # -----------------------------------
7603 # VARIABLE is name of variable containing _space_ separated list of
7604 # directories to be munged by the contents of PATH, which is string
7605 # having a format:
7606 # "DIR[:DIR]:"
7607 # string "DIR[ DIR]" will be prepended to VARIABLE
7608 # ":DIR[:DIR]"
7609 # string "DIR[ DIR]" will be appended to VARIABLE
7610 # "DIRP[:DIRP]::[DIRA:]DIRA"
7611 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7612 # "DIRA[ DIRA]" will be appended to VARIABLE
7613 # "DIR[:DIR]"
7614 # VARIABLE will be replaced by "DIR[ DIR]"
7615 func_munge_path_list ()
7616 {
7617 case x$2 in
7618 x)
7619 ;;
7620 *:)
7621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7622 ;;
7623 x:*)
7624 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7625 ;;
7626 *::*)
7627 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7628 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7629 ;;
7630 *)
7631 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7632 ;;
7633 esac
7634 }
74337635
74347636 ac_ext=c
74357637 ac_cpp='$CPP $CPPFLAGS'
77347936 *)
77357937 enable_shared=no
77367938 # Look at the argument we got. We use all the common list separators.
7737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7939 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
77387940 for pkg in $enableval; do
7739 IFS="$lt_save_ifs"
7941 IFS=$lt_save_ifs
77407942 if test "X$pkg" = "X$p"; then
77417943 enable_shared=yes
77427944 fi
77437945 done
7744 IFS="$lt_save_ifs"
7946 IFS=$lt_save_ifs
77457947 ;;
77467948 esac
77477949 else
77667968 *)
77677969 pic_mode=default
77687970 # Look at the argument we got. We use all the common list separators.
7769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7971 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
77707972 for lt_pkg in $withval; do
7771 IFS="$lt_save_ifs"
7973 IFS=$lt_save_ifs
77727974 if test "X$lt_pkg" = "X$lt_p"; then
77737975 pic_mode=yes
77747976 fi
77757977 done
7776 IFS="$lt_save_ifs"
7978 IFS=$lt_save_ifs
77777979 ;;
77787980 esac
77797981 else
77807982 pic_mode=default
77817983 fi
77827984
7783
7784 test -z "$pic_mode" && pic_mode=default
77857985
77867986
77877987
77987998 *)
77997999 enable_fast_install=no
78008000 # Look at the argument we got. We use all the common list separators.
7801 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8001 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
78028002 for pkg in $enableval; do
7803 IFS="$lt_save_ifs"
8003 IFS=$lt_save_ifs
78048004 if test "X$pkg" = "X$p"; then
78058005 enable_fast_install=yes
78068006 fi
78078007 done
7808 IFS="$lt_save_ifs"
8008 IFS=$lt_save_ifs
78098009 ;;
78108010 esac
78118011 else
78198019
78208020
78218021
8022 shared_archive_member_spec=
8023 case $host,$enable_shared in
8024 power*-*-aix[5-9]*,yes)
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8026 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8027
8028 # Check whether --with-aix-soname was given.
8029 if test "${with_aix_soname+set}" = set; then :
8030 withval=$with_aix_soname; case $withval in
8031 aix|svr4|both)
8032 ;;
8033 *)
8034 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8035 ;;
8036 esac
8037 lt_cv_with_aix_soname=$with_aix_soname
8038 else
8039 if ${lt_cv_with_aix_soname+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 lt_cv_with_aix_soname=aix
8043 fi
8044
8045 with_aix_soname=$lt_cv_with_aix_soname
8046 fi
8047
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8049 $as_echo "$with_aix_soname" >&6; }
8050 if test aix != "$with_aix_soname"; then
8051 # For the AIX way of multilib, we name the shared archive member
8052 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8053 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8054 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8055 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8056 if test 64 = "${OBJECT_MODE-32}"; then
8057 shared_archive_member_spec=shr_64
8058 else
8059 shared_archive_member_spec=shr
8060 fi
8061 fi
8062 ;;
8063 *)
8064 with_aix_soname=aix
8065 ;;
8066 esac
8067
8068
8069
8070
8071
8072
8073
78228074
78238075
78248076
78258077 # This can be used to rebuild libtool when needed
7826 LIBTOOL_DEPS="$ltmain"
8078 LIBTOOL_DEPS=$ltmain
78278079
78288080 # Always use our own libtool.
78298081 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
78728124
78738125
78748126
7875 if test -n "${ZSH_VERSION+set}" ; then
8127 if test -n "${ZSH_VERSION+set}"; then
78768128 setopt NO_GLOB_SUBST
78778129 fi
78788130
79118163 # AIX sometimes has problems with the GCC collect2 program. For some
79128164 # reason, if we set the COLLECT_NAMES environment variable, the problems
79138165 # vanish in a puff of smoke.
7914 if test "X${COLLECT_NAMES+set}" != Xset; then
8166 if test set != "${COLLECT_NAMES+set}"; then
79158167 COLLECT_NAMES=
79168168 export COLLECT_NAMES
79178169 fi
79228174 ofile=libtool
79238175 can_build_shared=yes
79248176
7925 # All known linkers require a `.a' archive for static linking (except MSVC,
8177 # All known linkers require a '.a' archive for static linking (except MSVC,
79268178 # which needs '.lib').
79278179 libext=a
79288180
7929 with_gnu_ld="$lt_cv_prog_gnu_ld"
7930
7931 old_CC="$CC"
7932 old_CFLAGS="$CFLAGS"
8181 with_gnu_ld=$lt_cv_prog_gnu_ld
8182
8183 old_CC=$CC
8184 old_CFLAGS=$CFLAGS
79338185
79348186 # Set sane defaults for various variables
79358187 test -z "$CC" && CC=cc
79388190 test -z "$LD" && LD=ld
79398191 test -z "$ac_objext" && ac_objext=o
79408192
7941 for cc_temp in $compiler""; do
7942 case $cc_temp in
7943 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7944 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7945 \-*) ;;
7946 *) break;;
7947 esac
7948 done
7949 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8193 func_cc_basename $compiler
8194 cc_basename=$func_cc_basename_result
79508195
79518196
79528197 # Only perform the check for file, if the check method requires it
79618206 else
79628207 case $MAGIC_CMD in
79638208 [\\/*] | ?:[\\/]*)
7964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8209 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
79658210 ;;
79668211 *)
7967 lt_save_MAGIC_CMD="$MAGIC_CMD"
7968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8212 lt_save_MAGIC_CMD=$MAGIC_CMD
8213 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
79698214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
79708215 for ac_dir in $ac_dummy; do
7971 IFS="$lt_save_ifs"
8216 IFS=$lt_save_ifs
79728217 test -z "$ac_dir" && ac_dir=.
7973 if test -f $ac_dir/${ac_tool_prefix}file; then
7974 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8218 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8219 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
79758220 if test -n "$file_magic_test_file"; then
79768221 case $deplibs_check_method in
79778222 "file_magic "*)
79788223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8224 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
79808225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
79818226 $EGREP "$file_magic_regex" > /dev/null; then
79828227 :
79998244 break
80008245 fi
80018246 done
8002 IFS="$lt_save_ifs"
8003 MAGIC_CMD="$lt_save_MAGIC_CMD"
8247 IFS=$lt_save_ifs
8248 MAGIC_CMD=$lt_save_MAGIC_CMD
80048249 ;;
80058250 esac
80068251 fi
80078252
8008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8253 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
80098254 if test -n "$MAGIC_CMD"; then
80108255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
80118256 $as_echo "$MAGIC_CMD" >&6; }
80278272 else
80288273 case $MAGIC_CMD in
80298274 [\\/*] | ?:[\\/]*)
8030 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8275 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
80318276 ;;
80328277 *)
8033 lt_save_MAGIC_CMD="$MAGIC_CMD"
8034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8278 lt_save_MAGIC_CMD=$MAGIC_CMD
8279 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
80358280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
80368281 for ac_dir in $ac_dummy; do
8037 IFS="$lt_save_ifs"
8282 IFS=$lt_save_ifs
80388283 test -z "$ac_dir" && ac_dir=.
8039 if test -f $ac_dir/file; then
8040 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8284 if test -f "$ac_dir/file"; then
8285 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
80418286 if test -n "$file_magic_test_file"; then
80428287 case $deplibs_check_method in
80438288 "file_magic "*)
80448289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8290 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
80468291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
80478292 $EGREP "$file_magic_regex" > /dev/null; then
80488293 :
80658310 break
80668311 fi
80678312 done
8068 IFS="$lt_save_ifs"
8069 MAGIC_CMD="$lt_save_MAGIC_CMD"
8313 IFS=$lt_save_ifs
8314 MAGIC_CMD=$lt_save_MAGIC_CMD
80708315 ;;
80718316 esac
80728317 fi
80738318
8074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8319 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
80758320 if test -n "$MAGIC_CMD"; then
80768321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
80778322 $as_echo "$MAGIC_CMD" >&6; }
80928337
80938338 # Use C for the default configuration in the libtool script
80948339
8095 lt_save_CC="$CC"
8340 lt_save_CC=$CC
80968341 ac_ext=c
80978342 ac_cpp='$CPP $CPPFLAGS'
80988343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
81548399
81558400 lt_prog_compiler_no_builtin_flag=
81568401
8157 if test "$GCC" = yes; then
8402 if test yes = "$GCC"; then
81588403 case $cc_basename in
81598404 nvcc*)
81608405 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
81708415 lt_cv_prog_compiler_rtti_exceptions=no
81718416 ac_outfile=conftest.$ac_objext
81728417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8173 lt_compiler_flag="-fno-rtti -fno-exceptions"
8418 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
81748419 # Insert the option either (1) after the last *FLAGS variable, or
81758420 # (2) before a word containing "conftest.", or (3) at the end.
81768421 # Note that $ac_compile itself does not contain backslashes and begins
82008445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
82018446 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
82028447
8203 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8448 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
82048449 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
82058450 else
82068451 :
82188463 lt_prog_compiler_static=
82198464
82208465
8221 if test "$GCC" = yes; then
8466 if test yes = "$GCC"; then
82228467 lt_prog_compiler_wl='-Wl,'
82238468 lt_prog_compiler_static='-static'
82248469
82258470 case $host_os in
82268471 aix*)
82278472 # All AIX code is PIC.
8228 if test "$host_cpu" = ia64; then
8473 if test ia64 = "$host_cpu"; then
82298474 # AIX 5 now supports IA64 processor
82308475 lt_prog_compiler_static='-Bstatic'
82318476 fi
8477 lt_prog_compiler_pic='-fPIC'
82328478 ;;
82338479
82348480 amigaos*)
82398485 ;;
82408486 m68k)
82418487 # FIXME: we need at least 68020 code to build shared libraries, but
8242 # adding the `-m68020' flag to GCC prevents building anything better,
8243 # like `-m68040'.
8488 # adding the '-m68020' flag to GCC prevents building anything better,
8489 # like '-m68040'.
82448490 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
82458491 ;;
82468492 esac
82568502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
82578503 # (--disable-auto-import) libraries
82588504 lt_prog_compiler_pic='-DDLL_EXPORT'
8505 case $host_os in
8506 os2*)
8507 lt_prog_compiler_static='$wl-static'
8508 ;;
8509 esac
82598510 ;;
82608511
82618512 darwin* | rhapsody*)
83268577 case $host_os in
83278578 aix*)
83288579 lt_prog_compiler_wl='-Wl,'
8329 if test "$host_cpu" = ia64; then
8580 if test ia64 = "$host_cpu"; then
83308581 # AIX 5 now supports IA64 processor
83318582 lt_prog_compiler_static='-Bstatic'
83328583 else
83348585 fi
83358586 ;;
83368587
8588 darwin* | rhapsody*)
8589 # PIC is the default on this platform
8590 # Common symbols not allowed in MH_DYLIB files
8591 lt_prog_compiler_pic='-fno-common'
8592 case $cc_basename in
8593 nagfor*)
8594 # NAG Fortran compiler
8595 lt_prog_compiler_wl='-Wl,-Wl,,'
8596 lt_prog_compiler_pic='-PIC'
8597 lt_prog_compiler_static='-Bstatic'
8598 ;;
8599 esac
8600 ;;
8601
83378602 mingw* | cygwin* | pw32* | os2* | cegcc*)
83388603 # This hack is so that the source file can tell whether it is being
83398604 # built for inclusion in a dll (and should export symbols for example).
83408605 lt_prog_compiler_pic='-DDLL_EXPORT'
8606 case $host_os in
8607 os2*)
8608 lt_prog_compiler_static='$wl-static'
8609 ;;
8610 esac
83418611 ;;
83428612
83438613 hpux9* | hpux10* | hpux11*)
83538623 ;;
83548624 esac
83558625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8356 lt_prog_compiler_static='${wl}-a ${wl}archive'
8626 lt_prog_compiler_static='$wl-a ${wl}archive'
83578627 ;;
83588628
83598629 irix5* | irix6* | nonstopux*)
83648634
83658635 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
83668636 case $cc_basename in
8367 # old Intel for x86_64 which still supported -KPIC.
8637 # old Intel for x86_64, which still supported -KPIC.
83688638 ecc*)
83698639 lt_prog_compiler_wl='-Wl,'
83708640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-static'
8642 ;;
8643 # flang / f18. f95 an alias for gfortran or flang on Debian
8644 flang* | f18* | f95*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_pic='-fPIC'
83718647 lt_prog_compiler_static='-static'
83728648 ;;
83738649 # icc used to be incompatible with GCC.
83888664 lt_prog_compiler_wl='-Wl,-Wl,,'
83898665 lt_prog_compiler_pic='-PIC'
83908666 lt_prog_compiler_static='-Bstatic'
8667 ;;
8668 tcc*)
8669 # Fabrice Bellard et al's Tiny C Compiler
8670 lt_prog_compiler_wl='-Wl,'
8671 lt_prog_compiler_pic='-fPIC'
8672 lt_prog_compiler_static='-static'
83918673 ;;
83928674 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
83938675 # Portland Group compilers (*not* the Pentium gcc compiler,
84868768 ;;
84878769
84888770 sysv4*MP*)
8489 if test -d /usr/nec ;then
8771 if test -d /usr/nec; then
84908772 lt_prog_compiler_pic='-Kconform_pic'
84918773 lt_prog_compiler_static='-Bstatic'
84928774 fi
85158797 fi
85168798
85178799 case $host_os in
8518 # For platforms which do not support PIC, -DPIC is meaningless:
8800 # For platforms that do not support PIC, -DPIC is meaningless:
85198801 *djgpp*)
85208802 lt_prog_compiler_pic=
85218803 ;;
85478829 lt_cv_prog_compiler_pic_works=no
85488830 ac_outfile=conftest.$ac_objext
85498831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8832 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
85518833 # Insert the option either (1) after the last *FLAGS variable, or
85528834 # (2) before a word containing "conftest.", or (3) at the end.
85538835 # Note that $ac_compile itself does not contain backslashes and begins
85778859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
85788860 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
85798861
8580 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8862 if test yes = "$lt_cv_prog_compiler_pic_works"; then
85818863 case $lt_prog_compiler_pic in
85828864 "" | " "*) ;;
85838865 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
86098891 $as_echo_n "(cached) " >&6
86108892 else
86118893 lt_cv_prog_compiler_static_works=no
8612 save_LDFLAGS="$LDFLAGS"
8894 save_LDFLAGS=$LDFLAGS
86138895 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
86148896 echo "$lt_simple_link_test_code" > conftest.$ac_ext
86158897 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
86288910 fi
86298911 fi
86308912 $RM -r conftest*
8631 LDFLAGS="$save_LDFLAGS"
8913 LDFLAGS=$save_LDFLAGS
86328914
86338915 fi
86348916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
86358917 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
86368918
8637 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8919 if test yes = "$lt_cv_prog_compiler_static_works"; then
86388920 :
86398921 else
86408922 lt_prog_compiler_static=
87549036
87559037
87569038
8757 hard_links="nottested"
8758 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9039 hard_links=nottested
9040 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
87599041 # do not overwrite the value of need_locks provided by the user
87609042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
87619043 $as_echo_n "checking if we can lock with hard links... " >&6; }
87679049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
87689050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
87699051 $as_echo "$hard_links" >&6; }
8770 if test "$hard_links" = no; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8772 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9052 if test no = "$hard_links"; then
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9054 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
87739055 need_locks=warn
87749056 fi
87759057 else
88129094 # included in the symbol list
88139095 include_expsyms=
88149096 # exclude_expsyms can be an extended regexp of symbols to exclude
8815 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8816 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8817 # as well as any symbol that contains `d'.
9097 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9098 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9099 # as well as any symbol that contains 'd'.
88189100 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
88199101 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
88209102 # platforms (ab)use it in PIC code, but their linkers get confused if
88299111 # FIXME: the MSVC++ port hasn't been tested in a loooong time
88309112 # When not using gcc, we currently assume that we are using
88319113 # Microsoft Visual C++.
8832 if test "$GCC" != yes; then
9114 if test yes != "$GCC"; then
88339115 with_gnu_ld=no
88349116 fi
88359117 ;;
88379119 # we just hope/assume this is gcc and not c89 (= MSVC++)
88389120 with_gnu_ld=yes
88399121 ;;
8840 openbsd*)
9122 openbsd* | bitrig*)
88419123 with_gnu_ld=no
88429124 ;;
88439125 linux* | k*bsd*-gnu | gnu*)
88509132 # On some targets, GNU ld is compatible enough with the native linker
88519133 # that we're better off using the native interface for both.
88529134 lt_use_gnu_ld_interface=no
8853 if test "$with_gnu_ld" = yes; then
9135 if test yes = "$with_gnu_ld"; then
88549136 case $host_os in
88559137 aix*)
88569138 # The AIX port of GNU ld has always aspired to compatibility
88729154 esac
88739155 fi
88749156
8875 if test "$lt_use_gnu_ld_interface" = yes; then
9157 if test yes = "$lt_use_gnu_ld_interface"; then
88769158 # If archive_cmds runs LD, not CC, wlarc should be empty
8877 wlarc='${wl}'
9159 wlarc='$wl'
88789160
88799161 # Set some defaults for GNU ld with shared library support. These
88809162 # are reset later if shared libraries are not supported. Putting them
88819163 # here allows them to be overridden if necessary.
88829164 runpath_var=LD_RUN_PATH
8883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8884 export_dynamic_flag_spec='${wl}--export-dynamic'
9165 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9166 export_dynamic_flag_spec='$wl--export-dynamic'
88859167 # ancient GNU ld didn't support --whole-archive et. al.
88869168 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8887 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9169 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
88889170 else
88899171 whole_archive_flag_spec=
88909172 fi
88919173 supports_anon_versioning=no
8892 case `$LD -v 2>&1` in
9174 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
88939175 *GNU\ gold*) supports_anon_versioning=yes ;;
88949176 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
88959177 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
89029184 case $host_os in
89039185 aix[3-9]*)
89049186 # On AIX/PPC, the GNU linker is very broken
8905 if test "$host_cpu" != ia64; then
9187 if test ia64 != "$host_cpu"; then
89069188 ld_shlibs=no
89079189 cat <<_LT_EOF 1>&2
89089190
89219203 case $host_cpu in
89229204 powerpc)
89239205 # see comment about AmigaOS4 .so support
8924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
89259207 archive_expsym_cmds=''
89269208 ;;
89279209 m68k)
89379219 allow_undefined_flag=unsupported
89389220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
89399221 # support --undefined. This deserves some investigation. FIXME
8940 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
89419223 else
89429224 ld_shlibs=no
89439225 fi
89479229 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
89489230 # as there is no search path for DLLs.
89499231 hardcode_libdir_flag_spec='-L$libdir'
8950 export_dynamic_flag_spec='${wl}--export-all-symbols'
9232 export_dynamic_flag_spec='$wl--export-all-symbols'
89519233 allow_undefined_flag=unsupported
89529234 always_export_symbols=no
89539235 enable_shared_with_static_runtimes=yes
89559237 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
89569238
89579239 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8959 # If the export-symbols file already is a .def file (1st line
8960 # is EXPORTS), use it as is; otherwise, prepend...
8961 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8962 cp $export_symbols $output_objdir/$soname.def;
8963 else
8964 echo EXPORTS > $output_objdir/$soname.def;
8965 cat $export_symbols >> $output_objdir/$soname.def;
8966 fi~
8967 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9241 # If the export-symbols file already is a .def file, use it as
9242 # is; otherwise, prepend EXPORTS...
9243 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9244 cp $export_symbols $output_objdir/$soname.def;
9245 else
9246 echo EXPORTS > $output_objdir/$soname.def;
9247 cat $export_symbols >> $output_objdir/$soname.def;
9248 fi~
9249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
89689250 else
89699251 ld_shlibs=no
89709252 fi
89719253 ;;
89729254
89739255 haiku*)
8974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
89759257 link_all_deplibs=yes
9258 ;;
9259
9260 os2*)
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 hardcode_minus_L=yes
9263 allow_undefined_flag=unsupported
9264 shrext_cmds=.dll
9265 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9266 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9267 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9268 $ECHO EXPORTS >> $output_objdir/$libname.def~
9269 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9271 emximp -o $lib $output_objdir/$libname.def'
9272 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9275 $ECHO EXPORTS >> $output_objdir/$libname.def~
9276 prefix_cmds="$SED"~
9277 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9278 prefix_cmds="$prefix_cmds -e 1d";
9279 fi~
9280 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9281 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9282 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9283 emximp -o $lib $output_objdir/$libname.def'
9284 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9285 enable_shared_with_static_runtimes=yes
89769286 ;;
89779287
89789288 interix[3-9]*)
89799289 hardcode_direct=no
89809290 hardcode_shlibpath_var=no
8981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8982 export_dynamic_flag_spec='${wl}-E'
9291 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9292 export_dynamic_flag_spec='$wl-E'
89839293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
89849294 # Instead, shared libraries are loaded at an image base (0x10000000 by
89859295 # default) and relocated if they conflict, which is a slow very memory
89869296 # consuming and fragmenting process. To avoid this, we pick a random,
89879297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
89889298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8989 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8990 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'
9299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9300 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'
89919301 ;;
89929302
89939303 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
89949304 tmp_diet=no
8995 if test "$host_os" = linux-dietlibc; then
9305 if test linux-dietlibc = "$host_os"; then
89969306 case $cc_basename in
89979307 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
89989308 esac
89999309 fi
90009310 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9001 && test "$tmp_diet" = no
9311 && test no = "$tmp_diet"
90029312 then
90039313 tmp_addflag=' $pic_flag'
90049314 tmp_sharedflag='-shared'
90059315 case $cc_basename,$host_cpu in
90069316 pgcc*) # Portland Group C compiler
9007 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'
9317 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'
90089318 tmp_addflag=' $pic_flag'
90099319 ;;
90109320 pgf77* | pgf90* | pgf95* | pgfortran*)
90119321 # Portland Group f77 and f90 compilers
9012 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'
9322 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'
90139323 tmp_addflag=' $pic_flag -Mnomain' ;;
90149324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
90159325 tmp_addflag=' -i_dynamic' ;;
90209330 lf95*) # Lahey Fortran 8.1
90219331 whole_archive_flag_spec=
90229332 tmp_sharedflag='--shared' ;;
9333 nagfor*) # NAGFOR 5.3
9334 tmp_sharedflag='-Wl,-shared' ;;
90239335 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
90249336 tmp_sharedflag='-qmkshrobj'
90259337 tmp_addflag= ;;
90269338 nvcc*) # Cuda Compiler Driver 2.2
9027 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'
9339 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'
90289340 compiler_needs_object=yes
90299341 ;;
90309342 esac
90319343 case `$CC -V 2>&1 | sed 5q` in
90329344 *Sun\ C*) # Sun C 5.9
9033 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'
9345 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'
90349346 compiler_needs_object=yes
90359347 tmp_sharedflag='-G' ;;
90369348 *Sun\ F*) # Sun Fortran 8.3
90379349 tmp_sharedflag='-G' ;;
90389350 esac
9039 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040
9041 if test "x$supports_anon_versioning" = xyes; then
9351 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9352
9353 if test yes = "$supports_anon_versioning"; then
90429354 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9044 echo "local: *; };" >> $output_objdir/$libname.ver~
9045 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9356 echo "local: *; };" >> $output_objdir/$libname.ver~
9357 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
90469358 fi
90479359
90489360 case $cc_basename in
9361 tcc*)
9362 export_dynamic_flag_spec='-rdynamic'
9363 ;;
90499364 xlf* | bgf* | bgxlf* | mpixlf*)
90509365 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
90519366 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9367 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
90539368 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9054 if test "x$supports_anon_versioning" = xyes; then
9369 if test yes = "$supports_anon_versioning"; then
90559370 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9057 echo "local: *; };" >> $output_objdir/$libname.ver~
9058 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9372 echo "local: *; };" >> $output_objdir/$libname.ver~
9373 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
90599374 fi
90609375 ;;
90619376 esac
90699384 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
90709385 wlarc=
90719386 else
9072 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9388 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
90749389 fi
90759390 ;;
90769391
90889403
90899404 _LT_EOF
90909405 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9091 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9407 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
90939408 else
90949409 ld_shlibs=no
90959410 fi
91019416 ld_shlibs=no
91029417 cat <<_LT_EOF 1>&2
91039418
9104 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9419 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
91059420 *** reliably create shared libraries on SCO systems. Therefore, libtool
91069421 *** is disabling shared libraries support. We urge you to upgrade GNU
91079422 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
91169431 # DT_RUNPATH tag from executables and libraries. But doing so
91179432 # requires that you compile everything twice, which is a pain.
91189433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
91229437 else
91239438 ld_shlibs=no
91249439 fi
91359450
91369451 *)
91379452 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9139 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9453 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9454 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
91409455 else
91419456 ld_shlibs=no
91429457 fi
91439458 ;;
91449459 esac
91459460
9146 if test "$ld_shlibs" = no; then
9461 if test no = "$ld_shlibs"; then
91479462 runpath_var=
91489463 hardcode_libdir_flag_spec=
91499464 export_dynamic_flag_spec=
91599474 # Note: this linker hardcodes the directories in LIBPATH if there
91609475 # are no directories specified by -L.
91619476 hardcode_minus_L=yes
9162 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9477 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
91639478 # Neither direct hardcoding nor static linking is supported with a
91649479 # broken collect2.
91659480 hardcode_direct=unsupported
91679482 ;;
91689483
91699484 aix[4-9]*)
9170 if test "$host_cpu" = ia64; then
9485 if test ia64 = "$host_cpu"; then
91719486 # On IA64, the linker does run time linking by default, so we don't
91729487 # have to do anything special.
91739488 aix_use_runtimelinking=no
91749489 exp_sym_flag='-Bexport'
9175 no_entry_flag=""
9490 no_entry_flag=
91769491 else
91779492 # If we're using GNU nm, then we don't want the "-C" option.
9178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9179 # Also, AIX nm treats weak defined symbols like other global
9180 # defined symbols, whereas GNU nm marks them as "W".
9493 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9494 # Without the "-l" option, or with the "-B" option, AIX nm treats
9495 # weak defined symbols like other global defined symbols, whereas
9496 # GNU nm marks them as "W".
9497 # While the 'weak' keyword is ignored in the Export File, we need
9498 # it in the Import File for the 'aix-soname' feature, so we have
9499 # to replace the "-B" option with "-P" for AIX nm.
91819500 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9182 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'
9501 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'
91839502 else
9184 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'
9503 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'
91859504 fi
91869505 aix_use_runtimelinking=no
91879506
91889507 # Test if we are trying to use run time linking or normal
91899508 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9190 # need to do runtime linking.
9509 # have runtime linking enabled, and use it for executables.
9510 # For shared libraries, we enable/disable runtime linking
9511 # depending on the kind of the shared library created -
9512 # when "with_aix_soname,aix_use_runtimelinking" is:
9513 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9514 # "aix,yes" lib.so shared, rtl:yes, for executables
9515 # lib.a static archive
9516 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9517 # lib.a(lib.so.V) shared, rtl:no, for executables
9518 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9519 # lib.a(lib.so.V) shared, rtl:no
9520 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9521 # lib.a static archive
91919522 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
91929523 for ld_flag in $LDFLAGS; do
9193 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9524 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
91949525 aix_use_runtimelinking=yes
91959526 break
91969527 fi
91979528 done
9529 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9530 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9531 # so we don't have lib.a shared libs to link our executables.
9532 # We have to force runtime linking in this case.
9533 aix_use_runtimelinking=yes
9534 LDFLAGS="$LDFLAGS -Wl,-brtl"
9535 fi
91989536 ;;
91999537 esac
92009538
92139551 hardcode_direct_absolute=yes
92149552 hardcode_libdir_separator=':'
92159553 link_all_deplibs=yes
9216 file_list_spec='${wl}-f,'
9217
9218 if test "$GCC" = yes; then
9554 file_list_spec='$wl-f,'
9555 case $with_aix_soname,$aix_use_runtimelinking in
9556 aix,*) ;; # traditional, no import file
9557 svr4,* | *,yes) # use import file
9558 # The Import File defines what to hardcode.
9559 hardcode_direct=no
9560 hardcode_direct_absolute=no
9561 ;;
9562 esac
9563
9564 if test yes = "$GCC"; then
92199565 case $host_os in aix4.[012]|aix4.[012].*)
92209566 # We only want to do this on AIX 4.2 and lower, the check
92219567 # below for broken collect2 doesn't work under 4.3+
9222 collect2name=`${CC} -print-prog-name=collect2`
9568 collect2name=`$CC -print-prog-name=collect2`
92239569 if test -f "$collect2name" &&
92249570 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
92259571 then
92389584 ;;
92399585 esac
92409586 shared_flag='-shared'
9241 if test "$aix_use_runtimelinking" = yes; then
9242 shared_flag="$shared_flag "'${wl}-G'
9587 if test yes = "$aix_use_runtimelinking"; then
9588 shared_flag="$shared_flag "'$wl-G'
92439589 fi
9244 link_all_deplibs=no
9590 # Need to ensure runtime linking is disabled for the traditional
9591 # shared library, or the linker may eventually find shared libraries
9592 # /with/ Import File - we do not want to mix them.
9593 shared_flag_aix='-shared'
9594 shared_flag_svr4='-shared $wl-G'
92459595 else
92469596 # not using gcc
9247 if test "$host_cpu" = ia64; then
9597 if test ia64 = "$host_cpu"; then
92489598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
92499599 # chokes on -Wl,-G. The following line is correct:
92509600 shared_flag='-G'
92519601 else
9252 if test "$aix_use_runtimelinking" = yes; then
9253 shared_flag='${wl}-G'
9602 if test yes = "$aix_use_runtimelinking"; then
9603 shared_flag='$wl-G'
92549604 else
9255 shared_flag='${wl}-bM:SRE'
9605 shared_flag='$wl-bM:SRE'
92569606 fi
9607 shared_flag_aix='$wl-bM:SRE'
9608 shared_flag_svr4='$wl-G'
92579609 fi
92589610 fi
92599611
9260 export_dynamic_flag_spec='${wl}-bexpall'
9612 export_dynamic_flag_spec='$wl-bexpall'
92619613 # It seems that -bexpall does not export symbols beginning with
92629614 # underscore (_), so it is better to generate a list of symbols to export.
92639615 always_export_symbols=yes
9264 if test "$aix_use_runtimelinking" = yes; then
9616 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
92659617 # Warning - without using the other runtime loading flags (-brtl),
92669618 # -berok will link without error, but may produce a broken library.
92679619 allow_undefined_flag='-berok'
92689620 # Determine the default libpath from the value encoded in an
92699621 # empty executable.
9270 if test "${lt_cv_aix_libpath+set}" = set; then
9622 if test set = "${lt_cv_aix_libpath+set}"; then
92719623 aix_libpath=$lt_cv_aix_libpath
92729624 else
92739625 if ${lt_cv_aix_libpath_+:} false; then :
93029654 rm -f core conftest.err conftest.$ac_objext \
93039655 conftest$ac_exeext conftest.$ac_ext
93049656 if test -z "$lt_cv_aix_libpath_"; then
9305 lt_cv_aix_libpath_="/usr/lib:/lib"
9657 lt_cv_aix_libpath_=/usr/lib:/lib
93069658 fi
93079659
93089660 fi
93109662 aix_libpath=$lt_cv_aix_libpath_
93119663 fi
93129664
9313 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9314 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"
9665 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9666 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
93159667 else
9316 if test "$host_cpu" = ia64; then
9317 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9668 if test ia64 = "$host_cpu"; then
9669 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
93189670 allow_undefined_flag="-z nodefs"
9319 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"
9671 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"
93209672 else
93219673 # Determine the default libpath from the value encoded in an
93229674 # empty executable.
9323 if test "${lt_cv_aix_libpath+set}" = set; then
9675 if test set = "${lt_cv_aix_libpath+set}"; then
93249676 aix_libpath=$lt_cv_aix_libpath
93259677 else
93269678 if ${lt_cv_aix_libpath_+:} false; then :
93559707 rm -f core conftest.err conftest.$ac_objext \
93569708 conftest$ac_exeext conftest.$ac_ext
93579709 if test -z "$lt_cv_aix_libpath_"; then
9358 lt_cv_aix_libpath_="/usr/lib:/lib"
9710 lt_cv_aix_libpath_=/usr/lib:/lib
93599711 fi
93609712
93619713 fi
93639715 aix_libpath=$lt_cv_aix_libpath_
93649716 fi
93659717
9366 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9718 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
93679719 # Warning - without using the other run time loading flags,
93689720 # -berok will link without error, but may produce a broken library.
9369 no_undefined_flag=' ${wl}-bernotok'
9370 allow_undefined_flag=' ${wl}-berok'
9371 if test "$with_gnu_ld" = yes; then
9721 no_undefined_flag=' $wl-bernotok'
9722 allow_undefined_flag=' $wl-berok'
9723 if test yes = "$with_gnu_ld"; then
93729724 # We only use this code for GNU lds that support --whole-archive.
9373 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9725 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
93749726 else
93759727 # Exported symbols can be pulled into shared objects from archives
93769728 whole_archive_flag_spec='$convenience'
93779729 fi
93789730 archive_cmds_need_lc=yes
9379 # This is similar to how AIX traditionally builds its shared libraries.
9380 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'
9731 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9732 # -brtl affects multiple linker settings, -berok does not and is overridden later
9733 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9734 if test svr4 != "$with_aix_soname"; then
9735 # This is similar to how AIX traditionally builds its shared libraries.
9736 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'
9737 fi
9738 if test aix != "$with_aix_soname"; then
9739 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'
9740 else
9741 # used by -dlpreopen to get the symbols
9742 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9743 fi
9744 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
93819745 fi
93829746 fi
93839747 ;;
93869750 case $host_cpu in
93879751 powerpc)
93889752 # see comment about AmigaOS4 .so support
9389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
93909754 archive_expsym_cmds=''
93919755 ;;
93929756 m68k)
94169780 # Tell ltmain to make .lib files, not .a files.
94179781 libext=lib
94189782 # Tell ltmain to make .dll files, not .so files.
9419 shrext_cmds=".dll"
9783 shrext_cmds=.dll
94209784 # FIXME: Setting linknames here is a bad hack.
9421 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9422 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9423 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9424 else
9425 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9426 fi~
9427 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9428 linknames='
9785 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9786 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9787 cp "$export_symbols" "$output_objdir/$soname.def";
9788 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9789 else
9790 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9791 fi~
9792 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9793 linknames='
94299794 # The linker will not automatically build a static lib if we build a DLL.
94309795 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
94319796 enable_shared_with_static_runtimes=yes
94349799 # Don't use ranlib
94359800 old_postinstall_cmds='chmod 644 $oldlib'
94369801 postlink_cmds='lt_outputfile="@OUTPUT@"~
9437 lt_tool_outputfile="@TOOL_OUTPUT@"~
9438 case $lt_outputfile in
9439 *.exe|*.EXE) ;;
9440 *)
9441 lt_outputfile="$lt_outputfile.exe"
9442 lt_tool_outputfile="$lt_tool_outputfile.exe"
9443 ;;
9444 esac~
9445 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9446 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9447 $RM "$lt_outputfile.manifest";
9448 fi'
9802 lt_tool_outputfile="@TOOL_OUTPUT@"~
9803 case $lt_outputfile in
9804 *.exe|*.EXE) ;;
9805 *)
9806 lt_outputfile=$lt_outputfile.exe
9807 lt_tool_outputfile=$lt_tool_outputfile.exe
9808 ;;
9809 esac~
9810 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9811 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9812 $RM "$lt_outputfile.manifest";
9813 fi'
94499814 ;;
94509815 *)
94519816 # Assume MSVC wrapper
94549819 # Tell ltmain to make .lib files, not .a files.
94559820 libext=lib
94569821 # Tell ltmain to make .dll files, not .so files.
9457 shrext_cmds=".dll"
9822 shrext_cmds=.dll
94589823 # FIXME: Setting linknames here is a bad hack.
94599824 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
94609825 # The linker will automatically build a .lib file if we build a DLL.
94739838 hardcode_direct=no
94749839 hardcode_automatic=yes
94759840 hardcode_shlibpath_var=unsupported
9476 if test "$lt_cv_ld_force_load" = "yes"; then
9477 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\"`'
9841 if test yes = "$lt_cv_ld_force_load"; then
9842 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\"`'
94789843
94799844 else
94809845 whole_archive_flag_spec=''
94819846 fi
94829847 link_all_deplibs=yes
9483 allow_undefined_flag="$_lt_dar_allow_undefined"
9848 allow_undefined_flag=$_lt_dar_allow_undefined
94849849 case $cc_basename in
9485 ifort*) _lt_dar_can_shared=yes ;;
9850 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
94869851 *) _lt_dar_can_shared=$GCC ;;
94879852 esac
9488 if test "$_lt_dar_can_shared" = "yes"; then
9853 if test yes = "$_lt_dar_can_shared"; then
94899854 output_verbose_link_cmd=func_echo_all
9490 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9491 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9492 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}"
9493 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}"
9855 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9856 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9857 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"
9858 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"
94949859
94959860 else
94969861 ld_shlibs=no
95329897 ;;
95339898
95349899 hpux9*)
9535 if test "$GCC" = yes; then
9536 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'
9900 if test yes = "$GCC"; then
9901 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'
95379902 else
9538 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'
9903 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'
95399904 fi
9540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9905 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
95419906 hardcode_libdir_separator=:
95429907 hardcode_direct=yes
95439908
95449909 # hardcode_minus_L: Not really in the search PATH,
95459910 # but as the default location of the library.
95469911 hardcode_minus_L=yes
9547 export_dynamic_flag_spec='${wl}-E'
9912 export_dynamic_flag_spec='$wl-E'
95489913 ;;
95499914
95509915 hpux10*)
9551 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9552 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9916 if test yes,no = "$GCC,$with_gnu_ld"; then
9917 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
95539918 else
95549919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
95559920 fi
9556 if test "$with_gnu_ld" = no; then
9557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9921 if test no = "$with_gnu_ld"; then
9922 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
95589923 hardcode_libdir_separator=:
95599924 hardcode_direct=yes
95609925 hardcode_direct_absolute=yes
9561 export_dynamic_flag_spec='${wl}-E'
9926 export_dynamic_flag_spec='$wl-E'
95629927 # hardcode_minus_L: Not really in the search PATH,
95639928 # but as the default location of the library.
95649929 hardcode_minus_L=yes
95669931 ;;
95679932
95689933 hpux11*)
9569 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9934 if test yes,no = "$GCC,$with_gnu_ld"; then
95709935 case $host_cpu in
95719936 hppa*64*)
9572 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
95739938 ;;
95749939 ia64*)
9575 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
95769941 ;;
95779942 *)
9578 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
95799944 ;;
95809945 esac
95819946 else
95829947 case $host_cpu in
95839948 hppa*64*)
9584 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
95859950 ;;
95869951 ia64*)
9587 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9952 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
95889953 ;;
95899954 *)
95909955
95969961 $as_echo_n "(cached) " >&6
95979962 else
95989963 lt_cv_prog_compiler__b=no
9599 save_LDFLAGS="$LDFLAGS"
9964 save_LDFLAGS=$LDFLAGS
96009965 LDFLAGS="$LDFLAGS -b"
96019966 echo "$lt_simple_link_test_code" > conftest.$ac_ext
96029967 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
96159980 fi
96169981 fi
96179982 $RM -r conftest*
9618 LDFLAGS="$save_LDFLAGS"
9983 LDFLAGS=$save_LDFLAGS
96199984
96209985 fi
96219986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
96229987 $as_echo "$lt_cv_prog_compiler__b" >&6; }
96239988
9624 if test x"$lt_cv_prog_compiler__b" = xyes; then
9625 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 if test yes = "$lt_cv_prog_compiler__b"; then
9990 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
96269991 else
96279992 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
96289993 fi
96309995 ;;
96319996 esac
96329997 fi
9633 if test "$with_gnu_ld" = no; then
9634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9998 if test no = "$with_gnu_ld"; then
9999 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
963510000 hardcode_libdir_separator=:
963610001
963710002 case $host_cpu in
964210007 *)
964310008 hardcode_direct=yes
964410009 hardcode_direct_absolute=yes
9645 export_dynamic_flag_spec='${wl}-E'
10010 export_dynamic_flag_spec='$wl-E'
964610011
964710012 # hardcode_minus_L: Not really in the search PATH,
964810013 # but as the default location of the library.
965310018 ;;
965410019
965510020 irix5* | irix6* | nonstopux*)
9656 if test "$GCC" = yes; then
9657 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'
10021 if test yes = "$GCC"; then
10022 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'
965810023 # Try to use the -exported_symbol ld option, if it does not
965910024 # work, assume that -exports_file does not work either and
966010025 # implicitly export all symbols.
966410029 if ${lt_cv_irix_exported_symbol+:} false; then :
966510030 $as_echo_n "(cached) " >&6
966610031 else
9667 save_LDFLAGS="$LDFLAGS"
9668 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10032 save_LDFLAGS=$LDFLAGS
10033 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
966910034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
967010035 /* end confdefs.h. */
967110036 int foo (void) { return 0; }
967710042 fi
967810043 rm -f core conftest.err conftest.$ac_objext \
967910044 conftest$ac_exeext conftest.$ac_ext
9680 LDFLAGS="$save_LDFLAGS"
10045 LDFLAGS=$save_LDFLAGS
968110046 fi
968210047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
968310048 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9684 if test "$lt_cv_irix_exported_symbol" = yes; then
9685 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'
10049 if test yes = "$lt_cv_irix_exported_symbol"; then
10050 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'
968610051 fi
10052 link_all_deplibs=no
968710053 else
9688 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'
9689 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'
10054 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'
10055 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'
969010056 fi
969110057 archive_cmds_need_lc='no'
9692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10058 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
969310059 hardcode_libdir_separator=:
969410060 inherit_rpath=yes
969510061 link_all_deplibs=yes
10062 ;;
10063
10064 linux*)
10065 case $cc_basename in
10066 tcc*)
10067 # Fabrice Bellard et al's Tiny C Compiler
10068 ld_shlibs=yes
10069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10070 ;;
10071 esac
969610072 ;;
969710073
969810074 netbsd* | netbsdelf*-gnu)
970910085 newsos6)
971010086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
971110087 hardcode_direct=yes
9712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
971310089 hardcode_libdir_separator=:
971410090 hardcode_shlibpath_var=no
971510091 ;;
971710093 *nto* | *qnx*)
971810094 ;;
971910095
9720 openbsd*)
10096 openbsd* | bitrig*)
972110097 if test -f /usr/libexec/ld.so; then
972210098 hardcode_direct=yes
972310099 hardcode_shlibpath_var=no
972410100 hardcode_direct_absolute=yes
9725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
972610102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9728 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9729 export_dynamic_flag_spec='${wl}-E'
10103 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10104 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10105 export_dynamic_flag_spec='$wl-E'
973010106 else
9731 case $host_os in
9732 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_libdir_flag_spec='-R$libdir'
9735 ;;
9736 *)
9737 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9738 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9739 ;;
9740 esac
10107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10108 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
974110109 fi
974210110 else
974310111 ld_shlibs=no
974810116 hardcode_libdir_flag_spec='-L$libdir'
974910117 hardcode_minus_L=yes
975010118 allow_undefined_flag=unsupported
9751 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'
9752 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10119 shrext_cmds=.dll
10120 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10123 $ECHO EXPORTS >> $output_objdir/$libname.def~
10124 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10125 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10126 emximp -o $lib $output_objdir/$libname.def'
10127 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10128 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10129 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10130 $ECHO EXPORTS >> $output_objdir/$libname.def~
10131 prefix_cmds="$SED"~
10132 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10133 prefix_cmds="$prefix_cmds -e 1d";
10134 fi~
10135 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10136 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10137 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10138 emximp -o $lib $output_objdir/$libname.def'
10139 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10140 enable_shared_with_static_runtimes=yes
975310141 ;;
975410142
975510143 osf3*)
9756 if test "$GCC" = yes; then
9757 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9758 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'
10144 if test yes = "$GCC"; then
10145 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10146 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'
975910147 else
976010148 allow_undefined_flag=' -expect_unresolved \*'
9761 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'
10149 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'
976210150 fi
976310151 archive_cmds_need_lc='no'
9764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
976510153 hardcode_libdir_separator=:
976610154 ;;
976710155
976810156 osf4* | osf5*) # as osf3* with the addition of -msym flag
9769 if test "$GCC" = yes; then
9770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9771 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'
9772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10157 if test yes = "$GCC"; then
10158 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10159 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'
10160 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
977310161 else
977410162 allow_undefined_flag=' -expect_unresolved \*'
9775 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'
10163 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'
977610164 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~
9777 $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'
10165 $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'
977810166
977910167 # Both c and cxx compiler support -rpath directly
978010168 hardcode_libdir_flag_spec='-rpath $libdir'
978510173
978610174 solaris*)
978710175 no_undefined_flag=' -z defs'
9788 if test "$GCC" = yes; then
9789 wlarc='${wl}'
9790 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 if test yes = "$GCC"; then
10177 wlarc='$wl'
10178 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
979110179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9792 $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'
10180 $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'
979310181 else
979410182 case `$CC -V 2>&1` in
979510183 *"Compilers 5.0"*)
979610184 wlarc=''
9797 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10185 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
979810186 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9799 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10187 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
980010188 ;;
980110189 *)
9802 wlarc='${wl}'
9803 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10190 wlarc='$wl'
10191 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
980410192 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9805 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10193 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
980610194 ;;
980710195 esac
980810196 fi
981210200 solaris2.[0-5] | solaris2.[0-5].*) ;;
981310201 *)
981410202 # The compiler driver will combine and reorder linker options,
9815 # but understands `-z linker_flag'. GCC discards it without `$wl',
10203 # but understands '-z linker_flag'. GCC discards it without '$wl',
981610204 # but is careful enough not to reorder.
981710205 # Supported since Solaris 2.6 (maybe 2.5.1?)
9818 if test "$GCC" = yes; then
9819 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10206 if test yes = "$GCC"; then
10207 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
982010208 else
982110209 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
982210210 fi
982610214 ;;
982710215
982810216 sunos4*)
9829 if test "x$host_vendor" = xsequent; then
10217 if test sequent = "$host_vendor"; then
983010218 # Use $CC to link under sequent, because it throws in some extra .o
983110219 # files that make .init and .fini sections work.
9832 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
983310221 else
983410222 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
983510223 fi
987810266 ;;
987910267
988010268 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9881 no_undefined_flag='${wl}-z,text'
10269 no_undefined_flag='$wl-z,text'
988210270 archive_cmds_need_lc=no
988310271 hardcode_shlibpath_var=no
988410272 runpath_var='LD_RUN_PATH'
988510273
9886 if test "$GCC" = yes; then
9887 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9888 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 if test yes = "$GCC"; then
10275 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
988910277 else
9890 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10278 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
989210280 fi
989310281 ;;
989410282
989510283 sysv5* | sco3.2v5* | sco5v6*)
9896 # Note: We can NOT use -z defs as we might desire, because we do not
10284 # Note: We CANNOT use -z defs as we might desire, because we do not
989710285 # link with -lc, and that would cause any symbols used from libc to
989810286 # always be unresolved, which means just about no library would
989910287 # ever link correctly. If we're not using GNU ld we use -z text
990010288 # though, which does catch some bad symbols but isn't as heavy-handed
990110289 # as -z defs.
9902 no_undefined_flag='${wl}-z,text'
9903 allow_undefined_flag='${wl}-z,nodefs'
10290 no_undefined_flag='$wl-z,text'
10291 allow_undefined_flag='$wl-z,nodefs'
990410292 archive_cmds_need_lc=no
990510293 hardcode_shlibpath_var=no
9906 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10294 hardcode_libdir_flag_spec='$wl-R,$libdir'
990710295 hardcode_libdir_separator=':'
990810296 link_all_deplibs=yes
9909 export_dynamic_flag_spec='${wl}-Bexport'
10297 export_dynamic_flag_spec='$wl-Bexport'
991010298 runpath_var='LD_RUN_PATH'
991110299
9912 if test "$GCC" = yes; then
9913 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9914 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 if test yes = "$GCC"; then
10301 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
991510303 else
9916 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
991810306 fi
991910307 ;;
992010308
992910317 ;;
993010318 esac
993110319
9932 if test x$host_vendor = xsni; then
10320 if test sni = "$host_vendor"; then
993310321 case $host in
993410322 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9935 export_dynamic_flag_spec='${wl}-Blargedynsym'
10323 export_dynamic_flag_spec='$wl-Blargedynsym'
993610324 ;;
993710325 esac
993810326 fi
994010328
994110329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
994210330 $as_echo "$ld_shlibs" >&6; }
9943 test "$ld_shlibs" = no && can_build_shared=no
10331 test no = "$ld_shlibs" && can_build_shared=no
994410332
994510333 with_gnu_ld=$with_gnu_ld
994610334
996610354 # Assume -lc should be added
996710355 archive_cmds_need_lc=yes
996810356
9969 if test "$enable_shared" = yes && test "$GCC" = yes; then
10357 if test yes,yes = "$GCC,$enable_shared"; then
997010358 case $archive_cmds in
997110359 *'~'*)
997210360 # FIXME: we may have to deal with multi-command sequences.
1018110569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1018210570 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1018310571
10184 if test "$GCC" = yes; then
10572 if test yes = "$GCC"; then
1018510573 case $host_os in
10186 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10187 *) lt_awk_arg="/^libraries:/" ;;
10574 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10575 *) lt_awk_arg='/^libraries:/' ;;
1018810576 esac
1018910577 case $host_os in
10190 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10191 *) lt_sed_strip_eq="s,=/,/,g" ;;
10578 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10579 *) lt_sed_strip_eq='s|=/|/|g' ;;
1019210580 esac
1019310581 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
1019410582 case $lt_search_path_spec in
1020410592 ;;
1020510593 esac
1020610594 # Ok, now we have the path, separated by spaces, we can step through it
10207 # and add multilib dir if necessary.
10595 # and add multilib dir if necessary...
1020810596 lt_tmp_lt_search_path_spec=
10209 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10597 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10598 # ...but if some path component already ends with the multilib dir we assume
10599 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10600 case "$lt_multi_os_dir; $lt_search_path_spec " in
10601 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10602 lt_multi_os_dir=
10603 ;;
10604 esac
1021010605 for lt_sys_path in $lt_search_path_spec; do
10211 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10212 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10213 else
10606 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10607 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10608 elif test -n "$lt_multi_os_dir"; then
1021410609 test -d "$lt_sys_path" && \
1021510610 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1021610611 fi
1021710612 done
1021810613 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10219 BEGIN {RS=" "; FS="/|\n";} {
10220 lt_foo="";
10221 lt_count=0;
10614 BEGIN {RS = " "; FS = "/|\n";} {
10615 lt_foo = "";
10616 lt_count = 0;
1022210617 for (lt_i = NF; lt_i > 0; lt_i--) {
1022310618 if ($lt_i != "" && $lt_i != ".") {
1022410619 if ($lt_i == "..") {
1022510620 lt_count++;
1022610621 } else {
1022710622 if (lt_count == 0) {
10228 lt_foo="/" $lt_i lt_foo;
10623 lt_foo = "/" $lt_i lt_foo;
1022910624 } else {
1023010625 lt_count--;
1023110626 }
1023910634 # for these hosts.
1024010635 case $host_os in
1024110636 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10242 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10637 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1024310638 esac
1024410639 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1024510640 else
1024810643 library_names_spec=
1024910644 libname_spec='lib$name'
1025010645 soname_spec=
10251 shrext_cmds=".so"
10646 shrext_cmds=.so
1025210647 postinstall_cmds=
1025310648 postuninstall_cmds=
1025410649 finish_cmds=
1026510660 # flags to be left without arguments
1026610661 need_version=unknown
1026710662
10663
10664
1026810665 case $host_os in
1026910666 aix3*)
1027010667 version_type=linux # correct to gnu/linux during the next big refactor
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10668 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1027210669 shlibpath_var=LIBPATH
1027310670
1027410671 # AIX 3 has no versioning support, so we append a major version to the name.
10275 soname_spec='${libname}${release}${shared_ext}$major'
10672 soname_spec='$libname$release$shared_ext$major'
1027610673 ;;
1027710674
1027810675 aix[4-9]*)
1028010677 need_lib_prefix=no
1028110678 need_version=no
1028210679 hardcode_into_libs=yes
10283 if test "$host_cpu" = ia64; then
10680 if test ia64 = "$host_cpu"; then
1028410681 # AIX 5 supports IA64
10285 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10682 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1028610683 shlibpath_var=LD_LIBRARY_PATH
1028710684 else
1028810685 # With GCC up to 2.95.x, collect2 would create an import file
1028910686 # for dependence libraries. The import file would start with
10290 # the line `#! .'. This would cause the generated library to
10291 # depend on `.', always an invalid library. This was fixed in
10687 # the line '#! .'. This would cause the generated library to
10688 # depend on '.', always an invalid library. This was fixed in
1029210689 # development snapshots of GCC prior to 3.0.
1029310690 case $host_os in
1029410691 aix4 | aix4.[01] | aix4.[01].*)
1029510692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1029610693 echo ' yes '
10297 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10694 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1029810695 :
1029910696 else
1030010697 can_build_shared=no
1030110698 fi
1030210699 ;;
1030310700 esac
10304 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10701 # Using Import Files as archive members, it is possible to support
10702 # filename-based versioning of shared library archives on AIX. While
10703 # this would work for both with and without runtime linking, it will
10704 # prevent static linking of such archives. So we do filename-based
10705 # shared library versioning with .so extension only, which is used
10706 # when both runtime linking and shared linking is enabled.
10707 # Unfortunately, runtime linking may impact performance, so we do
10708 # not want this to be the default eventually. Also, we use the
10709 # versioned .so libs for executables only if there is the -brtl
10710 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10711 # To allow for filename-based versioning support, we need to create
10712 # libNAME.so.V as an archive file, containing:
10713 # *) an Import File, referring to the versioned filename of the
10714 # archive as well as the shared archive member, telling the
10715 # bitwidth (32 or 64) of that shared object, and providing the
10716 # list of exported symbols of that shared object, eventually
10717 # decorated with the 'weak' keyword
10718 # *) the shared object with the F_LOADONLY flag set, to really avoid
10719 # it being seen by the linker.
10720 # At run time we better use the real file rather than another symlink,
10721 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10722
10723 case $with_aix_soname,$aix_use_runtimelinking in
10724 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1030510725 # soname into executable. Probably we can add versioning support to
1030610726 # collect2, so additional links can be useful in future.
10307 if test "$aix_use_runtimelinking" = yes; then
10727 aix,yes) # traditional libtool
10728 dynamic_linker='AIX unversionable lib.so'
1030810729 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1030910730 # instead of lib<name>.a to let people know that these are not
1031010731 # typical AIX shared libraries.
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 else
10732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10733 ;;
10734 aix,no) # traditional AIX only
10735 dynamic_linker='AIX lib.a(lib.so.V)'
1031310736 # We preserve .a as extension for shared libraries through AIX4.2
1031410737 # and later when we are not doing run time linking.
10315 library_names_spec='${libname}${release}.a $libname.a'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 fi
10738 library_names_spec='$libname$release.a $libname.a'
10739 soname_spec='$libname$release$shared_ext$major'
10740 ;;
10741 svr4,*) # full svr4 only
10742 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10743 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10744 # We do not specify a path in Import Files, so LIBPATH fires.
10745 shlibpath_overrides_runpath=yes
10746 ;;
10747 *,yes) # both, prefer svr4
10748 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10749 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10750 # unpreferred sharedlib libNAME.a needs extra handling
10751 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"'
10752 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"'
10753 # We do not specify a path in Import Files, so LIBPATH fires.
10754 shlibpath_overrides_runpath=yes
10755 ;;
10756 *,no) # both, prefer aix
10757 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10758 library_names_spec='$libname$release.a $libname.a'
10759 soname_spec='$libname$release$shared_ext$major'
10760 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10761 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)'
10762 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"'
10763 ;;
10764 esac
1031810765 shlibpath_var=LIBPATH
1031910766 fi
1032010767 ;;
1032410771 powerpc)
1032510772 # Since July 2007 AmigaOS4 officially supports .so libraries.
1032610773 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1032810775 ;;
1032910776 m68k)
1033010777 library_names_spec='$libname.ixlibrary $libname.a'
1033110778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10332 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'
10779 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'
1033310780 ;;
1033410781 esac
1033510782 ;;
1033610783
1033710784 beos*)
10338 library_names_spec='${libname}${shared_ext}'
10785 library_names_spec='$libname$shared_ext'
1033910786 dynamic_linker="$host_os ld.so"
1034010787 shlibpath_var=LIBRARY_PATH
1034110788 ;;
1034310790 bsdi[45]*)
1034410791 version_type=linux # correct to gnu/linux during the next big refactor
1034510792 need_version=no
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10794 soname_spec='$libname$release$shared_ext$major'
1034810795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1034910796 shlibpath_var=LD_LIBRARY_PATH
1035010797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1035610803
1035710804 cygwin* | mingw* | pw32* | cegcc*)
1035810805 version_type=windows
10359 shrext_cmds=".dll"
10806 shrext_cmds=.dll
1036010807 need_version=no
1036110808 need_lib_prefix=no
1036210809
1036510812 # gcc
1036610813 library_names_spec='$libname.dll.a'
1036710814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10368 postinstall_cmds='base_file=`basename \${file}`~
10369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10815 postinstall_cmds='base_file=`basename \$file`~
10816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1037010817 dldir=$destdir/`dirname \$dlpath`~
1037110818 test -d \$dldir || mkdir -p \$dldir~
1037210819 $install_prog $dir/$dlname \$dldir/$dlname~
1038210829 case $host_os in
1038310830 cygwin*)
1038410831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10832 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1038610833
1038710834 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1038810835 ;;
1038910836 mingw* | cegcc*)
1039010837 # MinGW DLLs use traditional 'lib' prefix
10391 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10838 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1039210839 ;;
1039310840 pw32*)
1039410841 # pw32 DLLs use 'pw' prefix rather than 'lib'
10395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10842 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1039610843 ;;
1039710844 esac
1039810845 dynamic_linker='Win32 ld.exe'
1040110848 *,cl*)
1040210849 # Native MSVC
1040310850 libname_spec='$name'
10404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10405 library_names_spec='${libname}.dll.lib'
10851 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10852 library_names_spec='$libname.dll.lib'
1040610853
1040710854 case $build_os in
1040810855 mingw*)
1042910876 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1043010877 ;;
1043110878 *)
10432 sys_lib_search_path_spec="$LIB"
10879 sys_lib_search_path_spec=$LIB
1043310880 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1043410881 # It is most probably a Windows format PATH.
1043510882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1044210889 esac
1044310890
1044410891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10445 postinstall_cmds='base_file=`basename \${file}`~
10446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10892 postinstall_cmds='base_file=`basename \$file`~
10893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1044710894 dldir=$destdir/`dirname \$dlpath`~
1044810895 test -d \$dldir || mkdir -p \$dldir~
1044910896 $install_prog $dir/$dlname \$dldir/$dlname'
1045610903
1045710904 *)
1045810905 # Assume MSVC wrapper
10459 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10906 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1046010907 dynamic_linker='Win32 ld.exe'
1046110908 ;;
1046210909 esac
1046910916 version_type=darwin
1047010917 need_lib_prefix=no
1047110918 need_version=no
10472 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10473 soname_spec='${libname}${release}${major}$shared_ext'
10919 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10920 soname_spec='$libname$release$major$shared_ext'
1047410921 shlibpath_overrides_runpath=yes
1047510922 shlibpath_var=DYLD_LIBRARY_PATH
1047610923 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1048310930 version_type=linux # correct to gnu/linux during the next big refactor
1048410931 need_lib_prefix=no
1048510932 need_version=no
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10934 soname_spec='$libname$release$shared_ext$major'
1048810935 shlibpath_var=LD_LIBRARY_PATH
1048910936 ;;
1049010937
1050210949 version_type=freebsd-$objformat
1050310950 case $version_type in
1050410951 freebsd-elf*)
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10953 soname_spec='$libname$release$shared_ext$major'
1050610954 need_version=no
1050710955 need_lib_prefix=no
1050810956 ;;
1050910957 freebsd-*)
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10958 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1051110959 need_version=yes
1051210960 ;;
1051310961 esac
1053710985 need_lib_prefix=no
1053810986 need_version=no
1053910987 dynamic_linker="$host_os runtime_loader"
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10989 soname_spec='$libname$release$shared_ext$major'
1054210990 shlibpath_var=LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10991 shlibpath_overrides_runpath=no
1054410992 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1054510993 hardcode_into_libs=yes
1054610994 ;;
1055811006 dynamic_linker="$host_os dld.so"
1055911007 shlibpath_var=LD_LIBRARY_PATH
1056011008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 soname_spec='${libname}${release}${shared_ext}$major'
10563 if test "X$HPUX_IA64_MODE" = X32; then
11009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11010 soname_spec='$libname$release$shared_ext$major'
11011 if test 32 = "$HPUX_IA64_MODE"; then
1056411012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11013 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1056511014 else
1056611015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11016 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1056711017 fi
10568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1056911018 ;;
1057011019 hppa*64*)
1057111020 shrext_cmds='.sl'
1057311022 dynamic_linker="$host_os dld.sl"
1057411023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1057511024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
11025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11026 soname_spec='$libname$release$shared_ext$major'
1057811027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1057911028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1058011029 ;;
1058311032 dynamic_linker="$host_os dld.sl"
1058411033 shlibpath_var=SHLIB_PATH
1058511034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
11035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11036 soname_spec='$libname$release$shared_ext$major'
1058811037 ;;
1058911038 esac
1059011039 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1059711046 version_type=linux # correct to gnu/linux during the next big refactor
1059811047 need_lib_prefix=no
1059911048 need_version=no
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10601 soname_spec='${libname}${release}${shared_ext}$major'
11049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11050 soname_spec='$libname$release$shared_ext$major'
1060211051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1060311052 shlibpath_var=LD_LIBRARY_PATH
1060411053 shlibpath_overrides_runpath=no
1060911058 case $host_os in
1061011059 nonstopux*) version_type=nonstopux ;;
1061111060 *)
10612 if test "$lt_cv_prog_gnu_ld" = yes; then
11061 if test yes = "$lt_cv_prog_gnu_ld"; then
1061311062 version_type=linux # correct to gnu/linux during the next big refactor
1061411063 else
1061511064 version_type=irix
1061711066 esac
1061811067 need_lib_prefix=no
1061911068 need_version=no
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11069 soname_spec='$libname$release$shared_ext$major'
11070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1062211071 case $host_os in
1062311072 irix5* | nonstopux*)
1062411073 libsuff= shlibsuff=
1063711086 esac
1063811087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1063911088 shlibpath_overrides_runpath=no
10640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11089 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11090 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1064211091 hardcode_into_libs=yes
1064311092 ;;
1064411093
1064511094 # No shared lib support for Linux oldld, aout, or coff.
1064611095 linux*oldld* | linux*aout* | linux*coff*)
1064711096 dynamic_linker=no
11097 ;;
11098
11099 linux*android*)
11100 version_type=none # Android doesn't support versioned libraries.
11101 need_lib_prefix=no
11102 need_version=no
11103 library_names_spec='$libname$release$shared_ext'
11104 soname_spec='$libname$release$shared_ext'
11105 finish_cmds=
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108
11109 # This implies no fast_install, which is unacceptable.
11110 # Some rework will be needed to allow for fast_install
11111 # before this can be enabled.
11112 hardcode_into_libs=yes
11113
11114 dynamic_linker='Android linker'
11115 # Don't embed -rpath directories since the linker doesn't support them.
11116 hardcode_libdir_flag_spec='-L$libdir'
1064811117 ;;
1064911118
1065011119 # This must be glibc/ELF.
1065211121 version_type=linux # correct to gnu/linux during the next big refactor
1065311122 need_lib_prefix=no
1065411123 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125 soname_spec='$libname$release$shared_ext$major'
1065711126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1065811127 shlibpath_var=LD_LIBRARY_PATH
1065911128 shlibpath_overrides_runpath=no
1069711166 # before this can be enabled.
1069811167 hardcode_into_libs=yes
1069911168
10700 # Append ld.so.conf contents to the search path
11169 # Ideally, we could use ldconfig to report *all* directores which are
11170 # searched for libraries, however this is still not possible. Aside from not
11171 # being certain /sbin/ldconfig is available, command
11172 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11173 # even though it is searched at run-time. Try to do the best guess by
11174 # appending ld.so.conf contents (and includes) to the search path.
1070111175 if test -f /etc/ld.so.conf; then
1070211176 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' ' '`
1070311177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1072911203 need_lib_prefix=no
1073011204 need_version=no
1073111205 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11206 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1073311207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1073411208 dynamic_linker='NetBSD (a.out) ld.so'
1073511209 else
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10737 soname_spec='${libname}${release}${shared_ext}$major'
11210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11211 soname_spec='$libname$release$shared_ext$major'
1073811212 dynamic_linker='NetBSD ld.elf_so'
1073911213 fi
1074011214 shlibpath_var=LD_LIBRARY_PATH
1074411218
1074511219 newsos6)
1074611220 version_type=linux # correct to gnu/linux during the next big refactor
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1074811222 shlibpath_var=LD_LIBRARY_PATH
1074911223 shlibpath_overrides_runpath=yes
1075011224 ;;
1075311227 version_type=qnx
1075411228 need_lib_prefix=no
1075511229 need_version=no
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11231 soname_spec='$libname$release$shared_ext$major'
1075811232 shlibpath_var=LD_LIBRARY_PATH
1075911233 shlibpath_overrides_runpath=no
1076011234 hardcode_into_libs=yes
1076111235 dynamic_linker='ldqnx.so'
1076211236 ;;
1076311237
10764 openbsd*)
11238 openbsd* | bitrig*)
1076511239 version_type=sunos
10766 sys_lib_dlsearch_path_spec="/usr/lib"
11240 sys_lib_dlsearch_path_spec=/usr/lib
1076711241 need_lib_prefix=no
10768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10769 case $host_os in
10770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10771 *) need_version=no ;;
10772 esac
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11242 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11243 need_version=no
11244 else
11245 need_version=yes
11246 fi
11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1077411248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1077511249 shlibpath_var=LD_LIBRARY_PATH
10776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10777 case $host_os in
10778 openbsd2.[89] | openbsd2.[89].*)
10779 shlibpath_overrides_runpath=no
10780 ;;
10781 *)
10782 shlibpath_overrides_runpath=yes
10783 ;;
10784 esac
10785 else
10786 shlibpath_overrides_runpath=yes
10787 fi
11250 shlibpath_overrides_runpath=yes
1078811251 ;;
1078911252
1079011253 os2*)
1079111254 libname_spec='$name'
10792 shrext_cmds=".dll"
11255 version_type=windows
11256 shrext_cmds=.dll
11257 need_version=no
1079311258 need_lib_prefix=no
10794 library_names_spec='$libname${shared_ext} $libname.a'
11259 # OS/2 can only load a DLL with a base name of 8 characters or less.
11260 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11261 v=$($ECHO $release$versuffix | tr -d .-);
11262 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11263 $ECHO $n$v`$shared_ext'
11264 library_names_spec='${libname}_dll.$libext'
1079511265 dynamic_linker='OS/2 ld.exe'
10796 shlibpath_var=LIBPATH
11266 shlibpath_var=BEGINLIBPATH
11267 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11269 postinstall_cmds='base_file=`basename \$file`~
11270 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11271 dldir=$destdir/`dirname \$dlpath`~
11272 test -d \$dldir || mkdir -p \$dldir~
11273 $install_prog $dir/$dlname \$dldir/$dlname~
11274 chmod a+x \$dldir/$dlname~
11275 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11276 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11277 fi'
11278 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11279 dlpath=$dir/\$dldll~
11280 $RM \$dlpath'
1079711281 ;;
1079811282
1079911283 osf3* | osf4* | osf5*)
1080011284 version_type=osf
1080111285 need_lib_prefix=no
1080211286 need_version=no
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 soname_spec='$libname$release$shared_ext$major'
11288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1080511289 shlibpath_var=LD_LIBRARY_PATH
1080611290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1080811292 ;;
1080911293
1081011294 rdos*)
1081511299 version_type=linux # correct to gnu/linux during the next big refactor
1081611300 need_lib_prefix=no
1081711301 need_version=no
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
11302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11303 soname_spec='$libname$release$shared_ext$major'
1082011304 shlibpath_var=LD_LIBRARY_PATH
1082111305 shlibpath_overrides_runpath=yes
1082211306 hardcode_into_libs=yes
1082611310
1082711311 sunos4*)
1082811312 version_type=sunos
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1083011314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1083111315 shlibpath_var=LD_LIBRARY_PATH
1083211316 shlibpath_overrides_runpath=yes
10833 if test "$with_gnu_ld" = yes; then
11317 if test yes = "$with_gnu_ld"; then
1083411318 need_lib_prefix=no
1083511319 fi
1083611320 need_version=yes
1083811322
1083911323 sysv4 | sysv4.3*)
1084011324 version_type=linux # correct to gnu/linux during the next big refactor
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
11325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11326 soname_spec='$libname$release$shared_ext$major'
1084311327 shlibpath_var=LD_LIBRARY_PATH
1084411328 case $host_vendor in
1084511329 sni)
1086011344 ;;
1086111345
1086211346 sysv4*MP*)
10863 if test -d /usr/nec ;then
11347 if test -d /usr/nec; then
1086411348 version_type=linux # correct to gnu/linux during the next big refactor
10865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10866 soname_spec='$libname${shared_ext}.$major'
11349 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11350 soname_spec='$libname$shared_ext.$major'
1086711351 shlibpath_var=LD_LIBRARY_PATH
1086811352 fi
1086911353 ;;
1087011354
1087111355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10872 version_type=freebsd-elf
11356 version_type=sco
1087311357 need_lib_prefix=no
1087411358 need_version=no
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
11359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11360 soname_spec='$libname$release$shared_ext$major'
1087711361 shlibpath_var=LD_LIBRARY_PATH
1087811362 shlibpath_overrides_runpath=yes
1087911363 hardcode_into_libs=yes
10880 if test "$with_gnu_ld" = yes; then
11364 if test yes = "$with_gnu_ld"; then
1088111365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1088211366 else
1088311367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1089511379 version_type=linux # correct to gnu/linux during the next big refactor
1089611380 need_lib_prefix=no
1089711381 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1089911383 shlibpath_var=LD_LIBRARY_PATH
1090011384 shlibpath_overrides_runpath=no
1090111385 hardcode_into_libs=yes
1090311387
1090411388 uts4*)
1090511389 version_type=linux # correct to gnu/linux during the next big refactor
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
11390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11391 soname_spec='$libname$release$shared_ext$major'
1090811392 shlibpath_var=LD_LIBRARY_PATH
1090911393 ;;
1091011394
1091411398 esac
1091511399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1091611400 $as_echo "$dynamic_linker" >&6; }
10917 test "$dynamic_linker" = no && can_build_shared=no
11401 test no = "$dynamic_linker" && can_build_shared=no
1091811402
1091911403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10920 if test "$GCC" = yes; then
11404 if test yes = "$GCC"; then
1092111405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1092211406 fi
1092311407
10924 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10925 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10926 fi
10927 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10928 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10929 fi
11408 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11409 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11410 fi
11411
11412 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11413 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11414 fi
11415
11416 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11417 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11418
11419 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11420 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11421
11422 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11423 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11424
11425
11426
11427
11428
1093011429
1093111430
1093211431
1102411523 hardcode_action=
1102511524 if test -n "$hardcode_libdir_flag_spec" ||
1102611525 test -n "$runpath_var" ||
11027 test "X$hardcode_automatic" = "Xyes" ; then
11526 test yes = "$hardcode_automatic"; then
1102811527
1102911528 # We can hardcode non-existent directories.
11030 if test "$hardcode_direct" != no &&
11529 if test no != "$hardcode_direct" &&
1103111530 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1103211531 # have to relink, otherwise we might link with an installed library
1103311532 # when we should be linking with a yet-to-be-installed one
11034 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11035 test "$hardcode_minus_L" != no; then
11533 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11534 test no != "$hardcode_minus_L"; then
1103611535 # Linking always hardcodes the temporary library directory.
1103711536 hardcode_action=relink
1103811537 else
1104711546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1104811547 $as_echo "$hardcode_action" >&6; }
1104911548
11050 if test "$hardcode_action" = relink ||
11051 test "$inherit_rpath" = yes; then
11549 if test relink = "$hardcode_action" ||
11550 test yes = "$inherit_rpath"; then
1105211551 # Fast installation is not supported
1105311552 enable_fast_install=no
11054 elif test "$shlibpath_overrides_runpath" = yes ||
11055 test "$enable_shared" = no; then
11553 elif test yes = "$shlibpath_overrides_runpath" ||
11554 test no = "$enable_shared"; then
1105611555 # Fast installation is not necessary
1105711556 enable_fast_install=needless
1105811557 fi
1106211561
1106311562
1106411563
11065 if test "x$enable_dlopen" != xyes; then
11564 if test yes != "$enable_dlopen"; then
1106611565 enable_dlopen=unknown
1106711566 enable_dlopen_self=unknown
1106811567 enable_dlopen_self_static=unknown
1107211571
1107311572 case $host_os in
1107411573 beos*)
11075 lt_cv_dlopen="load_add_on"
11574 lt_cv_dlopen=load_add_on
1107611575 lt_cv_dlopen_libs=
1107711576 lt_cv_dlopen_self=yes
1107811577 ;;
1107911578
1108011579 mingw* | pw32* | cegcc*)
11081 lt_cv_dlopen="LoadLibrary"
11580 lt_cv_dlopen=LoadLibrary
1108211581 lt_cv_dlopen_libs=
1108311582 ;;
1108411583
1108511584 cygwin*)
11086 lt_cv_dlopen="dlopen"
11585 lt_cv_dlopen=dlopen
1108711586 lt_cv_dlopen_libs=
1108811587 ;;
1108911588
1109011589 darwin*)
11091 # if libdl is installed we need to link against it
11590 # if libdl is installed we need to link against it
1109211591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1109311592 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1109411593 if ${ac_cv_lib_dl_dlopen+:} false; then :
1112611625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1112711626 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1112811627 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11130 else
11131
11132 lt_cv_dlopen="dyld"
11628 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11629 else
11630
11631 lt_cv_dlopen=dyld
1113311632 lt_cv_dlopen_libs=
1113411633 lt_cv_dlopen_self=yes
1113511634
1113611635 fi
1113711636
11637 ;;
11638
11639 tpf*)
11640 # Don't try to run any link tests for TPF. We know it's impossible
11641 # because TPF is a cross-compiler, and we know how we open DSOs.
11642 lt_cv_dlopen=dlopen
11643 lt_cv_dlopen_libs=
11644 lt_cv_dlopen_self=no
1113811645 ;;
1113911646
1114011647 *)
1114111648 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1114211649 if test "x$ac_cv_func_shl_load" = xyes; then :
11143 lt_cv_dlopen="shl_load"
11650 lt_cv_dlopen=shl_load
1114411651 else
1114511652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1114611653 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1117911686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1118011687 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1118111688 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11182 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11689 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1118311690 else
1118411691 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1118511692 if test "x$ac_cv_func_dlopen" = xyes; then :
11186 lt_cv_dlopen="dlopen"
11693 lt_cv_dlopen=dlopen
1118711694 else
1118811695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1118911696 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1122211729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1122311730 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1122411731 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11225 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11732 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1122611733 else
1122711734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1122811735 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1126111768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1126211769 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1126311770 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11771 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1126511772 else
1126611773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1126711774 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1130011807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1130111808 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1130211809 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11303 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11810 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1130411811 fi
1130511812
1130611813
1132111828 ;;
1132211829 esac
1132311830
11324 if test "x$lt_cv_dlopen" != xno; then
11831 if test no = "$lt_cv_dlopen"; then
11832 enable_dlopen=no
11833 else
1132511834 enable_dlopen=yes
11326 else
11327 enable_dlopen=no
1132811835 fi
1132911836
1133011837 case $lt_cv_dlopen in
1133111838 dlopen)
11332 save_CPPFLAGS="$CPPFLAGS"
11333 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11334
11335 save_LDFLAGS="$LDFLAGS"
11839 save_CPPFLAGS=$CPPFLAGS
11840 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11841
11842 save_LDFLAGS=$LDFLAGS
1133611843 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1133711844
11338 save_LIBS="$LIBS"
11845 save_LIBS=$LIBS
1133911846 LIBS="$lt_cv_dlopen_libs $LIBS"
1134011847
1134111848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1134311850 if ${lt_cv_dlopen_self+:} false; then :
1134411851 $as_echo_n "(cached) " >&6
1134511852 else
11346 if test "$cross_compiling" = yes; then :
11853 if test yes = "$cross_compiling"; then :
1134711854 lt_cv_dlopen_self=cross
1134811855 else
1134911856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1139011897 # endif
1139111898 #endif
1139211899
11393 /* When -fvisbility=hidden is used, assume the code has been annotated
11900 /* When -fvisibility=hidden is used, assume the code has been annotated
1139411901 correspondingly for the symbols needed. */
11395 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11902 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1139611903 int fnord () __attribute__((visibility("default")));
1139711904 #endif
1139811905
1142211929 (eval $ac_link) 2>&5
1142311930 ac_status=$?
1142411931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11425 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11932 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1142611933 (./conftest; exit; ) >&5 2>/dev/null
1142711934 lt_status=$?
1142811935 case x$lt_status in
1144211949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1144311950 $as_echo "$lt_cv_dlopen_self" >&6; }
1144411951
11445 if test "x$lt_cv_dlopen_self" = xyes; then
11952 if test yes = "$lt_cv_dlopen_self"; then
1144611953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1144711954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1144811955 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1144911956 if ${lt_cv_dlopen_self_static+:} false; then :
1145011957 $as_echo_n "(cached) " >&6
1145111958 else
11452 if test "$cross_compiling" = yes; then :
11959 if test yes = "$cross_compiling"; then :
1145311960 lt_cv_dlopen_self_static=cross
1145411961 else
1145511962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1149612003 # endif
1149712004 #endif
1149812005
11499 /* When -fvisbility=hidden is used, assume the code has been annotated
12006 /* When -fvisibility=hidden is used, assume the code has been annotated
1150012007 correspondingly for the symbols needed. */
11501 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12008 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1150212009 int fnord () __attribute__((visibility("default")));
1150312010 #endif
1150412011
1152812035 (eval $ac_link) 2>&5
1152912036 ac_status=$?
1153012037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11531 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12038 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1153212039 (./conftest; exit; ) >&5 2>/dev/null
1153312040 lt_status=$?
1153412041 case x$lt_status in
1154912056 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1155012057 fi
1155112058
11552 CPPFLAGS="$save_CPPFLAGS"
11553 LDFLAGS="$save_LDFLAGS"
11554 LIBS="$save_LIBS"
12059 CPPFLAGS=$save_CPPFLAGS
12060 LDFLAGS=$save_LDFLAGS
12061 LIBS=$save_LIBS
1155512062 ;;
1155612063 esac
1155712064
1159512102 # FIXME - insert some real tests, host_os isn't really good enough
1159612103 case $host_os in
1159712104 darwin*)
11598 if test -n "$STRIP" ; then
12105 if test -n "$STRIP"; then
1159912106 striplib="$STRIP -x"
1160012107 old_striplib="$STRIP -S"
1160112108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1162312130
1162412131
1162512132
11626 # Report which library types will actually be built
12133 # Report what library types will actually be built
1162712134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1162812135 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1162912136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1163112138
1163212139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1163312140 $as_echo_n "checking whether to build shared libraries... " >&6; }
11634 test "$can_build_shared" = "no" && enable_shared=no
12141 test no = "$can_build_shared" && enable_shared=no
1163512142
1163612143 # On AIX, shared libraries and static libraries use the same namespace, and
1163712144 # are all built from PIC.
1163812145 case $host_os in
1163912146 aix3*)
11640 test "$enable_shared" = yes && enable_static=no
12147 test yes = "$enable_shared" && enable_static=no
1164112148 if test -n "$RANLIB"; then
1164212149 archive_cmds="$archive_cmds~\$RANLIB \$lib"
1164312150 postinstall_cmds='$RANLIB $lib'
1164512152 ;;
1164612153
1164712154 aix[4-9]*)
11648 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11649 test "$enable_shared" = yes && enable_static=no
12155 if test ia64 != "$host_cpu"; then
12156 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12157 yes,aix,yes) ;; # shared object as lib.so file only
12158 yes,svr4,*) ;; # shared object as lib.so archive member only
12159 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12160 esac
1165012161 fi
1165112162 ;;
1165212163 esac
1165612167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1165712168 $as_echo_n "checking whether to build static libraries... " >&6; }
1165812169 # Make sure either enable_shared or enable_static is yes.
11659 test "$enable_shared" = yes || enable_static=yes
12170 test yes = "$enable_shared" || enable_static=yes
1166012171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1166112172 $as_echo "$enable_static" >&6; }
1166212173
1167012181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1167112182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1167212183
11673 CC="$lt_save_CC"
12184 CC=$lt_save_CC
1167412185
1167512186
1167612187
1208612597
1208712598 func_stripname_cnf ()
1208812599 {
12089 case ${2} in
12090 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12091 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12600 case $2 in
12601 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12602 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
1209212603 esac
1209312604 } # func_stripname_cnf
1209412605
12095 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12096 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12097 (test "X$CXX" != "Xg++"))) ; then
12606 if test -n "$CXX" && ( test no != "$CXX" &&
12607 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12608 (test g++ != "$CXX"))); then
1209812609 ac_ext=cpp
1209912610 ac_cpp='$CXXCPP $CPPFLAGS'
1210012611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1227312784 # the CXX compiler isn't working. Some variables (like enable_shared)
1227412785 # are currently assumed to apply to all compilers on this platform,
1227512786 # and will be corrupted by setting them based on a non-working compiler.
12276 if test "$_lt_caught_CXX_error" != yes; then
12787 if test yes != "$_lt_caught_CXX_error"; then
1227712788 # Code to be used in simple compile tests
1227812789 lt_simple_compile_test_code="int some_variable = 0;"
1227912790
1233412845 CFLAGS=$CXXFLAGS
1233512846 compiler=$CC
1233612847 compiler_CXX=$CC
12337 for cc_temp in $compiler""; do
12338 case $cc_temp in
12339 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12340 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12341 \-*) ;;
12342 *) break;;
12343 esac
12344 done
12345 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12848 func_cc_basename $compiler
12849 cc_basename=$func_cc_basename_result
1234612850
1234712851
1234812852 if test -n "$compiler"; then
1234912853 # We don't want -fno-exception when compiling C++ code, so set the
1235012854 # no_builtin_flag separately
12351 if test "$GXX" = yes; then
12855 if test yes = "$GXX"; then
1235212856 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
1235312857 else
1235412858 lt_prog_compiler_no_builtin_flag_CXX=
1235512859 fi
1235612860
12357 if test "$GXX" = yes; then
12861 if test yes = "$GXX"; then
1235812862 # Set up default GNU C++ configuration
1235912863
1236012864
1236112865
1236212866 # Check whether --with-gnu-ld was given.
1236312867 if test "${with_gnu_ld+set}" = set; then :
12364 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12868 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
1236512869 else
1236612870 with_gnu_ld=no
1236712871 fi
1236812872
1236912873 ac_prog=ld
12370 if test "$GCC" = yes; then
12874 if test yes = "$GCC"; then
1237112875 # Check if gcc -print-prog-name=ld gives a path.
1237212876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
1237312877 $as_echo_n "checking for ld used by $CC... " >&6; }
1237412878 case $host in
1237512879 *-*-mingw*)
12376 # gcc leaves a trailing carriage return which upsets mingw
12880 # gcc leaves a trailing carriage return, which upsets mingw
1237712881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1237812882 *)
1237912883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1238712891 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
1238812892 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1238912893 done
12390 test -z "$LD" && LD="$ac_prog"
12894 test -z "$LD" && LD=$ac_prog
1239112895 ;;
1239212896 "")
1239312897 # If it fails, then pretend we aren't using GCC.
1239812902 with_gnu_ld=unknown
1239912903 ;;
1240012904 esac
12401 elif test "$with_gnu_ld" = yes; then
12905 elif test yes = "$with_gnu_ld"; then
1240212906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
1240312907 $as_echo_n "checking for GNU ld... " >&6; }
1240412908 else
1240912913 $as_echo_n "(cached) " >&6
1241012914 else
1241112915 if test -z "$LD"; then
12412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12916 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1241312917 for ac_dir in $PATH; do
12414 IFS="$lt_save_ifs"
12918 IFS=$lt_save_ifs
1241512919 test -z "$ac_dir" && ac_dir=.
1241612920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12417 lt_cv_path_LD="$ac_dir/$ac_prog"
12921 lt_cv_path_LD=$ac_dir/$ac_prog
1241812922 # Check to see if the program is GNU ld. I'd rather use --version,
1241912923 # but apparently some variants of GNU ld only accept -v.
1242012924 # Break only if it was the GNU/non-GNU ld that we prefer.
1242112925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1242212926 *GNU* | *'with BFD'*)
12423 test "$with_gnu_ld" != no && break
12927 test no != "$with_gnu_ld" && break
1242412928 ;;
1242512929 *)
12426 test "$with_gnu_ld" != yes && break
12930 test yes != "$with_gnu_ld" && break
1242712931 ;;
1242812932 esac
1242912933 fi
1243012934 done
12431 IFS="$lt_save_ifs"
12432 else
12433 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12434 fi
12435 fi
12436
12437 LD="$lt_cv_path_LD"
12935 IFS=$lt_save_ifs
12936 else
12937 lt_cv_path_LD=$LD # Let the user override the test with a path.
12938 fi
12939 fi
12940
12941 LD=$lt_cv_path_LD
1243812942 if test -n "$LD"; then
1243912943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
1244012944 $as_echo "$LD" >&6; }
1247012974
1247112975 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1247212976 # archiving commands below assume that GNU ld is being used.
12473 if test "$with_gnu_ld" = yes; then
12474 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12475 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'
12476
12477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12478 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12977 if test yes = "$with_gnu_ld"; then
12978 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12979 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'
12980
12981 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12982 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1247912983
1248012984 # If archive_cmds runs LD, not CC, wlarc should be empty
1248112985 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
1248212986 # investigate it a little bit more. (MM)
12483 wlarc='${wl}'
12987 wlarc='$wl'
1248412988
1248512989 # ancient GNU ld didn't support --whole-archive et. al.
1248612990 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
1248712991 $GREP 'no-whole-archive' > /dev/null; then
12488 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12992 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1248912993 else
1249012994 whole_archive_flag_spec_CXX=
1249112995 fi
1250413008 # Commands to make compiler produce verbose output that lists
1250513009 # what "hidden" libraries, object files and flags are used when
1250613010 # linking a shared library.
12507 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
1250813012
1250913013 else
1251013014 GXX=no
1252213026 ld_shlibs_CXX=no
1252313027 ;;
1252413028 aix[4-9]*)
12525 if test "$host_cpu" = ia64; then
13029 if test ia64 = "$host_cpu"; then
1252613030 # On IA64, the linker does run time linking by default, so we don't
1252713031 # have to do anything special.
1252813032 aix_use_runtimelinking=no
1252913033 exp_sym_flag='-Bexport'
12530 no_entry_flag=""
13034 no_entry_flag=
1253113035 else
1253213036 aix_use_runtimelinking=no
1253313037
1253413038 # Test if we are trying to use run time linking or normal
1253513039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12536 # need to do runtime linking.
13040 # have runtime linking enabled, and use it for executables.
13041 # For shared libraries, we enable/disable runtime linking
13042 # depending on the kind of the shared library created -
13043 # when "with_aix_soname,aix_use_runtimelinking" is:
13044 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13045 # "aix,yes" lib.so shared, rtl:yes, for executables
13046 # lib.a static archive
13047 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13048 # lib.a(lib.so.V) shared, rtl:no, for executables
13049 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13050 # lib.a(lib.so.V) shared, rtl:no
13051 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13052 # lib.a static archive
1253713053 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1253813054 for ld_flag in $LDFLAGS; do
1253913055 case $ld_flag in
1254313059 ;;
1254413060 esac
1254513061 done
13062 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13063 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13064 # so we don't have lib.a shared libs to link our executables.
13065 # We have to force runtime linking in this case.
13066 aix_use_runtimelinking=yes
13067 LDFLAGS="$LDFLAGS -Wl,-brtl"
13068 fi
1254613069 ;;
1254713070 esac
1254813071
1256113084 hardcode_direct_absolute_CXX=yes
1256213085 hardcode_libdir_separator_CXX=':'
1256313086 link_all_deplibs_CXX=yes
12564 file_list_spec_CXX='${wl}-f,'
12565
12566 if test "$GXX" = yes; then
13087 file_list_spec_CXX='$wl-f,'
13088 case $with_aix_soname,$aix_use_runtimelinking in
13089 aix,*) ;; # no import file
13090 svr4,* | *,yes) # use import file
13091 # The Import File defines what to hardcode.
13092 hardcode_direct_CXX=no
13093 hardcode_direct_absolute_CXX=no
13094 ;;
13095 esac
13096
13097 if test yes = "$GXX"; then
1256713098 case $host_os in aix4.[012]|aix4.[012].*)
1256813099 # We only want to do this on AIX 4.2 and lower, the check
1256913100 # below for broken collect2 doesn't work under 4.3+
12570 collect2name=`${CC} -print-prog-name=collect2`
13101 collect2name=`$CC -print-prog-name=collect2`
1257113102 if test -f "$collect2name" &&
1257213103 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1257313104 then
1258513116 fi
1258613117 esac
1258713118 shared_flag='-shared'
12588 if test "$aix_use_runtimelinking" = yes; then
12589 shared_flag="$shared_flag "'${wl}-G'
13119 if test yes = "$aix_use_runtimelinking"; then
13120 shared_flag=$shared_flag' $wl-G'
1259013121 fi
13122 # Need to ensure runtime linking is disabled for the traditional
13123 # shared library, or the linker may eventually find shared libraries
13124 # /with/ Import File - we do not want to mix them.
13125 shared_flag_aix='-shared'
13126 shared_flag_svr4='-shared $wl-G'
1259113127 else
1259213128 # not using gcc
12593 if test "$host_cpu" = ia64; then
13129 if test ia64 = "$host_cpu"; then
1259413130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1259513131 # chokes on -Wl,-G. The following line is correct:
1259613132 shared_flag='-G'
1259713133 else
12598 if test "$aix_use_runtimelinking" = yes; then
12599 shared_flag='${wl}-G'
13134 if test yes = "$aix_use_runtimelinking"; then
13135 shared_flag='$wl-G'
1260013136 else
12601 shared_flag='${wl}-bM:SRE'
13137 shared_flag='$wl-bM:SRE'
1260213138 fi
13139 shared_flag_aix='$wl-bM:SRE'
13140 shared_flag_svr4='$wl-G'
1260313141 fi
1260413142 fi
1260513143
12606 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13144 export_dynamic_flag_spec_CXX='$wl-bexpall'
1260713145 # It seems that -bexpall does not export symbols beginning with
1260813146 # underscore (_), so it is better to generate a list of symbols to
1260913147 # export.
1261013148 always_export_symbols_CXX=yes
12611 if test "$aix_use_runtimelinking" = yes; then
13149 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1261213150 # Warning - without using the other runtime loading flags (-brtl),
1261313151 # -berok will link without error, but may produce a broken library.
12614 allow_undefined_flag_CXX='-berok'
13152 # The "-G" linker flag allows undefined symbols.
13153 no_undefined_flag_CXX='-bernotok'
1261513154 # Determine the default libpath from the value encoded in an empty
1261613155 # executable.
12617 if test "${lt_cv_aix_libpath+set}" = set; then
13156 if test set = "${lt_cv_aix_libpath+set}"; then
1261813157 aix_libpath=$lt_cv_aix_libpath
1261913158 else
1262013159 if ${lt_cv_aix_libpath__CXX+:} false; then :
1264913188 rm -f core conftest.err conftest.$ac_objext \
1265013189 conftest$ac_exeext conftest.$ac_ext
1265113190 if test -z "$lt_cv_aix_libpath__CXX"; then
12652 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13191 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1265313192 fi
1265413193
1265513194 fi
1265713196 aix_libpath=$lt_cv_aix_libpath__CXX
1265813197 fi
1265913198
12660 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12661
12662 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"
13199 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13200
13201 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
1266313202 else
12664 if test "$host_cpu" = ia64; then
12665 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13203 if test ia64 = "$host_cpu"; then
13204 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
1266613205 allow_undefined_flag_CXX="-z nodefs"
12667 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"
13206 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"
1266813207 else
1266913208 # Determine the default libpath from the value encoded in an
1267013209 # empty executable.
12671 if test "${lt_cv_aix_libpath+set}" = set; then
13210 if test set = "${lt_cv_aix_libpath+set}"; then
1267213211 aix_libpath=$lt_cv_aix_libpath
1267313212 else
1267413213 if ${lt_cv_aix_libpath__CXX+:} false; then :
1270313242 rm -f core conftest.err conftest.$ac_objext \
1270413243 conftest$ac_exeext conftest.$ac_ext
1270513244 if test -z "$lt_cv_aix_libpath__CXX"; then
12706 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13245 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1270713246 fi
1270813247
1270913248 fi
1271113250 aix_libpath=$lt_cv_aix_libpath__CXX
1271213251 fi
1271313252
12714 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13253 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1271513254 # Warning - without using the other run time loading flags,
1271613255 # -berok will link without error, but may produce a broken library.
12717 no_undefined_flag_CXX=' ${wl}-bernotok'
12718 allow_undefined_flag_CXX=' ${wl}-berok'
12719 if test "$with_gnu_ld" = yes; then
13256 no_undefined_flag_CXX=' $wl-bernotok'
13257 allow_undefined_flag_CXX=' $wl-berok'
13258 if test yes = "$with_gnu_ld"; then
1272013259 # We only use this code for GNU lds that support --whole-archive.
12721 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13260 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1272213261 else
1272313262 # Exported symbols can be pulled into shared objects from archives
1272413263 whole_archive_flag_spec_CXX='$convenience'
1272513264 fi
1272613265 archive_cmds_need_lc_CXX=yes
12727 # This is similar to how AIX traditionally builds its shared
12728 # libraries.
12729 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'
13266 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13267 # -brtl affects multiple linker settings, -berok does not and is overridden later
13268 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13269 if test svr4 != "$with_aix_soname"; then
13270 # This is similar to how AIX traditionally builds its shared
13271 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13272 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'
13273 fi
13274 if test aix != "$with_aix_soname"; then
13275 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'
13276 else
13277 # used by -dlpreopen to get the symbols
13278 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13279 fi
13280 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
1273013281 fi
1273113282 fi
1273213283 ;;
1273613287 allow_undefined_flag_CXX=unsupported
1273713288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1273813289 # support --undefined. This deserves some investigation. FIXME
12739 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13290 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1274013291 else
1274113292 ld_shlibs_CXX=no
1274213293 fi
1276413315 # Tell ltmain to make .lib files, not .a files.
1276513316 libext=lib
1276613317 # Tell ltmain to make .dll files, not .so files.
12767 shrext_cmds=".dll"
13318 shrext_cmds=.dll
1276813319 # FIXME: Setting linknames here is a bad hack.
12769 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12770 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12771 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12772 else
12773 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12774 fi~
12775 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12776 linknames='
13320 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13321 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13322 cp "$export_symbols" "$output_objdir/$soname.def";
13323 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13324 else
13325 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13326 fi~
13327 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13328 linknames='
1277713329 # The linker will not automatically build a static lib if we build a DLL.
1277813330 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
1277913331 enable_shared_with_static_runtimes_CXX=yes
1278013332 # Don't use ranlib
1278113333 old_postinstall_cmds_CXX='chmod 644 $oldlib'
1278213334 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12783 lt_tool_outputfile="@TOOL_OUTPUT@"~
12784 case $lt_outputfile in
12785 *.exe|*.EXE) ;;
12786 *)
12787 lt_outputfile="$lt_outputfile.exe"
12788 lt_tool_outputfile="$lt_tool_outputfile.exe"
12789 ;;
12790 esac~
12791 func_to_tool_file "$lt_outputfile"~
12792 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12793 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12794 $RM "$lt_outputfile.manifest";
12795 fi'
13335 lt_tool_outputfile="@TOOL_OUTPUT@"~
13336 case $lt_outputfile in
13337 *.exe|*.EXE) ;;
13338 *)
13339 lt_outputfile=$lt_outputfile.exe
13340 lt_tool_outputfile=$lt_tool_outputfile.exe
13341 ;;
13342 esac~
13343 func_to_tool_file "$lt_outputfile"~
13344 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13345 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13346 $RM "$lt_outputfile.manifest";
13347 fi'
1279613348 ;;
1279713349 *)
1279813350 # g++
1279913351 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
1280013352 # as there is no search path for DLLs.
1280113353 hardcode_libdir_flag_spec_CXX='-L$libdir'
12802 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13354 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
1280313355 allow_undefined_flag_CXX=unsupported
1280413356 always_export_symbols_CXX=no
1280513357 enable_shared_with_static_runtimes_CXX=yes
1280613358
1280713359 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12808 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'
12809 # If the export-symbols file already is a .def file (1st line
12810 # is EXPORTS), use it as is; otherwise, prepend...
12811 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12812 cp $export_symbols $output_objdir/$soname.def;
12813 else
12814 echo EXPORTS > $output_objdir/$soname.def;
12815 cat $export_symbols >> $output_objdir/$soname.def;
12816 fi~
12817 $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'
13360 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'
13361 # If the export-symbols file already is a .def file, use it as
13362 # is; otherwise, prepend EXPORTS...
13363 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13364 cp $export_symbols $output_objdir/$soname.def;
13365 else
13366 echo EXPORTS > $output_objdir/$soname.def;
13367 cat $export_symbols >> $output_objdir/$soname.def;
13368 fi~
13369 $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'
1281813370 else
1281913371 ld_shlibs_CXX=no
1282013372 fi
1282813380 hardcode_direct_CXX=no
1282913381 hardcode_automatic_CXX=yes
1283013382 hardcode_shlibpath_var_CXX=unsupported
12831 if test "$lt_cv_ld_force_load" = "yes"; then
12832 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\"`'
13383 if test yes = "$lt_cv_ld_force_load"; then
13384 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\"`'
1283313385
1283413386 else
1283513387 whole_archive_flag_spec_CXX=''
1283613388 fi
1283713389 link_all_deplibs_CXX=yes
12838 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13390 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
1283913391 case $cc_basename in
12840 ifort*) _lt_dar_can_shared=yes ;;
13392 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1284113393 *) _lt_dar_can_shared=$GCC ;;
1284213394 esac
12843 if test "$_lt_dar_can_shared" = "yes"; then
13395 if test yes = "$_lt_dar_can_shared"; then
1284413396 output_verbose_link_cmd=func_echo_all
12845 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}"
12846 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12847 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}"
12848 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}"
12849 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12850 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}"
12851 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}"
13397 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"
13398 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13399 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"
13400 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"
13401 if test yes != "$lt_cv_apple_cc_single_mod"; then
13402 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"
13403 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"
1285213404 fi
1285313405
1285413406 else
1285513407 ld_shlibs_CXX=no
1285613408 fi
1285713409
13410 ;;
13411
13412 os2*)
13413 hardcode_libdir_flag_spec_CXX='-L$libdir'
13414 hardcode_minus_L_CXX=yes
13415 allow_undefined_flag_CXX=unsupported
13416 shrext_cmds=.dll
13417 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13420 $ECHO EXPORTS >> $output_objdir/$libname.def~
13421 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13422 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13423 emximp -o $lib $output_objdir/$libname.def'
13424 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13425 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13426 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13427 $ECHO EXPORTS >> $output_objdir/$libname.def~
13428 prefix_cmds="$SED"~
13429 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13430 prefix_cmds="$prefix_cmds -e 1d";
13431 fi~
13432 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13433 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13434 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13435 emximp -o $lib $output_objdir/$libname.def'
13436 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13437 enable_shared_with_static_runtimes_CXX=yes
1285813438 ;;
1285913439
1286013440 dgux*)
1289213472 ;;
1289313473
1289413474 haiku*)
12895 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13475 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1289613476 link_all_deplibs_CXX=yes
1289713477 ;;
1289813478
1289913479 hpux9*)
12900 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13480 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1290113481 hardcode_libdir_separator_CXX=:
12902 export_dynamic_flag_spec_CXX='${wl}-E'
13482 export_dynamic_flag_spec_CXX='$wl-E'
1290313483 hardcode_direct_CXX=yes
1290413484 hardcode_minus_L_CXX=yes # Not in the search PATH,
1290513485 # but as the default
1291113491 ld_shlibs_CXX=no
1291213492 ;;
1291313493 aCC*)
12914 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'
13494 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'
1291513495 # Commands to make compiler produce verbose output that lists
1291613496 # what "hidden" libraries, object files and flags are used when
1291713497 # linking a shared library.
1292013500 # explicitly linking system object files so we need to strip them
1292113501 # from the output so that they don't get included in the library
1292213502 # dependencies.
12923 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"'
13503 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"'
1292413504 ;;
1292513505 *)
12926 if test "$GXX" = yes; then
12927 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'
13506 if test yes = "$GXX"; then
13507 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'
1292813508 else
1292913509 # FIXME: insert proper C++ library support
1293013510 ld_shlibs_CXX=no
1293413514 ;;
1293513515
1293613516 hpux10*|hpux11*)
12937 if test $with_gnu_ld = no; then
12938 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13517 if test no = "$with_gnu_ld"; then
13518 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1293913519 hardcode_libdir_separator_CXX=:
1294013520
1294113521 case $host_cpu in
1294213522 hppa*64*|ia64*)
1294313523 ;;
1294413524 *)
12945 export_dynamic_flag_spec_CXX='${wl}-E'
13525 export_dynamic_flag_spec_CXX='$wl-E'
1294613526 ;;
1294713527 esac
1294813528 fi
1296813548 aCC*)
1296913549 case $host_cpu in
1297013550 hppa*64*)
12971 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13551 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1297213552 ;;
1297313553 ia64*)
12974 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13554 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1297513555 ;;
1297613556 *)
12977 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13557 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1297813558 ;;
1297913559 esac
1298013560 # Commands to make compiler produce verbose output that lists
1298513565 # explicitly linking system object files so we need to strip them
1298613566 # from the output so that they don't get included in the library
1298713567 # dependencies.
12988 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"'
13568 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"'
1298913569 ;;
1299013570 *)
12991 if test "$GXX" = yes; then
12992 if test $with_gnu_ld = no; then
13571 if test yes = "$GXX"; then
13572 if test no = "$with_gnu_ld"; then
1299313573 case $host_cpu in
1299413574 hppa*64*)
12995 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13575 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1299613576 ;;
1299713577 ia64*)
12998 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13578 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1299913579 ;;
1300013580 *)
13001 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'
13581 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'
1300213582 ;;
1300313583 esac
1300413584 fi
1301313593 interix[3-9]*)
1301413594 hardcode_direct_CXX=no
1301513595 hardcode_shlibpath_var_CXX=no
13016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13017 export_dynamic_flag_spec_CXX='${wl}-E'
13596 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13597 export_dynamic_flag_spec_CXX='$wl-E'
1301813598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1301913599 # Instead, shared libraries are loaded at an image base (0x10000000 by
1302013600 # default) and relocated if they conflict, which is a slow very memory
1302113601 # consuming and fragmenting process. To avoid this, we pick a random,
1302213602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1302313603 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13024 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'
13025 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'
13604 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'
13605 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'
1302613606 ;;
1302713607 irix5* | irix6*)
1302813608 case $cc_basename in
1302913609 CC*)
1303013610 # SGI C++
13031 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'
13611 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'
1303213612
1303313613 # Archives containing C++ object files must be created using
1303413614 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1303713617 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
1303813618 ;;
1303913619 *)
13040 if test "$GXX" = yes; then
13041 if test "$with_gnu_ld" = no; then
13042 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'
13620 if test yes = "$GXX"; then
13621 if test no = "$with_gnu_ld"; then
13622 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'
1304313623 else
13044 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'
13624 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'
1304513625 fi
1304613626 fi
1304713627 link_all_deplibs_CXX=yes
1304813628 ;;
1304913629 esac
13050 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13630 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1305113631 hardcode_libdir_separator_CXX=:
1305213632 inherit_rpath_CXX=yes
1305313633 ;;
1306013640 # KCC will only create a shared library if the output file
1306113641 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1306213642 # to its proper name (with version) after linking.
13063 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'
13064 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'
13643 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'
13644 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'
1306513645 # Commands to make compiler produce verbose output that lists
1306613646 # what "hidden" libraries, object files and flags are used when
1306713647 # linking a shared library.
1307013650 # explicitly linking system object files so we need to strip them
1307113651 # from the output so that they don't get included in the library
1307213652 # dependencies.
13073 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"'
13074
13075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13076 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13653 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"'
13654
13655 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13656 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1307713657
1307813658 # Archives containing C++ object files must be created using
1307913659 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1308713667 # earlier do not add the objects themselves.
1308813668 case `$CC -V 2>&1` in
1308913669 *"Version 7."*)
13090 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 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'
13670 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13671 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'
1309213672 ;;
1309313673 *) # Version 8.0 or newer
1309413674 tmp_idyn=
1309513675 case $host_cpu in
1309613676 ia64*) tmp_idyn=' -i_dynamic';;
1309713677 esac
13098 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099 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'
13678 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13679 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'
1310013680 ;;
1310113681 esac
1310213682 archive_cmds_need_lc_CXX=no
13103 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13104 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13105 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13683 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13684 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13685 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1310613686 ;;
1310713687 pgCC* | pgcpp*)
1310813688 # Portland Group C++ compiler
1310913689 case `$CC -V` in
1311013690 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
1311113691 prelink_cmds_CXX='tpldir=Template.dir~
13112 rm -rf $tpldir~
13113 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13114 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13692 rm -rf $tpldir~
13693 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13694 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1311513695 old_archive_cmds_CXX='tpldir=Template.dir~
13116 rm -rf $tpldir~
13117 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13118 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13119 $RANLIB $oldlib'
13696 rm -rf $tpldir~
13697 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13698 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13699 $RANLIB $oldlib'
1312013700 archive_cmds_CXX='tpldir=Template.dir~
13121 rm -rf $tpldir~
13122 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13123 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13701 rm -rf $tpldir~
13702 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13703 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
1312413704 archive_expsym_cmds_CXX='tpldir=Template.dir~
13125 rm -rf $tpldir~
13126 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13127 $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'
13705 rm -rf $tpldir~
13706 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13707 $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'
1312813708 ;;
1312913709 *) # Version 6 and above use weak symbols
13130 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13131 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'
13710 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13711 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'
1313213712 ;;
1313313713 esac
1313413714
13135 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13137 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'
13715 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13716 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13717 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'
1313813718 ;;
1313913719 cxx*)
1314013720 # Compaq C++
13141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13142 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'
13721 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13722 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'
1314313723
1314413724 runpath_var=LD_RUN_PATH
1314513725 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1315313733 # explicitly linking system object files so we need to strip them
1315413734 # from the output so that they don't get included in the library
1315513735 # dependencies.
13156 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'
13736 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'
1315713737 ;;
1315813738 xl* | mpixl* | bgxl*)
1315913739 # IBM XL 8.0 on PPC, with GNU ld
13160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13161 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13162 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13163 if test "x$supports_anon_versioning" = xyes; then
13740 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13741 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13742 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13743 if test yes = "$supports_anon_versioning"; then
1316413744 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13166 echo "local: *; };" >> $output_objdir/$libname.ver~
13167 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13746 echo "local: *; };" >> $output_objdir/$libname.ver~
13747 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1316813748 fi
1316913749 ;;
1317013750 *)
1317213752 *Sun\ C*)
1317313753 # Sun C++ 5.9
1317413754 no_undefined_flag_CXX=' -zdefs'
13175 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13176 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'
13755 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13756 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'
1317713757 hardcode_libdir_flag_spec_CXX='-R$libdir'
13178 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'
13758 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'
1317913759 compiler_needs_object_CXX=yes
1318013760
1318113761 # Not sure whether something based on
1323313813 ld_shlibs_CXX=yes
1323413814 ;;
1323513815
13236 openbsd2*)
13237 # C++ shared libraries are fairly broken
13238 ld_shlibs_CXX=no
13239 ;;
13240
13241 openbsd*)
13816 openbsd* | bitrig*)
1324213817 if test -f /usr/libexec/ld.so; then
1324313818 hardcode_direct_CXX=yes
1324413819 hardcode_shlibpath_var_CXX=no
1324513820 hardcode_direct_absolute_CXX=yes
1324613821 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13247 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13249 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13250 export_dynamic_flag_spec_CXX='${wl}-E'
13251 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13822 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13823 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13824 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13825 export_dynamic_flag_spec_CXX='$wl-E'
13826 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1325213827 fi
1325313828 output_verbose_link_cmd=func_echo_all
1325413829 else
1326413839 # KCC will only create a shared library if the output file
1326513840 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1326613841 # to its proper name (with version) after linking.
13267 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'
13268
13269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13842 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'
13843
13844 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
1327013845 hardcode_libdir_separator_CXX=:
1327113846
1327213847 # Archives containing C++ object files must be created using
1328413859 cxx*)
1328513860 case $host in
1328613861 osf3*)
13287 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13288 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'
13289 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13862 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13863 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'
13864 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1329013865 ;;
1329113866 *)
1329213867 allow_undefined_flag_CXX=' -expect_unresolved \*'
13293 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'
13868 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'
1329413869 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13295 echo "-hidden">> $lib.exp~
13296 $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~
13297 $RM $lib.exp'
13870 echo "-hidden">> $lib.exp~
13871 $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~
13872 $RM $lib.exp'
1329813873 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1329913874 ;;
1330013875 esac
1330913884 # explicitly linking system object files so we need to strip them
1331013885 # from the output so that they don't get included in the library
1331113886 # dependencies.
13312 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"'
13887 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"'
1331313888 ;;
1331413889 *)
13315 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13316 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13890 if test yes,no = "$GXX,$with_gnu_ld"; then
13891 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
1331713892 case $host in
1331813893 osf3*)
13319 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'
13894 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'
1332013895 ;;
1332113896 *)
13322 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'
13897 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'
1332313898 ;;
1332413899 esac
1332513900
13326 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13901 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1332713902 hardcode_libdir_separator_CXX=:
1332813903
1332913904 # Commands to make compiler produce verbose output that lists
1333013905 # what "hidden" libraries, object files and flags are used when
1333113906 # linking a shared library.
13332 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13907 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
1333313908
1333413909 else
1333513910 # FIXME: insert proper C++ library support
1336913944 # Sun C++ 4.2, 5.x and Centerline C++
1337013945 archive_cmds_need_lc_CXX=yes
1337113946 no_undefined_flag_CXX=' -zdefs'
13372 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13947 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1337313948 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13374 $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'
13949 $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'
1337513950
1337613951 hardcode_libdir_flag_spec_CXX='-R$libdir'
1337713952 hardcode_shlibpath_var_CXX=no
1337913954 solaris2.[0-5] | solaris2.[0-5].*) ;;
1338013955 *)
1338113956 # The compiler driver will combine and reorder linker options,
13382 # but understands `-z linker_flag'.
13957 # but understands '-z linker_flag'.
1338313958 # Supported since Solaris 2.6 (maybe 2.5.1?)
1338413959 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
1338513960 ;;
1339613971 ;;
1339713972 gcx*)
1339813973 # Green Hills C++ Compiler
13399 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1340013975
1340113976 # The C++ compiler must be used to create the archive.
1340213977 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
1340313978 ;;
1340413979 *)
1340513980 # GNU C++ compiler with Solaris linker
13406 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13407 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13981 if test yes,no = "$GXX,$with_gnu_ld"; then
13982 no_undefined_flag_CXX=' $wl-z ${wl}defs'
1340813983 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13409 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13984 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1341013985 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13411 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13986 $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'
1341213987
1341313988 # Commands to make compiler produce verbose output that lists
1341413989 # what "hidden" libraries, object files and flags are used when
1341513990 # linking a shared library.
13416 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13991 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
1341713992 else
13418 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13993 # g++ 2.7 appears to require '-G' NOT '-shared' on this
1341913994 # platform.
13420 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13995 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1342113996 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13422 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13997 $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'
1342313998
1342413999 # Commands to make compiler produce verbose output that lists
1342514000 # what "hidden" libraries, object files and flags are used when
1342614001 # linking a shared library.
13427 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14002 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
1342814003 fi
1342914004
13430 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14005 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
1343114006 case $host_os in
1343214007 solaris2.[0-5] | solaris2.[0-5].*) ;;
1343314008 *)
13434 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14009 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1343514010 ;;
1343614011 esac
1343714012 fi
1344014015 ;;
1344114016
1344214017 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13443 no_undefined_flag_CXX='${wl}-z,text'
14018 no_undefined_flag_CXX='$wl-z,text'
1344414019 archive_cmds_need_lc_CXX=no
1344514020 hardcode_shlibpath_var_CXX=no
1344614021 runpath_var='LD_RUN_PATH'
1344714022
1344814023 case $cc_basename in
1344914024 CC*)
13450 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13451 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14025 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14026 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1345214027 ;;
1345314028 *)
13454 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13455 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14029 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14030 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1345614031 ;;
1345714032 esac
1345814033 ;;
1345914034
1346014035 sysv5* | sco3.2v5* | sco5v6*)
13461 # Note: We can NOT use -z defs as we might desire, because we do not
14036 # Note: We CANNOT use -z defs as we might desire, because we do not
1346214037 # link with -lc, and that would cause any symbols used from libc to
1346314038 # always be unresolved, which means just about no library would
1346414039 # ever link correctly. If we're not using GNU ld we use -z text
1346514040 # though, which does catch some bad symbols but isn't as heavy-handed
1346614041 # as -z defs.
13467 no_undefined_flag_CXX='${wl}-z,text'
13468 allow_undefined_flag_CXX='${wl}-z,nodefs'
14042 no_undefined_flag_CXX='$wl-z,text'
14043 allow_undefined_flag_CXX='$wl-z,nodefs'
1346914044 archive_cmds_need_lc_CXX=no
1347014045 hardcode_shlibpath_var_CXX=no
13471 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14046 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
1347214047 hardcode_libdir_separator_CXX=':'
1347314048 link_all_deplibs_CXX=yes
13474 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14049 export_dynamic_flag_spec_CXX='$wl-Bexport'
1347514050 runpath_var='LD_RUN_PATH'
1347614051
1347714052 case $cc_basename in
1347814053 CC*)
13479 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14055 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1348114056 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13482 '"$old_archive_cmds_CXX"
14057 '"$old_archive_cmds_CXX"
1348314058 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13484 '"$reload_cmds_CXX"
14059 '"$reload_cmds_CXX"
1348514060 ;;
1348614061 *)
13487 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14063 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1348914064 ;;
1349014065 esac
1349114066 ;;
1351714092
1351814093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1351914094 $as_echo "$ld_shlibs_CXX" >&6; }
13520 test "$ld_shlibs_CXX" = no && can_build_shared=no
13521
13522 GCC_CXX="$GXX"
13523 LD_CXX="$LD"
14095 test no = "$ld_shlibs_CXX" && can_build_shared=no
14096
14097 GCC_CXX=$GXX
14098 LD_CXX=$LD
1352414099
1352514100 ## CAVEAT EMPTOR:
1352614101 ## There is no encapsulation within the following macros, do not change
1356414139 pre_test_object_deps_done=no
1356514140
1356614141 for p in `eval "$output_verbose_link_cmd"`; do
13567 case ${prev}${p} in
14142 case $prev$p in
1356814143
1356914144 -L* | -R* | -l*)
1357014145 # Some compilers place space between "-{L,R}" and the path.
1357114146 # Remove the space.
13572 if test $p = "-L" ||
13573 test $p = "-R"; then
14147 if test x-L = "$p" ||
14148 test x-R = "$p"; then
1357414149 prev=$p
1357514150 continue
1357614151 fi
1358614161 case $p in
1358714162 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
1358814163 esac
13589 if test "$pre_test_object_deps_done" = no; then
13590 case ${prev} in
14164 if test no = "$pre_test_object_deps_done"; then
14165 case $prev in
1359114166 -L | -R)
1359214167 # Internal compiler library paths should come after those
1359314168 # provided the user. The postdeps already come after the
1359414169 # user supplied libs so there is no need to process them.
1359514170 if test -z "$compiler_lib_search_path_CXX"; then
13596 compiler_lib_search_path_CXX="${prev}${p}"
14171 compiler_lib_search_path_CXX=$prev$p
1359714172 else
13598 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14173 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
1359914174 fi
1360014175 ;;
1360114176 # The "-l" case would never come before the object being
1360314178 esac
1360414179 else
1360514180 if test -z "$postdeps_CXX"; then
13606 postdeps_CXX="${prev}${p}"
14181 postdeps_CXX=$prev$p
1360714182 else
13608 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14183 postdeps_CXX="${postdeps_CXX} $prev$p"
1360914184 fi
1361014185 fi
1361114186 prev=
1362014195 continue
1362114196 fi
1362214197
13623 if test "$pre_test_object_deps_done" = no; then
14198 if test no = "$pre_test_object_deps_done"; then
1362414199 if test -z "$predep_objects_CXX"; then
13625 predep_objects_CXX="$p"
14200 predep_objects_CXX=$p
1362614201 else
1362714202 predep_objects_CXX="$predep_objects_CXX $p"
1362814203 fi
1362914204 else
1363014205 if test -z "$postdep_objects_CXX"; then
13631 postdep_objects_CXX="$p"
14206 postdep_objects_CXX=$p
1363214207 else
1363314208 postdep_objects_CXX="$postdep_objects_CXX $p"
1363414209 fi
1365814233 postdep_objects_CXX=
1365914234 postdeps_CXX=
1366014235 ;;
13661
13662 linux*)
13663 case `$CC -V 2>&1 | sed 5q` in
13664 *Sun\ C*)
13665 # Sun C++ 5.9
13666
13667 # The more standards-conforming stlport4 library is
13668 # incompatible with the Cstd library. Avoid specifying
13669 # it if it's in CXXFLAGS. Ignore libCrun as
13670 # -library=stlport4 depends on it.
13671 case " $CXX $CXXFLAGS " in
13672 *" -library=stlport4 "*)
13673 solaris_use_stlport4=yes
13674 ;;
13675 esac
13676
13677 if test "$solaris_use_stlport4" != yes; then
13678 postdeps_CXX='-library=Cstd -library=Crun'
13679 fi
13680 ;;
13681 esac
13682 ;;
13683
13684 solaris*)
13685 case $cc_basename in
13686 CC* | sunCC*)
13687 # The more standards-conforming stlport4 library is
13688 # incompatible with the Cstd library. Avoid specifying
13689 # it if it's in CXXFLAGS. Ignore libCrun as
13690 # -library=stlport4 depends on it.
13691 case " $CXX $CXXFLAGS " in
13692 *" -library=stlport4 "*)
13693 solaris_use_stlport4=yes
13694 ;;
13695 esac
13696
13697 # Adding this requires a known-good setup of shared libraries for
13698 # Sun compiler versions before 5.6, else PIC objects from an old
13699 # archive will be linked into the output, leading to subtle bugs.
13700 if test "$solaris_use_stlport4" != yes; then
13701 postdeps_CXX='-library=Cstd -library=Crun'
13702 fi
13703 ;;
13704 esac
13705 ;;
1370614236 esac
1370714237
1370814238
1371114241 esac
1371214242 compiler_lib_search_dirs_CXX=
1371314243 if test -n "${compiler_lib_search_path_CXX}"; then
13714 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14244 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
1371514245 fi
1371614246
1371714247
1375014280
1375114281
1375214282 # C++ specific cases for pic, static, wl, etc.
13753 if test "$GXX" = yes; then
14283 if test yes = "$GXX"; then
1375414284 lt_prog_compiler_wl_CXX='-Wl,'
1375514285 lt_prog_compiler_static_CXX='-static'
1375614286
1375714287 case $host_os in
1375814288 aix*)
1375914289 # All AIX code is PIC.
13760 if test "$host_cpu" = ia64; then
14290 if test ia64 = "$host_cpu"; then
1376114291 # AIX 5 now supports IA64 processor
1376214292 lt_prog_compiler_static_CXX='-Bstatic'
1376314293 fi
14294 lt_prog_compiler_pic_CXX='-fPIC'
1376414295 ;;
1376514296
1376614297 amigaos*)
1377114302 ;;
1377214303 m68k)
1377314304 # FIXME: we need at least 68020 code to build shared libraries, but
13774 # adding the `-m68020' flag to GCC prevents building anything better,
13775 # like `-m68040'.
14305 # adding the '-m68020' flag to GCC prevents building anything better,
14306 # like '-m68040'.
1377614307 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
1377714308 ;;
1377814309 esac
1378714318 # Although the cygwin gcc ignores -fPIC, still need this for old-style
1378814319 # (--disable-auto-import) libraries
1378914320 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14321 case $host_os in
14322 os2*)
14323 lt_prog_compiler_static_CXX='$wl-static'
14324 ;;
14325 esac
1379014326 ;;
1379114327 darwin* | rhapsody*)
1379214328 # PIC is the default on this platform
1383614372 case $host_os in
1383714373 aix[4-9]*)
1383814374 # All AIX code is PIC.
13839 if test "$host_cpu" = ia64; then
14375 if test ia64 = "$host_cpu"; then
1384014376 # AIX 5 now supports IA64 processor
1384114377 lt_prog_compiler_static_CXX='-Bstatic'
1384214378 else
1387614412 case $cc_basename in
1387714413 CC*)
1387814414 lt_prog_compiler_wl_CXX='-Wl,'
13879 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13880 if test "$host_cpu" != ia64; then
14415 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14416 if test ia64 != "$host_cpu"; then
1388114417 lt_prog_compiler_pic_CXX='+Z'
1388214418 fi
1388314419 ;;
1388414420 aCC*)
1388514421 lt_prog_compiler_wl_CXX='-Wl,'
13886 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14422 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
1388714423 case $host_cpu in
1388814424 hppa*64*|ia64*)
1388914425 # +Z the default
1392014456 lt_prog_compiler_pic_CXX='-fPIC'
1392114457 ;;
1392214458 ecpc* )
13923 # old Intel C++ for x86_64 which still supported -KPIC.
14459 # old Intel C++ for x86_64, which still supported -KPIC.
1392414460 lt_prog_compiler_wl_CXX='-Wl,'
1392514461 lt_prog_compiler_pic_CXX='-KPIC'
1392614462 lt_prog_compiler_static_CXX='-static'
1406514601 fi
1406614602
1406714603 case $host_os in
14068 # For platforms which do not support PIC, -DPIC is meaningless:
14604 # For platforms that do not support PIC, -DPIC is meaningless:
1406914605 *djgpp*)
1407014606 lt_prog_compiler_pic_CXX=
1407114607 ;;
1409714633 lt_cv_prog_compiler_pic_works_CXX=no
1409814634 ac_outfile=conftest.$ac_objext
1409914635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14100 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14636 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
1410114637 # Insert the option either (1) after the last *FLAGS variable, or
1410214638 # (2) before a word containing "conftest.", or (3) at the end.
1410314639 # Note that $ac_compile itself does not contain backslashes and begins
1412714663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
1412814664 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1412914665
14130 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14666 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1413114667 case $lt_prog_compiler_pic_CXX in
1413214668 "" | " "*) ;;
1413314669 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
1415314689 $as_echo_n "(cached) " >&6
1415414690 else
1415514691 lt_cv_prog_compiler_static_works_CXX=no
14156 save_LDFLAGS="$LDFLAGS"
14692 save_LDFLAGS=$LDFLAGS
1415714693 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1415814694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1415914695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1417214708 fi
1417314709 fi
1417414710 $RM -r conftest*
14175 LDFLAGS="$save_LDFLAGS"
14711 LDFLAGS=$save_LDFLAGS
1417614712
1417714713 fi
1417814714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
1417914715 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1418014716
14181 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14717 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1418214718 :
1418314719 else
1418414720 lt_prog_compiler_static_CXX=
1429214828
1429314829
1429414830
14295 hard_links="nottested"
14296 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14831 hard_links=nottested
14832 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1429714833 # do not overwrite the value of need_locks provided by the user
1429814834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
1429914835 $as_echo_n "checking if we can lock with hard links... " >&6; }
1430514841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1430614842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
1430714843 $as_echo "$hard_links" >&6; }
14308 if test "$hard_links" = no; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14310 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14844 if test no = "$hard_links"; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14846 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1431114847 need_locks=warn
1431214848 fi
1431314849 else
1432414860 case $host_os in
1432514861 aix[4-9]*)
1432614862 # If we're using GNU nm, then we don't want the "-C" option.
14327 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14328 # Also, AIX nm treats weak defined symbols like other global defined
14329 # symbols, whereas GNU nm marks them as "W".
14863 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14864 # Without the "-l" option, or with the "-B" option, AIX nm treats
14865 # weak defined symbols like other global defined symbols, whereas
14866 # GNU nm marks them as "W".
14867 # While the 'weak' keyword is ignored in the Export File, we need
14868 # it in the Import File for the 'aix-soname' feature, so we have
14869 # to replace the "-B" option with "-P" for AIX nm.
1433014870 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14331 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'
14871 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'
1433214872 else
14333 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'
14873 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'
1433414874 fi
1433514875 ;;
1433614876 pw32*)
14337 export_symbols_cmds_CXX="$ltdll_cmds"
14877 export_symbols_cmds_CXX=$ltdll_cmds
1433814878 ;;
1433914879 cygwin* | mingw* | cegcc*)
1434014880 case $cc_basename in
1435714897
1435814898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1435914899 $as_echo "$ld_shlibs_CXX" >&6; }
14360 test "$ld_shlibs_CXX" = no && can_build_shared=no
14900 test no = "$ld_shlibs_CXX" && can_build_shared=no
1436114901
1436214902 with_gnu_ld_CXX=$with_gnu_ld
1436314903
1437414914 # Assume -lc should be added
1437514915 archive_cmds_need_lc_CXX=yes
1437614916
14377 if test "$enable_shared" = yes && test "$GCC" = yes; then
14917 if test yes,yes = "$GCC,$enable_shared"; then
1437814918 case $archive_cmds_CXX in
1437914919 *'~'*)
1438014920 # FIXME: we may have to deal with multi-command sequences.
1450215042 library_names_spec=
1450315043 libname_spec='lib$name'
1450415044 soname_spec=
14505 shrext_cmds=".so"
15045 shrext_cmds=.so
1450615046 postinstall_cmds=
1450715047 postuninstall_cmds=
1450815048 finish_cmds=
1451915059 # flags to be left without arguments
1452015060 need_version=unknown
1452115061
15062
15063
1452215064 case $host_os in
1452315065 aix3*)
1452415066 version_type=linux # correct to gnu/linux during the next big refactor
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15067 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1452615068 shlibpath_var=LIBPATH
1452715069
1452815070 # AIX 3 has no versioning support, so we append a major version to the name.
14529 soname_spec='${libname}${release}${shared_ext}$major'
15071 soname_spec='$libname$release$shared_ext$major'
1453015072 ;;
1453115073
1453215074 aix[4-9]*)
1453415076 need_lib_prefix=no
1453515077 need_version=no
1453615078 hardcode_into_libs=yes
14537 if test "$host_cpu" = ia64; then
15079 if test ia64 = "$host_cpu"; then
1453815080 # AIX 5 supports IA64
14539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15081 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1454015082 shlibpath_var=LD_LIBRARY_PATH
1454115083 else
1454215084 # With GCC up to 2.95.x, collect2 would create an import file
1454315085 # for dependence libraries. The import file would start with
14544 # the line `#! .'. This would cause the generated library to
14545 # depend on `.', always an invalid library. This was fixed in
15086 # the line '#! .'. This would cause the generated library to
15087 # depend on '.', always an invalid library. This was fixed in
1454615088 # development snapshots of GCC prior to 3.0.
1454715089 case $host_os in
1454815090 aix4 | aix4.[01] | aix4.[01].*)
1454915091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1455015092 echo ' yes '
14551 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15093 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1455215094 :
1455315095 else
1455415096 can_build_shared=no
1455515097 fi
1455615098 ;;
1455715099 esac
14558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15100 # Using Import Files as archive members, it is possible to support
15101 # filename-based versioning of shared library archives on AIX. While
15102 # this would work for both with and without runtime linking, it will
15103 # prevent static linking of such archives. So we do filename-based
15104 # shared library versioning with .so extension only, which is used
15105 # when both runtime linking and shared linking is enabled.
15106 # Unfortunately, runtime linking may impact performance, so we do
15107 # not want this to be the default eventually. Also, we use the
15108 # versioned .so libs for executables only if there is the -brtl
15109 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15110 # To allow for filename-based versioning support, we need to create
15111 # libNAME.so.V as an archive file, containing:
15112 # *) an Import File, referring to the versioned filename of the
15113 # archive as well as the shared archive member, telling the
15114 # bitwidth (32 or 64) of that shared object, and providing the
15115 # list of exported symbols of that shared object, eventually
15116 # decorated with the 'weak' keyword
15117 # *) the shared object with the F_LOADONLY flag set, to really avoid
15118 # it being seen by the linker.
15119 # At run time we better use the real file rather than another symlink,
15120 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15121
15122 case $with_aix_soname,$aix_use_runtimelinking in
15123 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1455915124 # soname into executable. Probably we can add versioning support to
1456015125 # collect2, so additional links can be useful in future.
14561 if test "$aix_use_runtimelinking" = yes; then
15126 aix,yes) # traditional libtool
15127 dynamic_linker='AIX unversionable lib.so'
1456215128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1456315129 # instead of lib<name>.a to let people know that these are not
1456415130 # typical AIX shared libraries.
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 else
15131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15132 ;;
15133 aix,no) # traditional AIX only
15134 dynamic_linker='AIX lib.a(lib.so.V)'
1456715135 # We preserve .a as extension for shared libraries through AIX4.2
1456815136 # and later when we are not doing run time linking.
14569 library_names_spec='${libname}${release}.a $libname.a'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 fi
15137 library_names_spec='$libname$release.a $libname.a'
15138 soname_spec='$libname$release$shared_ext$major'
15139 ;;
15140 svr4,*) # full svr4 only
15141 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15142 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15143 # We do not specify a path in Import Files, so LIBPATH fires.
15144 shlibpath_overrides_runpath=yes
15145 ;;
15146 *,yes) # both, prefer svr4
15147 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15148 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15149 # unpreferred sharedlib libNAME.a needs extra handling
15150 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"'
15151 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"'
15152 # We do not specify a path in Import Files, so LIBPATH fires.
15153 shlibpath_overrides_runpath=yes
15154 ;;
15155 *,no) # both, prefer aix
15156 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15157 library_names_spec='$libname$release.a $libname.a'
15158 soname_spec='$libname$release$shared_ext$major'
15159 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15160 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)'
15161 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"'
15162 ;;
15163 esac
1457215164 shlibpath_var=LIBPATH
1457315165 fi
1457415166 ;;
1457815170 powerpc)
1457915171 # Since July 2007 AmigaOS4 officially supports .so libraries.
1458015172 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1458215174 ;;
1458315175 m68k)
1458415176 library_names_spec='$libname.ixlibrary $libname.a'
1458515177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14586 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'
15178 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'
1458715179 ;;
1458815180 esac
1458915181 ;;
1459015182
1459115183 beos*)
14592 library_names_spec='${libname}${shared_ext}'
15184 library_names_spec='$libname$shared_ext'
1459315185 dynamic_linker="$host_os ld.so"
1459415186 shlibpath_var=LIBRARY_PATH
1459515187 ;;
1459715189 bsdi[45]*)
1459815190 version_type=linux # correct to gnu/linux during the next big refactor
1459915191 need_version=no
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
15192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15193 soname_spec='$libname$release$shared_ext$major'
1460215194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1460315195 shlibpath_var=LD_LIBRARY_PATH
1460415196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1461015202
1461115203 cygwin* | mingw* | pw32* | cegcc*)
1461215204 version_type=windows
14613 shrext_cmds=".dll"
15205 shrext_cmds=.dll
1461415206 need_version=no
1461515207 need_lib_prefix=no
1461615208
1461915211 # gcc
1462015212 library_names_spec='$libname.dll.a'
1462115213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14622 postinstall_cmds='base_file=`basename \${file}`~
14623 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15214 postinstall_cmds='base_file=`basename \$file`~
15215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1462415216 dldir=$destdir/`dirname \$dlpath`~
1462515217 test -d \$dldir || mkdir -p \$dldir~
1462615218 $install_prog $dir/$dlname \$dldir/$dlname~
1463615228 case $host_os in
1463715229 cygwin*)
1463815230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14639 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1464015232
1464115233 ;;
1464215234 mingw* | cegcc*)
1464315235 # MinGW DLLs use traditional 'lib' prefix
14644 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15236 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1464515237 ;;
1464615238 pw32*)
1464715239 # pw32 DLLs use 'pw' prefix rather than 'lib'
14648 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15240 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1464915241 ;;
1465015242 esac
1465115243 dynamic_linker='Win32 ld.exe'
1465415246 *,cl*)
1465515247 # Native MSVC
1465615248 libname_spec='$name'
14657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14658 library_names_spec='${libname}.dll.lib'
15249 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15250 library_names_spec='$libname.dll.lib'
1465915251
1466015252 case $build_os in
1466115253 mingw*)
1468215274 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1468315275 ;;
1468415276 *)
14685 sys_lib_search_path_spec="$LIB"
15277 sys_lib_search_path_spec=$LIB
1468615278 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1468715279 # It is most probably a Windows format PATH.
1468815280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1469515287 esac
1469615288
1469715289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14698 postinstall_cmds='base_file=`basename \${file}`~
14699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15290 postinstall_cmds='base_file=`basename \$file`~
15291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1470015292 dldir=$destdir/`dirname \$dlpath`~
1470115293 test -d \$dldir || mkdir -p \$dldir~
1470215294 $install_prog $dir/$dlname \$dldir/$dlname'
1470915301
1471015302 *)
1471115303 # Assume MSVC wrapper
14712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15304 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1471315305 dynamic_linker='Win32 ld.exe'
1471415306 ;;
1471515307 esac
1472215314 version_type=darwin
1472315315 need_lib_prefix=no
1472415316 need_version=no
14725 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14726 soname_spec='${libname}${release}${major}$shared_ext'
15317 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15318 soname_spec='$libname$release$major$shared_ext'
1472715319 shlibpath_overrides_runpath=yes
1472815320 shlibpath_var=DYLD_LIBRARY_PATH
1472915321 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1473515327 version_type=linux # correct to gnu/linux during the next big refactor
1473615328 need_lib_prefix=no
1473715329 need_version=no
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14739 soname_spec='${libname}${release}${shared_ext}$major'
15330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15331 soname_spec='$libname$release$shared_ext$major'
1474015332 shlibpath_var=LD_LIBRARY_PATH
1474115333 ;;
1474215334
1475415346 version_type=freebsd-$objformat
1475515347 case $version_type in
1475615348 freebsd-elf*)
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15350 soname_spec='$libname$release$shared_ext$major'
1475815351 need_version=no
1475915352 need_lib_prefix=no
1476015353 ;;
1476115354 freebsd-*)
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1476315356 need_version=yes
1476415357 ;;
1476515358 esac
1478915382 need_lib_prefix=no
1479015383 need_version=no
1479115384 dynamic_linker="$host_os runtime_loader"
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14793 soname_spec='${libname}${release}${shared_ext}$major'
15385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15386 soname_spec='$libname$release$shared_ext$major'
1479415387 shlibpath_var=LIBRARY_PATH
14795 shlibpath_overrides_runpath=yes
15388 shlibpath_overrides_runpath=no
1479615389 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1479715390 hardcode_into_libs=yes
1479815391 ;;
1481015403 dynamic_linker="$host_os dld.so"
1481115404 shlibpath_var=LD_LIBRARY_PATH
1481215405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 if test "X$HPUX_IA64_MODE" = X32; then
15406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15407 soname_spec='$libname$release$shared_ext$major'
15408 if test 32 = "$HPUX_IA64_MODE"; then
1481615409 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15410 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1481715411 else
1481815412 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15413 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1481915414 fi
14820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1482115415 ;;
1482215416 hppa*64*)
1482315417 shrext_cmds='.sl'
1482515419 dynamic_linker="$host_os dld.sl"
1482615420 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1482715421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 soname_spec='${libname}${release}${shared_ext}$major'
15422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15423 soname_spec='$libname$release$shared_ext$major'
1483015424 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1483115425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1483215426 ;;
1483515429 dynamic_linker="$host_os dld.sl"
1483615430 shlibpath_var=SHLIB_PATH
1483715431 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 soname_spec='${libname}${release}${shared_ext}$major'
15432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15433 soname_spec='$libname$release$shared_ext$major'
1484015434 ;;
1484115435 esac
1484215436 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1484915443 version_type=linux # correct to gnu/linux during the next big refactor
1485015444 need_lib_prefix=no
1485115445 need_version=no
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
15446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15447 soname_spec='$libname$release$shared_ext$major'
1485415448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1485515449 shlibpath_var=LD_LIBRARY_PATH
1485615450 shlibpath_overrides_runpath=no
1486115455 case $host_os in
1486215456 nonstopux*) version_type=nonstopux ;;
1486315457 *)
14864 if test "$lt_cv_prog_gnu_ld" = yes; then
15458 if test yes = "$lt_cv_prog_gnu_ld"; then
1486515459 version_type=linux # correct to gnu/linux during the next big refactor
1486615460 else
1486715461 version_type=irix
1486915463 esac
1487015464 need_lib_prefix=no
1487115465 need_version=no
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15466 soname_spec='$libname$release$shared_ext$major'
15467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1487415468 case $host_os in
1487515469 irix5* | nonstopux*)
1487615470 libsuff= shlibsuff=
1488915483 esac
1489015484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1489115485 shlibpath_overrides_runpath=no
14892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15486 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15487 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1489415488 hardcode_into_libs=yes
1489515489 ;;
1489615490
1489715491 # No shared lib support for Linux oldld, aout, or coff.
1489815492 linux*oldld* | linux*aout* | linux*coff*)
1489915493 dynamic_linker=no
15494 ;;
15495
15496 linux*android*)
15497 version_type=none # Android doesn't support versioned libraries.
15498 need_lib_prefix=no
15499 need_version=no
15500 library_names_spec='$libname$release$shared_ext'
15501 soname_spec='$libname$release$shared_ext'
15502 finish_cmds=
15503 shlibpath_var=LD_LIBRARY_PATH
15504 shlibpath_overrides_runpath=yes
15505
15506 # This implies no fast_install, which is unacceptable.
15507 # Some rework will be needed to allow for fast_install
15508 # before this can be enabled.
15509 hardcode_into_libs=yes
15510
15511 dynamic_linker='Android linker'
15512 # Don't embed -rpath directories since the linker doesn't support them.
15513 hardcode_libdir_flag_spec_CXX='-L$libdir'
1490015514 ;;
1490115515
1490215516 # This must be glibc/ELF.
1490415518 version_type=linux # correct to gnu/linux during the next big refactor
1490515519 need_lib_prefix=no
1490615520 need_version=no
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908 soname_spec='${libname}${release}${shared_ext}$major'
15521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15522 soname_spec='$libname$release$shared_ext$major'
1490915523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1491015524 shlibpath_var=LD_LIBRARY_PATH
1491115525 shlibpath_overrides_runpath=no
1494915563 # before this can be enabled.
1495015564 hardcode_into_libs=yes
1495115565
14952 # Append ld.so.conf contents to the search path
15566 # Ideally, we could use ldconfig to report *all* directores which are
15567 # searched for libraries, however this is still not possible. Aside from not
15568 # being certain /sbin/ldconfig is available, command
15569 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15570 # even though it is searched at run-time. Try to do the best guess by
15571 # appending ld.so.conf contents (and includes) to the search path.
1495315572 if test -f /etc/ld.so.conf; then
1495415573 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' ' '`
1495515574 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1498115600 need_lib_prefix=no
1498215601 need_version=no
1498315602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15603 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1498515604 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1498615605 dynamic_linker='NetBSD (a.out) ld.so'
1498715606 else
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14989 soname_spec='${libname}${release}${shared_ext}$major'
15607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15608 soname_spec='$libname$release$shared_ext$major'
1499015609 dynamic_linker='NetBSD ld.elf_so'
1499115610 fi
1499215611 shlibpath_var=LD_LIBRARY_PATH
1499615615
1499715616 newsos6)
1499815617 version_type=linux # correct to gnu/linux during the next big refactor
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1500015619 shlibpath_var=LD_LIBRARY_PATH
1500115620 shlibpath_overrides_runpath=yes
1500215621 ;;
1500515624 version_type=qnx
1500615625 need_lib_prefix=no
1500715626 need_version=no
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 soname_spec='${libname}${release}${shared_ext}$major'
15627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15628 soname_spec='$libname$release$shared_ext$major'
1501015629 shlibpath_var=LD_LIBRARY_PATH
1501115630 shlibpath_overrides_runpath=no
1501215631 hardcode_into_libs=yes
1501315632 dynamic_linker='ldqnx.so'
1501415633 ;;
1501515634
15016 openbsd*)
15635 openbsd* | bitrig*)
1501715636 version_type=sunos
15018 sys_lib_dlsearch_path_spec="/usr/lib"
15637 sys_lib_dlsearch_path_spec=/usr/lib
1501915638 need_lib_prefix=no
15020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15021 case $host_os in
15022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15023 *) need_version=no ;;
15024 esac
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15640 need_version=no
15641 else
15642 need_version=yes
15643 fi
15644 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1502615645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1502715646 shlibpath_var=LD_LIBRARY_PATH
15028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15029 case $host_os in
15030 openbsd2.[89] | openbsd2.[89].*)
15031 shlibpath_overrides_runpath=no
15032 ;;
15033 *)
15034 shlibpath_overrides_runpath=yes
15035 ;;
15036 esac
15037 else
15038 shlibpath_overrides_runpath=yes
15039 fi
15647 shlibpath_overrides_runpath=yes
1504015648 ;;
1504115649
1504215650 os2*)
1504315651 libname_spec='$name'
15044 shrext_cmds=".dll"
15652 version_type=windows
15653 shrext_cmds=.dll
15654 need_version=no
1504515655 need_lib_prefix=no
15046 library_names_spec='$libname${shared_ext} $libname.a'
15656 # OS/2 can only load a DLL with a base name of 8 characters or less.
15657 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15658 v=$($ECHO $release$versuffix | tr -d .-);
15659 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15660 $ECHO $n$v`$shared_ext'
15661 library_names_spec='${libname}_dll.$libext'
1504715662 dynamic_linker='OS/2 ld.exe'
15048 shlibpath_var=LIBPATH
15663 shlibpath_var=BEGINLIBPATH
15664 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15666 postinstall_cmds='base_file=`basename \$file`~
15667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15668 dldir=$destdir/`dirname \$dlpath`~
15669 test -d \$dldir || mkdir -p \$dldir~
15670 $install_prog $dir/$dlname \$dldir/$dlname~
15671 chmod a+x \$dldir/$dlname~
15672 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15673 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15674 fi'
15675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15676 dlpath=$dir/\$dldll~
15677 $RM \$dlpath'
1504915678 ;;
1505015679
1505115680 osf3* | osf4* | osf5*)
1505215681 version_type=osf
1505315682 need_lib_prefix=no
1505415683 need_version=no
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='$libname$release$shared_ext$major'
15685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1505715686 shlibpath_var=LD_LIBRARY_PATH
1505815687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1506015689 ;;
1506115690
1506215691 rdos*)
1506715696 version_type=linux # correct to gnu/linux during the next big refactor
1506815697 need_lib_prefix=no
1506915698 need_version=no
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15700 soname_spec='$libname$release$shared_ext$major'
1507215701 shlibpath_var=LD_LIBRARY_PATH
1507315702 shlibpath_overrides_runpath=yes
1507415703 hardcode_into_libs=yes
1507815707
1507915708 sunos4*)
1508015709 version_type=sunos
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15710 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1508215711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1508315712 shlibpath_var=LD_LIBRARY_PATH
1508415713 shlibpath_overrides_runpath=yes
15085 if test "$with_gnu_ld" = yes; then
15714 if test yes = "$with_gnu_ld"; then
1508615715 need_lib_prefix=no
1508715716 fi
1508815717 need_version=yes
1509015719
1509115720 sysv4 | sysv4.3*)
1509215721 version_type=linux # correct to gnu/linux during the next big refactor
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15723 soname_spec='$libname$release$shared_ext$major'
1509515724 shlibpath_var=LD_LIBRARY_PATH
1509615725 case $host_vendor in
1509715726 sni)
1511215741 ;;
1511315742
1511415743 sysv4*MP*)
15115 if test -d /usr/nec ;then
15744 if test -d /usr/nec; then
1511615745 version_type=linux # correct to gnu/linux during the next big refactor
15117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15118 soname_spec='$libname${shared_ext}.$major'
15746 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15747 soname_spec='$libname$shared_ext.$major'
1511915748 shlibpath_var=LD_LIBRARY_PATH
1512015749 fi
1512115750 ;;
1512215751
1512315752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15124 version_type=freebsd-elf
15753 version_type=sco
1512515754 need_lib_prefix=no
1512615755 need_version=no
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15757 soname_spec='$libname$release$shared_ext$major'
1512915758 shlibpath_var=LD_LIBRARY_PATH
1513015759 shlibpath_overrides_runpath=yes
1513115760 hardcode_into_libs=yes
15132 if test "$with_gnu_ld" = yes; then
15761 if test yes = "$with_gnu_ld"; then
1513315762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1513415763 else
1513515764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1514715776 version_type=linux # correct to gnu/linux during the next big refactor
1514815777 need_lib_prefix=no
1514915778 need_version=no
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1515115780 shlibpath_var=LD_LIBRARY_PATH
1515215781 shlibpath_overrides_runpath=no
1515315782 hardcode_into_libs=yes
1515515784
1515615785 uts4*)
1515715786 version_type=linux # correct to gnu/linux during the next big refactor
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15788 soname_spec='$libname$release$shared_ext$major'
1516015789 shlibpath_var=LD_LIBRARY_PATH
1516115790 ;;
1516215791
1516615795 esac
1516715796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1516815797 $as_echo "$dynamic_linker" >&6; }
15169 test "$dynamic_linker" = no && can_build_shared=no
15798 test no = "$dynamic_linker" && can_build_shared=no
1517015799
1517115800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15172 if test "$GCC" = yes; then
15801 if test yes = "$GCC"; then
1517315802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1517415803 fi
1517515804
15176 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15178 fi
15179 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15181 fi
15805 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15806 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15807 fi
15808
15809 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15810 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15811 fi
15812
15813 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15814 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15815
15816 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15817 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15818
15819 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15820 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15821
15822
1518215823
1518315824
1518415825
1522215863 hardcode_action_CXX=
1522315864 if test -n "$hardcode_libdir_flag_spec_CXX" ||
1522415865 test -n "$runpath_var_CXX" ||
15225 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15866 test yes = "$hardcode_automatic_CXX"; then
1522615867
1522715868 # We can hardcode non-existent directories.
15228 if test "$hardcode_direct_CXX" != no &&
15869 if test no != "$hardcode_direct_CXX" &&
1522915870 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1523015871 # have to relink, otherwise we might link with an installed library
1523115872 # when we should be linking with a yet-to-be-installed one
15232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15233 test "$hardcode_minus_L_CXX" != no; then
15873 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15874 test no != "$hardcode_minus_L_CXX"; then
1523415875 # Linking always hardcodes the temporary library directory.
1523515876 hardcode_action_CXX=relink
1523615877 else
1524515886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
1524615887 $as_echo "$hardcode_action_CXX" >&6; }
1524715888
15248 if test "$hardcode_action_CXX" = relink ||
15249 test "$inherit_rpath_CXX" = yes; then
15889 if test relink = "$hardcode_action_CXX" ||
15890 test yes = "$inherit_rpath_CXX"; then
1525015891 # Fast installation is not supported
1525115892 enable_fast_install=no
15252 elif test "$shlibpath_overrides_runpath" = yes ||
15253 test "$enable_shared" = no; then
15893 elif test yes = "$shlibpath_overrides_runpath" ||
15894 test no = "$enable_shared"; then
1525415895 # Fast installation is not necessary
1525515896 enable_fast_install=needless
1525615897 fi
1527315914 lt_cv_path_LD=$lt_save_path_LD
1527415915 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
1527515916 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15276 fi # test "$_lt_caught_CXX_error" != yes
15917 fi # test yes != "$_lt_caught_CXX_error"
1527715918
1527815919 ac_ext=c
1527915920 ac_cpp='$CPP $CPPFLAGS'
1620416845 # report actual input values of CONFIG_FILES etc. instead of their
1620516846 # values after options handling.
1620616847 ac_log="
16207 This file was extended by burgerspace $as_me 1.9.3, which was
16848 This file was extended by burgerspace $as_me 1.9.4, which was
1620816849 generated by GNU Autoconf 2.69. Invocation command line was
1620916850
1621016851 CONFIG_FILES = $CONFIG_FILES
1626116902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1626216903 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1626316904 ac_cs_version="\\
16264 burgerspace config.status 1.9.3
16905 burgerspace config.status 1.9.4
1626516906 configured by $0, generated by GNU Autoconf 2.69,
1626616907 with options \\"\$ac_cs_config\\"
1626716908
1636917010 #
1637017011 # INIT-COMMANDS
1637117012 #
16372 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17013 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1637317014
1637417015
1637517016 # The HP-UX ksh and POSIX shell print the target directory to stdout
1638517026 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1638617027 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1638717028 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17029 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1638817030 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1638917031 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1639017032 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1643417076 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1643517077 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1643617078 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17079 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1643717080 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1643817081 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"`'
17082 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1643917083 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1644017084 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17085 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1644117086 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1644217087 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1644317088 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1650217147 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1650317148 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1650417149 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16505 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17150 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17151 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1650617152 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1650717153 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1650817154 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1660717253 compiler \
1660817254 lt_cv_sys_global_symbol_pipe \
1660917255 lt_cv_sys_global_symbol_to_cdecl \
17256 lt_cv_sys_global_symbol_to_import \
1661017257 lt_cv_sys_global_symbol_to_c_name_address \
1661117258 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17259 lt_cv_nm_interface \
1661217260 nm_file_list_spec \
17261 lt_cv_truncate_bin \
1661317262 lt_prog_compiler_no_builtin_flag \
1661417263 lt_prog_compiler_pic \
1661517264 lt_prog_compiler_wl \
1667517324 compiler_lib_search_path_CXX; do
1667617325 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1667717326 *[\\\\\\\`\\"\\\$]*)
16678 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17327 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1667917328 ;;
1668017329 *)
1668117330 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1670217351 postuninstall_cmds \
1670317352 finish_cmds \
1670417353 sys_lib_search_path_spec \
16705 sys_lib_dlsearch_path_spec \
17354 configure_time_dlsearch_path \
17355 configure_time_lt_sys_library_path \
1670617356 reload_cmds_CXX \
1670717357 old_archive_cmds_CXX \
1670817358 old_archive_from_new_cmds_CXX \
1671617366 postlink_cmds_CXX; do
1671717367 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1671817368 *[\\\\\\\`\\"\\\$]*)
16719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17369 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1672017370 ;;
1672117371 *)
1672217372 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1672517375 done
1672617376
1672717377 ac_aux_dir='$ac_aux_dir'
16728 xsi_shell='$xsi_shell'
16729 lt_shell_append='$lt_shell_append'
16730
16731 # See if we are running on zsh, and set the options which allow our
17378
17379 # See if we are running on zsh, and set the options that allow our
1673217380 # commands through without removal of \ escapes INIT.
16733 if test -n "\${ZSH_VERSION+set}" ; then
17381 if test -n "\${ZSH_VERSION+set}"; then
1673417382 setopt NO_GLOB_SUBST
1673517383 fi
1673617384
1673717385
1673817386 PACKAGE='$PACKAGE'
1673917387 VERSION='$VERSION'
16740 TIMESTAMP='$TIMESTAMP'
1674117388 RM='$RM'
1674217389 ofile='$ofile'
1674317390
1719517842 # Older Autoconf quotes --file arguments for eval, but not when files
1719617843 # are listed without --file. Let's play safe and only enable the eval
1719717844 # if we detect the quoting.
17198 case $CONFIG_FILES in
17199 *\'*) eval set x "$CONFIG_FILES" ;;
17200 *) set x $CONFIG_FILES ;;
17201 esac
17845 # TODO: see whether this extra hack can be removed once we start
17846 # requiring Autoconf 2.70 or later.
17847 case $CONFIG_FILES in #(
17848 *\'*) :
17849 eval set x "$CONFIG_FILES" ;; #(
17850 *) :
17851 set x $CONFIG_FILES ;; #(
17852 *) :
17853 ;;
17854 esac
1720217855 shift
17203 for mf
17856 # Used to flag and report bootstrapping failures.
17857 am_rc=0
17858 for am_mf
1720417859 do
1720517860 # Strip MF so we end up with the name of the file.
17206 mf=`echo "$mf" | sed -e 's/:.*$//'`
17207 # Check whether this is an Automake generated Makefile or not.
17208 # We used to match only the files named 'Makefile.in', but
17209 # some people rename them; so instead we look at the file content.
17210 # Grep'ing the first line is not enough: some people post-process
17211 # each Makefile.in and add a new line on top of each file to say so.
17212 # Grep'ing the whole file is not good either: AIX grep has a line
17861 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17862 # Check whether this is an Automake generated Makefile which includes
17863 # dependency-tracking related rules and includes.
17864 # Grep'ing the whole file directly is not great: AIX grep has a line
1721317865 # limit of 2048, but all sed's we know have understand at least 4000.
17214 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17215 dirpart=`$as_dirname -- "$mf" ||
17216 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17217 X"$mf" : 'X\(//\)[^/]' \| \
17218 X"$mf" : 'X\(//\)$' \| \
17219 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17220 $as_echo X"$mf" |
17866 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17867 || continue
17868 am_dirpart=`$as_dirname -- "$am_mf" ||
17869 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17870 X"$am_mf" : 'X\(//\)[^/]' \| \
17871 X"$am_mf" : 'X\(//\)$' \| \
17872 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17873 $as_echo X"$am_mf" |
1722117874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1722217875 s//\1/
1722317876 q
1723517888 q
1723617889 }
1723717890 s/.*/./; q'`
17238 else
17239 continue
17240 fi
17241 # Extract the definition of DEPDIR, am__include, and am__quote
17242 # from the Makefile without running 'make'.
17243 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17244 test -z "$DEPDIR" && continue
17245 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17246 test -z "$am__include" && continue
17247 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17248 # Find all dependency output files, they are included files with
17249 # $(DEPDIR) in their names. We invoke sed twice because it is the
17250 # simplest approach to changing $(DEPDIR) to its actual value in the
17251 # expansion.
17252 for file in `sed -n "
17253 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17254 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17255 # Make sure the directory exists.
17256 test -f "$dirpart/$file" && continue
17257 fdir=`$as_dirname -- "$file" ||
17258 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17259 X"$file" : 'X\(//\)[^/]' \| \
17260 X"$file" : 'X\(//\)$' \| \
17261 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17262 $as_echo X"$file" |
17263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17891 am_filepart=`$as_basename -- "$am_mf" ||
17892 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17893 X"$am_mf" : 'X\(//\)$' \| \
17894 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17895 $as_echo X/"$am_mf" |
17896 sed '/^.*\/\([^/][^/]*\)\/*$/{
1726417897 s//\1/
1726517898 q
1726617899 }
17267 /^X\(\/\/\)[^/].*/{
17900 /^X\/\(\/\/\)$/{
1726817901 s//\1/
1726917902 q
1727017903 }
17271 /^X\(\/\/\)$/{
17272 s//\1/
17273 q
17274 }
17275 /^X\(\/\).*/{
17904 /^X\/\(\/\).*/{
1727617905 s//\1/
1727717906 q
1727817907 }
1727917908 s/.*/./; q'`
17280 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17281 # echo "creating $dirpart/$file"
17282 echo '# dummy' > "$dirpart/$file"
17283 done
17909 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17910 && sed -e '/# am--include-marker/d' "$am_filepart" \
17911 | $MAKE -f - am--depfiles" >&5
17912 (cd "$am_dirpart" \
17913 && sed -e '/# am--include-marker/d' "$am_filepart" \
17914 | $MAKE -f - am--depfiles) >&5 2>&5
17915 ac_status=$?
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } || am_rc=$?
1728417918 done
17919 if test $am_rc -ne 0; then
17920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17922 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17923 for automatic dependency tracking. Try re-running configure with the
17924 '--disable-dependency-tracking' option to at least be able to build
17925 the package (albeit without support for automatic dependency tracking).
17926 See \`config.log' for more details" "$LINENO" 5; }
17927 fi
17928 { am_dirpart=; unset am_dirpart;}
17929 { am_filepart=; unset am_filepart;}
17930 { am_mf=; unset am_mf;}
17931 { am_rc=; unset am_rc;}
17932 rm -f conftest-deps.mk
1728517933 }
1728617934 ;;
1728717935 "libtool":C)
1728817936
17289 # See if we are running on zsh, and set the options which allow our
17937 # See if we are running on zsh, and set the options that allow our
1729017938 # commands through without removal of \ escapes.
17291 if test -n "${ZSH_VERSION+set}" ; then
17939 if test -n "${ZSH_VERSION+set}"; then
1729217940 setopt NO_GLOB_SUBST
1729317941 fi
1729417942
17295 cfgfile="${ofile}T"
17943 cfgfile=${ofile}T
1729617944 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1729717945 $RM "$cfgfile"
1729817946
1729917947 cat <<_LT_EOF >> "$cfgfile"
1730017948 #! $SHELL
17301
17302 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17303 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17304 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17949 # Generated automatically by $as_me ($PACKAGE) $VERSION
1730517950 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17951
17952 # Provide generalized library-building support services.
17953 # Written by Gordon Matzigkeit, 1996
17954
17955 # Copyright (C) 2014 Free Software Foundation, Inc.
17956 # This is free software; see the source for copying conditions. There is NO
17957 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17958
17959 # GNU Libtool is free software; you can redistribute it and/or modify
17960 # it under the terms of the GNU General Public License as published by
17961 # the Free Software Foundation; either version 2 of of the License, or
17962 # (at your option) any later version.
1730617963 #
17307 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17308 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17309 # Foundation, Inc.
17310 # Written by Gordon Matzigkeit, 1996
17964 # As a special exception to the GNU General Public License, if you
17965 # distribute this file as part of a program or library that is built
17966 # using GNU Libtool, you may include this file under the same
17967 # distribution terms that you use for the rest of that program.
1731117968 #
17312 # This file is part of GNU Libtool.
17313 #
17314 # GNU Libtool is free software; you can redistribute it and/or
17315 # modify it under the terms of the GNU General Public License as
17316 # published by the Free Software Foundation; either version 2 of
17317 # the License, or (at your option) any later version.
17318 #
17319 # As a special exception to the GNU General Public License,
17320 # if you distribute this file as part of a program or library that
17321 # is built using GNU Libtool, you may include this file under the
17322 # same distribution terms that you use for the rest of that program.
17323 #
17324 # GNU Libtool is distributed in the hope that it will be useful,
17325 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17969 # GNU Libtool is distributed in the hope that it will be useful, but
17970 # WITHOUT ANY WARRANTY; without even the implied warranty of
1732617971 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1732717972 # GNU General Public License for more details.
1732817973 #
1732917974 # You should have received a copy of the GNU General Public License
17330 # along with GNU Libtool; see the file COPYING. If not, a copy
17331 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17332 # obtained by writing to the Free Software Foundation, Inc.,
17333 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17975 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1733417976
1733517977
1733617978 # The names of the tagged configurations supported by this script.
17337 available_tags="CXX "
17979 available_tags='CXX '
17980
17981 # Configured defaults for sys_lib_dlsearch_path munging.
17982 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1733817983
1733917984 # ### BEGIN LIBTOOL CONFIG
1734017985
1735317998
1735417999 # Whether or not to optimize for fast installation.
1735518000 fast_install=$enable_fast_install
18001
18002 # Shared archive member basename,for filename based shared library versioning on AIX.
18003 shared_archive_member_spec=$shared_archive_member_spec
1735618004
1735718005 # Shell to use when invoking shell scripts.
1735818006 SHELL=$lt_SHELL
1747118119 # Transform the output of nm in a proper C declaration.
1747218120 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1747318121
18122 # Transform the output of nm into a list of symbols to manually relocate.
18123 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18124
1747418125 # Transform the output of nm in a C name address pair.
1747518126 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1747618127
1747718128 # Transform the output of nm in a C name address pair when lib prefix is needed.
1747818129 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1747918130
18131 # The name lister interface.
18132 nm_interface=$lt_lt_cv_nm_interface
18133
1748018134 # Specify filename containing input files for \$NM.
1748118135 nm_file_list_spec=$lt_nm_file_list_spec
1748218136
17483 # The root where to search for dependent libraries,and in which our libraries should be installed.
18137 # The root where to search for dependent libraries,and where our libraries should be installed.
1748418138 lt_sysroot=$lt_sysroot
18139
18140 # Command to truncate a binary pipe.
18141 lt_truncate_bin=$lt_lt_cv_truncate_bin
1748518142
1748618143 # The name of the directory that contains temporary libtool files.
1748718144 objdir=$objdir
1757318230 # Compile-time system search path for libraries.
1757418231 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1757518232
17576 # Run-time system search path for libraries.
17577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18233 # Detected run-time system search path for libraries.
18234 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18235
18236 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18237 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1757818238
1757918239 # Whether dlopen is supported.
1758018240 dlopen_support=$enable_dlopen
1766718327 # Whether we need a single "-rpath" flag with a separated argument.
1766818328 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1766918329
17670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18330 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1767118331 # DIR into the resulting binary.
1767218332 hardcode_direct=$hardcode_direct
1767318333
17674 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18334 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1767518335 # DIR into the resulting binary and the resulting library dependency is
17676 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18336 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1767718337 # library is relocated.
1767818338 hardcode_direct_absolute=$hardcode_direct_absolute
1767918339
1773918399
1774018400 _LT_EOF
1774118401
18402 cat <<'_LT_EOF' >> "$cfgfile"
18403
18404 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18405
18406 # func_munge_path_list VARIABLE PATH
18407 # -----------------------------------
18408 # VARIABLE is name of variable containing _space_ separated list of
18409 # directories to be munged by the contents of PATH, which is string
18410 # having a format:
18411 # "DIR[:DIR]:"
18412 # string "DIR[ DIR]" will be prepended to VARIABLE
18413 # ":DIR[:DIR]"
18414 # string "DIR[ DIR]" will be appended to VARIABLE
18415 # "DIRP[:DIRP]::[DIRA:]DIRA"
18416 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18417 # "DIRA[ DIRA]" will be appended to VARIABLE
18418 # "DIR[:DIR]"
18419 # VARIABLE will be replaced by "DIR[ DIR]"
18420 func_munge_path_list ()
18421 {
18422 case x$2 in
18423 x)
18424 ;;
18425 *:)
18426 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18427 ;;
18428 x:*)
18429 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18430 ;;
18431 *::*)
18432 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18433 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18434 ;;
18435 *)
18436 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18437 ;;
18438 esac
18439 }
18440
18441
18442 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18443 func_cc_basename ()
18444 {
18445 for cc_temp in $*""; do
18446 case $cc_temp in
18447 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18448 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18449 \-*) ;;
18450 *) break;;
18451 esac
18452 done
18453 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18454 }
18455
18456
18457 # ### END FUNCTIONS SHARED WITH CONFIGURE
18458
18459 _LT_EOF
18460
1774218461 case $host_os in
1774318462 aix3*)
1774418463 cat <<\_LT_EOF >> "$cfgfile"
1774518464 # AIX sometimes has problems with the GCC collect2 program. For some
1774618465 # reason, if we set the COLLECT_NAMES environment variable, the problems
1774718466 # vanish in a puff of smoke.
17748 if test "X${COLLECT_NAMES+set}" != Xset; then
18467 if test set != "${COLLECT_NAMES+set}"; then
1774918468 COLLECT_NAMES=
1775018469 export COLLECT_NAMES
1775118470 fi
1775418473 esac
1775518474
1775618475
17757 ltmain="$ac_aux_dir/ltmain.sh"
18476 ltmain=$ac_aux_dir/ltmain.sh
1775818477
1775918478
1776018479 # We use sed instead of cat because bash on DJGPP gets confused if
1776418483 sed '$q' "$ltmain" >> "$cfgfile" \
1776518484 || (rm -f "$cfgfile"; exit 1)
1776618485
17767 if test x"$xsi_shell" = xyes; then
17768 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17769 func_dirname ()\
17770 {\
17771 \ case ${1} in\
17772 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17773 \ * ) func_dirname_result="${3}" ;;\
17774 \ esac\
17775 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17776 && mv -f "$cfgfile.tmp" "$cfgfile" \
17777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17778 test 0 -eq $? || _lt_function_replace_fail=:
17779
17780
17781 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17782 func_basename ()\
17783 {\
17784 \ func_basename_result="${1##*/}"\
17785 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17786 && mv -f "$cfgfile.tmp" "$cfgfile" \
17787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17788 test 0 -eq $? || _lt_function_replace_fail=:
17789
17790
17791 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17792 func_dirname_and_basename ()\
17793 {\
17794 \ case ${1} in\
17795 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17796 \ * ) func_dirname_result="${3}" ;;\
17797 \ esac\
17798 \ func_basename_result="${1##*/}"\
17799 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17800 && mv -f "$cfgfile.tmp" "$cfgfile" \
17801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17802 test 0 -eq $? || _lt_function_replace_fail=:
17803
17804
17805 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17806 func_stripname ()\
17807 {\
17808 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17809 \ # positional parameters, so assign one to ordinary parameter first.\
17810 \ func_stripname_result=${3}\
17811 \ func_stripname_result=${func_stripname_result#"${1}"}\
17812 \ func_stripname_result=${func_stripname_result%"${2}"}\
17813 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17814 && mv -f "$cfgfile.tmp" "$cfgfile" \
17815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17816 test 0 -eq $? || _lt_function_replace_fail=:
17817
17818
17819 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17820 func_split_long_opt ()\
17821 {\
17822 \ func_split_long_opt_name=${1%%=*}\
17823 \ func_split_long_opt_arg=${1#*=}\
17824 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17825 && mv -f "$cfgfile.tmp" "$cfgfile" \
17826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17827 test 0 -eq $? || _lt_function_replace_fail=:
17828
17829
17830 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17831 func_split_short_opt ()\
17832 {\
17833 \ func_split_short_opt_arg=${1#??}\
17834 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17835 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17836 && mv -f "$cfgfile.tmp" "$cfgfile" \
17837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17838 test 0 -eq $? || _lt_function_replace_fail=:
17839
17840
17841 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17842 func_lo2o ()\
17843 {\
17844 \ case ${1} in\
17845 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17846 \ *) func_lo2o_result=${1} ;;\
17847 \ esac\
17848 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17849 && mv -f "$cfgfile.tmp" "$cfgfile" \
17850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17851 test 0 -eq $? || _lt_function_replace_fail=:
17852
17853
17854 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17855 func_xform ()\
17856 {\
17857 func_xform_result=${1%.*}.lo\
17858 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17859 && mv -f "$cfgfile.tmp" "$cfgfile" \
17860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17861 test 0 -eq $? || _lt_function_replace_fail=:
17862
17863
17864 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17865 func_arith ()\
17866 {\
17867 func_arith_result=$(( $* ))\
17868 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17869 && mv -f "$cfgfile.tmp" "$cfgfile" \
17870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17871 test 0 -eq $? || _lt_function_replace_fail=:
17872
17873
17874 sed -e '/^func_len ()$/,/^} # func_len /c\
17875 func_len ()\
17876 {\
17877 func_len_result=${#1}\
17878 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17879 && mv -f "$cfgfile.tmp" "$cfgfile" \
17880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17881 test 0 -eq $? || _lt_function_replace_fail=:
17882
17883 fi
17884
17885 if test x"$lt_shell_append" = xyes; then
17886 sed -e '/^func_append ()$/,/^} # func_append /c\
17887 func_append ()\
17888 {\
17889 eval "${1}+=\\${2}"\
17890 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17891 && mv -f "$cfgfile.tmp" "$cfgfile" \
17892 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17893 test 0 -eq $? || _lt_function_replace_fail=:
17894
17895
17896 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17897 func_append_quoted ()\
17898 {\
17899 \ func_quote_for_eval "${2}"\
17900 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17901 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17902 && mv -f "$cfgfile.tmp" "$cfgfile" \
17903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17904 test 0 -eq $? || _lt_function_replace_fail=:
17905
17906
17907 # Save a `func_append' function call where possible by direct use of '+='
17908 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17909 && mv -f "$cfgfile.tmp" "$cfgfile" \
17910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17911 test 0 -eq $? || _lt_function_replace_fail=:
17912 else
17913 # Save a `func_append' function call even when '+=' is not available
17914 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17915 && mv -f "$cfgfile.tmp" "$cfgfile" \
17916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17917 test 0 -eq $? || _lt_function_replace_fail=:
17918 fi
17919
17920 if test x"$_lt_function_replace_fail" = x":"; then
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17922 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17923 fi
17924
17925
1792618486 mv -f "$cfgfile" "$ofile" ||
1792718487 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1792818488 chmod +x "$ofile"
1800918569 # Whether we need a single "-rpath" flag with a separated argument.
1801018570 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
1801118571
18012 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18572 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1801318573 # DIR into the resulting binary.
1801418574 hardcode_direct=$hardcode_direct_CXX
1801518575
18016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18576 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1801718577 # DIR into the resulting binary and the resulting library dependency is
18018 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18578 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1801918579 # library is relocated.
1802018580 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
1802118581
0 # $Id: configure.ac,v 1.27 2019/11/12 02:22:31 sarrazip Exp $
0 # $Id: configure.ac,v 1.28 2021/06/18 21:44:33 sarrazip Exp $
11 # configure.ac for burgerspace
22
33 AC_PREREQ(2.54)
4 AC_INIT(burgerspace, 1.9.3)
4 AC_INIT(burgerspace, 1.9.4)
55 AC_CONFIG_SRCDIR(src/BurgerSpaceClient.h)
66 AM_INIT_AUTOMAKE
77
8 MANUAL_DATE_EN="November 11th, 2019"; AC_SUBST(MANUAL_DATE_EN)
9 MANUAL_DATE_FR="11 novembre 2019"; AC_SUBST(MANUAL_DATE_FR) # UTF-8
8 MANUAL_DATE_EN="June 18th, 2021"; AC_SUBST(MANUAL_DATE_EN)
9 MANUAL_DATE_FR="18 juin 2021"; AC_SUBST(MANUAL_DATE_FR) # UTF-8
1010
1111 PACKAGE_FULL_NAME="BurgerSpace"
1212 PACKAGE_SUMMARY_EN="A hamburger-smashing video game"
0 burgerspace (1.9.4-1) UNRELEASED; urgency=low
1
2 * New upstream release.
3
4 -- Debian Janitor <janitor@jelmer.uk> Wed, 21 Jul 2021 03:43:09 -0000
5
06 burgerspace (1.9.3-1) unstable; urgency=medium
17
28 * New upstream version 1.9.3.
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 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
1515 # GNU General Public License for more details.
1616
1717 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
2020 # As a special exception to the GNU General Public License, if you
2121 # distribute this file as part of a program that contains a
782782 # Local Variables:
783783 # mode: shell-script
784784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
785 # eval: (add-hook 'before-save-hook 'time-stamp)
786786 # time-stamp-start: "scriptversion="
787787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC"
788 # time-stamp-time-zone: "UTC0"
789789 # time-stamp-end: "; # UTC"
790790 # End:
1919 .\" 02110-1301, USA.
2020 .\"
2121 .\"
22 .TH BURGERSPACE "6" "November 11th, 2019" "" ""
22 .TH BURGERSPACE "6" "June 18th, 2021" "" ""
2323 .SH NAME
2424 burgerspace-server \- UDP server for the networked version of BurgerSpace
2525 .SH SYNOPSIS
0 .\" $Id: burgerspace.6.in,v 1.4 2013/03/17 04:02:05 sarrazip Exp $
0 .\" $Id: burgerspace.6.in,v 1.5 2021/06/13 02:43:46 sarrazip Exp $
11 .\" BurgerSpace manual page
22 .\"
33 .\" burgerspace - A hamburger-smashing video game.
4 .\" Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
4 .\" Copyright (C) 2001-2021 Pierre Sarrazin <http://sarrazip.com/>
55 .\"
66 .\" This program is free software; you can redistribute it and/or
77 .\" modify it under the terms of the GNU General Public License
1919 .\" 02110-1301, USA.
2020 .\"
2121 .\"
22 .TH BURGERSPACE "6" "November 11th, 2019" "" ""
22 .TH BURGERSPACE "6" "June 18th, 2021" "" ""
2323 .SH NAME
2424 burgerspace \- A hamburger-smashing video game
2525 .SH SYNOPSIS
7878 \fB\-\-ms\-per\-frame=N\fR
7979 N milliseconds per animation frame. Default is 55.
8080 Minimum is 1. Maximum is 1000. 50 means 20 frames per second.
81 .TP
82 \fB\-\-no\-active\-event\fR
83 Do not pause when the window becomes inactive.
84 This option keeps the game from processing SDL's SDL_ACTIVEEVENT,
85 which the game receives when the window loses the focus.
86 Without this option, the game automatically pauses while the window
87 does not have the focus or is iconified,
88 which avoids using the CPU during that time.
89 This automatic pausing is useful to save energy on battery-operated devices.
8190 .SH NETWORK CLIENT OPTIONS
8291 .TP
8392 \fB\-\-server=HOSTNAME\fR
0 .\" $Id: burgerspace.6.in,v 1.4 2013/03/17 04:02:05 sarrazip Exp $
0 .\" $Id: burgerspace.6.in,v 1.5 2021/06/13 02:43:46 sarrazip Exp $
11 .\" BurgerSpace manual page
22 .\"
33 .\" burgerspace - A hamburger-smashing video game.
4 .\" Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
4 .\" Copyright (C) 2001-2021 Pierre Sarrazin <http://sarrazip.com/>
55 .\"
66 .\" This program is free software; you can redistribute it and/or
77 .\" modify it under the terms of the GNU General Public License
7878 \fB\-\-ms\-per\-frame=N\fR
7979 N milliseconds per animation frame. Default is 55.
8080 Minimum is 1. Maximum is 1000. 50 means 20 frames per second.
81 .TP
82 \fB\-\-no\-active\-event\fR
83 Do not pause when the window becomes inactive.
84 This option keeps the game from processing SDL's SDL_ACTIVEEVENT,
85 which the game receives when the window loses the focus.
86 Without this option, the game automatically pauses while the window
87 does not have the focus or is iconified,
88 which avoids using the CPU during that time.
89 This automatic pausing is useful to save energy on battery-operated devices.
8190 .SH NETWORK CLIENT OPTIONS
8291 .TP
8392 \fB\-\-server=HOSTNAME\fR
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2013-12-25.23; # UTC
3 scriptversion=2018-03-11.20; # 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
270270 fi
271271 dst=$dst_arg
272272
273 # If destination is a directory, append the input filename; won't work
274 # if double slashes aren't ignored.
273 # If destination is a directory, append the input filename.
275274 if test -d "$dst"; then
276275 if test "$is_target_a_directory" = never; then
277276 echo "$0: $dst_arg: Is a directory" >&2
278277 exit 1
279278 fi
280279 dstdir=$dst
281 dst=$dstdir/`basename "$src"`
280 dstbase=`basename "$src"`
281 case $dst in
282 */) dst=$dst$dstbase;;
283 *) dst=$dst/$dstbase;;
284 esac
282285 dstdir_status=0
283286 else
284287 dstdir=`dirname "$dst"`
286289 dstdir_status=$?
287290 fi
288291 fi
292
293 case $dstdir in
294 */) dstdirslash=$dstdir;;
295 *) dstdirslash=$dstdir/;;
296 esac
289297
290298 obsolete_mkdir_used=false
291299
323331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324332 ;;
325333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
326336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
327 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
328
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
329344 if (umask $mkdir_umask &&
330 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
331347 then
332348 if test -z "$dir_arg" || {
333349 # Check for POSIX incompatibilities with -m.
334350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
335351 # other-writable bit of parent directory when it shouldn't.
336352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
337 ls_ld_tmpdir=`ls -ld "$tmpdir"`
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
338355 case $ls_ld_tmpdir in
339356 d????-?r-*) different_mode=700;;
340357 d????-?--*) different_mode=755;;
341358 *) false;;
342359 esac &&
343 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
344 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
345362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
346363 }
347364 }
348365 then posix_mkdir=:
349366 fi
350 rmdir "$tmpdir/d" "$tmpdir"
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
351368 else
352369 # Remove any dirs left behind by ancient mkdir implementations.
353 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
354371 fi
355372 trap '' 0;;
356373 esac;;
426443 else
427444
428445 # Make a couple of temp file names in the proper directory.
429 dsttmp=$dstdir/_inst.$$_
430 rmtmp=$dstdir/_rm.$$_
446 dsttmp=${dstdirslash}_inst.$$_
447 rmtmp=${dstdirslash}_rm.$$_
431448
432449 # Trap to clean up those temp files at exit.
433450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
492509 done
493510
494511 # Local variables:
495 # eval: (add-hook 'write-file-hooks 'time-stamp)
512 # eval: (add-hook 'before-save-hook 'time-stamp)
496513 # time-stamp-start: "scriptversion="
497514 # time-stamp-format: "%:y-%02m-%02d.%02H"
498 # time-stamp-time-zone: "UTC"
515 # time-stamp-time-zone: "UTC0"
499516 # time-stamp-end: "; # UTC"
500517 # End:
+3747
-2157
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-14"
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='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=2015-10-07.11; # 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 _G_rc_run_hooks=false
1533
1534 case " $hookable_fns " in
1535 *" $1 "*) ;;
1536 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1537 esac
1538
1539 eval _G_hook_fns=\$$1_hooks; shift
1540
1541 for _G_hook in $_G_hook_fns; do
1542 if eval $_G_hook '"$@"'; then
1543 # store returned options list back into positional
1544 # parameters for next 'cmd' execution.
1545 eval _G_hook_result=\$${_G_hook}_result
1546 eval set dummy "$_G_hook_result"; shift
1547 _G_rc_run_hooks=:
1548 fi
1549 done
1550
1551 $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result
1552 }
1553
1554
1555
1556 ## --------------- ##
1557 ## Option parsing. ##
1558 ## --------------- ##
1559
1560 # In order to add your own option parsing hooks, you must accept the
1561 # full positional parameter list in your hook function, you may remove/edit
1562 # any options that you action, and then pass back the remaining unprocessed
1563 # options in '<hooked_function_name>_result', escaped suitably for
1564 # 'eval'. In this case you also must return $EXIT_SUCCESS to let the
1565 # hook's caller know that it should pay attention to
1566 # '<hooked_function_name>_result'. Returning $EXIT_FAILURE signalizes that
1567 # arguments are left untouched by the hook and therefore caller will ignore the
1568 # result variable.
1569 #
1570 # Like this:
1571 #
1572 # my_options_prep ()
1573 # {
1574 # $debug_cmd
1575 #
1576 # # Extend the existing usage message.
1577 # usage_message=$usage_message'
1578 # -s, --silent don'\''t print informational messages
1579 # '
1580 # # No change in '$@' (ignored completely by this hook). There is
1581 # # no need to do the equivalent (but slower) action:
1582 # # func_quote_for_eval ${1+"$@"}
1583 # # my_options_prep_result=$func_quote_for_eval_result
1584 # false
1585 # }
1586 # func_add_hook func_options_prep my_options_prep
1587 #
1588 #
1589 # my_silent_option ()
1590 # {
1591 # $debug_cmd
1592 #
1593 # args_changed=false
1594 #
1595 # # Note that for efficiency, we parse as many options as we can
1596 # # recognise in a loop before passing the remainder back to the
1597 # # caller on the first unrecognised argument we encounter.
1598 # while test $# -gt 0; do
1599 # opt=$1; shift
1600 # case $opt in
1601 # --silent|-s) opt_silent=:
1602 # args_changed=:
1603 # ;;
1604 # # Separate non-argument short options:
1605 # -s*) func_split_short_opt "$_G_opt"
1606 # set dummy "$func_split_short_opt_name" \
1607 # "-$func_split_short_opt_arg" ${1+"$@"}
1608 # shift
1609 # args_changed=:
1610 # ;;
1611 # *) # Make sure the first unrecognised option "$_G_opt"
1612 # # is added back to "$@", we could need that later
1613 # # if $args_changed is true.
1614 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1615 # esac
1616 # done
1617 #
1618 # if $args_changed; then
1619 # func_quote_for_eval ${1+"$@"}
1620 # my_silent_option_result=$func_quote_for_eval_result
1621 # fi
1622 #
1623 # $args_changed
1624 # }
1625 # func_add_hook func_parse_options my_silent_option
1626 #
1627 #
1628 # my_option_validation ()
1629 # {
1630 # $debug_cmd
1631 #
1632 # $opt_silent && $opt_verbose && func_fatal_help "\
1633 # '--silent' and '--verbose' options are mutually exclusive."
1634 #
1635 # false
1636 # }
1637 # func_add_hook func_validate_options my_option_validation
1638 #
1639 # You'll also need to manually amend $usage_message to reflect the extra
1640 # options you parse. It's preferable to append if you can, so that
1641 # multiple option parsing hooks can be added safely.
1642
1643
1644 # func_options_finish [ARG]...
1645 # ----------------------------
1646 # Finishing the option parse loop (call 'func_options' hooks ATM).
1647 func_options_finish ()
1648 {
1649 $debug_cmd
1650
1651 _G_func_options_finish_exit=false
1652 if func_run_hooks func_options ${1+"$@"}; then
1653 func_options_finish_result=$func_run_hooks_result
1654 _G_func_options_finish_exit=:
1655 fi
1656
1657 $_G_func_options_finish_exit
1658 }
1659
1660
1661 # func_options [ARG]...
1662 # ---------------------
1663 # All the functions called inside func_options are hookable. See the
1664 # individual implementations for details.
1665 func_hookable func_options
1666 func_options ()
1667 {
1668 $debug_cmd
1669
1670 _G_rc_options=false
1671
1672 for my_func in options_prep parse_options validate_options options_finish
1673 do
1674 if eval func_$my_func '${1+"$@"}'; then
1675 eval _G_res_var='$'"func_${my_func}_result"
1676 eval set dummy "$_G_res_var" ; shift
1677 _G_rc_options=:
1678 fi
1679 done
1680
1681 # Save modified positional parameters for caller. As a top-level
1682 # options-parser function we always need to set the 'func_options_result'
1683 # variable (regardless the $_G_rc_options value).
1684 if $_G_rc_options; then
1685 func_options_result=$_G_res_var
1686 else
1687 func_quote_for_eval ${1+"$@"}
1688 func_options_result=$func_quote_for_eval_result
1689 fi
1690
1691 $_G_rc_options
1692 }
1693
1694
1695 # func_options_prep [ARG]...
1696 # --------------------------
1697 # All initialisations required before starting the option parse loop.
1698 # Note that when calling hook functions, we pass through the list of
1699 # positional parameters. If a hook function modifies that list, and
1700 # needs to propagate that back to rest of this script, then the complete
1701 # modified list must be put in 'func_run_hooks_result' before
1702 # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned).
1703 func_hookable func_options_prep
1704 func_options_prep ()
1705 {
1706 $debug_cmd
1707
1708 # Option defaults:
1709 opt_verbose=false
1710 opt_warning_types=
1711
1712 _G_rc_options_prep=false
1713 if func_run_hooks func_options_prep ${1+"$@"}; then
1714 _G_rc_options_prep=:
1715 # save modified positional parameters for caller
1716 func_options_prep_result=$func_run_hooks_result
1717 fi
1718
1719 $_G_rc_options_prep
1720 }
1721
1722
1723 # func_parse_options [ARG]...
1724 # ---------------------------
1725 # The main option parsing loop.
1726 func_hookable func_parse_options
1727 func_parse_options ()
1728 {
1729 $debug_cmd
1730
1731 func_parse_options_result=
1732
1733 _G_rc_parse_options=false
1734 # this just eases exit handling
1735 while test $# -gt 0; do
1736 # Defer to hook functions for initial option parsing, so they
1737 # get priority in the event of reusing an option name.
1738 if func_run_hooks func_parse_options ${1+"$@"}; then
1739 eval set dummy "$func_run_hooks_result"; shift
1740 _G_rc_parse_options=:
1741 fi
1742
1743 # Break out of the loop if we already parsed every option.
1744 test $# -gt 0 || break
1745
1746 _G_match_parse_options=:
1747 _G_opt=$1
1748 shift
1749 case $_G_opt in
1750 --debug|-x) debug_cmd='set -x'
1751 func_echo "enabling shell trace mode"
1752 $debug_cmd
1753 ;;
1754
1755 --no-warnings|--no-warning|--no-warn)
1756 set dummy --warnings none ${1+"$@"}
1757 shift
1758 ;;
1759
1760 --warnings|--warning|-W)
1761 if test $# = 0 && func_missing_arg $_G_opt; then
1762 _G_rc_parse_options=:
1763 break
1764 fi
1765 case " $warning_categories $1" in
1766 *" $1 "*)
1767 # trailing space prevents matching last $1 above
1768 func_append_uniq opt_warning_types " $1"
1769 ;;
1770 *all)
1771 opt_warning_types=$warning_categories
1772 ;;
1773 *none)
1774 opt_warning_types=none
1775 warning_func=:
1776 ;;
1777 *error)
1778 opt_warning_types=$warning_categories
1779 warning_func=func_fatal_error
1780 ;;
1781 *)
1782 func_fatal_error \
1783 "unsupported warning category: '$1'"
1784 ;;
1785 esac
1786 shift
1787 ;;
1788
1789 --verbose|-v) opt_verbose=: ;;
1790 --version) func_version ;;
1791 -\?|-h) func_usage ;;
1792 --help) func_help ;;
1793
1794 # Separate optargs to long options (plugins may need this):
1795 --*=*) func_split_equals "$_G_opt"
1796 set dummy "$func_split_equals_lhs" \
1797 "$func_split_equals_rhs" ${1+"$@"}
1798 shift
1799 ;;
1800
1801 # Separate optargs to short options:
1802 -W*)
1803 func_split_short_opt "$_G_opt"
1804 set dummy "$func_split_short_opt_name" \
1805 "$func_split_short_opt_arg" ${1+"$@"}
1806 shift
1807 ;;
1808
1809 # Separate non-argument short options:
1810 -\?*|-h*|-v*|-x*)
1811 func_split_short_opt "$_G_opt"
1812 set dummy "$func_split_short_opt_name" \
1813 "-$func_split_short_opt_arg" ${1+"$@"}
1814 shift
1815 ;;
1816
1817 --) _G_rc_parse_options=: ; break ;;
1818 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1819 *) set dummy "$_G_opt" ${1+"$@"}; shift
1820 _G_match_parse_options=false
1821 break
1822 ;;
1823 esac
1824
1825 $_G_match_parse_options && _G_rc_parse_options=:
1826 done
1827
1828
1829 if $_G_rc_parse_options; then
1830 # save modified positional parameters for caller
1831 func_quote_for_eval ${1+"$@"}
1832 func_parse_options_result=$func_quote_for_eval_result
1833 fi
1834
1835 $_G_rc_parse_options
1836 }
1837
1838
1839 # func_validate_options [ARG]...
1840 # ------------------------------
1841 # Perform any sanity checks on option settings and/or unconsumed
1842 # arguments.
1843 func_hookable func_validate_options
1844 func_validate_options ()
1845 {
1846 $debug_cmd
1847
1848 _G_rc_validate_options=false
1849
1850 # Display all warnings if -W was not given.
1851 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1852
1853 if func_run_hooks func_validate_options ${1+"$@"}; then
1854 # save modified positional parameters for caller
1855 func_validate_options_result=$func_run_hooks_result
1856 _G_rc_validate_options=:
1857 fi
1858
1859 # Bail if the options were screwed!
1860 $exit_cmd $EXIT_FAILURE
1861
1862 $_G_rc_validate_options
1863 }
1864
1865
1866
1867 ## ----------------- ##
1868 ## Helper functions. ##
1869 ## ----------------- ##
1870
1871 # This section contains the helper functions used by the rest of the
1872 # hookable option parser framework in ascii-betical order.
1873
1874
1875 # func_fatal_help ARG...
1876 # ----------------------
1877 # Echo program name prefixed message to standard error, followed by
1878 # a help hint, and exit.
1879 func_fatal_help ()
1880 {
1881 $debug_cmd
1882
1883 eval \$ECHO \""Usage: $usage"\"
1884 eval \$ECHO \""$fatal_help"\"
1885 func_error ${1+"$@"}
1886 exit $EXIT_FAILURE
1887 }
1888
1889
1890 # func_help
1891 # ---------
1892 # Echo long help message to standard output and exit.
7541893 func_help ()
7551894 {
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
1895 $debug_cmd
1896
1897 func_usage_message
1898 $ECHO "$long_help_message"
1899 exit 0
1900 }
1901
1902
1903 # func_missing_arg ARGNAME
1904 # ------------------------
7841905 # Echo program name prefixed message to standard error and set global
7851906 # exit_cmd.
7861907 func_missing_arg ()
7871908 {
788 $opt_debug
789
790 func_error "missing argument for $1."
1909 $debug_cmd
1910
1911 func_error "Missing argument for '$1'."
7911912 exit_cmd=exit
7921913 }
7931914
7941915
795 # func_split_short_opt shortopt
1916 # func_split_equals STRING
1917 # ------------------------
1918 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1919 # splitting STRING at the '=' sign.
1920 test -z "$_G_HAVE_XSI_OPS" \
1921 && (eval 'x=a/b/c;
1922 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1923 && _G_HAVE_XSI_OPS=yes
1924
1925 if test yes = "$_G_HAVE_XSI_OPS"
1926 then
1927 # This is an XSI compatible shell, allowing a faster implementation...
1928 eval 'func_split_equals ()
1929 {
1930 $debug_cmd
1931
1932 func_split_equals_lhs=${1%%=*}
1933 func_split_equals_rhs=${1#*=}
1934 test "x$func_split_equals_lhs" = "x$1" \
1935 && func_split_equals_rhs=
1936 }'
1937 else
1938 # ...otherwise fall back to using expr, which is often a shell builtin.
1939 func_split_equals ()
1940 {
1941 $debug_cmd
1942
1943 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1944 func_split_equals_rhs=
1945 test "x$func_split_equals_lhs" = "x$1" \
1946 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1947 }
1948 fi #func_split_equals
1949
1950
1951 # func_split_short_opt SHORTOPT
1952 # -----------------------------
7961953 # Set func_split_short_opt_name and func_split_short_opt_arg shell
7971954 # 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...
1955 if test yes = "$_G_HAVE_XSI_OPS"
1956 then
1957 # This is an XSI compatible shell, allowing a faster implementation...
1958 eval 'func_split_short_opt ()
1959 {
1960 $debug_cmd
1961
1962 func_split_short_opt_arg=${1#??}
1963 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1964 }'
1965 else
1966 # ...otherwise fall back to using expr, which is often a shell builtin.
1967 func_split_short_opt ()
1968 {
1969 $debug_cmd
1970
1971 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1972 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1973 }
1974 fi #func_split_short_opt
1975
1976
1977 # func_usage
1978 # ----------
1979 # Echo short help message to standard output and exit.
1980 func_usage ()
1981 {
1982 $debug_cmd
1983
1984 func_usage_message
1985 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1986 exit 0
1987 }
1988
1989
1990 # func_usage_message
1991 # ------------------
1992 # Echo short help message to standard output.
1993 func_usage_message ()
1994 {
1995 $debug_cmd
1996
1997 eval \$ECHO \""Usage: $usage"\"
1998 echo
1999 $SED -n 's|^# ||
2000 /^Written by/{
2001 x;p;x
2002 }
2003 h
2004 /^Written by/q' < "$progpath"
2005 echo
2006 eval \$ECHO \""$usage_message"\"
2007 }
2008
2009
2010 # func_version
2011 # ------------
2012 # Echo version message to standard output and exit.
2013 func_version ()
2014 {
2015 $debug_cmd
2016
2017 printf '%s\n' "$progname $scriptversion"
2018 $SED -n '
2019 /(C)/!b go
2020 :more
2021 /\./!{
2022 N
2023 s|\n# | |
2024 b more
2025 }
2026 :go
2027 /^# Written by /,/# warranty; / {
2028 s|^# ||
2029 s|^# *$||
2030 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2031 p
2032 }
2033 /^# Written by / {
2034 s|^# ||
2035 p
2036 }
2037 /^warranty; /q' < "$progpath"
2038
2039 exit $?
2040 }
2041
2042
2043 # Local variables:
2044 # mode: shell-script
2045 # sh-indentation: 2
2046 # eval: (add-hook 'before-save-hook 'time-stamp)
2047 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2048 # time-stamp-time-zone: "UTC"
2049 # End:
2050
2051 # Set a version string.
2052 scriptversion='(GNU libtool) 2.4.6'
2053
2054
2055 # func_echo ARG...
2056 # ----------------
2057 # Libtool also displays the current mode in messages, so override
2058 # funclib.sh func_echo with this custom definition.
2059 func_echo ()
2060 {
2061 $debug_cmd
2062
2063 _G_message=$*
2064
2065 func_echo_IFS=$IFS
2066 IFS=$nl
2067 for _G_line in $_G_message; do
2068 IFS=$func_echo_IFS
2069 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
2070 done
2071 IFS=$func_echo_IFS
2072 }
2073
2074
2075 # func_warning ARG...
2076 # -------------------
2077 # Libtool warnings are not categorized, so override funclib.sh
2078 # func_warning with this simpler definition.
2079 func_warning ()
2080 {
2081 $debug_cmd
2082
2083 $warning_func ${1+"$@"}
2084 }
2085
2086
2087 ## ---------------- ##
2088 ## Options parsing. ##
2089 ## ---------------- ##
2090
2091 # Hook in the functions to make sure our own options are parsed during
2092 # the option parsing loop.
2093
2094 usage='$progpath [OPTION]... [MODE-ARG]...'
2095
2096 # Short help message in response to '-h'.
2097 usage_message="Options:
2098 --config show all configuration variables
2099 --debug enable verbose shell tracing
2100 -n, --dry-run display commands without modifying any files
2101 --features display basic configuration information and exit
2102 --mode=MODE use operation mode MODE
2103 --no-warnings equivalent to '-Wnone'
2104 --preserve-dup-deps don't remove duplicate dependency libraries
2105 --quiet, --silent don't print informational messages
2106 --tag=TAG use configuration variables from tag TAG
2107 -v, --verbose print more informational messages than default
2108 --version print version information
2109 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2110 -h, --help, --help-all print short, long, or detailed help message
2111 "
2112
2113 # Additional text appended to 'usage_message' in response to '--help'.
2114 func_help ()
2115 {
2116 $debug_cmd
2117
2118 func_usage_message
2119 $ECHO "$long_help_message
2120
2121 MODE must be one of the following:
2122
2123 clean remove files from the build directory
2124 compile compile a source file into a libtool object
2125 execute automatically set library path, then run a program
2126 finish complete the installation of libtool libraries
2127 install install libraries or executables
2128 link create a library or an executable
2129 uninstall remove libraries from an installed directory
2130
2131 MODE-ARGS vary depending on the MODE. When passed as first option,
2132 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2133 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2134
2135 When reporting a bug, please describe a test case to reproduce it and
2136 include the following information:
2137
2138 host-triplet: $host
2139 shell: $SHELL
2140 compiler: $LTCC
2141 compiler flags: $LTCFLAGS
2142 linker: $LD (gnu? $with_gnu_ld)
2143 version: $progname $scriptversion Debian-2.4.6-14
2144 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2145 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2146
2147 Report bugs to <bug-libtool@gnu.org>.
2148 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2149 General help using GNU software: <http://www.gnu.org/gethelp/>."
2150 exit 0
2151 }
2152
2153
2154 # func_lo2o OBJECT-NAME
2155 # ---------------------
2156 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2157 # object suffix.
2158
2159 lo2o=s/\\.lo\$/.$objext/
2160 o2lo=s/\\.$objext\$/.lo/
2161
2162 if test yes = "$_G_HAVE_XSI_OPS"; then
2163 eval 'func_lo2o ()
2164 {
2165 case $1 in
2166 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2167 * ) func_lo2o_result=$1 ;;
2168 esac
2169 }'
2170
2171 # func_xform LIBOBJ-OR-SOURCE
2172 # ---------------------------
2173 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2174 # suffix to a '.lo' libtool-object suffix.
2175 eval 'func_xform ()
2176 {
2177 func_xform_result=${1%.*}.lo
2178 }'
2179 else
2180 # ...otherwise fall back to using sed.
2181 func_lo2o ()
2182 {
2183 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2184 }
2185
2186 func_xform ()
2187 {
2188 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2189 }
2190 fi
2191
2192
2193 # func_fatal_configuration ARG...
2194 # -------------------------------
8892195 # Echo program name prefixed message to standard error, followed by
8902196 # a configuration failure hint, and exit.
8912197 func_fatal_configuration ()
8922198 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
2199 func__fatal_error ${1+"$@"} \
2200 "See the $PACKAGE documentation for more information." \
2201 "Fatal configuration error."
8962202 }
8972203
8982204
8992205 # func_config
2206 # -----------
9002207 # Display the configuration for all the tags in this script.
9012208 func_config ()
9022209 {
9142221 exit $?
9152222 }
9162223
2224
9172225 # func_features
2226 # -------------
9182227 # Display the features supported by this script.
9192228 func_features ()
9202229 {
9212230 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
2231 if test yes = "$build_libtool_libs"; then
9232232 echo "enable shared libraries"
9242233 else
9252234 echo "disable shared libraries"
9262235 fi
927 if test "$build_old_libs" = yes; then
2236 if test yes = "$build_old_libs"; then
9282237 echo "enable static libraries"
9292238 else
9302239 echo "disable static libraries"
9332242 exit $?
9342243 }
9352244
936 # func_enable_tag tagname
2245
2246 # func_enable_tag TAGNAME
2247 # -----------------------
9372248 # Verify that TAGNAME is valid, and either flag an error and exit, or
9382249 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
9392250 # variable here.
9402251 func_enable_tag ()
9412252 {
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) ;;
2253 # Global variable:
2254 tagname=$1
2255
2256 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2257 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2258 sed_extractcf=/$re_begincf/,/$re_endcf/p
2259
2260 # Validate tagname.
2261 case $tagname in
2262 *[!-_A-Za-z0-9,/]*)
2263 func_fatal_error "invalid tag name: $tagname"
2264 ;;
2265 esac
2266
2267 # Don't test for the "default" C tag, as we know it's
2268 # there but not specially marked.
2269 case $tagname in
2270 CC) ;;
9602271 *)
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 }
2272 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2273 taglist="$taglist $tagname"
2274
2275 # Evaluate the configuration. Be careful to quote the path
2276 # and the sed script, to avoid splitting on whitespace, but
2277 # also don't use non-portable quotes within backquotes within
2278 # quotes we have to do it in 2 steps:
2279 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2280 eval "$extractedcf"
2281 else
2282 func_error "ignoring unknown tag $tagname"
2283 fi
2284 ;;
2285 esac
2286 }
2287
9762288
9772289 # func_check_version_match
2290 # ------------------------
9782291 # Ensure that we are using m4 macros, and libtool script from the same
9792292 # release of libtool.
9802293 func_check_version_match ()
9812294 {
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
2295 if test "$package_revision" != "$macro_revision"; then
2296 if test "$VERSION" != "$macro_version"; then
2297 if test -z "$macro_version"; then
2298 cat >&2 <<_LT_EOF
9862299 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9872300 $progname: definition of this LT_INIT comes from an older release.
9882301 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9892302 $progname: and run autoconf again.
9902303 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
2304 else
2305 cat >&2 <<_LT_EOF
9932306 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9942307 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
9952308 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9962309 $progname: and run autoconf again.
9972310 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
2311 fi
2312 else
2313 cat >&2 <<_LT_EOF
10012314 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
10022315 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
10032316 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
10042317 $progname: of $PACKAGE $VERSION and run autoconf again.
10052318 _LT_EOF
2319 fi
2320
2321 exit $EXIT_MISMATCH
10062322 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 ;;
1167 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=:
2323 }
2324
2325
2326 # libtool_options_prep [ARG]...
2327 # -----------------------------
2328 # Preparation for options parsed by libtool.
2329 libtool_options_prep ()
2330 {
2331 $debug_mode
2332
2333 # Option defaults:
2334 opt_config=false
2335 opt_dlopen=
2336 opt_dry_run=false
2337 opt_help=false
2338 opt_mode=
2339 opt_preserve_dup_deps=false
2340 opt_quiet=false
2341
2342 nonopt=
2343 preserve_args=
2344
2345 _G_rc_lt_options_prep=:
2346
2347 # Shorthand for --mode=foo, only valid as the first argument
2348 case $1 in
2349 clean|clea|cle|cl)
2350 shift; set dummy --mode clean ${1+"$@"}; shift
2351 ;;
2352 compile|compil|compi|comp|com|co|c)
2353 shift; set dummy --mode compile ${1+"$@"}; shift
2354 ;;
2355 execute|execut|execu|exec|exe|ex|e)
2356 shift; set dummy --mode execute ${1+"$@"}; shift
2357 ;;
2358 finish|finis|fini|fin|fi|f)
2359 shift; set dummy --mode finish ${1+"$@"}; shift
2360 ;;
2361 install|instal|insta|inst|ins|in|i)
2362 shift; set dummy --mode install ${1+"$@"}; shift
2363 ;;
2364 link|lin|li|l)
2365 shift; set dummy --mode link ${1+"$@"}; shift
2366 ;;
2367 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2368 shift; set dummy --mode uninstall ${1+"$@"}; shift
11852369 ;;
11862370 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2371 _G_rc_lt_options_prep=false
11882372 ;;
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"
2373 esac
2374
2375 if $_G_rc_lt_options_prep; then
2376 # Pass back the list of options.
2377 func_quote_for_eval ${1+"$@"}
2378 libtool_options_prep_result=$func_quote_for_eval_result
11972379 fi
11982380
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
2381 $_G_rc_lt_options_prep
2382 }
2383 func_add_hook func_options_prep libtool_options_prep
2384
2385
2386 # libtool_parse_options [ARG]...
2387 # ---------------------------------
2388 # Provide handling for libtool specific options.
2389 libtool_parse_options ()
2390 {
2391 $debug_cmd
2392
2393 _G_rc_lt_parse_options=false
2394
2395 # Perform our own loop to consume as many options as possible in
2396 # each iteration.
2397 while test $# -gt 0; do
2398 _G_match_lt_parse_options=:
2399 _G_opt=$1
2400 shift
2401 case $_G_opt in
2402 --dry-run|--dryrun|-n)
2403 opt_dry_run=:
2404 ;;
2405
2406 --config) func_config ;;
2407
2408 --dlopen|-dlopen)
2409 opt_dlopen="${opt_dlopen+$opt_dlopen
2410 }$1"
2411 shift
2412 ;;
2413
2414 --preserve-dup-deps)
2415 opt_preserve_dup_deps=: ;;
2416
2417 --features) func_features ;;
2418
2419 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2420
2421 --help) opt_help=: ;;
2422
2423 --help-all) opt_help=': help-all' ;;
2424
2425 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2426 opt_mode=$1
2427 case $1 in
2428 # Valid mode arguments:
2429 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2430
2431 # Catch anything else as an error
2432 *) func_error "invalid argument for $_G_opt"
2433 exit_cmd=exit
2434 break
2435 ;;
2436 esac
2437 shift
2438 ;;
2439
2440 --no-silent|--no-quiet)
2441 opt_quiet=false
2442 func_append preserve_args " $_G_opt"
2443 ;;
2444
2445 --no-warnings|--no-warning|--no-warn)
2446 opt_warning=false
2447 func_append preserve_args " $_G_opt"
2448 ;;
2449
2450 --no-verbose)
2451 opt_verbose=false
2452 func_append preserve_args " $_G_opt"
2453 ;;
2454
2455 --silent|--quiet)
2456 opt_quiet=:
2457 opt_verbose=false
2458 func_append preserve_args " $_G_opt"
2459 ;;
2460
2461 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2462 opt_tag=$1
2463 func_append preserve_args " $_G_opt $1"
2464 func_enable_tag "$1"
2465 shift
2466 ;;
2467
2468 --verbose|-v) opt_quiet=false
2469 opt_verbose=:
2470 func_append preserve_args " $_G_opt"
2471 ;;
2472
2473 # An option not handled by this hook function:
2474 *) set dummy "$_G_opt" ${1+"$@"} ; shift
2475 _G_match_lt_parse_options=false
2476 break
2477 ;;
2478 esac
2479 $_G_match_lt_parse_options && _G_rc_lt_parse_options=:
2480 done
2481
2482 if $_G_rc_lt_parse_options; then
2483 # save modified positional parameters for caller
2484 func_quote_for_eval ${1+"$@"}
2485 libtool_parse_options_result=$func_quote_for_eval_result
12072486 fi
12082487
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
2488 $_G_rc_lt_parse_options
2489 }
2490 func_add_hook func_parse_options libtool_parse_options
2491
2492
2493
2494 # libtool_validate_options [ARG]...
2495 # ---------------------------------
2496 # Perform any sanity checks on option settings and/or unconsumed
2497 # arguments.
2498 libtool_validate_options ()
2499 {
2500 # save first non-option argument
2501 if test 0 -lt $#; then
2502 nonopt=$1
2503 shift
2504 fi
2505
2506 # preserve --debug
2507 test : = "$debug_cmd" || func_append preserve_args " --debug"
2508
2509 case $host in
2510 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2511 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2512 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2513 # don't eliminate duplications in $postdeps and $predeps
2514 opt_duplicate_compiler_generated_deps=:
2515 ;;
2516 *)
2517 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2518 ;;
2519 esac
2520
2521 $opt_help || {
2522 # Sanity checks first:
2523 func_check_version_match
2524
2525 test yes != "$build_libtool_libs" \
2526 && test yes != "$build_old_libs" \
2527 && func_fatal_configuration "not configured to build any kind of library"
2528
2529 # Darwin sucks
2530 eval std_shrext=\"$shrext_cmds\"
2531
2532 # Only execute mode is allowed to have -dlopen flags.
2533 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2534 func_error "unrecognized option '-dlopen'"
2535 $ECHO "$help" 1>&2
2536 exit $EXIT_FAILURE
2537 fi
2538
2539 # Change the help message to a mode-specific one.
2540 generic_help=$help
2541 help="Try '$progname --help --mode=$opt_mode' for more information."
2542 }
2543
2544 # Pass back the unparsed argument list
2545 func_quote_for_eval ${1+"$@"}
2546 libtool_validate_options_result=$func_quote_for_eval_result
2547 }
2548 func_add_hook func_validate_options libtool_validate_options
2549
2550
2551 # Process options as early as possible so that --help and --version
2552 # can return quickly.
2553 func_options ${1+"$@"}
2554 eval set dummy "$func_options_result"; shift
12192555
12202556
12212557
12232559 ## Main. ##
12242560 ## ----------- ##
12252561
2562 magic='%%%MAGIC variable%%%'
2563 magic_exe='%%%MAGIC EXE variable%%%'
2564
2565 # Global variables.
2566 extracted_archives=
2567 extracted_serial=0
2568
2569 # If this variable is set in any of the actions, the command in it
2570 # will be execed at the end. This prevents here-documents from being
2571 # left over by shells.
2572 exec_cmd=
2573
2574
2575 # A function that is used when there is no print builtin or printf.
2576 func_fallback_echo ()
2577 {
2578 eval 'cat <<_LTECHO_EOF
2579 $1
2580 _LTECHO_EOF'
2581 }
2582
2583 # func_generated_by_libtool
2584 # True iff stdin has been generated by Libtool. This function is only
2585 # a basic sanity check; it will hardly flush out determined imposters.
2586 func_generated_by_libtool_p ()
2587 {
2588 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2589 }
2590
12262591 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
2592 # True iff FILE is a libtool '.la' library or '.lo' object file.
12282593 # This function is only a basic sanity check; it will hardly flush out
12292594 # determined imposters.
12302595 func_lalib_p ()
12312596 {
12322597 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2598 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
12352599 }
12362600
12372601 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
2602 # True iff FILE is a libtool '.la' library or '.lo' object file.
12392603 # This function implements the same check as func_lalib_p without
12402604 # resorting to external programs. To this end, it redirects stdin and
12412605 # closes it afterwards, without saving the original file descriptor.
12422606 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
2607 # fatal anyway. Works if 'file' does not exist.
12442608 func_lalib_unsafe_p ()
12452609 {
12462610 lalib_p=no
12482612 for lalib_p_l in 1 2 3 4
12492613 do
12502614 read lalib_p_line
1251 case "$lalib_p_line" in
2615 case $lalib_p_line in
12522616 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
12532617 esac
12542618 done
12552619 exec 0<&5 5<&-
12562620 fi
1257 test "$lalib_p" = yes
2621 test yes = "$lalib_p"
12582622 }
12592623
12602624 # func_ltwrapper_script_p file
12632627 # determined imposters.
12642628 func_ltwrapper_script_p ()
12652629 {
1266 func_lalib_p "$1"
2630 test -f "$1" &&
2631 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
12672632 }
12682633
12692634 # func_ltwrapper_executable_p file
12882653 {
12892654 func_dirname_and_basename "$1" "" "."
12902655 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
2656 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
12922657 }
12932658
12942659 # func_ltwrapper_p file
13072672 # FAIL_CMD may read-access the current command in variable CMD!
13082673 func_execute_cmds ()
13092674 {
1310 $opt_debug
2675 $debug_cmd
2676
13112677 save_ifs=$IFS; IFS='~'
13122678 for cmd in $1; do
2679 IFS=$sp$nl
2680 eval cmd=\"$cmd\"
13132681 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
13152682 func_show_eval "$cmd" "${2-:}"
13162683 done
13172684 IFS=$save_ifs
13232690 # Note that it is not necessary on cygwin/mingw to append a dot to
13242691 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
13252692 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
2693 # 'FILE.' does not work on cygwin managed mounts.
13272694 func_source ()
13282695 {
1329 $opt_debug
2696 $debug_cmd
2697
13302698 case $1 in
13312699 */* | *\\*) . "$1" ;;
13322700 *) . "./$1" ;;
13532721 # store the result into func_replace_sysroot_result.
13542722 func_replace_sysroot ()
13552723 {
1356 case "$lt_sysroot:$1" in
2724 case $lt_sysroot:$1 in
13572725 ?*:"$lt_sysroot"*)
13582726 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
2727 func_replace_sysroot_result='='$func_stripname_result
13602728 ;;
13612729 *)
13622730 # Including no sysroot.
13732741 # arg is usually of the form 'gcc ...'
13742742 func_infer_tag ()
13752743 {
1376 $opt_debug
2744 $debug_cmd
2745
13772746 if test -n "$available_tags" && test -z "$tagname"; then
13782747 CC_quoted=
13792748 for arg in $CC; do
13922761 for z in $available_tags; do
13932762 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
13942763 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2764 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
13962765 CC_quoted=
13972766 for arg in $CC; do
13982767 # Double-quote args containing other shell metacharacters.
14172786 # line option must be used.
14182787 if test -z "$tagname"; then
14192788 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
2789 func_fatal_error "specify a tag with '--tag'"
14212790 # else
14222791 # func_verbose "using $tagname tagged configuration"
14232792 fi
14332802 # but don't create it if we're doing a dry run.
14342803 func_write_libtool_object ()
14352804 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
2805 write_libobj=$1
2806 if test yes = "$build_libtool_libs"; then
2807 write_lobj=\'$2\'
14392808 else
14402809 write_lobj=none
14412810 fi
14422811
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
2812 if test yes = "$build_old_libs"; then
2813 write_oldobj=\'$3\'
14452814 else
14462815 write_oldobj=none
14472816 fi
14492818 $opt_dry_run || {
14502819 cat >${write_libobj}T <<EOF
14512820 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2821 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
14532822 #
14542823 # Please DO NOT delete this file!
14552824 # It is necessary for linking the library.
14612830 non_pic_object=$write_oldobj
14622831
14632832 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
2833 $MV "${write_libobj}T" "$write_libobj"
14652834 }
14662835 }
14672836
14812850 # be empty on error (or when ARG is empty)
14822851 func_convert_core_file_wine_to_w32 ()
14832852 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
2853 $debug_cmd
2854
2855 func_convert_core_file_wine_to_w32_result=$1
14862856 if test -n "$1"; then
14872857 # Unfortunately, winepath does not exit with a non-zero error code, so we
14882858 # are forced to check the contents of stdout. On the other hand, if the
14902860 # *an error message* to stdout. So we must check for both error code of
14912861 # zero AND non-empty stdout, which explains the odd construction:
14922862 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
2863 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
14942864 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
2865 $SED -e "$sed_naive_backslashify"`
14962866 else
14972867 func_convert_core_file_wine_to_w32_result=
14982868 fi
15132883 # are convertible, then the result may be empty.
15142884 func_convert_core_path_wine_to_w32 ()
15152885 {
1516 $opt_debug
2886 $debug_cmd
2887
15172888 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
2889 func_convert_core_path_wine_to_w32_result=
15192890 if test -n "$1"; then
15202891 oldIFS=$IFS
15212892 IFS=:
15222893 for func_convert_core_path_wine_to_w32_f in $1; do
15232894 IFS=$oldIFS
15242895 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
2896 if test -n "$func_convert_core_file_wine_to_w32_result"; then
15262897 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"
2898 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
15282899 else
15292900 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15302901 fi
15532924 # environment variable; do not put it in $PATH.
15542925 func_cygpath ()
15552926 {
1556 $opt_debug
2927 $debug_cmd
2928
15572929 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15582930 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15592931 if test "$?" -ne 0; then
15622934 fi
15632935 else
15642936 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
2937 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
15662938 fi
15672939 }
15682940 #end: func_cygpath
15732945 # result in func_convert_core_msys_to_w32_result.
15742946 func_convert_core_msys_to_w32 ()
15752947 {
1576 $opt_debug
2948 $debug_cmd
2949
15772950 # awkward: cmd appends spaces to result
15782951 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2952 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
15802953 }
15812954 #end: func_convert_core_msys_to_w32
15822955
15872960 # func_to_host_file_result to ARG1).
15882961 func_convert_file_check ()
15892962 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
2963 $debug_cmd
2964
2965 if test -z "$2" && test -n "$1"; then
15922966 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
2967 func_error " '$1'"
15942968 func_error "Continuing, but uninstalled executables may not work."
15952969 # Fallback:
1596 func_to_host_file_result="$1"
2970 func_to_host_file_result=$1
15972971 fi
15982972 }
15992973 # end func_convert_file_check
16052979 # func_to_host_file_result to a simplistic fallback value (see below).
16062980 func_convert_path_check ()
16072981 {
1608 $opt_debug
2982 $debug_cmd
2983
16092984 if test -z "$4" && test -n "$3"; then
16102985 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
2986 func_error " '$3'"
16122987 func_error "Continuing, but uninstalled executables may not work."
16132988 # Fallback. This is a deliberately simplistic "conversion" and
16142989 # should not be "improved". See libtool.info.
16172992 func_to_host_path_result=`echo "$3" |
16182993 $SED -e "$lt_replace_pathsep_chars"`
16192994 else
1620 func_to_host_path_result="$3"
2995 func_to_host_path_result=$3
16212996 fi
16222997 fi
16232998 }
16293004 # and appending REPL if ORIG matches BACKPAT.
16303005 func_convert_path_front_back_pathsep ()
16313006 {
1632 $opt_debug
3007 $debug_cmd
3008
16333009 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
3010 $1 ) func_to_host_path_result=$3$func_to_host_path_result
16353011 ;;
16363012 esac
16373013 case $4 in
16453021 ##################################################
16463022 # $build to $host FILE NAME CONVERSION FUNCTIONS #
16473023 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
3024 # invoked via '$to_host_file_cmd ARG'
16493025 #
16503026 # In each case, ARG is the path to be converted from $build to $host format.
16513027 # Result will be available in $func_to_host_file_result.
16563032 # in func_to_host_file_result.
16573033 func_to_host_file ()
16583034 {
1659 $opt_debug
3035 $debug_cmd
3036
16603037 $to_host_file_cmd "$1"
16613038 }
16623039 # end func_to_host_file
16683045 # in (the comma separated) LAZY, no conversion takes place.
16693046 func_to_tool_file ()
16703047 {
1671 $opt_debug
3048 $debug_cmd
3049
16723050 case ,$2, in
16733051 *,"$to_tool_file_cmd",*)
16743052 func_to_tool_file_result=$1
16863064 # Copy ARG to func_to_host_file_result.
16873065 func_convert_file_noop ()
16883066 {
1689 func_to_host_file_result="$1"
3067 func_to_host_file_result=$1
16903068 }
16913069 # end func_convert_file_noop
16923070
16973075 # func_to_host_file_result.
16983076 func_convert_file_msys_to_w32 ()
16993077 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
3078 $debug_cmd
3079
3080 func_to_host_file_result=$1
17023081 if test -n "$1"; then
17033082 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
3083 func_to_host_file_result=$func_convert_core_msys_to_w32_result
17053084 fi
17063085 func_convert_file_check "$1" "$func_to_host_file_result"
17073086 }
17133092 # func_to_host_file_result.
17143093 func_convert_file_cygwin_to_w32 ()
17153094 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
3095 $debug_cmd
3096
3097 func_to_host_file_result=$1
17183098 if test -n "$1"; then
17193099 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
17203100 # LT_CYGPATH in this case.
17303110 # and a working winepath. Returns result in func_to_host_file_result.
17313111 func_convert_file_nix_to_w32 ()
17323112 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
3113 $debug_cmd
3114
3115 func_to_host_file_result=$1
17353116 if test -n "$1"; then
17363117 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
3118 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
17383119 fi
17393120 func_convert_file_check "$1" "$func_to_host_file_result"
17403121 }
17463127 # Returns result in func_to_host_file_result.
17473128 func_convert_file_msys_to_cygwin ()
17483129 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
3130 $debug_cmd
3131
3132 func_to_host_file_result=$1
17513133 if test -n "$1"; then
17523134 func_convert_core_msys_to_w32 "$1"
17533135 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
3136 func_to_host_file_result=$func_cygpath_result
17553137 fi
17563138 func_convert_file_check "$1" "$func_to_host_file_result"
17573139 }
17643146 # in func_to_host_file_result.
17653147 func_convert_file_nix_to_cygwin ()
17663148 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
3149 $debug_cmd
3150
3151 func_to_host_file_result=$1
17693152 if test -n "$1"; then
17703153 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
17713154 func_convert_core_file_wine_to_w32 "$1"
17723155 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
3156 func_to_host_file_result=$func_cygpath_result
17743157 fi
17753158 func_convert_file_check "$1" "$func_to_host_file_result"
17763159 }
17803163 #############################################
17813164 # $build to $host PATH CONVERSION FUNCTIONS #
17823165 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
3166 # invoked via '$to_host_path_cmd ARG'
17843167 #
17853168 # In each case, ARG is the path to be converted from $build to $host format.
17863169 # The result will be available in $func_to_host_path_result.
18043187 to_host_path_cmd=
18053188 func_init_to_host_path_cmd ()
18063189 {
1807 $opt_debug
3190 $debug_cmd
3191
18083192 if test -z "$to_host_path_cmd"; then
18093193 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
3194 to_host_path_cmd=func_convert_path_$func_stripname_result
18113195 fi
18123196 }
18133197
18173201 # in func_to_host_path_result.
18183202 func_to_host_path ()
18193203 {
1820 $opt_debug
3204 $debug_cmd
3205
18213206 func_init_to_host_path_cmd
18223207 $to_host_path_cmd "$1"
18233208 }
18283213 # Copy ARG to func_to_host_path_result.
18293214 func_convert_path_noop ()
18303215 {
1831 func_to_host_path_result="$1"
3216 func_to_host_path_result=$1
18323217 }
18333218 # end func_convert_path_noop
18343219
18393224 # func_to_host_path_result.
18403225 func_convert_path_msys_to_w32 ()
18413226 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
3227 $debug_cmd
3228
3229 func_to_host_path_result=$1
18443230 if test -n "$1"; then
18453231 # Remove leading and trailing path separator characters from ARG. MSYS
18463232 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
18483234 func_stripname : : "$1"
18493235 func_to_host_path_tmp1=$func_stripname_result
18503236 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
3237 func_to_host_path_result=$func_convert_core_msys_to_w32_result
18523238 func_convert_path_check : ";" \
18533239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18543240 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
18623248 # func_to_host_file_result.
18633249 func_convert_path_cygwin_to_w32 ()
18643250 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
3251 $debug_cmd
3252
3253 func_to_host_path_result=$1
18673254 if test -n "$1"; then
18683255 # See func_convert_path_msys_to_w32:
18693256 func_stripname : : "$1"
18823269 # a working winepath. Returns result in func_to_host_file_result.
18833270 func_convert_path_nix_to_w32 ()
18843271 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
3272 $debug_cmd
3273
3274 func_to_host_path_result=$1
18873275 if test -n "$1"; then
18883276 # See func_convert_path_msys_to_w32:
18893277 func_stripname : : "$1"
18903278 func_to_host_path_tmp1=$func_stripname_result
18913279 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"
3280 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
18933281 func_convert_path_check : ";" \
18943282 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18953283 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
19033291 # Returns result in func_to_host_file_result.
19043292 func_convert_path_msys_to_cygwin ()
19053293 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
3294 $debug_cmd
3295
3296 func_to_host_path_result=$1
19083297 if test -n "$1"; then
19093298 # See func_convert_path_msys_to_w32:
19103299 func_stripname : : "$1"
19113300 func_to_host_path_tmp1=$func_stripname_result
19123301 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
19133302 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
3303 func_to_host_path_result=$func_cygpath_result
19153304 func_convert_path_check : : \
19163305 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19173306 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19263315 # func_to_host_file_result.
19273316 func_convert_path_nix_to_cygwin ()
19283317 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
3318 $debug_cmd
3319
3320 func_to_host_path_result=$1
19313321 if test -n "$1"; then
19323322 # Remove leading and trailing path separator characters from
19333323 # ARG. msys behavior is inconsistent here, cygpath turns them
19363326 func_to_host_path_tmp1=$func_stripname_result
19373327 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
19383328 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
3329 func_to_host_path_result=$func_cygpath_result
19403330 func_convert_path_check : : \
19413331 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19423332 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19453335 # end func_convert_path_nix_to_cygwin
19463336
19473337
3338 # func_dll_def_p FILE
3339 # True iff FILE is a Windows DLL '.def' file.
3340 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3341 func_dll_def_p ()
3342 {
3343 $debug_cmd
3344
3345 func_dll_def_p_tmp=`$SED -n \
3346 -e 's/^[ ]*//' \
3347 -e '/^\(;.*\)*$/d' \
3348 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3349 -e q \
3350 "$1"`
3351 test DEF = "$func_dll_def_p_tmp"
3352 }
3353
3354
19483355 # func_mode_compile arg...
19493356 func_mode_compile ()
19503357 {
1951 $opt_debug
3358 $debug_cmd
3359
19523360 # Get the compilation command and the source file.
19533361 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
3362 srcfile=$nonopt # always keep a non-empty value in "srcfile"
19553363 suppress_opt=yes
19563364 suppress_output=
19573365 arg_mode=normal
19643372 case $arg_mode in
19653373 arg )
19663374 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
3375 lastarg=$arg
19683376 arg_mode=normal
19693377 ;;
19703378
19713379 target )
1972 libobj="$arg"
3380 libobj=$arg
19733381 arg_mode=normal
19743382 continue
19753383 ;;
19793387 case $arg in
19803388 -o)
19813389 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
3390 func_fatal_error "you cannot specify '-o' more than once"
19833391 arg_mode=target
19843392 continue
19853393 ;;
20083416 func_stripname '-Wc,' '' "$arg"
20093417 args=$func_stripname_result
20103418 lastarg=
2011 save_ifs="$IFS"; IFS=','
3419 save_ifs=$IFS; IFS=,
20123420 for arg in $args; do
2013 IFS="$save_ifs"
3421 IFS=$save_ifs
20143422 func_append_quoted lastarg "$arg"
20153423 done
2016 IFS="$save_ifs"
3424 IFS=$save_ifs
20173425 func_stripname ' ' '' "$lastarg"
20183426 lastarg=$func_stripname_result
20193427
20263434 # Accept the current argument as the source file.
20273435 # The previous "srcfile" becomes the current argument.
20283436 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
3437 lastarg=$srcfile
3438 srcfile=$arg
20313439 ;;
20323440 esac # case $arg
20333441 ;;
20423450 func_fatal_error "you must specify an argument for -Xcompile"
20433451 ;;
20443452 target)
2045 func_fatal_error "you must specify a target with \`-o'"
3453 func_fatal_error "you must specify a target with '-o'"
20463454 ;;
20473455 *)
20483456 # Get the name of the library object.
20493457 test -z "$libobj" && {
20503458 func_basename "$srcfile"
2051 libobj="$func_basename_result"
3459 libobj=$func_basename_result
20523460 }
20533461 ;;
20543462 esac
20683476 case $libobj in
20693477 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
20703478 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
3479 func_fatal_error "cannot determine name of library object from '$libobj'"
20723480 ;;
20733481 esac
20743482
20773485 for arg in $later; do
20783486 case $arg in
20793487 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
3488 test yes = "$build_libtool_libs" \
3489 || func_fatal_configuration "cannot build a shared library"
20823490 build_old_libs=no
20833491 continue
20843492 ;;
21043512 func_quote_for_eval "$libobj"
21053513 test "X$libobj" != "X$func_quote_for_eval_result" \
21063514 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
3515 && func_warning "libobj name '$libobj' may not contain shell special characters."
21083516 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
3517 objname=$func_basename_result
3518 xdir=$func_dirname_result
3519 lobj=$xdir$objdir/$objname
21123520
21133521 test -z "$base_compile" && \
21143522 func_fatal_help "you must specify a compilation command"
21153523
21163524 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
3525 if test yes = "$build_old_libs"; then
21183526 removelist="$obj $lobj $libobj ${libobj}T"
21193527 else
21203528 removelist="$lobj $libobj ${libobj}T"
21263534 pic_mode=default
21273535 ;;
21283536 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
3537 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
21303538 # non-PIC code in shared libraries is not supported
21313539 pic_mode=default
21323540 fi
21333541
21343542 # Calculate the filename of the output object if compiler does
21353543 # 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"
3544 if test no = "$compiler_c_o"; then
3545 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3546 lockfile=$output_obj.lock
21393547 else
21403548 output_obj=
21413549 need_locks=no
21443552
21453553 # Lock this critical section if it is needed
21463554 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
3555 if test yes = "$need_locks"; then
21483556 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
21493557 func_echo "Waiting for $lockfile to be removed"
21503558 sleep 2
21513559 done
2152 elif test "$need_locks" = warn; then
3560 elif test warn = "$need_locks"; then
21533561 if test -f "$lockfile"; then
21543562 $ECHO "\
21553563 *** ERROR, $lockfile exists and contains:
21573565
21583566 This indicates that another process is trying to use the same
21593567 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
3568 your compiler does not support '-c' and '-o' together. If you
21613569 repeat this compilation, it may succeed, by chance, but you had better
21623570 avoid parallel builds (make -j) in this platform, or get a better
21633571 compiler."
21793587 qsrcfile=$func_quote_for_eval_result
21803588
21813589 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
3590 if test yes = "$build_libtool_libs"; then
21833591 # Without this assignment, base_compile gets emptied.
21843592 fbsd_hideous_sh_bug=$base_compile
21853593
2186 if test "$pic_mode" != no; then
3594 if test no != "$pic_mode"; then
21873595 command="$base_compile $qsrcfile $pic_flag"
21883596 else
21893597 # Don't build PIC code
22003608 func_show_eval_locale "$command" \
22013609 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
22023610
2203 if test "$need_locks" = warn &&
3611 if test warn = "$need_locks" &&
22043612 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22053613 $ECHO "\
22063614 *** ERROR, $lockfile contains:
22113619
22123620 This indicates that another process is trying to use the same
22133621 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
3622 your compiler does not support '-c' and '-o' together. If you
22153623 repeat this compilation, it may succeed, by chance, but you had better
22163624 avoid parallel builds (make -j) in this platform, or get a better
22173625 compiler."
22273635 fi
22283636
22293637 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
3638 if test yes = "$suppress_opt"; then
22313639 suppress_output=' >/dev/null 2>&1'
22323640 fi
22333641 fi
22343642
22353643 # 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
3644 if test yes = "$build_old_libs"; then
3645 if test yes != "$pic_mode"; then
22383646 # Don't build PIC code
22393647 command="$base_compile $qsrcfile$pie_flag"
22403648 else
22413649 command="$base_compile $qsrcfile $pic_flag"
22423650 fi
2243 if test "$compiler_c_o" = yes; then
3651 if test yes = "$compiler_c_o"; then
22443652 func_append command " -o $obj"
22453653 fi
22463654
22493657 func_show_eval_locale "$command" \
22503658 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22513659
2252 if test "$need_locks" = warn &&
3660 if test warn = "$need_locks" &&
22533661 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22543662 $ECHO "\
22553663 *** ERROR, $lockfile contains:
22603668
22613669 This indicates that another process is trying to use the same
22623670 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
3671 your compiler does not support '-c' and '-o' together. If you
22643672 repeat this compilation, it may succeed, by chance, but you had better
22653673 avoid parallel builds (make -j) in this platform, or get a better
22663674 compiler."
22803688 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
22813689
22823690 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
3691 if test no != "$need_locks"; then
22843692 removelist=$lockfile
22853693 $RM "$lockfile"
22863694 fi
22903698 }
22913699
22923700 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
3701 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
22943702 }
22953703
22963704 func_mode_help ()
23103718 Remove files from the build directory.
23113719
23123720 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
3721 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
23143722 to RM.
23153723
23163724 If FILE is a libtool library, object or program, all the files associated
23293737 -no-suppress do not suppress compiler output for multiple passes
23303738 -prefer-pic try to build PIC objects only
23313739 -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
3740 -shared do not build a '.o' file suitable for static linking
3741 -static only build a '.o' file suitable for static linking
23343742 -Wc,FLAG pass FLAG directly to the compiler
23353743
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3744 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
23373745 from the given SOURCEFILE.
23383746
23393747 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'."
3748 SOURCEFILE, then substituting the C source code suffix '.c' with the
3749 library object suffix, '.lo'."
23423750 ;;
23433751
23443752 execute)
23513759
23523760 -dlopen FILE add the directory containing FILE to the library path
23533761
2354 This mode sets the library path environment variable according to \`-dlopen'
3762 This mode sets the library path environment variable according to '-dlopen'
23553763 flags.
23563764
23573765 If any of the ARGS are libtool executable wrappers, then they are translated
23703778 Each LIBDIR is a directory that contains libtool libraries.
23713779
23723780 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."
3781 the '--dry-run' option if you just want to see what would be executed."
23743782 ;;
23753783
23763784 install)
23803788 Install executables or libraries.
23813789
23823790 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
3791 either the 'install' or 'cp' program.
23843792
23853793 The following components of INSTALL-COMMAND are treated specially:
23863794
24063814 -avoid-version do not add a version suffix if possible
24073815 -bindir BINDIR specify path to binaries directory (for systems where
24083816 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3817 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
24103818 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24113819 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24123820 -export-symbols SYMFILE
24203828 -no-install link a not-installable executable
24213829 -no-undefined declare that a library does not refer to external symbols
24223830 -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
3831 -objectlist FILE use a list of object files found in FILE to specify objects
3832 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
24243833 -precious-files-regex REGEX
24253834 don't remove output files matching REGEX
24263835 -release RELEASE specify package release information
24403849 -Xlinker FLAG pass linker-specific FLAG directly to the linker
24413850 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
24423851
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
3852 All other options (arguments beginning with '-') are ignored.
3853
3854 Every other argument is treated as a filename. Files ending in '.la' are
24463855 treated as uninstalled libtool libraries, other files are standard or library
24473856 object files.
24483857
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
3858 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3859 only library objects ('.lo' files) may be specified, and '-rpath' is
24513860 required, except when creating a convenience library.
24523861
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
3862 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3863 using 'ar' and 'ranlib', or on Windows using 'lib'.
3864
3865 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
24573866 is created, otherwise an executable program is created."
24583867 ;;
24593868
24643873 Remove libraries from an installation directory.
24653874
24663875 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
3876 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
24683877 to RM.
24693878
24703879 If FILE is a libtool library, all the files associated with it are deleted.
24723881 ;;
24733882
24743883 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
3884 func_fatal_help "invalid operation mode '$opt_mode'"
24763885 ;;
24773886 esac
24783887
24793888 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
3889 $ECHO "Try '$progname --help' for more information about other modes."
24813890 }
24823891
24833892 # Now that we've collected a possible --mode arg, show help if necessary
24843893 if $opt_help; then
2485 if test "$opt_help" = :; then
3894 if test : = "$opt_help"; then
24863895 func_mode_help
24873896 else
24883897 {
24903899 for opt_mode in compile link execute install finish uninstall clean; do
24913900 func_mode_help
24923901 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
3902 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
24943903 {
24953904 func_help noexit
24963905 for opt_mode in compile link execute install finish uninstall clean; do
24983907 func_mode_help
24993908 done
25003909 } |
2501 sed '1d
3910 $SED '1d
25023911 /^When reporting/,/^Report/{
25033912 H
25043913 d
25153924 # func_mode_execute arg...
25163925 func_mode_execute ()
25173926 {
2518 $opt_debug
3927 $debug_cmd
3928
25193929 # The first argument is the command name.
2520 cmd="$nonopt"
3930 cmd=$nonopt
25213931 test -z "$cmd" && \
25223932 func_fatal_help "you must specify a COMMAND"
25233933
25243934 # Handle -dlopen flags immediately.
25253935 for file in $opt_dlopen; do
25263936 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
3937 || func_fatal_help "'$file' is not a file"
25283938
25293939 dir=
25303940 case $file in
25343944
25353945 # Check to see that this really is a libtool archive.
25363946 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
3947 || func_fatal_help "'$lib' is not a valid libtool archive"
25383948
25393949 # Read the libtool library.
25403950 dlname=
25453955 if test -z "$dlname"; then
25463956 # Warn if it was a shared library.
25473957 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
3958 func_warning "'$file' was not linked with '-export-dynamic'"
25493959 continue
25503960 fi
25513961
25523962 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
3963 dir=$func_dirname_result
25543964
25553965 if test -f "$dir/$objdir/$dlname"; then
25563966 func_append dir "/$objdir"
25573967 else
25583968 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
3969 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
25603970 fi
25613971 fi
25623972 ;;
25643974 *.lo)
25653975 # Just add the directory containing the .lo file.
25663976 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
3977 dir=$func_dirname_result
25683978 ;;
25693979
25703980 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
3981 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
25723982 continue
25733983 ;;
25743984 esac
25753985
25763986 # Get the absolute pathname.
25773987 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
3988 test -n "$absdir" && dir=$absdir
25793989
25803990 # Now add the directory to shlibpath_var.
25813991 if eval "test -z \"\$$shlibpath_var\""; then
25873997
25883998 # This variable tells wrapper scripts just to set shlibpath_var
25893999 # rather than running their programs.
2590 libtool_execute_magic="$magic"
4000 libtool_execute_magic=$magic
25914001
25924002 # Check if any of the arguments is a wrapper script.
25934003 args=
26004010 if func_ltwrapper_script_p "$file"; then
26014011 func_source "$file"
26024012 # Transform arg to wrapped name.
2603 file="$progdir/$program"
4013 file=$progdir/$program
26044014 elif func_ltwrapper_executable_p "$file"; then
26054015 func_ltwrapper_scriptname "$file"
26064016 func_source "$func_ltwrapper_scriptname_result"
26074017 # Transform arg to wrapped name.
2608 file="$progdir/$program"
4018 file=$progdir/$program
26094019 fi
26104020 ;;
26114021 esac
26134023 func_append_quoted args "$file"
26144024 done
26154025
2616 if test "X$opt_dry_run" = Xfalse; then
4026 if $opt_dry_run; then
4027 # Display what would be done.
4028 if test -n "$shlibpath_var"; then
4029 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
4030 echo "export $shlibpath_var"
4031 fi
4032 $ECHO "$cmd$args"
4033 exit $EXIT_SUCCESS
4034 else
26174035 if test -n "$shlibpath_var"; then
26184036 # Export the shlibpath_var.
26194037 eval "export $shlibpath_var"
26304048 done
26314049
26324050 # 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
4051 exec_cmd=\$cmd$args
26424052 fi
26434053 }
26444054
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
4055 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
26464056
26474057
26484058 # func_mode_finish arg...
26494059 func_mode_finish ()
26504060 {
2651 $opt_debug
4061 $debug_cmd
4062
26524063 libs=
26534064 libdirs=
26544065 admincmds=
26624073 if func_lalib_unsafe_p "$opt"; then
26634074 func_append libs " $opt"
26644075 else
2665 func_warning "\`$opt' is not a valid libtool archive"
4076 func_warning "'$opt' is not a valid libtool archive"
26664077 fi
26674078
26684079 else
2669 func_fatal_error "invalid argument \`$opt'"
4080 func_fatal_error "invalid argument '$opt'"
26704081 fi
26714082 done
26724083
26814092 # Remove sysroot references
26824093 if $opt_dry_run; then
26834094 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
4095 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
26854096 done
26864097 else
26874098 tmpdir=`func_mktempdir`
26884099 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4100 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26904101 > $tmpdir/tmp-la
26914102 mv -f $tmpdir/tmp-la $lib
26924103 done
27114122 fi
27124123
27134124 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
4125 $opt_quiet && exit $EXIT_SUCCESS
27154126
27164127 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
27174128 echo "----------------------------------------------------------------------"
27224133 echo
27234134 echo "If you ever happen to want to link against installed libraries"
27244135 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'"
4136 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
27264137 echo "flag during linking and do at least one of the following:"
27274138 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
4139 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
27294140 echo " during execution"
27304141 fi
27314142 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
4143 echo " - add LIBDIR to the '$runpath_var' environment variable"
27334144 echo " during linking"
27344145 fi
27354146 if test -n "$hardcode_libdir_flag_spec"; then
27364147 libdir=LIBDIR
27374148 eval flag=\"$hardcode_libdir_flag_spec\"
27384149
2739 $ECHO " - use the \`$flag' linker flag"
4150 $ECHO " - use the '$flag' linker flag"
27404151 fi
27414152 if test -n "$admincmds"; then
27424153 $ECHO " - have your system administrator run these commands:$admincmds"
27434154 fi
27444155 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
4156 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
27464157 fi
27474158 echo
27484159
27614172 exit $EXIT_SUCCESS
27624173 }
27634174
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
4175 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
27654176
27664177
27674178 # func_mode_install arg...
27684179 func_mode_install ()
27694180 {
2770 $opt_debug
4181 $debug_cmd
4182
27714183 # There may be an optional sh(1) argument at the beginning of
27724184 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
4185 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
27744186 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
4187 case $nonopt in *shtool*) :;; *) false;; esac
4188 then
27764189 # Aesthetically quote it.
27774190 func_quote_for_eval "$nonopt"
27784191 install_prog="$func_quote_for_eval_result "
27994212 opts=
28004213 prev=
28014214 install_type=
2802 isdir=no
4215 isdir=false
28034216 stripme=
28044217 no_mode=:
28054218 for arg
28124225 fi
28134226
28144227 case $arg in
2815 -d) isdir=yes ;;
4228 -d) isdir=: ;;
28164229 -f)
28174230 if $install_cp; then :; else
28184231 prev=$arg
28304243 *)
28314244 # If the previous option needed an argument, then skip it.
28324245 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
4246 if test X-m = "X$prev" && test -n "$install_override_mode"; then
28344247 arg2=$install_override_mode
28354248 no_mode=false
28364249 fi
28554268 func_fatal_help "you must specify an install program"
28564269
28574270 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
4271 func_fatal_help "the '$prev' option requires an argument"
28594272
28604273 if test -n "$install_override_mode" && $no_mode; then
28614274 if $install_cp; then :; else
28774290 dest=$func_stripname_result
28784291
28794292 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
4293 test -d "$dest" && isdir=:
4294 if $isdir; then
4295 destdir=$dest
28834296 destname=
28844297 else
28854298 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
4299 destdir=$func_dirname_result
4300 destname=$func_basename_result
28884301
28894302 # Not a directory, so check to see that there is only one file specified.
28904303 set dummy $files; shift
28914304 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
4305 func_fatal_help "'$dest' is not a directory"
28934306 fi
28944307 case $destdir in
28954308 [\\/]* | [A-Za-z]:[\\/]*) ;;
28984311 case $file in
28994312 *.lo) ;;
29004313 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
4314 func_fatal_help "'$destdir' must be an absolute directory name"
29024315 ;;
29034316 esac
29044317 done
29074320
29084321 # This variable tells wrapper scripts just to set variables rather
29094322 # than running their programs.
2910 libtool_install_magic="$magic"
4323 libtool_install_magic=$magic
29114324
29124325 staticlibs=
29134326 future_libdirs=
29274340
29284341 # Check to see that this really is a libtool archive.
29294342 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
4343 || func_fatal_help "'$file' is not a valid libtool archive"
29314344
29324345 library_names=
29334346 old_library=
29494362 fi
29504363
29514364 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
4365 dir=$func_dirname_result
29534366 func_append dir "$objdir"
29544367
29554368 if test -n "$relink_command"; then
29634376 # are installed into $libdir/../bin (currently, that works fine)
29644377 # but it's something to keep an eye on.
29654378 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
4379 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
29674380
29684381 if test -n "$inst_prefix_dir"; then
29694382 # Stick the inst_prefix_dir data into the link command.
29724385 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
29734386 fi
29744387
2975 func_warning "relinking \`$file'"
4388 func_warning "relinking '$file'"
29764389 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
4390 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
29784391 fi
29794392
29804393 # See the names of the shared library.
29814394 set dummy $library_names; shift
29824395 if test -n "$1"; then
2983 realname="$1"
4396 realname=$1
29844397 shift
29854398
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
4399 srcname=$realname
4400 test -n "$relink_command" && srcname=${realname}T
29884401
29894402 # Install the shared library and build the symlinks.
29904403 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
29914404 'exit $?'
2992 tstripme="$stripme"
4405 tstripme=$stripme
29934406 case $host_os in
29944407 cygwin* | mingw* | pw32* | cegcc*)
29954408 case $realname in
29964409 *.dll.a)
2997 tstripme=""
4410 tstripme=
4411 ;;
4412 esac
4413 ;;
4414 os2*)
4415 case $realname in
4416 *_dll.a)
4417 tstripme=
29984418 ;;
29994419 esac
30004420 ;;
30054425
30064426 if test "$#" -gt 0; then
30074427 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
4428 # Try 'ln -sf' first, because the 'ln' binary might depend on
30094429 # the symlink we replace! Solaris /bin/ln does not understand -f,
30104430 # so we also need to try rm && ln -s.
30114431 for linkname
30164436 fi
30174437
30184438 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
4439 lib=$destdir/$realname
30204440 func_execute_cmds "$postinstall_cmds" 'exit $?'
30214441 fi
30224442
30234443 # Install the pseudo-library for information purposes.
30244444 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
4445 name=$func_basename_result
4446 instname=$dir/${name}i
30274447 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
30284448
30294449 # Maybe install the static library, too.
30354455
30364456 # Figure out destination file name, if it wasn't already specified.
30374457 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
4458 destfile=$destdir/$destname
30394459 else
30404460 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
4461 destfile=$func_basename_result
4462 destfile=$destdir/$destfile
30434463 fi
30444464
30454465 # Deduce the name of the destination old-style object file.
30494469 staticdest=$func_lo2o_result
30504470 ;;
30514471 *.$objext)
3052 staticdest="$destfile"
4472 staticdest=$destfile
30534473 destfile=
30544474 ;;
30554475 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
4476 func_fatal_help "cannot copy a libtool object to '$destfile'"
30574477 ;;
30584478 esac
30594479
30624482 func_show_eval "$install_prog $file $destfile" 'exit $?'
30634483
30644484 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
4485 if test yes = "$build_old_libs"; then
30664486 # Deduce the name of the old-style object file.
30674487 func_lo2o "$file"
30684488 staticobj=$func_lo2o_result
30744494 *)
30754495 # Figure out destination file name, if it wasn't already specified.
30764496 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
4497 destfile=$destdir/$destname
30784498 else
30794499 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
4500 destfile=$func_basename_result
4501 destfile=$destdir/$destfile
30824502 fi
30834503
30844504 # If the file is missing, and there is a .exe on the end, strip it
30854505 # because it is most likely a libtool script we actually want to
30864506 # install
3087 stripped_ext=""
4507 stripped_ext=
30884508 case $file in
30894509 *.exe)
30904510 if test ! -f "$file"; then
30914511 func_stripname '' '.exe' "$file"
30924512 file=$func_stripname_result
3093 stripped_ext=".exe"
4513 stripped_ext=.exe
30944514 fi
30954515 ;;
30964516 esac
31184538
31194539 # Check the variables that should have been set.
31204540 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
4541 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4542
4543 finalize=:
31244544 for lib in $notinst_deplibs; do
31254545 # Check to see that each library is installed.
31264546 libdir=
31274547 if test -f "$lib"; then
31284548 func_source "$lib"
31294549 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
4550 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
31314551 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
4552 func_warning "'$lib' has not been installed in '$libdir'"
4553 finalize=false
31344554 fi
31354555 done
31364556
31384558 func_source "$wrapper"
31394559
31404560 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
4561 if test no = "$fast_install" && test -n "$relink_command"; then
31424562 $opt_dry_run || {
3143 if test "$finalize" = yes; then
4563 if $finalize; then
31444564 tmpdir=`func_mktempdir`
31454565 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
4566 file=$func_basename_result
4567 outputname=$tmpdir/$file
31484568 # Replace the output file specification.
31494569 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
31504570
3151 $opt_silent || {
4571 $opt_quiet || {
31524572 func_quote_for_expand "$relink_command"
31534573 eval "func_echo $func_quote_for_expand_result"
31544574 }
31554575 if eval "$relink_command"; then :
31564576 else
3157 func_error "error: relink \`$file' with the above command before installing it"
4577 func_error "error: relink '$file' with the above command before installing it"
31584578 $opt_dry_run || ${RM}r "$tmpdir"
31594579 continue
31604580 fi
3161 file="$outputname"
4581 file=$outputname
31624582 else
3163 func_warning "cannot relink \`$file'"
4583 func_warning "cannot relink '$file'"
31644584 fi
31654585 }
31664586 else
31974617
31984618 for file in $staticlibs; do
31994619 func_basename "$file"
3200 name="$func_basename_result"
4620 name=$func_basename_result
32014621
32024622 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
4623 oldlib=$destdir/$name
32044624 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
32054625 tool_oldlib=$func_to_tool_file_result
32064626
32154635 done
32164636
32174637 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
4638 func_warning "remember to run '$progname --finish$future_libdirs'"
32194639
32204640 if test -n "$current_libdirs"; then
32214641 # Maybe just do a dry run.
32224642 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
4643 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
32244644 else
32254645 exit $EXIT_SUCCESS
32264646 fi
32274647 }
32284648
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
4649 test install = "$opt_mode" && func_mode_install ${1+"$@"}
32304650
32314651
32324652 # func_generate_dlsyms outputname originator pic_p
32344654 # a dlpreopen symbol table.
32354655 func_generate_dlsyms ()
32364656 {
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'`
4657 $debug_cmd
4658
4659 my_outputname=$1
4660 my_originator=$2
4661 my_pic_p=${3-false}
4662 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
32424663 my_dlsyms=
32434664
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4665 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
32454666 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
4667 my_dlsyms=${my_outputname}S.c
32474668 else
32484669 func_error "not configured to extract global symbols from dlpreopened files"
32494670 fi
32544675 "") ;;
32554676 *.c)
32564677 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
4678 nlist=$output_objdir/$my_outputname.nm
32584679
32594680 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
32604681
32624683 func_verbose "creating $output_objdir/$my_dlsyms"
32634684
32644685 $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 */
4686 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4687 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
32674688
32684689 #ifdef __cplusplus
32694690 extern \"C\" {
32704691 #endif
32714692
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4693 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
32734694 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
32744695 #endif
32754696
32764697 /* 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
4698 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4699 /* DATA imports from DLLs on WIN32 can't be const, because runtime
32794700 relocations are performed -- see ld's documentation on pseudo-relocs. */
32804701 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
4702 #elif defined __osf__
32824703 /* This system does not cope well with relocations in const data. */
32834704 # define LT_DLSYM_CONST
32844705 #else
32854706 # define LT_DLSYM_CONST const
32864707 #endif
32874708
4709 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4710
32884711 /* External symbol declarations for the compiler. */\
32894712 "
32904713
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
4714 if test yes = "$dlself"; then
4715 func_verbose "generating symbol list for '$output'"
32934716
32944717 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32954718
32974720 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
32984721 for progfile in $progfiles; do
32994722 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
4723 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
33014724 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
33024725 done
33034726
33174740
33184741 # Prepare the list of exported symbols
33194742 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
4743 export_symbols=$output_objdir/$outputname.exp
33214744 $opt_dry_run || {
33224745 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4746 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
33244747 case $host in
33254748 *cygwin* | *mingw* | *cegcc* )
33264749 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
33304753 }
33314754 else
33324755 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4756 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
33344757 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
33354758 eval '$MV "$nlist"T "$nlist"'
33364759 case $host in
33444767 fi
33454768
33464769 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
4770 func_verbose "extracting global C symbols from '$dlprefile'"
33484771 func_basename "$dlprefile"
3349 name="$func_basename_result"
4772 name=$func_basename_result
33504773 case $host in
33514774 *cygwin* | *mingw* | *cegcc* )
33524775 # if an import library, we need to obtain dlname
33534776 if func_win32_import_lib_p "$dlprefile"; then
33544777 func_tr_sh "$dlprefile"
33554778 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
4779 dlprefile_dlbasename=
33574780 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
33584781 # Use subshell, to avoid clobbering current variable values
33594782 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
4783 if test -n "$dlprefile_dlname"; then
33614784 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
4785 dlprefile_dlbasename=$func_basename_result
33634786 else
33644787 # no lafile. user explicitly requested -dlpreopen <import library>.
33654788 $sharedlib_from_linklib_cmd "$dlprefile"
33674790 fi
33684791 fi
33694792 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
4793 if test -n "$dlprefile_dlbasename"; then
33714794 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
33724795 else
33734796 func_warning "Could not compute DLL name from $name"
34234846 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
34244847 fi
34254848
4849 func_show_eval '$RM "${nlist}I"'
4850 if test -n "$global_symbol_to_import"; then
4851 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4852 fi
4853
34264854 echo >> "$output_objdir/$my_dlsyms" "\
34274855
34284856 /* The mapping between symbol names and symbols. */
34314859 void *address;
34324860 } lt_dlsymlist;
34334861 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
4862 lt_${my_prefix}_LTX_preloaded_symbols[];\
4863 "
4864
4865 if test -s "$nlist"I; then
4866 echo >> "$output_objdir/$my_dlsyms" "\
4867 static void lt_syminit(void)
4868 {
4869 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4870 for (; symbol->name; ++symbol)
4871 {"
4872 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4873 echo >> "$output_objdir/$my_dlsyms" "\
4874 }
4875 }"
4876 fi
4877 echo >> "$output_objdir/$my_dlsyms" "\
34354878 LT_DLSYM_CONST lt_dlsymlist
34364879 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
4880 { {\"$my_originator\", (void *) 0},"
4881
4882 if test -s "$nlist"I; then
4883 echo >> "$output_objdir/$my_dlsyms" "\
4884 {\"@INIT@\", (void *) &lt_syminit},"
4885 fi
34394886
34404887 case $need_lib_prefix in
34414888 no)
34774924 *-*-hpux*)
34784925 pic_flag_for_symtable=" $pic_flag" ;;
34794926 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
4927 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
34834928 ;;
34844929 esac
34854930 ;;
34964941 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
34974942
34984943 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
4944 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
35004945
35014946 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
4947 symfileobj=$output_objdir/${my_outputname}S.$objext
35034948 case $host in
35044949 *cygwin* | *mingw* | *cegcc* )
35054950 if test -f "$output_objdir/$my_outputname.def"; then
35174962 esac
35184963 ;;
35194964 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
4965 func_fatal_error "unknown suffix for '$my_dlsyms'"
35214966 ;;
35224967 esac
35234968 else
35294974 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
35304975 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
35314976 fi
4977 }
4978
4979 # func_cygming_gnu_implib_p ARG
4980 # This predicate returns with zero status (TRUE) if
4981 # ARG is a GNU/binutils-style import library. Returns
4982 # with nonzero status (FALSE) otherwise.
4983 func_cygming_gnu_implib_p ()
4984 {
4985 $debug_cmd
4986
4987 func_to_tool_file "$1" func_convert_file_msys_to_w32
4988 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)$'`
4989 test -n "$func_cygming_gnu_implib_tmp"
4990 }
4991
4992 # func_cygming_ms_implib_p ARG
4993 # This predicate returns with zero status (TRUE) if
4994 # ARG is an MS-style import library. Returns
4995 # with nonzero status (FALSE) otherwise.
4996 func_cygming_ms_implib_p ()
4997 {
4998 $debug_cmd
4999
5000 func_to_tool_file "$1" func_convert_file_msys_to_w32
5001 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
5002 test -n "$func_cygming_ms_implib_tmp"
35325003 }
35335004
35345005 # func_win32_libid arg
35405011 # Despite the name, also deal with 64 bit binaries.
35415012 func_win32_libid ()
35425013 {
3543 $opt_debug
3544 win32_libid_type="unknown"
5014 $debug_cmd
5015
5016 win32_libid_type=unknown
35455017 win32_fileres=`file -L $1 2>/dev/null`
35465018 case $win32_fileres in
35475019 *ar\ archive\ import\ library*) # definitely import
35515023 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35525024 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
35535025 $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 '
5026 case $nm_interface in
5027 "MS dumpbin")
5028 if func_cygming_ms_implib_p "$1" ||
5029 func_cygming_gnu_implib_p "$1"
5030 then
5031 win32_nmres=import
5032 else
5033 win32_nmres=
5034 fi
5035 ;;
5036 *)
5037 func_to_tool_file "$1" func_convert_file_msys_to_w32
5038 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5039 $SED -n -e '
35575040 1,100{
35585041 / I /{
3559 s,.*,import,
5042 s|.*|import|
35605043 p
35615044 q
35625045 }
35635046 }'`
5047 ;;
5048 esac
35645049 case $win32_nmres in
35655050 import*) win32_libid_type="x86 archive import";;
35665051 *) win32_libid_type="x86 archive static";;
35925077 # $sharedlib_from_linklib_result
35935078 func_cygming_dll_for_implib ()
35945079 {
3595 $opt_debug
5080 $debug_cmd
5081
35965082 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
35975083 }
35985084
36095095 # specified import library.
36105096 func_cygming_dll_for_implib_fallback_core ()
36115097 {
3612 $opt_debug
5098 $debug_cmd
5099
36135100 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
36145101 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
36155102 $SED '/^Contents of section '"$match_literal"':/{
36455132 /./p' |
36465133 # we now have a list, one entry per line, of the stringified
36475134 # 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
5135 # archive that possess that section. Heuristic: eliminate
5136 # all those that have a first or second character that is
36505137 # a '.' (that is, objdump's representation of an unprintable
36515138 # character.) This should work for all archives with less than
36525139 # 0x302f exports -- but will fail for DLLs whose name actually
36555142 #
36565143 # Of those that remain, print the first one.
36575144 $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"
36825145 }
36835146
36845147 # func_cygming_dll_for_implib_fallback ARG
36945157 # $sharedlib_from_linklib_result
36955158 func_cygming_dll_for_implib_fallback ()
36965159 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
5160 $debug_cmd
5161
5162 if func_cygming_gnu_implib_p "$1"; then
36995163 # binutils import library
37005164 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
5165 elif func_cygming_ms_implib_p "$1"; then
37025166 # ms-generated import library
37035167 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
37045168 else
37055169 # unknown
3706 sharedlib_from_linklib_result=""
5170 sharedlib_from_linklib_result=
37075171 fi
37085172 }
37095173
37115175 # func_extract_an_archive dir oldlib
37125176 func_extract_an_archive ()
37135177 {
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
5178 $debug_cmd
5179
5180 f_ex_an_ar_dir=$1; shift
5181 f_ex_an_ar_oldlib=$1
5182 if test yes = "$lock_old_archive_extraction"; then
37185183 lockfile=$f_ex_an_ar_oldlib.lock
37195184 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
37205185 func_echo "Waiting for $lockfile to be removed"
37235188 fi
37245189 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
37255190 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
5191 if test yes = "$lock_old_archive_extraction"; then
37275192 $opt_dry_run || rm -f "$lockfile"
37285193 fi
37295194 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
37375202 # func_extract_archives gentop oldlib ...
37385203 func_extract_archives ()
37395204 {
3740 $opt_debug
3741 my_gentop="$1"; shift
5205 $debug_cmd
5206
5207 my_gentop=$1; shift
37425208 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
5209 my_oldobjs=
5210 my_xlib=
5211 my_xabs=
5212 my_xdir=
37475213
37485214 for my_xlib in $my_oldlibs; do
37495215 # Extract the objects.
37505216 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
5217 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
37525218 *) my_xabs=`pwd`"/$my_xlib" ;;
37535219 esac
37545220 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
5221 my_xlib=$func_basename_result
37565222 my_xlib_u=$my_xlib
37575223 while :; do
37585224 case " $extracted_archives " in
37645230 esac
37655231 done
37665232 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
5233 my_xdir=$my_gentop/$my_xlib_u
37685234
37695235 func_mkdir_p "$my_xdir"
37705236
37775243 cd $my_xdir || exit $?
37785244 darwin_archive=$my_xabs
37795245 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
5246 func_basename "$darwin_archive"
5247 darwin_base_archive=$func_basename_result
37815248 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
37825249 if test -n "$darwin_arches"; then
37835250 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
37845251 darwin_arch=
37855252 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}"
5253 for darwin_arch in $darwin_arches; do
5254 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5255 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5256 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5257 func_extract_an_archive "`pwd`" "$darwin_base_archive"
37915258 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
5259 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
37935260 done # $darwin_arches
37945261 ## 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`
5262 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
37965263 darwin_file=
37975264 darwin_files=
37985265 for darwin_file in $darwin_filelist; do
38145281 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
38155282 done
38165283
3817 func_extract_archives_result="$my_oldobjs"
5284 func_extract_archives_result=$my_oldobjs
38185285 }
38195286
38205287
38295296 #
38305297 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
38315298 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
5299 # will assume that the directory where it is stored is
38335300 # the $objdir directory. This is a cygwin/mingw-specific
38345301 # behavior.
38355302 func_emit_wrapper ()
38405307 #! $SHELL
38415308
38425309 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5310 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
38445311 #
38455312 # The $output program cannot be directly executed until all the libtool
38465313 # libraries that it depends on are installed.
38975364
38985365 # Very basic option parsing. These options are (a) specific to
38995366 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
5367 # /script/ and the wrapper /executable/ that is used only on
39015368 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
5369 # (application programs are unlikely to have options that match
39035370 # this pattern).
39045371 #
39055372 # There are only two supported options: --lt-debug and
39325399
39335400 # Print the debug banner immediately:
39345401 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
5402 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
39365403 fi
39375404 }
39385405
39435410 lt_dump_args_N=1;
39445411 for lt_arg
39455412 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
5413 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
39475414 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
39485415 done
39495416 }
39575424 *-*-mingw | *-*-os2* | *-cegcc*)
39585425 $ECHO "\
39595426 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
5427 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
39615428 func_lt_dump_args \${1+\"\$@\"} 1>&2
39625429 fi
39635430 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
39675434 *)
39685435 $ECHO "\
39695436 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
5437 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
39715438 func_lt_dump_args \${1+\"\$@\"} 1>&2
39725439 fi
39735440 exec \"\$progdir/\$program\" \${1+\"\$@\"}
40425509 test -n \"\$absdir\" && thisdir=\"\$absdir\"
40435510 "
40445511
4045 if test "$fast_install" = yes; then
5512 if test yes = "$fast_install"; then
40465513 $ECHO "\
40475514 program=lt-'$outputname'$exeext
40485515 progdir=\"\$thisdir/$objdir\"
40495516
40505517 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5518 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
40525519 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
40535520
40545521 file=\"\$\$-\$program\"
40655532 if test -n \"\$relink_command\"; then
40665533 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
40675534 else
4068 $ECHO \"\$relink_command_output\" >&2
5535 \$ECHO \"\$relink_command_output\" >&2
40695536 $RM \"\$progdir/\$file\"
40705537 exit 1
40715538 fi
41005567 fi
41015568
41025569 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5570 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
41045571 $ECHO "\
41055572 # Add our own library path to $shlibpath_var
41065573 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
41205587 fi
41215588 else
41225589 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5590 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
41245591 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
41255592 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
41265593 exit 1
41395606 cat <<EOF
41405607
41415608 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5609 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
41435610
41445611 The $output program cannot be directly executed until all the libtool
41455612 libraries that it depends on are installed.
41745641 #include <fcntl.h>
41755642 #include <sys/stat.h>
41765643
5644 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5645
41775646 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
5647 #if defined __MINGW32__
41795648 # ifdef __STRICT_ANSI__
41805649 int _putenv (const char *);
41815650 # endif
4182 #elif defined(__CYGWIN__)
5651 #elif defined __CYGWIN__
41835652 # ifdef __STRICT_ANSI__
41845653 char *realpath (const char *, char *);
41855654 int putenv (char *);
41865655 int setenv (const char *, const char *, int);
41875656 # endif
4188 /* #elif defined (other platforms) ... */
5657 /* #elif defined other_platform || defined ... */
41895658 #endif
41905659
41915660 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
5661 #if defined _MSC_VER
41935662 # define setmode _setmode
41945663 # define stat _stat
41955664 # define chmod _chmod
41965665 # define getcwd _getcwd
41975666 # define putenv _putenv
41985667 # 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__)
5668 #elif defined __MINGW32__
42045669 # define setmode _setmode
42055670 # define stat _stat
42065671 # define chmod _chmod
42075672 # define getcwd _getcwd
42085673 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
5674 #elif defined __CYGWIN__
42105675 # define HAVE_SETENV
42115676 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
5677 /* #elif defined other platforms ... */
42135678 #endif
42145679
4215 #if defined(PATH_MAX)
5680 #if defined PATH_MAX
42165681 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
5682 #elif defined MAXPATHLEN
42185683 # define LT_PATHMAX MAXPATHLEN
42195684 #else
42205685 # define LT_PATHMAX 1024
42335698 # define PATH_SEPARATOR ':'
42345699 #endif
42355700
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
5701 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5702 defined __OS2__
42385703 # define HAVE_DOS_BASED_FILE_SYSTEM
42395704 # define FOPEN_WB "wb"
42405705 # ifndef DIR_SEPARATOR_2
42675732
42685733 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
42695734 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
5735 if (stale) { free (stale); stale = 0; } \
42715736 } while (0)
42725737
4273 #if defined(LT_DEBUGWRAPPER)
5738 #if defined LT_DEBUGWRAPPER
42745739 static int lt_debug = 1;
42755740 #else
42765741 static int lt_debug = 0;
42995764 EOF
43005765
43015766 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
5767 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5768 # define externally_visible volatile
5769 #else
5770 # define externally_visible __attribute__((externally_visible)) volatile
5771 #endif
5772 externally_visible const char * MAGIC_EXE = "$magic_exe";
43035773 const char * LIB_PATH_VARNAME = "$shlibpath_var";
43045774 EOF
43055775
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5776 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
43075777 func_to_host_path "$temp_rpath"
43085778 cat <<EOF
43095779 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
43275797 EOF
43285798 fi
43295799
4330 if test "$fast_install" = yes; then
5800 if test yes = "$fast_install"; then
43315801 cat <<EOF
43325802 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
43335803 EOF
43565826 char *actual_cwrapper_name;
43575827 char *target_name;
43585828 char *lt_argv_zero;
4359 intptr_t rval = 127;
5829 int rval = 127;
43605830
43615831 int i;
43625832
43635833 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
5834 newargz = XMALLOC (char *, (size_t) argc + 1);
43655835
43665836 /* very simple arg parsing; don't want to rely on getopt
43675837 * also, copy all non cwrapper options to newargz, except
43705840 newargc=0;
43715841 for (i = 1; i < argc; i++)
43725842 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
5843 if (STREQ (argv[i], dumpscript_opt))
43745844 {
43755845 EOF
4376 case "$host" in
5846 case $host in
43775847 *mingw* | *cygwin* )
43785848 # make stdout use "unix" line endings
43795849 echo " setmode(1,_O_BINARY);"
43845854 lt_dump_script (stdout);
43855855 return 0;
43865856 }
4387 if (strcmp (argv[i], debug_opt) == 0)
5857 if (STREQ (argv[i], debug_opt))
43885858 {
43895859 lt_debug = 1;
43905860 continue;
43915861 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
5862 if (STREQ (argv[i], ltwrapper_option_prefix))
43935863 {
43945864 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
43955865 namespace, but it is not one of the ones we know about and
44125882 EOF
44135883 cat <<EOF
44145884 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
5885 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
44165886 EOF
44175887 cat <<"EOF"
44185888 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
45235993 cat <<"EOF"
45245994 /* execv doesn't actually work on mingw as expected on unix */
45255995 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5996 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
45275997 if (rval == -1)
45285998 {
45295999 /* failed to start process */
45686038 {
45696039 const char *base;
45706040
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6041 #if defined HAVE_DOS_BASED_FILE_SYSTEM
45726042 /* Skip over the disk name in MSDOS pathnames. */
45736043 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
45746044 name += 2;
46276097 const char *p_next;
46286098 /* static buffer for getcwd */
46296099 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
6100 size_t tmp_len;
46316101 char *concat_name;
46326102
46336103 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
46376107 return NULL;
46386108
46396109 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6110 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46416111 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
46426112 {
46436113 concat_name = xstrdup (wrapper);
46556125 return concat_name;
46566126 XFREE (concat_name);
46576127 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6128 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46596129 }
46606130 #endif
46616131
46786148 for (q = p; *q; q++)
46796149 if (IS_PATH_SEPARATOR (*q))
46806150 break;
4681 p_len = q - p;
6151 p_len = (size_t) (q - p);
46826152 p_next = (*q == '\0' ? q : q + 1);
46836153 if (p_len == 0)
46846154 {
47976267 if (patlen <= len)
47986268 {
47996269 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
6270 if (STREQ (str, pat))
48016271 *str = '\0';
48026272 }
48036273 return str;
48626332 char *str = xstrdup (value);
48636333 setenv (name, str, 1);
48646334 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
6335 size_t len = strlen (name) + 1 + strlen (value) + 1;
48666336 char *str = XMALLOC (char, len);
48676337 sprintf (str, "%s=%s", name, value);
48686338 if (putenv (str) != EXIT_SUCCESS)
48796349 char *new_value;
48806350 if (orig_value && *orig_value)
48816351 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
6352 size_t orig_value_len = strlen (orig_value);
6353 size_t add_len = strlen (add);
48846354 new_value = XMALLOC (char, add_len + orig_value_len + 1);
48856355 if (to_end)
48866356 {
49116381 {
49126382 char *new_value = lt_extend_str (getenv (name), value, 0);
49136383 /* 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]))
6384 size_t len = strlen (new_value);
6385 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
49166386 {
4917 new_value[len-1] = '\0';
6387 new_value[--len] = '\0';
49186388 }
49196389 lt_setenv (name, new_value);
49206390 XFREE (new_value);
50816551 # True if ARG is an import lib, as indicated by $file_magic_cmd
50826552 func_win32_import_lib_p ()
50836553 {
5084 $opt_debug
6554 $debug_cmd
6555
50856556 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
50866557 *import*) : ;;
50876558 *) false ;;
50886559 esac
50896560 }
50906561
6562 # func_suncc_cstd_abi
6563 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6564 # Several compiler flags select an ABI that is incompatible with the
6565 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6566 func_suncc_cstd_abi ()
6567 {
6568 $debug_cmd
6569
6570 case " $compile_command " in
6571 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6572 suncc_use_cstd_abi=no
6573 ;;
6574 *)
6575 suncc_use_cstd_abi=yes
6576 ;;
6577 esac
6578 }
6579
50916580 # func_mode_link arg...
50926581 func_mode_link ()
50936582 {
5094 $opt_debug
6583 $debug_cmd
6584
50956585 case $host in
50966586 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
50976587 # It is impossible to link a dll without this setting, and
50986588 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
6589 # what system we are compiling for in order to pass an extra
51006590 # flag for every libtool invocation.
51016591 # allow_undefined=no
51026592
51036593 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
6594 # to make a dll that has undefined symbols, in which case not
51056595 # even a static library is built. For now, we need to specify
51066596 # -no-undefined on the libtool link line when we can be certain
51076597 # that all symbols are satisfied, otherwise we get a static library.
51456635 module=no
51466636 no_install=no
51476637 objs=
6638 os2dllname=
51486639 non_pic_objects=
51496640 precious_files_regex=
51506641 prefer_static_libs=no
5151 preload=no
6642 preload=false
51526643 prev=
51536644 prevarg=
51546645 release=
51606651 vinfo=
51616652 vinfo_number=no
51626653 weak_libs=
5163 single_module="${wl}-single_module"
6654 single_module=$wl-single_module
51646655 func_infer_tag $base_compile
51656656
51666657 # We need to know -static, to get the right output filenames.
51686659 do
51696660 case $arg in
51706661 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
6662 test yes != "$build_libtool_libs" \
6663 && func_fatal_configuration "cannot build a shared library"
51736664 build_old_libs=no
51746665 break
51756666 ;;
51766667 -all-static | -static | -static-libtool-libs)
51776668 case $arg in
51786669 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
6670 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
51806671 func_warning "complete static linking is impossible in this configuration"
51816672 fi
51826673 if test -n "$link_static_flag"; then
52096700
52106701 # Go through the arguments, transforming them on the way.
52116702 while test "$#" -gt 0; do
5212 arg="$1"
6703 arg=$1
52136704 shift
52146705 func_quote_for_eval "$arg"
52156706 qarg=$func_quote_for_eval_unquoted_result
52266717
52276718 case $prev in
52286719 bindir)
5229 bindir="$arg"
6720 bindir=$arg
52306721 prev=
52316722 continue
52326723 ;;
52336724 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
6725 $preload || {
52356726 # Add the symbol object into the linking commands.
52366727 func_append compile_command " @SYMFILE@"
52376728 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
6729 preload=:
6730 }
52406731 case $arg in
52416732 *.la | *.lo) ;; # We handle these cases below.
52426733 force)
5243 if test "$dlself" = no; then
6734 if test no = "$dlself"; then
52446735 dlself=needless
52456736 export_dynamic=yes
52466737 fi
52486739 continue
52496740 ;;
52506741 self)
5251 if test "$prev" = dlprefiles; then
6742 if test dlprefiles = "$prev"; then
52526743 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
6744 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
52546745 dlself=yes
52556746 else
52566747 dlself=needless
52606751 continue
52616752 ;;
52626753 *)
5263 if test "$prev" = dlfiles; then
6754 if test dlfiles = "$prev"; then
52646755 func_append dlfiles " $arg"
52656756 else
52666757 func_append dlprefiles " $arg"
52716762 esac
52726763 ;;
52736764 expsyms)
5274 export_symbols="$arg"
6765 export_symbols=$arg
52756766 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
6767 || func_fatal_error "symbol file '$arg' does not exist"
52776768 prev=
52786769 continue
52796770 ;;
52806771 expsyms_regex)
5281 export_symbols_regex="$arg"
6772 export_symbols_regex=$arg
52826773 prev=
52836774 continue
52846775 ;;
52966787 continue
52976788 ;;
52986789 inst_prefix)
5299 inst_prefix_dir="$arg"
6790 inst_prefix_dir=$arg
6791 prev=
6792 continue
6793 ;;
6794 mllvm)
6795 # Clang does not use LLVM to link, so we can simply discard any
6796 # '-mllvm $arg' options when doing the link step.
53006797 prev=
53016798 continue
53026799 ;;
53206817
53216818 if test -z "$pic_object" ||
53226819 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'"
6820 test none = "$pic_object" &&
6821 test none = "$non_pic_object"; then
6822 func_fatal_error "cannot find name of object for '$arg'"
53266823 fi
53276824
53286825 # Extract subdirectory from the argument.
53296826 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
6827 xdir=$func_dirname_result
6828
6829 if test none != "$pic_object"; then
53336830 # 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
6831 pic_object=$xdir$pic_object
6832
6833 if test dlfiles = "$prev"; then
6834 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
53386835 func_append dlfiles " $pic_object"
53396836 prev=
53406837 continue
53456842 fi
53466843
53476844 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
6845 if test dlprefiles = "$prev"; then
53496846 # Preload the old-style object.
53506847 func_append dlprefiles " $pic_object"
53516848 prev=
53536850
53546851 # A PIC object.
53556852 func_append libobjs " $pic_object"
5356 arg="$pic_object"
6853 arg=$pic_object
53576854 fi
53586855
53596856 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
6857 if test none != "$non_pic_object"; then
53616858 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
6859 non_pic_object=$xdir$non_pic_object
53636860
53646861 # A standard non-PIC object
53656862 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
6863 if test -z "$pic_object" || test none = "$pic_object"; then
6864 arg=$non_pic_object
53686865 fi
53696866 else
53706867 # If the PIC object exists, use it instead.
53716868 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
6869 non_pic_object=$pic_object
53736870 func_append non_pic_objects " $non_pic_object"
53746871 fi
53756872 else
53776874 if $opt_dry_run; then
53786875 # Extract subdirectory from the argument.
53796876 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
6877 xdir=$func_dirname_result
53816878
53826879 func_lo2o "$arg"
53836880 pic_object=$xdir$objdir/$func_lo2o_result
53856882 func_append libobjs " $pic_object"
53866883 func_append non_pic_objects " $non_pic_object"
53876884 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
6885 func_fatal_error "'$arg' is not a valid libtool object"
53896886 fi
53906887 fi
53916888 done
53926889 else
5393 func_fatal_error "link input file \`$arg' does not exist"
6890 func_fatal_error "link input file '$arg' does not exist"
53946891 fi
53956892 arg=$save_arg
53966893 prev=
53976894 continue
53986895 ;;
6896 os2dllname)
6897 os2dllname=$arg
6898 prev=
6899 continue
6900 ;;
53996901 precious_regex)
5400 precious_files_regex="$arg"
6902 precious_files_regex=$arg
54016903 prev=
54026904 continue
54036905 ;;
54046906 release)
5405 release="-$arg"
6907 release=-$arg
54066908 prev=
54076909 continue
54086910 ;;
54146916 func_fatal_error "only absolute run-paths are allowed"
54156917 ;;
54166918 esac
5417 if test "$prev" = rpath; then
6919 if test rpath = "$prev"; then
54186920 case "$rpath " in
54196921 *" $arg "*) ;;
54206922 *) func_append rpath " $arg" ;;
54296931 continue
54306932 ;;
54316933 shrext)
5432 shrext_cmds="$arg"
6934 shrext_cmds=$arg
54336935 prev=
54346936 continue
54356937 ;;
54696971 esac
54706972 fi # test -n "$prev"
54716973
5472 prevarg="$arg"
6974 prevarg=$arg
54736975
54746976 case $arg in
54756977 -all-static)
54836985
54846986 -allow-undefined)
54856987 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
6988 func_fatal_error "'-allow-undefined' must not be used because it is the default"
54876989 ;;
54886990
54896991 -avoid-version)
55157017 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
55167018 func_fatal_error "more than one -exported-symbols argument is not allowed"
55177019 fi
5518 if test "X$arg" = "X-export-symbols"; then
7020 if test X-export-symbols = "X$arg"; then
55197021 prev=expsyms
55207022 else
55217023 prev=expsyms_regex
55497051 func_stripname "-L" '' "$arg"
55507052 if test -z "$func_stripname_result"; then
55517053 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
7054 func_fatal_error "require no space between '-L' and '$1'"
55537055 else
5554 func_fatal_error "need path for \`-L' option"
7056 func_fatal_error "need path for '-L' option"
55557057 fi
55567058 fi
55577059 func_resolve_sysroot "$func_stripname_result"
55627064 *)
55637065 absdir=`cd "$dir" && pwd`
55647066 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
7067 func_fatal_error "cannot determine absolute directory name of '$dir'"
7068 dir=$absdir
55677069 ;;
55687070 esac
55697071 case "$deplibs " in
55987100 ;;
55997101
56007102 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7103 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
56027104 case $host in
56037105 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
56047106 # These systems don't actually have a C or math library (as such)
56067108 ;;
56077109 *-*-os2*)
56087110 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
7111 test X-lc = "X$arg" && continue
56107112 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7113 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56127114 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
7115 test X-lc = "X$arg" && continue
56147116 ;;
56157117 *-*-rhapsody* | *-*-darwin1.[012])
56167118 # Rhapsody C and math libraries are in the System framework
56197121 ;;
56207122 *-*-sco3.2v5* | *-*-sco5v6*)
56217123 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
7124 test X-lc = "X$arg" && continue
56237125 ;;
56247126 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
56257127 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
7128 test X-lc = "X$arg" && continue
56277129 ;;
56287130 esac
5629 elif test "X$arg" = "X-lc_r"; then
7131 elif test X-lc_r = "X$arg"; then
56307132 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7133 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56327134 # Do not include libc_r directly, use -pthread flag.
56337135 continue
56347136 ;;
56357137 esac
56367138 fi
56377139 func_append deplibs " $arg"
7140 continue
7141 ;;
7142
7143 -mllvm)
7144 prev=mllvm
56387145 continue
56397146 ;;
56407147
56677174 ;;
56687175
56697176 -multi_module)
5670 single_module="${wl}-multi_module"
7177 single_module=$wl-multi_module
56717178 continue
56727179 ;;
56737180
56817188 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
56827189 # The PATH hackery in wrapper scripts is required on Windows
56837190 # 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"
7191 func_warning "'-no-install' is ignored for $host"
7192 func_warning "assuming '-no-fast-install' instead"
56867193 fast_install=no
56877194 ;;
56887195 *) no_install=yes ;;
56977204
56987205 -objectlist)
56997206 prev=objectlist
7207 continue
7208 ;;
7209
7210 -os2dllname)
7211 prev=os2dllname
57007212 continue
57017213 ;;
57027214
57877299 func_stripname '-Wc,' '' "$arg"
57887300 args=$func_stripname_result
57897301 arg=
5790 save_ifs="$IFS"; IFS=','
7302 save_ifs=$IFS; IFS=,
57917303 for flag in $args; do
5792 IFS="$save_ifs"
7304 IFS=$save_ifs
57937305 func_quote_for_eval "$flag"
57947306 func_append arg " $func_quote_for_eval_result"
57957307 func_append compiler_flags " $func_quote_for_eval_result"
57967308 done
5797 IFS="$save_ifs"
7309 IFS=$save_ifs
57987310 func_stripname ' ' '' "$arg"
57997311 arg=$func_stripname_result
58007312 ;;
58037315 func_stripname '-Wl,' '' "$arg"
58047316 args=$func_stripname_result
58057317 arg=
5806 save_ifs="$IFS"; IFS=','
7318 save_ifs=$IFS; IFS=,
58077319 for flag in $args; do
5808 IFS="$save_ifs"
7320 IFS=$save_ifs
58097321 func_quote_for_eval "$flag"
58107322 func_append arg " $wl$func_quote_for_eval_result"
58117323 func_append compiler_flags " $wl$func_quote_for_eval_result"
58127324 func_append linker_flags " $func_quote_for_eval_result"
58137325 done
5814 IFS="$save_ifs"
7326 IFS=$save_ifs
58157327 func_stripname ' ' '' "$arg"
58167328 arg=$func_stripname_result
58177329 ;;
58347346 # -msg_* for osf cc
58357347 -msg_*)
58367348 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
7349 arg=$func_quote_for_eval_result
58387350 ;;
58397351
58407352 # Flags to be passed through unchanged, with rationale:
58467358 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
58477359 # -F/path path to uninstalled frameworks, gcc on darwin
58487360 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7361 # -fstack-protector* stack protector flags for GCC
58497362 # @file GCC response files
58507363 # -tp=* Portland pgcc target processor selection
58517364 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7365 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7366 # -specs=* GCC specs files
7367 # -stdlib=* select c++ std lib with clang
7368 # -fsanitize=* Clang/GCC memory and address sanitizer
7369 # -fuse-ld=* Linker select flags for GCC
7370 # -static-* direct GCC to link specific libraries statically
7371 # -fcilkplus Cilk Plus language extension features for C/C++
58537372 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
58547373 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
7374 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7375 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus)
58567376 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
7377 arg=$func_quote_for_eval_result
58587378 func_append compile_command " $arg"
58597379 func_append finalize_command " $arg"
58607380 func_append compiler_flags " $arg"
58617381 continue
58627382 ;;
58637383
7384 -Z*)
7385 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7386 # OS/2 uses -Zxxx to specify OS/2-specific options
7387 compiler_flags="$compiler_flags $arg"
7388 func_append compile_command " $arg"
7389 func_append finalize_command " $arg"
7390 case $arg in
7391 -Zlinker | -Zstack)
7392 prev=xcompiler
7393 ;;
7394 esac
7395 continue
7396 else
7397 # Otherwise treat like 'Some other compiler flag' below
7398 func_quote_for_eval "$arg"
7399 arg=$func_quote_for_eval_result
7400 fi
7401 ;;
7402
58647403 # Some other compiler flag.
58657404 -* | +*)
58667405 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
7406 arg=$func_quote_for_eval_result
58687407 ;;
58697408
58707409 *.$objext)
58857424
58867425 if test -z "$pic_object" ||
58877426 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'"
7427 test none = "$pic_object" &&
7428 test none = "$non_pic_object"; then
7429 func_fatal_error "cannot find name of object for '$arg'"
58917430 fi
58927431
58937432 # Extract subdirectory from the argument.
58947433 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
7434 xdir=$func_dirname_result
7435
7436 test none = "$pic_object" || {
58987437 # 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
7438 pic_object=$xdir$pic_object
7439
7440 if test dlfiles = "$prev"; then
7441 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
59037442 func_append dlfiles " $pic_object"
59047443 prev=
59057444 continue
59107449 fi
59117450
59127451 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
7452 if test dlprefiles = "$prev"; then
59147453 # Preload the old-style object.
59157454 func_append dlprefiles " $pic_object"
59167455 prev=
59187457
59197458 # A PIC object.
59207459 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
7460 arg=$pic_object
7461 }
59237462
59247463 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
7464 if test none != "$non_pic_object"; then
59267465 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
7466 non_pic_object=$xdir$non_pic_object
59287467
59297468 # A standard non-PIC object
59307469 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
7470 if test -z "$pic_object" || test none = "$pic_object"; then
7471 arg=$non_pic_object
59337472 fi
59347473 else
59357474 # If the PIC object exists, use it instead.
59367475 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
7476 non_pic_object=$pic_object
59387477 func_append non_pic_objects " $non_pic_object"
59397478 fi
59407479 else
59427481 if $opt_dry_run; then
59437482 # Extract subdirectory from the argument.
59447483 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
7484 xdir=$func_dirname_result
59467485
59477486 func_lo2o "$arg"
59487487 pic_object=$xdir$objdir/$func_lo2o_result
59507489 func_append libobjs " $pic_object"
59517490 func_append non_pic_objects " $non_pic_object"
59527491 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
7492 func_fatal_error "'$arg' is not a valid libtool object"
59547493 fi
59557494 fi
59567495 ;;
59667505 # A libtool-controlled library.
59677506
59687507 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
7508 if test dlfiles = "$prev"; then
59707509 # This library was specified with -dlopen.
59717510 func_append dlfiles " $func_resolve_sysroot_result"
59727511 prev=
5973 elif test "$prev" = dlprefiles; then
7512 elif test dlprefiles = "$prev"; then
59747513 # The library was specified with -dlpreopen.
59757514 func_append dlprefiles " $func_resolve_sysroot_result"
59767515 prev=
59857524 # Unknown arguments in both finalize_command and compile_command need
59867525 # to be aesthetically quoted because they are evaled later.
59877526 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
7527 arg=$func_quote_for_eval_result
59897528 ;;
59907529 esac # arg
59917530
59977536 done # argument parsing loop
59987537
59997538 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
7539 func_fatal_help "the '$prevarg' option requires an argument"
7540
7541 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
60037542 eval arg=\"$export_dynamic_flag_spec\"
60047543 func_append compile_command " $arg"
60057544 func_append finalize_command " $arg"
60087547 oldlibs=
60097548 # calculate the name of the file, without its directory
60107549 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
7550 outputname=$func_basename_result
7551 libobjs_save=$libobjs
60137552
60147553 if test -n "$shlibpath_var"; then
60157554 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
7555 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
60177556 else
60187557 shlib_search_path=
60197558 fi
60207559 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
60217560 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
60227561
7562 # Definition is injected by LT_CONFIG during libtool generation.
7563 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7564
60237565 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
7566 output_objdir=$func_dirname_result$objdir
60257567 func_to_tool_file "$output_objdir/"
60267568 tool_output_objdir=$func_to_tool_file_result
60277569 # Create the object directory.
60447586 # Find all interdependent deplibs by searching for libraries
60457587 # that are linked more than once (e.g. -la -lb -la)
60467588 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
7589 if $opt_preserve_dup_deps; then
60487590 case "$libs " in
60497591 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
60507592 esac
60527594 func_append libs " $deplib"
60537595 done
60547596
6055 if test "$linkmode" = lib; then
7597 if test lib = "$linkmode"; then
60567598 libs="$predeps $libs $compiler_lib_search_path $postdeps"
60577599
60587600 # Compute libraries that are listed more than once in $predeps
60847626 case $file in
60857627 *.la) ;;
60867628 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
7629 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
60887630 ;;
60897631 esac
60907632 done
60927634 prog)
60937635 compile_deplibs=
60947636 finalize_deplibs=
6095 alldeplibs=no
7637 alldeplibs=false
60967638 newdlfiles=
60977639 newdlprefiles=
60987640 passes="conv scan dlopen dlpreopen link"
61047646 for pass in $passes; do
61057647 # The preopen pass in lib mode reverses $deplibs; put it back here
61067648 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
7649 if test lib,link = "$linkmode,$pass"; then
61087650 ## FIXME: Find the place where the list is rebuilt in the wrong
61097651 ## order, and fix it there properly
61107652 tmp_deplibs=
61117653 for deplib in $deplibs; do
61127654 tmp_deplibs="$deplib $tmp_deplibs"
61137655 done
6114 deplibs="$tmp_deplibs"
7656 deplibs=$tmp_deplibs
61157657 fi
61167658
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
7659 if test lib,link = "$linkmode,$pass" ||
7660 test prog,scan = "$linkmode,$pass"; then
7661 libs=$deplibs
61207662 deplibs=
61217663 fi
6122 if test "$linkmode" = prog; then
7664 if test prog = "$linkmode"; then
61237665 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
7666 dlopen) libs=$dlfiles ;;
7667 dlpreopen) libs=$dlprefiles ;;
61267668 link)
61277669 libs="$deplibs %DEPLIBS%"
61287670 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
61297671 ;;
61307672 esac
61317673 fi
6132 if test "$linkmode,$pass" = "lib,dlpreopen"; then
7674 if test lib,dlpreopen = "$linkmode,$pass"; then
61337675 # Collect and forward deplibs of preopened libtool libs
61347676 for lib in $dlprefiles; do
61357677 # Ignore non-libtool-libs
61507692 esac
61517693 done
61527694 done
6153 libs="$dlprefiles"
7695 libs=$dlprefiles
61547696 fi
6155 if test "$pass" = dlopen; then
7697 if test dlopen = "$pass"; then
61567698 # Collect dlpreopened libraries
6157 save_deplibs="$deplibs"
7699 save_deplibs=$deplibs
61587700 deplibs=
61597701 fi
61607702
61617703 for deplib in $libs; do
61627704 lib=
6163 found=no
7705 found=false
61647706 case $deplib in
61657707 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
61667708 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6167 if test "$linkmode,$pass" = "prog,link"; then
7709 if test prog,link = "$linkmode,$pass"; then
61687710 compile_deplibs="$deplib $compile_deplibs"
61697711 finalize_deplibs="$deplib $finalize_deplibs"
61707712 else
61717713 func_append compiler_flags " $deplib"
6172 if test "$linkmode" = lib ; then
7714 if test lib = "$linkmode"; then
61737715 case "$new_inherited_linker_flags " in
61747716 *" $deplib "*) ;;
61757717 * ) func_append new_inherited_linker_flags " $deplib" ;;
61797721 continue
61807722 ;;
61817723 -l*)
6182 if test "$linkmode" != lib && test "$linkmode" != prog; then
6183 func_warning "\`-l' is ignored for archives/objects"
7724 if test lib != "$linkmode" && test prog != "$linkmode"; then
7725 func_warning "'-l' is ignored for archives/objects"
61847726 continue
61857727 fi
61867728 func_stripname '-l' '' "$deplib"
61877729 name=$func_stripname_result
6188 if test "$linkmode" = lib; then
7730 if test lib = "$linkmode"; then
61897731 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
61907732 else
61917733 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
61937735 for searchdir in $searchdirs; do
61947736 for search_ext in .la $std_shrext .so .a; do
61957737 # Search the libtool library
6196 lib="$searchdir/lib${name}${search_ext}"
7738 lib=$searchdir/lib$name$search_ext
61977739 if test -f "$lib"; then
6198 if test "$search_ext" = ".la"; then
6199 found=yes
7740 if test .la = "$search_ext"; then
7741 found=:
62007742 else
6201 found=no
7743 found=false
62027744 fi
62037745 break 2
62047746 fi
62057747 done
62067748 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
7749 if $found; then
7750 # deplib is a libtool library
62187751 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
62197752 # We need to do some special things here, and not later.
6220 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7753 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
62217754 case " $predeps $postdeps " in
62227755 *" $deplib "*)
62237756 if func_lalib_p "$lib"; then
62257758 old_library=
62267759 func_source "$lib"
62277760 for l in $old_library $library_names; do
6228 ll="$l"
7761 ll=$l
62297762 done
6230 if test "X$ll" = "X$old_library" ; then # only static version available
6231 found=no
7763 if test "X$ll" = "X$old_library"; then # only static version available
7764 found=false
62327765 func_dirname "$lib" "" "."
6233 ladir="$func_dirname_result"
7766 ladir=$func_dirname_result
62347767 lib=$ladir/$old_library
6235 if test "$linkmode,$pass" = "prog,link"; then
7768 if test prog,link = "$linkmode,$pass"; then
62367769 compile_deplibs="$deplib $compile_deplibs"
62377770 finalize_deplibs="$deplib $finalize_deplibs"
62387771 else
62397772 deplibs="$deplib $deplibs"
6240 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
7773 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
62417774 fi
62427775 continue
62437776 fi
62467779 *) ;;
62477780 esac
62487781 fi
7782 else
7783 # deplib doesn't seem to be a libtool library
7784 if test prog,link = "$linkmode,$pass"; then
7785 compile_deplibs="$deplib $compile_deplibs"
7786 finalize_deplibs="$deplib $finalize_deplibs"
7787 else
7788 deplibs="$deplib $deplibs"
7789 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7790 fi
7791 continue
62497792 fi
62507793 ;; # -l
62517794 *.ltframework)
6252 if test "$linkmode,$pass" = "prog,link"; then
7795 if test prog,link = "$linkmode,$pass"; then
62537796 compile_deplibs="$deplib $compile_deplibs"
62547797 finalize_deplibs="$deplib $finalize_deplibs"
62557798 else
62567799 deplibs="$deplib $deplibs"
6257 if test "$linkmode" = lib ; then
7800 if test lib = "$linkmode"; then
62587801 case "$new_inherited_linker_flags " in
62597802 *" $deplib "*) ;;
62607803 * ) func_append new_inherited_linker_flags " $deplib" ;;
62677810 case $linkmode in
62687811 lib)
62697812 deplibs="$deplib $deplibs"
6270 test "$pass" = conv && continue
7813 test conv = "$pass" && continue
62717814 newdependency_libs="$deplib $newdependency_libs"
62727815 func_stripname '-L' '' "$deplib"
62737816 func_resolve_sysroot "$func_stripname_result"
62747817 func_append newlib_search_path " $func_resolve_sysroot_result"
62757818 ;;
62767819 prog)
6277 if test "$pass" = conv; then
7820 if test conv = "$pass"; then
62787821 deplibs="$deplib $deplibs"
62797822 continue
62807823 fi
6281 if test "$pass" = scan; then
7824 if test scan = "$pass"; then
62827825 deplibs="$deplib $deplibs"
62837826 else
62847827 compile_deplibs="$deplib $compile_deplibs"
62897832 func_append newlib_search_path " $func_resolve_sysroot_result"
62907833 ;;
62917834 *)
6292 func_warning "\`-L' is ignored for archives/objects"
7835 func_warning "'-L' is ignored for archives/objects"
62937836 ;;
62947837 esac # linkmode
62957838 continue
62967839 ;; # -L
62977840 -R*)
6298 if test "$pass" = link; then
7841 if test link = "$pass"; then
62997842 func_stripname '-R' '' "$deplib"
63007843 func_resolve_sysroot "$func_stripname_result"
63017844 dir=$func_resolve_sysroot_result
63137856 lib=$func_resolve_sysroot_result
63147857 ;;
63157858 *.$libext)
6316 if test "$pass" = conv; then
7859 if test conv = "$pass"; then
63177860 deplibs="$deplib $deplibs"
63187861 continue
63197862 fi
63247867 case " $dlpreconveniencelibs " in
63257868 *" $deplib "*) ;;
63267869 *)
6327 valid_a_lib=no
7870 valid_a_lib=false
63287871 case $deplibs_check_method in
63297872 match_pattern*)
63307873 set dummy $deplibs_check_method; shift
63317874 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
63327875 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
63337876 | $EGREP "$match_pattern_regex" > /dev/null; then
6334 valid_a_lib=yes
7877 valid_a_lib=:
63357878 fi
63367879 ;;
63377880 pass_all)
6338 valid_a_lib=yes
7881 valid_a_lib=:
63397882 ;;
63407883 esac
6341 if test "$valid_a_lib" != yes; then
7884 if $valid_a_lib; then
7885 echo
7886 $ECHO "*** Warning: Linking the shared library $output against the"
7887 $ECHO "*** static library $deplib is not portable!"
7888 deplibs="$deplib $deplibs"
7889 else
63427890 echo
63437891 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
63447892 echo "*** I have the capability to make that library automatically link in when"
63467894 echo "*** shared version of the library, which you do not appear to have"
63477895 echo "*** because the file extensions .$libext of this argument makes me believe"
63487896 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"
63547897 fi
63557898 ;;
63567899 esac
63577900 continue
63587901 ;;
63597902 prog)
6360 if test "$pass" != link; then
7903 if test link != "$pass"; then
63617904 deplibs="$deplib $deplibs"
63627905 else
63637906 compile_deplibs="$deplib $compile_deplibs"
63687911 esac # linkmode
63697912 ;; # *.$libext
63707913 *.lo | *.$objext)
6371 if test "$pass" = conv; then
7914 if test conv = "$pass"; then
63727915 deplibs="$deplib $deplibs"
6373 elif test "$linkmode" = prog; then
6374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
7916 elif test prog = "$linkmode"; then
7917 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
63757918 # If there is no dlopen support or we're linking statically,
63767919 # we need to preload.
63777920 func_append newdlprefiles " $deplib"
63847927 continue
63857928 ;;
63867929 %DEPLIBS%)
6387 alldeplibs=yes
7930 alldeplibs=:
63887931 continue
63897932 ;;
63907933 esac # case $deplib
63917934
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
7935 $found || test -f "$lib" \
7936 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
63967937
63977938 # Check to see that this really is a libtool archive.
63987939 func_lalib_unsafe_p "$lib" \
6399 || func_fatal_error "\`$lib' is not a valid libtool archive"
7940 || func_fatal_error "'$lib' is not a valid libtool archive"
64007941
64017942 func_dirname "$lib" "" "."
6402 ladir="$func_dirname_result"
7943 ladir=$func_dirname_result
64037944
64047945 dlname=
64057946 dlopen=
64297970 done
64307971 fi
64317972 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
7973 if test lib,link = "$linkmode,$pass" ||
7974 test prog,scan = "$linkmode,$pass" ||
7975 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
64357976 test -n "$dlopen" && func_append dlfiles " $dlopen"
64367977 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
64377978 fi
64387979
6439 if test "$pass" = conv; then
7980 if test conv = "$pass"; then
64407981 # Only check for convenience libraries
64417982 deplibs="$lib $deplibs"
64427983 if test -z "$libdir"; then
64437984 if test -z "$old_library"; then
6444 func_fatal_error "cannot find name of link library for \`$lib'"
7985 func_fatal_error "cannot find name of link library for '$lib'"
64457986 fi
64467987 # It is a libtool convenience library, so add in its objects.
64477988 func_append convenience " $ladir/$objdir/$old_library"
64497990 tmp_libs=
64507991 for deplib in $dependency_libs; do
64517992 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
7993 if $opt_preserve_dup_deps; then
64537994 case "$tmp_libs " in
64547995 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
64557996 esac
64567997 fi
64577998 func_append tmp_libs " $deplib"
64587999 done
6459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6460 func_fatal_error "\`$lib' is not a convenience library"
8000 elif test prog != "$linkmode" && test lib != "$linkmode"; then
8001 func_fatal_error "'$lib' is not a convenience library"
64618002 fi
64628003 continue
64638004 fi # $pass = conv
64668007 # Get the name of the library we link against.
64678008 linklib=
64688009 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
8010 { test yes = "$prefer_static_libs" ||
8011 test built,no = "$prefer_static_libs,$installed"; }; then
64718012 linklib=$old_library
64728013 else
64738014 for l in $old_library $library_names; do
6474 linklib="$l"
8015 linklib=$l
64758016 done
64768017 fi
64778018 if test -z "$linklib"; then
6478 func_fatal_error "cannot find name of link library for \`$lib'"
8019 func_fatal_error "cannot find name of link library for '$lib'"
64798020 fi
64808021
64818022 # 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
8023 if test dlopen = "$pass"; then
8024 test -z "$libdir" \
8025 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
64868026 if test -z "$dlname" ||
6487 test "$dlopen_support" != yes ||
6488 test "$build_libtool_libs" = no; then
8027 test yes != "$dlopen_support" ||
8028 test no = "$build_libtool_libs"
8029 then
64898030 # If there is no dlname, no dlopen support or we're linking
64908031 # statically, we need to preload. We also need to preload any
64918032 # dependent libraries so libltdl's deplib preloader doesn't
64998040
65008041 # We need an absolute path.
65018042 case $ladir in
6502 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
8043 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
65038044 *)
65048045 abs_ladir=`cd "$ladir" && pwd`
65058046 if test -z "$abs_ladir"; then
6506 func_warning "cannot determine absolute directory name of \`$ladir'"
8047 func_warning "cannot determine absolute directory name of '$ladir'"
65078048 func_warning "passing it literally to the linker, although it might fail"
6508 abs_ladir="$ladir"
8049 abs_ladir=$ladir
65098050 fi
65108051 ;;
65118052 esac
65128053 func_basename "$lib"
6513 laname="$func_basename_result"
8054 laname=$func_basename_result
65148055
65158056 # Find the relevant object directory and library name.
6516 if test "X$installed" = Xyes; then
8057 if test yes = "$installed"; then
65178058 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"
8059 func_warning "library '$lib' was moved."
8060 dir=$ladir
8061 absdir=$abs_ladir
8062 libdir=$abs_ladir
65228063 else
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
8064 dir=$lt_sysroot$libdir
8065 absdir=$lt_sysroot$libdir
65258066 fi
6526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
8067 test yes = "$hardcode_automatic" && avoidtemprpath=yes
65278068 else
65288069 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6529 dir="$ladir"
6530 absdir="$abs_ladir"
8070 dir=$ladir
8071 absdir=$abs_ladir
65318072 # Remove this search path later
65328073 func_append notinst_path " $abs_ladir"
65338074 else
6534 dir="$ladir/$objdir"
6535 absdir="$abs_ladir/$objdir"
8075 dir=$ladir/$objdir
8076 absdir=$abs_ladir/$objdir
65368077 # Remove this search path later
65378078 func_append notinst_path " $abs_ladir"
65388079 fi
65418082 name=$func_stripname_result
65428083
65438084 # 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'"
8085 if test dlpreopen = "$pass"; then
8086 if test -z "$libdir" && test prog = "$linkmode"; then
8087 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
65478088 fi
6548 case "$host" in
8089 case $host in
65498090 # special handling for platforms with PE-DLLs.
65508091 *cygwin* | *mingw* | *cegcc* )
65518092 # Linker will automatically link against shared library if both
65898130
65908131 if test -z "$libdir"; then
65918132 # Link the convenience library
6592 if test "$linkmode" = lib; then
8133 if test lib = "$linkmode"; then
65938134 deplibs="$dir/$old_library $deplibs"
6594 elif test "$linkmode,$pass" = "prog,link"; then
8135 elif test prog,link = "$linkmode,$pass"; then
65958136 compile_deplibs="$dir/$old_library $compile_deplibs"
65968137 finalize_deplibs="$dir/$old_library $finalize_deplibs"
65978138 else
66018142 fi
66028143
66038144
6604 if test "$linkmode" = prog && test "$pass" != link; then
8145 if test prog = "$linkmode" && test link != "$pass"; then
66058146 func_append newlib_search_path " $ladir"
66068147 deplibs="$lib $deplibs"
66078148
6608 linkalldeplibs=no
6609 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6610 test "$build_libtool_libs" = no; then
6611 linkalldeplibs=yes
8149 linkalldeplibs=false
8150 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8151 test no = "$build_libtool_libs"; then
8152 linkalldeplibs=:
66128153 fi
66138154
66148155 tmp_libs=
66208161 ;;
66218162 esac
66228163 # Need to link against all dependency_libs?
6623 if test "$linkalldeplibs" = yes; then
8164 if $linkalldeplibs; then
66248165 deplibs="$deplib $deplibs"
66258166 else
66268167 # Need to hardcode shared library paths
66278168 # or/and link against static libraries
66288169 newdependency_libs="$deplib $newdependency_libs"
66298170 fi
6630 if $opt_preserve_dup_deps ; then
8171 if $opt_preserve_dup_deps; then
66318172 case "$tmp_libs " in
66328173 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
66338174 esac
66378178 continue
66388179 fi # $linkmode = prog...
66398180
6640 if test "$linkmode,$pass" = "prog,link"; then
8181 if test prog,link = "$linkmode,$pass"; then
66418182 if test -n "$library_names" &&
6642 { { test "$prefer_static_libs" = no ||
6643 test "$prefer_static_libs,$installed" = "built,yes"; } ||
8183 { { test no = "$prefer_static_libs" ||
8184 test built,yes = "$prefer_static_libs,$installed"; } ||
66448185 test -z "$old_library"; }; then
66458186 # We need to hardcode the library path
6646 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
8187 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
66478188 # Make sure the rpath contains only unique directories.
6648 case "$temp_rpath:" in
8189 case $temp_rpath: in
66498190 *"$absdir:"*) ;;
66508191 *) func_append temp_rpath "$absdir:" ;;
66518192 esac
66748215 esac
66758216 fi # $linkmode,$pass = prog,link...
66768217
6677 if test "$alldeplibs" = yes &&
6678 { test "$deplibs_check_method" = pass_all ||
6679 { test "$build_libtool_libs" = yes &&
8218 if $alldeplibs &&
8219 { test pass_all = "$deplibs_check_method" ||
8220 { test yes = "$build_libtool_libs" &&
66808221 test -n "$library_names"; }; }; then
66818222 # We only need to search for static libraries
66828223 continue
66858226
66868227 link_static=no # Whether the deplib will be linked statically
66878228 use_static_libs=$prefer_static_libs
6688 if test "$use_static_libs" = built && test "$installed" = yes; then
8229 if test built = "$use_static_libs" && test yes = "$installed"; then
66898230 use_static_libs=no
66908231 fi
66918232 if test -n "$library_names" &&
6692 { test "$use_static_libs" = no || test -z "$old_library"; }; then
8233 { test no = "$use_static_libs" || test -z "$old_library"; }; then
66938234 case $host in
6694 *cygwin* | *mingw* | *cegcc*)
8235 *cygwin* | *mingw* | *cegcc* | *os2*)
66958236 # No point in relinking DLLs because paths are not encoded
66968237 func_append notinst_deplibs " $lib"
66978238 need_relink=no
66988239 ;;
66998240 *)
6700 if test "$installed" = no; then
8241 if test no = "$installed"; then
67018242 func_append notinst_deplibs " $lib"
67028243 need_relink=yes
67038244 fi
67078248
67088249 # Warn about portability, can't link against -module's on some
67098250 # systems (darwin). Don't bleat about dlopened modules though!
6710 dlopenmodule=""
8251 dlopenmodule=
67118252 for dlpremoduletest in $dlprefiles; do
67128253 if test "X$dlpremoduletest" = "X$lib"; then
6713 dlopenmodule="$dlpremoduletest"
8254 dlopenmodule=$dlpremoduletest
67148255 break
67158256 fi
67168257 done
6717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8258 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
67188259 echo
6719 if test "$linkmode" = prog; then
8260 if test prog = "$linkmode"; then
67208261 $ECHO "*** Warning: Linking the executable $output against the loadable module"
67218262 else
67228263 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
67238264 fi
67248265 $ECHO "*** $linklib is not portable!"
67258266 fi
6726 if test "$linkmode" = lib &&
6727 test "$hardcode_into_libs" = yes; then
8267 if test lib = "$linkmode" &&
8268 test yes = "$hardcode_into_libs"; then
67288269 # Hardcode the library path.
67298270 # Skip directories that are in the system default run-time
67308271 # search path.
67528293 # figure out the soname
67538294 set dummy $library_names
67548295 shift
6755 realname="$1"
8296 realname=$1
67568297 shift
67578298 libname=`eval "\\$ECHO \"$libname_spec\""`
67588299 # use dlname if we got it. it's perfectly good, no?
67598300 if test -n "$dlname"; then
6760 soname="$dlname"
8301 soname=$dlname
67618302 elif test -n "$soname_spec"; then
67628303 # bleh windows
67638304 case $host in
6764 *cygwin* | mingw* | *cegcc*)
8305 *cygwin* | mingw* | *cegcc* | *os2*)
67658306 func_arith $current - $age
67668307 major=$func_arith_result
6767 versuffix="-$major"
8308 versuffix=-$major
67688309 ;;
67698310 esac
67708311 eval soname=\"$soname_spec\"
67718312 else
6772 soname="$realname"
8313 soname=$realname
67738314 fi
67748315
67758316 # Make a new name for the extract_expsyms_cmds to use
6776 soroot="$soname"
8317 soroot=$soname
67778318 func_basename "$soroot"
6778 soname="$func_basename_result"
8319 soname=$func_basename_result
67798320 func_stripname 'lib' '.dll' "$soname"
67808321 newlib=libimp-$func_stripname_result.a
67818322
67828323 # If the library has no export list, then create one now
67838324 if test -f "$output_objdir/$soname-def"; then :
67848325 else
6785 func_verbose "extracting exported symbol list from \`$soname'"
8326 func_verbose "extracting exported symbol list from '$soname'"
67868327 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
67878328 fi
67888329
67898330 # Create $newlib
67908331 if test -f "$output_objdir/$newlib"; then :; else
6791 func_verbose "generating import library for \`$soname'"
8332 func_verbose "generating import library for '$soname'"
67928333 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
67938334 fi
67948335 # make sure the library variables are pointing to the new library
67968337 linklib=$newlib
67978338 fi # test -n "$old_archive_from_expsyms_cmds"
67988339
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
8340 if test prog = "$linkmode" || test relink != "$opt_mode"; then
68008341 add_shlibpath=
68018342 add_dir=
68028343 add=
68038344 lib_linked=yes
68048345 case $hardcode_action in
68058346 immediate | unsupported)
6806 if test "$hardcode_direct" = no; then
6807 add="$dir/$linklib"
8347 if test no = "$hardcode_direct"; then
8348 add=$dir/$linklib
68088349 case $host in
6809 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6810 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
8350 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8351 *-*-sysv4*uw2*) add_dir=-L$dir ;;
68118352 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6812 *-*-unixware7*) add_dir="-L$dir" ;;
8353 *-*-unixware7*) add_dir=-L$dir ;;
68138354 *-*-darwin* )
6814 # if the lib is a (non-dlopened) module then we can not
8355 # if the lib is a (non-dlopened) module then we cannot
68158356 # link against it, someone is ignoring the earlier warnings
68168357 if /usr/bin/file -L $add 2> /dev/null |
6817 $GREP ": [^:]* bundle" >/dev/null ; then
8358 $GREP ": [^:]* bundle" >/dev/null; then
68188359 if test "X$dlopenmodule" != "X$lib"; then
68198360 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6820 if test -z "$old_library" ; then
8361 if test -z "$old_library"; then
68218362 echo
68228363 echo "*** And there doesn't seem to be a static archive available"
68238364 echo "*** The link will probably fail, sorry"
68248365 else
6825 add="$dir/$old_library"
8366 add=$dir/$old_library
68268367 fi
68278368 elif test -n "$old_library"; then
6828 add="$dir/$old_library"
8369 add=$dir/$old_library
68298370 fi
68308371 fi
68318372 esac
6832 elif test "$hardcode_minus_L" = no; then
8373 elif test no = "$hardcode_minus_L"; then
68338374 case $host in
6834 *-*-sunos*) add_shlibpath="$dir" ;;
8375 *-*-sunos*) add_shlibpath=$dir ;;
68358376 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"
8377 add_dir=-L$dir
8378 add=-l$name
8379 elif test no = "$hardcode_shlibpath_var"; then
8380 add_shlibpath=$dir
8381 add=-l$name
68418382 else
68428383 lib_linked=no
68438384 fi
68448385 ;;
68458386 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"
8387 if test yes = "$hardcode_direct" &&
8388 test no = "$hardcode_direct_absolute"; then
8389 add=$dir/$linklib
8390 elif test yes = "$hardcode_minus_L"; then
8391 add_dir=-L$absdir
68518392 # Try looking first in the location we're being installed to.
68528393 if test -n "$inst_prefix_dir"; then
68538394 case $libdir in
68568397 ;;
68578398 esac
68588399 fi
6859 add="-l$name"
6860 elif test "$hardcode_shlibpath_var" = yes; then
6861 add_shlibpath="$dir"
6862 add="-l$name"
8400 add=-l$name
8401 elif test yes = "$hardcode_shlibpath_var"; then
8402 add_shlibpath=$dir
8403 add=-l$name
68638404 else
68648405 lib_linked=no
68658406 fi
68678408 *) lib_linked=no ;;
68688409 esac
68698410
6870 if test "$lib_linked" != yes; then
8411 if test yes != "$lib_linked"; then
68718412 func_fatal_configuration "unsupported hardcode properties"
68728413 fi
68738414
68778418 *) func_append compile_shlibpath "$add_shlibpath:" ;;
68788419 esac
68798420 fi
6880 if test "$linkmode" = prog; then
8421 if test prog = "$linkmode"; then
68818422 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
68828423 test -n "$add" && compile_deplibs="$add $compile_deplibs"
68838424 else
68848425 test -n "$add_dir" && deplibs="$add_dir $deplibs"
68858426 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
8427 if test yes != "$hardcode_direct" &&
8428 test yes != "$hardcode_minus_L" &&
8429 test yes = "$hardcode_shlibpath_var"; then
68898430 case :$finalize_shlibpath: in
68908431 *":$libdir:"*) ;;
68918432 *) func_append finalize_shlibpath "$libdir:" ;;
68948435 fi
68958436 fi
68968437
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
8438 if test prog = "$linkmode" || test relink = "$opt_mode"; then
68988439 add_shlibpath=
68998440 add_dir=
69008441 add=
69018442 # 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
8443 if test yes = "$hardcode_direct" &&
8444 test no = "$hardcode_direct_absolute"; then
8445 add=$libdir/$linklib
8446 elif test yes = "$hardcode_minus_L"; then
8447 add_dir=-L$libdir
8448 add=-l$name
8449 elif test yes = "$hardcode_shlibpath_var"; then
69098450 case :$finalize_shlibpath: in
69108451 *":$libdir:"*) ;;
69118452 *) func_append finalize_shlibpath "$libdir:" ;;
69128453 esac
6913 add="-l$name"
6914 elif test "$hardcode_automatic" = yes; then
8454 add=-l$name
8455 elif test yes = "$hardcode_automatic"; then
69158456 if test -n "$inst_prefix_dir" &&
6916 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6917 add="$inst_prefix_dir$libdir/$linklib"
8457 test -f "$inst_prefix_dir$libdir/$linklib"; then
8458 add=$inst_prefix_dir$libdir/$linklib
69188459 else
6919 add="$libdir/$linklib"
8460 add=$libdir/$linklib
69208461 fi
69218462 else
69228463 # We cannot seem to hardcode it, guess we'll fake it.
6923 add_dir="-L$libdir"
8464 add_dir=-L$libdir
69248465 # Try looking first in the location we're being installed to.
69258466 if test -n "$inst_prefix_dir"; then
69268467 case $libdir in
69298470 ;;
69308471 esac
69318472 fi
6932 add="-l$name"
8473 add=-l$name
69338474 fi
69348475
6935 if test "$linkmode" = prog; then
8476 if test prog = "$linkmode"; then
69368477 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
69378478 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
69388479 else
69408481 test -n "$add" && deplibs="$add $deplibs"
69418482 fi
69428483 fi
6943 elif test "$linkmode" = prog; then
8484 elif test prog = "$linkmode"; then
69448485 # Here we assume that one of hardcode_direct or hardcode_minus_L
69458486 # is not unsupported. This is valid on all known static and
69468487 # shared platforms.
6947 if test "$hardcode_direct" != unsupported; then
6948 test -n "$old_library" && linklib="$old_library"
8488 if test unsupported != "$hardcode_direct"; then
8489 test -n "$old_library" && linklib=$old_library
69498490 compile_deplibs="$dir/$linklib $compile_deplibs"
69508491 finalize_deplibs="$dir/$linklib $finalize_deplibs"
69518492 else
69528493 compile_deplibs="-l$name -L$dir $compile_deplibs"
69538494 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
69548495 fi
6955 elif test "$build_libtool_libs" = yes; then
8496 elif test yes = "$build_libtool_libs"; then
69568497 # Not a shared library
6957 if test "$deplibs_check_method" != pass_all; then
8498 if test pass_all != "$deplibs_check_method"; then
69588499 # We're trying link a shared library against a static one
69598500 # but the system doesn't support it.
69608501
69618502 # Just print a warning and add the library to dependency_libs so
69628503 # that the program can be linked against the static library.
69638504 echo
6964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8505 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
69658506 echo "*** I have the capability to make that library automatically link in when"
69668507 echo "*** you link to this library. But I can only do this if you have a"
69678508 echo "*** shared version of the library, which you do not appear to have."
6968 if test "$module" = yes; then
8509 if test yes = "$module"; then
69698510 echo "*** But as you try to build a module library, libtool will still create "
69708511 echo "*** a static module, that should work as long as the dlopening application"
69718512 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
69728513 if test -z "$global_symbol_pipe"; then
69738514 echo
69748515 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"
8516 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
69768517 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8518 echo "*** 'nm' from GNU binutils and a full rebuild may help."
69788519 fi
6979 if test "$build_old_libs" = no; then
8520 if test no = "$build_old_libs"; then
69808521 build_libtool_libs=module
69818522 build_old_libs=yes
69828523 else
69898530 fi
69908531 fi # link shared/static library?
69918532
6992 if test "$linkmode" = lib; then
8533 if test lib = "$linkmode"; then
69938534 if test -n "$dependency_libs" &&
6994 { test "$hardcode_into_libs" != yes ||
6995 test "$build_old_libs" = yes ||
6996 test "$link_static" = yes; }; then
8535 { test yes != "$hardcode_into_libs" ||
8536 test yes = "$build_old_libs" ||
8537 test yes = "$link_static"; }; then
69978538 # Extract -R from dependency_libs
69988539 temp_deplibs=
69998540 for libdir in $dependency_libs; do
70078548 *) func_append temp_deplibs " $libdir";;
70088549 esac
70098550 done
7010 dependency_libs="$temp_deplibs"
8551 dependency_libs=$temp_deplibs
70118552 fi
70128553
70138554 func_append newlib_search_path " $absdir"
70148555 # Link against this library
7015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8556 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
70168557 # ... and its dependency_libs
70178558 tmp_libs=
70188559 for deplib in $dependency_libs; do
70228563 func_resolve_sysroot "$func_stripname_result";;
70238564 *) func_resolve_sysroot "$deplib" ;;
70248565 esac
7025 if $opt_preserve_dup_deps ; then
8566 if $opt_preserve_dup_deps; then
70268567 case "$tmp_libs " in
70278568 *" $func_resolve_sysroot_result "*)
70288569 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
70318572 func_append tmp_libs " $func_resolve_sysroot_result"
70328573 done
70338574
7034 if test "$link_all_deplibs" != no; then
8575 if test no != "$link_all_deplibs"; then
70358576 # Add the search paths of all dependency libraries
70368577 for deplib in $dependency_libs; do
70378578 path=
70388579 case $deplib in
7039 -L*) path="$deplib" ;;
8580 -L*) path=$deplib ;;
70408581 *.la)
70418582 func_resolve_sysroot "$deplib"
70428583 deplib=$func_resolve_sysroot_result
70448585 dir=$func_dirname_result
70458586 # We need an absolute path.
70468587 case $dir in
7047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
8588 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
70488589 *)
70498590 absdir=`cd "$dir" && pwd`
70508591 if test -z "$absdir"; then
7051 func_warning "cannot determine absolute directory name of \`$dir'"
7052 absdir="$dir"
8592 func_warning "cannot determine absolute directory name of '$dir'"
8593 absdir=$dir
70538594 fi
70548595 ;;
70558596 esac
70578598 case $host in
70588599 *-*-darwin*)
70598600 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
8601 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8602 if test -n "$deplibrary_names"; then
8603 for tmp in $deplibrary_names; do
70638604 depdepl=$tmp
70648605 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}}'`
8606 if test -f "$absdir/$objdir/$depdepl"; then
8607 depdepl=$absdir/$objdir/$depdepl
8608 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70688609 if test -z "$darwin_install_name"; then
7069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8610 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70708611 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}"
8612 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8613 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
70738614 path=
70748615 fi
70758616 fi
70768617 ;;
70778618 *)
7078 path="-L$absdir/$objdir"
8619 path=-L$absdir/$objdir
70798620 ;;
70808621 esac
70818622 else
7082 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8623 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
70838624 test -z "$libdir" && \
7084 func_fatal_error "\`$deplib' is not a valid libtool archive"
8625 func_fatal_error "'$deplib' is not a valid libtool archive"
70858626 test "$absdir" != "$libdir" && \
7086 func_warning "\`$deplib' seems to be moved"
7087
7088 path="-L$absdir"
8627 func_warning "'$deplib' seems to be moved"
8628
8629 path=-L$absdir
70898630 fi
70908631 ;;
70918632 esac
70978638 fi # link_all_deplibs != no
70988639 fi # linkmode = lib
70998640 done # for deplib in $libs
7100 if test "$pass" = link; then
7101 if test "$linkmode" = "prog"; then
8641 if test link = "$pass"; then
8642 if test prog = "$linkmode"; then
71028643 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
71038644 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
71048645 else
71058646 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
71068647 fi
71078648 fi
7108 dependency_libs="$newdependency_libs"
7109 if test "$pass" = dlpreopen; then
8649 dependency_libs=$newdependency_libs
8650 if test dlpreopen = "$pass"; then
71108651 # Link the dlpreopened libraries before other libraries
71118652 for deplib in $save_deplibs; do
71128653 deplibs="$deplib $deplibs"
71138654 done
71148655 fi
7115 if test "$pass" != dlopen; then
7116 if test "$pass" != conv; then
8656 if test dlopen != "$pass"; then
8657 test conv = "$pass" || {
71178658 # Make sure lib_search_path contains only unique directories.
71188659 lib_search_path=
71198660 for dir in $newlib_search_path; do
71238664 esac
71248665 done
71258666 newlib_search_path=
7126 fi
7127
7128 if test "$linkmode,$pass" != "prog,link"; then
7129 vars="deplibs"
8667 }
8668
8669 if test prog,link = "$linkmode,$pass"; then
8670 vars="compile_deplibs finalize_deplibs"
71308671 else
7131 vars="compile_deplibs finalize_deplibs"
8672 vars=deplibs
71328673 fi
71338674 for var in $vars dependency_libs; do
71348675 # Add libraries to $var in reverse order
71868727 eval $var=\"$tmp_libs\"
71878728 done # for var
71888729 fi
8730
8731 # Add Sun CC postdeps if required:
8732 test CXX = "$tagname" && {
8733 case $host_os in
8734 linux*)
8735 case `$CC -V 2>&1 | sed 5q` in
8736 *Sun\ C*) # Sun C++ 5.9
8737 func_suncc_cstd_abi
8738
8739 if test no != "$suncc_use_cstd_abi"; then
8740 func_append postdeps ' -library=Cstd -library=Crun'
8741 fi
8742 ;;
8743 esac
8744 ;;
8745
8746 solaris*)
8747 func_cc_basename "$CC"
8748 case $func_cc_basename_result in
8749 CC* | sunCC*)
8750 func_suncc_cstd_abi
8751
8752 if test no != "$suncc_use_cstd_abi"; then
8753 func_append postdeps ' -library=Cstd -library=Crun'
8754 fi
8755 ;;
8756 esac
8757 ;;
8758 esac
8759 }
8760
71898761 # Last step: remove runtime libs from dependency_libs
71908762 # (they stay in deplibs)
71918763 tmp_libs=
7192 for i in $dependency_libs ; do
8764 for i in $dependency_libs; do
71938765 case " $predeps $postdeps $compiler_lib_search_path " in
71948766 *" $i "*)
7195 i=""
8767 i=
71968768 ;;
71978769 esac
7198 if test -n "$i" ; then
8770 if test -n "$i"; then
71998771 func_append tmp_libs " $i"
72008772 fi
72018773 done
72028774 dependency_libs=$tmp_libs
72038775 done # for pass
7204 if test "$linkmode" = prog; then
7205 dlfiles="$newdlfiles"
8776 if test prog = "$linkmode"; then
8777 dlfiles=$newdlfiles
72068778 fi
7207 if test "$linkmode" = prog || test "$linkmode" = lib; then
7208 dlprefiles="$newdlprefiles"
8779 if test prog = "$linkmode" || test lib = "$linkmode"; then
8780 dlprefiles=$newdlprefiles
72098781 fi
72108782
72118783 case $linkmode in
72128784 oldlib)
7213 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7214 func_warning "\`-dlopen' is ignored for archives"
8785 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8786 func_warning "'-dlopen' is ignored for archives"
72158787 fi
72168788
72178789 case " $deplibs" in
72188790 *\ -l* | *\ -L*)
7219 func_warning "\`-l' and \`-L' are ignored for archives" ;;
8791 func_warning "'-l' and '-L' are ignored for archives" ;;
72208792 esac
72218793
72228794 test -n "$rpath" && \
7223 func_warning "\`-rpath' is ignored for archives"
8795 func_warning "'-rpath' is ignored for archives"
72248796
72258797 test -n "$xrpath" && \
7226 func_warning "\`-R' is ignored for archives"
8798 func_warning "'-R' is ignored for archives"
72278799
72288800 test -n "$vinfo" && \
7229 func_warning "\`-version-info/-version-number' is ignored for archives"
8801 func_warning "'-version-info/-version-number' is ignored for archives"
72308802
72318803 test -n "$release" && \
7232 func_warning "\`-release' is ignored for archives"
8804 func_warning "'-release' is ignored for archives"
72338805
72348806 test -n "$export_symbols$export_symbols_regex" && \
7235 func_warning "\`-export-symbols' is ignored for archives"
8807 func_warning "'-export-symbols' is ignored for archives"
72368808
72378809 # Now set the variables for building old libraries.
72388810 build_libtool_libs=no
7239 oldlibs="$output"
8811 oldlibs=$output
72408812 func_append objs "$old_deplibs"
72418813 ;;
72428814
72438815 lib)
7244 # Make sure we only generate libraries of the form `libNAME.la'.
8816 # Make sure we only generate libraries of the form 'libNAME.la'.
72458817 case $outputname in
72468818 lib*)
72478819 func_stripname 'lib' '.la' "$outputname"
72508822 eval libname=\"$libname_spec\"
72518823 ;;
72528824 *)
7253 test "$module" = no && \
7254 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7255
7256 if test "$need_lib_prefix" != no; then
8825 test no = "$module" \
8826 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8827
8828 if test no != "$need_lib_prefix"; then
72578829 # Add the "lib" prefix for modules if required
72588830 func_stripname '' '.la' "$outputname"
72598831 name=$func_stripname_result
72678839 esac
72688840
72698841 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"
8842 if test pass_all != "$deplibs_check_method"; then
8843 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
72728844 else
72738845 echo
72748846 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72778849 fi
72788850 fi
72798851
7280 test "$dlself" != no && \
7281 func_warning "\`-dlopen self' is ignored for libtool libraries"
8852 test no = "$dlself" \
8853 || func_warning "'-dlopen self' is ignored for libtool libraries"
72828854
72838855 set dummy $rpath
72848856 shift
7285 test "$#" -gt 1 && \
7286 func_warning "ignoring multiple \`-rpath's for a libtool library"
7287
7288 install_libdir="$1"
8857 test 1 -lt "$#" \
8858 && func_warning "ignoring multiple '-rpath's for a libtool library"
8859
8860 install_libdir=$1
72898861
72908862 oldlibs=
72918863 if test -z "$rpath"; then
7292 if test "$build_libtool_libs" = yes; then
8864 if test yes = "$build_libtool_libs"; then
72938865 # Building a libtool convenience library.
7294 # Some compilers have problems with a `.al' extension so
8866 # Some compilers have problems with a '.al' extension so
72958867 # convenience libraries should have the same extension an
72968868 # archive normally would.
72978869 oldlibs="$output_objdir/$libname.$libext $oldlibs"
73008872 fi
73018873
73028874 test -n "$vinfo" && \
7303 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
8875 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
73048876
73058877 test -n "$release" && \
7306 func_warning "\`-release' is ignored for convenience libraries"
8878 func_warning "'-release' is ignored for convenience libraries"
73078879 else
73088880
73098881 # Parse the version information argument.
7310 save_ifs="$IFS"; IFS=':'
8882 save_ifs=$IFS; IFS=:
73118883 set dummy $vinfo 0 0 0
73128884 shift
7313 IFS="$save_ifs"
8885 IFS=$save_ifs
73148886
73158887 test -n "$7" && \
7316 func_fatal_help "too many parameters to \`-version-info'"
8888 func_fatal_help "too many parameters to '-version-info'"
73178889
73188890 # convert absolute version numbers to libtool ages
73198891 # this retains compatibility with .la files and attempts
73218893
73228894 case $vinfo_number in
73238895 yes)
7324 number_major="$1"
7325 number_minor="$2"
7326 number_revision="$3"
8896 number_major=$1
8897 number_minor=$2
8898 number_revision=$3
73278899 #
73288900 # There are really only two kinds -- those that
73298901 # use the current revision as the major version
73308902 # and those that subtract age and use age as
73318903 # a minor version. But, then there is irix
7332 # which has an extra 1 added just for fun
8904 # that has an extra 1 added just for fun
73338905 #
73348906 case $version_type in
73358907 # correct linux to gnu/linux during the next big refactor
7336 darwin|linux|osf|windows|none)
8908 darwin|freebsd-elf|linux|osf|windows|none)
73378909 func_arith $number_major + $number_minor
73388910 current=$func_arith_result
7339 age="$number_minor"
7340 revision="$number_revision"
8911 age=$number_minor
8912 revision=$number_revision
73418913 ;;
7342 freebsd-aout|freebsd-elf|qnx|sunos)
7343 current="$number_major"
7344 revision="$number_minor"
7345 age="0"
8914 freebsd-aout|qnx|sunos)
8915 current=$number_major
8916 revision=$number_minor
8917 age=0
73468918 ;;
73478919 irix|nonstopux)
73488920 func_arith $number_major + $number_minor
73498921 current=$func_arith_result
7350 age="$number_minor"
7351 revision="$number_minor"
8922 age=$number_minor
8923 revision=$number_minor
73528924 lt_irix_increment=no
73538925 ;;
73548926 *)
7355 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
8927 func_fatal_configuration "$modename: unknown library version type '$version_type'"
73568928 ;;
73578929 esac
73588930 ;;
73598931 no)
7360 current="$1"
7361 revision="$2"
7362 age="$3"
8932 current=$1
8933 revision=$2
8934 age=$3
73638935 ;;
73648936 esac
73658937
73678939 case $current in
73688940 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]) ;;
73698941 *)
7370 func_error "CURRENT \`$current' must be a nonnegative integer"
7371 func_fatal_error "\`$vinfo' is not valid version information"
8942 func_error "CURRENT '$current' must be a nonnegative integer"
8943 func_fatal_error "'$vinfo' is not valid version information"
73728944 ;;
73738945 esac
73748946
73758947 case $revision in
73768948 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]) ;;
73778949 *)
7378 func_error "REVISION \`$revision' must be a nonnegative integer"
7379 func_fatal_error "\`$vinfo' is not valid version information"
8950 func_error "REVISION '$revision' must be a nonnegative integer"
8951 func_fatal_error "'$vinfo' is not valid version information"
73808952 ;;
73818953 esac
73828954
73838955 case $age in
73848956 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]) ;;
73858957 *)
7386 func_error "AGE \`$age' must be a nonnegative integer"
7387 func_fatal_error "\`$vinfo' is not valid version information"
8958 func_error "AGE '$age' must be a nonnegative integer"
8959 func_fatal_error "'$vinfo' is not valid version information"
73888960 ;;
73898961 esac
73908962
73918963 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"
8964 func_error "AGE '$age' is greater than the current interface number '$current'"
8965 func_fatal_error "'$vinfo' is not valid version information"
73948966 fi
73958967
73968968 # Calculate the version variables.
74058977 # verstring for coding it into the library header
74068978 func_arith $current - $age
74078979 major=.$func_arith_result
7408 versuffix="$major.$age.$revision"
8980 versuffix=$major.$age.$revision
74098981 # Darwin ld doesn't like 0 for these options...
74108982 func_arith $current + 1
74118983 minor_current=$func_arith_result
7412 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8984 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
74138985 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8986 # On Darwin other compilers
8987 case $CC in
8988 nagfor*)
8989 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8990 ;;
8991 *)
8992 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8993 ;;
8994 esac
74148995 ;;
74158996
74168997 freebsd-aout)
7417 major=".$current"
7418 versuffix=".$current.$revision";
8998 major=.$current
8999 versuffix=.$current.$revision
74199000 ;;
74209001
74219002 freebsd-elf)
7422 major=".$current"
7423 versuffix=".$current"
9003 func_arith $current - $age
9004 major=.$func_arith_result
9005 versuffix=$major.$age.$revision
74249006 ;;
74259007
74269008 irix | nonstopux)
7427 if test "X$lt_irix_increment" = "Xno"; then
9009 if test no = "$lt_irix_increment"; then
74289010 func_arith $current - $age
74299011 else
74309012 func_arith $current - $age + 1
74359017 nonstopux) verstring_prefix=nonstopux ;;
74369018 *) verstring_prefix=sgi ;;
74379019 esac
7438 verstring="$verstring_prefix$major.$revision"
9020 verstring=$verstring_prefix$major.$revision
74399021
74409022 # Add in all the interfaces that we are compatible with.
74419023 loop=$revision
7442 while test "$loop" -ne 0; do
9024 while test 0 -ne "$loop"; do
74439025 func_arith $revision - $loop
74449026 iface=$func_arith_result
74459027 func_arith $loop - 1
74469028 loop=$func_arith_result
7447 verstring="$verstring_prefix$major.$iface:$verstring"
9029 verstring=$verstring_prefix$major.$iface:$verstring
74489030 done
74499031
7450 # Before this point, $major must not contain `.'.
9032 # Before this point, $major must not contain '.'.
74519033 major=.$major
7452 versuffix="$major.$revision"
9034 versuffix=$major.$revision
74539035 ;;
74549036
74559037 linux) # correct to gnu/linux during the next big refactor
74569038 func_arith $current - $age
74579039 major=.$func_arith_result
7458 versuffix="$major.$age.$revision"
9040 versuffix=$major.$age.$revision
74599041 ;;
74609042
74619043 osf)
74629044 func_arith $current - $age
74639045 major=.$func_arith_result
7464 versuffix=".$current.$age.$revision"
7465 verstring="$current.$age.$revision"
9046 versuffix=.$current.$age.$revision
9047 verstring=$current.$age.$revision
74669048
74679049 # Add in all the interfaces that we are compatible with.
74689050 loop=$age
7469 while test "$loop" -ne 0; do
9051 while test 0 -ne "$loop"; do
74709052 func_arith $current - $loop
74719053 iface=$func_arith_result
74729054 func_arith $loop - 1
74739055 loop=$func_arith_result
7474 verstring="$verstring:${iface}.0"
9056 verstring=$verstring:$iface.0
74759057 done
74769058
74779059 # Make executables depend on our current version.
7478 func_append verstring ":${current}.0"
9060 func_append verstring ":$current.0"
74799061 ;;
74809062
74819063 qnx)
7482 major=".$current"
7483 versuffix=".$current"
9064 major=.$current
9065 versuffix=.$current
74849066 ;;
74859067
9068 sco)
9069 major=.$current
9070 versuffix=.$current
9071 ;;
9072
74869073 sunos)
7487 major=".$current"
7488 versuffix=".$current.$revision"
9074 major=.$current
9075 versuffix=.$current.$revision
74899076 ;;
74909077
74919078 windows)
74929079 # Use '-' rather than '.', since we only want one
7493 # extension on DOS 8.3 filesystems.
9080 # extension on DOS 8.3 file systems.
74949081 func_arith $current - $age
74959082 major=$func_arith_result
7496 versuffix="-$major"
9083 versuffix=-$major
74979084 ;;
74989085
74999086 *)
7500 func_fatal_configuration "unknown library version type \`$version_type'"
9087 func_fatal_configuration "unknown library version type '$version_type'"
75019088 ;;
75029089 esac
75039090
75119098 verstring=
75129099 ;;
75139100 *)
7514 verstring="0.0"
9101 verstring=0.0
75159102 ;;
75169103 esac
7517 if test "$need_version" = no; then
9104 if test no = "$need_version"; then
75189105 versuffix=
75199106 else
7520 versuffix=".0.0"
9107 versuffix=.0.0
75219108 fi
75229109 fi
75239110
75249111 # Remove version info from name if versioning should be avoided
7525 if test "$avoid_version" = yes && test "$need_version" = no; then
9112 if test yes,no = "$avoid_version,$need_version"; then
75269113 major=
75279114 versuffix=
7528 verstring=""
9115 verstring=
75299116 fi
75309117
75319118 # 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
9119 if test yes = "$allow_undefined"; then
9120 if test unsupported = "$allow_undefined_flag"; then
9121 if test yes = "$build_old_libs"; then
9122 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9123 build_libtool_libs=no
9124 else
9125 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9126 fi
75379127 fi
75389128 else
75399129 # Don't allow undefined symbols.
7540 allow_undefined_flag="$no_undefined_flag"
9130 allow_undefined_flag=$no_undefined_flag
75419131 fi
75429132
75439133 fi
75449134
7545 func_generate_dlsyms "$libname" "$libname" "yes"
9135 func_generate_dlsyms "$libname" "$libname" :
75469136 func_append libobjs " $symfileobj"
7547 test "X$libobjs" = "X " && libobjs=
7548
7549 if test "$opt_mode" != relink; then
9137 test " " = "$libobjs" && libobjs=
9138
9139 if test relink != "$opt_mode"; then
75509140 # Remove our outputs, but don't remove object files since they
75519141 # may have been created when compiling PIC objects.
75529142 removelist=
75559145 case $p in
75569146 *.$objext | *.gcno)
75579147 ;;
7558 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7559 if test "X$precious_files_regex" != "X"; then
9148 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9149 if test -n "$precious_files_regex"; then
75609150 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
75619151 then
75629152 continue
75729162 fi
75739163
75749164 # Now set the variables for building old libraries.
7575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
9165 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
75769166 func_append oldlibs " $output_objdir/$libname.$libext"
75779167
75789168 # Transform .lo files to .o files.
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
9169 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
75809170 fi
75819171
75829172 # Eliminate all temporary directories.
75979187 *) func_append finalize_rpath " $libdir" ;;
75989188 esac
75999189 done
7600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
9190 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
76019191 dependency_libs="$temp_xrpath $dependency_libs"
76029192 fi
76039193 fi
76049194
76059195 # Make sure dlfiles contains only unique files that won't be dlpreopened
7606 old_dlfiles="$dlfiles"
9196 old_dlfiles=$dlfiles
76079197 dlfiles=
76089198 for lib in $old_dlfiles; do
76099199 case " $dlprefiles $dlfiles " in
76139203 done
76149204
76159205 # Make sure dlprefiles contains only unique files
7616 old_dlprefiles="$dlprefiles"
9206 old_dlprefiles=$dlprefiles
76179207 dlprefiles=
76189208 for lib in $old_dlprefiles; do
76199209 case "$dlprefiles " in
76229212 esac
76239213 done
76249214
7625 if test "$build_libtool_libs" = yes; then
9215 if test yes = "$build_libtool_libs"; then
76269216 if test -n "$rpath"; then
76279217 case $host in
76289218 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
76469236 ;;
76479237 *)
76489238 # Add libc to deplibs on all other systems if necessary.
7649 if test "$build_libtool_need_lc" = "yes"; then
9239 if test yes = "$build_libtool_need_lc"; then
76509240 func_append deplibs " -lc"
76519241 fi
76529242 ;;
76629252 # I'm not sure if I'm treating the release correctly. I think
76639253 # release should show up in the -l (ie -lgmp5) so we don't want to
76649254 # add it in twice. Is that correct?
7665 release=""
7666 versuffix=""
7667 major=""
9255 release=
9256 versuffix=
9257 major=
76689258 newdeplibs=
76699259 droppeddeps=no
76709260 case $deplibs_check_method in
76939283 -l*)
76949284 func_stripname -l '' "$i"
76959285 name=$func_stripname_result
7696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9286 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
76979287 case " $predeps $postdeps " in
76989288 *" $i "*)
76999289 func_append newdeplibs " $i"
7700 i=""
9290 i=
77019291 ;;
77029292 esac
77039293 fi
7704 if test -n "$i" ; then
9294 if test -n "$i"; then
77059295 libname=`eval "\\$ECHO \"$libname_spec\""`
77069296 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77079297 set dummy $deplib_matches; shift
77089298 deplib_match=$1
7709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9299 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77109300 func_append newdeplibs " $i"
77119301 else
77129302 droppeddeps=yes
77369326 $opt_dry_run || $RM conftest
77379327 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
77389328 ldd_output=`ldd conftest`
7739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9329 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77409330 case " $predeps $postdeps " in
77419331 *" $i "*)
77429332 func_append newdeplibs " $i"
7743 i=""
9333 i=
77449334 ;;
77459335 esac
77469336 fi
7747 if test -n "$i" ; then
9337 if test -n "$i"; then
77489338 libname=`eval "\\$ECHO \"$libname_spec\""`
77499339 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77509340 set dummy $deplib_matches; shift
77519341 deplib_match=$1
7752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9342 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77539343 func_append newdeplibs " $i"
77549344 else
77559345 droppeddeps=yes
77869376 -l*)
77879377 func_stripname -l '' "$a_deplib"
77889378 name=$func_stripname_result
7789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9379 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77909380 case " $predeps $postdeps " in
77919381 *" $a_deplib "*)
77929382 func_append newdeplibs " $a_deplib"
7793 a_deplib=""
9383 a_deplib=
77949384 ;;
77959385 esac
77969386 fi
7797 if test -n "$a_deplib" ; then
9387 if test -n "$a_deplib"; then
77989388 libname=`eval "\\$ECHO \"$libname_spec\""`
77999389 if test -n "$file_magic_glob"; then
78009390 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
78019391 else
78029392 libnameglob=$libname
78039393 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
9394 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
78059395 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7806 if test "$want_nocaseglob" = yes; then
9396 if test yes = "$want_nocaseglob"; then
78079397 shopt -s nocaseglob
78089398 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
78099399 $nocaseglob
78219411 # We might still enter an endless loop, since a link
78229412 # loop can be closed while we follow links,
78239413 # but so what?
7824 potlib="$potent_lib"
9414 potlib=$potent_lib
78259415 while test -h "$potlib" 2>/dev/null; do
7826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
9416 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
78279417 case $potliblink in
7828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
9418 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9419 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
78309420 esac
78319421 done
78329422 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78339423 $SED -e 10q |
78349424 $EGREP "$file_magic_regex" > /dev/null; then
78359425 func_append newdeplibs " $a_deplib"
7836 a_deplib=""
9426 a_deplib=
78379427 break 2
78389428 fi
78399429 done
78409430 done
78419431 fi
7842 if test -n "$a_deplib" ; then
9432 if test -n "$a_deplib"; then
78439433 droppeddeps=yes
78449434 echo
78459435 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78479437 echo "*** you link to this library. But I can only do this if you have a"
78489438 echo "*** shared version of the library, which you do not appear to have"
78499439 echo "*** because I did check the linker path looking for a file starting"
7850 if test -z "$potlib" ; then
9440 if test -z "$potlib"; then
78519441 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78529442 else
78539443 $ECHO "*** with $libname and none of the candidates passed a file format test"
78709460 -l*)
78719461 func_stripname -l '' "$a_deplib"
78729462 name=$func_stripname_result
7873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9463 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
78749464 case " $predeps $postdeps " in
78759465 *" $a_deplib "*)
78769466 func_append newdeplibs " $a_deplib"
7877 a_deplib=""
9467 a_deplib=
78789468 ;;
78799469 esac
78809470 fi
7881 if test -n "$a_deplib" ; then
9471 if test -n "$a_deplib"; then
78829472 libname=`eval "\\$ECHO \"$libname_spec\""`
78839473 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
78849474 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78859475 for potent_lib in $potential_libs; do
7886 potlib="$potent_lib" # see symlink-check above in file_magic test
9476 potlib=$potent_lib # see symlink-check above in file_magic test
78879477 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
78889478 $EGREP "$match_pattern_regex" > /dev/null; then
78899479 func_append newdeplibs " $a_deplib"
7890 a_deplib=""
9480 a_deplib=
78919481 break 2
78929482 fi
78939483 done
78949484 done
78959485 fi
7896 if test -n "$a_deplib" ; then
9486 if test -n "$a_deplib"; then
78979487 droppeddeps=yes
78989488 echo
78999489 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
79019491 echo "*** you link to this library. But I can only do this if you have a"
79029492 echo "*** shared version of the library, which you do not appear to have"
79039493 echo "*** because I did check the linker path looking for a file starting"
7904 if test -z "$potlib" ; then
9494 if test -z "$potlib"; then
79059495 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
79069496 else
79079497 $ECHO "*** with $libname and none of the candidates passed a file format test"
79179507 done # Gone through all deplibs.
79189508 ;;
79199509 none | unknown | *)
7920 newdeplibs=""
9510 newdeplibs=
79219511 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
9512 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9513 for i in $predeps $postdeps; do
79249514 # can't use Xsed below, because $i might contain '/'
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
9515 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
79269516 done
79279517 fi
79289518 case $tmp_deplibs in
79299519 *[!\ \ ]*)
79309520 echo
7931 if test "X$deplibs_check_method" = "Xnone"; then
9521 if test none = "$deplibs_check_method"; then
79329522 echo "*** Warning: inter-library dependencies are not supported in this platform."
79339523 else
79349524 echo "*** Warning: inter-library dependencies are not known to be supported."
79529542 ;;
79539543 esac
79549544
7955 if test "$droppeddeps" = yes; then
7956 if test "$module" = yes; then
9545 if test yes = "$droppeddeps"; then
9546 if test yes = "$module"; then
79579547 echo
79589548 echo "*** Warning: libtool could not satisfy all declared inter-library"
79599549 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
79629552 if test -z "$global_symbol_pipe"; then
79639553 echo
79649554 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"
9555 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
79669556 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
9557 echo "*** 'nm' from GNU binutils and a full rebuild may help."
79689558 fi
7969 if test "$build_old_libs" = no; then
7970 oldlibs="$output_objdir/$libname.$libext"
9559 if test no = "$build_old_libs"; then
9560 oldlibs=$output_objdir/$libname.$libext
79719561 build_libtool_libs=module
79729562 build_old_libs=yes
79739563 else
79789568 echo "*** automatically added whenever a program is linked with this library"
79799569 echo "*** or is declared to -dlopen it."
79809570
7981 if test "$allow_undefined" = no; then
9571 if test no = "$allow_undefined"; then
79829572 echo
79839573 echo "*** Since this library must not contain undefined symbols,"
79849574 echo "*** because either the platform does not support them or"
79859575 echo "*** it was explicitly requested with -no-undefined,"
79869576 echo "*** libtool will only create a static version of it."
7987 if test "$build_old_libs" = no; then
7988 oldlibs="$output_objdir/$libname.$libext"
9577 if test no = "$build_old_libs"; then
9578 oldlibs=$output_objdir/$libname.$libext
79899579 build_libtool_libs=module
79909580 build_old_libs=yes
79919581 else
80319621 *) func_append new_libs " $deplib" ;;
80329622 esac
80339623 done
8034 deplibs="$new_libs"
9624 deplibs=$new_libs
80359625
80369626 # All the library-specific variables (install_libdir is set above).
80379627 library_names=
80399629 dlname=
80409630
80419631 # 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.
9632 if test yes = "$build_libtool_libs"; then
9633 # Remove $wl instances when linking with ld.
80449634 # FIXME: should test the right _cmds variable.
80459635 case $archive_cmds in
80469636 *\$LD\ *) wl= ;;
80479637 esac
8048 if test "$hardcode_into_libs" = yes; then
9638 if test yes = "$hardcode_into_libs"; then
80499639 # Hardcode the library paths
80509640 hardcode_libdirs=
80519641 dep_rpath=
8052 rpath="$finalize_rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
9642 rpath=$finalize_rpath
9643 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
80549644 for libdir in $rpath; do
80559645 if test -n "$hardcode_libdir_flag_spec"; then
80569646 if test -n "$hardcode_libdir_separator"; then
80579647 func_replace_sysroot "$libdir"
80589648 libdir=$func_replace_sysroot_result
80599649 if test -z "$hardcode_libdirs"; then
8060 hardcode_libdirs="$libdir"
9650 hardcode_libdirs=$libdir
80619651 else
80629652 # Just accumulate the unique libdirs.
80639653 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
80829672 # Substitute the hardcoded libdirs into the rpath.
80839673 if test -n "$hardcode_libdir_separator" &&
80849674 test -n "$hardcode_libdirs"; then
8085 libdir="$hardcode_libdirs"
9675 libdir=$hardcode_libdirs
80869676 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80879677 fi
80889678 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80969686 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
80979687 fi
80989688
8099 shlibpath="$finalize_shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
9689 shlibpath=$finalize_shlibpath
9690 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
81019691 if test -n "$shlibpath"; then
81029692 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
81039693 fi
81079697 eval library_names=\"$library_names_spec\"
81089698 set dummy $library_names
81099699 shift
8110 realname="$1"
9700 realname=$1
81119701 shift
81129702
81139703 if test -n "$soname_spec"; then
81149704 eval soname=\"$soname_spec\"
81159705 else
8116 soname="$realname"
9706 soname=$realname
81179707 fi
81189708 if test -z "$dlname"; then
81199709 dlname=$soname
81209710 fi
81219711
8122 lib="$output_objdir/$realname"
9712 lib=$output_objdir/$realname
81239713 linknames=
81249714 for link
81259715 do
81339723 delfiles=
81349724 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81359725 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8136 export_symbols="$output_objdir/$libname.uexp"
9726 export_symbols=$output_objdir/$libname.uexp
81379727 func_append delfiles " $export_symbols"
81389728 fi
81399729
81429732 cygwin* | mingw* | cegcc*)
81439733 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
81449734 # exporting using user supplied symfile
8145 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
9735 func_dll_def_p "$export_symbols" || {
81469736 # and it's NOT already a .def file. Must figure out
81479737 # which of the given symbols are data symbols and tag
81489738 # them as such. So, trigger use of export_symbols_cmds.
81499739 # export_symbols gets reassigned inside the "prepare
81509740 # the list of exported symbols" if statement, so the
81519741 # include_expsyms logic still works.
8152 orig_export_symbols="$export_symbols"
9742 orig_export_symbols=$export_symbols
81539743 export_symbols=
81549744 always_export_symbols=yes
8155 fi
9745 }
81569746 fi
81579747 ;;
81589748 esac
81599749
81609750 # Prepare the list of exported symbols
81619751 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"
9752 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9753 func_verbose "generating symbol list for '$libname.la'"
9754 export_symbols=$output_objdir/$libname.exp
81659755 $opt_dry_run || $RM $export_symbols
81669756 cmds=$export_symbols_cmds
8167 save_ifs="$IFS"; IFS='~'
9757 save_ifs=$IFS; IFS='~'
81689758 for cmd1 in $cmds; do
8169 IFS="$save_ifs"
9759 IFS=$save_ifs
81709760 # Take the normal branch if the nm_file_list_spec branch
81719761 # doesn't work or if tool conversion is not needed.
81729762 case $nm_file_list_spec~$to_tool_file_cmd in
81809770 try_normal_branch=no
81819771 ;;
81829772 esac
8183 if test "$try_normal_branch" = yes \
9773 if test yes = "$try_normal_branch" \
81849774 && { test "$len" -lt "$max_cmd_len" \
81859775 || test "$max_cmd_len" -le -1; }
81869776 then
81919781 output_la=$func_basename_result
81929782 save_libobjs=$libobjs
81939783 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
9784 output=$output_objdir/$output_la.nm
81959785 func_to_tool_file "$output"
81969786 libobjs=$nm_file_list_spec$func_to_tool_file_result
81979787 func_append delfiles " $output"
82149804 break
82159805 fi
82169806 done
8217 IFS="$save_ifs"
8218 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
9807 IFS=$save_ifs
9808 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
82199809 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
82209810 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
82219811 fi
82239813 fi
82249814
82259815 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"
9816 tmp_export_symbols=$export_symbols
9817 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
82289818 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
82299819 fi
82309820
8231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
9821 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
82329822 # 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"
9823 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
82349824 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8235 # 's' commands which not all seds can handle. GNU sed should be fine
9825 # 's' commands, which not all seds can handle. GNU sed should be fine
82369826 # though. Also, the filter scales superlinearly with the number of
82379827 # global variables. join(1) would be nice here, but unfortunately
82389828 # isn't a blessed tool.
82519841 ;;
82529842 esac
82539843 done
8254 deplibs="$tmp_deplibs"
9844 deplibs=$tmp_deplibs
82559845
82569846 if test -n "$convenience"; then
82579847 if test -n "$whole_archive_flag_spec" &&
8258 test "$compiler_needs_object" = yes &&
9848 test yes = "$compiler_needs_object" &&
82599849 test -z "$libobjs"; then
82609850 # extract the archives, so we have objects to list.
82619851 # TODO: could optimize this to just extract one archive.
82669856 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
82679857 test "X$libobjs" = "X " && libobjs=
82689858 else
8269 gentop="$output_objdir/${outputname}x"
9859 gentop=$output_objdir/${outputname}x
82709860 func_append generated " $gentop"
82719861
82729862 func_extract_archives $gentop $convenience
82759865 fi
82769866 fi
82779867
8278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
9868 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
82799869 eval flag=\"$thread_safe_flag_spec\"
82809870 func_append linker_flags " $flag"
82819871 fi
82829872
82839873 # Make a backup of the uninstalled library when relinking
8284 if test "$opt_mode" = relink; then
9874 if test relink = "$opt_mode"; then
82859875 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82869876 fi
82879877
82889878 # Do each of the archive commands.
8289 if test "$module" = yes && test -n "$module_cmds" ; then
9879 if test yes = "$module" && test -n "$module_cmds"; then
82909880 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
82919881 eval test_cmds=\"$module_expsym_cmds\"
82929882 cmds=$module_expsym_cmds
83049894 fi
83059895 fi
83069896
8307 if test "X$skipped_export" != "X:" &&
9897 if test : != "$skipped_export" &&
83089898 func_len " $test_cmds" &&
83099899 len=$func_len_result &&
83109900 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
83379927 last_robj=
83389928 k=1
83399929
8340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8341 output=${output_objdir}/${output_la}.lnkscript
9930 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9931 output=$output_objdir/$output_la.lnkscript
83429932 func_verbose "creating GNU ld script: $output"
83439933 echo 'INPUT (' > $output
83449934 for obj in $save_libobjs
83509940 func_append delfiles " $output"
83519941 func_to_tool_file "$output"
83529942 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
9943 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9944 output=$output_objdir/$output_la.lnk
83559945 func_verbose "creating linker input file list: $output"
83569946 : > $output
83579947 set x $save_libobjs
83589948 shift
83599949 firstobj=
8360 if test "$compiler_needs_object" = yes; then
9950 if test yes = "$compiler_needs_object"; then
83619951 firstobj="$1 "
83629952 shift
83639953 fi
83729962 else
83739963 if test -n "$save_libobjs"; then
83749964 func_verbose "creating reloadable object files..."
8375 output=$output_objdir/$output_la-${k}.$objext
9965 output=$output_objdir/$output_la-$k.$objext
83769966 eval test_cmds=\"$reload_cmds\"
83779967 func_len " $test_cmds"
83789968 len0=$func_len_result
83849974 func_len " $obj"
83859975 func_arith $len + $func_len_result
83869976 len=$func_arith_result
8387 if test "X$objlist" = X ||
9977 if test -z "$objlist" ||
83889978 test "$len" -lt "$max_cmd_len"; then
83899979 func_append objlist " $obj"
83909980 else
83919981 # The command $test_cmds is almost too long, add a
83929982 # command to the queue.
8393 if test "$k" -eq 1 ; then
9983 if test 1 -eq "$k"; then
83949984 # The first file doesn't have a previous command to add.
83959985 reload_objs=$objlist
83969986 eval concat_cmds=\"$reload_cmds\"
84009990 reload_objs="$objlist $last_robj"
84019991 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
84029992 fi
8403 last_robj=$output_objdir/$output_la-${k}.$objext
9993 last_robj=$output_objdir/$output_la-$k.$objext
84049994 func_arith $k + 1
84059995 k=$func_arith_result
8406 output=$output_objdir/$output_la-${k}.$objext
9996 output=$output_objdir/$output_la-$k.$objext
84079997 objlist=" $obj"
84089998 func_len " $last_robj"
84099999 func_arith $len0 + $func_len_result
841510005 # files will link in the last one created.
841610006 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
841710007 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
10008 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
841910009 if test -n "$last_robj"; then
8420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
10010 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
842110011 fi
842210012 func_append delfiles " $output"
842310013
842510015 output=
842610016 fi
842710017
8428 if ${skipped_export-false}; then
8429 func_verbose "generating symbol list for \`$libname.la'"
8430 export_symbols="$output_objdir/$libname.exp"
10018 ${skipped_export-false} && {
10019 func_verbose "generating symbol list for '$libname.la'"
10020 export_symbols=$output_objdir/$libname.exp
843110021 $opt_dry_run || $RM $export_symbols
843210022 libobjs=$output
843310023 # Append the command to create the export file.
843610026 if test -n "$last_robj"; then
843710027 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
843810028 fi
8439 fi
10029 }
844010030
844110031 test -n "$save_libobjs" &&
844210032 func_verbose "creating a temporary reloadable object file: $output"
844310033
844410034 # Loop through the commands generated above and execute them.
8445 save_ifs="$IFS"; IFS='~'
10035 save_ifs=$IFS; IFS='~'
844610036 for cmd in $concat_cmds; do
8447 IFS="$save_ifs"
8448 $opt_silent || {
10037 IFS=$save_ifs
10038 $opt_quiet || {
844910039 func_quote_for_expand "$cmd"
845010040 eval "func_echo $func_quote_for_expand_result"
845110041 }
845310043 lt_exit=$?
845410044
845510045 # Restore the uninstalled library and exit
8456 if test "$opt_mode" = relink; then
10046 if test relink = "$opt_mode"; then
845710047 ( cd "$output_objdir" && \
845810048 $RM "${realname}T" && \
845910049 $MV "${realname}U" "$realname" )
846210052 exit $lt_exit
846310053 }
846410054 done
8465 IFS="$save_ifs"
10055 IFS=$save_ifs
846610056
846710057 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
846810058 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
847010060 fi
847110061 fi
847210062
8473 if ${skipped_export-false}; then
10063 ${skipped_export-false} && {
847410064 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"
10065 tmp_export_symbols=$export_symbols
10066 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
847710067 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
847810068 fi
847910069
848010070 if test -n "$orig_export_symbols"; then
848110071 # 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"
10072 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
848310073 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8484 # 's' commands which not all seds can handle. GNU sed should be fine
10074 # 's' commands, which not all seds can handle. GNU sed should be fine
848510075 # though. Also, the filter scales superlinearly with the number of
848610076 # global variables. join(1) would be nice here, but unfortunately
848710077 # isn't a blessed tool.
849010080 export_symbols=$output_objdir/$libname.def
849110081 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
849210082 fi
8493 fi
10083 }
849410084
849510085 libobjs=$output
849610086 # Restore the value of output.
850410094 # value of $libobjs for piecewise linking.
850510095
850610096 # Do each of the archive commands.
8507 if test "$module" = yes && test -n "$module_cmds" ; then
10097 if test yes = "$module" && test -n "$module_cmds"; then
850810098 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
850910099 cmds=$module_expsym_cmds
851010100 else
852610116
852710117 # Add any objects from preloaded convenience libraries
852810118 if test -n "$dlprefiles"; then
8529 gentop="$output_objdir/${outputname}x"
10119 gentop=$output_objdir/${outputname}x
853010120 func_append generated " $gentop"
853110121
853210122 func_extract_archives $gentop $dlprefiles
853410124 test "X$libobjs" = "X " && libobjs=
853510125 fi
853610126
8537 save_ifs="$IFS"; IFS='~'
10127 save_ifs=$IFS; IFS='~'
853810128 for cmd in $cmds; do
8539 IFS="$save_ifs"
10129 IFS=$sp$nl
854010130 eval cmd=\"$cmd\"
8541 $opt_silent || {
10131 IFS=$save_ifs
10132 $opt_quiet || {
854210133 func_quote_for_expand "$cmd"
854310134 eval "func_echo $func_quote_for_expand_result"
854410135 }
854610137 lt_exit=$?
854710138
854810139 # Restore the uninstalled library and exit
8549 if test "$opt_mode" = relink; then
10140 if test relink = "$opt_mode"; then
855010141 ( cd "$output_objdir" && \
855110142 $RM "${realname}T" && \
855210143 $MV "${realname}U" "$realname" )
855510146 exit $lt_exit
855610147 }
855710148 done
8558 IFS="$save_ifs"
10149 IFS=$save_ifs
855910150
856010151 # Restore the uninstalled library and exit
8561 if test "$opt_mode" = relink; then
10152 if test relink = "$opt_mode"; then
856210153 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
856310154
856410155 if test -n "$convenience"; then
857810169 done
857910170
858010171 # If -module or -export-dynamic was specified, set the dlname.
8581 if test "$module" = yes || test "$export_dynamic" = yes; then
10172 if test yes = "$module" || test yes = "$export_dynamic"; then
858210173 # On all known operating systems, these are identical.
8583 dlname="$soname"
10174 dlname=$soname
858410175 fi
858510176 fi
858610177 ;;
858710178
858810179 obj)
8589 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8590 func_warning "\`-dlopen' is ignored for objects"
10180 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10181 func_warning "'-dlopen' is ignored for objects"
859110182 fi
859210183
859310184 case " $deplibs" in
859410185 *\ -l* | *\ -L*)
8595 func_warning "\`-l' and \`-L' are ignored for objects" ;;
10186 func_warning "'-l' and '-L' are ignored for objects" ;;
859610187 esac
859710188
859810189 test -n "$rpath" && \
8599 func_warning "\`-rpath' is ignored for objects"
10190 func_warning "'-rpath' is ignored for objects"
860010191
860110192 test -n "$xrpath" && \
8602 func_warning "\`-R' is ignored for objects"
10193 func_warning "'-R' is ignored for objects"
860310194
860410195 test -n "$vinfo" && \
8605 func_warning "\`-version-info' is ignored for objects"
10196 func_warning "'-version-info' is ignored for objects"
860610197
860710198 test -n "$release" && \
8608 func_warning "\`-release' is ignored for objects"
10199 func_warning "'-release' is ignored for objects"
860910200
861010201 case $output in
861110202 *.lo)
861210203 test -n "$objs$old_deplibs" && \
8613 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
10204 func_fatal_error "cannot build library object '$output' from non-libtool objects"
861410205
861510206 libobj=$output
861610207 func_lo2o "$libobj"
861810209 ;;
861910210 *)
862010211 libobj=
8621 obj="$output"
10212 obj=$output
862210213 ;;
862310214 esac
862410215
863110222 # the extraction.
863210223 reload_conv_objs=
863310224 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
10225 # if reload_cmds runs $LD directly, get rid of -Wl from
10226 # whole_archive_flag_spec and hope we can get by with turning comma
10227 # into space.
10228 case $reload_cmds in
10229 *\$LD[\ \$]*) wl= ;;
10230 esac
863910231 if test -n "$convenience"; then
864010232 if test -n "$whole_archive_flag_spec"; then
864110233 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10234 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10235 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
864310236 else
8644 gentop="$output_objdir/${obj}x"
10237 gentop=$output_objdir/${obj}x
864510238 func_append generated " $gentop"
864610239
864710240 func_extract_archives $gentop $convenience
865010243 fi
865110244
865210245 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
10246 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
865410247
865510248 # 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"
10249 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10250
10251 output=$obj
865910252 func_execute_cmds "$reload_cmds" 'exit $?'
866010253
866110254 # Exit if we aren't doing a library object file.
866710260 exit $EXIT_SUCCESS
866810261 fi
866910262
8670 if test "$build_libtool_libs" != yes; then
10263 test yes = "$build_libtool_libs" || {
867110264 if test -n "$gentop"; then
867210265 func_show_eval '${RM}r "$gentop"'
867310266 fi
867710270 # $show "echo timestamp > $libobj"
867810271 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
867910272 exit $EXIT_SUCCESS
8680 fi
8681
8682 if test -n "$pic_flag" || test "$pic_mode" != default; then
10273 }
10274
10275 if test -n "$pic_flag" || test default != "$pic_mode"; then
868310276 # Only do commands if we really have different PIC objects.
868410277 reload_objs="$libobjs $reload_conv_objs"
8685 output="$libobj"
10278 output=$libobj
868610279 func_execute_cmds "$reload_cmds" 'exit $?'
868710280 fi
868810281
869910292 output=$func_stripname_result.exe;;
870010293 esac
870110294 test -n "$vinfo" && \
8702 func_warning "\`-version-info' is ignored for programs"
10295 func_warning "'-version-info' is ignored for programs"
870310296
870410297 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."
10298 func_warning "'-release' is ignored for programs"
10299
10300 $preload \
10301 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10302 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
871210303
871310304 case $host in
871410305 *-*-rhapsody* | *-*-darwin1.[012])
872210313 *-*-darwin*)
872310314 # Don't allow lazy linking, it breaks C++ global constructors
872410315 # But is supposedly fixed on 10.4 or later (yay!).
8725 if test "$tagname" = CXX ; then
10316 if test CXX = "$tagname"; then
872610317 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
872710318 10.[0123])
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
10319 func_append compile_command " $wl-bind_at_load"
10320 func_append finalize_command " $wl-bind_at_load"
873010321 ;;
873110322 esac
873210323 fi
876210353 *) func_append new_libs " $deplib" ;;
876310354 esac
876410355 done
8765 compile_deplibs="$new_libs"
10356 compile_deplibs=$new_libs
876610357
876710358
876810359 func_append compile_command " $compile_deplibs"
878610377 if test -n "$hardcode_libdir_flag_spec"; then
878710378 if test -n "$hardcode_libdir_separator"; then
878810379 if test -z "$hardcode_libdirs"; then
8789 hardcode_libdirs="$libdir"
10380 hardcode_libdirs=$libdir
879010381 else
879110382 # Just accumulate the unique libdirs.
879210383 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
880910400 fi
881010401 case $host in
881110402 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8812 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
10403 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
881310404 case :$dllsearchpath: in
881410405 *":$libdir:"*) ;;
881510406 ::) dllsearchpath=$libdir;;
882610417 # Substitute the hardcoded libdirs into the rpath.
882710418 if test -n "$hardcode_libdir_separator" &&
882810419 test -n "$hardcode_libdirs"; then
8829 libdir="$hardcode_libdirs"
10420 libdir=$hardcode_libdirs
883010421 eval rpath=\" $hardcode_libdir_flag_spec\"
883110422 fi
8832 compile_rpath="$rpath"
10423 compile_rpath=$rpath
883310424
883410425 rpath=
883510426 hardcode_libdirs=
883710428 if test -n "$hardcode_libdir_flag_spec"; then
883810429 if test -n "$hardcode_libdir_separator"; then
883910430 if test -z "$hardcode_libdirs"; then
8840 hardcode_libdirs="$libdir"
10431 hardcode_libdirs=$libdir
884110432 else
884210433 # Just accumulate the unique libdirs.
884310434 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
886210453 # Substitute the hardcoded libdirs into the rpath.
886310454 if test -n "$hardcode_libdir_separator" &&
886410455 test -n "$hardcode_libdirs"; then
8865 libdir="$hardcode_libdirs"
10456 libdir=$hardcode_libdirs
886610457 eval rpath=\" $hardcode_libdir_flag_spec\"
886710458 fi
8868 finalize_rpath="$rpath"
8869
8870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
10459 finalize_rpath=$rpath
10460
10461 if test -n "$libobjs" && test yes = "$build_old_libs"; then
887110462 # Transform all the library objects into standard objects.
887210463 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887310464 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887410465 fi
887510466
8876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
10467 func_generate_dlsyms "$outputname" "@PROGRAM@" false
887710468
887810469 # template prelinking step
887910470 if test -n "$prelink_cmds"; then
888010471 func_execute_cmds "$prelink_cmds" 'exit $?'
888110472 fi
888210473
8883 wrappers_required=yes
10474 wrappers_required=:
888410475 case $host in
888510476 *cegcc* | *mingw32ce*)
888610477 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
10478 wrappers_required=false
888810479 ;;
888910480 *cygwin* | *mingw* )
8890 if test "$build_libtool_libs" != yes; then
8891 wrappers_required=no
8892 fi
10481 test yes = "$build_libtool_libs" || wrappers_required=false
889310482 ;;
889410483 *)
8895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8896 wrappers_required=no
10484 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10485 wrappers_required=false
889710486 fi
889810487 ;;
889910488 esac
8900 if test "$wrappers_required" = no; then
10489 $wrappers_required || {
890110490 # Replace the output file specification.
890210491 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8903 link_command="$compile_command$compile_rpath"
10492 link_command=$compile_command$compile_rpath
890410493
890510494 # We have no uninstalled library dependencies, so finalize right now.
890610495 exit_status=0
891310502 fi
891410503
891510504 # Delete the generated files.
8916 if test -f "$output_objdir/${outputname}S.${objext}"; then
8917 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
10505 if test -f "$output_objdir/${outputname}S.$objext"; then
10506 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
891810507 fi
891910508
892010509 exit $exit_status
8921 fi
10510 }
892210511
892310512 if test -n "$compile_shlibpath$finalize_shlibpath"; then
892410513 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
894810537 fi
894910538 fi
895010539
8951 if test "$no_install" = yes; then
10540 if test yes = "$no_install"; then
895210541 # We don't need to create a wrapper script.
8953 link_command="$compile_var$compile_command$compile_rpath"
10542 link_command=$compile_var$compile_command$compile_rpath
895410543 # Replace the output file specification.
895510544 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
895610545 # Delete the old output file.
896710556 exit $EXIT_SUCCESS
896810557 fi
896910558
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
10559 case $hardcode_action,$fast_install in
10560 relink,*)
10561 # Fast installation is not supported
10562 link_command=$compile_var$compile_command$compile_rpath
10563 relink_command=$finalize_var$finalize_command$finalize_rpath
10564
10565 func_warning "this platform does not like uninstalled shared libraries"
10566 func_warning "'$output' will be relinked during installation"
10567 ;;
10568 *,yes)
10569 link_command=$finalize_var$compile_command$finalize_rpath
10570 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10571 ;;
10572 *,no)
10573 link_command=$compile_var$compile_command$compile_rpath
10574 relink_command=$finalize_var$finalize_command$finalize_rpath
10575 ;;
10576 *,needless)
10577 link_command=$finalize_var$compile_command$finalize_rpath
10578 relink_command=
10579 ;;
10580 esac
899110581
899210582 # Replace the output file specification.
899310583 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
904410634 func_dirname_and_basename "$output" "" "."
904510635 output_name=$func_basename_result
904610636 output_path=$func_dirname_result
9047 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9048 cwrapper="$output_path/$output_name.exe"
10637 cwrappersource=$output_path/$objdir/lt-$output_name.c
10638 cwrapper=$output_path/$output_name.exe
904910639 $RM $cwrappersource $cwrapper
905010640 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
905110641
906610656 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
906710657 $opt_dry_run || {
906810658 # note: this script will not be executed, so do not chmod.
9069 if test "x$build" = "x$host" ; then
10659 if test "x$build" = "x$host"; then
907010660 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
907110661 else
907210662 func_emit_wrapper no > $func_ltwrapper_scriptname_result
908910679 # See if we need to build an old-fashioned archive.
909010680 for oldlib in $oldlibs; do
909110681
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"
10682 case $build_libtool_libs in
10683 convenience)
10684 oldobjs="$libobjs_save $symfileobj"
10685 addlibs=$convenience
909910686 build_libtool_libs=no
9100 else
10687 ;;
10688 module)
10689 oldobjs=$libobjs_save
10690 addlibs=$old_convenience
10691 build_libtool_libs=no
10692 ;;
10693 *)
910110694 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
10695 $preload && test -f "$symfileobj" \
10696 && func_append oldobjs " $symfileobj"
10697 addlibs=$old_convenience
10698 ;;
10699 esac
910810700
910910701 if test -n "$addlibs"; then
9110 gentop="$output_objdir/${outputname}x"
10702 gentop=$output_objdir/${outputname}x
911110703 func_append generated " $gentop"
911210704
911310705 func_extract_archives $gentop $addlibs
911510707 fi
911610708
911710709 # Do each command in the archive commands.
9118 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
10710 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
911910711 cmds=$old_archive_from_new_cmds
912010712 else
912110713
912210714 # Add any objects from preloaded convenience libraries
912310715 if test -n "$dlprefiles"; then
9124 gentop="$output_objdir/${outputname}x"
10716 gentop=$output_objdir/${outputname}x
912510717 func_append generated " $gentop"
912610718
912710719 func_extract_archives $gentop $dlprefiles
914210734 :
914310735 else
914410736 echo "copying selected object files to avoid basename conflicts..."
9145 gentop="$output_objdir/${outputname}x"
10737 gentop=$output_objdir/${outputname}x
914610738 func_append generated " $gentop"
914710739 func_mkdir_p "$gentop"
914810740 save_oldobjs=$oldobjs
915110743 for obj in $save_oldobjs
915210744 do
915310745 func_basename "$obj"
9154 objbase="$func_basename_result"
10746 objbase=$func_basename_result
915510747 case " $oldobjs " in
915610748 " ") oldobjs=$obj ;;
915710749 *[\ /]"$objbase "*)
922010812 else
922110813 # the above command should be used before it gets too long
922210814 oldobjs=$objlist
9223 if test "$obj" = "$last_oldobj" ; then
10815 if test "$obj" = "$last_oldobj"; then
922410816 RANLIB=$save_RANLIB
922510817 fi
922610818 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9227 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
10819 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
922810820 objlist=
922910821 len=$len0
923010822 fi
923110823 done
923210824 RANLIB=$save_RANLIB
923310825 oldobjs=$objlist
9234 if test "X$oldobjs" = "X" ; then
10826 if test -z "$oldobjs"; then
923510827 eval cmds=\"\$concat_cmds\"
923610828 else
923710829 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
924810840 case $output in
924910841 *.la)
925010842 old_library=
9251 test "$build_old_libs" = yes && old_library="$libname.$libext"
10843 test yes = "$build_old_libs" && old_library=$libname.$libext
925210844 func_verbose "creating $output"
925310845
925410846 # Preserve any variables that may affect compiler behavior
926310855 fi
926410856 done
926510857 # Quote the link command for shipping.
9266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10858 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
926710859 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9268 if test "$hardcode_automatic" = yes ; then
10860 if test yes = "$hardcode_automatic"; then
926910861 relink_command=
927010862 fi
927110863
927210864 # Only create the output if not a dry run.
927310865 $opt_dry_run || {
927410866 for installed in no yes; do
9275 if test "$installed" = yes; then
10867 if test yes = "$installed"; then
927610868 if test -z "$install_libdir"; then
927710869 break
927810870 fi
9279 output="$output_objdir/$outputname"i
10871 output=$output_objdir/${outputname}i
928010872 # Replace all uninstalled libtool libraries with the installed ones
928110873 newdependency_libs=
928210874 for deplib in $dependency_libs; do
928310875 case $deplib in
928410876 *.la)
928510877 func_basename "$deplib"
9286 name="$func_basename_result"
10878 name=$func_basename_result
928710879 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10880 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
928910881 test -z "$libdir" && \
9290 func_fatal_error "\`$deplib' is not a valid libtool archive"
10882 func_fatal_error "'$deplib' is not a valid libtool archive"
929110883 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
929210884 ;;
929310885 -L*)
930310895 *) func_append newdependency_libs " $deplib" ;;
930410896 esac
930510897 done
9306 dependency_libs="$newdependency_libs"
10898 dependency_libs=$newdependency_libs
930710899 newdlfiles=
930810900
930910901 for lib in $dlfiles; do
931010902 case $lib in
931110903 *.la)
931210904 func_basename "$lib"
9313 name="$func_basename_result"
9314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10905 name=$func_basename_result
10906 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
931510907 test -z "$libdir" && \
9316 func_fatal_error "\`$lib' is not a valid libtool archive"
10908 func_fatal_error "'$lib' is not a valid libtool archive"
931710909 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
931810910 ;;
931910911 *) func_append newdlfiles " $lib" ;;
932010912 esac
932110913 done
9322 dlfiles="$newdlfiles"
10914 dlfiles=$newdlfiles
932310915 newdlprefiles=
932410916 for lib in $dlprefiles; do
932510917 case $lib in
932910921 # didn't already link the preopened objects directly into
933010922 # the library:
933110923 func_basename "$lib"
9332 name="$func_basename_result"
9333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10924 name=$func_basename_result
10925 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
933410926 test -z "$libdir" && \
9335 func_fatal_error "\`$lib' is not a valid libtool archive"
10927 func_fatal_error "'$lib' is not a valid libtool archive"
933610928 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
933710929 ;;
933810930 esac
933910931 done
9340 dlprefiles="$newdlprefiles"
10932 dlprefiles=$newdlprefiles
934110933 else
934210934 newdlfiles=
934310935 for lib in $dlfiles; do
934410936 case $lib in
9345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10937 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934610938 *) abs=`pwd`"/$lib" ;;
934710939 esac
934810940 func_append newdlfiles " $abs"
934910941 done
9350 dlfiles="$newdlfiles"
10942 dlfiles=$newdlfiles
935110943 newdlprefiles=
935210944 for lib in $dlprefiles; do
935310945 case $lib in
9354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10946 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
935510947 *) abs=`pwd`"/$lib" ;;
935610948 esac
935710949 func_append newdlprefiles " $abs"
935810950 done
9359 dlprefiles="$newdlprefiles"
10951 dlprefiles=$newdlprefiles
936010952 fi
936110953 $RM $output
936210954 # place dlname in correct position for cygwin
937210964 case $host,$output,$installed,$module,$dlname in
937310965 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
937410966 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
10967 if test -n "$bindir"; then
937710968 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
10969 tdlname=$func_relative_path_result/$dlname
937910970 else
938010971 # Otherwise fall back on heuristic.
938110972 tdlname=../bin/$dlname
938410975 esac
938510976 $ECHO > $output "\
938610977 # $outputname - a libtool library file
9387 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10978 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
938810979 #
938910980 # Please DO NOT delete this file!
939010981 # It is necessary for linking the library.
939810989 # The name of the static archive.
939910990 old_library='$old_library'
940010991
9401 # Linker flags that can not go in dependency_libs.
10992 # Linker flags that cannot go in dependency_libs.
940210993 inherited_linker_flags='$new_inherited_linker_flags'
940310994
940410995 # Libraries that this one depends upon.
942411015
942511016 # Directory that this library needs to be installed in:
942611017 libdir='$install_libdir'"
9427 if test "$installed" = no && test "$need_relink" = yes; then
11018 if test no,yes = "$installed,$need_relink"; then
942811019 $ECHO >> $output "\
942911020 relink_command=\"$relink_command\""
943011021 fi
943911030 exit $EXIT_SUCCESS
944011031 }
944111032
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9443 func_mode_link ${1+"$@"}
11033 if test link = "$opt_mode" || test relink = "$opt_mode"; then
11034 func_mode_link ${1+"$@"}
11035 fi
944411036
944511037
944611038 # func_mode_uninstall arg...
944711039 func_mode_uninstall ()
944811040 {
9449 $opt_debug
9450 RM="$nonopt"
11041 $debug_cmd
11042
11043 RM=$nonopt
945111044 files=
9452 rmforce=
11045 rmforce=false
945311046 exit_status=0
945411047
945511048 # This variable tells wrapper scripts just to set variables rather
945611049 # than running their programs.
9457 libtool_install_magic="$magic"
11050 libtool_install_magic=$magic
945811051
945911052 for arg
946011053 do
946111054 case $arg in
9462 -f) func_append RM " $arg"; rmforce=yes ;;
11055 -f) func_append RM " $arg"; rmforce=: ;;
946311056 -*) func_append RM " $arg" ;;
946411057 *) func_append files " $arg" ;;
946511058 esac
947211065
947311066 for file in $files; do
947411067 func_dirname "$file" "" "."
9475 dir="$func_dirname_result"
9476 if test "X$dir" = X.; then
9477 odir="$objdir"
11068 dir=$func_dirname_result
11069 if test . = "$dir"; then
11070 odir=$objdir
947811071 else
9479 odir="$dir/$objdir"
11072 odir=$dir/$objdir
948011073 fi
948111074 func_basename "$file"
9482 name="$func_basename_result"
9483 test "$opt_mode" = uninstall && odir="$dir"
11075 name=$func_basename_result
11076 test uninstall = "$opt_mode" && odir=$dir
948411077
948511078 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
11079 if test clean = "$opt_mode"; then
948711080 case " $rmdirs " in
948811081 *" $odir "*) ;;
948911082 *) func_append rmdirs " $odir" ;;
949811091 elif test -d "$file"; then
949911092 exit_status=1
950011093 continue
9501 elif test "$rmforce" = yes; then
11094 elif $rmforce; then
950211095 continue
950311096 fi
950411097
9505 rmfiles="$file"
11098 rmfiles=$file
950611099
950711100 case $name in
950811101 *.la)
951611109 done
951711110 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
951811111
9519 case "$opt_mode" in
11112 case $opt_mode in
952011113 clean)
952111114 case " $library_names " in
952211115 *" $dlname "*) ;;
952711120 uninstall)
952811121 if test -n "$library_names"; then
952911122 # Do each command in the postuninstall commands.
9530 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11123 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
953111124 fi
953211125
953311126 if test -n "$old_library"; then
953411127 # Do each command in the old_postuninstall commands.
9535 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11128 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
953611129 fi
953711130 # FIXME: should reinstall the best remaining shared library.
953811131 ;;
954811141 func_source $dir/$name
954911142
955011143 # Add PIC object to the list of files to remove.
9551 if test -n "$pic_object" &&
9552 test "$pic_object" != none; then
11144 if test -n "$pic_object" && test none != "$pic_object"; then
955311145 func_append rmfiles " $dir/$pic_object"
955411146 fi
955511147
955611148 # 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
11149 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
955911150 func_append rmfiles " $dir/$non_pic_object"
956011151 fi
956111152 fi
956211153 ;;
956311154
956411155 *)
9565 if test "$opt_mode" = clean ; then
11156 if test clean = "$opt_mode"; then
956611157 noexename=$name
956711158 case $file in
956811159 *.exe)
958911180
959011181 # note $name still contains .exe if it was in $file originally
959111182 # 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
11183 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11184 if test yes = "$fast_install" && test -n "$relink_command"; then
959411185 func_append rmfiles " $odir/lt-$name"
959511186 fi
9596 if test "X$noexename" != "X$name" ; then
9597 func_append rmfiles " $odir/lt-${noexename}.c"
11187 if test "X$noexename" != "X$name"; then
11188 func_append rmfiles " $odir/lt-$noexename.c"
959811189 fi
959911190 fi
960011191 fi
960311194 func_show_eval "$RM $rmfiles" 'exit_status=1'
960411195 done
960511196
9606 # Try to remove the ${objdir}s in the directories where we deleted files
11197 # Try to remove the $objdir's in the directories where we deleted files
960711198 for dir in $rmdirs; do
960811199 if test -d "$dir"; then
960911200 func_show_eval "rmdir $dir >/dev/null 2>&1"
961311204 exit $exit_status
961411205 }
961511206
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9617 func_mode_uninstall ${1+"$@"}
11207 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11208 func_mode_uninstall ${1+"$@"}
11209 fi
961811210
961911211 test -z "$opt_mode" && {
9620 help="$generic_help"
11212 help=$generic_help
962111213 func_fatal_help "you must specify a MODE"
962211214 }
962311215
962411216 test -z "$exec_cmd" && \
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
11217 func_fatal_help "invalid operation mode '$opt_mode'"
962611218
962711219 if test -n "$exec_cmd"; then
962811220 eval exec "$exec_cmd"
963311225
963411226
963511227 # The TAGs below are defined such that we never get into a situation
9636 # in which we disable both kinds of libraries. Given conflicting
11228 # where we disable both kinds of libraries. Given conflicting
963711229 # choices, we go for a static library, that is the most portable,
963811230 # since we can't tell whether shared libraries were disabled because
963911231 # the user asked for that or because the platform doesn't support
965611248 # mode:shell-script
965711249 # sh-indentation:2
965811250 # 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
722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
729 # Generated automatically by $as_me ($PACKAGE) $VERSION
723730 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
731
732 # Provide generalized library-building support services.
733 # Written by Gordon Matzigkeit, 1996
734
725735 _LT_COPYING
726736 _LT_LIBTOOL_TAGS
737
738 # Configured defaults for sys_lib_dlsearch_path munging.
739 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
727740
728741 # ### BEGIN LIBTOOL CONFIG
729742 _LT_LIBTOOL_CONFIG_VARS
730743 _LT_LIBTOOL_TAG_VARS
731744 # ### END LIBTOOL CONFIG
745
746 _LT_EOF
747
748 cat <<'_LT_EOF' >> "$cfgfile"
749
750 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
751
752 _LT_PREPARE_MUNGE_PATH_LIST
753 _LT_PREPARE_CC_BASENAME
754
755 # ### END FUNCTIONS SHARED WITH CONFIGURE
732756
733757 _LT_EOF
734758
738762 # AIX sometimes has problems with the GCC collect2 program. For some
739763 # reason, if we set the COLLECT_NAMES environment variable, the problems
740764 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
765 if test set != "${COLLECT_NAMES+set}"; then
742766 COLLECT_NAMES=
743767 export COLLECT_NAMES
744768 fi
754778 # is reportedly fixed, but why not run on old versions too?
755779 sed '$q' "$ltmain" >> "$cfgfile" \
756780 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759781
760782 mv -f "$cfgfile" "$ofile" ||
761783 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
774796 [m4_if([$1], [], [
775797 PACKAGE='$PACKAGE'
776798 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778799 RM='$RM'
779800 ofile='$ofile'], [])
780801 ])dnl /_LT_CONFIG_SAVE_COMMANDS
973994
974995 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975996 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
997 if test -z "$LT_MULTI_MODULE"; then
977998 # By default we will add the -single_module flag. You can override
978999 # by either setting the environment variable LT_MULTI_MODULE
9791000 # non-empty at configure time, or by adding -multi_module to the
9911012 cat conftest.err >&AS_MESSAGE_LOG_FD
9921013 # Otherwise, if the output was created with a 0 exit code from
9931014 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1015 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9951016 lt_cv_apple_cc_single_mod=yes
9961017 else
9971018 cat conftest.err >&AS_MESSAGE_LOG_FD
10091030 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
10101031 [lt_cv_ld_exported_symbols_list=yes],
10111032 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1033 LDFLAGS=$save_LDFLAGS
10131034 ])
10141035
10151036 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
10191040 _LT_EOF
10201041 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
10211042 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1022 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1023 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1043 echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1044 $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
10241045 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
10251046 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
10261047 cat > conftest.c << _LT_EOF
10311052 _lt_result=$?
10321053 if test -s conftest.err && $GREP force_load conftest.err; then
10331054 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
1055 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10351056 lt_cv_ld_force_load=yes
10361057 else
10371058 cat conftest.err >&AS_MESSAGE_LOG_FD
10411062 ])
10421063 case $host_os in
10431064 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1065 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10451066 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1067 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10471068 darwin*) # darwin 5.x on
10481069 # if running on 10.5 or later, the deployment target defaults
10491070 # to the OS version, if on x86, and 10.4, the deployment
10501071 # target defaults to 10.4. Don't you love it?
10511072 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10521073 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' ;;
1074 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1075 10.[[012]][[,.]]*)
1076 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10561077 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1078 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10581079 esac
10591080 ;;
10601081 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1082 if test yes = "$lt_cv_apple_cc_single_mod"; then
10621083 _lt_dar_single_mod='$single_module'
10631084 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'
1085 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1086 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10661087 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1088 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10681089 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1090 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10701091 _lt_dsymutil='~$DSYMUTIL $lib || :'
10711092 else
10721093 _lt_dsymutil=
10861107 _LT_TAGVAR(hardcode_direct, $1)=no
10871108 _LT_TAGVAR(hardcode_automatic, $1)=yes
10881109 _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\"`'
1110 if test yes = "$lt_cv_ld_force_load"; then
1111 _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\"`'
10911112 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
10921113 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
10931114 else
10941115 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
10951116 fi
10961117 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1118 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
10981119 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1120 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11001121 *) _lt_dar_can_shared=$GCC ;;
11011122 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1123 if test yes = "$_lt_dar_can_shared"; then
11031124 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}"
1125 _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"
1126 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1127 _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"
1128 _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"
11081129 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}"
1130 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1131 _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"
1132 _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"
11121133 fi
11131134 ],[])
11141135 else
11281149 # Allow to override them for all tags through lt_cv_aix_libpath.
11291150 m4_defun([_LT_SYS_MODULE_PATH_AIX],
11301151 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1152 if test set = "${lt_cv_aix_libpath+set}"; then
11321153 aix_libpath=$lt_cv_aix_libpath
11331154 else
11341155 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
11461167 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11471168 fi],[])
11481169 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1170 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
11501171 fi
11511172 ])
11521173 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
11661187 # -----------------------
11671188 # Find how we can fake an echo command that does not interpret backslash.
11681189 # 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).
1190 # of the generated configure script that will find a shell with a builtin
1191 # printf (that we can use as an echo command).
11711192 m4_defun([_LT_PROG_ECHO_BACKSLASH],
11721193 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11731194 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11951216 # Invoke $ECHO with all args, space-separated.
11961217 func_echo_all ()
11971218 {
1198 $ECHO "$*"
1219 $ECHO "$*"
11991220 }
12001221
1201 case "$ECHO" in
1222 case $ECHO in
12021223 printf*) AC_MSG_RESULT([printf]) ;;
12031224 print*) AC_MSG_RESULT([print -r]) ;;
12041225 *) AC_MSG_RESULT([cat]) ;;
12241245 AC_DEFUN([_LT_WITH_SYSROOT],
12251246 [AC_MSG_CHECKING([for sysroot])
12261247 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1248 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1249 [Search for dependent libraries within DIR (or the compiler's sysroot
1250 if not specified).])],
12291251 [], [with_sysroot=no])
12301252
12311253 dnl lt_sysroot will always be passed unquoted. We quote it here
12321254 dnl in case the user passed a directory name.
12331255 lt_sysroot=
1234 case ${with_sysroot} in #(
1256 case $with_sysroot in #(
12351257 yes)
1236 if test "$GCC" = yes; then
1258 if test yes = "$GCC"; then
12371259 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12381260 fi
12391261 ;; #(
12431265 no|'')
12441266 ;; #(
12451267 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1268 AC_MSG_RESULT([$with_sysroot])
12471269 AC_MSG_ERROR([The sysroot must be an absolute path.])
12481270 ;;
12491271 esac
12501272
12511273 AC_MSG_RESULT([${lt_sysroot:-no}])
12521274 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1275 [dependent libraries, and where our libraries should be installed.])])
12541276
12551277 # _LT_ENABLE_LOCK
12561278 # ---------------
12581280 [AC_ARG_ENABLE([libtool-lock],
12591281 [AS_HELP_STRING([--disable-libtool-lock],
12601282 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1283 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12621284
12631285 # Some flags need to be propagated to the compiler or linker for good
12641286 # libtool support.
12651287 case $host in
12661288 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1289 # Find out what ABI is being produced by ac_compile, and set mode
1290 # options accordingly.
12681291 echo 'int i;' > conftest.$ac_ext
12691292 if AC_TRY_EVAL(ac_compile); then
12701293 case `/usr/bin/file conftest.$ac_objext` in
12711294 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1295 HPUX_IA64_MODE=32
12731296 ;;
12741297 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1298 HPUX_IA64_MODE=64
12761299 ;;
12771300 esac
12781301 fi
12791302 rm -rf conftest*
12801303 ;;
12811304 *-*-irix6*)
1282 # Find out which ABI we are using.
1305 # Find out what ABI is being produced by ac_compile, and set linker
1306 # options accordingly.
12831307 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12841308 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1309 if test yes = "$lt_cv_prog_gnu_ld"; then
12861310 case `/usr/bin/file conftest.$ac_objext` in
12871311 *32-bit*)
12881312 LD="${LD-ld} -melf32bsmip"
13111335 rm -rf conftest*
13121336 ;;
13131337
1338 mips64*-*linux*)
1339 # Find out what ABI is being produced by ac_compile, and set linker
1340 # options accordingly.
1341 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1342 if AC_TRY_EVAL(ac_compile); then
1343 emul=elf
1344 case `/usr/bin/file conftest.$ac_objext` in
1345 *32-bit*)
1346 emul="${emul}32"
1347 ;;
1348 *64-bit*)
1349 emul="${emul}64"
1350 ;;
1351 esac
1352 case `/usr/bin/file conftest.$ac_objext` in
1353 *MSB*)
1354 emul="${emul}btsmip"
1355 ;;
1356 *LSB*)
1357 emul="${emul}ltsmip"
1358 ;;
1359 esac
1360 case `/usr/bin/file conftest.$ac_objext` in
1361 *N32*)
1362 emul="${emul}n32"
1363 ;;
1364 esac
1365 LD="${LD-ld} -m $emul"
1366 fi
1367 rm -rf conftest*
1368 ;;
1369
13141370 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13151371 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1372 # Find out what ABI is being produced by ac_compile, and set linker
1373 # options accordingly. Note that the listed cases only cover the
1374 # situations where additional linker options are needed (such as when
1375 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1376 # vice versa); the common cases where no linker options are needed do
1377 # not appear in the list.
13171378 echo 'int i;' > conftest.$ac_ext
13181379 if AC_TRY_EVAL(ac_compile); then
13191380 case `/usr/bin/file conftest.o` in
13321393 ;;
13331394 esac
13341395 ;;
1335 powerpc64le-*)
1396 powerpc64le-*linux*)
13361397 LD="${LD-ld} -m elf32lppclinux"
13371398 ;;
1338 powerpc64-*)
1399 powerpc64-*linux*)
13391400 LD="${LD-ld} -m elf32ppclinux"
13401401 ;;
13411402 s390x-*linux*)
13541415 x86_64-*linux*)
13551416 LD="${LD-ld} -m elf_x86_64"
13561417 ;;
1357 powerpcle-*)
1418 powerpcle-*linux*)
13581419 LD="${LD-ld} -m elf64lppc"
13591420 ;;
1360 powerpc-*)
1421 powerpc-*linux*)
13611422 LD="${LD-ld} -m elf64ppc"
13621423 ;;
13631424 s390*-*linux*|s390*-*tpf*)
13751436
13761437 *-*-sco3.2v5*)
13771438 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1378 SAVE_CFLAGS="$CFLAGS"
1439 SAVE_CFLAGS=$CFLAGS
13791440 CFLAGS="$CFLAGS -belf"
13801441 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13811442 [AC_LANG_PUSH(C)
13821443 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13831444 AC_LANG_POP])
1384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1445 if test yes != "$lt_cv_cc_needs_belf"; then
13851446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1386 CFLAGS="$SAVE_CFLAGS"
1447 CFLAGS=$SAVE_CFLAGS
13871448 fi
13881449 ;;
13891450 *-*solaris*)
1390 # Find out which ABI we are using.
1451 # Find out what ABI is being produced by ac_compile, and set linker
1452 # options accordingly.
13911453 echo 'int i;' > conftest.$ac_ext
13921454 if AC_TRY_EVAL(ac_compile); then
13931455 case `/usr/bin/file conftest.o` in
13951457 case $lt_cv_prog_gnu_ld in
13961458 yes*)
13971459 case $host in
1398 i?86-*-solaris*)
1460 i?86-*-solaris*|x86_64-*-solaris*)
13991461 LD="${LD-ld} -m elf_x86_64"
14001462 ;;
14011463 sparc*-*-solaris*)
14041466 esac
14051467 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14061468 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1407 LD="${LD-ld}_sol2"
1469 LD=${LD-ld}_sol2
14081470 fi
14091471 ;;
14101472 *)
14201482 ;;
14211483 esac
14221484
1423 need_locks="$enable_libtool_lock"
1485 need_locks=$enable_libtool_lock
14241486 ])# _LT_ENABLE_LOCK
14251487
14261488
14291491 m4_defun([_LT_PROG_AR],
14301492 [AC_CHECK_TOOLS(AR, [ar], false)
14311493 : ${AR=ar}
1432 : ${AR_FLAGS=cru}
1494 : ${AR_FLAGS=cr}
14331495 _LT_DECL([], [AR], [1], [The archiver])
14341496 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
14351497
14391501 [echo conftest.$ac_objext > conftest.lst
14401502 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
14411503 AC_TRY_EVAL([lt_ar_try])
1442 if test "$ac_status" -eq 0; then
1504 if test 0 -eq "$ac_status"; then
14431505 # Ensure the archiver fails upon bogus file names.
14441506 rm -f conftest.$ac_objext libconftest.a
14451507 AC_TRY_EVAL([lt_ar_try])
1446 if test "$ac_status" -ne 0; then
1508 if test 0 -ne "$ac_status"; then
14471509 lt_cv_ar_at_file=@
14481510 fi
14491511 fi
14511513 ])
14521514 ])
14531515
1454 if test "x$lt_cv_ar_at_file" = xno; then
1516 if test no = "$lt_cv_ar_at_file"; then
14551517 archiver_list_spec=
14561518 else
14571519 archiver_list_spec=$lt_cv_ar_at_file
14821544
14831545 if test -n "$RANLIB"; then
14841546 case $host_os in
1485 openbsd*)
1547 bitrig* | openbsd*)
14861548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14871549 ;;
14881550 *)
15181580 [$2=no
15191581 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15201582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1521 lt_compiler_flag="$3"
1583 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
15221584 # Insert the option either (1) after the last *FLAGS variable, or
15231585 # (2) before a word containing "conftest.", or (3) at the end.
15241586 # Note that $ac_compile itself does not contain backslashes and begins
15451607 $RM conftest*
15461608 ])
15471609
1548 if test x"[$]$2" = xyes; then
1610 if test yes = "[$]$2"; then
15491611 m4_if([$5], , :, [$5])
15501612 else
15511613 m4_if([$6], , :, [$6])
15671629 m4_require([_LT_DECL_SED])dnl
15681630 AC_CACHE_CHECK([$1], [$2],
15691631 [$2=no
1570 save_LDFLAGS="$LDFLAGS"
1632 save_LDFLAGS=$LDFLAGS
15711633 LDFLAGS="$LDFLAGS $3"
15721634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15731635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15861648 fi
15871649 fi
15881650 $RM -r conftest*
1589 LDFLAGS="$save_LDFLAGS"
1651 LDFLAGS=$save_LDFLAGS
15901652 ])
15911653
1592 if test x"[$]$2" = xyes; then
1654 if test yes = "[$]$2"; then
15931655 m4_if([$4], , :, [$4])
15941656 else
15951657 m4_if([$5], , :, [$5])
16101672 AC_MSG_CHECKING([the maximum length of command line arguments])
16111673 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
16121674 i=0
1613 teststring="ABCD"
1675 teststring=ABCD
16141676
16151677 case $build_os in
16161678 msdosdjgpp*)
16501712 lt_cv_sys_max_cmd_len=8192;
16511713 ;;
16521714
1653 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1715 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
16541716 # This has been around since 386BSD, at least. Likely further.
16551717 if test -x /sbin/sysctl; then
16561718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17011763 *)
17021764 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
17031765 if test -n "$lt_cv_sys_max_cmd_len" && \
1704 test undefined != "$lt_cv_sys_max_cmd_len"; then
1766 test undefined != "$lt_cv_sys_max_cmd_len"; then
17051767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
17061768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
17071769 else
17081770 # Make teststring a little bigger before we do anything with it.
17091771 # a 1K string should be a reasonable start.
1710 for i in 1 2 3 4 5 6 7 8 ; do
1772 for i in 1 2 3 4 5 6 7 8; do
17111773 teststring=$teststring$teststring
17121774 done
17131775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
17141776 # If test is not a shell built-in, we'll probably end up computing a
17151777 # maximum length that is only half of the actual maximum length, but
17161778 # we can't tell.
1717 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1779 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
17181780 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1719 test $i != 17 # 1/2 MB should be enough
1781 test 17 != "$i" # 1/2 MB should be enough
17201782 do
17211783 i=`expr $i + 1`
17221784 teststring=$teststring$teststring
17321794 ;;
17331795 esac
17341796 ])
1735 if test -n $lt_cv_sys_max_cmd_len ; then
1797 if test -n "$lt_cv_sys_max_cmd_len"; then
17361798 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
17371799 else
17381800 AC_MSG_RESULT(none)
17601822 # ----------------------------------------------------------------
17611823 m4_defun([_LT_TRY_DLOPEN_SELF],
17621824 [m4_require([_LT_HEADER_DLFCN])dnl
1763 if test "$cross_compiling" = yes; then :
1825 if test yes = "$cross_compiling"; then :
17641826 [$4]
17651827 else
17661828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18071869 # endif
18081870 #endif
18091871
1810 /* When -fvisbility=hidden is used, assume the code has been annotated
1872 /* When -fvisibility=hidden is used, assume the code has been annotated
18111873 correspondingly for the symbols needed. */
1812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1874 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18131875 int fnord () __attribute__((visibility("default")));
18141876 #endif
18151877
18351897 return status;
18361898 }]
18371899 _LT_EOF
1838 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1900 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
18391901 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
18401902 lt_status=$?
18411903 case x$lt_status in
18561918 # ------------------
18571919 AC_DEFUN([LT_SYS_DLOPEN_SELF],
18581920 [m4_require([_LT_HEADER_DLFCN])dnl
1859 if test "x$enable_dlopen" != xyes; then
1921 if test yes != "$enable_dlopen"; then
18601922 enable_dlopen=unknown
18611923 enable_dlopen_self=unknown
18621924 enable_dlopen_self_static=unknown
18661928
18671929 case $host_os in
18681930 beos*)
1869 lt_cv_dlopen="load_add_on"
1931 lt_cv_dlopen=load_add_on
18701932 lt_cv_dlopen_libs=
18711933 lt_cv_dlopen_self=yes
18721934 ;;
18731935
18741936 mingw* | pw32* | cegcc*)
1875 lt_cv_dlopen="LoadLibrary"
1937 lt_cv_dlopen=LoadLibrary
18761938 lt_cv_dlopen_libs=
18771939 ;;
18781940
18791941 cygwin*)
1880 lt_cv_dlopen="dlopen"
1942 lt_cv_dlopen=dlopen
18811943 lt_cv_dlopen_libs=
18821944 ;;
18831945
18841946 darwin*)
1885 # if libdl is installed we need to link against it
1947 # if libdl is installed we need to link against it
18861948 AC_CHECK_LIB([dl], [dlopen],
1887 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1888 lt_cv_dlopen="dyld"
1949 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1950 lt_cv_dlopen=dyld
18891951 lt_cv_dlopen_libs=
18901952 lt_cv_dlopen_self=yes
18911953 ])
18921954 ;;
18931955
1956 tpf*)
1957 # Don't try to run any link tests for TPF. We know it's impossible
1958 # because TPF is a cross-compiler, and we know how we open DSOs.
1959 lt_cv_dlopen=dlopen
1960 lt_cv_dlopen_libs=
1961 lt_cv_dlopen_self=no
1962 ;;
1963
18941964 *)
18951965 AC_CHECK_FUNC([shl_load],
1896 [lt_cv_dlopen="shl_load"],
1966 [lt_cv_dlopen=shl_load],
18971967 [AC_CHECK_LIB([dld], [shl_load],
1898 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1968 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
18991969 [AC_CHECK_FUNC([dlopen],
1900 [lt_cv_dlopen="dlopen"],
1970 [lt_cv_dlopen=dlopen],
19011971 [AC_CHECK_LIB([dl], [dlopen],
1902 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1972 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
19031973 [AC_CHECK_LIB([svld], [dlopen],
1904 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1974 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
19051975 [AC_CHECK_LIB([dld], [dld_link],
1906 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1976 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
19071977 ])
19081978 ])
19091979 ])
19121982 ;;
19131983 esac
19141984
1915 if test "x$lt_cv_dlopen" != xno; then
1985 if test no = "$lt_cv_dlopen"; then
1986 enable_dlopen=no
1987 else
19161988 enable_dlopen=yes
1917 else
1918 enable_dlopen=no
19191989 fi
19201990
19211991 case $lt_cv_dlopen in
19221992 dlopen)
1923 save_CPPFLAGS="$CPPFLAGS"
1924 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1925
1926 save_LDFLAGS="$LDFLAGS"
1993 save_CPPFLAGS=$CPPFLAGS
1994 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1995
1996 save_LDFLAGS=$LDFLAGS
19271997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19281998
1929 save_LIBS="$LIBS"
1999 save_LIBS=$LIBS
19302000 LIBS="$lt_cv_dlopen_libs $LIBS"
19312001
19322002 AC_CACHE_CHECK([whether a program can dlopen itself],
19362006 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
19372007 ])
19382008
1939 if test "x$lt_cv_dlopen_self" = xyes; then
2009 if test yes = "$lt_cv_dlopen_self"; then
19402010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19412011 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
19422012 lt_cv_dlopen_self_static, [dnl
19462016 ])
19472017 fi
19482018
1949 CPPFLAGS="$save_CPPFLAGS"
1950 LDFLAGS="$save_LDFLAGS"
1951 LIBS="$save_LIBS"
2019 CPPFLAGS=$save_CPPFLAGS
2020 LDFLAGS=$save_LDFLAGS
2021 LIBS=$save_LIBS
19522022 ;;
19532023 esac
19542024
20402110 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20412111 _LT_COMPILER_C_O([$1])
20422112
2043 hard_links="nottested"
2044 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2113 hard_links=nottested
2114 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
20452115 # do not overwrite the value of need_locks provided by the user
20462116 AC_MSG_CHECKING([if we can lock with hard links])
20472117 hard_links=yes
20512121 ln conftest.a conftest.b 2>&5 || hard_links=no
20522122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20532123 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])
2124 if test no = "$hard_links"; then
2125 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
20562126 need_locks=warn
20572127 fi
20582128 else
20792149 _LT_DECL([], [objdir], [0],
20802150 [The name of the directory that contains temporary libtool files])dnl
20812151 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.])
2152 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2153 [Define to the sub-directory where libtool stores uninstalled libraries.])
20842154 ])# _LT_CHECK_OBJDIR
20852155
20862156
20922162 _LT_TAGVAR(hardcode_action, $1)=
20932163 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
20942164 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2095 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2165 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
20962166
20972167 # We can hardcode non-existent directories.
2098 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2168 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
20992169 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21002170 # have to relink, otherwise we might link with an installed library
21012171 # 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
2172 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2173 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
21042174 # Linking always hardcodes the temporary library directory.
21052175 _LT_TAGVAR(hardcode_action, $1)=relink
21062176 else
21142184 fi
21152185 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
21162186
2117 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2118 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2187 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2188 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
21192189 # Fast installation is not supported
21202190 enable_fast_install=no
2121 elif test "$shlibpath_overrides_runpath" = yes ||
2122 test "$enable_shared" = no; then
2191 elif test yes = "$shlibpath_overrides_runpath" ||
2192 test no = "$enable_shared"; then
21232193 # Fast installation is not necessary
21242194 enable_fast_install=needless
21252195 fi
21432213 # FIXME - insert some real tests, host_os isn't really good enough
21442214 case $host_os in
21452215 darwin*)
2146 if test -n "$STRIP" ; then
2216 if test -n "$STRIP"; then
21472217 striplib="$STRIP -x"
21482218 old_striplib="$STRIP -S"
21492219 AC_MSG_RESULT([yes])
21612231 ])# _LT_CMD_STRIPLIB
21622232
21632233
2234 # _LT_PREPARE_MUNGE_PATH_LIST
2235 # ---------------------------
2236 # Make sure func_munge_path_list() is defined correctly.
2237 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2238 [[# func_munge_path_list VARIABLE PATH
2239 # -----------------------------------
2240 # VARIABLE is name of variable containing _space_ separated list of
2241 # directories to be munged by the contents of PATH, which is string
2242 # having a format:
2243 # "DIR[:DIR]:"
2244 # string "DIR[ DIR]" will be prepended to VARIABLE
2245 # ":DIR[:DIR]"
2246 # string "DIR[ DIR]" will be appended to VARIABLE
2247 # "DIRP[:DIRP]::[DIRA:]DIRA"
2248 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2249 # "DIRA[ DIRA]" will be appended to VARIABLE
2250 # "DIR[:DIR]"
2251 # VARIABLE will be replaced by "DIR[ DIR]"
2252 func_munge_path_list ()
2253 {
2254 case x@S|@2 in
2255 x)
2256 ;;
2257 *:)
2258 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2259 ;;
2260 x:*)
2261 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2262 ;;
2263 *::*)
2264 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2265 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2266 ;;
2267 *)
2268 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2269 ;;
2270 esac
2271 }
2272 ]])# _LT_PREPARE_PATH_LIST
2273
2274
21642275 # _LT_SYS_DYNAMIC_LINKER([TAG])
21652276 # -----------------------------
21662277 # PORTME Fill in your ld.so characteristics
21712282 m4_require([_LT_DECL_OBJDUMP])dnl
21722283 m4_require([_LT_DECL_SED])dnl
21732284 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2285 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
21742286 AC_MSG_CHECKING([dynamic linker characteristics])
21752287 m4_if([$1],
21762288 [], [
2177 if test "$GCC" = yes; then
2289 if test yes = "$GCC"; then
21782290 case $host_os in
2179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2180 *) lt_awk_arg="/^libraries:/" ;;
2291 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2292 *) lt_awk_arg='/^libraries:/' ;;
21812293 esac
21822294 case $host_os in
2183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2184 *) lt_sed_strip_eq="s,=/,/,g" ;;
2295 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2296 *) lt_sed_strip_eq='s|=/|/|g' ;;
21852297 esac
21862298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21872299 case $lt_search_path_spec in
21972309 ;;
21982310 esac
21992311 # Ok, now we have the path, separated by spaces, we can step through it
2200 # and add multilib dir if necessary.
2312 # and add multilib dir if necessary...
22012313 lt_tmp_lt_search_path_spec=
2202 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2314 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2315 # ...but if some path component already ends with the multilib dir we assume
2316 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2317 case "$lt_multi_os_dir; $lt_search_path_spec " in
2318 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2319 lt_multi_os_dir=
2320 ;;
2321 esac
22032322 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
2323 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2324 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2325 elif test -n "$lt_multi_os_dir"; then
22072326 test -d "$lt_sys_path" && \
22082327 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
22092328 fi
22102329 done
22112330 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2212 BEGIN {RS=" "; FS="/|\n";} {
2213 lt_foo="";
2214 lt_count=0;
2331 BEGIN {RS = " "; FS = "/|\n";} {
2332 lt_foo = "";
2333 lt_count = 0;
22152334 for (lt_i = NF; lt_i > 0; lt_i--) {
22162335 if ($lt_i != "" && $lt_i != ".") {
22172336 if ($lt_i == "..") {
22182337 lt_count++;
22192338 } else {
22202339 if (lt_count == 0) {
2221 lt_foo="/" $lt_i lt_foo;
2340 lt_foo = "/" $lt_i lt_foo;
22222341 } else {
22232342 lt_count--;
22242343 }
22322351 # for these hosts.
22332352 case $host_os in
22342353 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2235 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2354 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
22362355 esac
22372356 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
22382357 else
22412360 library_names_spec=
22422361 libname_spec='lib$name'
22432362 soname_spec=
2244 shrext_cmds=".so"
2363 shrext_cmds=.so
22452364 postinstall_cmds=
22462365 postuninstall_cmds=
22472366 finish_cmds=
22582377 # flags to be left without arguments
22592378 need_version=unknown
22602379
2380 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2381 [User-defined run-time library search path.])
2382
22612383 case $host_os in
22622384 aix3*)
22632385 version_type=linux # correct to gnu/linux during the next big refactor
2264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2386 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22652387 shlibpath_var=LIBPATH
22662388
22672389 # AIX 3 has no versioning support, so we append a major version to the name.
2268 soname_spec='${libname}${release}${shared_ext}$major'
2390 soname_spec='$libname$release$shared_ext$major'
22692391 ;;
22702392
22712393 aix[[4-9]]*)
22732395 need_lib_prefix=no
22742396 need_version=no
22752397 hardcode_into_libs=yes
2276 if test "$host_cpu" = ia64; then
2398 if test ia64 = "$host_cpu"; then
22772399 # AIX 5 supports IA64
2278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2400 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22792401 shlibpath_var=LD_LIBRARY_PATH
22802402 else
22812403 # With GCC up to 2.95.x, collect2 would create an import file
22822404 # 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
2405 # the line '#! .'. This would cause the generated library to
2406 # depend on '.', always an invalid library. This was fixed in
22852407 # development snapshots of GCC prior to 3.0.
22862408 case $host_os in
22872409 aix4 | aix4.[[01]] | aix4.[[01]].*)
22882410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22892411 echo ' yes '
2290 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2412 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22912413 :
22922414 else
22932415 can_build_shared=no
22942416 fi
22952417 ;;
22962418 esac
2297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2419 # Using Import Files as archive members, it is possible to support
2420 # filename-based versioning of shared library archives on AIX. While
2421 # this would work for both with and without runtime linking, it will
2422 # prevent static linking of such archives. So we do filename-based
2423 # shared library versioning with .so extension only, which is used
2424 # when both runtime linking and shared linking is enabled.
2425 # Unfortunately, runtime linking may impact performance, so we do
2426 # not want this to be the default eventually. Also, we use the
2427 # versioned .so libs for executables only if there is the -brtl
2428 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2429 # To allow for filename-based versioning support, we need to create
2430 # libNAME.so.V as an archive file, containing:
2431 # *) an Import File, referring to the versioned filename of the
2432 # archive as well as the shared archive member, telling the
2433 # bitwidth (32 or 64) of that shared object, and providing the
2434 # list of exported symbols of that shared object, eventually
2435 # decorated with the 'weak' keyword
2436 # *) the shared object with the F_LOADONLY flag set, to really avoid
2437 # it being seen by the linker.
2438 # At run time we better use the real file rather than another symlink,
2439 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2440
2441 case $with_aix_soname,$aix_use_runtimelinking in
2442 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22982443 # soname into executable. Probably we can add versioning support to
22992444 # collect2, so additional links can be useful in future.
2300 if test "$aix_use_runtimelinking" = yes; then
2445 aix,yes) # traditional libtool
2446 dynamic_linker='AIX unversionable lib.so'
23012447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23022448 # instead of lib<name>.a to let people know that these are not
23032449 # typical AIX shared libraries.
2304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2305 else
2450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2451 ;;
2452 aix,no) # traditional AIX only
2453 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
23062454 # We preserve .a as extension for shared libraries through AIX4.2
23072455 # 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
2456 library_names_spec='$libname$release.a $libname.a'
2457 soname_spec='$libname$release$shared_ext$major'
2458 ;;
2459 svr4,*) # full svr4 only
2460 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2461 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2462 # We do not specify a path in Import Files, so LIBPATH fires.
2463 shlibpath_overrides_runpath=yes
2464 ;;
2465 *,yes) # both, prefer svr4
2466 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2467 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2468 # unpreferred sharedlib libNAME.a needs extra handling
2469 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"'
2470 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"'
2471 # We do not specify a path in Import Files, so LIBPATH fires.
2472 shlibpath_overrides_runpath=yes
2473 ;;
2474 *,no) # both, prefer aix
2475 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2476 library_names_spec='$libname$release.a $libname.a'
2477 soname_spec='$libname$release$shared_ext$major'
2478 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2479 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)'
2480 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"'
2481 ;;
2482 esac
23112483 shlibpath_var=LIBPATH
23122484 fi
23132485 ;;
23172489 powerpc)
23182490 # Since July 2007 AmigaOS4 officially supports .so libraries.
23192491 # 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}'
2492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23212493 ;;
23222494 m68k)
23232495 library_names_spec='$libname.ixlibrary $libname.a'
23242496 # 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'
2497 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'
23262498 ;;
23272499 esac
23282500 ;;
23292501
23302502 beos*)
2331 library_names_spec='${libname}${shared_ext}'
2503 library_names_spec='$libname$shared_ext'
23322504 dynamic_linker="$host_os ld.so"
23332505 shlibpath_var=LIBRARY_PATH
23342506 ;;
23362508 bsdi[[45]]*)
23372509 version_type=linux # correct to gnu/linux during the next big refactor
23382510 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'
2511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2512 soname_spec='$libname$release$shared_ext$major'
23412513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23422514 shlibpath_var=LD_LIBRARY_PATH
23432515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23492521
23502522 cygwin* | mingw* | pw32* | cegcc*)
23512523 version_type=windows
2352 shrext_cmds=".dll"
2524 shrext_cmds=.dll
23532525 need_version=no
23542526 need_lib_prefix=no
23552527
23582530 # gcc
23592531 library_names_spec='$libname.dll.a'
23602532 # 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'\''`~
2533 postinstall_cmds='base_file=`basename \$file`~
2534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23632535 dldir=$destdir/`dirname \$dlpath`~
23642536 test -d \$dldir || mkdir -p \$dldir~
23652537 $install_prog $dir/$dlname \$dldir/$dlname~
23752547 case $host_os in
23762548 cygwin*)
23772549 # 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}'
2550 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23792551 m4_if([$1], [],[
23802552 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
23812553 ;;
23822554 mingw* | cegcc*)
23832555 # MinGW DLLs use traditional 'lib' prefix
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2556 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23852557 ;;
23862558 pw32*)
23872559 # 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}'
2560 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23892561 ;;
23902562 esac
23912563 dynamic_linker='Win32 ld.exe'
23942566 *,cl*)
23952567 # Native MSVC
23962568 libname_spec='$name'
2397 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2398 library_names_spec='${libname}.dll.lib'
2569 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2570 library_names_spec='$libname.dll.lib'
23992571
24002572 case $build_os in
24012573 mingw*)
24222594 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24232595 ;;
24242596 *)
2425 sys_lib_search_path_spec="$LIB"
2597 sys_lib_search_path_spec=$LIB
24262598 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
24272599 # It is most probably a Windows format PATH.
24282600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24352607 esac
24362608
24372609 # 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'\''`~
2610 postinstall_cmds='base_file=`basename \$file`~
2611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
24402612 dldir=$destdir/`dirname \$dlpath`~
24412613 test -d \$dldir || mkdir -p \$dldir~
24422614 $install_prog $dir/$dlname \$dldir/$dlname'
24492621
24502622 *)
24512623 # Assume MSVC wrapper
2452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2624 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
24532625 dynamic_linker='Win32 ld.exe'
24542626 ;;
24552627 esac
24622634 version_type=darwin
24632635 need_lib_prefix=no
24642636 need_version=no
2465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2466 soname_spec='${libname}${release}${major}$shared_ext'
2637 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2638 soname_spec='$libname$release$major$shared_ext'
24672639 shlibpath_overrides_runpath=yes
24682640 shlibpath_var=DYLD_LIBRARY_PATH
24692641 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24762648 version_type=linux # correct to gnu/linux during the next big refactor
24772649 need_lib_prefix=no
24782650 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'
2651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2652 soname_spec='$libname$release$shared_ext$major'
24812653 shlibpath_var=LD_LIBRARY_PATH
24822654 ;;
24832655
24952667 version_type=freebsd-$objformat
24962668 case $version_type in
24972669 freebsd-elf*)
2498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2671 soname_spec='$libname$release$shared_ext$major'
24992672 need_version=no
25002673 need_lib_prefix=no
25012674 ;;
25022675 freebsd-*)
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2676 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
25042677 need_version=yes
25052678 ;;
25062679 esac
25302703 need_lib_prefix=no
25312704 need_version=no
25322705 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'
2706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2707 soname_spec='$libname$release$shared_ext$major'
25352708 shlibpath_var=LIBRARY_PATH
2536 shlibpath_overrides_runpath=yes
2709 shlibpath_overrides_runpath=no
25372710 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
25382711 hardcode_into_libs=yes
25392712 ;;
25512724 dynamic_linker="$host_os dld.so"
25522725 shlibpath_var=LD_LIBRARY_PATH
25532726 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
2727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2728 soname_spec='$libname$release$shared_ext$major'
2729 if test 32 = "$HPUX_IA64_MODE"; then
25572730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2731 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
25582732 else
25592733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2734 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
25602735 fi
2561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25622736 ;;
25632737 hppa*64*)
25642738 shrext_cmds='.sl'
25662740 dynamic_linker="$host_os dld.sl"
25672741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25682742 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'
2743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2744 soname_spec='$libname$release$shared_ext$major'
25712745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25722746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25732747 ;;
25762750 dynamic_linker="$host_os dld.sl"
25772751 shlibpath_var=SHLIB_PATH
25782752 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'
2753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2754 soname_spec='$libname$release$shared_ext$major'
25812755 ;;
25822756 esac
25832757 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
25902764 version_type=linux # correct to gnu/linux during the next big refactor
25912765 need_lib_prefix=no
25922766 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'
2767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2768 soname_spec='$libname$release$shared_ext$major'
25952769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25962770 shlibpath_var=LD_LIBRARY_PATH
25972771 shlibpath_overrides_runpath=no
26022776 case $host_os in
26032777 nonstopux*) version_type=nonstopux ;;
26042778 *)
2605 if test "$lt_cv_prog_gnu_ld" = yes; then
2779 if test yes = "$lt_cv_prog_gnu_ld"; then
26062780 version_type=linux # correct to gnu/linux during the next big refactor
26072781 else
26082782 version_type=irix
26102784 esac
26112785 need_lib_prefix=no
26122786 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}'
2787 soname_spec='$libname$release$shared_ext$major'
2788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
26152789 case $host_os in
26162790 irix5* | nonstopux*)
26172791 libsuff= shlibsuff=
26302804 esac
26312805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26322806 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}"
2807 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2808 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
26352809 hardcode_into_libs=yes
26362810 ;;
26372811
26382812 # No shared lib support for Linux oldld, aout, or coff.
26392813 linux*oldld* | linux*aout* | linux*coff*)
26402814 dynamic_linker=no
2815 ;;
2816
2817 linux*android*)
2818 version_type=none # Android doesn't support versioned libraries.
2819 need_lib_prefix=no
2820 need_version=no
2821 library_names_spec='$libname$release$shared_ext'
2822 soname_spec='$libname$release$shared_ext'
2823 finish_cmds=
2824 shlibpath_var=LD_LIBRARY_PATH
2825 shlibpath_overrides_runpath=yes
2826
2827 # This implies no fast_install, which is unacceptable.
2828 # Some rework will be needed to allow for fast_install
2829 # before this can be enabled.
2830 hardcode_into_libs=yes
2831
2832 dynamic_linker='Android linker'
2833 # Don't embed -rpath directories since the linker doesn't support them.
2834 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
26412835 ;;
26422836
26432837 # This must be glibc/ELF.
26452839 version_type=linux # correct to gnu/linux during the next big refactor
26462840 need_lib_prefix=no
26472841 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'
2842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2843 soname_spec='$libname$release$shared_ext$major'
26502844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26512845 shlibpath_var=LD_LIBRARY_PATH
26522846 shlibpath_overrides_runpath=no
26712865 # before this can be enabled.
26722866 hardcode_into_libs=yes
26732867
2674 # Append ld.so.conf contents to the search path
2868 # Ideally, we could use ldconfig to report *all* directores which are
2869 # searched for libraries, however this is still not possible. Aside from not
2870 # being certain /sbin/ldconfig is available, command
2871 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2872 # even though it is searched at run-time. Try to do the best guess by
2873 # appending ld.so.conf contents (and includes) to the search path.
26752874 if test -f /etc/ld.so.conf; then
26762875 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' ' '`
26772876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27032902 need_lib_prefix=no
27042903 need_version=no
27052904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2905 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27072906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27082907 dynamic_linker='NetBSD (a.out) ld.so'
27092908 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'
2909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2910 soname_spec='$libname$release$shared_ext$major'
27122911 dynamic_linker='NetBSD ld.elf_so'
27132912 fi
27142913 shlibpath_var=LD_LIBRARY_PATH
27182917
27192918 newsos6)
27202919 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}'
2920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27222921 shlibpath_var=LD_LIBRARY_PATH
27232922 shlibpath_overrides_runpath=yes
27242923 ;;
27272926 version_type=qnx
27282927 need_lib_prefix=no
27292928 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'
2929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2930 soname_spec='$libname$release$shared_ext$major'
27322931 shlibpath_var=LD_LIBRARY_PATH
27332932 shlibpath_overrides_runpath=no
27342933 hardcode_into_libs=yes
27352934 dynamic_linker='ldqnx.so'
27362935 ;;
27372936
2738 openbsd*)
2937 openbsd* | bitrig*)
27392938 version_type=sunos
2740 sys_lib_dlsearch_path_spec="/usr/lib"
2939 sys_lib_dlsearch_path_spec=/usr/lib
27412940 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'
2941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2942 need_version=no
2943 else
2944 need_version=yes
2945 fi
2946 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27482947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27492948 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
2949 shlibpath_overrides_runpath=yes
27622950 ;;
27632951
27642952 os2*)
27652953 libname_spec='$name'
2766 shrext_cmds=".dll"
2954 version_type=windows
2955 shrext_cmds=.dll
2956 need_version=no
27672957 need_lib_prefix=no
2768 library_names_spec='$libname${shared_ext} $libname.a'
2958 # OS/2 can only load a DLL with a base name of 8 characters or less.
2959 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2960 v=$($ECHO $release$versuffix | tr -d .-);
2961 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2962 $ECHO $n$v`$shared_ext'
2963 library_names_spec='${libname}_dll.$libext'
27692964 dynamic_linker='OS/2 ld.exe'
2770 shlibpath_var=LIBPATH
2965 shlibpath_var=BEGINLIBPATH
2966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2968 postinstall_cmds='base_file=`basename \$file`~
2969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2970 dldir=$destdir/`dirname \$dlpath`~
2971 test -d \$dldir || mkdir -p \$dldir~
2972 $install_prog $dir/$dlname \$dldir/$dlname~
2973 chmod a+x \$dldir/$dlname~
2974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2976 fi'
2977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2978 dlpath=$dir/\$dldll~
2979 $RM \$dlpath'
27712980 ;;
27722981
27732982 osf3* | osf4* | osf5*)
27742983 version_type=osf
27752984 need_lib_prefix=no
27762985 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}'
2986 soname_spec='$libname$release$shared_ext$major'
2987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27792988 shlibpath_var=LD_LIBRARY_PATH
27802989 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"
2990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27822991 ;;
27832992
27842993 rdos*)
27892998 version_type=linux # correct to gnu/linux during the next big refactor
27902999 need_lib_prefix=no
27913000 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'
3001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3002 soname_spec='$libname$release$shared_ext$major'
27943003 shlibpath_var=LD_LIBRARY_PATH
27953004 shlibpath_overrides_runpath=yes
27963005 hardcode_into_libs=yes
28003009
28013010 sunos4*)
28023011 version_type=sunos
2803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3012 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
28043013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28053014 shlibpath_var=LD_LIBRARY_PATH
28063015 shlibpath_overrides_runpath=yes
2807 if test "$with_gnu_ld" = yes; then
3016 if test yes = "$with_gnu_ld"; then
28083017 need_lib_prefix=no
28093018 fi
28103019 need_version=yes
28123021
28133022 sysv4 | sysv4.3*)
28143023 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'
3024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3025 soname_spec='$libname$release$shared_ext$major'
28173026 shlibpath_var=LD_LIBRARY_PATH
28183027 case $host_vendor in
28193028 sni)
28343043 ;;
28353044
28363045 sysv4*MP*)
2837 if test -d /usr/nec ;then
3046 if test -d /usr/nec; then
28383047 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'
3048 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3049 soname_spec='$libname$shared_ext.$major'
28413050 shlibpath_var=LD_LIBRARY_PATH
28423051 fi
28433052 ;;
28443053
28453054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2846 version_type=freebsd-elf
3055 version_type=sco
28473056 need_lib_prefix=no
28483057 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'
3058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3059 soname_spec='$libname$release$shared_ext$major'
28513060 shlibpath_var=LD_LIBRARY_PATH
28523061 shlibpath_overrides_runpath=yes
28533062 hardcode_into_libs=yes
2854 if test "$with_gnu_ld" = yes; then
3063 if test yes = "$with_gnu_ld"; then
28553064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28563065 else
28573066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28693078 version_type=linux # correct to gnu/linux during the next big refactor
28703079 need_lib_prefix=no
28713080 need_version=no
2872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
28733082 shlibpath_var=LD_LIBRARY_PATH
28743083 shlibpath_overrides_runpath=no
28753084 hardcode_into_libs=yes
28773086
28783087 uts4*)
28793088 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'
3089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3090 soname_spec='$libname$release$shared_ext$major'
28823091 shlibpath_var=LD_LIBRARY_PATH
28833092 ;;
28843093
28873096 ;;
28883097 esac
28893098 AC_MSG_RESULT([$dynamic_linker])
2890 test "$dynamic_linker" = no && can_build_shared=no
3099 test no = "$dynamic_linker" && can_build_shared=no
28913100
28923101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2893 if test "$GCC" = yes; then
3102 if test yes = "$GCC"; then
28943103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28953104 fi
28963105
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"
3106 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3107 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
28993108 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"
3109
3110 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3111 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
29023112 fi
3113
3114 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3115 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3116
3117 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3118 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3119
3120 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3121 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
29033122
29043123 _LT_DECL([], [variables_saved_for_relink], [1],
29053124 [Variables whose values should be saved in libtool wrapper scripts and
29333152 [Whether we should hardcode library paths into libraries])
29343153 _LT_DECL([], [sys_lib_search_path_spec], [2],
29353154 [Compile-time system search path for libraries])
2936 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2937 [Run-time system search path for libraries])
3155 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3156 [Detected run-time system search path for libraries])
3157 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3158 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
29383159 ])# _LT_SYS_DYNAMIC_LINKER
29393160
29403161
29413162 # _LT_PATH_TOOL_PREFIX(TOOL)
29423163 # --------------------------
2943 # find a file program which can recognize shared library
3164 # find a file program that can recognize shared library
29443165 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
29453166 [m4_require([_LT_DECL_EGREP])dnl
29463167 AC_MSG_CHECKING([for $1])
29473168 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
29483169 [case $MAGIC_CMD in
29493170 [[\\/*] | ?:[\\/]*])
2950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3171 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
29513172 ;;
29523173 *)
2953 lt_save_MAGIC_CMD="$MAGIC_CMD"
2954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3174 lt_save_MAGIC_CMD=$MAGIC_CMD
3175 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
29553176 dnl $ac_dummy forces splitting on constant user-supplied paths.
29563177 dnl POSIX.2 word splitting is done only on the output of word expansions,
29573178 dnl not every word. This closes a longstanding sh security hole.
29583179 ac_dummy="m4_if([$2], , $PATH, [$2])"
29593180 for ac_dir in $ac_dummy; do
2960 IFS="$lt_save_ifs"
3181 IFS=$lt_save_ifs
29613182 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$1; then
2963 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3183 if test -f "$ac_dir/$1"; then
3184 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
29643185 if test -n "$file_magic_test_file"; then
29653186 case $deplibs_check_method in
29663187 "file_magic "*)
29673188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3189 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29693190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
29703191 $EGREP "$file_magic_regex" > /dev/null; then
29713192 :
29883209 break
29893210 fi
29903211 done
2991 IFS="$lt_save_ifs"
2992 MAGIC_CMD="$lt_save_MAGIC_CMD"
3212 IFS=$lt_save_ifs
3213 MAGIC_CMD=$lt_save_MAGIC_CMD
29933214 ;;
29943215 esac])
2995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3216 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29963217 if test -n "$MAGIC_CMD"; then
29973218 AC_MSG_RESULT($MAGIC_CMD)
29983219 else
30103231
30113232 # _LT_PATH_MAGIC
30123233 # --------------
3013 # find a file program which can recognize a shared library
3234 # find a file program that can recognize a shared library
30143235 m4_defun([_LT_PATH_MAGIC],
30153236 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
30163237 if test -z "$lt_cv_path_MAGIC_CMD"; then
30373258 AC_ARG_WITH([gnu-ld],
30383259 [AS_HELP_STRING([--with-gnu-ld],
30393260 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3040 [test "$withval" = no || with_gnu_ld=yes],
3261 [test no = "$withval" || with_gnu_ld=yes],
30413262 [with_gnu_ld=no])dnl
30423263
30433264 ac_prog=ld
3044 if test "$GCC" = yes; then
3265 if test yes = "$GCC"; then
30453266 # Check if gcc -print-prog-name=ld gives a path.
30463267 AC_MSG_CHECKING([for ld used by $CC])
30473268 case $host in
30483269 *-*-mingw*)
3049 # gcc leaves a trailing carriage return which upsets mingw
3270 # gcc leaves a trailing carriage return, which upsets mingw
30503271 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
30513272 *)
30523273 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
30603281 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
30613282 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
30623283 done
3063 test -z "$LD" && LD="$ac_prog"
3284 test -z "$LD" && LD=$ac_prog
30643285 ;;
30653286 "")
30663287 # If it fails, then pretend we aren't using GCC.
30713292 with_gnu_ld=unknown
30723293 ;;
30733294 esac
3074 elif test "$with_gnu_ld" = yes; then
3295 elif test yes = "$with_gnu_ld"; then
30753296 AC_MSG_CHECKING([for GNU ld])
30763297 else
30773298 AC_MSG_CHECKING([for non-GNU ld])
30783299 fi
30793300 AC_CACHE_VAL(lt_cv_path_LD,
30803301 [if test -z "$LD"; then
3081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3302 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
30823303 for ac_dir in $PATH; do
3083 IFS="$lt_save_ifs"
3304 IFS=$lt_save_ifs
30843305 test -z "$ac_dir" && ac_dir=.
30853306 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"
3307 lt_cv_path_LD=$ac_dir/$ac_prog
30873308 # Check to see if the program is GNU ld. I'd rather use --version,
30883309 # but apparently some variants of GNU ld only accept -v.
30893310 # Break only if it was the GNU/non-GNU ld that we prefer.
30903311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
30913312 *GNU* | *'with BFD'*)
3092 test "$with_gnu_ld" != no && break
3313 test no != "$with_gnu_ld" && break
30933314 ;;
30943315 *)
3095 test "$with_gnu_ld" != yes && break
3316 test yes != "$with_gnu_ld" && break
30963317 ;;
30973318 esac
30983319 fi
30993320 done
3100 IFS="$lt_save_ifs"
3321 IFS=$lt_save_ifs
31013322 else
3102 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3323 lt_cv_path_LD=$LD # Let the user override the test with a path.
31033324 fi])
3104 LD="$lt_cv_path_LD"
3325 LD=$lt_cv_path_LD
31053326 if test -n "$LD"; then
31063327 AC_MSG_RESULT($LD)
31073328 else
31553376 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31563377 case $host_os in
31573378 cygwin* | mingw* | pw32* | cegcc*)
3158 if test "$GCC" != yes; then
3379 if test yes != "$GCC"; then
31593380 reload_cmds=false
31603381 fi
31613382 ;;
31623383 darwin*)
3163 if test "$GCC" = yes; then
3164 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3384 if test yes = "$GCC"; then
3385 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
31653386 else
31663387 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31673388 fi
31703391 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
31713392 _LT_TAGDECL([], [reload_cmds], [2])dnl
31723393 ])# _LT_CMD_RELOAD
3394
3395
3396 # _LT_PATH_DD
3397 # -----------
3398 # find a working dd
3399 m4_defun([_LT_PATH_DD],
3400 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3401 [printf 0123456789abcdef0123456789abcdef >conftest.i
3402 cat conftest.i conftest.i >conftest2.i
3403 : ${lt_DD:=$DD}
3404 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3405 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3406 cmp -s conftest.i conftest.out \
3407 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3408 fi])
3409 rm -f conftest.i conftest2.i conftest.out])
3410 ])# _LT_PATH_DD
3411
3412
3413 # _LT_CMD_TRUNCATE
3414 # ----------------
3415 # find command to truncate a binary pipe
3416 m4_defun([_LT_CMD_TRUNCATE],
3417 [m4_require([_LT_PATH_DD])
3418 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3419 [printf 0123456789abcdef0123456789abcdef >conftest.i
3420 cat conftest.i conftest.i >conftest2.i
3421 lt_cv_truncate_bin=
3422 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3423 cmp -s conftest.i conftest.out \
3424 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3425 fi
3426 rm -f conftest.i conftest2.i conftest.out
3427 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3428 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3429 [Command to truncate a binary pipe])
3430 ])# _LT_CMD_TRUNCATE
31733431
31743432
31753433 # _LT_CHECK_MAGIC_METHOD
31873445 # Need to set the preceding variable on all platforms that support
31883446 # interlibrary dependencies.
31893447 # 'none' -- dependencies not supported.
3190 # `unknown' -- same as none, but documents that we really don't know.
3448 # 'unknown' -- same as none, but documents that we really don't know.
31913449 # 'pass_all' -- all dependencies passed with no checks.
31923450 # 'test_compile' -- check by making test program.
31933451 # '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.
3452 # that responds to the $file_magic_cmd with a given extended regex.
3453 # If you have 'file' or equivalent on your system and you're not sure
3454 # whether 'pass_all' will *always* work, you probably want this one.
31973455
31983456 case $host_os in
31993457 aix[[4-9]]*)
32203478 # Base MSYS/MinGW do not provide the 'file' command needed by
32213479 # func_win32_libid shell function, so use a weaker test based on 'objdump',
32223480 # 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
3481 if ( file / ) >/dev/null 2>&1; then
32253482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32263483 lt_cv_file_magic_cmd='func_win32_libid'
32273484 else
33173574 lt_cv_deplibs_check_method=pass_all
33183575 ;;
33193576
3320 openbsd*)
3321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3577 openbsd* | bitrig*)
3578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
33223579 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
33233580 else
33243581 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
33713628 tpf*)
33723629 lt_cv_deplibs_check_method=pass_all
33733630 ;;
3631 os2*)
3632 lt_cv_deplibs_check_method=pass_all
3633 ;;
33743634 esac
33753635 ])
33763636
34113671 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
34123672 [if test -n "$NM"; then
34133673 # Let the user override the test.
3414 lt_cv_path_NM="$NM"
3674 lt_cv_path_NM=$NM
34153675 else
3416 lt_nm_to_check="${ac_tool_prefix}nm"
3676 lt_nm_to_check=${ac_tool_prefix}nm
34173677 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
34183678 lt_nm_to_check="$lt_nm_to_check nm"
34193679 fi
34203680 for lt_tmp_nm in $lt_nm_to_check; do
3421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3681 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
34223682 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3423 IFS="$lt_save_ifs"
3683 IFS=$lt_save_ifs
34243684 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
3685 tmp_nm=$ac_dir/$lt_tmp_nm
3686 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
34273687 # Check to see if the nm accepts a BSD-compat flag.
3428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3688 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
34293689 # nm: unknown option "B" ignored
34303690 # 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'*)
3691 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3692 case $build_os in
3693 mingw*) lt_bad_file=conftest.nm/nofile ;;
3694 *) lt_bad_file=/dev/null ;;
3695 esac
3696 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3697 *$lt_bad_file* | *'Invalid file or object type'*)
34333698 lt_cv_path_NM="$tmp_nm -B"
3434 break
3699 break 2
34353700 ;;
34363701 *)
34373702 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34383703 */dev/null*)
34393704 lt_cv_path_NM="$tmp_nm -p"
3440 break
3705 break 2
34413706 ;;
34423707 *)
34433708 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34483713 esac
34493714 fi
34503715 done
3451 IFS="$lt_save_ifs"
3716 IFS=$lt_save_ifs
34523717 done
34533718 : ${lt_cv_path_NM=no}
34543719 fi])
3455 if test "$lt_cv_path_NM" != "no"; then
3456 NM="$lt_cv_path_NM"
3720 if test no != "$lt_cv_path_NM"; then
3721 NM=$lt_cv_path_NM
34573722 else
34583723 # Didn't find any BSD compatible name lister, look for dumpbin.
34593724 if test -n "$DUMPBIN"; then :
34603725 # Let the user override the test.
34613726 else
34623727 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3463 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3728 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
34643729 *COFF*)
3465 DUMPBIN="$DUMPBIN -symbols"
3730 DUMPBIN="$DUMPBIN -symbols -headers"
34663731 ;;
34673732 *)
34683733 DUMPBIN=:
34703735 esac
34713736 fi
34723737 AC_SUBST([DUMPBIN])
3473 if test "$DUMPBIN" != ":"; then
3474 NM="$DUMPBIN"
3738 if test : != "$DUMPBIN"; then
3739 NM=$DUMPBIN
34753740 fi
34763741 fi
34773742 test -z "$NM" && NM=nm
35173782
35183783 case $host_os in
35193784 cygwin* | mingw* | pw32* | cegcc*)
3520 # two different shell functions defined in ltmain.sh
3521 # decide which to use based on capabilities of $DLLTOOL
3785 # two different shell functions defined in ltmain.sh;
3786 # decide which one to use based on capabilities of $DLLTOOL
35223787 case `$DLLTOOL --help 2>&1` in
35233788 *--identify-strict*)
35243789 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
35303795 ;;
35313796 *)
35323797 # fallback: assume linklib IS sharedlib
3533 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3798 lt_cv_sharedlib_from_linklib_cmd=$ECHO
35343799 ;;
35353800 esac
35363801 ])
35573822 lt_cv_path_mainfest_tool=yes
35583823 fi
35593824 rm -f conftest*])
3560 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3825 if test yes != "$lt_cv_path_mainfest_tool"; then
35613826 MANIFEST_TOOL=:
35623827 fi
35633828 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
35643829 ])# _LT_PATH_MANIFEST_TOOL
3830
3831
3832 # _LT_DLL_DEF_P([FILE])
3833 # ---------------------
3834 # True iff FILE is a Windows DLL '.def' file.
3835 # Keep in sync with func_dll_def_p in the libtool script
3836 AC_DEFUN([_LT_DLL_DEF_P],
3837 [dnl
3838 test DEF = "`$SED -n dnl
3839 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3840 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3841 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3842 -e q dnl Only consider the first "real" line
3843 $1`" dnl
3844 ])# _LT_DLL_DEF_P
35653845
35663846
35673847 # LT_LIB_M
35753855 # These system don't have libm, or don't need it
35763856 ;;
35773857 *-ncr-sysv4.3*)
3578 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3858 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
35793859 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
35803860 ;;
35813861 *)
3582 AC_CHECK_LIB(m, cos, LIBM="-lm")
3862 AC_CHECK_LIB(m, cos, LIBM=-lm)
35833863 ;;
35843864 esac
35853865 AC_SUBST([LIBM])
35983878
35993879 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
36003880
3601 if test "$GCC" = yes; then
3881 if test yes = "$GCC"; then
36023882 case $cc_basename in
36033883 nvcc*)
36043884 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
36503930 symcode='[[ABCDGISTW]]'
36513931 ;;
36523932 hpux*)
3653 if test "$host_cpu" = ia64; then
3933 if test ia64 = "$host_cpu"; then
36543934 symcode='[[ABCDEGRST]]'
36553935 fi
36563936 ;;
36833963 symcode='[[ABCDGIRSTW]]' ;;
36843964 esac
36853965
3966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3967 # Gets list of data symbols to import.
3968 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3969 # Adjust the below global symbol transforms to fixup imported variables.
3970 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3971 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3972 lt_c_name_lib_hook="\
3973 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3974 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3975 else
3976 # Disable hooks by default.
3977 lt_cv_sys_global_symbol_to_import=
3978 lt_cdecl_hook=
3979 lt_c_name_hook=
3980 lt_c_name_lib_hook=
3981 fi
3982
36863983 # Transform an extracted symbol line into a proper C declaration.
36873984 # Some systems (esp. on ia64) link data and code symbols differently,
36883985 # 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'"
3986 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3987 $lt_cdecl_hook\
3988 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3989 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
36903990
36913991 # 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'"
3992 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
3993 $lt_c_name_hook\
3994 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3995 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3996
3997 # Transform an extracted symbol line into symbol name with lib prefix and
3998 # symbol address.
3999 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4000 $lt_c_name_lib_hook\
4001 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4002 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4003 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
36944004
36954005 # Handle CRLF in mingw tool chain
36964006 opt_cr=
37084018
37094019 # Write the raw and C identifiers.
37104020 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.
4021 # Fake it for dumpbin and say T for any non-static function,
4022 # D for any global variable and I for any imported variable.
37134023 # Also find C++ and __fastcall symbols from MSVC++,
37144024 # which start with @ or ?.
37154025 lt_cv_sys_global_symbol_pipe="$AWK ['"\
37164026 " {last_section=section; section=\$ 3};"\
37174027 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37184028 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4029 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4030 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4031 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
37194032 " \$ 0!~/External *\|/{next};"\
37204033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37214034 " {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))}"\
4035 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4036 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4037 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4038 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
37264039 " ' prfx=^$ac_symprfx]"
37274040 else
37284041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37494062 if AC_TRY_EVAL(ac_compile); then
37504063 # Now try to grab the symbols.
37514064 nlist=conftest.nm
3752 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4065 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
4066 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
37534067 # Try sorting and uniquifying the output.
37544068 if sort "$nlist" | uniq > "$nlist"T; then
37554069 mv -f "$nlist"T "$nlist"
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'
4704 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4705 ;;
4706 # flang / f18. f95 an alias for gfortran or flang on Debian
4707 flang* | f18* | f95*)
4708 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4709 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
43554710 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
43564711 ;;
43574712 # icc used to be incompatible with GCC.
43724727 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
43734728 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
43744729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4730 ;;
4731 tcc*)
4732 # Fabrice Bellard et al's Tiny C Compiler
4733 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4734 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4735 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
43754736 ;;
43764737 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
43774738 # Portland Group compilers (*not* the Pentium gcc compiler,
44704831 ;;
44714832
44724833 sysv4*MP*)
4473 if test -d /usr/nec ;then
4834 if test -d /usr/nec; then
44744835 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
44754836 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44764837 fi
44994860 fi
45004861 ])
45014862 case $host_os in
4502 # For platforms which do not support PIC, -DPIC is meaningless:
4863 # For platforms that do not support PIC, -DPIC is meaningless:
45034864 *djgpp*)
45044865 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
45054866 ;;
45654926 case $host_os in
45664927 aix[[4-9]]*)
45674928 # 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".
4929 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4930 # Without the "-l" option, or with the "-B" option, AIX nm treats
4931 # weak defined symbols like other global defined symbols, whereas
4932 # GNU nm marks them as "W".
4933 # While the 'weak' keyword is ignored in the Export File, we need
4934 # it in the Import File for the 'aix-soname' feature, so we have
4935 # to replace the "-B" option with "-P" for AIX nm.
45714936 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'
4937 _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'
45734938 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'
4939 _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'
45754940 fi
45764941 ;;
45774942 pw32*)
4578 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4943 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
45794944 ;;
45804945 cygwin* | mingw* | cegcc*)
45814946 case $cc_basename in
46244989 # included in the symbol list
46254990 _LT_TAGVAR(include_expsyms, $1)=
46264991 # 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'.
4992 # it will be wrapped by ' (' and ')$', so one must not match beginning or
4993 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4994 # as well as any symbol that contains 'd'.
46304995 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
46314996 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46324997 # platforms (ab)use it in PIC code, but their linkers get confused if
46425007 # FIXME: the MSVC++ port hasn't been tested in a loooong time
46435008 # When not using gcc, we currently assume that we are using
46445009 # Microsoft Visual C++.
4645 if test "$GCC" != yes; then
5010 if test yes != "$GCC"; then
46465011 with_gnu_ld=no
46475012 fi
46485013 ;;
46505015 # we just hope/assume this is gcc and not c89 (= MSVC++)
46515016 with_gnu_ld=yes
46525017 ;;
4653 openbsd*)
5018 openbsd* | bitrig*)
46545019 with_gnu_ld=no
46555020 ;;
46565021 linux* | k*bsd*-gnu | gnu*)
46635028 # On some targets, GNU ld is compatible enough with the native linker
46645029 # that we're better off using the native interface for both.
46655030 lt_use_gnu_ld_interface=no
4666 if test "$with_gnu_ld" = yes; then
5031 if test yes = "$with_gnu_ld"; then
46675032 case $host_os in
46685033 aix*)
46695034 # The AIX port of GNU ld has always aspired to compatibility
46855050 esac
46865051 fi
46875052
4688 if test "$lt_use_gnu_ld_interface" = yes; then
5053 if test yes = "$lt_use_gnu_ld_interface"; then
46895054 # If archive_cmds runs LD, not CC, wlarc should be empty
4690 wlarc='${wl}'
5055 wlarc='$wl'
46915056
46925057 # Set some defaults for GNU ld with shared library support. These
46935058 # are reset later if shared libraries are not supported. Putting them
46945059 # here allows them to be overridden if necessary.
46955060 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'
5061 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
46985063 # ancient GNU ld didn't support --whole-archive et. al.
46995064 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'
5065 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47015066 else
47025067 _LT_TAGVAR(whole_archive_flag_spec, $1)=
47035068 fi
47045069 supports_anon_versioning=no
4705 case `$LD -v 2>&1` in
5070 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
47065071 *GNU\ gold*) supports_anon_versioning=yes ;;
47075072 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
47085073 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47155080 case $host_os in
47165081 aix[[3-9]]*)
47175082 # On AIX/PPC, the GNU linker is very broken
4718 if test "$host_cpu" != ia64; then
5083 if test ia64 != "$host_cpu"; then
47195084 _LT_TAGVAR(ld_shlibs, $1)=no
47205085 cat <<_LT_EOF 1>&2
47215086
47345099 case $host_cpu in
47355100 powerpc)
47365101 # see comment about AmigaOS4 .so support
4737 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5102 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47385103 _LT_TAGVAR(archive_expsym_cmds, $1)=''
47395104 ;;
47405105 m68k)
47505115 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47515116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47525117 # 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'
5118 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47545119 else
47555120 _LT_TAGVAR(ld_shlibs, $1)=no
47565121 fi
47605125 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
47615126 # as there is no search path for DLLs.
47625127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5128 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
47645129 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47655130 _LT_TAGVAR(always_export_symbols, $1)=no
47665131 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47685133 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
47695134
47705135 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'
5136 _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'
5137 # If the export-symbols file already is a .def file, use it as
5138 # is; otherwise, prepend EXPORTS...
5139 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5140 cp $export_symbols $output_objdir/$soname.def;
5141 else
5142 echo EXPORTS > $output_objdir/$soname.def;
5143 cat $export_symbols >> $output_objdir/$soname.def;
5144 fi~
5145 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
47815146 else
47825147 _LT_TAGVAR(ld_shlibs, $1)=no
47835148 fi
47845149 ;;
47855150
47865151 haiku*)
4787 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5152 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47885153 _LT_TAGVAR(link_all_deplibs, $1)=yes
5154 ;;
5155
5156 os2*)
5157 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5158 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5159 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5160 shrext_cmds=.dll
5161 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5162 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5163 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5164 $ECHO EXPORTS >> $output_objdir/$libname.def~
5165 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5166 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5167 emximp -o $lib $output_objdir/$libname.def'
5168 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5169 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5170 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5171 $ECHO EXPORTS >> $output_objdir/$libname.def~
5172 prefix_cmds="$SED"~
5173 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5174 prefix_cmds="$prefix_cmds -e 1d";
5175 fi~
5176 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5177 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5178 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5179 emximp -o $lib $output_objdir/$libname.def'
5180 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5181 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47895182 ;;
47905183
47915184 interix[[3-9]]*)
47925185 _LT_TAGVAR(hardcode_direct, $1)=no
47935186 _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'
5187 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5188 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
47965189 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
47975190 # Instead, shared libraries are loaded at an image base (0x10000000 by
47985191 # default) and relocated if they conflict, which is a slow very memory
47995192 # consuming and fragmenting process. To avoid this, we pick a random,
48005193 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
48015194 # 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'
5195 _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'
5196 _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'
48045197 ;;
48055198
48065199 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
48075200 tmp_diet=no
4808 if test "$host_os" = linux-dietlibc; then
5201 if test linux-dietlibc = "$host_os"; then
48095202 case $cc_basename in
48105203 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
48115204 esac
48125205 fi
48135206 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4814 && test "$tmp_diet" = no
5207 && test no = "$tmp_diet"
48155208 then
48165209 tmp_addflag=' $pic_flag'
48175210 tmp_sharedflag='-shared'
48185211 case $cc_basename,$host_cpu in
48195212 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'
5213 _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'
48215214 tmp_addflag=' $pic_flag'
48225215 ;;
48235216 pgf77* | pgf90* | pgf95* | pgfortran*)
48245217 # 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'
5218 _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'
48265219 tmp_addflag=' $pic_flag -Mnomain' ;;
48275220 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
48285221 tmp_addflag=' -i_dynamic' ;;
48335226 lf95*) # Lahey Fortran 8.1
48345227 _LT_TAGVAR(whole_archive_flag_spec, $1)=
48355228 tmp_sharedflag='--shared' ;;
5229 nagfor*) # NAGFOR 5.3
5230 tmp_sharedflag='-Wl,-shared' ;;
48365231 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
48375232 tmp_sharedflag='-qmkshrobj'
48385233 tmp_addflag= ;;
48395234 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'
5235 _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'
48415236 _LT_TAGVAR(compiler_needs_object, $1)=yes
48425237 ;;
48435238 esac
48445239 case `$CC -V 2>&1 | sed 5q` in
48455240 *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'
5241 _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'
48475242 _LT_TAGVAR(compiler_needs_object, $1)=yes
48485243 tmp_sharedflag='-G' ;;
48495244 *Sun\ F*) # Sun Fortran 8.3
48505245 tmp_sharedflag='-G' ;;
48515246 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
5247 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5248
5249 if test yes = "$supports_anon_versioning"; then
48555250 _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'
5251 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5252 echo "local: *; };" >> $output_objdir/$libname.ver~
5253 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
48595254 fi
48605255
48615256 case $cc_basename in
5257 tcc*)
5258 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5259 ;;
48625260 xlf* | bgf* | bgxlf* | mpixlf*)
48635261 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48645262 _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'
5263 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
48665264 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4867 if test "x$supports_anon_versioning" = xyes; then
5265 if test yes = "$supports_anon_versioning"; then
48685266 _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'
5267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5268 echo "local: *; };" >> $output_objdir/$libname.ver~
5269 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48725270 fi
48735271 ;;
48745272 esac
48825280 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48835281 wlarc=
48845282 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'
5283 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5284 _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'
48875285 fi
48885286 ;;
48895287
49015299
49025300 _LT_EOF
49035301 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'
5302 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5303 _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'
49065304 else
49075305 _LT_TAGVAR(ld_shlibs, $1)=no
49085306 fi
49145312 _LT_TAGVAR(ld_shlibs, $1)=no
49155313 cat <<_LT_EOF 1>&2
49165314
4917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
49185316 *** reliably create shared libraries on SCO systems. Therefore, libtool
49195317 *** is disabling shared libraries support. We urge you to upgrade GNU
49205318 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
49295327 # DT_RUNPATH tag from executables and libraries. But doing so
49305328 # requires that you compile everything twice, which is a pain.
49315329 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'
5330 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5331 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5332 _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'
49355333 else
49365334 _LT_TAGVAR(ld_shlibs, $1)=no
49375335 fi
49485346
49495347 *)
49505348 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'
5349 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5350 _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'
49535351 else
49545352 _LT_TAGVAR(ld_shlibs, $1)=no
49555353 fi
49565354 ;;
49575355 esac
49585356
4959 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5357 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
49605358 runpath_var=
49615359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
49625360 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
49725370 # Note: this linker hardcodes the directories in LIBPATH if there
49735371 # are no directories specified by -L.
49745372 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4975 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5373 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
49765374 # Neither direct hardcoding nor static linking is supported with a
49775375 # broken collect2.
49785376 _LT_TAGVAR(hardcode_direct, $1)=unsupported
49805378 ;;
49815379
49825380 aix[[4-9]]*)
4983 if test "$host_cpu" = ia64; then
5381 if test ia64 = "$host_cpu"; then
49845382 # On IA64, the linker does run time linking by default, so we don't
49855383 # have to do anything special.
49865384 aix_use_runtimelinking=no
49875385 exp_sym_flag='-Bexport'
4988 no_entry_flag=""
5386 no_entry_flag=
49895387 else
49905388 # 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".
5389 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5390 # Without the "-l" option, or with the "-B" option, AIX nm treats
5391 # weak defined symbols like other global defined symbols, whereas
5392 # GNU nm marks them as "W".
5393 # While the 'weak' keyword is ignored in the Export File, we need
5394 # it in the Import File for the 'aix-soname' feature, so we have
5395 # to replace the "-B" option with "-P" for AIX nm.
49945396 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'
5397 _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'
49965398 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'
5399 _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'
49985400 fi
49995401 aix_use_runtimelinking=no
50005402
50015403 # Test if we are trying to use run time linking or normal
50025404 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5003 # need to do runtime linking.
5405 # have runtime linking enabled, and use it for executables.
5406 # For shared libraries, we enable/disable runtime linking
5407 # depending on the kind of the shared library created -
5408 # when "with_aix_soname,aix_use_runtimelinking" is:
5409 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5410 # "aix,yes" lib.so shared, rtl:yes, for executables
5411 # lib.a static archive
5412 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5413 # lib.a(lib.so.V) shared, rtl:no, for executables
5414 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5415 # lib.a(lib.so.V) shared, rtl:no
5416 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5417 # lib.a static archive
50045418 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
50055419 for ld_flag in $LDFLAGS; do
5006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5420 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
50075421 aix_use_runtimelinking=yes
50085422 break
50095423 fi
50105424 done
5425 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5426 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5427 # so we don't have lib.a shared libs to link our executables.
5428 # We have to force runtime linking in this case.
5429 aix_use_runtimelinking=yes
5430 LDFLAGS="$LDFLAGS -Wl,-brtl"
5431 fi
50115432 ;;
50125433 esac
50135434
50265447 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
50275448 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
50285449 _LT_TAGVAR(link_all_deplibs, $1)=yes
5029 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5030
5031 if test "$GCC" = yes; then
5450 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5451 case $with_aix_soname,$aix_use_runtimelinking in
5452 aix,*) ;; # traditional, no import file
5453 svr4,* | *,yes) # use import file
5454 # The Import File defines what to hardcode.
5455 _LT_TAGVAR(hardcode_direct, $1)=no
5456 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5457 ;;
5458 esac
5459
5460 if test yes = "$GCC"; then
50325461 case $host_os in aix4.[[012]]|aix4.[[012]].*)
50335462 # We only want to do this on AIX 4.2 and lower, the check
50345463 # below for broken collect2 doesn't work under 4.3+
5035 collect2name=`${CC} -print-prog-name=collect2`
5464 collect2name=`$CC -print-prog-name=collect2`
50365465 if test -f "$collect2name" &&
50375466 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50385467 then
50515480 ;;
50525481 esac
50535482 shared_flag='-shared'
5054 if test "$aix_use_runtimelinking" = yes; then
5055 shared_flag="$shared_flag "'${wl}-G'
5483 if test yes = "$aix_use_runtimelinking"; then
5484 shared_flag="$shared_flag "'$wl-G'
50565485 fi
5057 _LT_TAGVAR(link_all_deplibs, $1)=no
5486 # Need to ensure runtime linking is disabled for the traditional
5487 # shared library, or the linker may eventually find shared libraries
5488 # /with/ Import File - we do not want to mix them.
5489 shared_flag_aix='-shared'
5490 shared_flag_svr4='-shared $wl-G'
50585491 else
50595492 # not using gcc
5060 if test "$host_cpu" = ia64; then
5493 if test ia64 = "$host_cpu"; then
50615494 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50625495 # chokes on -Wl,-G. The following line is correct:
50635496 shared_flag='-G'
50645497 else
5065 if test "$aix_use_runtimelinking" = yes; then
5066 shared_flag='${wl}-G'
5498 if test yes = "$aix_use_runtimelinking"; then
5499 shared_flag='$wl-G'
50675500 else
5068 shared_flag='${wl}-bM:SRE'
5501 shared_flag='$wl-bM:SRE'
50695502 fi
5503 shared_flag_aix='$wl-bM:SRE'
5504 shared_flag_svr4='$wl-G'
50705505 fi
50715506 fi
50725507
5073 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5508 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
50745509 # It seems that -bexpall does not export symbols beginning with
50755510 # underscore (_), so it is better to generate a list of symbols to export.
50765511 _LT_TAGVAR(always_export_symbols, $1)=yes
5077 if test "$aix_use_runtimelinking" = yes; then
5512 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
50785513 # Warning - without using the other runtime loading flags (-brtl),
50795514 # -berok will link without error, but may produce a broken library.
50805515 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
50815516 # Determine the default libpath from the value encoded in an
50825517 # empty executable.
50835518 _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"
5519 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5520 _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
50865521 else
5087 if test "$host_cpu" = ia64; then
5088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5522 if test ia64 = "$host_cpu"; then
5523 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
50895524 _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"
5525 _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"
50915526 else
50925527 # Determine the default libpath from the value encoded in an
50935528 # empty executable.
50945529 _LT_SYS_MODULE_PATH_AIX([$1])
5095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5530 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
50965531 # Warning - without using the other run time loading flags,
50975532 # -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
5533 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5534 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5535 if test yes = "$with_gnu_ld"; then
51015536 # 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'
5537 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
51035538 else
51045539 # Exported symbols can be pulled into shared objects from archives
51055540 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
51065541 fi
51075542 _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'
5543 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5544 # -brtl affects multiple linker settings, -berok does not and is overridden later
5545 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5546 if test svr4 != "$with_aix_soname"; then
5547 # This is similar to how AIX traditionally builds its shared libraries.
5548 _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'
5549 fi
5550 if test aix != "$with_aix_soname"; then
5551 _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'
5552 else
5553 # used by -dlpreopen to get the symbols
5554 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5555 fi
5556 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
51105557 fi
51115558 fi
51125559 ;;
51155562 case $host_cpu in
51165563 powerpc)
51175564 # see comment about AmigaOS4 .so support
5118 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5565 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
51195566 _LT_TAGVAR(archive_expsym_cmds, $1)=''
51205567 ;;
51215568 m68k)
51455592 # Tell ltmain to make .lib files, not .a files.
51465593 libext=lib
51475594 # Tell ltmain to make .dll files, not .so files.
5148 shrext_cmds=".dll"
5595 shrext_cmds=.dll
51495596 # 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='
5597 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5598 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5599 cp "$export_symbols" "$output_objdir/$soname.def";
5600 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5601 else
5602 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5603 fi~
5604 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5605 linknames='
51585606 # The linker will not automatically build a static lib if we build a DLL.
51595607 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
51605608 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
51635611 # Don't use ranlib
51645612 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
51655613 _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'
5614 lt_tool_outputfile="@TOOL_OUTPUT@"~
5615 case $lt_outputfile in
5616 *.exe|*.EXE) ;;
5617 *)
5618 lt_outputfile=$lt_outputfile.exe
5619 lt_tool_outputfile=$lt_tool_outputfile.exe
5620 ;;
5621 esac~
5622 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5623 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5624 $RM "$lt_outputfile.manifest";
5625 fi'
51785626 ;;
51795627 *)
51805628 # Assume MSVC wrapper
51835631 # Tell ltmain to make .lib files, not .a files.
51845632 libext=lib
51855633 # Tell ltmain to make .dll files, not .so files.
5186 shrext_cmds=".dll"
5634 shrext_cmds=.dll
51875635 # FIXME: Setting linknames here is a bad hack.
51885636 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
51895637 # The linker will automatically build a .lib file if we build a DLL.
52335681 ;;
52345682
52355683 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'
5684 if test yes = "$GCC"; then
5685 _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'
52385686 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'
5687 _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'
52405688 fi
5241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52425690 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52435691 _LT_TAGVAR(hardcode_direct, $1)=yes
52445692
52455693 # hardcode_minus_L: Not really in the search PATH,
52465694 # but as the default location of the library.
52475695 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5248 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5696 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52495697 ;;
52505698
52515699 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'
5700 if test yes,no = "$GCC,$with_gnu_ld"; then
5701 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52545702 else
52555703 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
52565704 fi
5257 if test "$with_gnu_ld" = no; then
5258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5705 if test no = "$with_gnu_ld"; then
5706 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52595707 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52605708 _LT_TAGVAR(hardcode_direct, $1)=yes
52615709 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5262 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5710 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52635711 # hardcode_minus_L: Not really in the search PATH,
52645712 # but as the default location of the library.
52655713 _LT_TAGVAR(hardcode_minus_L, $1)=yes
52675715 ;;
52685716
52695717 hpux11*)
5270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5718 if test yes,no = "$GCC,$with_gnu_ld"; then
52715719 case $host_cpu in
52725720 hppa*64*)
5273 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5721 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52745722 ;;
52755723 ia64*)
5276 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5724 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52775725 ;;
52785726 *)
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'
5727 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52805728 ;;
52815729 esac
52825730 else
52835731 case $host_cpu in
52845732 hppa*64*)
5285 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5733 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52865734 ;;
52875735 ia64*)
5288 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5736 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52895737 ;;
52905738 *)
52915739 m4_if($1, [], [
52935741 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
52945742 _LT_LINKER_OPTION([if $CC understands -b],
52955743 _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'],
5744 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
52975745 [_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'])
5746 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
52995747 ;;
53005748 esac
53015749 fi
5302 if test "$with_gnu_ld" = no; then
5303 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5750 if test no = "$with_gnu_ld"; then
5751 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
53045752 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53055753
53065754 case $host_cpu in
53115759 *)
53125760 _LT_TAGVAR(hardcode_direct, $1)=yes
53135761 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5314 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5762 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53155763
53165764 # hardcode_minus_L: Not really in the search PATH,
53175765 # but as the default location of the library.
53225770 ;;
53235771
53245772 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'
5773 if test yes = "$GCC"; then
5774 _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'
53275775 # Try to use the -exported_symbol ld option, if it does not
53285776 # work, assume that -exports_file does not work either and
53295777 # implicitly export all symbols.
53305778 # This should be the same for all languages, so no per-tag cache variable.
53315779 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
53325780 [lt_cv_irix_exported_symbol],
5333 [save_LDFLAGS="$LDFLAGS"
5334 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5781 [save_LDFLAGS=$LDFLAGS
5782 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
53355783 AC_LINK_IFELSE(
53365784 [AC_LANG_SOURCE(
53375785 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
53445792 end]])])],
53455793 [lt_cv_irix_exported_symbol=yes],
53465794 [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'
5795 LDFLAGS=$save_LDFLAGS])
5796 if test yes = "$lt_cv_irix_exported_symbol"; then
5797 _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'
53505798 fi
5799 _LT_TAGVAR(link_all_deplibs, $1)=no
53515800 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'
5801 _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'
5802 _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'
53545803 fi
53555804 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5805 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53575806 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53585807 _LT_TAGVAR(inherit_rpath, $1)=yes
53595808 _LT_TAGVAR(link_all_deplibs, $1)=yes
5809 ;;
5810
5811 linux*)
5812 case $cc_basename in
5813 tcc*)
5814 # Fabrice Bellard et al's Tiny C Compiler
5815 _LT_TAGVAR(ld_shlibs, $1)=yes
5816 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5817 ;;
5818 esac
53605819 ;;
53615820
53625821 netbsd* | netbsdelf*-gnu)
53735832 newsos6)
53745833 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
53755834 _LT_TAGVAR(hardcode_direct, $1)=yes
5376 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53775836 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53785837 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53795838 ;;
53815840 *nto* | *qnx*)
53825841 ;;
53835842
5384 openbsd*)
5843 openbsd* | bitrig*)
53855844 if test -f /usr/libexec/ld.so; then
53865845 _LT_TAGVAR(hardcode_direct, $1)=yes
53875846 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53885847 _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
5848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
53905849 _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'
5850 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5852 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53945853 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
5854 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
54055856 fi
54065857 else
54075858 _LT_TAGVAR(ld_shlibs, $1)=no
54125863 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
54135864 _LT_TAGVAR(hardcode_minus_L, $1)=yes
54145865 _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'
5866 shrext_cmds=.dll
5867 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5868 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5869 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5870 $ECHO EXPORTS >> $output_objdir/$libname.def~
5871 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5872 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5873 emximp -o $lib $output_objdir/$libname.def'
5874 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5875 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5876 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5877 $ECHO EXPORTS >> $output_objdir/$libname.def~
5878 prefix_cmds="$SED"~
5879 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5880 prefix_cmds="$prefix_cmds -e 1d";
5881 fi~
5882 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5883 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5884 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5885 emximp -o $lib $output_objdir/$libname.def'
5886 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5887 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54175888 ;;
54185889
54195890 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'
5891 if test yes = "$GCC"; then
5892 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5893 _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'
54235894 else
54245895 _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'
5896 _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'
54265897 fi
54275898 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5899 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54295900 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
54305901 ;;
54315902
54325903 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'
5904 if test yes = "$GCC"; then
5905 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5906 _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'
5907 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54375908 else
54385909 _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'
5910 _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'
54405911 _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'
5912 $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'
54425913
54435914 # Both c and cxx compiler support -rpath directly
54445915 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
54495920
54505921 solaris*)
54515922 _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'
5923 if test yes = "$GCC"; then
5924 wlarc='$wl'
5925 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
54555926 _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'
5927 $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'
54575928 else
54585929 case `$CC -V 2>&1` in
54595930 *"Compilers 5.0"*)
54605931 wlarc=''
5461 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5932 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
54625933 _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'
5934 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
54645935 ;;
54655936 *)
5466 wlarc='${wl}'
5467 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5937 wlarc='$wl'
5938 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
54685939 _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'
5940 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54705941 ;;
54715942 esac
54725943 fi
54765947 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
54775948 *)
54785949 # The compiler driver will combine and reorder linker options,
5479 # but understands `-z linker_flag'. GCC discards it without `$wl',
5950 # but understands '-z linker_flag'. GCC discards it without '$wl',
54805951 # but is careful enough not to reorder.
54815952 # 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'
5953 if test yes = "$GCC"; then
5954 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
54845955 else
54855956 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
54865957 fi
54905961 ;;
54915962
54925963 sunos4*)
5493 if test "x$host_vendor" = xsequent; then
5964 if test sequent = "$host_vendor"; then
54945965 # Use $CC to link under sequent, because it throws in some extra .o
54955966 # 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'
5967 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
54975968 else
54985969 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
54995970 fi
55426013 ;;
55436014
55446015 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5545 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6016 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
55466017 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55476018 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55486019 runpath_var='LD_RUN_PATH'
55496020
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'
6021 if test yes = "$GCC"; then
6022 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6023 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55536024 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'
6025 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6026 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55566027 fi
55576028 ;;
55586029
55596030 sysv5* | sco3.2v5* | sco5v6*)
5560 # Note: We can NOT use -z defs as we might desire, because we do not
6031 # Note: We CANNOT use -z defs as we might desire, because we do not
55616032 # link with -lc, and that would cause any symbols used from libc to
55626033 # always be unresolved, which means just about no library would
55636034 # ever link correctly. If we're not using GNU ld we use -z text
55646035 # though, which does catch some bad symbols but isn't as heavy-handed
55656036 # as -z defs.
5566 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5567 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6037 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6038 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
55686039 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55696040 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
55716042 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
55726043 _LT_TAGVAR(link_all_deplibs, $1)=yes
5573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6044 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
55746045 runpath_var='LD_RUN_PATH'
55756046
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'
6047 if test yes = "$GCC"; then
6048 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6049 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55796050 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'
6051 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6052 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55826053 fi
55836054 ;;
55846055
55936064 ;;
55946065 esac
55956066
5596 if test x$host_vendor = xsni; then
6067 if test sni = "$host_vendor"; then
55976068 case $host in
55986069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5599 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6070 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
56006071 ;;
56016072 esac
56026073 fi
56036074 fi
56046075 ])
56056076 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5606 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6077 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
56076078
56086079 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
56096080
56206091 # Assume -lc should be added
56216092 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56226093
5623 if test "$enable_shared" = yes && test "$GCC" = yes; then
6094 if test yes,yes = "$GCC,$enable_shared"; then
56246095 case $_LT_TAGVAR(archive_cmds, $1) in
56256096 *'~'*)
56266097 # FIXME: we may have to deal with multi-command sequences.
57006171 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
57016172 [Whether we need a single "-rpath" flag with a separated argument])
57026173 _LT_TAGDECL([], [hardcode_direct], [0],
5703 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6174 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57046175 DIR into the resulting binary])
57056176 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5706 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6177 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57076178 DIR into the resulting binary and the resulting library dependency is
5708 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6179 "absolute", i.e impossible to change by setting $shlibpath_var if the
57096180 library is relocated])
57106181 _LT_TAGDECL([], [hardcode_minus_L], [0],
57116182 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57466217 # ------------------------
57476218 # Ensure that the configuration variables for a C compiler are suitably
57486219 # defined. These variables are subsequently used by _LT_CONFIG to write
5749 # the compiler configuration to `libtool'.
6220 # the compiler configuration to 'libtool'.
57506221 m4_defun([_LT_LANG_C_CONFIG],
57516222 [m4_require([_LT_DECL_EGREP])dnl
5752 lt_save_CC="$CC"
6223 lt_save_CC=$CC
57536224 AC_LANG_PUSH(C)
57546225
57556226 # Source file extension for C test sources.
57896260 LT_SYS_DLOPEN_SELF
57906261 _LT_CMD_STRIPLIB
57916262
5792 # Report which library types will actually be built
6263 # Report what library types will actually be built
57936264 AC_MSG_CHECKING([if libtool supports shared libraries])
57946265 AC_MSG_RESULT([$can_build_shared])
57956266
57966267 AC_MSG_CHECKING([whether to build shared libraries])
5797 test "$can_build_shared" = "no" && enable_shared=no
6268 test no = "$can_build_shared" && enable_shared=no
57986269
57996270 # On AIX, shared libraries and static libraries use the same namespace, and
58006271 # are all built from PIC.
58016272 case $host_os in
58026273 aix3*)
5803 test "$enable_shared" = yes && enable_static=no
6274 test yes = "$enable_shared" && enable_static=no
58046275 if test -n "$RANLIB"; then
58056276 archive_cmds="$archive_cmds~\$RANLIB \$lib"
58066277 postinstall_cmds='$RANLIB $lib'
58086279 ;;
58096280
58106281 aix[[4-9]]*)
5811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5812 test "$enable_shared" = yes && enable_static=no
6282 if test ia64 != "$host_cpu"; then
6283 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6284 yes,aix,yes) ;; # shared object as lib.so file only
6285 yes,svr4,*) ;; # shared object as lib.so archive member only
6286 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6287 esac
58136288 fi
58146289 ;;
58156290 esac
58176292
58186293 AC_MSG_CHECKING([whether to build static libraries])
58196294 # Make sure either enable_shared or enable_static is yes.
5820 test "$enable_shared" = yes || enable_static=yes
6295 test yes = "$enable_shared" || enable_static=yes
58216296 AC_MSG_RESULT([$enable_static])
58226297
58236298 _LT_CONFIG($1)
58246299 fi
58256300 AC_LANG_POP
5826 CC="$lt_save_CC"
6301 CC=$lt_save_CC
58276302 ])# _LT_LANG_C_CONFIG
58286303
58296304
58316306 # --------------------------
58326307 # Ensure that the configuration variables for a C++ compiler are suitably
58336308 # defined. These variables are subsequently used by _LT_CONFIG to write
5834 # the compiler configuration to `libtool'.
6309 # the compiler configuration to 'libtool'.
58356310 m4_defun([_LT_LANG_CXX_CONFIG],
58366311 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
58376312 m4_require([_LT_DECL_EGREP])dnl
58386313 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
6314 if test -n "$CXX" && ( test no != "$CXX" &&
6315 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6316 (test g++ != "$CXX"))); then
58426317 AC_PROG_CXXCPP
58436318 else
58446319 _lt_caught_CXX_error=yes
58806355 # the CXX compiler isn't working. Some variables (like enable_shared)
58816356 # are currently assumed to apply to all compilers on this platform,
58826357 # and will be corrupted by setting them based on a non-working compiler.
5883 if test "$_lt_caught_CXX_error" != yes; then
6358 if test yes != "$_lt_caught_CXX_error"; then
58846359 # Code to be used in simple compile tests
58856360 lt_simple_compile_test_code="int some_variable = 0;"
58866361
59226397 if test -n "$compiler"; then
59236398 # We don't want -fno-exception when compiling C++ code, so set the
59246399 # no_builtin_flag separately
5925 if test "$GXX" = yes; then
6400 if test yes = "$GXX"; then
59266401 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
59276402 else
59286403 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
59296404 fi
59306405
5931 if test "$GXX" = yes; then
6406 if test yes = "$GXX"; then
59326407 # Set up default GNU C++ configuration
59336408
59346409 LT_PATH_LD
59356410
59366411 # Check if GNU C++ uses GNU ld as the underlying linker, since the
59376412 # 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'
6413 if test yes = "$with_gnu_ld"; then
6414 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6415 _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'
6416
6417 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6418 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
59446419
59456420 # If archive_cmds runs LD, not CC, wlarc should be empty
59466421 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
59476422 # investigate it a little bit more. (MM)
5948 wlarc='${wl}'
6423 wlarc='$wl'
59496424
59506425 # ancient GNU ld didn't support --whole-archive et. al.
59516426 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
59526427 $GREP 'no-whole-archive' > /dev/null; then
5953 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6428 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
59546429 else
59556430 _LT_TAGVAR(whole_archive_flag_spec, $1)=
59566431 fi
59696444 # Commands to make compiler produce verbose output that lists
59706445 # what "hidden" libraries, object files and flags are used when
59716446 # linking a shared library.
5972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
59736448
59746449 else
59756450 GXX=no
59866461 _LT_TAGVAR(ld_shlibs, $1)=no
59876462 ;;
59886463 aix[[4-9]]*)
5989 if test "$host_cpu" = ia64; then
6464 if test ia64 = "$host_cpu"; then
59906465 # On IA64, the linker does run time linking by default, so we don't
59916466 # have to do anything special.
59926467 aix_use_runtimelinking=no
59936468 exp_sym_flag='-Bexport'
5994 no_entry_flag=""
6469 no_entry_flag=
59956470 else
59966471 aix_use_runtimelinking=no
59976472
59986473 # Test if we are trying to use run time linking or normal
59996474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6000 # need to do runtime linking.
6475 # have runtime linking enabled, and use it for executables.
6476 # For shared libraries, we enable/disable runtime linking
6477 # depending on the kind of the shared library created -
6478 # when "with_aix_soname,aix_use_runtimelinking" is:
6479 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6480 # "aix,yes" lib.so shared, rtl:yes, for executables
6481 # lib.a static archive
6482 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6483 # lib.a(lib.so.V) shared, rtl:no, for executables
6484 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6485 # lib.a(lib.so.V) shared, rtl:no
6486 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6487 # lib.a static archive
60016488 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
60026489 for ld_flag in $LDFLAGS; do
60036490 case $ld_flag in
60076494 ;;
60086495 esac
60096496 done
6497 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6498 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6499 # so we don't have lib.a shared libs to link our executables.
6500 # We have to force runtime linking in this case.
6501 aix_use_runtimelinking=yes
6502 LDFLAGS="$LDFLAGS -Wl,-brtl"
6503 fi
60106504 ;;
60116505 esac
60126506
60256519 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
60266520 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
60276521 _LT_TAGVAR(link_all_deplibs, $1)=yes
6028 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6029
6030 if test "$GXX" = yes; then
6522 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6523 case $with_aix_soname,$aix_use_runtimelinking in
6524 aix,*) ;; # no import file
6525 svr4,* | *,yes) # use import file
6526 # The Import File defines what to hardcode.
6527 _LT_TAGVAR(hardcode_direct, $1)=no
6528 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6529 ;;
6530 esac
6531
6532 if test yes = "$GXX"; then
60316533 case $host_os in aix4.[[012]]|aix4.[[012]].*)
60326534 # We only want to do this on AIX 4.2 and lower, the check
60336535 # below for broken collect2 doesn't work under 4.3+
6034 collect2name=`${CC} -print-prog-name=collect2`
6536 collect2name=`$CC -print-prog-name=collect2`
60356537 if test -f "$collect2name" &&
60366538 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
60376539 then
60496551 fi
60506552 esac
60516553 shared_flag='-shared'
6052 if test "$aix_use_runtimelinking" = yes; then
6053 shared_flag="$shared_flag "'${wl}-G'
6554 if test yes = "$aix_use_runtimelinking"; then
6555 shared_flag=$shared_flag' $wl-G'
60546556 fi
6557 # Need to ensure runtime linking is disabled for the traditional
6558 # shared library, or the linker may eventually find shared libraries
6559 # /with/ Import File - we do not want to mix them.
6560 shared_flag_aix='-shared'
6561 shared_flag_svr4='-shared $wl-G'
60556562 else
60566563 # not using gcc
6057 if test "$host_cpu" = ia64; then
6564 if test ia64 = "$host_cpu"; then
60586565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
60596566 # chokes on -Wl,-G. The following line is correct:
60606567 shared_flag='-G'
60616568 else
6062 if test "$aix_use_runtimelinking" = yes; then
6063 shared_flag='${wl}-G'
6569 if test yes = "$aix_use_runtimelinking"; then
6570 shared_flag='$wl-G'
60646571 else
6065 shared_flag='${wl}-bM:SRE'
6572 shared_flag='$wl-bM:SRE'
60666573 fi
6574 shared_flag_aix='$wl-bM:SRE'
6575 shared_flag_svr4='$wl-G'
60676576 fi
60686577 fi
60696578
6070 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6579 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
60716580 # It seems that -bexpall does not export symbols beginning with
60726581 # underscore (_), so it is better to generate a list of symbols to
60736582 # export.
60746583 _LT_TAGVAR(always_export_symbols, $1)=yes
6075 if test "$aix_use_runtimelinking" = yes; then
6584 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
60766585 # Warning - without using the other runtime loading flags (-brtl),
60776586 # -berok will link without error, but may produce a broken library.
6078 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6587 # The "-G" linker flag allows undefined symbols.
6588 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
60796589 # Determine the default libpath from the value encoded in an empty
60806590 # executable.
60816591 _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"
6592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6593
6594 _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
60856595 else
6086 if test "$host_cpu" = ia64; then
6087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6596 if test ia64 = "$host_cpu"; then
6597 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
60886598 _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"
6599 _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"
60906600 else
60916601 # Determine the default libpath from the value encoded in an
60926602 # empty executable.
60936603 _LT_SYS_MODULE_PATH_AIX([$1])
6094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6604 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
60956605 # Warning - without using the other run time loading flags,
60966606 # -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
6607 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6608 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6609 if test yes = "$with_gnu_ld"; then
61006610 # 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'
6611 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
61026612 else
61036613 # Exported symbols can be pulled into shared objects from archives
61046614 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
61056615 fi
61066616 _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'
6617 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6618 # -brtl affects multiple linker settings, -berok does not and is overridden later
6619 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6620 if test svr4 != "$with_aix_soname"; then
6621 # This is similar to how AIX traditionally builds its shared
6622 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6623 _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'
6624 fi
6625 if test aix != "$with_aix_soname"; then
6626 _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'
6627 else
6628 # used by -dlpreopen to get the symbols
6629 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6630 fi
6631 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
61106632 fi
61116633 fi
61126634 ;;
61166638 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61176639 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
61186640 # 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'
6641 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
61206642 else
61216643 _LT_TAGVAR(ld_shlibs, $1)=no
61226644 fi
61446666 # Tell ltmain to make .lib files, not .a files.
61456667 libext=lib
61466668 # Tell ltmain to make .dll files, not .so files.
6147 shrext_cmds=".dll"
6669 shrext_cmds=.dll
61486670 # 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='
6671 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6672 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6673 cp "$export_symbols" "$output_objdir/$soname.def";
6674 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6675 else
6676 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6677 fi~
6678 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6679 linknames='
61576680 # The linker will not automatically build a static lib if we build a DLL.
61586681 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
61596682 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61606683 # Don't use ranlib
61616684 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
61626685 _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'
6686 lt_tool_outputfile="@TOOL_OUTPUT@"~
6687 case $lt_outputfile in
6688 *.exe|*.EXE) ;;
6689 *)
6690 lt_outputfile=$lt_outputfile.exe
6691 lt_tool_outputfile=$lt_tool_outputfile.exe
6692 ;;
6693 esac~
6694 func_to_tool_file "$lt_outputfile"~
6695 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6696 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6697 $RM "$lt_outputfile.manifest";
6698 fi'
61766699 ;;
61776700 *)
61786701 # g++
61796702 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
61806703 # as there is no search path for DLLs.
61816704 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6182 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6705 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
61836706 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61846707 _LT_TAGVAR(always_export_symbols, $1)=no
61856708 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61866709
61876710 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'
6711 _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'
6712 # If the export-symbols file already is a .def file, use it as
6713 # is; otherwise, prepend EXPORTS...
6714 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6715 cp $export_symbols $output_objdir/$soname.def;
6716 else
6717 echo EXPORTS > $output_objdir/$soname.def;
6718 cat $export_symbols >> $output_objdir/$soname.def;
6719 fi~
6720 $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'
61986721 else
61996722 _LT_TAGVAR(ld_shlibs, $1)=no
62006723 fi
62036726 ;;
62046727 darwin* | rhapsody*)
62056728 _LT_DARWIN_LINKER_FEATURES($1)
6729 ;;
6730
6731 os2*)
6732 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6733 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6734 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6735 shrext_cmds=.dll
6736 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6737 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6738 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6739 $ECHO EXPORTS >> $output_objdir/$libname.def~
6740 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6741 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6742 emximp -o $lib $output_objdir/$libname.def'
6743 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6744 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6745 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6746 $ECHO EXPORTS >> $output_objdir/$libname.def~
6747 prefix_cmds="$SED"~
6748 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6749 prefix_cmds="$prefix_cmds -e 1d";
6750 fi~
6751 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6752 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6753 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6754 emximp -o $lib $output_objdir/$libname.def'
6755 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6756 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
62066757 ;;
62076758
62086759 dgux*)
62406791 ;;
62416792
62426793 haiku*)
6243 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6794 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62446795 _LT_TAGVAR(link_all_deplibs, $1)=yes
62456796 ;;
62466797
62476798 hpux9*)
6248 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6799 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62496800 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6250 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6801 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62516802 _LT_TAGVAR(hardcode_direct, $1)=yes
62526803 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
62536804 # but as the default
62596810 _LT_TAGVAR(ld_shlibs, $1)=no
62606811 ;;
62616812 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'
6813 _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'
62636814 # Commands to make compiler produce verbose output that lists
62646815 # what "hidden" libraries, object files and flags are used when
62656816 # linking a shared library.
62686819 # explicitly linking system object files so we need to strip them
62696820 # from the output so that they don't get included in the library
62706821 # 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"'
6822 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"'
62726823 ;;
62736824 *)
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'
6825 if test yes = "$GXX"; then
6826 _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'
62766827 else
62776828 # FIXME: insert proper C++ library support
62786829 _LT_TAGVAR(ld_shlibs, $1)=no
62826833 ;;
62836834
62846835 hpux10*|hpux11*)
6285 if test $with_gnu_ld = no; then
6286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6836 if test no = "$with_gnu_ld"; then
6837 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62876838 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62886839
62896840 case $host_cpu in
62906841 hppa*64*|ia64*)
62916842 ;;
62926843 *)
6293 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6844 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62946845 ;;
62956846 esac
62966847 fi
63166867 aCC*)
63176868 case $host_cpu in
63186869 hppa*64*)
6319 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6870 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63206871 ;;
63216872 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'
6873 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63236874 ;;
63246875 *)
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'
6876 _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'
63266877 ;;
63276878 esac
63286879 # Commands to make compiler produce verbose output that lists
63336884 # explicitly linking system object files so we need to strip them
63346885 # from the output so that they don't get included in the library
63356886 # 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"'
6887 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"'
63376888 ;;
63386889 *)
6339 if test "$GXX" = yes; then
6340 if test $with_gnu_ld = no; then
6890 if test yes = "$GXX"; then
6891 if test no = "$with_gnu_ld"; then
63416892 case $host_cpu in
63426893 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'
6894 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63446895 ;;
63456896 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'
6897 _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'
63476898 ;;
63486899 *)
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'
6900 _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'
63506901 ;;
63516902 esac
63526903 fi
63616912 interix[[3-9]]*)
63626913 _LT_TAGVAR(hardcode_direct, $1)=no
63636914 _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'
6915 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6916 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63666917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
63676918 # Instead, shared libraries are loaded at an image base (0x10000000 by
63686919 # default) and relocated if they conflict, which is a slow very memory
63696920 # consuming and fragmenting process. To avoid this, we pick a random,
63706921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
63716922 # 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'
6923 _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'
6924 _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'
63746925 ;;
63756926 irix5* | irix6*)
63766927 case $cc_basename in
63776928 CC*)
63786929 # 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'
6930 _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'
63806931
63816932 # Archives containing C++ object files must be created using
63826933 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
63856936 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
63866937 ;;
63876938 *)
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'
6939 if test yes = "$GXX"; then
6940 if test no = "$with_gnu_ld"; then
6941 _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'
63916942 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'
6943 _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'
63936944 fi
63946945 fi
63956946 _LT_TAGVAR(link_all_deplibs, $1)=yes
63966947 ;;
63976948 esac
6398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6949 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
63996950 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
64006951 _LT_TAGVAR(inherit_rpath, $1)=yes
64016952 ;;
64086959 # KCC will only create a shared library if the output file
64096960 # ends with ".so" (or ".sl" for HP-UX), so rename the library
64106961 # 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'
6962 _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'
6963 _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'
64136964 # Commands to make compiler produce verbose output that lists
64146965 # what "hidden" libraries, object files and flags are used when
64156966 # linking a shared library.
64186969 # explicitly linking system object files so we need to strip them
64196970 # from the output so that they don't get included in the library
64206971 # 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'
6972 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"'
6973
6974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6975 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
64256976
64266977 # Archives containing C++ object files must be created using
64276978 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
64356986 # earlier do not add the objects themselves.
64366987 case `$CC -V 2>&1` in
64376988 *"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'
6989 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6990 _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'
64406991 ;;
64416992 *) # Version 8.0 or newer
64426993 tmp_idyn=
64436994 case $host_cpu in
64446995 ia64*) tmp_idyn=' -i_dynamic';;
64456996 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'
6997 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6998 _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'
64486999 ;;
64497000 esac
64507001 _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'
7002 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7003 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7004 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
64547005 ;;
64557006 pgCC* | pgcpp*)
64567007 # Portland Group C++ compiler
64577008 case `$CC -V` in
64587009 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
64597010 _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`"'
7011 rm -rf $tpldir~
7012 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7013 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
64637014 _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'
7015 rm -rf $tpldir~
7016 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7017 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7018 $RANLIB $oldlib'
64687019 _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'
7020 rm -rf $tpldir~
7021 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7022 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
64727023 _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'
7024 rm -rf $tpldir~
7025 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7026 $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'
64767027 ;;
64777028 *) # 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'
7029 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7030 _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'
64807031 ;;
64817032 esac
64827033
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'
7034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7035 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7036 _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'
64867037 ;;
64877038 cxx*)
64887039 # 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'
7040 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7041 _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'
64917042
64927043 runpath_var=LD_RUN_PATH
64937044 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
65017052 # explicitly linking system object files so we need to strip them
65027053 # from the output so that they don't get included in the library
65037054 # 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'
7055 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'
65057056 ;;
65067057 xl* | mpixl* | bgxl*)
65077058 # 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
7059 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7060 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7061 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7062 if test yes = "$supports_anon_versioning"; then
65127063 _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'
7064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7065 echo "local: *; };" >> $output_objdir/$libname.ver~
7066 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
65167067 fi
65177068 ;;
65187069 *)
65207071 *Sun\ C*)
65217072 # Sun C++ 5.9
65227073 _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'
7074 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7075 _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'
65257076 _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'
7077 _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'
65277078 _LT_TAGVAR(compiler_needs_object, $1)=yes
65287079
65297080 # Not sure whether something based on
65817132 _LT_TAGVAR(ld_shlibs, $1)=yes
65827133 ;;
65837134
6584 openbsd2*)
6585 # C++ shared libraries are fairly broken
6586 _LT_TAGVAR(ld_shlibs, $1)=no
6587 ;;
6588
6589 openbsd*)
7135 openbsd* | bitrig*)
65907136 if test -f /usr/libexec/ld.so; then
65917137 _LT_TAGVAR(hardcode_direct, $1)=yes
65927138 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
65937139 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
65947140 _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'
7141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7143 _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'
7144 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7145 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
66007146 fi
66017147 output_verbose_link_cmd=func_echo_all
66027148 else
66127158 # KCC will only create a shared library if the output file
66137159 # ends with ".so" (or ".sl" for HP-UX), so rename the library
66147160 # 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'
7161 _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'
7162
7163 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
66187164 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66197165
66207166 # Archives containing C++ object files must be created using
66327178 cxx*)
66337179 case $host in
66347180 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'
7181 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7182 _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'
7183 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66387184 ;;
66397185 *)
66407186 _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'
7187 _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'
66427188 _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'
7189 echo "-hidden">> $lib.exp~
7190 $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~
7191 $RM $lib.exp'
66467192 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
66477193 ;;
66487194 esac
66577203 # explicitly linking system object files so we need to strip them
66587204 # from the output so that they don't get included in the library
66597205 # 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"'
7206 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"'
66617207 ;;
66627208 *)
6663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6664 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7209 if test yes,no = "$GXX,$with_gnu_ld"; then
7210 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
66657211 case $host in
66667212 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'
7213 _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'
66687214 ;;
66697215 *)
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'
7216 _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'
66717217 ;;
66727218 esac
66737219
6674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7220 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66757221 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66767222
66777223 # Commands to make compiler produce verbose output that lists
66787224 # what "hidden" libraries, object files and flags are used when
66797225 # linking a shared library.
6680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
66817227
66827228 else
66837229 # FIXME: insert proper C++ library support
67177263 # Sun C++ 4.2, 5.x and Centerline C++
67187264 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
67197265 _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'
7266 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67217267 _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'
7268 $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'
67237269
67247270 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
67257271 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67277273 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67287274 *)
67297275 # The compiler driver will combine and reorder linker options,
6730 # but understands `-z linker_flag'.
7276 # but understands '-z linker_flag'.
67317277 # Supported since Solaris 2.6 (maybe 2.5.1?)
67327278 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
67337279 ;;
67447290 ;;
67457291 gcx*)
67467292 # 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'
7293 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67487294
67497295 # The C++ compiler must be used to create the archive.
67507296 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
67517297 ;;
67527298 *)
67537299 # 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'
7300 if test yes,no = "$GXX,$with_gnu_ld"; then
7301 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
67567302 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'
7303 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67587304 _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'
7305 $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'
67607306
67617307 # Commands to make compiler produce verbose output that lists
67627308 # what "hidden" libraries, object files and flags are used when
67637309 # linking a shared library.
6764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
67657311 else
6766 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7312 # g++ 2.7 appears to require '-G' NOT '-shared' on this
67677313 # 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'
7314 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67697315 _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'
7316 $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'
67717317
67727318 # Commands to make compiler produce verbose output that lists
67737319 # what "hidden" libraries, object files and flags are used when
67747320 # linking a shared library.
6775 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7321 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
67767322 fi
67777323
6778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
67797325 case $host_os in
67807326 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67817327 *)
6782 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7328 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
67837329 ;;
67847330 esac
67857331 fi
67887334 ;;
67897335
67907336 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6791 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7337 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
67927338 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67937339 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67947340 runpath_var='LD_RUN_PATH'
67957341
67967342 case $cc_basename in
67977343 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'
7344 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68007346 ;;
68017347 *)
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'
7348 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7349 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68047350 ;;
68057351 esac
68067352 ;;
68077353
68087354 sysv5* | sco3.2v5* | sco5v6*)
6809 # Note: We can NOT use -z defs as we might desire, because we do not
7355 # Note: We CANNOT use -z defs as we might desire, because we do not
68107356 # link with -lc, and that would cause any symbols used from libc to
68117357 # always be unresolved, which means just about no library would
68127358 # ever link correctly. If we're not using GNU ld we use -z text
68137359 # though, which does catch some bad symbols but isn't as heavy-handed
68147360 # as -z defs.
6815 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6816 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7361 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7362 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
68177363 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68187364 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6819 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7365 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
68207366 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
68217367 _LT_TAGVAR(link_all_deplibs, $1)=yes
6822 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7368 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
68237369 runpath_var='LD_RUN_PATH'
68247370
68257371 case $cc_basename in
68267372 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'
7373 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7374 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68297375 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6830 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7376 '"$_LT_TAGVAR(old_archive_cmds, $1)"
68317377 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6832 '"$_LT_TAGVAR(reload_cmds, $1)"
7378 '"$_LT_TAGVAR(reload_cmds, $1)"
68337379 ;;
68347380 *)
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'
7381 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7382 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68377383 ;;
68387384 esac
68397385 ;;
68647410 esac
68657411
68667412 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"
7413 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7414
7415 _LT_TAGVAR(GCC, $1)=$GXX
7416 _LT_TAGVAR(LD, $1)=$LD
68717417
68727418 ## CAVEAT EMPTOR:
68737419 ## There is no encapsulation within the following macros, do not change
68947440 lt_cv_path_LD=$lt_save_path_LD
68957441 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
68967442 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6897 fi # test "$_lt_caught_CXX_error" != yes
7443 fi # test yes != "$_lt_caught_CXX_error"
68987444
68997445 AC_LANG_POP
69007446 ])# _LT_LANG_CXX_CONFIG
69167462 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
69177463 func_stripname_cnf ()
69187464 {
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}\$%%"`;;
7465 case @S|@2 in
7466 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7467 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
69227468 esac
69237469 } # func_stripname_cnf
69247470 ])# _LT_FUNC_STRIPNAME_CNF
7471
69257472
69267473 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
69277474 # ---------------------------------
70067553 pre_test_object_deps_done=no
70077554
70087555 for p in `eval "$output_verbose_link_cmd"`; do
7009 case ${prev}${p} in
7556 case $prev$p in
70107557
70117558 -L* | -R* | -l*)
70127559 # Some compilers place space between "-{L,R}" and the path.
70137560 # Remove the space.
7014 if test $p = "-L" ||
7015 test $p = "-R"; then
7561 if test x-L = "$p" ||
7562 test x-R = "$p"; then
70167563 prev=$p
70177564 continue
70187565 fi
70287575 case $p in
70297576 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
70307577 esac
7031 if test "$pre_test_object_deps_done" = no; then
7032 case ${prev} in
7578 if test no = "$pre_test_object_deps_done"; then
7579 case $prev in
70337580 -L | -R)
70347581 # Internal compiler library paths should come after those
70357582 # provided the user. The postdeps already come after the
70367583 # user supplied libs so there is no need to process them.
70377584 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7038 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7585 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
70397586 else
7040 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7587 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
70417588 fi
70427589 ;;
70437590 # The "-l" case would never come before the object being
70457592 esac
70467593 else
70477594 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7048 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7595 _LT_TAGVAR(postdeps, $1)=$prev$p
70497596 else
7050 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7597 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
70517598 fi
70527599 fi
70537600 prev=
70627609 continue
70637610 fi
70647611
7065 if test "$pre_test_object_deps_done" = no; then
7612 if test no = "$pre_test_object_deps_done"; then
70667613 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7067 _LT_TAGVAR(predep_objects, $1)="$p"
7614 _LT_TAGVAR(predep_objects, $1)=$p
70687615 else
70697616 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
70707617 fi
70717618 else
70727619 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7073 _LT_TAGVAR(postdep_objects, $1)="$p"
7620 _LT_TAGVAR(postdep_objects, $1)=$p
70747621 else
70757622 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
70767623 fi
71017648 _LT_TAGVAR(postdep_objects,$1)=
71027649 _LT_TAGVAR(postdeps,$1)=
71037650 ;;
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 ;;
71497651 esac
71507652 ])
71517653
71547656 esac
71557657 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
71567658 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!^ !!'`
7659 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
71587660 fi
71597661 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
71607662 [The directories searched by this compiler when creating a shared library])
71747676 # --------------------------
71757677 # Ensure that the configuration variables for a Fortran 77 compiler are
71767678 # suitably defined. These variables are subsequently used by _LT_CONFIG
7177 # to write the compiler configuration to `libtool'.
7679 # to write the compiler configuration to 'libtool'.
71787680 m4_defun([_LT_LANG_F77_CONFIG],
71797681 [AC_LANG_PUSH(Fortran 77)
7180 if test -z "$F77" || test "X$F77" = "Xno"; then
7682 if test -z "$F77" || test no = "$F77"; then
71817683 _lt_disable_F77=yes
71827684 fi
71837685
72147716 # the F77 compiler isn't working. Some variables (like enable_shared)
72157717 # are currently assumed to apply to all compilers on this platform,
72167718 # and will be corrupted by setting them based on a non-working compiler.
7217 if test "$_lt_disable_F77" != yes; then
7719 if test yes != "$_lt_disable_F77"; then
72187720 # Code to be used in simple compile tests
72197721 lt_simple_compile_test_code="\
72207722 subroutine t
72367738 _LT_LINKER_BOILERPLATE
72377739
72387740 # Allow CC to be a program name with arguments.
7239 lt_save_CC="$CC"
7741 lt_save_CC=$CC
72407742 lt_save_GCC=$GCC
72417743 lt_save_CFLAGS=$CFLAGS
72427744 CC=${F77-"f77"}
72507752 AC_MSG_RESULT([$can_build_shared])
72517753
72527754 AC_MSG_CHECKING([whether to build shared libraries])
7253 test "$can_build_shared" = "no" && enable_shared=no
7755 test no = "$can_build_shared" && enable_shared=no
72547756
72557757 # On AIX, shared libraries and static libraries use the same namespace, and
72567758 # are all built from PIC.
72577759 case $host_os in
72587760 aix3*)
7259 test "$enable_shared" = yes && enable_static=no
7761 test yes = "$enable_shared" && enable_static=no
72607762 if test -n "$RANLIB"; then
72617763 archive_cmds="$archive_cmds~\$RANLIB \$lib"
72627764 postinstall_cmds='$RANLIB $lib'
72637765 fi
72647766 ;;
72657767 aix[[4-9]]*)
7266 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7267 test "$enable_shared" = yes && enable_static=no
7768 if test ia64 != "$host_cpu"; then
7769 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7770 yes,aix,yes) ;; # shared object as lib.so file only
7771 yes,svr4,*) ;; # shared object as lib.so archive member only
7772 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7773 esac
72687774 fi
72697775 ;;
72707776 esac
72727778
72737779 AC_MSG_CHECKING([whether to build static libraries])
72747780 # Make sure either enable_shared or enable_static is yes.
7275 test "$enable_shared" = yes || enable_static=yes
7781 test yes = "$enable_shared" || enable_static=yes
72767782 AC_MSG_RESULT([$enable_static])
72777783
7278 _LT_TAGVAR(GCC, $1)="$G77"
7279 _LT_TAGVAR(LD, $1)="$LD"
7784 _LT_TAGVAR(GCC, $1)=$G77
7785 _LT_TAGVAR(LD, $1)=$LD
72807786
72817787 ## CAVEAT EMPTOR:
72827788 ## There is no encapsulation within the following macros, do not change
72937799 fi # test -n "$compiler"
72947800
72957801 GCC=$lt_save_GCC
7296 CC="$lt_save_CC"
7297 CFLAGS="$lt_save_CFLAGS"
7298 fi # test "$_lt_disable_F77" != yes
7802 CC=$lt_save_CC
7803 CFLAGS=$lt_save_CFLAGS
7804 fi # test yes != "$_lt_disable_F77"
72997805
73007806 AC_LANG_POP
73017807 ])# _LT_LANG_F77_CONFIG
73057811 # -------------------------
73067812 # Ensure that the configuration variables for a Fortran compiler are
73077813 # suitably defined. These variables are subsequently used by _LT_CONFIG
7308 # to write the compiler configuration to `libtool'.
7814 # to write the compiler configuration to 'libtool'.
73097815 m4_defun([_LT_LANG_FC_CONFIG],
73107816 [AC_LANG_PUSH(Fortran)
73117817
7312 if test -z "$FC" || test "X$FC" = "Xno"; then
7818 if test -z "$FC" || test no = "$FC"; then
73137819 _lt_disable_FC=yes
73147820 fi
73157821
73467852 # the FC compiler isn't working. Some variables (like enable_shared)
73477853 # are currently assumed to apply to all compilers on this platform,
73487854 # and will be corrupted by setting them based on a non-working compiler.
7349 if test "$_lt_disable_FC" != yes; then
7855 if test yes != "$_lt_disable_FC"; then
73507856 # Code to be used in simple compile tests
73517857 lt_simple_compile_test_code="\
73527858 subroutine t
73687874 _LT_LINKER_BOILERPLATE
73697875
73707876 # Allow CC to be a program name with arguments.
7371 lt_save_CC="$CC"
7877 lt_save_CC=$CC
73727878 lt_save_GCC=$GCC
73737879 lt_save_CFLAGS=$CFLAGS
73747880 CC=${FC-"f95"}
73847890 AC_MSG_RESULT([$can_build_shared])
73857891
73867892 AC_MSG_CHECKING([whether to build shared libraries])
7387 test "$can_build_shared" = "no" && enable_shared=no
7893 test no = "$can_build_shared" && enable_shared=no
73887894
73897895 # On AIX, shared libraries and static libraries use the same namespace, and
73907896 # are all built from PIC.
73917897 case $host_os in
73927898 aix3*)
7393 test "$enable_shared" = yes && enable_static=no
7899 test yes = "$enable_shared" && enable_static=no
73947900 if test -n "$RANLIB"; then
73957901 archive_cmds="$archive_cmds~\$RANLIB \$lib"
73967902 postinstall_cmds='$RANLIB $lib'
73977903 fi
73987904 ;;
73997905 aix[[4-9]]*)
7400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7401 test "$enable_shared" = yes && enable_static=no
7906 if test ia64 != "$host_cpu"; then
7907 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7908 yes,aix,yes) ;; # shared object as lib.so file only
7909 yes,svr4,*) ;; # shared object as lib.so archive member only
7910 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7911 esac
74027912 fi
74037913 ;;
74047914 esac
74067916
74077917 AC_MSG_CHECKING([whether to build static libraries])
74087918 # Make sure either enable_shared or enable_static is yes.
7409 test "$enable_shared" = yes || enable_static=yes
7919 test yes = "$enable_shared" || enable_static=yes
74107920 AC_MSG_RESULT([$enable_static])
74117921
7412 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7413 _LT_TAGVAR(LD, $1)="$LD"
7922 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7923 _LT_TAGVAR(LD, $1)=$LD
74147924
74157925 ## CAVEAT EMPTOR:
74167926 ## There is no encapsulation within the following macros, do not change
74307940 GCC=$lt_save_GCC
74317941 CC=$lt_save_CC
74327942 CFLAGS=$lt_save_CFLAGS
7433 fi # test "$_lt_disable_FC" != yes
7943 fi # test yes != "$_lt_disable_FC"
74347944
74357945 AC_LANG_POP
74367946 ])# _LT_LANG_FC_CONFIG
74407950 # --------------------------
74417951 # Ensure that the configuration variables for the GNU Java Compiler compiler
74427952 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7443 # to write the compiler configuration to `libtool'.
7953 # to write the compiler configuration to 'libtool'.
74447954 m4_defun([_LT_LANG_GCJ_CONFIG],
74457955 [AC_REQUIRE([LT_PROG_GCJ])dnl
74467956 AC_LANG_SAVE
74747984 CFLAGS=$GCJFLAGS
74757985 compiler=$CC
74767986 _LT_TAGVAR(compiler, $1)=$CC
7477 _LT_TAGVAR(LD, $1)="$LD"
7987 _LT_TAGVAR(LD, $1)=$LD
74787988 _LT_CC_BASENAME([$compiler])
74797989
74807990 # GCJ did not exist at the time GCC didn't implicitly link libc in.
75118021 # --------------------------
75128022 # Ensure that the configuration variables for the GNU Go compiler
75138023 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7514 # to write the compiler configuration to `libtool'.
8024 # to write the compiler configuration to 'libtool'.
75158025 m4_defun([_LT_LANG_GO_CONFIG],
75168026 [AC_REQUIRE([LT_PROG_GO])dnl
75178027 AC_LANG_SAVE
75458055 CFLAGS=$GOFLAGS
75468056 compiler=$CC
75478057 _LT_TAGVAR(compiler, $1)=$CC
7548 _LT_TAGVAR(LD, $1)="$LD"
8058 _LT_TAGVAR(LD, $1)=$LD
75498059 _LT_CC_BASENAME([$compiler])
75508060
75518061 # Go did not exist at the time GCC didn't implicitly link libc in.
75828092 # -------------------------
75838093 # Ensure that the configuration variables for the Windows resource compiler
75848094 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7585 # to write the compiler configuration to `libtool'.
8095 # to write the compiler configuration to 'libtool'.
75868096 m4_defun([_LT_LANG_RC_CONFIG],
75878097 [AC_REQUIRE([LT_PROG_RC])dnl
75888098 AC_LANG_SAVE
75988108 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
75998109
76008110 # Code to be used in simple link tests
7601 lt_simple_link_test_code="$lt_simple_compile_test_code"
8111 lt_simple_link_test_code=$lt_simple_compile_test_code
76028112
76038113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
76048114 _LT_TAG_COMPILER
76088118 _LT_LINKER_BOILERPLATE
76098119
76108120 # Allow CC to be a program name with arguments.
7611 lt_save_CC="$CC"
8121 lt_save_CC=$CC
76128122 lt_save_CFLAGS=$CFLAGS
76138123 lt_save_GCC=$GCC
76148124 GCC=
76378147 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
76388148 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
76398149 [AC_CHECK_TOOL(GCJ, gcj,)
7640 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8150 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
76418151 AC_SUBST(GCJFLAGS)])])[]dnl
76428152 ])
76438153
77488258 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
77498259 # along with /bin/sed that truncates output.
77508260 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7751 test ! -f $lt_ac_sed && continue
8261 test ! -f "$lt_ac_sed" && continue
77528262 cat /dev/null > conftest.in
77538263 lt_ac_count=0
77548264 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
77658275 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
77668276 cmp -s conftest.out conftest.nl || break
77678277 # 10000 chars as input seems more than enough
7768 test $lt_ac_count -gt 10 && break
8278 test 10 -lt "$lt_ac_count" && break
77698279 lt_ac_count=`expr $lt_ac_count + 1`
7770 if test $lt_ac_count -gt $lt_ac_max; then
8280 if test "$lt_ac_count" -gt "$lt_ac_max"; then
77718281 lt_ac_max=$lt_ac_count
77728282 lt_cv_path_SED=$lt_ac_sed
77738283 fi
77918301 # Find out whether the shell is Bourne or XSI compatible,
77928302 # or has some other useful features.
77938303 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
8304 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
78158305 lt_unset=unset
78168306 else
78178307 lt_unset=false
78358325 ])# _LT_CHECK_SHELL_FEATURES
78368326
78378327
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
79318328 # _LT_PATH_CONVERSION_FUNCTIONS
79328329 # -----------------------------
7933 # Determine which file name conversion functions should be used by
8330 # Determine what file name conversion functions should be used by
79348331 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
79358332 # for certain cross-compile configurations and native mingw.
79368333 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
00 #! /bin/sh
11 # Common wrapper for a few potentially missing GNU programs.
22
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2018 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
1616 # GNU General Public License for more details.
1717
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
100100 exit $st
101101 fi
102102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106106
107107 program_details ()
108108 {
206206 exit $st
207207
208208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
209 # eval: (add-hook 'before-save-hook 'time-stamp)
210210 # time-stamp-start: "scriptversion="
211211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
212 # time-stamp-time-zone: "UTC0"
213213 # time-stamp-end: "; # UTC"
214214 # End:
0 /* $Id: BurgerSpaceClient.cpp,v 1.7 2017/12/09 04:29:00 sarrazip Exp $
0 /* $Id: BurgerSpaceClient.cpp,v 1.10 2021/06/13 02:43:46 sarrazip Exp $
11 BurgerSpaceClient.cpp - Game client
22
33 burgerspace - A hamburger-smashing video game.
4 Copyright (C) 2001-2013 Pierre Sarrazin <http://sarrazip.com/>
4 Copyright (C) 2001-2021 Pierre Sarrazin <http://sarrazip.com/>
55
66 This program is free software; you can redistribute it and/or
77 modify it under the terms of the GNU General Public License
389389 // go wait for reactivation, i.e., stop calling tick().
390390 // This avoids using the CPU while the app is not active.
391391 // waitForReactivation() is inherited from flatzebra::GameEngine.
392 // processActiveEvent is inherited from the base class and is controlled
393 // by option --no-active-event.
392394 //
393 if (event.active.gain == 0 && !waitForReactivation())
395 if (processActiveEvent && event.active.gain == 0 && !waitForReactivation())
394396 return; // wait ended with quit or with wait error
395397 break;
396398
781783 // Scan the saved games directory and build a table of available games:
782784 for (size_t slotNum = 1; slotNum <= 9; slotNum++)
783785 {
784 char slotDesc[32], fileTime[32];
786 char slotDesc[64], fileTime[32];
785787 string filename = dirname + "/" + formSavedGameFilename(slotNum);
786788 ifstream file(filename.c_str());
787789 if (!file)
0 # $Id: Makefile.am,v 1.24 2013/03/17 04:02:05 sarrazip Exp $
0 # $Id: Makefile.am,v 1.25 2021/06/13 02:43:46 sarrazip Exp $
11
22 bin_PROGRAMS = burgerspace
33
7373 PKGSOUNDDIR=$(srcdir)/sounds ./$(PACKAGE)
7474
7575
76 desktopentrydir = $(datadir)/applications
76 desktopentrydir = $(datarootdir)/applications
7777 desktopentry_DATA = $(PACKAGE).desktop
7878
79 pixmapdir = $(datadir)/pixmaps
79 pixmapdir = $(datarootdir)/pixmaps
8080 pixmap_DATA = images/$(PACKAGE).png
8181
8282
192192 images/digit8.xpm \
193193 images/digit9.xpm
194194
195 pkgsounddir = $(datadir)/sounds/$(PACKAGE)
195 pkgsounddir = $(pkgdatadir)/sounds
196196 pkgsound_DATA = \
197197 sounds/ingredient-bounces.wav \
198198 sounds/ingredient-in-plate.wav \
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 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,
1313
1414 @SET_MAKE@
1515
16 # $Id: Makefile.am,v 1.24 2013/03/17 04:02:05 sarrazip Exp $
16 # $Id: Makefile.am,v 1.25 2021/06/13 02:43:46 sarrazip Exp $
1717
1818
1919
108108 mkinstalldirs = $(install_sh) -d
109109 CONFIG_CLEAN_FILES = burgerspace.desktop
110110 CONFIG_CLEAN_VPATH_FILES =
111 @BUILD_NETWORK_TRUE@am__EXEEXT_1 = burgerspace-server$(EXEEXT)
112 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(desktopentrydir)" \
113 "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pkgsounddir)"
114 PROGRAMS = $(bin_PROGRAMS)
111115 LTLIBRARIES = $(noinst_LTLIBRARIES)
112116 am__DEPENDENCIES_1 =
113117 libcore_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
121125 libcore_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
122126 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(libcore_la_CXXFLAGS) \
123127 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
124 @BUILD_NETWORK_TRUE@am__EXEEXT_1 = burgerspace-server$(EXEEXT)
125 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(desktopentrydir)" \
126 "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pkgsounddir)"
127 PROGRAMS = $(bin_PROGRAMS)
128128 am_burgerspace_OBJECTS = burgerspace-client.$(OBJEXT) \
129129 burgerspace-BurgerSpaceClient.$(OBJEXT) \
130130 burgerspace-LocalServer.$(OBJEXT) \
158158 am__v_at_1 =
159159 DEFAULT_INCLUDES = -I.@am__isrc@
160160 depcomp = $(SHELL) $(top_srcdir)/depcomp
161 am__depfiles_maybe = depfiles
161 am__maybe_remake_depfiles = depfiles
162 am__depfiles_remade = ./$(DEPDIR)/burgerspace-BurgerSpaceClient.Po \
163 ./$(DEPDIR)/burgerspace-LocalServer.Po \
164 ./$(DEPDIR)/burgerspace-RemoteServer.Po \
165 ./$(DEPDIR)/burgerspace-client.Po \
166 ./$(DEPDIR)/burgerspace_server-server.Po \
167 ./$(DEPDIR)/libcore_la-BurgerSpaceServer.Plo \
168 ./$(DEPDIR)/libcore_la-EnemySprite.Plo \
169 ./$(DEPDIR)/libcore_la-IngredientGroup.Plo
162170 am__mv = mv -f
163171 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
164172 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
301309 LIPO = @LIPO@
302310 LN_S = @LN_S@
303311 LTLIBOBJS = @LTLIBOBJS@
312 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
304313 MAKEINFO = @MAKEINFO@
305314 MANIFEST_TOOL = @MANIFEST_TOOL@
306315 MANUAL_DATE_EN = @MANUAL_DATE_EN@
380389 prefix = @prefix@
381390 program_transform_name = @program_transform_name@
382391 psdir = @psdir@
392 runstatedir = @runstatedir@
383393 sbindir = @sbindir@
384394 sharedstatedir = @sharedstatedir@
385395 srcdir = @srcdir@
435445 -I$(top_srcdir)/src/images \
436446 $(FLATZEBRA_CFLAGS)
437447
438 desktopentrydir = $(datadir)/applications
448 desktopentrydir = $(datarootdir)/applications
439449 desktopentry_DATA = $(PACKAGE).desktop
440 pixmapdir = $(datadir)/pixmaps
450 pixmapdir = $(datarootdir)/pixmaps
441451 pixmap_DATA = images/$(PACKAGE).png
442452 XPM_IMAGES = \
443453 images/bottom-bun.xpm \
551561 images/digit8.xpm \
552562 images/digit9.xpm
553563
554 pkgsounddir = $(datadir)/sounds/$(PACKAGE)
564 pkgsounddir = $(pkgdatadir)/sounds
555565 pkgsound_DATA = \
556566 sounds/ingredient-bounces.wav \
557567 sounds/ingredient-in-plate.wav \
598608 *config.status*) \
599609 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
600610 *) \
601 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
602 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
611 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
612 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
603613 esac;
604614
605615 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
612622 $(am__aclocal_m4_deps):
613623 burgerspace.desktop: $(top_builddir)/config.status $(srcdir)/burgerspace.desktop.in
614624 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
615
616 clean-noinstLTLIBRARIES:
617 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
618 @list='$(noinst_LTLIBRARIES)'; \
619 locs=`for p in $$list; do echo $$p; done | \
620 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
621 sort -u`; \
622 test -z "$$locs" || { \
623 echo rm -f $${locs}; \
624 rm -f $${locs}; \
625 }
626
627 libcore.la: $(libcore_la_OBJECTS) $(libcore_la_DEPENDENCIES) $(EXTRA_libcore_la_DEPENDENCIES)
628 $(AM_V_CXXLD)$(libcore_la_LINK) $(libcore_la_OBJECTS) $(libcore_la_LIBADD) $(LIBS)
629625 install-binPROGRAMS: $(bin_PROGRAMS)
630626 @$(NORMAL_INSTALL)
631627 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
676672 echo " rm -f" $$list; \
677673 rm -f $$list
678674
675 clean-noinstLTLIBRARIES:
676 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
677 @list='$(noinst_LTLIBRARIES)'; \
678 locs=`for p in $$list; do echo $$p; done | \
679 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
680 sort -u`; \
681 test -z "$$locs" || { \
682 echo rm -f $${locs}; \
683 rm -f $${locs}; \
684 }
685
686 libcore.la: $(libcore_la_OBJECTS) $(libcore_la_DEPENDENCIES) $(EXTRA_libcore_la_DEPENDENCIES)
687 $(AM_V_CXXLD)$(libcore_la_LINK) $(libcore_la_OBJECTS) $(libcore_la_LIBADD) $(LIBS)
688
679689 burgerspace$(EXEEXT): $(burgerspace_OBJECTS) $(burgerspace_DEPENDENCIES) $(EXTRA_burgerspace_DEPENDENCIES)
680690 @rm -f burgerspace$(EXEEXT)
681691 $(AM_V_CXXLD)$(burgerspace_LINK) $(burgerspace_OBJECTS) $(burgerspace_LDADD) $(LIBS)
690700 distclean-compile:
691701 -rm -f *.tab.c
692702
693 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace-BurgerSpaceClient.Po@am__quote@
694 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace-LocalServer.Po@am__quote@
695 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace-RemoteServer.Po@am__quote@
696 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace-client.Po@am__quote@
697 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace_server-server.Po@am__quote@
698 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcore_la-BurgerSpaceServer.Plo@am__quote@
699 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcore_la-EnemySprite.Plo@am__quote@
700 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcore_la-IngredientGroup.Plo@am__quote@
703 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace-BurgerSpaceClient.Po@am__quote@ # am--include-marker
704 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace-LocalServer.Po@am__quote@ # am--include-marker
705 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace-RemoteServer.Po@am__quote@ # am--include-marker
706 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace-client.Po@am__quote@ # am--include-marker
707 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/burgerspace_server-server.Po@am__quote@ # am--include-marker
708 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcore_la-BurgerSpaceServer.Plo@am__quote@ # am--include-marker
709 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcore_la-EnemySprite.Plo@am__quote@ # am--include-marker
710 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcore_la-IngredientGroup.Plo@am__quote@ # am--include-marker
711
712 $(am__depfiles_remade):
713 @$(MKDIR_P) $(@D)
714 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
715
716 am--depfiles: $(am__depfiles_remade)
701717
702718 .cpp.o:
703719 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
932948 distclean-tags:
933949 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
934950
935 distdir: $(DISTFILES)
951 distdir: $(BUILT_SOURCES)
952 $(MAKE) $(AM_MAKEFLAGS) distdir-am
953
954 distdir-am: $(DISTFILES)
936955 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
937956 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
938957 list='$(DISTFILES)'; \
964983 done
965984 check-am: all-am
966985 check: check-am
967 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA)
986 all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(DATA)
968987 installdirs:
969988 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(desktopentrydir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pkgsounddir)"; do \
970989 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
10061025 clean-noinstLTLIBRARIES mostlyclean-am
10071026
10081027 distclean: distclean-am
1009 -rm -rf ./$(DEPDIR)
1028 -rm -f ./$(DEPDIR)/burgerspace-BurgerSpaceClient.Po
1029 -rm -f ./$(DEPDIR)/burgerspace-LocalServer.Po
1030 -rm -f ./$(DEPDIR)/burgerspace-RemoteServer.Po
1031 -rm -f ./$(DEPDIR)/burgerspace-client.Po
1032 -rm -f ./$(DEPDIR)/burgerspace_server-server.Po
1033 -rm -f ./$(DEPDIR)/libcore_la-BurgerSpaceServer.Plo
1034 -rm -f ./$(DEPDIR)/libcore_la-EnemySprite.Plo
1035 -rm -f ./$(DEPDIR)/libcore_la-IngredientGroup.Plo
10101036 -rm -f Makefile
10111037 distclean-am: clean-am distclean-compile distclean-generic \
10121038 distclean-tags
10531079 installcheck-am:
10541080
10551081 maintainer-clean: maintainer-clean-am
1056 -rm -rf ./$(DEPDIR)
1082 -rm -f ./$(DEPDIR)/burgerspace-BurgerSpaceClient.Po
1083 -rm -f ./$(DEPDIR)/burgerspace-LocalServer.Po
1084 -rm -f ./$(DEPDIR)/burgerspace-RemoteServer.Po
1085 -rm -f ./$(DEPDIR)/burgerspace-client.Po
1086 -rm -f ./$(DEPDIR)/burgerspace_server-server.Po
1087 -rm -f ./$(DEPDIR)/libcore_la-BurgerSpaceServer.Plo
1088 -rm -f ./$(DEPDIR)/libcore_la-EnemySprite.Plo
1089 -rm -f ./$(DEPDIR)/libcore_la-IngredientGroup.Plo
10571090 -rm -f Makefile
10581091 maintainer-clean-am: distclean-am maintainer-clean-generic
10591092
10751108
10761109 .MAKE: install-am install-strip
10771110
1078 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
1111 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
10791112 clean-binPROGRAMS clean-generic clean-libtool \
10801113 clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \
10811114 distclean-compile distclean-generic distclean-libtool \
0 /* $Id: client.cpp,v 1.6 2019/08/08 23:09:29 sarrazip Exp $
0 /* $Id: client.cpp,v 1.7 2021/06/13 02:43:46 sarrazip Exp $
11 client.cpp - main() function for BurgerSpace
22
33 burgerspace - A hamburger-smashing video game.
4 Copyright (C) 2001-2010 Pierre Sarrazin <http://sarrazip.com/>
4 Copyright (C) 2001-2021 Pierre Sarrazin <http://sarrazip.com/>
55
66 This program is free software; you can redistribute it and/or
77 modify it under the terms of the GNU General Public License
5757 { "port", required_argument, NULL, 'p' },
5858 { "chef", no_argument, NULL, 'c' },
5959 { "enemy", no_argument, NULL, 'e' },
60 { "no-active-event", no_argument, NULL, 'a' },
6061
6162 { NULL, 0, NULL, 0 } // marks the end
6263 };
8081
8182 cout <<
8283 "\n"
83 "Copyright (C) 2001-2010 Pierre Sarrazin <http://sarrazip.com/>\n"
84 "Copyright (C) 2001-2021 Pierre Sarrazin <http://sarrazip.com/>\n"
8485 "This program is free software; you may redistribute it under the terms of\n"
8586 "the GNU General Public License. This program has absolutely no warranty.\n"
8687 ;
99100 "--z-for-pepper Use Z key to shoot pepper [default is Ctrl key]\n"
100101 "--server=HOSTNAME Run as a network client and use specified server\n"
101102 "--port=PORT Specify UDP port of server (only relevant with --server)\n"
102 "--chef In network game, play the role of the chef\n"
103 "--enemy In network game, play the role of one of the enemies\n"
103 "--chef In a network game, play the role of the chef\n"
104 "--enemy In a network game, play the role of one of the enemies\n"
105 "--no-active-event Do not pause when the window becomes inactive.\n"
104106 "\n"
105107 ;
106108 }
156158 string serverHostname; // UDP server hostname if not empty; local server otherwise
157159 unsigned short port = DEFAULT_UDP_SERVER_PORT;
158160 Role role = ROLE_SPECTATOR;
161 bool processActiveEvent = true; // if true, SDL_ACTIVEEVENT gets processed (see BurgerSpaceClient::runClientMode())
159162
160163
161164 #ifdef HAVE_GETOPT_LONG
242245 case 'e':
243246 role = ROLE_ENEMY;
244247 break;
248
249 case 'a': // do not process SDL_ACTIVEEVENT, i.e., do not pause when window loses focus
250 processActiveEvent = false;
251 break;
245252
246253 case 'v':
247254 displayVersionNo();
310317 standAlone ? ROLE_CHEF : role,
311318 !standAlone /* show role */,
312319 useSound, pepperKey, fullScreen,
313 standAlone);
320 standAlone && processActiveEvent);
314321
315322 BurgerSpaceServerInterface *serverInterface = NULL;
316323