Codebase list ui-utilcpp / a4eb66d
Imported Upstream version 1.8.4 Stephan Sürken 7 years ago
25 changed file(s) with 8106 addition(s) and 5384 deletion(s). Raw diff Collapse all Expand all
1919 #----------------------------------------------------------------------
2020 # mini-buildd (hellfield)
2121 . template.deb_git+mbd-1.0 "git+ssh://absurd@git.debian.org/git/collab-maint/ui-utilcpp.git" "hellfield" "ab" "sid" "jessie wheezy squeeze"
22
23 # mini-buildd (united-internet)
24 #. template.deb_git+mbd-1.0 "git+ssh://absurd@git.debian.org/git/collab-maint/ui-utilcpp.git" "united-internet" "ui" "sid" "jessie wheezy squeeze"
25 #ui_release_deb_dput="mini-buildd-united-internet-ssh-upload"
22 ui_release_deb_revapx_stable_snapshot="~ab~SID+0"
2623
2724 #----------------------------------------------------------------------
2825 # [ui-auto-env|shell|update configuration ]
0 2016-08-05 Stephan Sürken <absurd@olurdix.de>
1
2 [ui-auto-release run by absurd@weslok.olx.intra]: News for 1.8.4.
3
4 configure.ac: Prepare 1.8.4.
5
6 .ui-auto.conf: Fix for hellfield using '~SID' version appendix.
7 This also removes old commented config for good.
8
9 Use 'unique_ptr' instead of 'auto_ptr' when using C++11 or better.
10 Please also see the comments in ./configure.ac; we currently stay
11 compatible with non-C++11 compiles.
12
13 2014-08-01 Stephan Sürken <absurd@olurdix.de>
14
15 README: Add note about LFS.
16
017 2014-07-20 Stephan Sürken <absurd@olurdix.de>
18
19 [ui-auto-release run by absurd@weslok.olx.intra]: ChangeLog updated from version control.
120
221 [ui-auto-release run by absurd@weslok.olx.intra]: News for 1.8.3.
322
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
7888 build_triplet = @build@
7989 host_triplet = @host@
8090 subdir = .
81 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
82 $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/configure $(am__configure_deps) \
84 $(srcdir)/config.h.in $(srcdir)/Doxyfile.in COPYING compile \
85 config.guess config.sub install-sh missing ltmain.sh
8691 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8792 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8893 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8994 $(ACLOCAL_M4)
95 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
96 $(am__configure_deps) $(am__DIST_COMMON)
9097 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
9198 configure.lineno config.status.lineno
9299 mkinstalldirs = $(install_sh) -d
179186 CTAGS = ctags
180187 CSCOPE = cscope
181188 DIST_SUBDIRS = $(SUBDIRS)
189 am__DIST_COMMON = $(srcdir)/Doxyfile.in $(srcdir)/Makefile.in \
190 $(srcdir)/config.h.in AUTHORS COPYING ChangeLog INSTALL NEWS \
191 README compile config.guess config.sub install-sh ltmain.sh \
192 missing
182193 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
183194 distdir = $(PACKAGE)-$(VERSION)
184195 top_distdir = $(distdir)
268279 LIPO = @LIPO@
269280 LN_S = @LN_S@
270281 LTLIBOBJS = @LTLIBOBJS@
282 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
271283 MAKEINFO = @MAKEINFO@
272284 MANIFEST_TOOL = @MANIFEST_TOOL@
273285 MKDIR_P = @MKDIR_P@
343355 prefix = @prefix@
344356 program_transform_name = @program_transform_name@
345357 psdir = @psdir@
358 runstatedir = @runstatedir@
346359 sbindir = @sbindir@
347360 sharedstatedir = @sharedstatedir@
348361 srcdir = @srcdir@
376389 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
377390 $(am__cd) $(top_srcdir) && \
378391 $(AUTOMAKE) --gnu Makefile
379 .PRECIOUS: Makefile
380392 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
381393 @case '$?' in \
382394 *config.status*) \
633645 $(am__post_remove_distdir)
634646
635647 dist-tarZ: distdir
636 @echo WARNING: "Support for shar distribution archives is" \
637 "deprecated." >&2
648 @echo WARNING: "Support for distribution archives compressed with" \
649 "legacy program 'compress' is deprecated." >&2
638650 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
639651 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
640652 $(am__post_remove_distdir)
641653
642654 dist-shar: distdir
643 @echo WARNING: "Support for distribution archives compressed with" \
644 "legacy program 'compress' is deprecated." >&2
655 @echo WARNING: "Support for shar distribution archives is" \
656 "deprecated." >&2
645657 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
646658 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
647659 $(am__post_remove_distdir)
677689 esac
678690 chmod -R a-w $(distdir)
679691 chmod u+w $(distdir)
680 mkdir $(distdir)/_build $(distdir)/_inst
692 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
681693 chmod a-w $(distdir)
682694 test -d $(distdir)/_build || exit 0; \
683695 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
684696 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
685697 && am__cwd=`pwd` \
686 && $(am__cd) $(distdir)/_build \
687 && ../configure \
698 && $(am__cd) $(distdir)/_build/sub \
699 && ../../configure \
688700 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
689701 $(DISTCHECK_CONFIGURE_FLAGS) \
690 --srcdir=.. --prefix="$$dc_install_base" \
702 --srcdir=../.. --prefix="$$dc_install_base" \
691703 && $(MAKE) $(AM_MAKEFLAGS) \
692704 && $(MAKE) $(AM_MAKEFLAGS) dvi \
693705 && $(MAKE) $(AM_MAKEFLAGS) check \
869881 ps ps-am tags tags-am uninstall uninstall-am uninstall-docDATA \
870882 uninstall-local
871883
884 .PRECIOUS: Makefile
885
872886
873887 @UI_AUTO_AM@
874888
22
33 Downloads:
44 o Generic: http://sourceforge.net/projects/ui-utilcpp/files//ui-utilcpp
5 o Current: http://sourceforge.net/projects/ui-utilcpp/files//ui-utilcpp/stable/ui-utilcpp-1.8.3.tar.gz
5 o Current: http://sourceforge.net/projects/ui-utilcpp/files//ui-utilcpp/stable/ui-utilcpp-1.8.4.tar.gz
66 ================================================================
7 ui-utilcpp-1.8.4 (stable) (Fri, 05 Aug 2016 13:59:37 +0000):
8
9 Patched stable release.
10
11 Changes since 1.8.3:
12
13 Stephan Sürken (4):
14 * [48cc11e] README: Add note about LFS.
15 * [4df1268] Use 'unique_ptr' instead of 'auto_ptr' when using
16 C++11 or better.
17 * [2392787] .ui-auto.conf: Fix for hellfield using '~SID'
18 version appendix.
19 * [998aa57] configure.ac: Prepare 1.8.4.
20 ----------------------------------------------------------------
721 ui-utilcpp-1.8.3 (stable) (Sun Jul 20 10:49:35 UTC 2014):
822
923 Patched stable release.
2323 * GetOpt: Abstraction of GNU C getopt_long(3).
2424
2525 Copyright (c) 2001-2014 United Internet AG, under LGPLv3.
26
27
28 LFS support since 1.8.3
29 -----------------------
30
31 Since 1.8.3, ui-utilcpp is compiled with large file system
32 support. This is potentially harmful if you are mixing
33 ui-utilcpp (especially the wrappers in namespace Sys) C call
34 wrappers with your own C code.
35
36 To be on the safe side, also compile your project with LFS
37 support. For autotools, it's as simple as adding::
38
39 AC_SYS_LARGEFILE
40
41 to your configure.ac. You should also check that your are
42 actually using 1.8.3 or better; with m4-macros from "ui-auto",
43 this looks like::
44
45 UI_CHECK(ui_utilcpp, ui-utilcpp, 1, 8, 3, 9, 0, 0)
46
47 (You can craft your own check w/o ui-auto using the
48 'ui-utilcpp-version' script).
2649
2750
2851 Upgrading from 1.0
+1994
-1541
aclocal.m4 less more
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
2121
2222 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2323 #
24 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26 # Foundation, Inc.
24 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
2725 # Written by Gordon Matzigkeit, 1996
2826 #
2927 # This file is free software; the Free Software Foundation gives
3129 # modifications, as long as this notice is preserved.
3230
3331 m4_define([_LT_COPYING], [dnl
34 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36 # Foundation, Inc.
37 # Written by Gordon Matzigkeit, 1996
32 # Copyright (C) 2014 Free Software Foundation, Inc.
33 # This is free software; see the source for copying conditions. There is NO
34 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35
36 # GNU Libtool is free software; you can redistribute it and/or modify
37 # it under the terms of the GNU General Public License as published by
38 # the Free Software Foundation; either version 2 of of the License, or
39 # (at your option) any later version.
3840 #
39 # This file is part of GNU Libtool.
41 # As a special exception to the GNU General Public License, if you
42 # distribute this file as part of a program or library that is built
43 # using GNU Libtool, you may include this file under the same
44 # distribution terms that you use for the rest of that program.
4045 #
41 # GNU Libtool is free software; you can redistribute it and/or
42 # modify it under the terms of the GNU General Public License as
43 # published by the Free Software Foundation; either version 2 of
44 # the License, or (at your option) any later version.
45 #
46 # As a special exception to the GNU General Public License,
47 # if you distribute this file as part of a program or library that
48 # is built using GNU Libtool, you may include this file under the
49 # same distribution terms that you use for the rest of that program.
50 #
51 # GNU Libtool is distributed in the hope that it will be useful,
52 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46 # GNU Libtool is distributed in the hope that it will be useful, but
47 # WITHOUT ANY WARRANTY; without even the implied warranty of
5348 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5449 # GNU General Public License for more details.
5550 #
5651 # You should have received a copy of the GNU General Public License
57 # along with GNU Libtool; see the file COPYING. If not, a copy
58 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
59 # obtained by writing to the Free Software Foundation, Inc.,
60 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
52 # along with this program. If not, see <http://www.gnu.org/licenses/>.
6153 ])
6254
63 # serial 57 LT_INIT
55 # serial 58 LT_INIT
6456
6557
6658 # LT_PREREQ(VERSION)
8880 # LT_INIT([OPTIONS])
8981 # ------------------
9082 AC_DEFUN([LT_INIT],
91 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
83 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
9284 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
9385 AC_BEFORE([$0], [LT_LANG])dnl
9486 AC_BEFORE([$0], [LT_OUTPUT])dnl
112104 _LT_SET_OPTIONS([$0], [$1])
113105
114106 # This can be used to rebuild libtool when needed
115 LIBTOOL_DEPS="$ltmain"
107 LIBTOOL_DEPS=$ltmain
116108
117109 # Always use our own libtool.
118110 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
132124 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
133125
134126
127 # _LT_PREPARE_CC_BASENAME
128 # -----------------------
129 m4_defun([_LT_PREPARE_CC_BASENAME], [
130 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
131 func_cc_basename ()
132 {
133 for cc_temp in @S|@*""; do
134 case $cc_temp in
135 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
136 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
137 \-*) ;;
138 *) break;;
139 esac
140 done
141 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
142 }
143 ])# _LT_PREPARE_CC_BASENAME
144
145
135146 # _LT_CC_BASENAME(CC)
136147 # -------------------
137 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
148 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
149 # but that macro is also expanded into generated libtool script, which
150 # arranges for $SED and $ECHO to be set by different means.
138151 m4_defun([_LT_CC_BASENAME],
139 [for cc_temp in $1""; do
140 case $cc_temp in
141 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
142 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
143 \-*) ;;
144 *) break;;
145 esac
146 done
147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
152 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
153 AC_REQUIRE([_LT_DECL_SED])dnl
154 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
155 func_cc_basename $1
156 cc_basename=$func_cc_basename_result
148157 ])
149158
150159
151160 # _LT_FILEUTILS_DEFAULTS
152161 # ----------------------
153162 # It is okay to use these file commands and assume they have been set
154 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
163 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
155164 m4_defun([_LT_FILEUTILS_DEFAULTS],
156165 [: ${CP="cp -f"}
157166 : ${MV="mv -f"}
198207 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
199208 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
200209 m4_require([_LT_WITH_SYSROOT])dnl
210 m4_require([_LT_CMD_TRUNCATE])dnl
201211
202212 _LT_CONFIG_LIBTOOL_INIT([
203 # See if we are running on zsh, and set the options which allow our
213 # See if we are running on zsh, and set the options that allow our
204214 # commands through without removal of \ escapes INIT.
205 if test -n "\${ZSH_VERSION+set}" ; then
215 if test -n "\${ZSH_VERSION+set}"; then
206216 setopt NO_GLOB_SUBST
207217 fi
208218 ])
209 if test -n "${ZSH_VERSION+set}" ; then
219 if test -n "${ZSH_VERSION+set}"; then
210220 setopt NO_GLOB_SUBST
211221 fi
212222
219229 # AIX sometimes has problems with the GCC collect2 program. For some
220230 # reason, if we set the COLLECT_NAMES environment variable, the problems
221231 # vanish in a puff of smoke.
222 if test "X${COLLECT_NAMES+set}" != Xset; then
232 if test set != "${COLLECT_NAMES+set}"; then
223233 COLLECT_NAMES=
224234 export COLLECT_NAMES
225235 fi
230240 ofile=libtool
231241 can_build_shared=yes
232242
233 # All known linkers require a `.a' archive for static linking (except MSVC,
243 # All known linkers require a '.a' archive for static linking (except MSVC,
234244 # which needs '.lib').
235245 libext=a
236246
237 with_gnu_ld="$lt_cv_prog_gnu_ld"
238
239 old_CC="$CC"
240 old_CFLAGS="$CFLAGS"
247 with_gnu_ld=$lt_cv_prog_gnu_ld
248
249 old_CC=$CC
250 old_CFLAGS=$CFLAGS
241251
242252 # Set sane defaults for various variables
243253 test -z "$CC" && CC=cc
290300
291301 # _LT_PROG_LTMAIN
292302 # ---------------
293 # Note that this code is called both from `configure', and `config.status'
303 # Note that this code is called both from 'configure', and 'config.status'
294304 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
295 # `config.status' has no value for ac_aux_dir unless we are using Automake,
305 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
296306 # so we pass a copy along to make sure it has a sensible value anyway.
297307 m4_defun([_LT_PROG_LTMAIN],
298308 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
299309 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
300 ltmain="$ac_aux_dir/ltmain.sh"
310 ltmain=$ac_aux_dir/ltmain.sh
301311 ])# _LT_PROG_LTMAIN
302312
303313
304314
305315 # So that we can recreate a full libtool script including additional
306316 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
307 # in macros and then make a single call at the end using the `libtool'
317 # in macros and then make a single call at the end using the 'libtool'
308318 # label.
309319
310320
436446
437447 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
438448 # ------------------------------------
439 # Quote a variable value, and forward it to `config.status' so that its
440 # declaration there will have the same value as in `configure'. VARNAME
449 # Quote a variable value, and forward it to 'config.status' so that its
450 # declaration there will have the same value as in 'configure'. VARNAME
441451 # must have a single quote delimited value for this to work.
442452 m4_define([_LT_CONFIG_STATUS_DECLARE],
443453 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
461471 # Output comment and list of tags supported by the script
462472 m4_defun([_LT_LIBTOOL_TAGS],
463473 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
464 available_tags="_LT_TAGS"dnl
474 available_tags='_LT_TAGS'dnl
465475 ])
466476
467477
489499 # _LT_LIBTOOL_CONFIG_VARS
490500 # -----------------------
491501 # Produce commented declarations of non-tagged libtool config variables
492 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
502 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
493503 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
494504 # section) are produced by _LT_LIBTOOL_TAG_VARS.
495505 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
515525 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
516526 # variables for single and double quote escaping we saved from calls
517527 # to _LT_DECL, we can put quote escaped variables declarations
518 # into `config.status', and then the shell code to quote escape them in
519 # for loops in `config.status'. Finally, any additional code accumulated
528 # into 'config.status', and then the shell code to quote escape them in
529 # for loops in 'config.status'. Finally, any additional code accumulated
520530 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
521531 m4_defun([_LT_CONFIG_COMMANDS],
522532 [AC_PROVIDE_IFELSE([LT_OUTPUT],
562572 ]], lt_decl_quote_varnames); do
563573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
564574 *[[\\\\\\\`\\"\\\$]]*)
565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
566576 ;;
567577 *)
568578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
575585 ]], lt_decl_dquote_varnames); do
576586 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
577587 *[[\\\\\\\`\\"\\\$]]*)
578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
579589 ;;
580590 *)
581591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
591601 # Generate a child script FILE with all initialization necessary to
592602 # reuse the environment learned by the parent script, and make the
593603 # file executable. If COMMENT is supplied, it is inserted after the
594 # `#!' sequence but before initialization text begins. After this
604 # '#!' sequence but before initialization text begins. After this
595605 # macro, additional text can be appended to FILE to form the body of
596606 # the child script. The macro ends with non-zero status if the
597607 # file could not be fully written (such as if the disk is full).
613623 _AS_PREPARE
614624 exec AS_MESSAGE_FD>&1
615625 _ASEOF
616 test $lt_write_fail = 0 && chmod +x $1[]dnl
626 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
617627 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
618628
619629 # LT_OUTPUT
636646 } >&AS_MESSAGE_LOG_FD
637647
638648 lt_cl_help="\
639 \`$as_me' creates a local libtool stub from the current configuration,
649 '$as_me' creates a local libtool stub from the current configuration,
640650 for use in further configure time tests before the real libtool is
641651 generated.
642652
658668 This config.lt script is free software; the Free Software Foundation
659669 gives unlimited permision to copy, distribute and modify it."
660670
661 while test $[#] != 0
671 while test 0 != $[#]
662672 do
663673 case $[1] in
664674 --version | --v* | -V )
671681 lt_cl_silent=: ;;
672682
673683 -*) AC_MSG_ERROR([unrecognized option: $[1]
674 Try \`$[0] --help' for more information.]) ;;
684 Try '$[0] --help' for more information.]) ;;
675685
676686 *) AC_MSG_ERROR([unrecognized argument: $[1]
677 Try \`$[0] --help' for more information.]) ;;
687 Try '$[0] --help' for more information.]) ;;
678688 esac
679689 shift
680690 done
700710 # open by configure. Here we exec the FD to /dev/null, effectively closing
701711 # config.log, so it can be properly (re)opened and appended to by config.lt.
702712 lt_cl_success=:
703 test "$silent" = yes &&
713 test yes = "$silent" &&
704714 lt_config_lt_args="$lt_config_lt_args --quiet"
705715 exec AS_MESSAGE_LOG_FD>/dev/null
706716 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
720730 _LT_CONFIG_SAVE_COMMANDS([
721731 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
722732 m4_if(_LT_TAG, [C], [
723 # See if we are running on zsh, and set the options which allow our
733 # See if we are running on zsh, and set the options that allow our
724734 # commands through without removal of \ escapes.
725 if test -n "${ZSH_VERSION+set}" ; then
735 if test -n "${ZSH_VERSION+set}"; then
726736 setopt NO_GLOB_SUBST
727737 fi
728738
729 cfgfile="${ofile}T"
739 cfgfile=${ofile}T
730740 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
731741 $RM "$cfgfile"
732742
733743 cat <<_LT_EOF >> "$cfgfile"
734744 #! $SHELL
735
736 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
737 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
738 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
745 # Generated automatically by $as_me ($PACKAGE) $VERSION
739746 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
740 #
747
748 # Provide generalized library-building support services.
749 # Written by Gordon Matzigkeit, 1996
750
741751 _LT_COPYING
742752 _LT_LIBTOOL_TAGS
753
754 # Configured defaults for sys_lib_dlsearch_path munging.
755 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
743756
744757 # ### BEGIN LIBTOOL CONFIG
745758 _LT_LIBTOOL_CONFIG_VARS
746759 _LT_LIBTOOL_TAG_VARS
747760 # ### END LIBTOOL CONFIG
761
762 _LT_EOF
763
764 cat <<'_LT_EOF' >> "$cfgfile"
765
766 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
767
768 _LT_PREPARE_MUNGE_PATH_LIST
769 _LT_PREPARE_CC_BASENAME
770
771 # ### END FUNCTIONS SHARED WITH CONFIGURE
748772
749773 _LT_EOF
750774
754778 # AIX sometimes has problems with the GCC collect2 program. For some
755779 # reason, if we set the COLLECT_NAMES environment variable, the problems
756780 # vanish in a puff of smoke.
757 if test "X${COLLECT_NAMES+set}" != Xset; then
781 if test set != "${COLLECT_NAMES+set}"; then
758782 COLLECT_NAMES=
759783 export COLLECT_NAMES
760784 fi
770794 # is reportedly fixed, but why not run on old versions too?
771795 sed '$q' "$ltmain" >> "$cfgfile" \
772796 || (rm -f "$cfgfile"; exit 1)
773
774 _LT_PROG_REPLACE_SHELLFNS
775797
776798 mv -f "$cfgfile" "$ofile" ||
777799 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
790812 [m4_if([$1], [], [
791813 PACKAGE='$PACKAGE'
792814 VERSION='$VERSION'
793 TIMESTAMP='$TIMESTAMP'
794815 RM='$RM'
795816 ofile='$ofile'], [])
796817 ])dnl /_LT_CONFIG_SAVE_COMMANDS
9871008
9881009 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
9891010 [lt_cv_apple_cc_single_mod=no
990 if test -z "${LT_MULTI_MODULE}"; then
1011 if test -z "$LT_MULTI_MODULE"; then
9911012 # By default we will add the -single_module flag. You can override
9921013 # by either setting the environment variable LT_MULTI_MODULE
9931014 # non-empty at configure time, or by adding -multi_module to the
10051026 cat conftest.err >&AS_MESSAGE_LOG_FD
10061027 # Otherwise, if the output was created with a 0 exit code from
10071028 # the compiler, it worked.
1008 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1029 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10091030 lt_cv_apple_cc_single_mod=yes
10101031 else
10111032 cat conftest.err >&AS_MESSAGE_LOG_FD
10231044 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
10241045 [lt_cv_ld_exported_symbols_list=yes],
10251046 [lt_cv_ld_exported_symbols_list=no])
1026 LDFLAGS="$save_LDFLAGS"
1047 LDFLAGS=$save_LDFLAGS
10271048 ])
10281049
10291050 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
10451066 _lt_result=$?
10461067 if test -s conftest.err && $GREP force_load conftest.err; then
10471068 cat conftest.err >&AS_MESSAGE_LOG_FD
1048 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1069 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10491070 lt_cv_ld_force_load=yes
10501071 else
10511072 cat conftest.err >&AS_MESSAGE_LOG_FD
10551076 ])
10561077 case $host_os in
10571078 rhapsody* | darwin1.[[012]])
1058 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1079 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10591080 darwin1.*)
1060 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1081 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10611082 darwin*) # darwin 5.x on
10621083 # if running on 10.5 or later, the deployment target defaults
10631084 # to the OS version, if on x86, and 10.4, the deployment
10641085 # target defaults to 10.4. Don't you love it?
10651086 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10661087 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1067 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1068 10.[[012]]*)
1069 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1088 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1089 10.[[012]][[,.]]*)
1090 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10701091 10.*)
1071 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1092 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10721093 esac
10731094 ;;
10741095 esac
1075 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1096 if test yes = "$lt_cv_apple_cc_single_mod"; then
10761097 _lt_dar_single_mod='$single_module'
10771098 fi
1078 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1079 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1099 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1100 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10801101 else
1081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1102 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10821103 fi
1083 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1104 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10841105 _lt_dsymutil='~$DSYMUTIL $lib || :'
10851106 else
10861107 _lt_dsymutil=
11001121 _LT_TAGVAR(hardcode_direct, $1)=no
11011122 _LT_TAGVAR(hardcode_automatic, $1)=yes
11021123 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1103 if test "$lt_cv_ld_force_load" = "yes"; then
1104 _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\"`'
1124 if test yes = "$lt_cv_ld_force_load"; then
1125 _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\"`'
11051126 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
11061127 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
11071128 else
11081129 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
11091130 fi
11101131 _LT_TAGVAR(link_all_deplibs, $1)=yes
1111 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1132 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
11121133 case $cc_basename in
1113 ifort*) _lt_dar_can_shared=yes ;;
1134 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11141135 *) _lt_dar_can_shared=$GCC ;;
11151136 esac
1116 if test "$_lt_dar_can_shared" = "yes"; then
1137 if test yes = "$_lt_dar_can_shared"; then
11171138 output_verbose_link_cmd=func_echo_all
1118 _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}"
1119 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1120 _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}"
1121 _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}"
1139 _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"
1140 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1141 _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"
1142 _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"
11221143 m4_if([$1], [CXX],
1123 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1124 _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}"
1125 _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}"
1144 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1145 _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"
1146 _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"
11261147 fi
11271148 ],[])
11281149 else
11421163 # Allow to override them for all tags through lt_cv_aix_libpath.
11431164 m4_defun([_LT_SYS_MODULE_PATH_AIX],
11441165 [m4_require([_LT_DECL_SED])dnl
1145 if test "${lt_cv_aix_libpath+set}" = set; then
1166 if test set = "${lt_cv_aix_libpath+set}"; then
11461167 aix_libpath=$lt_cv_aix_libpath
11471168 else
11481169 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
11601181 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11611182 fi],[])
11621183 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1163 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1184 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
11641185 fi
11651186 ])
11661187 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
11801201 # -----------------------
11811202 # Find how we can fake an echo command that does not interpret backslash.
11821203 # In particular, with Autoconf 2.60 or later we add some code to the start
1183 # of the generated configure script which will find a shell with a builtin
1184 # printf (which we can use as an echo command).
1204 # of the generated configure script that will find a shell with a builtin
1205 # printf (that we can use as an echo command).
11851206 m4_defun([_LT_PROG_ECHO_BACKSLASH],
11861207 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11871208 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12091230 # Invoke $ECHO with all args, space-separated.
12101231 func_echo_all ()
12111232 {
1212 $ECHO "$*"
1233 $ECHO "$*"
12131234 }
12141235
1215 case "$ECHO" in
1236 case $ECHO in
12161237 printf*) AC_MSG_RESULT([printf]) ;;
12171238 print*) AC_MSG_RESULT([print -r]) ;;
12181239 *) AC_MSG_RESULT([cat]) ;;
12381259 AC_DEFUN([_LT_WITH_SYSROOT],
12391260 [AC_MSG_CHECKING([for sysroot])
12401261 AC_ARG_WITH([sysroot],
1241 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1242 (or the compiler's sysroot if not specified).],
1262 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1263 [Search for dependent libraries within DIR (or the compiler's sysroot
1264 if not specified).])],
12431265 [], [with_sysroot=no])
12441266
12451267 dnl lt_sysroot will always be passed unquoted. We quote it here
12461268 dnl in case the user passed a directory name.
12471269 lt_sysroot=
1248 case ${with_sysroot} in #(
1270 case $with_sysroot in #(
12491271 yes)
1250 if test "$GCC" = yes; then
1272 if test yes = "$GCC"; then
12511273 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12521274 fi
12531275 ;; #(
12571279 no|'')
12581280 ;; #(
12591281 *)
1260 AC_MSG_RESULT([${with_sysroot}])
1282 AC_MSG_RESULT([$with_sysroot])
12611283 AC_MSG_ERROR([The sysroot must be an absolute path.])
12621284 ;;
12631285 esac
12641286
12651287 AC_MSG_RESULT([${lt_sysroot:-no}])
12661288 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1267 [dependent libraries, and in which our libraries should be installed.])])
1289 [dependent libraries, and where our libraries should be installed.])])
12681290
12691291 # _LT_ENABLE_LOCK
12701292 # ---------------
12721294 [AC_ARG_ENABLE([libtool-lock],
12731295 [AS_HELP_STRING([--disable-libtool-lock],
12741296 [avoid locking (might break parallel builds)])])
1275 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1297 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12761298
12771299 # Some flags need to be propagated to the compiler or linker for good
12781300 # libtool support.
12791301 case $host in
12801302 ia64-*-hpux*)
1281 # Find out which ABI we are using.
1303 # Find out what ABI is being produced by ac_compile, and set mode
1304 # options accordingly.
12821305 echo 'int i;' > conftest.$ac_ext
12831306 if AC_TRY_EVAL(ac_compile); then
12841307 case `/usr/bin/file conftest.$ac_objext` in
12851308 *ELF-32*)
1286 HPUX_IA64_MODE="32"
1309 HPUX_IA64_MODE=32
12871310 ;;
12881311 *ELF-64*)
1289 HPUX_IA64_MODE="64"
1312 HPUX_IA64_MODE=64
12901313 ;;
12911314 esac
12921315 fi
12931316 rm -rf conftest*
12941317 ;;
12951318 *-*-irix6*)
1296 # Find out which ABI we are using.
1319 # Find out what ABI is being produced by ac_compile, and set linker
1320 # options accordingly.
12971321 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12981322 if AC_TRY_EVAL(ac_compile); then
1299 if test "$lt_cv_prog_gnu_ld" = yes; then
1323 if test yes = "$lt_cv_prog_gnu_ld"; then
13001324 case `/usr/bin/file conftest.$ac_objext` in
13011325 *32-bit*)
13021326 LD="${LD-ld} -melf32bsmip"
13251349 rm -rf conftest*
13261350 ;;
13271351
1352 mips64*-*linux*)
1353 # Find out what ABI is being produced by ac_compile, and set linker
1354 # options accordingly.
1355 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1356 if AC_TRY_EVAL(ac_compile); then
1357 emul=elf
1358 case `/usr/bin/file conftest.$ac_objext` in
1359 *32-bit*)
1360 emul="${emul}32"
1361 ;;
1362 *64-bit*)
1363 emul="${emul}64"
1364 ;;
1365 esac
1366 case `/usr/bin/file conftest.$ac_objext` in
1367 *MSB*)
1368 emul="${emul}btsmip"
1369 ;;
1370 *LSB*)
1371 emul="${emul}ltsmip"
1372 ;;
1373 esac
1374 case `/usr/bin/file conftest.$ac_objext` in
1375 *N32*)
1376 emul="${emul}n32"
1377 ;;
1378 esac
1379 LD="${LD-ld} -m $emul"
1380 fi
1381 rm -rf conftest*
1382 ;;
1383
13281384 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13291385 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1330 # Find out which ABI we are using.
1386 # Find out what ABI is being produced by ac_compile, and set linker
1387 # options accordingly. Note that the listed cases only cover the
1388 # situations where additional linker options are needed (such as when
1389 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1390 # vice versa); the common cases where no linker options are needed do
1391 # not appear in the list.
13311392 echo 'int i;' > conftest.$ac_ext
13321393 if AC_TRY_EVAL(ac_compile); then
13331394 case `/usr/bin/file conftest.o` in
13461407 ;;
13471408 esac
13481409 ;;
1349 powerpc64le-*)
1410 powerpc64le-*linux*)
13501411 LD="${LD-ld} -m elf32lppclinux"
13511412 ;;
1352 powerpc64-*)
1413 powerpc64-*linux*)
13531414 LD="${LD-ld} -m elf32ppclinux"
13541415 ;;
13551416 s390x-*linux*)
13681429 x86_64-*linux*)
13691430 LD="${LD-ld} -m elf_x86_64"
13701431 ;;
1371 powerpcle-*)
1432 powerpcle-*linux*)
13721433 LD="${LD-ld} -m elf64lppc"
13731434 ;;
1374 powerpc-*)
1435 powerpc-*linux*)
13751436 LD="${LD-ld} -m elf64ppc"
13761437 ;;
13771438 s390*-*linux*|s390*-*tpf*)
13891450
13901451 *-*-sco3.2v5*)
13911452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1392 SAVE_CFLAGS="$CFLAGS"
1453 SAVE_CFLAGS=$CFLAGS
13931454 CFLAGS="$CFLAGS -belf"
13941455 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13951456 [AC_LANG_PUSH(C)
13961457 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13971458 AC_LANG_POP])
1398 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1459 if test yes != "$lt_cv_cc_needs_belf"; then
13991460 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1400 CFLAGS="$SAVE_CFLAGS"
1461 CFLAGS=$SAVE_CFLAGS
14011462 fi
14021463 ;;
14031464 *-*solaris*)
1404 # Find out which ABI we are using.
1465 # Find out what ABI is being produced by ac_compile, and set linker
1466 # options accordingly.
14051467 echo 'int i;' > conftest.$ac_ext
14061468 if AC_TRY_EVAL(ac_compile); then
14071469 case `/usr/bin/file conftest.o` in
14091471 case $lt_cv_prog_gnu_ld in
14101472 yes*)
14111473 case $host in
1412 i?86-*-solaris*)
1474 i?86-*-solaris*|x86_64-*-solaris*)
14131475 LD="${LD-ld} -m elf_x86_64"
14141476 ;;
14151477 sparc*-*-solaris*)
14181480 esac
14191481 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14201482 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1421 LD="${LD-ld}_sol2"
1483 LD=${LD-ld}_sol2
14221484 fi
14231485 ;;
14241486 *)
14341496 ;;
14351497 esac
14361498
1437 need_locks="$enable_libtool_lock"
1499 need_locks=$enable_libtool_lock
14381500 ])# _LT_ENABLE_LOCK
14391501
14401502
14531515 [echo conftest.$ac_objext > conftest.lst
14541516 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
14551517 AC_TRY_EVAL([lt_ar_try])
1456 if test "$ac_status" -eq 0; then
1518 if test 0 -eq "$ac_status"; then
14571519 # Ensure the archiver fails upon bogus file names.
14581520 rm -f conftest.$ac_objext libconftest.a
14591521 AC_TRY_EVAL([lt_ar_try])
1460 if test "$ac_status" -ne 0; then
1522 if test 0 -ne "$ac_status"; then
14611523 lt_cv_ar_at_file=@
14621524 fi
14631525 fi
14651527 ])
14661528 ])
14671529
1468 if test "x$lt_cv_ar_at_file" = xno; then
1530 if test no = "$lt_cv_ar_at_file"; then
14691531 archiver_list_spec=
14701532 else
14711533 archiver_list_spec=$lt_cv_ar_at_file
14961558
14971559 if test -n "$RANLIB"; then
14981560 case $host_os in
1499 openbsd*)
1561 bitrig* | openbsd*)
15001562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
15011563 ;;
15021564 *)
15321594 [$2=no
15331595 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15341596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1535 lt_compiler_flag="$3"
1597 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
15361598 # Insert the option either (1) after the last *FLAGS variable, or
15371599 # (2) before a word containing "conftest.", or (3) at the end.
15381600 # Note that $ac_compile itself does not contain backslashes and begins
15591621 $RM conftest*
15601622 ])
15611623
1562 if test x"[$]$2" = xyes; then
1624 if test yes = "[$]$2"; then
15631625 m4_if([$5], , :, [$5])
15641626 else
15651627 m4_if([$6], , :, [$6])
15811643 m4_require([_LT_DECL_SED])dnl
15821644 AC_CACHE_CHECK([$1], [$2],
15831645 [$2=no
1584 save_LDFLAGS="$LDFLAGS"
1646 save_LDFLAGS=$LDFLAGS
15851647 LDFLAGS="$LDFLAGS $3"
15861648 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15871649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16001662 fi
16011663 fi
16021664 $RM -r conftest*
1603 LDFLAGS="$save_LDFLAGS"
1665 LDFLAGS=$save_LDFLAGS
16041666 ])
16051667
1606 if test x"[$]$2" = xyes; then
1668 if test yes = "[$]$2"; then
16071669 m4_if([$4], , :, [$4])
16081670 else
16091671 m4_if([$5], , :, [$5])
16241686 AC_MSG_CHECKING([the maximum length of command line arguments])
16251687 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
16261688 i=0
1627 teststring="ABCD"
1689 teststring=ABCD
16281690
16291691 case $build_os in
16301692 msdosdjgpp*)
16641726 lt_cv_sys_max_cmd_len=8192;
16651727 ;;
16661728
1667 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1729 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
16681730 # This has been around since 386BSD, at least. Likely further.
16691731 if test -x /sbin/sysctl; then
16701732 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17151777 *)
17161778 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
17171779 if test -n "$lt_cv_sys_max_cmd_len" && \
1718 test undefined != "$lt_cv_sys_max_cmd_len"; then
1780 test undefined != "$lt_cv_sys_max_cmd_len"; then
17191781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
17201782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
17211783 else
17221784 # Make teststring a little bigger before we do anything with it.
17231785 # a 1K string should be a reasonable start.
1724 for i in 1 2 3 4 5 6 7 8 ; do
1786 for i in 1 2 3 4 5 6 7 8; do
17251787 teststring=$teststring$teststring
17261788 done
17271789 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
17281790 # If test is not a shell built-in, we'll probably end up computing a
17291791 # maximum length that is only half of the actual maximum length, but
17301792 # we can't tell.
1731 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1793 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
17321794 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1733 test $i != 17 # 1/2 MB should be enough
1795 test 17 != "$i" # 1/2 MB should be enough
17341796 do
17351797 i=`expr $i + 1`
17361798 teststring=$teststring$teststring
17461808 ;;
17471809 esac
17481810 ])
1749 if test -n $lt_cv_sys_max_cmd_len ; then
1811 if test -n "$lt_cv_sys_max_cmd_len"; then
17501812 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
17511813 else
17521814 AC_MSG_RESULT(none)
17741836 # ----------------------------------------------------------------
17751837 m4_defun([_LT_TRY_DLOPEN_SELF],
17761838 [m4_require([_LT_HEADER_DLFCN])dnl
1777 if test "$cross_compiling" = yes; then :
1839 if test yes = "$cross_compiling"; then :
17781840 [$4]
17791841 else
17801842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18211883 # endif
18221884 #endif
18231885
1824 /* When -fvisbility=hidden is used, assume the code has been annotated
1886 /* When -fvisibility=hidden is used, assume the code has been annotated
18251887 correspondingly for the symbols needed. */
1826 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1888 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18271889 int fnord () __attribute__((visibility("default")));
18281890 #endif
18291891
18491911 return status;
18501912 }]
18511913 _LT_EOF
1852 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1914 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
18531915 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
18541916 lt_status=$?
18551917 case x$lt_status in
18701932 # ------------------
18711933 AC_DEFUN([LT_SYS_DLOPEN_SELF],
18721934 [m4_require([_LT_HEADER_DLFCN])dnl
1873 if test "x$enable_dlopen" != xyes; then
1935 if test yes != "$enable_dlopen"; then
18741936 enable_dlopen=unknown
18751937 enable_dlopen_self=unknown
18761938 enable_dlopen_self_static=unknown
18801942
18811943 case $host_os in
18821944 beos*)
1883 lt_cv_dlopen="load_add_on"
1945 lt_cv_dlopen=load_add_on
18841946 lt_cv_dlopen_libs=
18851947 lt_cv_dlopen_self=yes
18861948 ;;
18871949
18881950 mingw* | pw32* | cegcc*)
1889 lt_cv_dlopen="LoadLibrary"
1951 lt_cv_dlopen=LoadLibrary
18901952 lt_cv_dlopen_libs=
18911953 ;;
18921954
18931955 cygwin*)
1894 lt_cv_dlopen="dlopen"
1956 lt_cv_dlopen=dlopen
18951957 lt_cv_dlopen_libs=
18961958 ;;
18971959
18981960 darwin*)
1899 # if libdl is installed we need to link against it
1961 # if libdl is installed we need to link against it
19001962 AC_CHECK_LIB([dl], [dlopen],
1901 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1902 lt_cv_dlopen="dyld"
1963 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1964 lt_cv_dlopen=dyld
19031965 lt_cv_dlopen_libs=
19041966 lt_cv_dlopen_self=yes
19051967 ])
19061968 ;;
19071969
1970 tpf*)
1971 # Don't try to run any link tests for TPF. We know it's impossible
1972 # because TPF is a cross-compiler, and we know how we open DSOs.
1973 lt_cv_dlopen=dlopen
1974 lt_cv_dlopen_libs=
1975 lt_cv_dlopen_self=no
1976 ;;
1977
19081978 *)
19091979 AC_CHECK_FUNC([shl_load],
1910 [lt_cv_dlopen="shl_load"],
1980 [lt_cv_dlopen=shl_load],
19111981 [AC_CHECK_LIB([dld], [shl_load],
1912 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1982 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
19131983 [AC_CHECK_FUNC([dlopen],
1914 [lt_cv_dlopen="dlopen"],
1984 [lt_cv_dlopen=dlopen],
19151985 [AC_CHECK_LIB([dl], [dlopen],
1916 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1986 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
19171987 [AC_CHECK_LIB([svld], [dlopen],
1918 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1988 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
19191989 [AC_CHECK_LIB([dld], [dld_link],
1920 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1990 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
19211991 ])
19221992 ])
19231993 ])
19261996 ;;
19271997 esac
19281998
1929 if test "x$lt_cv_dlopen" != xno; then
1999 if test no = "$lt_cv_dlopen"; then
2000 enable_dlopen=no
2001 else
19302002 enable_dlopen=yes
1931 else
1932 enable_dlopen=no
19332003 fi
19342004
19352005 case $lt_cv_dlopen in
19362006 dlopen)
1937 save_CPPFLAGS="$CPPFLAGS"
1938 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1939
1940 save_LDFLAGS="$LDFLAGS"
2007 save_CPPFLAGS=$CPPFLAGS
2008 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2009
2010 save_LDFLAGS=$LDFLAGS
19412011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19422012
1943 save_LIBS="$LIBS"
2013 save_LIBS=$LIBS
19442014 LIBS="$lt_cv_dlopen_libs $LIBS"
19452015
19462016 AC_CACHE_CHECK([whether a program can dlopen itself],
19502020 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
19512021 ])
19522022
1953 if test "x$lt_cv_dlopen_self" = xyes; then
2023 if test yes = "$lt_cv_dlopen_self"; then
19542024 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19552025 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
19562026 lt_cv_dlopen_self_static, [dnl
19602030 ])
19612031 fi
19622032
1963 CPPFLAGS="$save_CPPFLAGS"
1964 LDFLAGS="$save_LDFLAGS"
1965 LIBS="$save_LIBS"
2033 CPPFLAGS=$save_CPPFLAGS
2034 LDFLAGS=$save_LDFLAGS
2035 LIBS=$save_LIBS
19662036 ;;
19672037 esac
19682038
20542124 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20552125 _LT_COMPILER_C_O([$1])
20562126
2057 hard_links="nottested"
2058 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2127 hard_links=nottested
2128 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
20592129 # do not overwrite the value of need_locks provided by the user
20602130 AC_MSG_CHECKING([if we can lock with hard links])
20612131 hard_links=yes
20652135 ln conftest.a conftest.b 2>&5 || hard_links=no
20662136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20672137 AC_MSG_RESULT([$hard_links])
2068 if test "$hard_links" = no; then
2069 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2138 if test no = "$hard_links"; then
2139 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
20702140 need_locks=warn
20712141 fi
20722142 else
20932163 _LT_DECL([], [objdir], [0],
20942164 [The name of the directory that contains temporary libtool files])dnl
20952165 m4_pattern_allow([LT_OBJDIR])dnl
2096 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2097 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2166 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2167 [Define to the sub-directory where libtool stores uninstalled libraries.])
20982168 ])# _LT_CHECK_OBJDIR
20992169
21002170
21062176 _LT_TAGVAR(hardcode_action, $1)=
21072177 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
21082178 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2109 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2179 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
21102180
21112181 # We can hardcode non-existent directories.
2112 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2182 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
21132183 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21142184 # have to relink, otherwise we might link with an installed library
21152185 # when we should be linking with a yet-to-be-installed one
2116 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2117 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2186 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2187 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
21182188 # Linking always hardcodes the temporary library directory.
21192189 _LT_TAGVAR(hardcode_action, $1)=relink
21202190 else
21282198 fi
21292199 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
21302200
2131 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2132 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2201 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2202 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
21332203 # Fast installation is not supported
21342204 enable_fast_install=no
2135 elif test "$shlibpath_overrides_runpath" = yes ||
2136 test "$enable_shared" = no; then
2205 elif test yes = "$shlibpath_overrides_runpath" ||
2206 test no = "$enable_shared"; then
21372207 # Fast installation is not necessary
21382208 enable_fast_install=needless
21392209 fi
21572227 # FIXME - insert some real tests, host_os isn't really good enough
21582228 case $host_os in
21592229 darwin*)
2160 if test -n "$STRIP" ; then
2230 if test -n "$STRIP"; then
21612231 striplib="$STRIP -x"
21622232 old_striplib="$STRIP -S"
21632233 AC_MSG_RESULT([yes])
21752245 ])# _LT_CMD_STRIPLIB
21762246
21772247
2248 # _LT_PREPARE_MUNGE_PATH_LIST
2249 # ---------------------------
2250 # Make sure func_munge_path_list() is defined correctly.
2251 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2252 [[# func_munge_path_list VARIABLE PATH
2253 # -----------------------------------
2254 # VARIABLE is name of variable containing _space_ separated list of
2255 # directories to be munged by the contents of PATH, which is string
2256 # having a format:
2257 # "DIR[:DIR]:"
2258 # string "DIR[ DIR]" will be prepended to VARIABLE
2259 # ":DIR[:DIR]"
2260 # string "DIR[ DIR]" will be appended to VARIABLE
2261 # "DIRP[:DIRP]::[DIRA:]DIRA"
2262 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2263 # "DIRA[ DIRA]" will be appended to VARIABLE
2264 # "DIR[:DIR]"
2265 # VARIABLE will be replaced by "DIR[ DIR]"
2266 func_munge_path_list ()
2267 {
2268 case x@S|@2 in
2269 x)
2270 ;;
2271 *:)
2272 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2273 ;;
2274 x:*)
2275 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2276 ;;
2277 *::*)
2278 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2279 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2280 ;;
2281 *)
2282 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2283 ;;
2284 esac
2285 }
2286 ]])# _LT_PREPARE_PATH_LIST
2287
2288
21782289 # _LT_SYS_DYNAMIC_LINKER([TAG])
21792290 # -----------------------------
21802291 # PORTME Fill in your ld.so characteristics
21852296 m4_require([_LT_DECL_OBJDUMP])dnl
21862297 m4_require([_LT_DECL_SED])dnl
21872298 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2299 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
21882300 AC_MSG_CHECKING([dynamic linker characteristics])
21892301 m4_if([$1],
21902302 [], [
2191 if test "$GCC" = yes; then
2303 if test yes = "$GCC"; then
21922304 case $host_os in
2193 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2194 *) lt_awk_arg="/^libraries:/" ;;
2305 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2306 *) lt_awk_arg='/^libraries:/' ;;
21952307 esac
21962308 case $host_os in
2197 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2198 *) lt_sed_strip_eq="s,=/,/,g" ;;
2309 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2310 *) lt_sed_strip_eq='s|=/|/|g' ;;
21992311 esac
22002312 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
22012313 case $lt_search_path_spec in
22112323 ;;
22122324 esac
22132325 # Ok, now we have the path, separated by spaces, we can step through it
2214 # and add multilib dir if necessary.
2326 # and add multilib dir if necessary...
22152327 lt_tmp_lt_search_path_spec=
2216 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2328 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2329 # ...but if some path component already ends with the multilib dir we assume
2330 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2331 case "$lt_multi_os_dir; $lt_search_path_spec " in
2332 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2333 lt_multi_os_dir=
2334 ;;
2335 esac
22172336 for lt_sys_path in $lt_search_path_spec; do
2218 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2219 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2220 else
2337 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2338 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2339 elif test -n "$lt_multi_os_dir"; then
22212340 test -d "$lt_sys_path" && \
22222341 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
22232342 fi
22242343 done
22252344 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2226 BEGIN {RS=" "; FS="/|\n";} {
2227 lt_foo="";
2228 lt_count=0;
2345 BEGIN {RS = " "; FS = "/|\n";} {
2346 lt_foo = "";
2347 lt_count = 0;
22292348 for (lt_i = NF; lt_i > 0; lt_i--) {
22302349 if ($lt_i != "" && $lt_i != ".") {
22312350 if ($lt_i == "..") {
22322351 lt_count++;
22332352 } else {
22342353 if (lt_count == 0) {
2235 lt_foo="/" $lt_i lt_foo;
2354 lt_foo = "/" $lt_i lt_foo;
22362355 } else {
22372356 lt_count--;
22382357 }
22462365 # for these hosts.
22472366 case $host_os in
22482367 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2249 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2368 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
22502369 esac
22512370 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
22522371 else
22552374 library_names_spec=
22562375 libname_spec='lib$name'
22572376 soname_spec=
2258 shrext_cmds=".so"
2377 shrext_cmds=.so
22592378 postinstall_cmds=
22602379 postuninstall_cmds=
22612380 finish_cmds=
22722391 # flags to be left without arguments
22732392 need_version=unknown
22742393
2394 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2395 [User-defined run-time library search path.])
2396
22752397 case $host_os in
22762398 aix3*)
22772399 version_type=linux # correct to gnu/linux during the next big refactor
2278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2400 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22792401 shlibpath_var=LIBPATH
22802402
22812403 # AIX 3 has no versioning support, so we append a major version to the name.
2282 soname_spec='${libname}${release}${shared_ext}$major'
2404 soname_spec='$libname$release$shared_ext$major'
22832405 ;;
22842406
22852407 aix[[4-9]]*)
22872409 need_lib_prefix=no
22882410 need_version=no
22892411 hardcode_into_libs=yes
2290 if test "$host_cpu" = ia64; then
2412 if test ia64 = "$host_cpu"; then
22912413 # AIX 5 supports IA64
2292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2414 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22932415 shlibpath_var=LD_LIBRARY_PATH
22942416 else
22952417 # With GCC up to 2.95.x, collect2 would create an import file
22962418 # for dependence libraries. The import file would start with
2297 # the line `#! .'. This would cause the generated library to
2298 # depend on `.', always an invalid library. This was fixed in
2419 # the line '#! .'. This would cause the generated library to
2420 # depend on '.', always an invalid library. This was fixed in
22992421 # development snapshots of GCC prior to 3.0.
23002422 case $host_os in
23012423 aix4 | aix4.[[01]] | aix4.[[01]].*)
23022424 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23032425 echo ' yes '
2304 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2426 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
23052427 :
23062428 else
23072429 can_build_shared=no
23082430 fi
23092431 ;;
23102432 esac
2311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2433 # Using Import Files as archive members, it is possible to support
2434 # filename-based versioning of shared library archives on AIX. While
2435 # this would work for both with and without runtime linking, it will
2436 # prevent static linking of such archives. So we do filename-based
2437 # shared library versioning with .so extension only, which is used
2438 # when both runtime linking and shared linking is enabled.
2439 # Unfortunately, runtime linking may impact performance, so we do
2440 # not want this to be the default eventually. Also, we use the
2441 # versioned .so libs for executables only if there is the -brtl
2442 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2443 # To allow for filename-based versioning support, we need to create
2444 # libNAME.so.V as an archive file, containing:
2445 # *) an Import File, referring to the versioned filename of the
2446 # archive as well as the shared archive member, telling the
2447 # bitwidth (32 or 64) of that shared object, and providing the
2448 # list of exported symbols of that shared object, eventually
2449 # decorated with the 'weak' keyword
2450 # *) the shared object with the F_LOADONLY flag set, to really avoid
2451 # it being seen by the linker.
2452 # At run time we better use the real file rather than another symlink,
2453 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2454
2455 case $with_aix_soname,$aix_use_runtimelinking in
2456 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
23122457 # soname into executable. Probably we can add versioning support to
23132458 # collect2, so additional links can be useful in future.
2314 if test "$aix_use_runtimelinking" = yes; then
2459 aix,yes) # traditional libtool
2460 dynamic_linker='AIX unversionable lib.so'
23152461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23162462 # instead of lib<name>.a to let people know that these are not
23172463 # typical AIX shared libraries.
2318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2319 else
2464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2465 ;;
2466 aix,no) # traditional AIX only
2467 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
23202468 # We preserve .a as extension for shared libraries through AIX4.2
23212469 # and later when we are not doing run time linking.
2322 library_names_spec='${libname}${release}.a $libname.a'
2323 soname_spec='${libname}${release}${shared_ext}$major'
2324 fi
2470 library_names_spec='$libname$release.a $libname.a'
2471 soname_spec='$libname$release$shared_ext$major'
2472 ;;
2473 svr4,*) # full svr4 only
2474 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2475 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2476 # We do not specify a path in Import Files, so LIBPATH fires.
2477 shlibpath_overrides_runpath=yes
2478 ;;
2479 *,yes) # both, prefer svr4
2480 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2481 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2482 # unpreferred sharedlib libNAME.a needs extra handling
2483 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"'
2484 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"'
2485 # We do not specify a path in Import Files, so LIBPATH fires.
2486 shlibpath_overrides_runpath=yes
2487 ;;
2488 *,no) # both, prefer aix
2489 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2490 library_names_spec='$libname$release.a $libname.a'
2491 soname_spec='$libname$release$shared_ext$major'
2492 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2493 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)'
2494 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"'
2495 ;;
2496 esac
23252497 shlibpath_var=LIBPATH
23262498 fi
23272499 ;;
23312503 powerpc)
23322504 # Since July 2007 AmigaOS4 officially supports .so libraries.
23332505 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23352507 ;;
23362508 m68k)
23372509 library_names_spec='$libname.ixlibrary $libname.a'
23382510 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2339 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'
2511 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'
23402512 ;;
23412513 esac
23422514 ;;
23432515
23442516 beos*)
2345 library_names_spec='${libname}${shared_ext}'
2517 library_names_spec='$libname$shared_ext'
23462518 dynamic_linker="$host_os ld.so"
23472519 shlibpath_var=LIBRARY_PATH
23482520 ;;
23502522 bsdi[[45]]*)
23512523 version_type=linux # correct to gnu/linux during the next big refactor
23522524 need_version=no
2353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2354 soname_spec='${libname}${release}${shared_ext}$major'
2525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2526 soname_spec='$libname$release$shared_ext$major'
23552527 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23562528 shlibpath_var=LD_LIBRARY_PATH
23572529 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23632535
23642536 cygwin* | mingw* | pw32* | cegcc*)
23652537 version_type=windows
2366 shrext_cmds=".dll"
2538 shrext_cmds=.dll
23672539 need_version=no
23682540 need_lib_prefix=no
23692541
23722544 # gcc
23732545 library_names_spec='$libname.dll.a'
23742546 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2375 postinstall_cmds='base_file=`basename \${file}`~
2376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2547 postinstall_cmds='base_file=`basename \$file`~
2548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23772549 dldir=$destdir/`dirname \$dlpath`~
23782550 test -d \$dldir || mkdir -p \$dldir~
23792551 $install_prog $dir/$dlname \$dldir/$dlname~
23892561 case $host_os in
23902562 cygwin*)
23912563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2392 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2564 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23932565 m4_if([$1], [],[
23942566 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
23952567 ;;
23962568 mingw* | cegcc*)
23972569 # MinGW DLLs use traditional 'lib' prefix
2398 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2570 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23992571 ;;
24002572 pw32*)
24012573 # pw32 DLLs use 'pw' prefix rather than 'lib'
2402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2574 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
24032575 ;;
24042576 esac
24052577 dynamic_linker='Win32 ld.exe'
24082580 *,cl*)
24092581 # Native MSVC
24102582 libname_spec='$name'
2411 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2412 library_names_spec='${libname}.dll.lib'
2583 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2584 library_names_spec='$libname.dll.lib'
24132585
24142586 case $build_os in
24152587 mingw*)
24362608 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24372609 ;;
24382610 *)
2439 sys_lib_search_path_spec="$LIB"
2611 sys_lib_search_path_spec=$LIB
24402612 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
24412613 # It is most probably a Windows format PATH.
24422614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24492621 esac
24502622
24512623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2452 postinstall_cmds='base_file=`basename \${file}`~
2453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2624 postinstall_cmds='base_file=`basename \$file`~
2625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
24542626 dldir=$destdir/`dirname \$dlpath`~
24552627 test -d \$dldir || mkdir -p \$dldir~
24562628 $install_prog $dir/$dlname \$dldir/$dlname'
24632635
24642636 *)
24652637 # Assume MSVC wrapper
2466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2638 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
24672639 dynamic_linker='Win32 ld.exe'
24682640 ;;
24692641 esac
24762648 version_type=darwin
24772649 need_lib_prefix=no
24782650 need_version=no
2479 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2480 soname_spec='${libname}${release}${major}$shared_ext'
2651 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2652 soname_spec='$libname$release$major$shared_ext'
24812653 shlibpath_overrides_runpath=yes
24822654 shlibpath_var=DYLD_LIBRARY_PATH
24832655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24902662 version_type=linux # correct to gnu/linux during the next big refactor
24912663 need_lib_prefix=no
24922664 need_version=no
2493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2494 soname_spec='${libname}${release}${shared_ext}$major'
2665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2666 soname_spec='$libname$release$shared_ext$major'
24952667 shlibpath_var=LD_LIBRARY_PATH
24962668 ;;
24972669
25092681 version_type=freebsd-$objformat
25102682 case $version_type in
25112683 freebsd-elf*)
2512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2685 soname_spec='$libname$release$shared_ext$major'
25132686 need_version=no
25142687 need_lib_prefix=no
25152688 ;;
25162689 freebsd-*)
2517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2690 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
25182691 need_version=yes
25192692 ;;
25202693 esac
25442717 need_lib_prefix=no
25452718 need_version=no
25462719 dynamic_linker="$host_os runtime_loader"
2547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2548 soname_spec='${libname}${release}${shared_ext}$major'
2720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2721 soname_spec='$libname$release$shared_ext$major'
25492722 shlibpath_var=LIBRARY_PATH
2550 shlibpath_overrides_runpath=yes
2723 shlibpath_overrides_runpath=no
25512724 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
25522725 hardcode_into_libs=yes
25532726 ;;
25652738 dynamic_linker="$host_os dld.so"
25662739 shlibpath_var=LD_LIBRARY_PATH
25672740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2569 soname_spec='${libname}${release}${shared_ext}$major'
2570 if test "X$HPUX_IA64_MODE" = X32; then
2741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2742 soname_spec='$libname$release$shared_ext$major'
2743 if test 32 = "$HPUX_IA64_MODE"; then
25712744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2745 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
25722746 else
25732747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2748 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
25742749 fi
2575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25762750 ;;
25772751 hppa*64*)
25782752 shrext_cmds='.sl'
25802754 dynamic_linker="$host_os dld.sl"
25812755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25822756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2584 soname_spec='${libname}${release}${shared_ext}$major'
2757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2758 soname_spec='$libname$release$shared_ext$major'
25852759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25862760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25872761 ;;
25902764 dynamic_linker="$host_os dld.sl"
25912765 shlibpath_var=SHLIB_PATH
25922766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
25962770 esac
25972771 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
26042778 version_type=linux # correct to gnu/linux during the next big refactor
26052779 need_lib_prefix=no
26062780 need_version=no
2607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2608 soname_spec='${libname}${release}${shared_ext}$major'
2781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2782 soname_spec='$libname$release$shared_ext$major'
26092783 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26102784 shlibpath_var=LD_LIBRARY_PATH
26112785 shlibpath_overrides_runpath=no
26162790 case $host_os in
26172791 nonstopux*) version_type=nonstopux ;;
26182792 *)
2619 if test "$lt_cv_prog_gnu_ld" = yes; then
2793 if test yes = "$lt_cv_prog_gnu_ld"; then
26202794 version_type=linux # correct to gnu/linux during the next big refactor
26212795 else
26222796 version_type=irix
26242798 esac
26252799 need_lib_prefix=no
26262800 need_version=no
2627 soname_spec='${libname}${release}${shared_ext}$major'
2628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2801 soname_spec='$libname$release$shared_ext$major'
2802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
26292803 case $host_os in
26302804 irix5* | nonstopux*)
26312805 libsuff= shlibsuff=
26442818 esac
26452819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26462820 shlibpath_overrides_runpath=no
2647 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2648 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2821 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2822 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
26492823 hardcode_into_libs=yes
26502824 ;;
26512825
26522826 # No shared lib support for Linux oldld, aout, or coff.
26532827 linux*oldld* | linux*aout* | linux*coff*)
26542828 dynamic_linker=no
2829 ;;
2830
2831 linux*android*)
2832 version_type=none # Android doesn't support versioned libraries.
2833 need_lib_prefix=no
2834 need_version=no
2835 library_names_spec='$libname$release$shared_ext'
2836 soname_spec='$libname$release$shared_ext'
2837 finish_cmds=
2838 shlibpath_var=LD_LIBRARY_PATH
2839 shlibpath_overrides_runpath=yes
2840
2841 # This implies no fast_install, which is unacceptable.
2842 # Some rework will be needed to allow for fast_install
2843 # before this can be enabled.
2844 hardcode_into_libs=yes
2845
2846 dynamic_linker='Android linker'
2847 # Don't embed -rpath directories since the linker doesn't support them.
2848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
26552849 ;;
26562850
26572851 # This must be glibc/ELF.
26592853 version_type=linux # correct to gnu/linux during the next big refactor
26602854 need_lib_prefix=no
26612855 need_version=no
2662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2663 soname_spec='${libname}${release}${shared_ext}$major'
2856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2857 soname_spec='$libname$release$shared_ext$major'
26642858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26652859 shlibpath_var=LD_LIBRARY_PATH
26662860 shlibpath_overrides_runpath=no
26852879 # before this can be enabled.
26862880 hardcode_into_libs=yes
26872881
2688 # Append ld.so.conf contents to the search path
2882 # Ideally, we could use ldconfig to report *all* directores which are
2883 # searched for libraries, however this is still not possible. Aside from not
2884 # being certain /sbin/ldconfig is available, command
2885 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2886 # even though it is searched at run-time. Try to do the best guess by
2887 # appending ld.so.conf contents (and includes) to the search path.
26892888 if test -f /etc/ld.so.conf; then
26902889 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' ' '`
26912890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27172916 need_lib_prefix=no
27182917 need_version=no
27192918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2919 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27212920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27222921 dynamic_linker='NetBSD (a.out) ld.so'
27232922 else
2724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2725 soname_spec='${libname}${release}${shared_ext}$major'
2923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2924 soname_spec='$libname$release$shared_ext$major'
27262925 dynamic_linker='NetBSD ld.elf_so'
27272926 fi
27282927 shlibpath_var=LD_LIBRARY_PATH
27322931
27332932 newsos6)
27342933 version_type=linux # correct to gnu/linux during the next big refactor
2735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27362935 shlibpath_var=LD_LIBRARY_PATH
27372936 shlibpath_overrides_runpath=yes
27382937 ;;
27412940 version_type=qnx
27422941 need_lib_prefix=no
27432942 need_version=no
2744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2745 soname_spec='${libname}${release}${shared_ext}$major'
2943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2944 soname_spec='$libname$release$shared_ext$major'
27462945 shlibpath_var=LD_LIBRARY_PATH
27472946 shlibpath_overrides_runpath=no
27482947 hardcode_into_libs=yes
27492948 dynamic_linker='ldqnx.so'
27502949 ;;
27512950
2752 openbsd*)
2951 openbsd* | bitrig*)
27532952 version_type=sunos
2754 sys_lib_dlsearch_path_spec="/usr/lib"
2953 sys_lib_dlsearch_path_spec=/usr/lib
27552954 need_lib_prefix=no
2756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2757 case $host_os in
2758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2759 *) need_version=no ;;
2760 esac
2761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2956 need_version=no
2957 else
2958 need_version=yes
2959 fi
2960 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27622961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27632962 shlibpath_var=LD_LIBRARY_PATH
2764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2765 case $host_os in
2766 openbsd2.[[89]] | openbsd2.[[89]].*)
2767 shlibpath_overrides_runpath=no
2768 ;;
2769 *)
2770 shlibpath_overrides_runpath=yes
2771 ;;
2772 esac
2773 else
2774 shlibpath_overrides_runpath=yes
2775 fi
2963 shlibpath_overrides_runpath=yes
27762964 ;;
27772965
27782966 os2*)
27792967 libname_spec='$name'
2780 shrext_cmds=".dll"
2968 version_type=windows
2969 shrext_cmds=.dll
2970 need_version=no
27812971 need_lib_prefix=no
2782 library_names_spec='$libname${shared_ext} $libname.a'
2972 # OS/2 can only load a DLL with a base name of 8 characters or less.
2973 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2974 v=$($ECHO $release$versuffix | tr -d .-);
2975 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2976 $ECHO $n$v`$shared_ext'
2977 library_names_spec='${libname}_dll.$libext'
27832978 dynamic_linker='OS/2 ld.exe'
2784 shlibpath_var=LIBPATH
2979 shlibpath_var=BEGINLIBPATH
2980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2982 postinstall_cmds='base_file=`basename \$file`~
2983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2984 dldir=$destdir/`dirname \$dlpath`~
2985 test -d \$dldir || mkdir -p \$dldir~
2986 $install_prog $dir/$dlname \$dldir/$dlname~
2987 chmod a+x \$dldir/$dlname~
2988 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2989 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2990 fi'
2991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2992 dlpath=$dir/\$dldll~
2993 $RM \$dlpath'
27852994 ;;
27862995
27872996 osf3* | osf4* | osf5*)
27882997 version_type=osf
27892998 need_lib_prefix=no
27902999 need_version=no
2791 soname_spec='${libname}${release}${shared_ext}$major'
2792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3000 soname_spec='$libname$release$shared_ext$major'
3001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27933002 shlibpath_var=LD_LIBRARY_PATH
27943003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27963005 ;;
27973006
27983007 rdos*)
28033012 version_type=linux # correct to gnu/linux during the next big refactor
28043013 need_lib_prefix=no
28053014 need_version=no
2806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2807 soname_spec='${libname}${release}${shared_ext}$major'
3015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3016 soname_spec='$libname$release$shared_ext$major'
28083017 shlibpath_var=LD_LIBRARY_PATH
28093018 shlibpath_overrides_runpath=yes
28103019 hardcode_into_libs=yes
28143023
28153024 sunos4*)
28163025 version_type=sunos
2817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3026 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
28183027 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28193028 shlibpath_var=LD_LIBRARY_PATH
28203029 shlibpath_overrides_runpath=yes
2821 if test "$with_gnu_ld" = yes; then
3030 if test yes = "$with_gnu_ld"; then
28223031 need_lib_prefix=no
28233032 fi
28243033 need_version=yes
28263035
28273036 sysv4 | sysv4.3*)
28283037 version_type=linux # correct to gnu/linux during the next big refactor
2829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2830 soname_spec='${libname}${release}${shared_ext}$major'
3038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3039 soname_spec='$libname$release$shared_ext$major'
28313040 shlibpath_var=LD_LIBRARY_PATH
28323041 case $host_vendor in
28333042 sni)
28483057 ;;
28493058
28503059 sysv4*MP*)
2851 if test -d /usr/nec ;then
3060 if test -d /usr/nec; then
28523061 version_type=linux # correct to gnu/linux during the next big refactor
2853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2854 soname_spec='$libname${shared_ext}.$major'
3062 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3063 soname_spec='$libname$shared_ext.$major'
28553064 shlibpath_var=LD_LIBRARY_PATH
28563065 fi
28573066 ;;
28583067
28593068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2860 version_type=freebsd-elf
3069 version_type=sco
28613070 need_lib_prefix=no
28623071 need_version=no
2863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2864 soname_spec='${libname}${release}${shared_ext}$major'
3072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3073 soname_spec='$libname$release$shared_ext$major'
28653074 shlibpath_var=LD_LIBRARY_PATH
28663075 shlibpath_overrides_runpath=yes
28673076 hardcode_into_libs=yes
2868 if test "$with_gnu_ld" = yes; then
3077 if test yes = "$with_gnu_ld"; then
28693078 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28703079 else
28713080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28833092 version_type=linux # correct to gnu/linux during the next big refactor
28843093 need_lib_prefix=no
28853094 need_version=no
2886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
28873096 shlibpath_var=LD_LIBRARY_PATH
28883097 shlibpath_overrides_runpath=no
28893098 hardcode_into_libs=yes
28913100
28923101 uts4*)
28933102 version_type=linux # correct to gnu/linux during the next big refactor
2894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2895 soname_spec='${libname}${release}${shared_ext}$major'
3103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3104 soname_spec='$libname$release$shared_ext$major'
28963105 shlibpath_var=LD_LIBRARY_PATH
28973106 ;;
28983107
29013110 ;;
29023111 esac
29033112 AC_MSG_RESULT([$dynamic_linker])
2904 test "$dynamic_linker" = no && can_build_shared=no
3113 test no = "$dynamic_linker" && can_build_shared=no
29053114
29063115 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2907 if test "$GCC" = yes; then
3116 if test yes = "$GCC"; then
29083117 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
29093118 fi
29103119
2911 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2912 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3120 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3121 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
29133122 fi
2914 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2915 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3123
3124 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3125 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
29163126 fi
3127
3128 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3129 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3130
3131 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3132 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3133
3134 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3135 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
29173136
29183137 _LT_DECL([], [variables_saved_for_relink], [1],
29193138 [Variables whose values should be saved in libtool wrapper scripts and
29473166 [Whether we should hardcode library paths into libraries])
29483167 _LT_DECL([], [sys_lib_search_path_spec], [2],
29493168 [Compile-time system search path for libraries])
2950 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2951 [Run-time system search path for libraries])
3169 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3170 [Detected run-time system search path for libraries])
3171 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3172 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
29523173 ])# _LT_SYS_DYNAMIC_LINKER
29533174
29543175
29553176 # _LT_PATH_TOOL_PREFIX(TOOL)
29563177 # --------------------------
2957 # find a file program which can recognize shared library
3178 # find a file program that can recognize shared library
29583179 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
29593180 [m4_require([_LT_DECL_EGREP])dnl
29603181 AC_MSG_CHECKING([for $1])
29613182 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
29623183 [case $MAGIC_CMD in
29633184 [[\\/*] | ?:[\\/]*])
2964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3185 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
29653186 ;;
29663187 *)
2967 lt_save_MAGIC_CMD="$MAGIC_CMD"
2968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3188 lt_save_MAGIC_CMD=$MAGIC_CMD
3189 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
29693190 dnl $ac_dummy forces splitting on constant user-supplied paths.
29703191 dnl POSIX.2 word splitting is done only on the output of word expansions,
29713192 dnl not every word. This closes a longstanding sh security hole.
29723193 ac_dummy="m4_if([$2], , $PATH, [$2])"
29733194 for ac_dir in $ac_dummy; do
2974 IFS="$lt_save_ifs"
3195 IFS=$lt_save_ifs
29753196 test -z "$ac_dir" && ac_dir=.
2976 if test -f $ac_dir/$1; then
2977 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3197 if test -f "$ac_dir/$1"; then
3198 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
29783199 if test -n "$file_magic_test_file"; then
29793200 case $deplibs_check_method in
29803201 "file_magic "*)
29813202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3203 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29833204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
29843205 $EGREP "$file_magic_regex" > /dev/null; then
29853206 :
30023223 break
30033224 fi
30043225 done
3005 IFS="$lt_save_ifs"
3006 MAGIC_CMD="$lt_save_MAGIC_CMD"
3226 IFS=$lt_save_ifs
3227 MAGIC_CMD=$lt_save_MAGIC_CMD
30073228 ;;
30083229 esac])
3009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3230 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
30103231 if test -n "$MAGIC_CMD"; then
30113232 AC_MSG_RESULT($MAGIC_CMD)
30123233 else
30243245
30253246 # _LT_PATH_MAGIC
30263247 # --------------
3027 # find a file program which can recognize a shared library
3248 # find a file program that can recognize a shared library
30283249 m4_defun([_LT_PATH_MAGIC],
30293250 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
30303251 if test -z "$lt_cv_path_MAGIC_CMD"; then
30513272 AC_ARG_WITH([gnu-ld],
30523273 [AS_HELP_STRING([--with-gnu-ld],
30533274 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3054 [test "$withval" = no || with_gnu_ld=yes],
3275 [test no = "$withval" || with_gnu_ld=yes],
30553276 [with_gnu_ld=no])dnl
30563277
30573278 ac_prog=ld
3058 if test "$GCC" = yes; then
3279 if test yes = "$GCC"; then
30593280 # Check if gcc -print-prog-name=ld gives a path.
30603281 AC_MSG_CHECKING([for ld used by $CC])
30613282 case $host in
30623283 *-*-mingw*)
3063 # gcc leaves a trailing carriage return which upsets mingw
3284 # gcc leaves a trailing carriage return, which upsets mingw
30643285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
30653286 *)
30663287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
30743295 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
30753296 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
30763297 done
3077 test -z "$LD" && LD="$ac_prog"
3298 test -z "$LD" && LD=$ac_prog
30783299 ;;
30793300 "")
30803301 # If it fails, then pretend we aren't using GCC.
30853306 with_gnu_ld=unknown
30863307 ;;
30873308 esac
3088 elif test "$with_gnu_ld" = yes; then
3309 elif test yes = "$with_gnu_ld"; then
30893310 AC_MSG_CHECKING([for GNU ld])
30903311 else
30913312 AC_MSG_CHECKING([for non-GNU ld])
30923313 fi
30933314 AC_CACHE_VAL(lt_cv_path_LD,
30943315 [if test -z "$LD"; then
3095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3316 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
30963317 for ac_dir in $PATH; do
3097 IFS="$lt_save_ifs"
3318 IFS=$lt_save_ifs
30983319 test -z "$ac_dir" && ac_dir=.
30993320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3100 lt_cv_path_LD="$ac_dir/$ac_prog"
3321 lt_cv_path_LD=$ac_dir/$ac_prog
31013322 # Check to see if the program is GNU ld. I'd rather use --version,
31023323 # but apparently some variants of GNU ld only accept -v.
31033324 # Break only if it was the GNU/non-GNU ld that we prefer.
31043325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
31053326 *GNU* | *'with BFD'*)
3106 test "$with_gnu_ld" != no && break
3327 test no != "$with_gnu_ld" && break
31073328 ;;
31083329 *)
3109 test "$with_gnu_ld" != yes && break
3330 test yes != "$with_gnu_ld" && break
31103331 ;;
31113332 esac
31123333 fi
31133334 done
3114 IFS="$lt_save_ifs"
3335 IFS=$lt_save_ifs
31153336 else
3116 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3337 lt_cv_path_LD=$LD # Let the user override the test with a path.
31173338 fi])
3118 LD="$lt_cv_path_LD"
3339 LD=$lt_cv_path_LD
31193340 if test -n "$LD"; then
31203341 AC_MSG_RESULT($LD)
31213342 else
31693390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31703391 case $host_os in
31713392 cygwin* | mingw* | pw32* | cegcc*)
3172 if test "$GCC" != yes; then
3393 if test yes != "$GCC"; then
31733394 reload_cmds=false
31743395 fi
31753396 ;;
31763397 darwin*)
3177 if test "$GCC" = yes; then
3178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3398 if test yes = "$GCC"; then
3399 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
31793400 else
31803401 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31813402 fi
31843405 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
31853406 _LT_TAGDECL([], [reload_cmds], [2])dnl
31863407 ])# _LT_CMD_RELOAD
3408
3409
3410 # _LT_PATH_DD
3411 # -----------
3412 # find a working dd
3413 m4_defun([_LT_PATH_DD],
3414 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3415 [printf 0123456789abcdef0123456789abcdef >conftest.i
3416 cat conftest.i conftest.i >conftest2.i
3417 : ${lt_DD:=$DD}
3418 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3419 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3420 cmp -s conftest.i conftest.out \
3421 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3422 fi])
3423 rm -f conftest.i conftest2.i conftest.out])
3424 ])# _LT_PATH_DD
3425
3426
3427 # _LT_CMD_TRUNCATE
3428 # ----------------
3429 # find command to truncate a binary pipe
3430 m4_defun([_LT_CMD_TRUNCATE],
3431 [m4_require([_LT_PATH_DD])
3432 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3433 [printf 0123456789abcdef0123456789abcdef >conftest.i
3434 cat conftest.i conftest.i >conftest2.i
3435 lt_cv_truncate_bin=
3436 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3437 cmp -s conftest.i conftest.out \
3438 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3439 fi
3440 rm -f conftest.i conftest2.i conftest.out
3441 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3442 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3443 [Command to truncate a binary pipe])
3444 ])# _LT_CMD_TRUNCATE
31873445
31883446
31893447 # _LT_CHECK_MAGIC_METHOD
32013459 # Need to set the preceding variable on all platforms that support
32023460 # interlibrary dependencies.
32033461 # 'none' -- dependencies not supported.
3204 # `unknown' -- same as none, but documents that we really don't know.
3462 # 'unknown' -- same as none, but documents that we really don't know.
32053463 # 'pass_all' -- all dependencies passed with no checks.
32063464 # 'test_compile' -- check by making test program.
32073465 # 'file_magic [[regex]]' -- check by looking for files in library path
3208 # which responds to the $file_magic_cmd with a given extended regex.
3209 # If you have `file' or equivalent on your system and you're not sure
3210 # whether `pass_all' will *always* work, you probably want this one.
3466 # that responds to the $file_magic_cmd with a given extended regex.
3467 # If you have 'file' or equivalent on your system and you're not sure
3468 # whether 'pass_all' will *always* work, you probably want this one.
32113469
32123470 case $host_os in
32133471 aix[[4-9]]*)
32343492 # Base MSYS/MinGW do not provide the 'file' command needed by
32353493 # func_win32_libid shell function, so use a weaker test based on 'objdump',
32363494 # unless we find 'file', for example because we are cross-compiling.
3237 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3238 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3495 if ( file / ) >/dev/null 2>&1; then
32393496 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32403497 lt_cv_file_magic_cmd='func_win32_libid'
32413498 else
33313588 lt_cv_deplibs_check_method=pass_all
33323589 ;;
33333590
3334 openbsd*)
3335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3591 openbsd* | bitrig*)
3592 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
33363593 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
33373594 else
33383595 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
33853642 tpf*)
33863643 lt_cv_deplibs_check_method=pass_all
33873644 ;;
3645 os2*)
3646 lt_cv_deplibs_check_method=pass_all
3647 ;;
33883648 esac
33893649 ])
33903650
34253685 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
34263686 [if test -n "$NM"; then
34273687 # Let the user override the test.
3428 lt_cv_path_NM="$NM"
3688 lt_cv_path_NM=$NM
34293689 else
3430 lt_nm_to_check="${ac_tool_prefix}nm"
3690 lt_nm_to_check=${ac_tool_prefix}nm
34313691 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
34323692 lt_nm_to_check="$lt_nm_to_check nm"
34333693 fi
34343694 for lt_tmp_nm in $lt_nm_to_check; do
3435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3695 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
34363696 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3437 IFS="$lt_save_ifs"
3697 IFS=$lt_save_ifs
34383698 test -z "$ac_dir" && ac_dir=.
3439 tmp_nm="$ac_dir/$lt_tmp_nm"
3440 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3699 tmp_nm=$ac_dir/$lt_tmp_nm
3700 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
34413701 # Check to see if the nm accepts a BSD-compat flag.
3442 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3702 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
34433703 # nm: unknown option "B" ignored
34443704 # Tru64's nm complains that /dev/null is an invalid object file
3445 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3446 */dev/null* | *'Invalid file or object type'*)
3705 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3706 case $build_os in
3707 mingw*) lt_bad_file=conftest.nm/nofile ;;
3708 *) lt_bad_file=/dev/null ;;
3709 esac
3710 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3711 *$lt_bad_file* | *'Invalid file or object type'*)
34473712 lt_cv_path_NM="$tmp_nm -B"
3448 break
3713 break 2
34493714 ;;
34503715 *)
34513716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34523717 */dev/null*)
34533718 lt_cv_path_NM="$tmp_nm -p"
3454 break
3719 break 2
34553720 ;;
34563721 *)
34573722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34623727 esac
34633728 fi
34643729 done
3465 IFS="$lt_save_ifs"
3730 IFS=$lt_save_ifs
34663731 done
34673732 : ${lt_cv_path_NM=no}
34683733 fi])
3469 if test "$lt_cv_path_NM" != "no"; then
3470 NM="$lt_cv_path_NM"
3734 if test no != "$lt_cv_path_NM"; then
3735 NM=$lt_cv_path_NM
34713736 else
34723737 # Didn't find any BSD compatible name lister, look for dumpbin.
34733738 if test -n "$DUMPBIN"; then :
34743739 # Let the user override the test.
34753740 else
34763741 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3477 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3742 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
34783743 *COFF*)
3479 DUMPBIN="$DUMPBIN -symbols"
3744 DUMPBIN="$DUMPBIN -symbols -headers"
34803745 ;;
34813746 *)
34823747 DUMPBIN=:
34843749 esac
34853750 fi
34863751 AC_SUBST([DUMPBIN])
3487 if test "$DUMPBIN" != ":"; then
3488 NM="$DUMPBIN"
3752 if test : != "$DUMPBIN"; then
3753 NM=$DUMPBIN
34893754 fi
34903755 fi
34913756 test -z "$NM" && NM=nm
35313796
35323797 case $host_os in
35333798 cygwin* | mingw* | pw32* | cegcc*)
3534 # two different shell functions defined in ltmain.sh
3535 # decide which to use based on capabilities of $DLLTOOL
3799 # two different shell functions defined in ltmain.sh;
3800 # decide which one to use based on capabilities of $DLLTOOL
35363801 case `$DLLTOOL --help 2>&1` in
35373802 *--identify-strict*)
35383803 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
35443809 ;;
35453810 *)
35463811 # fallback: assume linklib IS sharedlib
3547 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3812 lt_cv_sharedlib_from_linklib_cmd=$ECHO
35483813 ;;
35493814 esac
35503815 ])
35713836 lt_cv_path_mainfest_tool=yes
35723837 fi
35733838 rm -f conftest*])
3574 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3839 if test yes != "$lt_cv_path_mainfest_tool"; then
35753840 MANIFEST_TOOL=:
35763841 fi
35773842 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
35783843 ])# _LT_PATH_MANIFEST_TOOL
3844
3845
3846 # _LT_DLL_DEF_P([FILE])
3847 # ---------------------
3848 # True iff FILE is a Windows DLL '.def' file.
3849 # Keep in sync with func_dll_def_p in the libtool script
3850 AC_DEFUN([_LT_DLL_DEF_P],
3851 [dnl
3852 test DEF = "`$SED -n dnl
3853 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3854 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3855 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3856 -e q dnl Only consider the first "real" line
3857 $1`" dnl
3858 ])# _LT_DLL_DEF_P
35793859
35803860
35813861 # LT_LIB_M
35893869 # These system don't have libm, or don't need it
35903870 ;;
35913871 *-ncr-sysv4.3*)
3592 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3872 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
35933873 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
35943874 ;;
35953875 *)
3596 AC_CHECK_LIB(m, cos, LIBM="-lm")
3876 AC_CHECK_LIB(m, cos, LIBM=-lm)
35973877 ;;
35983878 esac
35993879 AC_SUBST([LIBM])
36123892
36133893 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
36143894
3615 if test "$GCC" = yes; then
3895 if test yes = "$GCC"; then
36163896 case $cc_basename in
36173897 nvcc*)
36183898 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
36643944 symcode='[[ABCDGISTW]]'
36653945 ;;
36663946 hpux*)
3667 if test "$host_cpu" = ia64; then
3947 if test ia64 = "$host_cpu"; then
36683948 symcode='[[ABCDEGRST]]'
36693949 fi
36703950 ;;
36973977 symcode='[[ABCDGIRSTW]]' ;;
36983978 esac
36993979
3980 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3981 # Gets list of data symbols to import.
3982 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3983 # Adjust the below global symbol transforms to fixup imported variables.
3984 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3985 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3986 lt_c_name_lib_hook="\
3987 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3988 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3989 else
3990 # Disable hooks by default.
3991 lt_cv_sys_global_symbol_to_import=
3992 lt_cdecl_hook=
3993 lt_c_name_hook=
3994 lt_c_name_lib_hook=
3995 fi
3996
37003997 # Transform an extracted symbol line into a proper C declaration.
37013998 # Some systems (esp. on ia64) link data and code symbols differently,
37023999 # so use this general approach.
3703 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4000 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4001 $lt_cdecl_hook\
4002 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4003 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
37044004
37054005 # Transform an extracted symbol line into symbol name and symbol address
3706 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3707 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'"
4006 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4007 $lt_c_name_hook\
4008 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4009 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4010
4011 # Transform an extracted symbol line into symbol name with lib prefix and
4012 # symbol address.
4013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4014 $lt_c_name_lib_hook\
4015 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4016 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4017 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
37084018
37094019 # Handle CRLF in mingw tool chain
37104020 opt_cr=
37224032
37234033 # Write the raw and C identifiers.
37244034 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3725 # Fake it for dumpbin and say T for any non-static function
3726 # and D for any global variable.
4035 # Fake it for dumpbin and say T for any non-static function,
4036 # D for any global variable and I for any imported variable.
37274037 # Also find C++ and __fastcall symbols from MSVC++,
37284038 # which start with @ or ?.
37294039 lt_cv_sys_global_symbol_pipe="$AWK ['"\
37304040 " {last_section=section; section=\$ 3};"\
37314041 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37324042 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4043 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4044 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4045 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
37334046 " \$ 0!~/External *\|/{next};"\
37344047 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37354048 " {if(hide[section]) next};"\
3736 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3737 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3738 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3739 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4049 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4050 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4051 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4052 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
37404053 " ' prfx=^$ac_symprfx]"
37414054 else
37424055 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37764089 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37774090 cat <<_LT_EOF > conftest.$ac_ext
37784091 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3779 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3780 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4092 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4093 /* DATA imports from DLLs on WIN32 can't be const, because runtime
37814094 relocations are performed -- see ld's documentation on pseudo-relocs. */
37824095 # define LT@&t@_DLSYM_CONST
3783 #elif defined(__osf__)
4096 #elif defined __osf__
37844097 /* This system does not cope well with relocations in const data. */
37854098 # define LT@&t@_DLSYM_CONST
37864099 #else
38064119 {
38074120 { "@PROGRAM@", (void *) 0 },
38084121 _LT_EOF
3809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4122 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
38104123 cat <<\_LT_EOF >> conftest.$ac_ext
38114124 {0, (void *) 0}
38124125 };
38264139 mv conftest.$ac_objext conftstm.$ac_objext
38274140 lt_globsym_save_LIBS=$LIBS
38284141 lt_globsym_save_CFLAGS=$CFLAGS
3829 LIBS="conftstm.$ac_objext"
4142 LIBS=conftstm.$ac_objext
38304143 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3831 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4144 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
38324145 pipe_works=yes
38334146 fi
38344147 LIBS=$lt_globsym_save_LIBS
38494162 rm -rf conftest* conftst*
38504163
38514164 # Do not use the global_symbol_pipe unless it works.
3852 if test "$pipe_works" = yes; then
4165 if test yes = "$pipe_works"; then
38534166 break
38544167 else
38554168 lt_cv_sys_global_symbol_pipe=
38764189 [Take the output of nm and produce a listing of raw symbols and C names])
38774190 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
38784191 [Transform the output of nm in a proper C declaration])
4192 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4193 [Transform the output of nm into a list of symbols to manually relocate])
38794194 _LT_DECL([global_symbol_to_c_name_address],
38804195 [lt_cv_sys_global_symbol_to_c_name_address], [1],
38814196 [Transform the output of nm in a C name address pair])
38824197 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
38834198 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
38844199 [Transform the output of nm in a C name address pair when lib prefix is needed])
4200 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4201 [The name lister interface])
38854202 _LT_DECL([], [nm_file_list_spec], [1],
38864203 [Specify filename containing input files for $NM])
38874204 ]) # _LT_CMD_GLOBAL_SYMBOLS
38974214
38984215 m4_if([$1], [CXX], [
38994216 # C++ specific cases for pic, static, wl, etc.
3900 if test "$GXX" = yes; then
4217 if test yes = "$GXX"; then
39014218 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
39024219 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
39034220
39044221 case $host_os in
39054222 aix*)
39064223 # All AIX code is PIC.
3907 if test "$host_cpu" = ia64; then
4224 if test ia64 = "$host_cpu"; then
39084225 # AIX 5 now supports IA64 processor
39094226 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39104227 fi
4228 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39114229 ;;
39124230
39134231 amigaos*)
39184236 ;;
39194237 m68k)
39204238 # FIXME: we need at least 68020 code to build shared libraries, but
3921 # adding the `-m68020' flag to GCC prevents building anything better,
3922 # like `-m68040'.
4239 # adding the '-m68020' flag to GCC prevents building anything better,
4240 # like '-m68040'.
39234241 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
39244242 ;;
39254243 esac
39354253 # (--disable-auto-import) libraries
39364254 m4_if([$1], [GCJ], [],
39374255 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4256 case $host_os in
4257 os2*)
4258 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4259 ;;
4260 esac
39384261 ;;
39394262 darwin* | rhapsody*)
39404263 # PIC is the default on this platform
39844307 case $host_os in
39854308 aix[[4-9]]*)
39864309 # All AIX code is PIC.
3987 if test "$host_cpu" = ia64; then
4310 if test ia64 = "$host_cpu"; then
39884311 # AIX 5 now supports IA64 processor
39894312 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39904313 else
40254348 case $cc_basename in
40264349 CC*)
40274350 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4028 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4029 if test "$host_cpu" != ia64; then
4351 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4352 if test ia64 != "$host_cpu"; then
40304353 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
40314354 fi
40324355 ;;
40334356 aCC*)
40344357 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4035 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4358 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
40364359 case $host_cpu in
40374360 hppa*64*|ia64*)
40384361 # +Z the default
40694392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
40704393 ;;
40714394 ecpc* )
4072 # old Intel C++ for x86_64 which still supported -KPIC.
4395 # old Intel C++ for x86_64, which still supported -KPIC.
40734396 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40744397 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40754398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42144537 fi
42154538 ],
42164539 [
4217 if test "$GCC" = yes; then
4540 if test yes = "$GCC"; then
42184541 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42194542 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42204543
42214544 case $host_os in
42224545 aix*)
42234546 # All AIX code is PIC.
4224 if test "$host_cpu" = ia64; then
4547 if test ia64 = "$host_cpu"; then
42254548 # AIX 5 now supports IA64 processor
42264549 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42274550 fi
4551 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42284552 ;;
42294553
42304554 amigaos*)
42354559 ;;
42364560 m68k)
42374561 # FIXME: we need at least 68020 code to build shared libraries, but
4238 # adding the `-m68020' flag to GCC prevents building anything better,
4239 # like `-m68040'.
4562 # adding the '-m68020' flag to GCC prevents building anything better,
4563 # like '-m68040'.
42404564 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
42414565 ;;
42424566 esac
42534577 # (--disable-auto-import) libraries
42544578 m4_if([$1], [GCJ], [],
42554579 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4580 case $host_os in
4581 os2*)
4582 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4583 ;;
4584 esac
42564585 ;;
42574586
42584587 darwin* | rhapsody*)
43234652 case $host_os in
43244653 aix*)
43254654 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4326 if test "$host_cpu" = ia64; then
4655 if test ia64 = "$host_cpu"; then
43274656 # AIX 5 now supports IA64 processor
43284657 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43294658 else
43314660 fi
43324661 ;;
43334662
4663 darwin* | rhapsody*)
4664 # PIC is the default on this platform
4665 # Common symbols not allowed in MH_DYLIB files
4666 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4667 case $cc_basename in
4668 nagfor*)
4669 # NAG Fortran compiler
4670 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4671 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4672 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4673 ;;
4674 esac
4675 ;;
4676
43344677 mingw* | cygwin* | pw32* | os2* | cegcc*)
43354678 # This hack is so that the source file can tell whether it is being
43364679 # built for inclusion in a dll (and should export symbols for example).
43374680 m4_if([$1], [GCJ], [],
43384681 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4682 case $host_os in
4683 os2*)
4684 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4685 ;;
4686 esac
43394687 ;;
43404688
43414689 hpux9* | hpux10* | hpux11*)
43514699 ;;
43524700 esac
43534701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4702 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
43554703 ;;
43564704
43574705 irix5* | irix6* | nonstopux*)
43624710
43634711 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
43644712 case $cc_basename in
4365 # old Intel for x86_64 which still supported -KPIC.
4713 # old Intel for x86_64, which still supported -KPIC.
43664714 ecc*)
43674715 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
43684716 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43864734 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
43874735 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
43884736 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4737 ;;
4738 tcc*)
4739 # Fabrice Bellard et al's Tiny C Compiler
4740 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4741 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4742 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
43894743 ;;
43904744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
43914745 # Portland Group compilers (*not* the Pentium gcc compiler,
44844838 ;;
44854839
44864840 sysv4*MP*)
4487 if test -d /usr/nec ;then
4841 if test -d /usr/nec; then
44884842 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
44894843 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44904844 fi
45134867 fi
45144868 ])
45154869 case $host_os in
4516 # For platforms which do not support PIC, -DPIC is meaningless:
4870 # For platforms that do not support PIC, -DPIC is meaningless:
45174871 *djgpp*)
45184872 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
45194873 ;;
45794933 case $host_os in
45804934 aix[[4-9]]*)
45814935 # If we're using GNU nm, then we don't want the "-C" option.
4582 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4583 # Also, AIX nm treats weak defined symbols like other global defined
4584 # symbols, whereas GNU nm marks them as "W".
4936 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4937 # Without the "-l" option, or with the "-B" option, AIX nm treats
4938 # weak defined symbols like other global defined symbols, whereas
4939 # GNU nm marks them as "W".
4940 # While the 'weak' keyword is ignored in the Export File, we need
4941 # it in the Import File for the 'aix-soname' feature, so we have
4942 # to replace the "-B" option with "-P" for AIX nm.
45854943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4586 _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'
4944 _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'
45874945 else
4588 _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'
4946 _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'
45894947 fi
45904948 ;;
45914949 pw32*)
4592 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4950 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
45934951 ;;
45944952 cygwin* | mingw* | cegcc*)
45954953 case $cc_basename in
46384996 # included in the symbol list
46394997 _LT_TAGVAR(include_expsyms, $1)=
46404998 # exclude_expsyms can be an extended regexp of symbols to exclude
4641 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4642 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4643 # as well as any symbol that contains `d'.
4999 # it will be wrapped by ' (' and ')$', so one must not match beginning or
5000 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
5001 # as well as any symbol that contains 'd'.
46445002 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
46455003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46465004 # platforms (ab)use it in PIC code, but their linkers get confused if
46565014 # FIXME: the MSVC++ port hasn't been tested in a loooong time
46575015 # When not using gcc, we currently assume that we are using
46585016 # Microsoft Visual C++.
4659 if test "$GCC" != yes; then
5017 if test yes != "$GCC"; then
46605018 with_gnu_ld=no
46615019 fi
46625020 ;;
46645022 # we just hope/assume this is gcc and not c89 (= MSVC++)
46655023 with_gnu_ld=yes
46665024 ;;
4667 openbsd*)
5025 openbsd* | bitrig*)
46685026 with_gnu_ld=no
46695027 ;;
46705028 linux* | k*bsd*-gnu | gnu*)
46775035 # On some targets, GNU ld is compatible enough with the native linker
46785036 # that we're better off using the native interface for both.
46795037 lt_use_gnu_ld_interface=no
4680 if test "$with_gnu_ld" = yes; then
5038 if test yes = "$with_gnu_ld"; then
46815039 case $host_os in
46825040 aix*)
46835041 # The AIX port of GNU ld has always aspired to compatibility
46995057 esac
47005058 fi
47015059
4702 if test "$lt_use_gnu_ld_interface" = yes; then
5060 if test yes = "$lt_use_gnu_ld_interface"; then
47035061 # If archive_cmds runs LD, not CC, wlarc should be empty
4704 wlarc='${wl}'
5062 wlarc='$wl'
47055063
47065064 # Set some defaults for GNU ld with shared library support. These
47075065 # are reset later if shared libraries are not supported. Putting them
47085066 # here allows them to be overridden if necessary.
47095067 runpath_var=LD_RUN_PATH
4710 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4711 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5069 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
47125070 # ancient GNU ld didn't support --whole-archive et. al.
47135071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4714 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5072 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47155073 else
47165074 _LT_TAGVAR(whole_archive_flag_spec, $1)=
47175075 fi
47185076 supports_anon_versioning=no
4719 case `$LD -v 2>&1` in
5077 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
47205078 *GNU\ gold*) supports_anon_versioning=yes ;;
47215079 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
47225080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47295087 case $host_os in
47305088 aix[[3-9]]*)
47315089 # On AIX/PPC, the GNU linker is very broken
4732 if test "$host_cpu" != ia64; then
5090 if test ia64 != "$host_cpu"; then
47335091 _LT_TAGVAR(ld_shlibs, $1)=no
47345092 cat <<_LT_EOF 1>&2
47355093
47485106 case $host_cpu in
47495107 powerpc)
47505108 # see comment about AmigaOS4 .so support
4751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5109 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47525110 _LT_TAGVAR(archive_expsym_cmds, $1)=''
47535111 ;;
47545112 m68k)
47645122 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47655123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47665124 # support --undefined. This deserves some investigation. FIXME
4767 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5125 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47685126 else
47695127 _LT_TAGVAR(ld_shlibs, $1)=no
47705128 fi
47745132 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
47755133 # as there is no search path for DLLs.
47765134 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4777 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5135 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
47785136 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47795137 _LT_TAGVAR(always_export_symbols, $1)=no
47805138 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47825140 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
47835141
47845142 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4785 _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'
4786 # If the export-symbols file already is a .def file (1st line
4787 # is EXPORTS), use it as is; otherwise, prepend...
4788 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4789 cp $export_symbols $output_objdir/$soname.def;
4790 else
4791 echo EXPORTS > $output_objdir/$soname.def;
4792 cat $export_symbols >> $output_objdir/$soname.def;
4793 fi~
4794 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5143 _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'
5144 # If the export-symbols file already is a .def file, use it as
5145 # is; otherwise, prepend EXPORTS...
5146 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5147 cp $export_symbols $output_objdir/$soname.def;
5148 else
5149 echo EXPORTS > $output_objdir/$soname.def;
5150 cat $export_symbols >> $output_objdir/$soname.def;
5151 fi~
5152 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
47955153 else
47965154 _LT_TAGVAR(ld_shlibs, $1)=no
47975155 fi
47985156 ;;
47995157
48005158 haiku*)
4801 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5159 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
48025160 _LT_TAGVAR(link_all_deplibs, $1)=yes
5161 ;;
5162
5163 os2*)
5164 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5165 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5166 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5167 shrext_cmds=.dll
5168 _LT_TAGVAR(archive_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 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5173 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5174 emximp -o $lib $output_objdir/$libname.def'
5175 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5176 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5177 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5178 $ECHO EXPORTS >> $output_objdir/$libname.def~
5179 prefix_cmds="$SED"~
5180 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5181 prefix_cmds="$prefix_cmds -e 1d";
5182 fi~
5183 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5184 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5185 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5186 emximp -o $lib $output_objdir/$libname.def'
5187 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5188 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
48035189 ;;
48045190
48055191 interix[[3-9]]*)
48065192 _LT_TAGVAR(hardcode_direct, $1)=no
48075193 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4808 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4809 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5194 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5195 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
48105196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
48115197 # Instead, shared libraries are loaded at an image base (0x10000000 by
48125198 # default) and relocated if they conflict, which is a slow very memory
48135199 # consuming and fragmenting process. To avoid this, we pick a random,
48145200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
48155201 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4816 _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'
4817 _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'
5202 _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'
5203 _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'
48185204 ;;
48195205
48205206 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
48215207 tmp_diet=no
4822 if test "$host_os" = linux-dietlibc; then
5208 if test linux-dietlibc = "$host_os"; then
48235209 case $cc_basename in
48245210 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
48255211 esac
48265212 fi
48275213 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4828 && test "$tmp_diet" = no
5214 && test no = "$tmp_diet"
48295215 then
48305216 tmp_addflag=' $pic_flag'
48315217 tmp_sharedflag='-shared'
48325218 case $cc_basename,$host_cpu in
48335219 pgcc*) # Portland Group C compiler
4834 _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'
5220 _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'
48355221 tmp_addflag=' $pic_flag'
48365222 ;;
48375223 pgf77* | pgf90* | pgf95* | pgfortran*)
48385224 # Portland Group f77 and f90 compilers
4839 _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'
5225 _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'
48405226 tmp_addflag=' $pic_flag -Mnomain' ;;
48415227 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
48425228 tmp_addflag=' -i_dynamic' ;;
48475233 lf95*) # Lahey Fortran 8.1
48485234 _LT_TAGVAR(whole_archive_flag_spec, $1)=
48495235 tmp_sharedflag='--shared' ;;
5236 nagfor*) # NAGFOR 5.3
5237 tmp_sharedflag='-Wl,-shared' ;;
48505238 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
48515239 tmp_sharedflag='-qmkshrobj'
48525240 tmp_addflag= ;;
48535241 nvcc*) # Cuda Compiler Driver 2.2
4854 _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'
5242 _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'
48555243 _LT_TAGVAR(compiler_needs_object, $1)=yes
48565244 ;;
48575245 esac
48585246 case `$CC -V 2>&1 | sed 5q` in
48595247 *Sun\ C*) # Sun C 5.9
4860 _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'
5248 _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'
48615249 _LT_TAGVAR(compiler_needs_object, $1)=yes
48625250 tmp_sharedflag='-G' ;;
48635251 *Sun\ F*) # Sun Fortran 8.3
48645252 tmp_sharedflag='-G' ;;
48655253 esac
4866 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4867
4868 if test "x$supports_anon_versioning" = xyes; then
5254 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5255
5256 if test yes = "$supports_anon_versioning"; then
48695257 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4871 echo "local: *; };" >> $output_objdir/$libname.ver~
4872 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5259 echo "local: *; };" >> $output_objdir/$libname.ver~
5260 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
48735261 fi
48745262
48755263 case $cc_basename in
5264 tcc*)
5265 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5266 ;;
48765267 xlf* | bgf* | bgxlf* | mpixlf*)
48775268 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48785269 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5270 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
48805271 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4881 if test "x$supports_anon_versioning" = xyes; then
5272 if test yes = "$supports_anon_versioning"; then
48825273 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4884 echo "local: *; };" >> $output_objdir/$libname.ver~
4885 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5274 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5275 echo "local: *; };" >> $output_objdir/$libname.ver~
5276 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48865277 fi
48875278 ;;
48885279 esac
48965287 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48975288 wlarc=
48985289 else
4899 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4900 _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'
5290 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5291 _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'
49015292 fi
49025293 ;;
49035294
49155306
49165307 _LT_EOF
49175308 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4919 _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'
5309 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5310 _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'
49205311 else
49215312 _LT_TAGVAR(ld_shlibs, $1)=no
49225313 fi
49285319 _LT_TAGVAR(ld_shlibs, $1)=no
49295320 cat <<_LT_EOF 1>&2
49305321
4931 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5322 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
49325323 *** reliably create shared libraries on SCO systems. Therefore, libtool
49335324 *** is disabling shared libraries support. We urge you to upgrade GNU
49345325 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
49435334 # DT_RUNPATH tag from executables and libraries. But doing so
49445335 # requires that you compile everything twice, which is a pain.
49455336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4946 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4947 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4948 _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'
5337 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5338 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5339 _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'
49495340 else
49505341 _LT_TAGVAR(ld_shlibs, $1)=no
49515342 fi
49625353
49635354 *)
49645355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4965 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4966 _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'
5356 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5357 _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'
49675358 else
49685359 _LT_TAGVAR(ld_shlibs, $1)=no
49695360 fi
49705361 ;;
49715362 esac
49725363
4973 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5364 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
49745365 runpath_var=
49755366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
49765367 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
49865377 # Note: this linker hardcodes the directories in LIBPATH if there
49875378 # are no directories specified by -L.
49885379 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4989 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5380 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
49905381 # Neither direct hardcoding nor static linking is supported with a
49915382 # broken collect2.
49925383 _LT_TAGVAR(hardcode_direct, $1)=unsupported
49945385 ;;
49955386
49965387 aix[[4-9]]*)
4997 if test "$host_cpu" = ia64; then
5388 if test ia64 = "$host_cpu"; then
49985389 # On IA64, the linker does run time linking by default, so we don't
49995390 # have to do anything special.
50005391 aix_use_runtimelinking=no
50015392 exp_sym_flag='-Bexport'
5002 no_entry_flag=""
5393 no_entry_flag=
50035394 else
50045395 # If we're using GNU nm, then we don't want the "-C" option.
5005 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5006 # Also, AIX nm treats weak defined symbols like other global
5007 # defined symbols, whereas GNU nm marks them as "W".
5396 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5397 # Without the "-l" option, or with the "-B" option, AIX nm treats
5398 # weak defined symbols like other global defined symbols, whereas
5399 # GNU nm marks them as "W".
5400 # While the 'weak' keyword is ignored in the Export File, we need
5401 # it in the Import File for the 'aix-soname' feature, so we have
5402 # to replace the "-B" option with "-P" for AIX nm.
50085403 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5009 _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'
5404 _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'
50105405 else
5011 _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'
5406 _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'
50125407 fi
50135408 aix_use_runtimelinking=no
50145409
50155410 # Test if we are trying to use run time linking or normal
50165411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5017 # need to do runtime linking.
5412 # have runtime linking enabled, and use it for executables.
5413 # For shared libraries, we enable/disable runtime linking
5414 # depending on the kind of the shared library created -
5415 # when "with_aix_soname,aix_use_runtimelinking" is:
5416 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5417 # "aix,yes" lib.so shared, rtl:yes, for executables
5418 # lib.a static archive
5419 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5420 # lib.a(lib.so.V) shared, rtl:no, for executables
5421 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5422 # lib.a(lib.so.V) shared, rtl:no
5423 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5424 # lib.a static archive
50185425 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
50195426 for ld_flag in $LDFLAGS; do
5020 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5427 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
50215428 aix_use_runtimelinking=yes
50225429 break
50235430 fi
50245431 done
5432 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5433 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5434 # so we don't have lib.a shared libs to link our executables.
5435 # We have to force runtime linking in this case.
5436 aix_use_runtimelinking=yes
5437 LDFLAGS="$LDFLAGS -Wl,-brtl"
5438 fi
50255439 ;;
50265440 esac
50275441
50405454 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
50415455 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
50425456 _LT_TAGVAR(link_all_deplibs, $1)=yes
5043 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5044
5045 if test "$GCC" = yes; then
5457 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5458 case $with_aix_soname,$aix_use_runtimelinking in
5459 aix,*) ;; # traditional, no import file
5460 svr4,* | *,yes) # use import file
5461 # The Import File defines what to hardcode.
5462 _LT_TAGVAR(hardcode_direct, $1)=no
5463 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5464 ;;
5465 esac
5466
5467 if test yes = "$GCC"; then
50465468 case $host_os in aix4.[[012]]|aix4.[[012]].*)
50475469 # We only want to do this on AIX 4.2 and lower, the check
50485470 # below for broken collect2 doesn't work under 4.3+
5049 collect2name=`${CC} -print-prog-name=collect2`
5471 collect2name=`$CC -print-prog-name=collect2`
50505472 if test -f "$collect2name" &&
50515473 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50525474 then
50655487 ;;
50665488 esac
50675489 shared_flag='-shared'
5068 if test "$aix_use_runtimelinking" = yes; then
5069 shared_flag="$shared_flag "'${wl}-G'
5490 if test yes = "$aix_use_runtimelinking"; then
5491 shared_flag="$shared_flag "'$wl-G'
50705492 fi
5071 _LT_TAGVAR(link_all_deplibs, $1)=no
5493 # Need to ensure runtime linking is disabled for the traditional
5494 # shared library, or the linker may eventually find shared libraries
5495 # /with/ Import File - we do not want to mix them.
5496 shared_flag_aix='-shared'
5497 shared_flag_svr4='-shared $wl-G'
50725498 else
50735499 # not using gcc
5074 if test "$host_cpu" = ia64; then
5500 if test ia64 = "$host_cpu"; then
50755501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50765502 # chokes on -Wl,-G. The following line is correct:
50775503 shared_flag='-G'
50785504 else
5079 if test "$aix_use_runtimelinking" = yes; then
5080 shared_flag='${wl}-G'
5505 if test yes = "$aix_use_runtimelinking"; then
5506 shared_flag='$wl-G'
50815507 else
5082 shared_flag='${wl}-bM:SRE'
5508 shared_flag='$wl-bM:SRE'
50835509 fi
5510 shared_flag_aix='$wl-bM:SRE'
5511 shared_flag_svr4='$wl-G'
50845512 fi
50855513 fi
50865514
5087 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5515 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
50885516 # It seems that -bexpall does not export symbols beginning with
50895517 # underscore (_), so it is better to generate a list of symbols to export.
50905518 _LT_TAGVAR(always_export_symbols, $1)=yes
5091 if test "$aix_use_runtimelinking" = yes; then
5519 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
50925520 # Warning - without using the other runtime loading flags (-brtl),
50935521 # -berok will link without error, but may produce a broken library.
50945522 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
50955523 # Determine the default libpath from the value encoded in an
50965524 # empty executable.
50975525 _LT_SYS_MODULE_PATH_AIX([$1])
5098 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5099 _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"
5526 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5527 _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
51005528 else
5101 if test "$host_cpu" = ia64; then
5102 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5529 if test ia64 = "$host_cpu"; then
5530 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
51035531 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5104 _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"
5532 _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"
51055533 else
51065534 # Determine the default libpath from the value encoded in an
51075535 # empty executable.
51085536 _LT_SYS_MODULE_PATH_AIX([$1])
5109 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5537 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
51105538 # Warning - without using the other run time loading flags,
51115539 # -berok will link without error, but may produce a broken library.
5112 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5113 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5114 if test "$with_gnu_ld" = yes; then
5540 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5541 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5542 if test yes = "$with_gnu_ld"; then
51155543 # We only use this code for GNU lds that support --whole-archive.
5116 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5544 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
51175545 else
51185546 # Exported symbols can be pulled into shared objects from archives
51195547 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
51205548 fi
51215549 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5122 # This is similar to how AIX traditionally builds its shared libraries.
5123 _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'
5550 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5551 # -brtl affects multiple linker settings, -berok does not and is overridden later
5552 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5553 if test svr4 != "$with_aix_soname"; then
5554 # This is similar to how AIX traditionally builds its shared libraries.
5555 _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'
5556 fi
5557 if test aix != "$with_aix_soname"; then
5558 _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'
5559 else
5560 # used by -dlpreopen to get the symbols
5561 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5562 fi
5563 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
51245564 fi
51255565 fi
51265566 ;;
51295569 case $host_cpu in
51305570 powerpc)
51315571 # see comment about AmigaOS4 .so support
5132 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5572 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
51335573 _LT_TAGVAR(archive_expsym_cmds, $1)=''
51345574 ;;
51355575 m68k)
51595599 # Tell ltmain to make .lib files, not .a files.
51605600 libext=lib
51615601 # Tell ltmain to make .dll files, not .so files.
5162 shrext_cmds=".dll"
5602 shrext_cmds=.dll
51635603 # FIXME: Setting linknames here is a bad hack.
5164 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5165 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5166 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5167 else
5168 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5169 fi~
5170 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5171 linknames='
5604 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5605 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5606 cp "$export_symbols" "$output_objdir/$soname.def";
5607 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5608 else
5609 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5610 fi~
5611 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5612 linknames='
51725613 # The linker will not automatically build a static lib if we build a DLL.
51735614 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
51745615 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
51775618 # Don't use ranlib
51785619 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
51795620 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5180 lt_tool_outputfile="@TOOL_OUTPUT@"~
5181 case $lt_outputfile in
5182 *.exe|*.EXE) ;;
5183 *)
5184 lt_outputfile="$lt_outputfile.exe"
5185 lt_tool_outputfile="$lt_tool_outputfile.exe"
5186 ;;
5187 esac~
5188 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5189 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5190 $RM "$lt_outputfile.manifest";
5191 fi'
5621 lt_tool_outputfile="@TOOL_OUTPUT@"~
5622 case $lt_outputfile in
5623 *.exe|*.EXE) ;;
5624 *)
5625 lt_outputfile=$lt_outputfile.exe
5626 lt_tool_outputfile=$lt_tool_outputfile.exe
5627 ;;
5628 esac~
5629 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5630 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5631 $RM "$lt_outputfile.manifest";
5632 fi'
51925633 ;;
51935634 *)
51945635 # Assume MSVC wrapper
51975638 # Tell ltmain to make .lib files, not .a files.
51985639 libext=lib
51995640 # Tell ltmain to make .dll files, not .so files.
5200 shrext_cmds=".dll"
5641 shrext_cmds=.dll
52015642 # FIXME: Setting linknames here is a bad hack.
52025643 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
52035644 # The linker will automatically build a .lib file if we build a DLL.
52475688 ;;
52485689
52495690 hpux9*)
5250 if test "$GCC" = yes; then
5251 _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'
5691 if test yes = "$GCC"; then
5692 _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'
52525693 else
5253 _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'
5694 _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'
52545695 fi
5255 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52565697 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52575698 _LT_TAGVAR(hardcode_direct, $1)=yes
52585699
52595700 # hardcode_minus_L: Not really in the search PATH,
52605701 # but as the default location of the library.
52615702 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5262 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5703 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52635704 ;;
52645705
52655706 hpux10*)
5266 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5267 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5707 if test yes,no = "$GCC,$with_gnu_ld"; then
5708 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52685709 else
52695710 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
52705711 fi
5271 if test "$with_gnu_ld" = no; then
5272 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5712 if test no = "$with_gnu_ld"; then
5713 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52735714 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52745715 _LT_TAGVAR(hardcode_direct, $1)=yes
52755716 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5276 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5717 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52775718 # hardcode_minus_L: Not really in the search PATH,
52785719 # but as the default location of the library.
52795720 _LT_TAGVAR(hardcode_minus_L, $1)=yes
52815722 ;;
52825723
52835724 hpux11*)
5284 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5725 if test yes,no = "$GCC,$with_gnu_ld"; then
52855726 case $host_cpu in
52865727 hppa*64*)
5287 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5728 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52885729 ;;
52895730 ia64*)
5290 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5731 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52915732 ;;
52925733 *)
5293 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5734 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52945735 ;;
52955736 esac
52965737 else
52975738 case $host_cpu in
52985739 hppa*64*)
5299 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5740 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
53005741 ;;
53015742 ia64*)
5302 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5743 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
53035744 ;;
53045745 *)
53055746 m4_if($1, [], [
53075748 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
53085749 _LT_LINKER_OPTION([if $CC understands -b],
53095750 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5310 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5751 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
53115752 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5312 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5753 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
53135754 ;;
53145755 esac
53155756 fi
5316 if test "$with_gnu_ld" = no; then
5317 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5757 if test no = "$with_gnu_ld"; then
5758 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
53185759 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53195760
53205761 case $host_cpu in
53255766 *)
53265767 _LT_TAGVAR(hardcode_direct, $1)=yes
53275768 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5328 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5769 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53295770
53305771 # hardcode_minus_L: Not really in the search PATH,
53315772 # but as the default location of the library.
53365777 ;;
53375778
53385779 irix5* | irix6* | nonstopux*)
5339 if test "$GCC" = yes; then
5340 _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'
5780 if test yes = "$GCC"; then
5781 _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'
53415782 # Try to use the -exported_symbol ld option, if it does not
53425783 # work, assume that -exports_file does not work either and
53435784 # implicitly export all symbols.
53445785 # This should be the same for all languages, so no per-tag cache variable.
53455786 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
53465787 [lt_cv_irix_exported_symbol],
5347 [save_LDFLAGS="$LDFLAGS"
5348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5788 [save_LDFLAGS=$LDFLAGS
5789 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
53495790 AC_LINK_IFELSE(
53505791 [AC_LANG_SOURCE(
53515792 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
53585799 end]])])],
53595800 [lt_cv_irix_exported_symbol=yes],
53605801 [lt_cv_irix_exported_symbol=no])
5361 LDFLAGS="$save_LDFLAGS"])
5362 if test "$lt_cv_irix_exported_symbol" = yes; then
5363 _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'
5802 LDFLAGS=$save_LDFLAGS])
5803 if test yes = "$lt_cv_irix_exported_symbol"; then
5804 _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'
53645805 fi
5806 _LT_TAGVAR(link_all_deplibs, $1)=no
53655807 else
5366 _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'
5367 _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'
5808 _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'
5809 _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'
53685810 fi
53695811 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5370 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5812 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53715813 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53725814 _LT_TAGVAR(inherit_rpath, $1)=yes
53735815 _LT_TAGVAR(link_all_deplibs, $1)=yes
5816 ;;
5817
5818 linux*)
5819 case $cc_basename in
5820 tcc*)
5821 # Fabrice Bellard et al's Tiny C Compiler
5822 _LT_TAGVAR(ld_shlibs, $1)=yes
5823 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5824 ;;
5825 esac
53745826 ;;
53755827
53765828 netbsd* | netbsdelf*-gnu)
53875839 newsos6)
53885840 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
53895841 _LT_TAGVAR(hardcode_direct, $1)=yes
5390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5842 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53915843 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53925844 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53935845 ;;
53955847 *nto* | *qnx*)
53965848 ;;
53975849
5398 openbsd*)
5850 openbsd* | bitrig*)
53995851 if test -f /usr/libexec/ld.so; then
54005852 _LT_TAGVAR(hardcode_direct, $1)=yes
54015853 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
54025854 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
54045856 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5405 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5406 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5407 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5857 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5859 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
54085860 else
5409 case $host_os in
5410 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5411 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5412 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5413 ;;
5414 *)
5415 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5416 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5417 ;;
5418 esac
5861 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5862 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
54195863 fi
54205864 else
54215865 _LT_TAGVAR(ld_shlibs, $1)=no
54265870 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
54275871 _LT_TAGVAR(hardcode_minus_L, $1)=yes
54285872 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5429 _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'
5430 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5873 shrext_cmds=.dll
5874 _LT_TAGVAR(archive_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 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5879 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5880 emximp -o $lib $output_objdir/$libname.def'
5881 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5882 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5883 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5884 $ECHO EXPORTS >> $output_objdir/$libname.def~
5885 prefix_cmds="$SED"~
5886 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5887 prefix_cmds="$prefix_cmds -e 1d";
5888 fi~
5889 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5890 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5891 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5892 emximp -o $lib $output_objdir/$libname.def'
5893 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5894 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54315895 ;;
54325896
54335897 osf3*)
5434 if test "$GCC" = yes; then
5435 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5436 _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'
5898 if test yes = "$GCC"; then
5899 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $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'
54375901 else
54385902 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5439 _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'
5903 _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'
54405904 fi
54415905 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5906 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54435907 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
54445908 ;;
54455909
54465910 osf4* | osf5*) # as osf3* with the addition of -msym flag
5447 if test "$GCC" = yes; then
5448 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5449 _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'
5450 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5911 if test yes = "$GCC"; then
5912 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5913 _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'
5914 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54515915 else
54525916 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5453 _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'
5917 _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'
54545918 _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~
5455 $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'
5919 $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'
54565920
54575921 # Both c and cxx compiler support -rpath directly
54585922 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
54635927
54645928 solaris*)
54655929 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5466 if test "$GCC" = yes; then
5467 wlarc='${wl}'
5468 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5930 if test yes = "$GCC"; then
5931 wlarc='$wl'
5932 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
54695933 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5470 $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'
5934 $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'
54715935 else
54725936 case `$CC -V 2>&1` in
54735937 *"Compilers 5.0"*)
54745938 wlarc=''
5475 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5939 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
54765940 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5941 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
54785942 ;;
54795943 *)
5480 wlarc='${wl}'
5481 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5944 wlarc='$wl'
5945 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
54825946 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5947 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54845948 ;;
54855949 esac
54865950 fi
54905954 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
54915955 *)
54925956 # The compiler driver will combine and reorder linker options,
5493 # but understands `-z linker_flag'. GCC discards it without `$wl',
5957 # but understands '-z linker_flag'. GCC discards it without '$wl',
54945958 # but is careful enough not to reorder.
54955959 # Supported since Solaris 2.6 (maybe 2.5.1?)
5496 if test "$GCC" = yes; then
5497 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5960 if test yes = "$GCC"; then
5961 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
54985962 else
54995963 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
55005964 fi
55045968 ;;
55055969
55065970 sunos4*)
5507 if test "x$host_vendor" = xsequent; then
5971 if test sequent = "$host_vendor"; then
55085972 # Use $CC to link under sequent, because it throws in some extra .o
55095973 # files that make .init and .fini sections work.
5510 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5974 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
55115975 else
55125976 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
55135977 fi
55566020 ;;
55576021
55586022 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5559 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6023 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
55606024 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55616025 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55626026 runpath_var='LD_RUN_PATH'
55636027
5564 if test "$GCC" = yes; then
5565 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5566 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6028 if test yes = "$GCC"; then
6029 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6030 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55676031 else
5568 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5569 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6032 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6033 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55706034 fi
55716035 ;;
55726036
55736037 sysv5* | sco3.2v5* | sco5v6*)
5574 # Note: We can NOT use -z defs as we might desire, because we do not
6038 # Note: We CANNOT use -z defs as we might desire, because we do not
55756039 # link with -lc, and that would cause any symbols used from libc to
55766040 # always be unresolved, which means just about no library would
55776041 # ever link correctly. If we're not using GNU ld we use -z text
55786042 # though, which does catch some bad symbols but isn't as heavy-handed
55796043 # as -z defs.
5580 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5581 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6044 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6045 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
55826046 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55836047 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5584 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
55856049 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
55866050 _LT_TAGVAR(link_all_deplibs, $1)=yes
5587 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6051 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
55886052 runpath_var='LD_RUN_PATH'
55896053
5590 if test "$GCC" = yes; then
5591 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5592 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6054 if test yes = "$GCC"; then
6055 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6056 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55936057 else
5594 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5595 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6058 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6059 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55966060 fi
55976061 ;;
55986062
56076071 ;;
56086072 esac
56096073
5610 if test x$host_vendor = xsni; then
6074 if test sni = "$host_vendor"; then
56116075 case $host in
56126076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5613 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6077 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
56146078 ;;
56156079 esac
56166080 fi
56176081 fi
56186082 ])
56196083 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5620 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6084 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
56216085
56226086 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
56236087
56346098 # Assume -lc should be added
56356099 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56366100
5637 if test "$enable_shared" = yes && test "$GCC" = yes; then
6101 if test yes,yes = "$GCC,$enable_shared"; then
56386102 case $_LT_TAGVAR(archive_cmds, $1) in
56396103 *'~'*)
56406104 # FIXME: we may have to deal with multi-command sequences.
57146178 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
57156179 [Whether we need a single "-rpath" flag with a separated argument])
57166180 _LT_TAGDECL([], [hardcode_direct], [0],
5717 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6181 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57186182 DIR into the resulting binary])
57196183 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5720 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6184 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57216185 DIR into the resulting binary and the resulting library dependency is
5722 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6186 "absolute", i.e impossible to change by setting $shlibpath_var if the
57236187 library is relocated])
57246188 _LT_TAGDECL([], [hardcode_minus_L], [0],
57256189 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57606224 # ------------------------
57616225 # Ensure that the configuration variables for a C compiler are suitably
57626226 # defined. These variables are subsequently used by _LT_CONFIG to write
5763 # the compiler configuration to `libtool'.
6227 # the compiler configuration to 'libtool'.
57646228 m4_defun([_LT_LANG_C_CONFIG],
57656229 [m4_require([_LT_DECL_EGREP])dnl
5766 lt_save_CC="$CC"
6230 lt_save_CC=$CC
57676231 AC_LANG_PUSH(C)
57686232
57696233 # Source file extension for C test sources.
57996263 LT_SYS_DLOPEN_SELF
58006264 _LT_CMD_STRIPLIB
58016265
5802 # Report which library types will actually be built
6266 # Report what library types will actually be built
58036267 AC_MSG_CHECKING([if libtool supports shared libraries])
58046268 AC_MSG_RESULT([$can_build_shared])
58056269
58066270 AC_MSG_CHECKING([whether to build shared libraries])
5807 test "$can_build_shared" = "no" && enable_shared=no
6271 test no = "$can_build_shared" && enable_shared=no
58086272
58096273 # On AIX, shared libraries and static libraries use the same namespace, and
58106274 # are all built from PIC.
58116275 case $host_os in
58126276 aix3*)
5813 test "$enable_shared" = yes && enable_static=no
6277 test yes = "$enable_shared" && enable_static=no
58146278 if test -n "$RANLIB"; then
58156279 archive_cmds="$archive_cmds~\$RANLIB \$lib"
58166280 postinstall_cmds='$RANLIB $lib'
58186282 ;;
58196283
58206284 aix[[4-9]]*)
5821 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5822 test "$enable_shared" = yes && enable_static=no
6285 if test ia64 != "$host_cpu"; then
6286 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6287 yes,aix,yes) ;; # shared object as lib.so file only
6288 yes,svr4,*) ;; # shared object as lib.so archive member only
6289 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6290 esac
58236291 fi
58246292 ;;
58256293 esac
58276295
58286296 AC_MSG_CHECKING([whether to build static libraries])
58296297 # Make sure either enable_shared or enable_static is yes.
5830 test "$enable_shared" = yes || enable_static=yes
6298 test yes = "$enable_shared" || enable_static=yes
58316299 AC_MSG_RESULT([$enable_static])
58326300
58336301 _LT_CONFIG($1)
58346302 fi
58356303 AC_LANG_POP
5836 CC="$lt_save_CC"
6304 CC=$lt_save_CC
58376305 ])# _LT_LANG_C_CONFIG
58386306
58396307
58416309 # --------------------------
58426310 # Ensure that the configuration variables for a C++ compiler are suitably
58436311 # defined. These variables are subsequently used by _LT_CONFIG to write
5844 # the compiler configuration to `libtool'.
6312 # the compiler configuration to 'libtool'.
58456313 m4_defun([_LT_LANG_CXX_CONFIG],
58466314 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
58476315 m4_require([_LT_DECL_EGREP])dnl
58486316 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5849 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5850 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5851 (test "X$CXX" != "Xg++"))) ; then
6317 if test -n "$CXX" && ( test no != "$CXX" &&
6318 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6319 (test g++ != "$CXX"))); then
58526320 AC_PROG_CXXCPP
58536321 else
58546322 _lt_caught_CXX_error=yes
58906358 # the CXX compiler isn't working. Some variables (like enable_shared)
58916359 # are currently assumed to apply to all compilers on this platform,
58926360 # and will be corrupted by setting them based on a non-working compiler.
5893 if test "$_lt_caught_CXX_error" != yes; then
6361 if test yes != "$_lt_caught_CXX_error"; then
58946362 # Code to be used in simple compile tests
58956363 lt_simple_compile_test_code="int some_variable = 0;"
58966364
59326400 if test -n "$compiler"; then
59336401 # We don't want -fno-exception when compiling C++ code, so set the
59346402 # no_builtin_flag separately
5935 if test "$GXX" = yes; then
6403 if test yes = "$GXX"; then
59366404 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
59376405 else
59386406 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
59396407 fi
59406408
5941 if test "$GXX" = yes; then
6409 if test yes = "$GXX"; then
59426410 # Set up default GNU C++ configuration
59436411
59446412 LT_PATH_LD
59456413
59466414 # Check if GNU C++ uses GNU ld as the underlying linker, since the
59476415 # archiving commands below assume that GNU ld is being used.
5948 if test "$with_gnu_ld" = yes; then
5949 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5950 _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'
5951
5952 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5953 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6416 if test yes = "$with_gnu_ld"; then
6417 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6418 _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'
6419
6420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6421 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
59546422
59556423 # If archive_cmds runs LD, not CC, wlarc should be empty
59566424 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
59576425 # investigate it a little bit more. (MM)
5958 wlarc='${wl}'
6426 wlarc='$wl'
59596427
59606428 # ancient GNU ld didn't support --whole-archive et. al.
59616429 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
59626430 $GREP 'no-whole-archive' > /dev/null; then
5963 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6431 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
59646432 else
59656433 _LT_TAGVAR(whole_archive_flag_spec, $1)=
59666434 fi
59966464 _LT_TAGVAR(ld_shlibs, $1)=no
59976465 ;;
59986466 aix[[4-9]]*)
5999 if test "$host_cpu" = ia64; then
6467 if test ia64 = "$host_cpu"; then
60006468 # On IA64, the linker does run time linking by default, so we don't
60016469 # have to do anything special.
60026470 aix_use_runtimelinking=no
60036471 exp_sym_flag='-Bexport'
6004 no_entry_flag=""
6472 no_entry_flag=
60056473 else
60066474 aix_use_runtimelinking=no
60076475
60086476 # Test if we are trying to use run time linking or normal
60096477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6010 # need to do runtime linking.
6478 # have runtime linking enabled, and use it for executables.
6479 # For shared libraries, we enable/disable runtime linking
6480 # depending on the kind of the shared library created -
6481 # when "with_aix_soname,aix_use_runtimelinking" is:
6482 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6483 # "aix,yes" lib.so shared, rtl:yes, for executables
6484 # lib.a static archive
6485 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6486 # lib.a(lib.so.V) shared, rtl:no, for executables
6487 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6488 # lib.a(lib.so.V) shared, rtl:no
6489 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6490 # lib.a static archive
60116491 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
60126492 for ld_flag in $LDFLAGS; do
60136493 case $ld_flag in
60176497 ;;
60186498 esac
60196499 done
6500 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6501 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6502 # so we don't have lib.a shared libs to link our executables.
6503 # We have to force runtime linking in this case.
6504 aix_use_runtimelinking=yes
6505 LDFLAGS="$LDFLAGS -Wl,-brtl"
6506 fi
60206507 ;;
60216508 esac
60226509
60356522 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
60366523 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
60376524 _LT_TAGVAR(link_all_deplibs, $1)=yes
6038 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6039
6040 if test "$GXX" = yes; then
6525 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6526 case $with_aix_soname,$aix_use_runtimelinking in
6527 aix,*) ;; # no import file
6528 svr4,* | *,yes) # use import file
6529 # The Import File defines what to hardcode.
6530 _LT_TAGVAR(hardcode_direct, $1)=no
6531 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6532 ;;
6533 esac
6534
6535 if test yes = "$GXX"; then
60416536 case $host_os in aix4.[[012]]|aix4.[[012]].*)
60426537 # We only want to do this on AIX 4.2 and lower, the check
60436538 # below for broken collect2 doesn't work under 4.3+
6044 collect2name=`${CC} -print-prog-name=collect2`
6539 collect2name=`$CC -print-prog-name=collect2`
60456540 if test -f "$collect2name" &&
60466541 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
60476542 then
60596554 fi
60606555 esac
60616556 shared_flag='-shared'
6062 if test "$aix_use_runtimelinking" = yes; then
6063 shared_flag="$shared_flag "'${wl}-G'
6557 if test yes = "$aix_use_runtimelinking"; then
6558 shared_flag=$shared_flag' $wl-G'
60646559 fi
6560 # Need to ensure runtime linking is disabled for the traditional
6561 # shared library, or the linker may eventually find shared libraries
6562 # /with/ Import File - we do not want to mix them.
6563 shared_flag_aix='-shared'
6564 shared_flag_svr4='-shared $wl-G'
60656565 else
60666566 # not using gcc
6067 if test "$host_cpu" = ia64; then
6567 if test ia64 = "$host_cpu"; then
60686568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
60696569 # chokes on -Wl,-G. The following line is correct:
60706570 shared_flag='-G'
60716571 else
6072 if test "$aix_use_runtimelinking" = yes; then
6073 shared_flag='${wl}-G'
6572 if test yes = "$aix_use_runtimelinking"; then
6573 shared_flag='$wl-G'
60746574 else
6075 shared_flag='${wl}-bM:SRE'
6575 shared_flag='$wl-bM:SRE'
60766576 fi
6577 shared_flag_aix='$wl-bM:SRE'
6578 shared_flag_svr4='$wl-G'
60776579 fi
60786580 fi
60796581
6080 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6582 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
60816583 # It seems that -bexpall does not export symbols beginning with
60826584 # underscore (_), so it is better to generate a list of symbols to
60836585 # export.
60846586 _LT_TAGVAR(always_export_symbols, $1)=yes
6085 if test "$aix_use_runtimelinking" = yes; then
6587 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
60866588 # Warning - without using the other runtime loading flags (-brtl),
60876589 # -berok will link without error, but may produce a broken library.
6088 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6590 # The "-G" linker flag allows undefined symbols.
6591 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
60896592 # Determine the default libpath from the value encoded in an empty
60906593 # executable.
60916594 _LT_SYS_MODULE_PATH_AIX([$1])
6092 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6093
6094 _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"
6595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6596
6597 _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
60956598 else
6096 if test "$host_cpu" = ia64; then
6097 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6599 if test ia64 = "$host_cpu"; then
6600 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
60986601 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6099 _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"
6602 _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"
61006603 else
61016604 # Determine the default libpath from the value encoded in an
61026605 # empty executable.
61036606 _LT_SYS_MODULE_PATH_AIX([$1])
6104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
61056608 # Warning - without using the other run time loading flags,
61066609 # -berok will link without error, but may produce a broken library.
6107 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6108 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6109 if test "$with_gnu_ld" = yes; then
6610 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6611 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6612 if test yes = "$with_gnu_ld"; then
61106613 # We only use this code for GNU lds that support --whole-archive.
6111 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6614 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
61126615 else
61136616 # Exported symbols can be pulled into shared objects from archives
61146617 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
61156618 fi
61166619 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6117 # This is similar to how AIX traditionally builds its shared
6118 # libraries.
6119 _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'
6620 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6621 # -brtl affects multiple linker settings, -berok does not and is overridden later
6622 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6623 if test svr4 != "$with_aix_soname"; then
6624 # This is similar to how AIX traditionally builds its shared
6625 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6626 _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'
6627 fi
6628 if test aix != "$with_aix_soname"; then
6629 _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'
6630 else
6631 # used by -dlpreopen to get the symbols
6632 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6633 fi
6634 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
61206635 fi
61216636 fi
61226637 ;;
61266641 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61276642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
61286643 # support --undefined. This deserves some investigation. FIXME
6129 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6644 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
61306645 else
61316646 _LT_TAGVAR(ld_shlibs, $1)=no
61326647 fi
61546669 # Tell ltmain to make .lib files, not .a files.
61556670 libext=lib
61566671 # Tell ltmain to make .dll files, not .so files.
6157 shrext_cmds=".dll"
6672 shrext_cmds=.dll
61586673 # FIXME: Setting linknames here is a bad hack.
6159 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6160 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6161 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6162 else
6163 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6164 fi~
6165 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6166 linknames='
6674 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6675 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6676 cp "$export_symbols" "$output_objdir/$soname.def";
6677 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6678 else
6679 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6680 fi~
6681 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6682 linknames='
61676683 # The linker will not automatically build a static lib if we build a DLL.
61686684 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
61696685 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61706686 # Don't use ranlib
61716687 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
61726688 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6173 lt_tool_outputfile="@TOOL_OUTPUT@"~
6174 case $lt_outputfile in
6175 *.exe|*.EXE) ;;
6176 *)
6177 lt_outputfile="$lt_outputfile.exe"
6178 lt_tool_outputfile="$lt_tool_outputfile.exe"
6179 ;;
6180 esac~
6181 func_to_tool_file "$lt_outputfile"~
6182 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6183 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6184 $RM "$lt_outputfile.manifest";
6185 fi'
6689 lt_tool_outputfile="@TOOL_OUTPUT@"~
6690 case $lt_outputfile in
6691 *.exe|*.EXE) ;;
6692 *)
6693 lt_outputfile=$lt_outputfile.exe
6694 lt_tool_outputfile=$lt_tool_outputfile.exe
6695 ;;
6696 esac~
6697 func_to_tool_file "$lt_outputfile"~
6698 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6699 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6700 $RM "$lt_outputfile.manifest";
6701 fi'
61866702 ;;
61876703 *)
61886704 # g++
61896705 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
61906706 # as there is no search path for DLLs.
61916707 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6192 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6708 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
61936709 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61946710 _LT_TAGVAR(always_export_symbols, $1)=no
61956711 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61966712
61976713 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6198 _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'
6199 # If the export-symbols file already is a .def file (1st line
6200 # is EXPORTS), use it as is; otherwise, prepend...
6201 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6202 cp $export_symbols $output_objdir/$soname.def;
6203 else
6204 echo EXPORTS > $output_objdir/$soname.def;
6205 cat $export_symbols >> $output_objdir/$soname.def;
6206 fi~
6207 $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'
6714 _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'
6715 # If the export-symbols file already is a .def file, use it as
6716 # is; otherwise, prepend EXPORTS...
6717 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6718 cp $export_symbols $output_objdir/$soname.def;
6719 else
6720 echo EXPORTS > $output_objdir/$soname.def;
6721 cat $export_symbols >> $output_objdir/$soname.def;
6722 fi~
6723 $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'
62086724 else
62096725 _LT_TAGVAR(ld_shlibs, $1)=no
62106726 fi
62136729 ;;
62146730 darwin* | rhapsody*)
62156731 _LT_DARWIN_LINKER_FEATURES($1)
6732 ;;
6733
6734 os2*)
6735 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6736 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6737 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6738 shrext_cmds=.dll
6739 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6740 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6741 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6742 $ECHO EXPORTS >> $output_objdir/$libname.def~
6743 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6744 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6745 emximp -o $lib $output_objdir/$libname.def'
6746 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6747 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6748 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6749 $ECHO EXPORTS >> $output_objdir/$libname.def~
6750 prefix_cmds="$SED"~
6751 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6752 prefix_cmds="$prefix_cmds -e 1d";
6753 fi~
6754 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6755 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6756 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6757 emximp -o $lib $output_objdir/$libname.def'
6758 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6759 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
62166760 ;;
62176761
62186762 dgux*)
62506794 ;;
62516795
62526796 haiku*)
6253 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62546798 _LT_TAGVAR(link_all_deplibs, $1)=yes
62556799 ;;
62566800
62576801 hpux9*)
6258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6802 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62596803 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6260 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6804 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62616805 _LT_TAGVAR(hardcode_direct, $1)=yes
62626806 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
62636807 # but as the default
62696813 _LT_TAGVAR(ld_shlibs, $1)=no
62706814 ;;
62716815 aCC*)
6272 _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'
6816 _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'
62736817 # Commands to make compiler produce verbose output that lists
62746818 # what "hidden" libraries, object files and flags are used when
62756819 # linking a shared library.
62786822 # explicitly linking system object files so we need to strip them
62796823 # from the output so that they don't get included in the library
62806824 # dependencies.
6281 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"'
6825 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"'
62826826 ;;
62836827 *)
6284 if test "$GXX" = yes; then
6285 _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'
6828 if test yes = "$GXX"; then
6829 _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'
62866830 else
62876831 # FIXME: insert proper C++ library support
62886832 _LT_TAGVAR(ld_shlibs, $1)=no
62926836 ;;
62936837
62946838 hpux10*|hpux11*)
6295 if test $with_gnu_ld = no; then
6296 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6839 if test no = "$with_gnu_ld"; then
6840 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62976841 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62986842
62996843 case $host_cpu in
63006844 hppa*64*|ia64*)
63016845 ;;
63026846 *)
6303 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6847 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63046848 ;;
63056849 esac
63066850 fi
63266870 aCC*)
63276871 case $host_cpu in
63286872 hppa*64*)
6329 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6873 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63306874 ;;
63316875 ia64*)
6332 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6876 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63336877 ;;
63346878 *)
6335 _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'
6879 _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'
63366880 ;;
63376881 esac
63386882 # Commands to make compiler produce verbose output that lists
63436887 # explicitly linking system object files so we need to strip them
63446888 # from the output so that they don't get included in the library
63456889 # dependencies.
6346 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"'
6890 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"'
63476891 ;;
63486892 *)
6349 if test "$GXX" = yes; then
6350 if test $with_gnu_ld = no; then
6893 if test yes = "$GXX"; then
6894 if test no = "$with_gnu_ld"; then
63516895 case $host_cpu in
63526896 hppa*64*)
6353 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63546898 ;;
63556899 ia64*)
6356 _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'
6900 _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'
63576901 ;;
63586902 *)
6359 _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'
6903 _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'
63606904 ;;
63616905 esac
63626906 fi
63716915 interix[[3-9]]*)
63726916 _LT_TAGVAR(hardcode_direct, $1)=no
63736917 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6374 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6375 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6918 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6919 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63766920 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
63776921 # Instead, shared libraries are loaded at an image base (0x10000000 by
63786922 # default) and relocated if they conflict, which is a slow very memory
63796923 # consuming and fragmenting process. To avoid this, we pick a random,
63806924 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
63816925 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6382 _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'
6383 _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'
6926 _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'
6927 _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'
63846928 ;;
63856929 irix5* | irix6*)
63866930 case $cc_basename in
63876931 CC*)
63886932 # SGI C++
6389 _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'
6933 _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'
63906934
63916935 # Archives containing C++ object files must be created using
63926936 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
63956939 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
63966940 ;;
63976941 *)
6398 if test "$GXX" = yes; then
6399 if test "$with_gnu_ld" = no; then
6400 _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'
6942 if test yes = "$GXX"; then
6943 if test no = "$with_gnu_ld"; then
6944 _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'
64016945 else
6402 _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'
6946 _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'
64036947 fi
64046948 fi
64056949 _LT_TAGVAR(link_all_deplibs, $1)=yes
64066950 ;;
64076951 esac
6408 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6952 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
64096953 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
64106954 _LT_TAGVAR(inherit_rpath, $1)=yes
64116955 ;;
64186962 # KCC will only create a shared library if the output file
64196963 # ends with ".so" (or ".sl" for HP-UX), so rename the library
64206964 # to its proper name (with version) after linking.
6421 _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'
6422 _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'
6965 _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'
6966 _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'
64236967 # Commands to make compiler produce verbose output that lists
64246968 # what "hidden" libraries, object files and flags are used when
64256969 # linking a shared library.
64286972 # explicitly linking system object files so we need to strip them
64296973 # from the output so that they don't get included in the library
64306974 # dependencies.
6431 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"'
6432
6433 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6434 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6975 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"'
6976
6977 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6978 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
64356979
64366980 # Archives containing C++ object files must be created using
64376981 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
64456989 # earlier do not add the objects themselves.
64466990 case `$CC -V 2>&1` in
64476991 *"Version 7."*)
6448 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6449 _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'
6992 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6993 _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'
64506994 ;;
64516995 *) # Version 8.0 or newer
64526996 tmp_idyn=
64536997 case $host_cpu in
64546998 ia64*) tmp_idyn=' -i_dynamic';;
64556999 esac
6456 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6457 _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'
7000 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7001 _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'
64587002 ;;
64597003 esac
64607004 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6461 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6462 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6463 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7005 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7006 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7007 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
64647008 ;;
64657009 pgCC* | pgcpp*)
64667010 # Portland Group C++ compiler
64677011 case `$CC -V` in
64687012 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
64697013 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6470 rm -rf $tpldir~
6471 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6472 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7014 rm -rf $tpldir~
7015 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7016 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
64737017 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6474 rm -rf $tpldir~
6475 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6476 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6477 $RANLIB $oldlib'
7018 rm -rf $tpldir~
7019 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7020 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7021 $RANLIB $oldlib'
64787022 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6479 rm -rf $tpldir~
6480 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6481 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7023 rm -rf $tpldir~
7024 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7025 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
64827026 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6483 rm -rf $tpldir~
6484 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6485 $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'
7027 rm -rf $tpldir~
7028 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7029 $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'
64867030 ;;
64877031 *) # Version 6 and above use weak symbols
6488 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6489 _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'
7032 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7033 _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'
64907034 ;;
64917035 esac
64927036
6493 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6494 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6495 _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'
7037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7038 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7039 _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'
64967040 ;;
64977041 cxx*)
64987042 # Compaq C++
6499 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6500 _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'
7043 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7044 _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'
65017045
65027046 runpath_var=LD_RUN_PATH
65037047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
65117055 # explicitly linking system object files so we need to strip them
65127056 # from the output so that they don't get included in the library
65137057 # dependencies.
6514 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'
7058 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'
65157059 ;;
65167060 xl* | mpixl* | bgxl*)
65177061 # IBM XL 8.0 on PPC, with GNU ld
6518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6519 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6520 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6521 if test "x$supports_anon_versioning" = xyes; then
7062 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7063 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7064 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7065 if test yes = "$supports_anon_versioning"; then
65227066 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6524 echo "local: *; };" >> $output_objdir/$libname.ver~
6525 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7067 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7068 echo "local: *; };" >> $output_objdir/$libname.ver~
7069 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
65267070 fi
65277071 ;;
65287072 *)
65307074 *Sun\ C*)
65317075 # Sun C++ 5.9
65327076 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6533 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6534 _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'
7077 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7078 _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'
65357079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6536 _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'
7080 _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'
65377081 _LT_TAGVAR(compiler_needs_object, $1)=yes
65387082
65397083 # Not sure whether something based on
65917135 _LT_TAGVAR(ld_shlibs, $1)=yes
65927136 ;;
65937137
6594 openbsd2*)
6595 # C++ shared libraries are fairly broken
6596 _LT_TAGVAR(ld_shlibs, $1)=no
6597 ;;
6598
6599 openbsd*)
7138 openbsd* | bitrig*)
66007139 if test -f /usr/libexec/ld.so; then
66017140 _LT_TAGVAR(hardcode_direct, $1)=yes
66027141 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
66037142 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
66047143 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6605 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6607 _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'
6608 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6609 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7144 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7145 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7146 _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'
7147 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7148 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
66107149 fi
66117150 output_verbose_link_cmd=func_echo_all
66127151 else
66227161 # KCC will only create a shared library if the output file
66237162 # ends with ".so" (or ".sl" for HP-UX), so rename the library
66247163 # to its proper name (with version) after linking.
6625 _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'
6626
6627 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7164 _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'
7165
7166 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
66287167 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66297168
66307169 # Archives containing C++ object files must be created using
66427181 cxx*)
66437182 case $host in
66447183 osf3*)
6645 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6646 _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'
6647 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7184 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7185 _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'
7186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66487187 ;;
66497188 *)
66507189 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6651 _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'
7190 _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'
66527191 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6653 echo "-hidden">> $lib.exp~
6654 $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~
6655 $RM $lib.exp'
7192 echo "-hidden">> $lib.exp~
7193 $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~
7194 $RM $lib.exp'
66567195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
66577196 ;;
66587197 esac
66677206 # explicitly linking system object files so we need to strip them
66687207 # from the output so that they don't get included in the library
66697208 # dependencies.
6670 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"'
7209 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"'
66717210 ;;
66727211 *)
6673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6674 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7212 if test yes,no = "$GXX,$with_gnu_ld"; then
7213 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
66757214 case $host in
66767215 osf3*)
6677 _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'
7216 _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'
66787217 ;;
66797218 *)
6680 _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'
7219 _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'
66817220 ;;
66827221 esac
66837222
6684 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7223 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66857224 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66867225
66877226 # Commands to make compiler produce verbose output that lists
67277266 # Sun C++ 4.2, 5.x and Centerline C++
67287267 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
67297268 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6730 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7269 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67317270 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6732 $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'
7271 $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'
67337272
67347273 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
67357274 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67377276 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67387277 *)
67397278 # The compiler driver will combine and reorder linker options,
6740 # but understands `-z linker_flag'.
7279 # but understands '-z linker_flag'.
67417280 # Supported since Solaris 2.6 (maybe 2.5.1?)
67427281 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
67437282 ;;
67547293 ;;
67557294 gcx*)
67567295 # Green Hills C++ Compiler
6757 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67587297
67597298 # The C++ compiler must be used to create the archive.
67607299 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
67617300 ;;
67627301 *)
67637302 # GNU C++ compiler with Solaris linker
6764 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6765 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7303 if test yes,no = "$GXX,$with_gnu_ld"; then
7304 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
67667305 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6767 _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'
7306 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67687307 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6769 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7308 $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'
67707309
67717310 # Commands to make compiler produce verbose output that lists
67727311 # what "hidden" libraries, object files and flags are used when
67737312 # linking a shared library.
67747313 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67757314 else
6776 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7315 # g++ 2.7 appears to require '-G' NOT '-shared' on this
67777316 # platform.
6778 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7317 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67797318 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6780 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7319 $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'
67817320
67827321 # Commands to make compiler produce verbose output that lists
67837322 # what "hidden" libraries, object files and flags are used when
67857324 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67867325 fi
67877326
6788 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7327 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
67897328 case $host_os in
67907329 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67917330 *)
6792 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7331 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
67937332 ;;
67947333 esac
67957334 fi
67987337 ;;
67997338
68007339 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6801 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7340 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
68027341 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68037342 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
68047343 runpath_var='LD_RUN_PATH'
68057344
68067345 case $cc_basename in
68077346 CC*)
6808 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6809 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7347 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7348 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68107349 ;;
68117350 *)
6812 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6813 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7351 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7352 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68147353 ;;
68157354 esac
68167355 ;;
68177356
68187357 sysv5* | sco3.2v5* | sco5v6*)
6819 # Note: We can NOT use -z defs as we might desire, because we do not
7358 # Note: We CANNOT use -z defs as we might desire, because we do not
68207359 # link with -lc, and that would cause any symbols used from libc to
68217360 # always be unresolved, which means just about no library would
68227361 # ever link correctly. If we're not using GNU ld we use -z text
68237362 # though, which does catch some bad symbols but isn't as heavy-handed
68247363 # as -z defs.
6825 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6826 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7364 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7365 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
68277366 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68287367 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6829 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
68307369 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
68317370 _LT_TAGVAR(link_all_deplibs, $1)=yes
6832 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7371 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
68337372 runpath_var='LD_RUN_PATH'
68347373
68357374 case $cc_basename in
68367375 CC*)
6837 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6838 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7376 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7377 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68397378 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6840 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7379 '"$_LT_TAGVAR(old_archive_cmds, $1)"
68417380 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6842 '"$_LT_TAGVAR(reload_cmds, $1)"
7381 '"$_LT_TAGVAR(reload_cmds, $1)"
68437382 ;;
68447383 *)
6845 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6846 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7385 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68477386 ;;
68487387 esac
68497388 ;;
68747413 esac
68757414
68767415 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6877 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6878
6879 _LT_TAGVAR(GCC, $1)="$GXX"
6880 _LT_TAGVAR(LD, $1)="$LD"
7416 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7417
7418 _LT_TAGVAR(GCC, $1)=$GXX
7419 _LT_TAGVAR(LD, $1)=$LD
68817420
68827421 ## CAVEAT EMPTOR:
68837422 ## There is no encapsulation within the following macros, do not change
69047443 lt_cv_path_LD=$lt_save_path_LD
69057444 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
69067445 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6907 fi # test "$_lt_caught_CXX_error" != yes
7446 fi # test yes != "$_lt_caught_CXX_error"
69087447
69097448 AC_LANG_POP
69107449 ])# _LT_LANG_CXX_CONFIG
69267465 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
69277466 func_stripname_cnf ()
69287467 {
6929 case ${2} in
6930 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6931 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7468 case @S|@2 in
7469 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7470 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
69327471 esac
69337472 } # func_stripname_cnf
69347473 ])# _LT_FUNC_STRIPNAME_CNF
7474
69357475
69367476 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
69377477 # ---------------------------------
70167556 pre_test_object_deps_done=no
70177557
70187558 for p in `eval "$output_verbose_link_cmd"`; do
7019 case ${prev}${p} in
7559 case $prev$p in
70207560
70217561 -L* | -R* | -l*)
70227562 # Some compilers place space between "-{L,R}" and the path.
70237563 # Remove the space.
7024 if test $p = "-L" ||
7025 test $p = "-R"; then
7564 if test x-L = "$p" ||
7565 test x-R = "$p"; then
70267566 prev=$p
70277567 continue
70287568 fi
70387578 case $p in
70397579 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
70407580 esac
7041 if test "$pre_test_object_deps_done" = no; then
7042 case ${prev} in
7581 if test no = "$pre_test_object_deps_done"; then
7582 case $prev in
70437583 -L | -R)
70447584 # Internal compiler library paths should come after those
70457585 # provided the user. The postdeps already come after the
70467586 # user supplied libs so there is no need to process them.
70477587 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7048 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7588 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
70497589 else
7050 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7590 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
70517591 fi
70527592 ;;
70537593 # The "-l" case would never come before the object being
70557595 esac
70567596 else
70577597 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7058 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7598 _LT_TAGVAR(postdeps, $1)=$prev$p
70597599 else
7060 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7600 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
70617601 fi
70627602 fi
70637603 prev=
70727612 continue
70737613 fi
70747614
7075 if test "$pre_test_object_deps_done" = no; then
7615 if test no = "$pre_test_object_deps_done"; then
70767616 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7077 _LT_TAGVAR(predep_objects, $1)="$p"
7617 _LT_TAGVAR(predep_objects, $1)=$p
70787618 else
70797619 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
70807620 fi
70817621 else
70827622 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7083 _LT_TAGVAR(postdep_objects, $1)="$p"
7623 _LT_TAGVAR(postdep_objects, $1)=$p
70847624 else
70857625 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
70867626 fi
71117651 _LT_TAGVAR(postdep_objects,$1)=
71127652 _LT_TAGVAR(postdeps,$1)=
71137653 ;;
7114
7115 linux*)
7116 case `$CC -V 2>&1 | sed 5q` in
7117 *Sun\ C*)
7118 # Sun C++ 5.9
7119
7120 # The more standards-conforming stlport4 library is
7121 # incompatible with the Cstd library. Avoid specifying
7122 # it if it's in CXXFLAGS. Ignore libCrun as
7123 # -library=stlport4 depends on it.
7124 case " $CXX $CXXFLAGS " in
7125 *" -library=stlport4 "*)
7126 solaris_use_stlport4=yes
7127 ;;
7128 esac
7129
7130 if test "$solaris_use_stlport4" != yes; then
7131 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7132 fi
7133 ;;
7134 esac
7135 ;;
7136
7137 solaris*)
7138 case $cc_basename in
7139 CC* | sunCC*)
7140 # The more standards-conforming stlport4 library is
7141 # incompatible with the Cstd library. Avoid specifying
7142 # it if it's in CXXFLAGS. Ignore libCrun as
7143 # -library=stlport4 depends on it.
7144 case " $CXX $CXXFLAGS " in
7145 *" -library=stlport4 "*)
7146 solaris_use_stlport4=yes
7147 ;;
7148 esac
7149
7150 # Adding this requires a known-good setup of shared libraries for
7151 # Sun compiler versions before 5.6, else PIC objects from an old
7152 # archive will be linked into the output, leading to subtle bugs.
7153 if test "$solaris_use_stlport4" != yes; then
7154 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7155 fi
7156 ;;
7157 esac
7158 ;;
71597654 esac
71607655 ])
71617656
71647659 esac
71657660 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
71667661 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7167 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7662 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
71687663 fi
71697664 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
71707665 [The directories searched by this compiler when creating a shared library])
71847679 # --------------------------
71857680 # Ensure that the configuration variables for a Fortran 77 compiler are
71867681 # suitably defined. These variables are subsequently used by _LT_CONFIG
7187 # to write the compiler configuration to `libtool'.
7682 # to write the compiler configuration to 'libtool'.
71887683 m4_defun([_LT_LANG_F77_CONFIG],
71897684 [AC_LANG_PUSH(Fortran 77)
7190 if test -z "$F77" || test "X$F77" = "Xno"; then
7685 if test -z "$F77" || test no = "$F77"; then
71917686 _lt_disable_F77=yes
71927687 fi
71937688
72247719 # the F77 compiler isn't working. Some variables (like enable_shared)
72257720 # are currently assumed to apply to all compilers on this platform,
72267721 # and will be corrupted by setting them based on a non-working compiler.
7227 if test "$_lt_disable_F77" != yes; then
7722 if test yes != "$_lt_disable_F77"; then
72287723 # Code to be used in simple compile tests
72297724 lt_simple_compile_test_code="\
72307725 subroutine t
72467741 _LT_LINKER_BOILERPLATE
72477742
72487743 # Allow CC to be a program name with arguments.
7249 lt_save_CC="$CC"
7744 lt_save_CC=$CC
72507745 lt_save_GCC=$GCC
72517746 lt_save_CFLAGS=$CFLAGS
72527747 CC=${F77-"f77"}
72607755 AC_MSG_RESULT([$can_build_shared])
72617756
72627757 AC_MSG_CHECKING([whether to build shared libraries])
7263 test "$can_build_shared" = "no" && enable_shared=no
7758 test no = "$can_build_shared" && enable_shared=no
72647759
72657760 # On AIX, shared libraries and static libraries use the same namespace, and
72667761 # are all built from PIC.
72677762 case $host_os in
72687763 aix3*)
7269 test "$enable_shared" = yes && enable_static=no
7764 test yes = "$enable_shared" && enable_static=no
72707765 if test -n "$RANLIB"; then
72717766 archive_cmds="$archive_cmds~\$RANLIB \$lib"
72727767 postinstall_cmds='$RANLIB $lib'
72737768 fi
72747769 ;;
72757770 aix[[4-9]]*)
7276 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7277 test "$enable_shared" = yes && enable_static=no
7771 if test ia64 != "$host_cpu"; then
7772 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7773 yes,aix,yes) ;; # shared object as lib.so file only
7774 yes,svr4,*) ;; # shared object as lib.so archive member only
7775 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7776 esac
72787777 fi
72797778 ;;
72807779 esac
72827781
72837782 AC_MSG_CHECKING([whether to build static libraries])
72847783 # Make sure either enable_shared or enable_static is yes.
7285 test "$enable_shared" = yes || enable_static=yes
7784 test yes = "$enable_shared" || enable_static=yes
72867785 AC_MSG_RESULT([$enable_static])
72877786
7288 _LT_TAGVAR(GCC, $1)="$G77"
7289 _LT_TAGVAR(LD, $1)="$LD"
7787 _LT_TAGVAR(GCC, $1)=$G77
7788 _LT_TAGVAR(LD, $1)=$LD
72907789
72917790 ## CAVEAT EMPTOR:
72927791 ## There is no encapsulation within the following macros, do not change
73037802 fi # test -n "$compiler"
73047803
73057804 GCC=$lt_save_GCC
7306 CC="$lt_save_CC"
7307 CFLAGS="$lt_save_CFLAGS"
7308 fi # test "$_lt_disable_F77" != yes
7805 CC=$lt_save_CC
7806 CFLAGS=$lt_save_CFLAGS
7807 fi # test yes != "$_lt_disable_F77"
73097808
73107809 AC_LANG_POP
73117810 ])# _LT_LANG_F77_CONFIG
73157814 # -------------------------
73167815 # Ensure that the configuration variables for a Fortran compiler are
73177816 # suitably defined. These variables are subsequently used by _LT_CONFIG
7318 # to write the compiler configuration to `libtool'.
7817 # to write the compiler configuration to 'libtool'.
73197818 m4_defun([_LT_LANG_FC_CONFIG],
73207819 [AC_LANG_PUSH(Fortran)
73217820
7322 if test -z "$FC" || test "X$FC" = "Xno"; then
7821 if test -z "$FC" || test no = "$FC"; then
73237822 _lt_disable_FC=yes
73247823 fi
73257824
73567855 # the FC compiler isn't working. Some variables (like enable_shared)
73577856 # are currently assumed to apply to all compilers on this platform,
73587857 # and will be corrupted by setting them based on a non-working compiler.
7359 if test "$_lt_disable_FC" != yes; then
7858 if test yes != "$_lt_disable_FC"; then
73607859 # Code to be used in simple compile tests
73617860 lt_simple_compile_test_code="\
73627861 subroutine t
73787877 _LT_LINKER_BOILERPLATE
73797878
73807879 # Allow CC to be a program name with arguments.
7381 lt_save_CC="$CC"
7880 lt_save_CC=$CC
73827881 lt_save_GCC=$GCC
73837882 lt_save_CFLAGS=$CFLAGS
73847883 CC=${FC-"f95"}
73947893 AC_MSG_RESULT([$can_build_shared])
73957894
73967895 AC_MSG_CHECKING([whether to build shared libraries])
7397 test "$can_build_shared" = "no" && enable_shared=no
7896 test no = "$can_build_shared" && enable_shared=no
73987897
73997898 # On AIX, shared libraries and static libraries use the same namespace, and
74007899 # are all built from PIC.
74017900 case $host_os in
74027901 aix3*)
7403 test "$enable_shared" = yes && enable_static=no
7902 test yes = "$enable_shared" && enable_static=no
74047903 if test -n "$RANLIB"; then
74057904 archive_cmds="$archive_cmds~\$RANLIB \$lib"
74067905 postinstall_cmds='$RANLIB $lib'
74077906 fi
74087907 ;;
74097908 aix[[4-9]]*)
7410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7411 test "$enable_shared" = yes && enable_static=no
7909 if test ia64 != "$host_cpu"; then
7910 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7911 yes,aix,yes) ;; # shared object as lib.so file only
7912 yes,svr4,*) ;; # shared object as lib.so archive member only
7913 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7914 esac
74127915 fi
74137916 ;;
74147917 esac
74167919
74177920 AC_MSG_CHECKING([whether to build static libraries])
74187921 # Make sure either enable_shared or enable_static is yes.
7419 test "$enable_shared" = yes || enable_static=yes
7922 test yes = "$enable_shared" || enable_static=yes
74207923 AC_MSG_RESULT([$enable_static])
74217924
7422 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7423 _LT_TAGVAR(LD, $1)="$LD"
7925 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7926 _LT_TAGVAR(LD, $1)=$LD
74247927
74257928 ## CAVEAT EMPTOR:
74267929 ## There is no encapsulation within the following macros, do not change
74407943 GCC=$lt_save_GCC
74417944 CC=$lt_save_CC
74427945 CFLAGS=$lt_save_CFLAGS
7443 fi # test "$_lt_disable_FC" != yes
7946 fi # test yes != "$_lt_disable_FC"
74447947
74457948 AC_LANG_POP
74467949 ])# _LT_LANG_FC_CONFIG
74507953 # --------------------------
74517954 # Ensure that the configuration variables for the GNU Java Compiler compiler
74527955 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7453 # to write the compiler configuration to `libtool'.
7956 # to write the compiler configuration to 'libtool'.
74547957 m4_defun([_LT_LANG_GCJ_CONFIG],
74557958 [AC_REQUIRE([LT_PROG_GCJ])dnl
74567959 AC_LANG_SAVE
74847987 CFLAGS=$GCJFLAGS
74857988 compiler=$CC
74867989 _LT_TAGVAR(compiler, $1)=$CC
7487 _LT_TAGVAR(LD, $1)="$LD"
7990 _LT_TAGVAR(LD, $1)=$LD
74887991 _LT_CC_BASENAME([$compiler])
74897992
74907993 # GCJ did not exist at the time GCC didn't implicitly link libc in.
75178020 # --------------------------
75188021 # Ensure that the configuration variables for the GNU Go compiler
75198022 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7520 # to write the compiler configuration to `libtool'.
8023 # to write the compiler configuration to 'libtool'.
75218024 m4_defun([_LT_LANG_GO_CONFIG],
75228025 [AC_REQUIRE([LT_PROG_GO])dnl
75238026 AC_LANG_SAVE
75518054 CFLAGS=$GOFLAGS
75528055 compiler=$CC
75538056 _LT_TAGVAR(compiler, $1)=$CC
7554 _LT_TAGVAR(LD, $1)="$LD"
8057 _LT_TAGVAR(LD, $1)=$LD
75558058 _LT_CC_BASENAME([$compiler])
75568059
75578060 # Go did not exist at the time GCC didn't implicitly link libc in.
75848087 # -------------------------
75858088 # Ensure that the configuration variables for the Windows resource compiler
75868089 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7587 # to write the compiler configuration to `libtool'.
8090 # to write the compiler configuration to 'libtool'.
75888091 m4_defun([_LT_LANG_RC_CONFIG],
75898092 [AC_REQUIRE([LT_PROG_RC])dnl
75908093 AC_LANG_SAVE
76008103 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
76018104
76028105 # Code to be used in simple link tests
7603 lt_simple_link_test_code="$lt_simple_compile_test_code"
8106 lt_simple_link_test_code=$lt_simple_compile_test_code
76048107
76058108 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
76068109 _LT_TAG_COMPILER
76108113 _LT_LINKER_BOILERPLATE
76118114
76128115 # Allow CC to be a program name with arguments.
7613 lt_save_CC="$CC"
8116 lt_save_CC=$CC
76148117 lt_save_CFLAGS=$CFLAGS
76158118 lt_save_GCC=$GCC
76168119 GCC=
76398142 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
76408143 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
76418144 [AC_CHECK_TOOL(GCJ, gcj,)
7642 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8145 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
76438146 AC_SUBST(GCJFLAGS)])])[]dnl
76448147 ])
76458148
77488251 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
77498252 # along with /bin/sed that truncates output.
77508253 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7751 test ! -f $lt_ac_sed && continue
8254 test ! -f "$lt_ac_sed" && continue
77528255 cat /dev/null > conftest.in
77538256 lt_ac_count=0
77548257 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
77658268 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
77668269 cmp -s conftest.out conftest.nl || break
77678270 # 10000 chars as input seems more than enough
7768 test $lt_ac_count -gt 10 && break
8271 test 10 -lt "$lt_ac_count" && break
77698272 lt_ac_count=`expr $lt_ac_count + 1`
7770 if test $lt_ac_count -gt $lt_ac_max; then
8273 if test "$lt_ac_count" -gt "$lt_ac_max"; then
77718274 lt_ac_max=$lt_ac_count
77728275 lt_cv_path_SED=$lt_ac_sed
77738276 fi
77918294 # Find out whether the shell is Bourne or XSI compatible,
77928295 # or has some other useful features.
77938296 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
8297 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
78158298 lt_unset=unset
78168299 else
78178300 lt_unset=false
78358318 ])# _LT_CHECK_SHELL_FEATURES
78368319
78378320
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
79318321 # _LT_PATH_CONVERSION_FUNCTIONS
79328322 # -----------------------------
7933 # Determine which file name conversion functions should be used by
8323 # Determine what file name conversion functions should be used by
79348324 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
79358325 # for certain cross-compile configurations and native mingw.
79368326 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
79978387
79988388 # Helper functions for option handling. -*- Autoconf -*-
79998389 #
8000 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8001 # Inc.
8390 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
8391 # Foundation, Inc.
80028392 # Written by Gary V. Vaughan, 2004
80038393 #
80048394 # This file is free software; the Free Software Foundation gives
80058395 # unlimited permission to copy and/or distribute it, with or without
80068396 # modifications, as long as this notice is preserved.
80078397
8008 # serial 7 ltoptions.m4
8398 # serial 8 ltoptions.m4
80098399
80108400 # This is to help aclocal find these macros, as it can't see m4_define.
80118401 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
80268416 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
80278417 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
80288418 _LT_MANGLE_DEFUN([$1], [$2]),
8029 [m4_warning([Unknown $1 option `$2'])])[]dnl
8419 [m4_warning([Unknown $1 option '$2'])])[]dnl
80308420 ])
80318421
80328422
80728462 dnl
80738463 dnl If no reference was made to various pairs of opposing options, then
80748464 dnl we run the default mode handler for the pair. For example, if neither
8075 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8465 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
80768466 dnl archives by default:
80778467 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80788468 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
80798469 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
80808470 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8081 [_LT_ENABLE_FAST_INSTALL])
8471 [_LT_ENABLE_FAST_INSTALL])
8472 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
8473 [_LT_WITH_AIX_SONAME([aix])])
80828474 ])
80838475 ])# _LT_SET_OPTIONS
80848476
81068498 [_LT_SET_OPTION([LT_INIT], [dlopen])
81078499 AC_DIAGNOSE([obsolete],
81088500 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8109 put the `dlopen' option into LT_INIT's first parameter.])
8501 put the 'dlopen' option into LT_INIT's first parameter.])
81108502 ])
81118503
81128504 dnl aclocal-1.4 backwards compatibility:
81428534 _LT_SET_OPTION([LT_INIT], [win32-dll])
81438535 AC_DIAGNOSE([obsolete],
81448536 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8145 put the `win32-dll' option into LT_INIT's first parameter.])
8537 put the 'win32-dll' option into LT_INIT's first parameter.])
81468538 ])
81478539
81488540 dnl aclocal-1.4 backwards compatibility:
81518543
81528544 # _LT_ENABLE_SHARED([DEFAULT])
81538545 # ----------------------------
8154 # implement the --enable-shared flag, and supports the `shared' and
8155 # `disable-shared' LT_INIT options.
8156 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8546 # implement the --enable-shared flag, and supports the 'shared' and
8547 # 'disable-shared' LT_INIT options.
8548 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
81578549 m4_define([_LT_ENABLE_SHARED],
81588550 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
81598551 AC_ARG_ENABLE([shared],
81668558 *)
81678559 enable_shared=no
81688560 # Look at the argument we got. We use all the common list separators.
8169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8561 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
81708562 for pkg in $enableval; do
8171 IFS="$lt_save_ifs"
8563 IFS=$lt_save_ifs
81728564 if test "X$pkg" = "X$p"; then
81738565 enable_shared=yes
81748566 fi
81758567 done
8176 IFS="$lt_save_ifs"
8568 IFS=$lt_save_ifs
81778569 ;;
81788570 esac],
81798571 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
82058597
82068598 # _LT_ENABLE_STATIC([DEFAULT])
82078599 # ----------------------------
8208 # implement the --enable-static flag, and support the `static' and
8209 # `disable-static' LT_INIT options.
8210 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8600 # implement the --enable-static flag, and support the 'static' and
8601 # 'disable-static' LT_INIT options.
8602 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
82118603 m4_define([_LT_ENABLE_STATIC],
82128604 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
82138605 AC_ARG_ENABLE([static],
82208612 *)
82218613 enable_static=no
82228614 # Look at the argument we got. We use all the common list separators.
8223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8615 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82248616 for pkg in $enableval; do
8225 IFS="$lt_save_ifs"
8617 IFS=$lt_save_ifs
82268618 if test "X$pkg" = "X$p"; then
82278619 enable_static=yes
82288620 fi
82298621 done
8230 IFS="$lt_save_ifs"
8622 IFS=$lt_save_ifs
82318623 ;;
82328624 esac],
82338625 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
82598651
82608652 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
82618653 # ----------------------------------
8262 # implement the --enable-fast-install flag, and support the `fast-install'
8263 # and `disable-fast-install' LT_INIT options.
8264 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8654 # implement the --enable-fast-install flag, and support the 'fast-install'
8655 # and 'disable-fast-install' LT_INIT options.
8656 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
82658657 m4_define([_LT_ENABLE_FAST_INSTALL],
82668658 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
82678659 AC_ARG_ENABLE([fast-install],
82748666 *)
82758667 enable_fast_install=no
82768668 # Look at the argument we got. We use all the common list separators.
8277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8669 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82788670 for pkg in $enableval; do
8279 IFS="$lt_save_ifs"
8671 IFS=$lt_save_ifs
82808672 if test "X$pkg" = "X$p"; then
82818673 enable_fast_install=yes
82828674 fi
82838675 done
8284 IFS="$lt_save_ifs"
8676 IFS=$lt_save_ifs
82858677 ;;
82868678 esac],
82878679 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
82988690 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
82998691 AC_DIAGNOSE([obsolete],
83008692 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8301 the `fast-install' option into LT_INIT's first parameter.])
8693 the 'fast-install' option into LT_INIT's first parameter.])
83028694 ])
83038695
83048696 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
83058697 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
83068698 AC_DIAGNOSE([obsolete],
83078699 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8308 the `disable-fast-install' option into LT_INIT's first parameter.])
8700 the 'disable-fast-install' option into LT_INIT's first parameter.])
83098701 ])
83108702
83118703 dnl aclocal-1.4 backwards compatibility:
83138705 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
83148706
83158707
8708 # _LT_WITH_AIX_SONAME([DEFAULT])
8709 # ----------------------------------
8710 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
8711 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
8712 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
8713 m4_define([_LT_WITH_AIX_SONAME],
8714 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
8715 shared_archive_member_spec=
8716 case $host,$enable_shared in
8717 power*-*-aix[[5-9]]*,yes)
8718 AC_MSG_CHECKING([which variant of shared library versioning to provide])
8719 AC_ARG_WITH([aix-soname],
8720 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
8721 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
8722 [case $withval in
8723 aix|svr4|both)
8724 ;;
8725 *)
8726 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
8727 ;;
8728 esac
8729 lt_cv_with_aix_soname=$with_aix_soname],
8730 [AC_CACHE_VAL([lt_cv_with_aix_soname],
8731 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
8732 with_aix_soname=$lt_cv_with_aix_soname])
8733 AC_MSG_RESULT([$with_aix_soname])
8734 if test aix != "$with_aix_soname"; then
8735 # For the AIX way of multilib, we name the shared archive member
8736 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8737 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8738 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8739 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8740 if test 64 = "${OBJECT_MODE-32}"; then
8741 shared_archive_member_spec=shr_64
8742 else
8743 shared_archive_member_spec=shr
8744 fi
8745 fi
8746 ;;
8747 *)
8748 with_aix_soname=aix
8749 ;;
8750 esac
8751
8752 _LT_DECL([], [shared_archive_member_spec], [0],
8753 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
8754 ])# _LT_WITH_AIX_SONAME
8755
8756 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
8757 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
8758 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
8759
8760
83168761 # _LT_WITH_PIC([MODE])
83178762 # --------------------
8318 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8763 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
83198764 # LT_INIT options.
8320 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8765 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
83218766 m4_define([_LT_WITH_PIC],
83228767 [AC_ARG_WITH([pic],
83238768 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
83288773 *)
83298774 pic_mode=default
83308775 # Look at the argument we got. We use all the common list separators.
8331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8776 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
83328777 for lt_pkg in $withval; do
8333 IFS="$lt_save_ifs"
8778 IFS=$lt_save_ifs
83348779 if test "X$lt_pkg" = "X$lt_p"; then
83358780 pic_mode=yes
83368781 fi
83378782 done
8338 IFS="$lt_save_ifs"
8783 IFS=$lt_save_ifs
83398784 ;;
83408785 esac],
8341 [pic_mode=default])
8342
8343 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8786 [pic_mode=m4_default([$1], [default])])
83448787
83458788 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
83468789 ])# _LT_WITH_PIC
83538796 [_LT_SET_OPTION([LT_INIT], [pic-only])
83548797 AC_DIAGNOSE([obsolete],
83558798 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8356 put the `pic-only' option into LT_INIT's first parameter.])
8799 put the 'pic-only' option into LT_INIT's first parameter.])
83578800 ])
83588801
83598802 dnl aclocal-1.4 backwards compatibility:
83768819
83778820 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
83788821 #
8379 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8822 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
8823 # Foundation, Inc.
83808824 # Written by Gary V. Vaughan, 2004
83818825 #
83828826 # This file is free software; the Free Software Foundation gives
84098853 # ------------
84108854 # Manipulate m4 lists.
84118855 # These macros are necessary as long as will still need to support
8412 # Autoconf-2.59 which quotes differently.
8856 # Autoconf-2.59, which quotes differently.
84138857 m4_define([lt_car], [[$1]])
84148858 m4_define([lt_cdr],
84158859 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
84208864
84218865 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
84228866 # ------------------------------------------
8423 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8867 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
84248868 # Note that neither SEPARATOR nor STRING are expanded; they are appended
84258869 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
84268870 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
85008944
85018945 # ltversion.m4 -- version numbers -*- Autoconf -*-
85028946 #
8503 # Copyright (C) 2004 Free Software Foundation, Inc.
8947 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
85048948 # Written by Scott James Remnant, 2004
85058949 #
85068950 # This file is free software; the Free Software Foundation gives
85098953
85108954 # @configure_input@
85118955
8512 # serial 3337 ltversion.m4
8956 # serial 4179 ltversion.m4
85138957 # This file is part of GNU Libtool
85148958
8515 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8516 m4_define([LT_PACKAGE_REVISION], [1.3337])
8959 m4_define([LT_PACKAGE_VERSION], [2.4.6])
8960 m4_define([LT_PACKAGE_REVISION], [2.4.6])
85178961
85188962 AC_DEFUN([LTVERSION_VERSION],
8519 [macro_version='2.4.2'
8520 macro_revision='1.3337'
8963 [macro_version='2.4.6'
8964 macro_revision='2.4.6'
85218965 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
85228966 _LT_DECL(, macro_revision, 0)
85238967 ])
85248968
85258969 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
85268970 #
8527 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8971 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
8972 # Foundation, Inc.
85288973 # Written by Scott James Remnant, 2004.
85298974 #
85308975 # This file is free software; the Free Software Foundation gives
85358980
85368981 # These exist entirely to fool aclocal when bootstrapping libtool.
85378982 #
8538 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8983 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
85398984 # which have later been changed to m4_define as they aren't part of the
85408985 # exported API, or moved to Autoconf or Automake where they belong.
85418986 #
85498994 # included after everything else. This provides aclocal with the
85508995 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
85518996 # because those macros already exist, or will be overwritten later.
8552 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8997 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
85538998 #
85548999 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
85559000 # Yes, that means every name once taken will need to remain here until
88499294 dnl #undef HAVE_FOX_FX_H
88509295 dnl END ACCONFIG
88519296
8852 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
9297 dnl Initialize an ui-auto project
9298 dnl
9299 dnl Usage:
9300 dnl UI_INIT(SOURCE_FILE, [SO_VERSION=], [TOOLDIR=src/tools], [INCDIR=src/PACKAGE], [AUTOMAKE_OPTS=])
9301 dnl
9302 dnl SOURCE_FILE (mandatory) See AC_CONFIG_SRCDIR.
9303 dnl SO_VERSION (optional) Give SO version (libtool style: e.g. 2:4:0) if needed.
9304 dnl TOOLDIR (sane default) UI-automagic script PACKAGE-version will be created in that directory.
9305 dnl INCDIR (sane default) UI-automagic header version.h will be created in that directory.
9306 dnl AUTOMAKE_OPTS (optional) Options to AM_INIT_AUTOMAKE.
9307 dnl
9308 AC_DEFUN([UI_INIT], [
9309 dnl
9310 dnl Generic autoconf/automake stuff
9311 dnl
9312 AC_PREREQ(2.58)
9313 AC_CONFIG_SRCDIR($1)
9314 AM_INIT_AUTOMAKE($5)
9315
9316 dnl
9317 dnl Basic initializations
9318 dnl
9319 if test -z "${PACKAGE_VERSION}"; then
9320 AC_MSG_ERROR([[Cant continue: PACKAGE_VERSION missing.]])
9321 fi
9322 SO_VERSION=$2
9323 AC_SUBST(SO_VERSION)
9324
9325 TOOLDIR=$3
9326 if test -z "${TOOLDIR}"; then
9327 TOOLDIR="src/tools"
9328 fi
9329
9330 INCDIR=$4
9331 if test -z "${INCDIR}"; then
9332 INCDIR="src/${PACKAGE_NAME}"
9333 fi
9334
9335 dnl
9336 dnl Initialize ui-auto.am
9337 dnl
9338 UI_AUTO_AM="ui-auto.am"
9339 rm -v -f "${UI_AUTO_AM}"
9340 AC_SUBST_FILE(UI_AUTO_AM)
9341
9342 UI_ADD_AM([
9343 # These are the generic ui-auto rules rules (add these to your Makefile.am appropriately to *-local targets).
9344 .PHONY: ui-auto-all ui-auto-clean ui-auto-dist ui-auto-distclean ui-auto-install-data ui-auto-install-exec ui-auto-uninstall
9345
9346 ui-auto-am-clean:
9347 rm -f "${UI_AUTO_AM}"
9348
9349 .PHONY: ui-auto-am-clean
9350
9351 # Set dependencies for generic rules
9352 ui-auto-distclean: ui-auto-am-clean
9353 ])
9354
9355 dnl
9356 dnl PACKAGE-version script (mandatory)
9357 dnl
9358 S_NAME="${PACKAGE_NAME}-version"
9359 S_PATH="${TOOLDIR}/${S_NAME}"
9360 V_MAJOR=`echo ${PACKAGE_VERSION} | cut -d'.' -f1`
9361 V_MINOR=`echo ${PACKAGE_VERSION} | cut -d'.' -f2`
9362 V_PATCH=`echo ${PACKAGE_VERSION} | cut -d'.' -f3`
9363
9364 mkdir -p `dirname "${S_PATH}"`
9365 cat <<EOF >"${S_PATH}"
9366 #!/bin/sh -e
9367 echo "UI_PACKAGE=\"${PACKAGE_NAME}\""
9368 echo "UI_VERSION=\"${PACKAGE_VERSION}\""
9369 echo "UI_VERSION_MAJOR=\"${V_MAJOR}\""
9370 echo "UI_VERSION_MINOR=\"${V_MINOR}\""
9371 echo "UI_VERSION_PATCH=\"${V_PATCH}\""
9372 EOF
9373
9374 if test -n "${SO_VERSION}"; then
9375 LV_IF=`echo ${SO_VERSION} | cut -d':' -f1`
9376 LV_REV=`echo ${SO_VERSION} | cut -d':' -f2`
9377 LV_AGE=`echo ${SO_VERSION} | cut -d':' -f3`
9378 LV_MAJOR=$[[LV_IF - LV_AGE]]
9379 LV_MINOR=${LV_AGE}
9380 LV_PATCH=${LV_REV}
9381 SO_VERSION_SYS="${LV_MAJOR}.${LV_MINOR}.${LV_PATCH}"
9382
9383 cat <<EOF >>"${S_PATH}"
9384 echo "UI_SO_VERSION=\"${SO_VERSION_SYS}\""
9385 echo "UI_SO_VERSION_MAJOR=\"${LV_MAJOR}\""
9386 echo "UI_SO_VERSION_MINOR=\"${LV_MINOR}\""
9387 echo "UI_SO_VERSION_PATCH=\"${LV_PATCH}\""
9388 EOF
9389 fi
9390 chmod +x "${S_PATH}"
9391
9392 dnl Man page for version script
9393 S_NAME_CAP=`echo "${S_NAME}" | tr "[[:lower:]]" "[[:upper:]]"`
9394 cat <<EOF >"${S_PATH}.1"
9395 .TH ${S_NAME_CAP} "1"
9396 .SH NAME
9397 ${S_NAME} \- Print parsable version information for development package ${PACKAGE_NAME}.
9398 .SH SYNOPSIS
9399 .PP
9400 .B ${S_NAME}
9401 .SH DESCRIPTION
9402 .PP
9403 Prints version information for installed development package
9404 ${PACKAGE_NAME} in a parsable way.
9405
9406 This is intended to be used by automatic version checks of build systems.
9407 .SH AUTHOR
9408 EOF
9409 if test -n "${SOURCE_DATE_EPOCH}"; then \
9410 echo "Produced automatically by ui-auto for ${PACKAGE_NAME} on `date --utc --rfc-822 --date="@${SOURCE_DATE_EPOCH}"`." >>${S_PATH}.1
9411 else \
9412 echo "Produced automatically by ui-auto for ${PACKAGE_NAME} on `date --rfc-822`." >>${S_PATH}.1
9413 fi
9414
9415 dnl Automake rules for installation && distclean
9416 UI_ADD_AM([
9417 ui-version-script-install:
9418 install -d -m755 \"\$(DESTDIR)\$(bindir)\"
9419 install -m755 \"${S_PATH}\" \"\$(DESTDIR)\$(bindir)\"
9420 install -d -m755 \"\$(DESTDIR)\$(mandir)/man1\"
9421 install -m644 \"${S_PATH}.1\" \"\$(DESTDIR)\$(mandir)/man1\"
9422
9423 ui-version-script-uninstall:
9424 rm -f \"\$(DESTDIR)\$(bindir)/${S_NAME}\" \"\$(DESTDIR)\$(mandir)/man1/${S_NAME}.1\"
9425
9426 ui-version-script-clean:
9427 rm -f "${S_PATH}" "${S_PATH}.1"
9428
9429 .PHONY: ui-version-script-install ui-version-script-uninstall ui-version-script-clean
9430
9431 # Set dependencies for generic rules
9432 ui-auto-distclean: ui-version-script-clean
9433 ui-auto-install-exec: ui-version-script-install
9434 ui-auto-uninstall: ui-version-script-uninstall
9435 ])
9436
9437 dnl
9438 dnl version.h include (only when lib)
9439 dnl
9440 if test -n "${SO_VERSION}"; then
9441 I_NAME="version.h"
9442 I_PATH="${INCDIR}/${I_NAME}"
9443 HEADER_NAME=`echo "${PACKAGE_NAME}" | tr - _ | tr [a-z] [A-Z]`
9444 mkdir -p `dirname "${I_PATH}"`
9445 cat <<EOF >"${I_PATH}"
9446 #ifndef ${HEADER_NAME}_VERSION_H
9447 #define ${HEADER_NAME}_VERSION_H
9448
9449 /** @{ @brief ui-auto'mated version macros. */
9450 #define ${HEADER_NAME}_VERSION "${PACKAGE_VERSION}"
9451 #define ${HEADER_NAME}_VERSION_MAJOR ${V_MAJOR}
9452 #define ${HEADER_NAME}_VERSION_MINOR ${V_MINOR}
9453 #define ${HEADER_NAME}_VERSION_PATCH ${V_PATCH}
9454 /** @} */
9455 /** @{ @brief ui-auto'mated library version support. */
9456 #define ${HEADER_NAME}_LIBVERSION "${SO_VERSION_SYS}"
9457 #define ${HEADER_NAME}_LIBVERSION_MAJOR ${LV_MAJOR}
9458 #define ${HEADER_NAME}_LIBVERSION_MINOR ${LV_MINOR}
9459 #define ${HEADER_NAME}_LIBVERSION_PATCH ${LV_PATCH}
9460 /** @} */
9461 #endif
9462 EOF
9463 dnl Automake rules for installation && distclean
9464 UI_ADD_AM([
9465 ui-version-header-install:
9466 install -d -m755 \"\$(DESTDIR)\$(incdir)\"
9467 install -m644 \"${I_PATH}\" \"\$(DESTDIR)\$(incdir)\"
9468
9469 ui-version-header-uninstall:
9470 rm -f \"\$(DESTDIR)\$(incdir)/${I_NAME}\"
9471
9472 ui-version-header-clean:
9473 rm -f "${I_PATH}"
9474
9475 .PHONY: ui-version-header-install ui-version-header-uninstall ui-version-header-clean
9476
9477 # Set dependencies for generic rules
9478 ui-auto-distclean: ui-version-header-clean
9479 ui-auto-install-exec: ui-version-header-install
9480 ui-auto-uninstall: ui-version-header-uninstall
9481 ])
9482 fi
9483 ])
9484
9485 dnl Check for ui-auto enabled project.
9486 dnl
9487 dnl Usage:
9488 dnl UI_CHECK(key, package, MAJOR,MINOR,PATCH, LMAJOR,LMINOR,LPATCH)
9489 dnl
9490 dnl key unique key for this test
9491 dnl package package name (script name searched for is PACKAGE-version)
9492 dnl MAJOR (optional) required major version number of library
9493 dnl MINOR (optional) required minor version number of library
9494 dnl PATCH (optional) required patchlevel of library
9495 dnl LMAJOR (optional) required major version number of library interface
9496 dnl LMINOR (optional) required minor version number of library interface
9497 dnl LPATCH (optional) required patchlevel of library interface
9498 dnl
9499 dnl All version numbers default to 0 if not specified.
9500 dnl
9501 AC_DEFUN([UI_CHECK], [
9502 ifelse($3, , MAJOR=0, MAJOR=$3)
9503 ifelse($4, , MINOR=0, MINOR=$4)
9504 ifelse($5, , PATCH=0, PATCH=$5)
9505 ifelse($6, , LMAJOR=0, LMAJOR=$6)
9506 ifelse($7, , LMINOR=0, LMINOR=$7)
9507 ifelse($8, , LPATCH=0, LPATCH=$8)
9508
9509 dnl Check and evaluate version script
9510 AC_PATH_PROG([$1], [$2-version])
9511 test x"$[$1]" = x && AC_MSG_ERROR([$2-version not found in PATH])
9512
9513 dnl Reset variables
9514 UI_PACKAGE=""
9515 UI_VERSION=""
9516 UI_VERSION_MAJOR=""
9517 UI_VERSION_MINOR=""
9518 UI_VERSION_PATCH=""
9519 UI_SO_VERSION=""
9520 UI_SO_VERSION_MAJOR=""
9521 UI_SO_VERSION_MINOR=""
9522 UI_SO_VERSION_PATCH=""
9523
9524 dnl Set variables from PACKAGE-version script
9525 eval `[$2-version]`
9526 dnl Sanity check
9527 test x"${UI_PACKAGE}" = x[$2] || AC_MSG_ERROR([$2-version found in PATH seems corrupt; from old unstable ui-auto version? ])
9528
9529 dnl Check package version
9530 AC_MSG_CHECKING([package $2, version ${MAJOR}.${MINOR}.${PATCH} or later])
9531
9532 for TYPE in MAJOR MINOR PATCH; do
9533 INSTALLED_VERSION="UI_VERSION_${TYPE}"
9534 NEEDED_VERSION="${TYPE}"
9535 if test ${!INSTALLED_VERSION} -lt ${!NEEDED_VERSION}; then
9536 AC_MSG_ERROR([${UI_VERSION} is too old.])
9537 elif test ${!INSTALLED_VERSION} -gt ${!NEEDED_VERSION}; then
9538 break
9539 fi
9540 done
9541 AC_MSG_RESULT([yes (version ${UI_VERSION})])
9542
9543 dnl Check library version
9544 if test -n "${UI_SO_VERSION}"; then
9545 AC_MSG_CHECKING([library from ${UI_PACKAGE}, version ${LMAJOR}.${LMINOR}.${LPATCH} or later])
9546 for TYPE in MAJOR MINOR PATCH; do
9547 INSTALLED_VERSION="UI_SO_VERSION_${TYPE}"
9548 NEEDED_VERSION="L${TYPE}"
9549 if test ${!INSTALLED_VERSION} -lt ${!NEEDED_VERSION}; then
9550 AC_MSG_ERROR([${UI_SO_VERSION} is too old.])
9551 elif test ${!INSTALLED_VERSION} -gt ${!NEEDED_VERSION}; then
9552 break
9553 fi
9554 done
9555 AC_MSG_RESULT([yes (lib version ${UI_SO_VERSION})])
9556 fi
9557 ])
9558
9559 dnl UI common autotools helper macros
9560
9561 dnl UI_MSG_MISSING(VALUE, WHAT [,"warn"])
9562 dnl
9563 dnl If VALUE is empty or "no, exit with error message that suport
9564 dnl for WHAT is missing, or continue with a warning if "warn" is given.
9565 AC_DEFUN([UI_MSG_MISSING],
9566 [
9567 if test x"[$1]" = "x" -o x"[$1]" = "xno"; then
9568 if test x"[$3]" = "xwarn"; then
9569 AC_MSG_WARN([Missing support for: $2.])
9570 else
9571 AC_MSG_ERROR([Missing support for: $2.])
9572 fi
9573 fi
9574 ])
9575
9576 dnl Simplified and enhanced version of AC_PATH_PROG
9577 dnl
9578 dnl UI_PATH_PROG(VARIABLE, PROG-TO-CHECK-FOR [, "warn"])
9579 dnl
9580 dnl Check for program with AC_PATH_PROG. If program is not found, exit with
9581 dnl error unless "warn" option is given.
9582 dnl
9583 AC_DEFUN([UI_PATH_PROG],
9584 [
9585 AC_PATH_PROG([$1], [$2])
9586 UI_MSG_MISSING([$$1], [Program $2], [$3])
9587 ])
9588
9589 dnl Echo to file
9590 dnl
9591 dnl UI_PRINT_FILE(FILENAME, TEXT)
9592 AC_DEFUN([UI_PRINT_FILE],
9593 [
9594 echo -n "$2" >"$1"
9595 ])
9596
9597 dnl Add automake source
9598 dnl
9599 dnl UI_ADD_AM(makefile code)
9600 AC_DEFUN([UI_ADD_AM],
9601 [
9602 echo -n "$1" >>"ui-auto.am"
9603 ])
9604
9605 dnl ui-auto check for C++ compilers
9606 dnl
9607 dnl Calls AC_PROG_CXX, and then checks for some compilers/versions we must not use.
9608 dnl
9609 dnl UI_ADD_AM(makefile code)
9610 AC_DEFUN([UI_PROG_CXX],
9611 [
9612 AC_PROG_CXX
9613 if test "x$GXX" = "xyes"; then
9614 if ${CXX} --version | grep "2\.9[[]0123456789[]]\..*"; then
9615 AC_MSG_ERROR([We cannot use g++-2.9*; pls use at least g++-3.0.])
9616 fi
9617 fi
9618 ])
9619
9620 # Clean distribution dir from "well-known" cruft.
9621 #
9622 # Usage configure.ac: UI_DISTDIR_CRUFT
9623 # Usage Makefile.am : dist-hook: ui-auto-dist
9624 AC_DEFUN([UI_DISTDIR_CRUFT],
9625 [
9626 UI_ADD_AM([
9627 ui-distdir-cruft:
9628 test ! -z \$(distdir)
9629 rm -rf \`find \$(distdir) -type d -name "CVS" -o -name ".svn" -o -name ".git"\`
9630 rm -f \`find \$(distdir) -type f -name ".cvsignore" -or -name CVSDUMMY -or -name '*~' -or -name '#*#' -or -name '.#*'\`
9631
9632 .PHONY: ui-distdir-cruft
9633
9634 # Set dependencies for generic rules
9635 ui-auto-dist: ui-distdir-cruft
9636 ])
9637 ])
9638
9639 AC_DEFUN([UI_DOXYGEN],
9640 [
9641 AC_ARG_ENABLE(ui-doxygen,[
9642 --disable-ui-doxygen Disable generation of doxygen documentation.],
9643 [
9644 UI_DOXYGEN_ENABLED="${enableval}"
9645 ])
9646
9647 UI_DOXYGEN_TARGETS='def html latex man rtf xml'
9648 if test "$UI_DOXYGEN_ENABLED" = "no"; then
9649 UI_DOXYGEN_MAKE="mkdir autodoc && for d in ${UI_DOXYGEN_TARGETS}; do echo 'Doxygen documentation was disabled by configure option.' >autodoc/\$\${d}; done"
9650 else
9651 UI_PATH_PROG(DOXYGEN, doxygen)
9652 UI_PATH_PROG(PERL, perl)
9653 UI_DOXYGEN_MAKE='$(DOXYGEN) Doxyfile'
9654 fi
9655
9656 UI_ADD_AM([
9657
9658 ui-doxygen:
9659 rm -rf autodoc && ${UI_DOXYGEN_MAKE}
9660 touch ui-doxygen
9661
9662 ui-doxygen-clean:
9663 rm -rf autodoc ui-doxygen
9664
9665 ui-doxygen-install: ui-doxygen
9666 install -d \$(DESTDIR)\$(docdir) && \
9667 chmod -R u=rwx,g=rx,o=rx \$(DESTDIR)\$(docdir) && \
9668 for d in ${UI_DOXYGEN_TARGETS}; do \
9669 cp -a autodoc/\$\${d} \$(DESTDIR)\$(docdir) 2>/dev/null || true ; \
9670 done
9671
9672 ui-doxygen-uninstall:
9673 for d in ${UI_DOXYGEN_TARGETS}; do \
9674 chmod -R u+wx \$(DESTDIR)\$(docdir)/\$\${d} 2>/dev/null || true ; \
9675 rm -rf \$(DESTDIR)\$(docdir)/\$\${d}; \
9676 done
9677
9678 .PHONY: ui-doxygen-clean ui-doxygen-install ui-doxygen-uninstall
9679
9680 ui-auto-all: ui-doxygen
9681 ui-auto-clean: ui-doxygen-clean
9682 ui-auto-install-data: ui-doxygen-install
9683 ui-auto-uninstall: ui-doxygen-uninstall
9684
9685 ])
9686 ])
9687
9688 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
88539689 #
88549690 # This file is free software; the Free Software Foundation
88559691 # gives unlimited permission to copy and/or distribute it,
88619697 # generated from the m4 files accompanying Automake X.Y.
88629698 # (This private macro should not be called outside this file.)
88639699 AC_DEFUN([AM_AUTOMAKE_VERSION],
8864 [am__api_version='1.14'
9700 [am__api_version='1.15'
88659701 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
88669702 dnl require some minimum version. Point them to the right macro.
8867 m4_if([$1], [1.14.1], [],
9703 m4_if([$1], [1.15], [],
88689704 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
88699705 ])
88709706
88809716 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
88819717 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
88829718 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8883 [AM_AUTOMAKE_VERSION([1.14.1])dnl
9719 [AM_AUTOMAKE_VERSION([1.15])dnl
88849720 m4_ifndef([AC_AUTOCONF_VERSION],
88859721 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
88869722 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
88879723
88889724 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
88899725
8890 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
9726 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
88919727 #
88929728 # This file is free software; the Free Software Foundation
88939729 # gives unlimited permission to copy and/or distribute it,
89329768 # configured tree to be moved without reconfiguration.
89339769
89349770 AC_DEFUN([AM_AUX_DIR_EXPAND],
8935 [dnl Rely on autoconf to set up CDPATH properly.
8936 AC_PREREQ([2.50])dnl
8937 # expand $ac_aux_dir to an absolute path
8938 am_aux_dir=`cd $ac_aux_dir && pwd`
9771 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
9772 # Expand $ac_aux_dir to an absolute path.
9773 am_aux_dir=`cd "$ac_aux_dir" && pwd`
89399774 ])
89409775
89419776 # AM_CONDITIONAL -*- Autoconf -*-
89429777
8943 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
9778 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
89449779 #
89459780 # This file is free software; the Free Software Foundation
89469781 # gives unlimited permission to copy and/or distribute it,
89719806 Usually this means the macro was only invoked conditionally.]])
89729807 fi])])
89739808
8974 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
9809 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
89759810 #
89769811 # This file is free software; the Free Software Foundation
89779812 # gives unlimited permission to copy and/or distribute it,
91629997
91639998 # Generate code to set up dependency tracking. -*- Autoconf -*-
91649999
9165 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
10000 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
916610001 #
916710002 # This file is free software; the Free Software Foundation
916810003 # gives unlimited permission to copy and/or distribute it,
923810073
923910074 # Do all the work for Automake. -*- Autoconf -*-
924010075
9241 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
10076 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
924210077 #
924310078 # This file is free software; the Free Software Foundation
924410079 # gives unlimited permission to copy and/or distribute it,
932810163 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
932910164 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
933010165 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9331 # We need awk for the "check" target. The system "awk" is bad on
9332 # some platforms.
10166 # We need awk for the "check" target (and possibly the TAP driver). The
10167 # system "awk" is bad on some platforms.
933310168 AC_REQUIRE([AC_PROG_AWK])dnl
933410169 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
933510170 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
940310238 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
940410239 fi
940510240 fi
10241 dnl The trailing newline in this macro's definition is deliberate, for
10242 dnl backward compatibility and to allow trailing 'dnl'-style comments
10243 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
940610244 ])
940710245
940810246 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
943210270 done
943310271 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
943410272
9435 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10273 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
943610274 #
943710275 # This file is free software; the Free Software Foundation
943810276 # gives unlimited permission to copy and/or distribute it,
944310281 # Define $install_sh.
944410282 AC_DEFUN([AM_PROG_INSTALL_SH],
944510283 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9446 if test x"${install_sh}" != xset; then
10284 if test x"${install_sh+set}" != xset; then
944710285 case $am_aux_dir in
944810286 *\ * | *\ *)
944910287 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
945310291 fi
945410292 AC_SUBST([install_sh])])
945510293
9456 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
10294 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
945710295 #
945810296 # This file is free software; the Free Software Foundation
945910297 # gives unlimited permission to copy and/or distribute it,
947410312
947510313 # Check to see how 'make' treats includes. -*- Autoconf -*-
947610314
9477 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10315 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
947810316 #
947910317 # This file is free software; the Free Software Foundation
948010318 # gives unlimited permission to copy and/or distribute it,
952410362
952510363 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
952610364
9527 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
10365 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
952810366 #
952910367 # This file is free software; the Free Software Foundation
953010368 # gives unlimited permission to copy and/or distribute it,
956310401
956410402 # Helper functions for option handling. -*- Autoconf -*-
956510403
9566 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10404 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
956710405 #
956810406 # This file is free software; the Free Software Foundation
956910407 # gives unlimited permission to copy and/or distribute it,
959210430 AC_DEFUN([_AM_IF_OPTION],
959310431 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
959410432
9595 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
10433 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
959610434 #
959710435 # This file is free software; the Free Software Foundation
959810436 # gives unlimited permission to copy and/or distribute it,
963910477 # For backward compatibility.
964010478 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
964110479
9642 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10480 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
964310481 #
964410482 # This file is free software; the Free Software Foundation
964510483 # gives unlimited permission to copy and/or distribute it,
965810496
965910497 # Check to make sure that the build environment is sane. -*- Autoconf -*-
966010498
9661 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
10499 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
966210500 #
966310501 # This file is free software; the Free Software Foundation
966410502 # gives unlimited permission to copy and/or distribute it,
973910577 rm -f conftest.file
974010578 ])
974110579
9742 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
10580 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
974310581 #
974410582 # This file is free software; the Free Software Foundation
974510583 # gives unlimited permission to copy and/or distribute it,
979910637 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
980010638 ])
980110639
9802 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
10640 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
980310641 #
980410642 # This file is free software; the Free Software Foundation
980510643 # gives unlimited permission to copy and/or distribute it,
982710665 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
982810666 AC_SUBST([INSTALL_STRIP_PROGRAM])])
982910667
9830 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
10668 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
983110669 #
983210670 # This file is free software; the Free Software Foundation
983310671 # gives unlimited permission to copy and/or distribute it,
984610684
984710685 # Check how to create a tarball. -*- Autoconf -*-
984810686
9849 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
10687 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
985010688 #
985110689 # This file is free software; the Free Software Foundation
985210690 # gives unlimited permission to copy and/or distribute it,
997710815 AC_SUBST([am__untar])
997810816 ]) # _AM_PROG_TAR
997910817
9980 dnl Initialize an ui-auto project
9981 dnl
9982 dnl Usage:
9983 dnl UI_INIT(SOURCE_FILE, [SO_VERSION=], [TOOLDIR=src/tools], [INCDIR=src/PACKAGE], [AUTOMAKE_OPTS=])
9984 dnl
9985 dnl SOURCE_FILE (mandatory) See AC_CONFIG_SRCDIR.
9986 dnl SO_VERSION (optional) Give SO version (libtool style: e.g. 2:4:0) if needed.
9987 dnl TOOLDIR (sane default) UI-automagic script PACKAGE-version will be created in that directory.
9988 dnl INCDIR (sane default) UI-automagic header version.h will be created in that directory.
9989 dnl AUTOMAKE_OPTS (optional) Options to AM_INIT_AUTOMAKE.
9990 dnl
9991 AC_DEFUN([UI_INIT], [
9992 dnl
9993 dnl Generic autoconf/automake stuff
9994 dnl
9995 AC_PREREQ(2.58)
9996 AC_CONFIG_SRCDIR($1)
9997 AM_INIT_AUTOMAKE($5)
9998
9999 dnl
10000 dnl Basic initializations
10001 dnl
10002 if test -z "${PACKAGE_VERSION}"; then
10003 AC_MSG_ERROR([[Cant continue: PACKAGE_VERSION missing.]])
10004 fi
10005 SO_VERSION=$2
10006 AC_SUBST(SO_VERSION)
10007
10008 TOOLDIR=$3
10009 if test -z "${TOOLDIR}"; then
10010 TOOLDIR="src/tools"
10011 fi
10012
10013 INCDIR=$4
10014 if test -z "${INCDIR}"; then
10015 INCDIR="src/${PACKAGE_NAME}"
10016 fi
10017
10018 dnl
10019 dnl Initialize ui-auto.am
10020 dnl
10021 UI_AUTO_AM="ui-auto.am"
10022 rm -v -f "${UI_AUTO_AM}"
10023 AC_SUBST_FILE(UI_AUTO_AM)
10024
10025 UI_ADD_AM([
10026 # These are the generic ui-auto rules rules (add these to your Makefile.am appropriately to *-local targets).
10027 .PHONY: ui-auto-all ui-auto-clean ui-auto-dist ui-auto-distclean ui-auto-install-data ui-auto-install-exec ui-auto-uninstall
10028
10029 ui-auto-am-clean:
10030 rm -f "${UI_AUTO_AM}"
10031
10032 .PHONY: ui-auto-am-clean
10033
10034 # Set dependencies for generic rules
10035 ui-auto-distclean: ui-auto-am-clean
10036 ])
10037
10038 dnl
10039 dnl PACKAGE-version script (mandatory)
10040 dnl
10041 S_NAME="${PACKAGE_NAME}-version"
10042 S_PATH="${TOOLDIR}/${S_NAME}"
10043 V_MAJOR=`echo ${PACKAGE_VERSION} | cut -d'.' -f1`
10044 V_MINOR=`echo ${PACKAGE_VERSION} | cut -d'.' -f2`
10045 V_PATCH=`echo ${PACKAGE_VERSION} | cut -d'.' -f3`
10046
10047 mkdir -p `dirname "${S_PATH}"`
10048 cat <<EOF >"${S_PATH}"
10049 #!/bin/sh -e
10050 echo "UI_PACKAGE=\"${PACKAGE_NAME}\""
10051 echo "UI_VERSION=\"${PACKAGE_VERSION}\""
10052 echo "UI_VERSION_MAJOR=\"${V_MAJOR}\""
10053 echo "UI_VERSION_MINOR=\"${V_MINOR}\""
10054 echo "UI_VERSION_PATCH=\"${V_PATCH}\""
10055 EOF
10056
10057 if test -n "${SO_VERSION}"; then
10058 LV_IF=`echo ${SO_VERSION} | cut -d':' -f1`
10059 LV_REV=`echo ${SO_VERSION} | cut -d':' -f2`
10060 LV_AGE=`echo ${SO_VERSION} | cut -d':' -f3`
10061 LV_MAJOR=$[[LV_IF - LV_AGE]]
10062 LV_MINOR=${LV_AGE}
10063 LV_PATCH=${LV_REV}
10064 SO_VERSION_SYS="${LV_MAJOR}.${LV_MINOR}.${LV_PATCH}"
10065
10066 cat <<EOF >>"${S_PATH}"
10067 echo "UI_SO_VERSION=\"${SO_VERSION_SYS}\""
10068 echo "UI_SO_VERSION_MAJOR=\"${LV_MAJOR}\""
10069 echo "UI_SO_VERSION_MINOR=\"${LV_MINOR}\""
10070 echo "UI_SO_VERSION_PATCH=\"${LV_PATCH}\""
10071 EOF
10072 fi
10073 chmod +x "${S_PATH}"
10074
10075 dnl Man page for version script
10076 S_NAME_CAP=`echo "${S_NAME}" | tr "[[:lower:]]" "[[:upper:]]"`
10077 cat <<EOF >"${S_PATH}.1"
10078 .TH ${S_NAME_CAP} "1"
10079 .SH NAME
10080 ${S_NAME} \- Print parsable version information for development package ${PACKAGE_NAME}.
10081 .SH SYNOPSIS
10082 .PP
10083 .B ${S_NAME}
10084 .SH DESCRIPTION
10085 .PP
10086 Prints version information for installed development package
10087 ${PACKAGE_NAME} in a parsable way.
10088
10089 This is intended to be used by automatic version checks of build systems.
10090 .SH AUTHOR
10091 Produced automatically by ui-auto for ${PACKAGE_NAME} on `date --rfc-822`.
10092 EOF
10093
10094 dnl Automake rules for installation && distclean
10095 UI_ADD_AM([
10096 ui-version-script-install:
10097 install -d -m755 \"\$(DESTDIR)\$(bindir)\"
10098 install -m755 \"${S_PATH}\" \"\$(DESTDIR)\$(bindir)\"
10099 install -d -m755 \"\$(DESTDIR)\$(mandir)/man1\"
10100 install -m644 \"${S_PATH}.1\" \"\$(DESTDIR)\$(mandir)/man1\"
10101
10102 ui-version-script-uninstall:
10103 rm -f \"\$(DESTDIR)\$(bindir)/${S_NAME}\" \"\$(DESTDIR)\$(mandir)/man1/${S_NAME}.1\"
10104
10105 ui-version-script-clean:
10106 rm -f "${S_PATH}" "${S_PATH}.1"
10107
10108 .PHONY: ui-version-script-install ui-version-script-uninstall ui-version-script-clean
10109
10110 # Set dependencies for generic rules
10111 ui-auto-distclean: ui-version-script-clean
10112 ui-auto-install-exec: ui-version-script-install
10113 ui-auto-uninstall: ui-version-script-uninstall
10114 ])
10115
10116 dnl
10117 dnl version.h include (only when lib)
10118 dnl
10119 if test -n "${SO_VERSION}"; then
10120 I_NAME="version.h"
10121 I_PATH="${INCDIR}/${I_NAME}"
10122 HEADER_NAME=`echo "${PACKAGE_NAME}" | tr - _ | tr [a-z] [A-Z]`
10123 mkdir -p `dirname "${I_PATH}"`
10124 cat <<EOF >"${I_PATH}"
10125 #ifndef ${HEADER_NAME}_VERSION_H
10126 #define ${HEADER_NAME}_VERSION_H
10127
10128 /** @{ @brief ui-auto'mated version macros. */
10129 #define ${HEADER_NAME}_VERSION "${PACKAGE_VERSION}"
10130 #define ${HEADER_NAME}_VERSION_MAJOR ${V_MAJOR}
10131 #define ${HEADER_NAME}_VERSION_MINOR ${V_MINOR}
10132 #define ${HEADER_NAME}_VERSION_PATCH ${V_PATCH}
10133 /** @} */
10134 /** @{ @brief ui-auto'mated library version support. */
10135 #define ${HEADER_NAME}_LIBVERSION "${SO_VERSION_SYS}"
10136 #define ${HEADER_NAME}_LIBVERSION_MAJOR ${LV_MAJOR}
10137 #define ${HEADER_NAME}_LIBVERSION_MINOR ${LV_MINOR}
10138 #define ${HEADER_NAME}_LIBVERSION_PATCH ${LV_PATCH}
10139 /** @} */
10140 #endif
10141 EOF
10142 dnl Automake rules for installation && distclean
10143 UI_ADD_AM([
10144 ui-version-header-install:
10145 install -d -m755 \"\$(DESTDIR)\$(incdir)\"
10146 install -m644 \"${I_PATH}\" \"\$(DESTDIR)\$(incdir)\"
10147
10148 ui-version-header-uninstall:
10149 rm -f \"\$(DESTDIR)\$(incdir)/${I_NAME}\"
10150
10151 ui-version-header-clean:
10152 rm -f "${I_PATH}"
10153
10154 .PHONY: ui-version-header-install ui-version-header-uninstall ui-version-header-clean
10155
10156 # Set dependencies for generic rules
10157 ui-auto-distclean: ui-version-header-clean
10158 ui-auto-install-exec: ui-version-header-install
10159 ui-auto-uninstall: ui-version-header-uninstall
10160 ])
10161 fi
10162 ])
10163
10164 dnl Check for ui-auto enabled project.
10165 dnl
10166 dnl Usage:
10167 dnl UI_CHECK(key, package, MAJOR,MINOR,PATCH, LMAJOR,LMINOR,LPATCH)
10168 dnl
10169 dnl key unique key for this test
10170 dnl package package name (script name searched for is PACKAGE-version)
10171 dnl MAJOR (optional) required major version number of library
10172 dnl MINOR (optional) required minor version number of library
10173 dnl PATCH (optional) required patchlevel of library
10174 dnl LMAJOR (optional) required major version number of library interface
10175 dnl LMINOR (optional) required minor version number of library interface
10176 dnl LPATCH (optional) required patchlevel of library interface
10177 dnl
10178 dnl All version numbers default to 0 if not specified.
10179 dnl
10180 AC_DEFUN([UI_CHECK], [
10181 ifelse($3, , MAJOR=0, MAJOR=$3)
10182 ifelse($4, , MINOR=0, MINOR=$4)
10183 ifelse($5, , PATCH=0, PATCH=$5)
10184 ifelse($6, , LMAJOR=0, LMAJOR=$6)
10185 ifelse($7, , LMINOR=0, LMINOR=$7)
10186 ifelse($8, , LPATCH=0, LPATCH=$8)
10187
10188 dnl Check and evaluate version script
10189 AC_PATH_PROG([$1], [$2-version])
10190 test x"$[$1]" = x && AC_MSG_ERROR([$2-version not found in PATH])
10191
10192 dnl Reset variables
10193 UI_PACKAGE=""
10194 UI_VERSION=""
10195 UI_VERSION_MAJOR=""
10196 UI_VERSION_MINOR=""
10197 UI_VERSION_PATCH=""
10198 UI_SO_VERSION=""
10199 UI_SO_VERSION_MAJOR=""
10200 UI_SO_VERSION_MINOR=""
10201 UI_SO_VERSION_PATCH=""
10202
10203 dnl Set variables from PACKAGE-version script
10204 eval `[$2-version]`
10205 dnl Sanity check
10206 test x"${UI_PACKAGE}" = x[$2] || AC_MSG_ERROR([$2-version found in PATH seems corrupt; from old unstable ui-auto version? ])
10207
10208 dnl Check package version
10209 AC_MSG_CHECKING([package $2, version ${MAJOR}.${MINOR}.${PATCH} or later])
10210
10211 for TYPE in MAJOR MINOR PATCH; do
10212 INSTALLED_VERSION="UI_VERSION_${TYPE}"
10213 NEEDED_VERSION="${TYPE}"
10214 if test ${!INSTALLED_VERSION} -lt ${!NEEDED_VERSION}; then
10215 AC_MSG_ERROR([${UI_VERSION} is too old.])
10216 elif test ${!INSTALLED_VERSION} -gt ${!NEEDED_VERSION}; then
10217 break
10218 fi
10219 done
10220 AC_MSG_RESULT([yes (version ${UI_VERSION})])
10221
10222 dnl Check library version
10223 if test -n "${UI_SO_VERSION}"; then
10224 AC_MSG_CHECKING([library from ${UI_PACKAGE}, version ${LMAJOR}.${LMINOR}.${LPATCH} or later])
10225 for TYPE in MAJOR MINOR PATCH; do
10226 INSTALLED_VERSION="UI_SO_VERSION_${TYPE}"
10227 NEEDED_VERSION="L${TYPE}"
10228 if test ${!INSTALLED_VERSION} -lt ${!NEEDED_VERSION}; then
10229 AC_MSG_ERROR([${UI_SO_VERSION} is too old.])
10230 elif test ${!INSTALLED_VERSION} -gt ${!NEEDED_VERSION}; then
10231 break
10232 fi
10233 done
10234 AC_MSG_RESULT([yes (lib version ${UI_SO_VERSION})])
10235 fi
10236 ])
10237
10238 dnl UI common autotools helper macros
10239
10240 dnl UI_MSG_MISSING(VALUE, WHAT [,"warn"])
10241 dnl
10242 dnl If VALUE is empty or "no, exit with error message that suport
10243 dnl for WHAT is missing, or continue with a warning if "warn" is given.
10244 AC_DEFUN([UI_MSG_MISSING],
10245 [
10246 if test x"[$1]" = "x" -o x"[$1]" = "xno"; then
10247 if test x"[$3]" = "xwarn"; then
10248 AC_MSG_WARN([Missing support for: $2.])
10249 else
10250 AC_MSG_ERROR([Missing support for: $2.])
10251 fi
10252 fi
10253 ])
10254
10255 dnl Simplified and enhanced version of AC_PATH_PROG
10256 dnl
10257 dnl UI_PATH_PROG(VARIABLE, PROG-TO-CHECK-FOR [, "warn"])
10258 dnl
10259 dnl Check for program with AC_PATH_PROG. If program is not found, exit with
10260 dnl error unless "warn" option is given.
10261 dnl
10262 AC_DEFUN([UI_PATH_PROG],
10263 [
10264 AC_PATH_PROG([$1], [$2])
10265 UI_MSG_MISSING([$$1], [Program $2], [$3])
10266 ])
10267
10268 dnl Echo to file
10269 dnl
10270 dnl UI_PRINT_FILE(FILENAME, TEXT)
10271 AC_DEFUN([UI_PRINT_FILE],
10272 [
10273 echo -n "$2" >"$1"
10274 ])
10275
10276 dnl Add automake source
10277 dnl
10278 dnl UI_ADD_AM(makefile code)
10279 AC_DEFUN([UI_ADD_AM],
10280 [
10281 echo -n "$1" >>"ui-auto.am"
10282 ])
10283
10284 dnl ui-auto check for C++ compilers
10285 dnl
10286 dnl Calls AC_PROG_CXX, and then checks for some compilers/versions we must not use.
10287 dnl
10288 dnl UI_ADD_AM(makefile code)
10289 AC_DEFUN([UI_PROG_CXX],
10290 [
10291 AC_PROG_CXX
10292 if test "x$GXX" = "xyes"; then
10293 if ${CXX} --version | grep "2\.9[[]0123456789[]]\..*"; then
10294 AC_MSG_ERROR([We cannot use g++-2.9*; pls use at least g++-3.0.])
10295 fi
10296 fi
10297 ])
10298
10299 # Clean distribution dir from "well-known" cruft.
10300 #
10301 # Usage configure.ac: UI_DISTDIR_CRUFT
10302 # Usage Makefile.am : dist-hook: ui-auto-dist
10303 AC_DEFUN([UI_DISTDIR_CRUFT],
10304 [
10305 UI_ADD_AM([
10306 ui-distdir-cruft:
10307 test ! -z \$(distdir)
10308 rm -rf \`find \$(distdir) -type d -name "CVS" -o -name ".svn" -o -name ".git"\`
10309 rm -f \`find \$(distdir) -type f -name ".cvsignore" -or -name CVSDUMMY -or -name '*~' -or -name '#*#' -or -name '.#*'\`
10310
10311 .PHONY: ui-distdir-cruft
10312
10313 # Set dependencies for generic rules
10314 ui-auto-dist: ui-distdir-cruft
10315 ])
10316 ])
10317
10318 AC_DEFUN([UI_DOXYGEN],
10319 [
10320 AC_ARG_ENABLE(ui-doxygen,[
10321 --disable-ui-doxygen Disable generation of doxygen documentation.],
10322 [
10323 UI_DOXYGEN_ENABLED="${enableval}"
10324 ])
10325
10326 UI_DOXYGEN_TARGETS='def html latex man rtf xml'
10327 if test "$UI_DOXYGEN_ENABLED" = "no"; then
10328 UI_DOXYGEN_MAKE="mkdir autodoc && for d in ${UI_DOXYGEN_TARGETS}; do echo 'Doxygen documentation was disabled by configure option.' >autodoc/\$\${d}; done"
10329 else
10330 UI_PATH_PROG(DOXYGEN, doxygen)
10331 UI_PATH_PROG(PERL, perl)
10332 UI_DOXYGEN_MAKE='$(DOXYGEN) Doxyfile'
10333 fi
10334
10335 UI_ADD_AM([
10336
10337 ui-doxygen:
10338 rm -rf autodoc && ${UI_DOXYGEN_MAKE}
10339 touch ui-doxygen
10340
10341 ui-doxygen-clean:
10342 rm -rf autodoc ui-doxygen
10343
10344 ui-doxygen-install: ui-doxygen
10345 install -d \$(DESTDIR)\$(docdir) && \
10346 chmod -R u=rwx,g=rx,o=rx \$(DESTDIR)\$(docdir) && \
10347 cp -a autodoc/* \$(DESTDIR)\$(docdir)
10348
10349 ui-doxygen-uninstall:
10350 for d in ${UI_DOXYGEN_TARGETS}; do \
10351 chmod -R u+wx \$(DESTDIR)\$(docdir)/\$\${d} 2>/dev/null || true ; \
10352 rm -rf \$(DESTDIR)\$(docdir)/\$\${d}; \
10353 done
10354
10355 .PHONY: ui-doxygen-clean ui-doxygen-install ui-doxygen-uninstall
10356
10357 ui-auto-all: ui-doxygen
10358 ui-auto-clean: ui-doxygen-clean
10359 ui-auto-install-data: ui-doxygen-install
10360 ui-auto-uninstall: ui-doxygen-uninstall
10361
10362 ])
10363 ])
10364
22
33 scriptversion=2012-10-14.11; # UTC
44
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-03-23'
2 # Copyright 1992-2016 Free Software Foundation, Inc.
3
4 timestamp='2016-04-02'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2323 # program. This Exception is an additional permission under section 7
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525 #
26 # Originally written by Per Bothner.
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
3030 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
31 # Please send patches to <config-patches@gnu.org>.
3232
3333
3434 me=`echo "$0" | sed -e 's,.*/,,'`
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2014 Free Software Foundation, Inc.
52 Copyright 1992-2016 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."
167167 # Note: NetBSD doesn't particularly care about the vendor
168168 # portion of the name. We always set it to "unknown".
169169 sysctl="sysctl -n hw.machine_arch"
170 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
171 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
170 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
173 echo unknown)`
172174 case "${UNAME_MACHINE_ARCH}" in
173175 armeb) machine=armeb-unknown ;;
174176 arm*) machine=arm-unknown ;;
175177 sh3el) machine=shl-unknown ;;
176178 sh3eb) machine=sh-unknown ;;
177179 sh5el) machine=sh5le-unknown ;;
180 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
184 ;;
178185 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
179186 esac
180187 # The Operating System including object format, if it has switched
181188 # to ELF recently, or will in the future.
182189 case "${UNAME_MACHINE_ARCH}" in
183 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
190 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
184191 eval $set_cc_for_build
185192 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
186193 | grep -q __ELF__
196203 os=netbsd
197204 ;;
198205 esac
206 # Determine ABI tags.
207 case "${UNAME_MACHINE_ARCH}" in
208 earm*)
209 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
210 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
211 ;;
212 esac
199213 # The OS release
200214 # Debian GNU/NetBSD machines have a different userland, and
201215 # thus, need a distinct triplet. However, they do not need
206220 release='-gnu'
207221 ;;
208222 *)
209 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
223 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
210224 ;;
211225 esac
212226 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
213227 # contains redundant information, the shorter form:
214228 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215 echo "${machine}-${os}${release}"
229 echo "${machine}-${os}${release}${abi}"
216230 exit ;;
217231 *:Bitrig:*:*)
218232 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
222236 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
223237 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
224238 exit ;;
239 *:LibertyBSD:*:*)
240 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
241 echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
242 exit ;;
225243 *:ekkoBSD:*:*)
226244 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
227245 exit ;;
233251 exit ;;
234252 *:MirBSD:*:*)
235253 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
254 exit ;;
255 *:Sortix:*:*)
256 echo ${UNAME_MACHINE}-unknown-sortix
236257 exit ;;
237258 alpha:OSF1:*:*)
238259 case $UNAME_RELEASE in
250271 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
251272 case "$ALPHA_CPU_TYPE" in
252273 "EV4 (21064)")
253 UNAME_MACHINE="alpha" ;;
274 UNAME_MACHINE=alpha ;;
254275 "EV4.5 (21064)")
255 UNAME_MACHINE="alpha" ;;
276 UNAME_MACHINE=alpha ;;
256277 "LCA4 (21066/21068)")
257 UNAME_MACHINE="alpha" ;;
278 UNAME_MACHINE=alpha ;;
258279 "EV5 (21164)")
259 UNAME_MACHINE="alphaev5" ;;
280 UNAME_MACHINE=alphaev5 ;;
260281 "EV5.6 (21164A)")
261 UNAME_MACHINE="alphaev56" ;;
282 UNAME_MACHINE=alphaev56 ;;
262283 "EV5.6 (21164PC)")
263 UNAME_MACHINE="alphapca56" ;;
284 UNAME_MACHINE=alphapca56 ;;
264285 "EV5.7 (21164PC)")
265 UNAME_MACHINE="alphapca57" ;;
286 UNAME_MACHINE=alphapca57 ;;
266287 "EV6 (21264)")
267 UNAME_MACHINE="alphaev6" ;;
288 UNAME_MACHINE=alphaev6 ;;
268289 "EV6.7 (21264A)")
269 UNAME_MACHINE="alphaev67" ;;
290 UNAME_MACHINE=alphaev67 ;;
270291 "EV6.8CB (21264C)")
271 UNAME_MACHINE="alphaev68" ;;
292 UNAME_MACHINE=alphaev68 ;;
272293 "EV6.8AL (21264B)")
273 UNAME_MACHINE="alphaev68" ;;
294 UNAME_MACHINE=alphaev68 ;;
274295 "EV6.8CX (21264D)")
275 UNAME_MACHINE="alphaev68" ;;
296 UNAME_MACHINE=alphaev68 ;;
276297 "EV6.9A (21264/EV69A)")
277 UNAME_MACHINE="alphaev69" ;;
298 UNAME_MACHINE=alphaev69 ;;
278299 "EV7 (21364)")
279 UNAME_MACHINE="alphaev7" ;;
300 UNAME_MACHINE=alphaev7 ;;
280301 "EV7.9 (21364A)")
281 UNAME_MACHINE="alphaev79" ;;
302 UNAME_MACHINE=alphaev79 ;;
282303 esac
283304 # A Pn.n version is a patched version.
284305 # A Vn.n version is a released version.
285306 # A Tn.n version is a released field test version.
286307 # A Xn.n version is an unreleased experimental baselevel.
287308 # 1.2 uses "1.2" for uname -r.
288 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
309 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
289310 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
290311 exitcode=$?
291312 trap '' 0
358379 exit ;;
359380 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
360381 eval $set_cc_for_build
361 SUN_ARCH="i386"
382 SUN_ARCH=i386
362383 # If there is a compiler, see if it is configured for 64-bit objects.
363384 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
364385 # This test works for both compilers.
365 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
386 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
366387 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
367 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
388 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
368389 grep IS_64BIT_ARCH >/dev/null
369390 then
370 SUN_ARCH="x86_64"
391 SUN_ARCH=x86_64
371392 fi
372393 fi
373394 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
392413 exit ;;
393414 sun*:*:4.2BSD:*)
394415 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
395 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
416 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
396417 case "`/bin/arch`" in
397418 sun3)
398419 echo m68k-sun-sunos${UNAME_RELEASE}
578599 else
579600 IBM_ARCH=powerpc
580601 fi
581 if [ -x /usr/bin/oslevel ] ; then
582 IBM_REV=`/usr/bin/oslevel`
602 if [ -x /usr/bin/lslpp ] ; then
603 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
604 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
583605 else
584606 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
585607 fi
616638 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
617639 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
618640 case "${sc_cpu_version}" in
619 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
620 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
641 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
642 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
621643 532) # CPU_PA_RISC2_0
622644 case "${sc_kernel_bits}" in
623 32) HP_ARCH="hppa2.0n" ;;
624 64) HP_ARCH="hppa2.0w" ;;
625 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
645 32) HP_ARCH=hppa2.0n ;;
646 64) HP_ARCH=hppa2.0w ;;
647 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
626648 esac ;;
627649 esac
628650 fi
661683 exit (0);
662684 }
663685 EOF
664 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
686 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
665687 test -z "$HP_ARCH" && HP_ARCH=hppa
666688 fi ;;
667689 esac
668 if [ ${HP_ARCH} = "hppa2.0w" ]
690 if [ ${HP_ARCH} = hppa2.0w ]
669691 then
670692 eval $set_cc_for_build
671693
678700 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
679701 # => hppa64-hp-hpux11.23
680702
681 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
703 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
682704 grep -q __LP64__
683705 then
684 HP_ARCH="hppa2.0w"
706 HP_ARCH=hppa2.0w
685707 else
686 HP_ARCH="hppa64"
708 HP_ARCH=hppa64
687709 fi
688710 fi
689711 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
788810 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
789811 exit ;;
790812 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
791 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
792 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
813 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
814 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
793815 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
794816 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
795817 exit ;;
796818 5000:UNIX_System_V:4.*:*)
797 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
798 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
819 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
820 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
799821 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
800822 exit ;;
801823 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
877899 exit ;;
878900 *:GNU/*:*:*)
879901 # other systems with GNU libc and userland
880 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
902 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
881903 exit ;;
882904 i*86:Minix:*:*)
883905 echo ${UNAME_MACHINE}-pc-minix
900922 EV68*) UNAME_MACHINE=alphaev68 ;;
901923 esac
902924 objdump --private-headers /bin/sh | grep -q ld.so.1
903 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
925 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
904926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
905927 exit ;;
906928 arc:Linux:*:* | arceb:Linux:*:*)
931953 crisv32:Linux:*:*)
932954 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
933955 exit ;;
956 e2k:Linux:*:*)
957 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
958 exit ;;
934959 frv:Linux:*:*)
935960 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
936961 exit ;;
941966 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
942967 exit ;;
943968 ia64:Linux:*:*)
969 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
970 exit ;;
971 k1om:Linux:*:*)
944972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
945973 exit ;;
946974 m32r*:Linux:*:*)
10191047 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
10201048 exit ;;
10211049 x86_64:Linux:*:*)
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1050 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
10231051 exit ;;
10241052 xtensa*:Linux:*:*)
10251053 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
10981126 # uname -m prints for DJGPP always 'pc', but it prints nothing about
10991127 # the processor, so we play safe by assuming i586.
11001128 # Note: whatever this is, it MUST be the same as what config.sub
1101 # prints for the "djgpp" host, or else GDB configury will decide that
1129 # prints for the "djgpp" host, or else GDB configure will decide that
11021130 # this is a cross-build.
11031131 echo i586-pc-msdosdjgpp
11041132 exit ;;
12471275 SX-8R:SUPER-UX:*:*)
12481276 echo sx8r-nec-superux${UNAME_RELEASE}
12491277 exit ;;
1278 SX-ACE:SUPER-UX:*:*)
1279 echo sxace-nec-superux${UNAME_RELEASE}
1280 exit ;;
12501281 Power*:Rhapsody:*:*)
12511282 echo powerpc-apple-rhapsody${UNAME_RELEASE}
12521283 exit ;;
12601291 UNAME_PROCESSOR=powerpc
12611292 fi
12621293 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1263 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1294 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
12641295 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1265 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1296 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
12661297 grep IS_64BIT_ARCH >/dev/null
12671298 then
12681299 case $UNAME_PROCESSOR in
12841315 exit ;;
12851316 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12861317 UNAME_PROCESSOR=`uname -p`
1287 if test "$UNAME_PROCESSOR" = "x86"; then
1318 if test "$UNAME_PROCESSOR" = x86; then
12881319 UNAME_PROCESSOR=i386
12891320 UNAME_MACHINE=pc
12901321 fi
13151346 # "uname -m" is not consistent, so use $cputype instead. 386
13161347 # is converted to i386 for consistency with other x86
13171348 # operating systems.
1318 if test "$cputype" = "386"; then
1349 if test "$cputype" = 386; then
13191350 UNAME_MACHINE=i386
13201351 else
13211352 UNAME_MACHINE="$cputype"
13571388 echo i386-pc-xenix
13581389 exit ;;
13591390 i*86:skyos:*:*)
1360 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1391 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
13611392 exit ;;
13621393 i*86:rdos:*:*)
13631394 echo ${UNAME_MACHINE}-pc-rdos
13671398 exit ;;
13681399 x86_64:VMkernel:*:*)
13691400 echo ${UNAME_MACHINE}-unknown-esx
1401 exit ;;
1402 amd64:Isilon\ OneFS:*:*)
1403 echo x86_64-unknown-onefs
13701404 exit ;;
13711405 esac
13721406
13771411 the operating system you are using. It is advised that you
13781412 download the most up to date version of the config scripts from
13791413
1380 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1414 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
13811415 and
1382 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1416 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
13831417
13841418 If the version you run ($0) is already up to date, please
13851419 send the following data and any information you think might be
6969 /* Define to 1 if you have the <xfs/xqm.h> header file. */
7070 #undef HAVE_XFS_XQM_H
7171
72 /* Define to the sub-directory in which libtool stores uninstalled libraries.
73 */
72 /* Define to the sub-directory where libtool stores uninstalled libraries. */
7473 #undef LT_OBJDIR
7574
7675 /* Name of package */
10099 /* Define to 1 if strerror_r returns char *. */
101100 #undef STRERROR_R_CHAR_P
102101
102
103 #include <memory>
104 namespace UI {
105 #if __cplusplus >= 201103L
106 template <typename T>
107 using auto_ptr = std::unique_ptr<T>;
108 #else
109 using std::auto_ptr;
110 #endif
111 }
112
113
103114 /* Version number of package */
104115 #undef VERSION
105116
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-05-01'
2 # Copyright 1992-2016 Free Software Foundation, Inc.
3
4 timestamp='2016-03-30'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525
2626
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
27 # Please send patches to <config-patches@gnu.org>.
2828 #
2929 # Configuration subroutine to validate and canonicalize a configuration type.
3030 # Supply the specified configuration type as an argument.
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 # http://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
6766 version="\
6867 GNU config.sub ($timestamp)
6968
70 Copyright 1992-2014 Free Software Foundation, Inc.
69 Copyright 1992-2016 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."
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* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
120119 kopensolaris*-gnu* | \
121120 storm-chaos* | os2-emx* | rtmk-nova*)
122121 os=-$maybe_os
254253 | arc | arceb \
255254 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256255 | avr | avr32 \
256 | ba \
257257 | be32 | be64 \
258258 | bfin \
259259 | c4x | c8051 | clipper \
260260 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
262 | fido | fr30 | frv \
261 | e2k | epiphany \
262 | fido | fr30 | frv | ft32 \
263263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264264 | hexagon \
265265 | i370 | i860 | i960 | ia64 \
301301 | pdp10 | pdp11 | pj | pjl \
302302 | powerpc | powerpc64 | powerpc64le | powerpcle \
303303 | pyramid \
304 | riscv32 | riscv64 \
304305 | rl78 | rx \
305306 | score \
306 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
307308 | sh64 | sh64le \
308309 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
309310 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
311312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
312313 | ubicom32 \
313314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
315 | visium \
314316 | we32k \
315317 | x86 | xc16x | xstormy16 | xtensa \
316318 | z8k | z80)
324326 ;;
325327 c6x)
326328 basic_machine=tic6x-unknown
329 ;;
330 leon|leon[3-9])
331 basic_machine=sparc-$basic_machine
327332 ;;
328333 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
329334 basic_machine=$basic_machine-unknown
370375 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
371376 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
372377 | avr-* | avr32-* \
378 | ba-* \
373379 | be32-* | be64-* \
374380 | bfin-* | bs2000-* \
375381 | c[123]* | c30-* | [cjt]90-* | c4x-* \
376382 | c8051-* | clipper-* | craynv-* | cydra-* \
377383 | d10v-* | d30v-* | dlx-* \
378 | elxsi-* \
384 | e2k-* | elxsi-* \
379385 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
380386 | h8300-* | h8500-* \
381387 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
422428 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
423429 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
424430 | pyramid-* \
431 | riscv32-* | riscv64-* \
425432 | rl78-* | romp-* | rs6000-* | rx-* \
426433 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
427434 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
428435 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
429436 | sparclite-* \
430 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
437 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
431438 | tahoe-* \
432439 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
433440 | tile*-* \
435442 | ubicom32-* \
436443 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
437444 | vax-* \
445 | visium-* \
438446 | we32k-* \
439447 | x86-* | x86_64-* | xc16x-* | xps100-* \
440448 | xstormy16-* | xtensa*-* \
510518 aros)
511519 basic_machine=i386-pc
512520 os=-aros
521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
513524 ;;
514525 aux)
515526 basic_machine=m68k-apple
772783 basic_machine=m68k-isi
773784 os=-sysv
774785 ;;
786 leon-*|leon[3-9]-*)
787 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
788 ;;
775789 m68knommu)
776790 basic_machine=m68k-unknown
777791 os=-linux
826840 morphos)
827841 basic_machine=powerpc-unknown
828842 os=-morphos
843 ;;
844 moxiebox)
845 basic_machine=moxie-unknown
846 os=-moxiebox
829847 ;;
830848 msdos)
831849 basic_machine=i386-pc
13591377 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
13601378 | -sym* | -kopensolaris* | -plan9* \
13611379 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1362 | -aos* | -aros* \
1380 | -aos* | -aros* | -cloudabi* | -sortix* \
13631381 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13641382 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13651383 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1366 | -bitrig* | -openbsd* | -solidbsd* \
1384 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
13671385 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13681386 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13691387 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13721390 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
13731391 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13741392 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1375 | -uxpv* | -beos* | -mpeix* | -udk* \
1393 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
13761394 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13771395 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13781396 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13791397 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13801398 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13811399 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1382 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
1400 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1401 | -onefs* | -tirtos*)
13831402 # Remember, each alternative MUST END IN *, to match a version number.
13841403 ;;
13851404 -qnx*)
15111530 ;;
15121531 -nacl*)
15131532 ;;
1533 -ios)
1534 ;;
15141535 -none)
15151536 ;;
15161537 *)
+1906
-1336
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for ui-utilcpp 1.8.3.
2 # Generated by GNU Autoconf 2.69 for ui-utilcpp 1.8.4.
33 #
44 #
55 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
586586 # Identity of this package.
587587 PACKAGE_NAME='ui-utilcpp'
588588 PACKAGE_TARNAME='ui-utilcpp'
589 PACKAGE_VERSION='1.8.3'
590 PACKAGE_STRING='ui-utilcpp 1.8.3'
589 PACKAGE_VERSION='1.8.4'
590 PACKAGE_STRING='ui-utilcpp 1.8.4'
591591 PACKAGE_BUGREPORT=''
592592 PACKAGE_URL=''
593593
640640 SINGLE_LIBS
641641 CCGNU2_CONFIG
642642 CPP
643 LT_SYS_LIBRARY_PATH
643644 OTOOL64
644645 OTOOL
645646 LIPO
743744 docdir
744745 oldincludedir
745746 includedir
747 runstatedir
746748 localstatedir
747749 sharedstatedir
748750 sysconfdir
773775 enable_static
774776 with_pic
775777 enable_fast_install
778 with_aix_soname
776779 with_gnu_ld
777780 with_sysroot
778781 enable_libtool_lock
791794 CXXCPP
792795 CC
793796 CFLAGS
797 LT_SYS_LIBRARY_PATH
794798 CPP'
795799
796800
830834 sysconfdir='${prefix}/etc'
831835 sharedstatedir='${prefix}/com'
832836 localstatedir='${prefix}/var'
837 runstatedir='${localstatedir}/run'
833838 includedir='${prefix}/include'
834839 oldincludedir='/usr/include'
835840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
10821087 | -silent | --silent | --silen | --sile | --sil)
10831088 silent=yes ;;
10841089
1090 -runstatedir | --runstatedir | --runstatedi | --runstated \
1091 | --runstate | --runstat | --runsta | --runst | --runs \
1092 | --run | --ru | --r)
1093 ac_prev=runstatedir ;;
1094 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1095 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1096 | --run=* | --ru=* | --r=*)
1097 runstatedir=$ac_optarg ;;
1098
10851099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10861100 ac_prev=sbindir ;;
10871101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12191233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12201234 datadir sysconfdir sharedstatedir localstatedir includedir \
12211235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1236 libdir localedir mandir runstatedir
12231237 do
12241238 eval ac_val=\$$ac_var
12251239 # Remove trailing slashes.
13321346 # Omit some internal or obsolete options to make the list less imposing.
13331347 # This message is too long to be a string in the A/UX 3.1 sh.
13341348 cat <<_ACEOF
1335 \`configure' configures ui-utilcpp 1.8.3 to adapt to many kinds of systems.
1349 \`configure' configures ui-utilcpp 1.8.4 to adapt to many kinds of systems.
13361350
13371351 Usage: $0 [OPTION]... [VAR=VALUE]...
13381352
13721386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13731387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13741388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
13751390 --libdir=DIR object code libraries [EPREFIX/lib]
13761391 --includedir=DIR C header files [PREFIX/include]
13771392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
14021417
14031418 if test -n "$ac_init_help"; then
14041419 case $ac_init_help in
1405 short | recursive ) echo "Configuration of ui-utilcpp 1.8.3:";;
1420 short | recursive ) echo "Configuration of ui-utilcpp 1.8.4:";;
14061421 esac
14071422 cat <<\_ACEOF
14081423
14321447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
14331448 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14341449 both]
1450 --with-aix-soname=aix|svr4|both
1451 shared library versioning (aka "SONAME") variant to
1452 provide on AIX, [default=aix].
14351453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-sysroot=DIR Search for dependent libraries within DIR
1437 (or the compiler's sysroot if not specified).
1454 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1455 compiler's sysroot if not specified).
14381456
14391457 Some influential environment variables:
14401458 CXX C++ compiler command
14471465 CXXCPP C++ preprocessor
14481466 CC C compiler command
14491467 CFLAGS C compiler flags
1468 LT_SYS_LIBRARY_PATH
1469 User-defined run-time library search path.
14501470 CPP C preprocessor
14511471
14521472 Use these variables to override the choices made by `configure' or to help
15151535 test -n "$ac_init_help" && exit $ac_status
15161536 if $ac_init_version; then
15171537 cat <<\_ACEOF
1518 ui-utilcpp configure 1.8.3
1538 ui-utilcpp configure 1.8.4
15191539 generated by GNU Autoconf 2.69
15201540
15211541 Copyright (C) 2012 Free Software Foundation, Inc.
21562176 This file contains any messages produced by compilers while
21572177 running configure, to aid debugging if configure makes a mistake.
21582178
2159 It was created by ui-utilcpp $as_me 1.8.3, which was
2179 It was created by ui-utilcpp $as_me 1.8.4, which was
21602180 generated by GNU Autoconf 2.69. Invocation command line was
21612181
21622182 $ $0 $@
25052525
25062526
25072527
2508 am__api_version='1.14'
2528 am__api_version='1.15'
25092529
25102530 ac_aux_dir=
25112531 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
27062726 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
27072727 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
27082728
2709 # expand $ac_aux_dir to an absolute path
2710 am_aux_dir=`cd $ac_aux_dir && pwd`
2729 # Expand $ac_aux_dir to an absolute path.
2730 am_aux_dir=`cd "$ac_aux_dir" && pwd`
27112731
27122732 if test x"${MISSING+set}" != xset; then
27132733 case $am_aux_dir in
27262746 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
27272747 fi
27282748
2729 if test x"${install_sh}" != xset; then
2749 if test x"${install_sh+set}" != xset; then
27302750 case $am_aux_dir in
27312751 *\ * | *\ *)
27322752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
30233043
30243044 # Define the identity of the package.
30253045 PACKAGE='ui-utilcpp'
3026 VERSION='1.8.3'
3046 VERSION='1.8.4'
30273047
30283048
30293049 cat >>confdefs.h <<_ACEOF
30573077 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
30583078 mkdir_p='$(MKDIR_P)'
30593079
3060 # We need awk for the "check" target. The system "awk" is bad on
3061 # some platforms.
3080 # We need awk for the "check" target (and possibly the TAP driver). The
3081 # system "awk" is bad on some platforms.
30623082 # Always define AMTAR for backward compatibility. Yes, it's still used
30633083 # in the wild :-( We should find a proper way to deprecate it ...
30643084 AMTAR='$${TAR-tar}'
32863306
32873307 This is intended to be used by automatic version checks of build systems.
32883308 .SH AUTHOR
3289 Produced automatically by ui-auto for ${PACKAGE_NAME} on `date --rfc-822`.
32903309 EOF
3310 if test -n "${SOURCE_DATE_EPOCH}"; then \
3311 echo "Produced automatically by ui-auto for ${PACKAGE_NAME} on `date --utc --rfc-822 --date="@${SOURCE_DATE_EPOCH}"`." >>${S_PATH}.1
3312 else \
3313 echo "Produced automatically by ui-auto for ${PACKAGE_NAME} on `date --rfc-822`." >>${S_PATH}.1
3314 fi
32913315
32923316
32933317 echo -n "
35013525 ui-doxygen-install: ui-doxygen
35023526 install -d \$(DESTDIR)\$(docdir) && \
35033527 chmod -R u=rwx,g=rx,o=rx \$(DESTDIR)\$(docdir) && \
3504 cp -a autodoc/* \$(DESTDIR)\$(docdir)
3528 for d in ${UI_DOXYGEN_TARGETS}; do \
3529 cp -a autodoc/\$\${d} \$(DESTDIR)\$(docdir) 2>/dev/null || true ; \
3530 done
35053531
35063532 ui-doxygen-uninstall:
35073533 for d in ${UI_DOXYGEN_TARGETS}; do \
44254451
44264452
44274453
4428 macro_version='2.4.2'
4429 macro_revision='1.3337'
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443 ltmain="$ac_aux_dir/ltmain.sh"
4454 macro_version='2.4.6'
4455 macro_revision='2.4.6'
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469 ltmain=$ac_aux_dir/ltmain.sh
44444470
44454471 # Make sure we can run config.sub.
44464472 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
45604586 $ECHO ""
45614587 }
45624588
4563 case "$ECHO" in
4589 case $ECHO in
45644590 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
45654591 $as_echo "printf" >&6; } ;;
45664592 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
56095635
56105636 # Check whether --with-gnu-ld was given.
56115637 if test "${with_gnu_ld+set}" = set; then :
5612 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5638 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
56135639 else
56145640 with_gnu_ld=no
56155641 fi
56165642
56175643 ac_prog=ld
5618 if test "$GCC" = yes; then
5644 if test yes = "$GCC"; then
56195645 # Check if gcc -print-prog-name=ld gives a path.
56205646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
56215647 $as_echo_n "checking for ld used by $CC... " >&6; }
56225648 case $host in
56235649 *-*-mingw*)
5624 # gcc leaves a trailing carriage return which upsets mingw
5650 # gcc leaves a trailing carriage return, which upsets mingw
56255651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
56265652 *)
56275653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
56355661 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
56365662 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
56375663 done
5638 test -z "$LD" && LD="$ac_prog"
5664 test -z "$LD" && LD=$ac_prog
56395665 ;;
56405666 "")
56415667 # If it fails, then pretend we aren't using GCC.
56465672 with_gnu_ld=unknown
56475673 ;;
56485674 esac
5649 elif test "$with_gnu_ld" = yes; then
5675 elif test yes = "$with_gnu_ld"; then
56505676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
56515677 $as_echo_n "checking for GNU ld... " >&6; }
56525678 else
56575683 $as_echo_n "(cached) " >&6
56585684 else
56595685 if test -z "$LD"; then
5660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5686 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
56615687 for ac_dir in $PATH; do
5662 IFS="$lt_save_ifs"
5688 IFS=$lt_save_ifs
56635689 test -z "$ac_dir" && ac_dir=.
56645690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5665 lt_cv_path_LD="$ac_dir/$ac_prog"
5691 lt_cv_path_LD=$ac_dir/$ac_prog
56665692 # Check to see if the program is GNU ld. I'd rather use --version,
56675693 # but apparently some variants of GNU ld only accept -v.
56685694 # Break only if it was the GNU/non-GNU ld that we prefer.
56695695 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
56705696 *GNU* | *'with BFD'*)
5671 test "$with_gnu_ld" != no && break
5697 test no != "$with_gnu_ld" && break
56725698 ;;
56735699 *)
5674 test "$with_gnu_ld" != yes && break
5700 test yes != "$with_gnu_ld" && break
56755701 ;;
56765702 esac
56775703 fi
56785704 done
5679 IFS="$lt_save_ifs"
5680 else
5681 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5682 fi
5683 fi
5684
5685 LD="$lt_cv_path_LD"
5705 IFS=$lt_save_ifs
5706 else
5707 lt_cv_path_LD=$LD # Let the user override the test with a path.
5708 fi
5709 fi
5710
5711 LD=$lt_cv_path_LD
56865712 if test -n "$LD"; then
56875713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
56885714 $as_echo "$LD" >&6; }
57255751 else
57265752 if test -n "$NM"; then
57275753 # Let the user override the test.
5728 lt_cv_path_NM="$NM"
5729 else
5730 lt_nm_to_check="${ac_tool_prefix}nm"
5754 lt_cv_path_NM=$NM
5755 else
5756 lt_nm_to_check=${ac_tool_prefix}nm
57315757 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
57325758 lt_nm_to_check="$lt_nm_to_check nm"
57335759 fi
57345760 for lt_tmp_nm in $lt_nm_to_check; do
5735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5761 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
57365762 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5737 IFS="$lt_save_ifs"
5763 IFS=$lt_save_ifs
57385764 test -z "$ac_dir" && ac_dir=.
5739 tmp_nm="$ac_dir/$lt_tmp_nm"
5740 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5765 tmp_nm=$ac_dir/$lt_tmp_nm
5766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
57415767 # Check to see if the nm accepts a BSD-compat flag.
5742 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5768 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
57435769 # nm: unknown option "B" ignored
57445770 # Tru64's nm complains that /dev/null is an invalid object file
5745 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5746 */dev/null* | *'Invalid file or object type'*)
5771 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5772 case $build_os in
5773 mingw*) lt_bad_file=conftest.nm/nofile ;;
5774 *) lt_bad_file=/dev/null ;;
5775 esac
5776 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5777 *$lt_bad_file* | *'Invalid file or object type'*)
57475778 lt_cv_path_NM="$tmp_nm -B"
5748 break
5779 break 2
57495780 ;;
57505781 *)
57515782 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
57525783 */dev/null*)
57535784 lt_cv_path_NM="$tmp_nm -p"
5754 break
5785 break 2
57555786 ;;
57565787 *)
57575788 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
57625793 esac
57635794 fi
57645795 done
5765 IFS="$lt_save_ifs"
5796 IFS=$lt_save_ifs
57665797 done
57675798 : ${lt_cv_path_NM=no}
57685799 fi
57695800 fi
57705801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
57715802 $as_echo "$lt_cv_path_NM" >&6; }
5772 if test "$lt_cv_path_NM" != "no"; then
5773 NM="$lt_cv_path_NM"
5803 if test no != "$lt_cv_path_NM"; then
5804 NM=$lt_cv_path_NM
57745805 else
57755806 # Didn't find any BSD compatible name lister, look for dumpbin.
57765807 if test -n "$DUMPBIN"; then :
58765907 fi
58775908 fi
58785909
5879 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5910 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
58805911 *COFF*)
5881 DUMPBIN="$DUMPBIN -symbols"
5912 DUMPBIN="$DUMPBIN -symbols -headers"
58825913 ;;
58835914 *)
58845915 DUMPBIN=:
58865917 esac
58875918 fi
58885919
5889 if test "$DUMPBIN" != ":"; then
5890 NM="$DUMPBIN"
5920 if test : != "$DUMPBIN"; then
5921 NM=$DUMPBIN
58915922 fi
58925923 fi
58935924 test -z "$NM" && NM=nm
59275958 $as_echo_n "(cached) " >&6
59285959 else
59295960 i=0
5930 teststring="ABCD"
5961 teststring=ABCD
59315962
59325963 case $build_os in
59335964 msdosdjgpp*)
59675998 lt_cv_sys_max_cmd_len=8192;
59685999 ;;
59696000
5970 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6001 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
59716002 # This has been around since 386BSD, at least. Likely further.
59726003 if test -x /sbin/sysctl; then
59736004 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
60186049 *)
60196050 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
60206051 if test -n "$lt_cv_sys_max_cmd_len" && \
6021 test undefined != "$lt_cv_sys_max_cmd_len"; then
6052 test undefined != "$lt_cv_sys_max_cmd_len"; then
60226053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
60236054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
60246055 else
60256056 # Make teststring a little bigger before we do anything with it.
60266057 # a 1K string should be a reasonable start.
6027 for i in 1 2 3 4 5 6 7 8 ; do
6058 for i in 1 2 3 4 5 6 7 8; do
60286059 teststring=$teststring$teststring
60296060 done
60306061 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
60316062 # If test is not a shell built-in, we'll probably end up computing a
60326063 # maximum length that is only half of the actual maximum length, but
60336064 # we can't tell.
6034 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6065 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
60356066 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6036 test $i != 17 # 1/2 MB should be enough
6067 test 17 != "$i" # 1/2 MB should be enough
60376068 do
60386069 i=`expr $i + 1`
60396070 teststring=$teststring$teststring
60516082
60526083 fi
60536084
6054 if test -n $lt_cv_sys_max_cmd_len ; then
6085 if test -n "$lt_cv_sys_max_cmd_len"; then
60556086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
60566087 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
60576088 else
60686099 : ${CP="cp -f"}
60696100 : ${MV="mv -f"}
60706101 : ${RM="rm -f"}
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6073 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6074 # Try some XSI features
6075 xsi_shell=no
6076 ( _lt_dummy="a/b/c"
6077 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6078 = c,a/b,b/c, \
6079 && eval 'test $(( 1 + 1 )) -eq 2 \
6080 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6081 && xsi_shell=yes
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6083 $as_echo "$xsi_shell" >&6; }
6084
6085
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6087 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6088 lt_shell_append=no
6089 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6090 >/dev/null 2>&1 \
6091 && lt_shell_append=yes
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6093 $as_echo "$lt_shell_append" >&6; }
6094
60956102
60966103 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60976104 lt_unset=unset
62156222 reload_cmds='$LD$reload_flag -o $output$reload_objs'
62166223 case $host_os in
62176224 cygwin* | mingw* | pw32* | cegcc*)
6218 if test "$GCC" != yes; then
6225 if test yes != "$GCC"; then
62196226 reload_cmds=false
62206227 fi
62216228 ;;
62226229 darwin*)
6223 if test "$GCC" = yes; then
6224 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6230 if test yes = "$GCC"; then
6231 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
62256232 else
62266233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
62276234 fi
63496356 # Need to set the preceding variable on all platforms that support
63506357 # interlibrary dependencies.
63516358 # 'none' -- dependencies not supported.
6352 # `unknown' -- same as none, but documents that we really don't know.
6359 # 'unknown' -- same as none, but documents that we really don't know.
63536360 # 'pass_all' -- all dependencies passed with no checks.
63546361 # 'test_compile' -- check by making test program.
63556362 # 'file_magic [[regex]]' -- check by looking for files in library path
6356 # which responds to the $file_magic_cmd with a given extended regex.
6357 # If you have `file' or equivalent on your system and you're not sure
6358 # whether `pass_all' will *always* work, you probably want this one.
6363 # that responds to the $file_magic_cmd with a given extended regex.
6364 # If you have 'file' or equivalent on your system and you're not sure
6365 # whether 'pass_all' will *always* work, you probably want this one.
63596366
63606367 case $host_os in
63616368 aix[4-9]*)
63826389 # Base MSYS/MinGW do not provide the 'file' command needed by
63836390 # func_win32_libid shell function, so use a weaker test based on 'objdump',
63846391 # unless we find 'file', for example because we are cross-compiling.
6385 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6386 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6392 if ( file / ) >/dev/null 2>&1; then
63876393 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
63886394 lt_cv_file_magic_cmd='func_win32_libid'
63896395 else
64796485 lt_cv_deplibs_check_method=pass_all
64806486 ;;
64816487
6482 openbsd*)
6483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6488 openbsd* | bitrig*)
6489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
64846490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
64856491 else
64866492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
65336539 tpf*)
65346540 lt_cv_deplibs_check_method=pass_all
65356541 ;;
6542 os2*)
6543 lt_cv_deplibs_check_method=pass_all
6544 ;;
65366545 esac
65376546
65386547 fi
66906699
66916700 case $host_os in
66926701 cygwin* | mingw* | pw32* | cegcc*)
6693 # two different shell functions defined in ltmain.sh
6694 # decide which to use based on capabilities of $DLLTOOL
6702 # two different shell functions defined in ltmain.sh;
6703 # decide which one to use based on capabilities of $DLLTOOL
66956704 case `$DLLTOOL --help 2>&1` in
66966705 *--identify-strict*)
66976706 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
67036712 ;;
67046713 *)
67056714 # fallback: assume linklib IS sharedlib
6706 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6715 lt_cv_sharedlib_from_linklib_cmd=$ECHO
67076716 ;;
67086717 esac
67096718
68586867 ac_status=$?
68596868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68606869 test $ac_status = 0; }
6861 if test "$ac_status" -eq 0; then
6870 if test 0 -eq "$ac_status"; then
68626871 # Ensure the archiver fails upon bogus file names.
68636872 rm -f conftest.$ac_objext libconftest.a
68646873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
68666875 ac_status=$?
68676876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68686877 test $ac_status = 0; }
6869 if test "$ac_status" -ne 0; then
6878 if test 0 -ne "$ac_status"; then
68706879 lt_cv_ar_at_file=@
68716880 fi
68726881 fi
68796888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
68806889 $as_echo "$lt_cv_ar_at_file" >&6; }
68816890
6882 if test "x$lt_cv_ar_at_file" = xno; then
6891 if test no = "$lt_cv_ar_at_file"; then
68836892 archiver_list_spec=
68846893 else
68856894 archiver_list_spec=$lt_cv_ar_at_file
70967105
70977106 if test -n "$RANLIB"; then
70987107 case $host_os in
7099 openbsd*)
7108 bitrig* | openbsd*)
71007109 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
71017110 ;;
71027111 *)
71867195 symcode='[ABCDGISTW]'
71877196 ;;
71887197 hpux*)
7189 if test "$host_cpu" = ia64; then
7198 if test ia64 = "$host_cpu"; then
71907199 symcode='[ABCDEGRST]'
71917200 fi
71927201 ;;
72197228 symcode='[ABCDGIRSTW]' ;;
72207229 esac
72217230
7231 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7232 # Gets list of data symbols to import.
7233 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7234 # Adjust the below global symbol transforms to fixup imported variables.
7235 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7236 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7237 lt_c_name_lib_hook="\
7238 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7239 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7240 else
7241 # Disable hooks by default.
7242 lt_cv_sys_global_symbol_to_import=
7243 lt_cdecl_hook=
7244 lt_c_name_hook=
7245 lt_c_name_lib_hook=
7246 fi
7247
72227248 # Transform an extracted symbol line into a proper C declaration.
72237249 # Some systems (esp. on ia64) link data and code symbols differently,
72247250 # so use this general approach.
7225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7251 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7252 $lt_cdecl_hook\
7253 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7254 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
72267255
72277256 # Transform an extracted symbol line into symbol name and symbol address
7228 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7229 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'"
7257 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7258 $lt_c_name_hook\
7259 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7260 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7261
7262 # Transform an extracted symbol line into symbol name with lib prefix and
7263 # symbol address.
7264 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7265 $lt_c_name_lib_hook\
7266 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7267 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7268 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
72307269
72317270 # Handle CRLF in mingw tool chain
72327271 opt_cr=
72447283
72457284 # Write the raw and C identifiers.
72467285 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7247 # Fake it for dumpbin and say T for any non-static function
7248 # and D for any global variable.
7286 # Fake it for dumpbin and say T for any non-static function,
7287 # D for any global variable and I for any imported variable.
72497288 # Also find C++ and __fastcall symbols from MSVC++,
72507289 # which start with @ or ?.
72517290 lt_cv_sys_global_symbol_pipe="$AWK '"\
72527291 " {last_section=section; section=\$ 3};"\
72537292 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
72547293 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7294 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7295 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7296 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
72557297 " \$ 0!~/External *\|/{next};"\
72567298 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
72577299 " {if(hide[section]) next};"\
7258 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7259 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7260 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7261 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7300 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7301 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7302 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7303 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
72627304 " ' prfx=^$ac_symprfx"
72637305 else
72647306 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
73067348 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
73077349 cat <<_LT_EOF > conftest.$ac_ext
73087350 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7309 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7310 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7351 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7352 /* DATA imports from DLLs on WIN32 can't be const, because runtime
73117353 relocations are performed -- see ld's documentation on pseudo-relocs. */
73127354 # define LT_DLSYM_CONST
7313 #elif defined(__osf__)
7355 #elif defined __osf__
73147356 /* This system does not cope well with relocations in const data. */
73157357 # define LT_DLSYM_CONST
73167358 #else
73367378 {
73377379 { "@PROGRAM@", (void *) 0 },
73387380 _LT_EOF
7339 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7381 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
73407382 cat <<\_LT_EOF >> conftest.$ac_ext
73417383 {0, (void *) 0}
73427384 };
73567398 mv conftest.$ac_objext conftstm.$ac_objext
73577399 lt_globsym_save_LIBS=$LIBS
73587400 lt_globsym_save_CFLAGS=$CFLAGS
7359 LIBS="conftstm.$ac_objext"
7401 LIBS=conftstm.$ac_objext
73607402 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
73617403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
73627404 (eval $ac_link) 2>&5
73637405 ac_status=$?
73647406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7407 test $ac_status = 0; } && test -s conftest$ac_exeext; then
73667408 pipe_works=yes
73677409 fi
73687410 LIBS=$lt_globsym_save_LIBS
73837425 rm -rf conftest* conftst*
73847426
73857427 # Do not use the global_symbol_pipe unless it works.
7386 if test "$pipe_works" = yes; then
7428 if test yes = "$pipe_works"; then
73877429 break
73887430 else
73897431 lt_cv_sys_global_symbol_pipe=
74367478
74377479
74387480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
74397491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
74407492 $as_echo_n "checking for sysroot... " >&6; }
74417493
74487500
74497501
74507502 lt_sysroot=
7451 case ${with_sysroot} in #(
7503 case $with_sysroot in #(
74527504 yes)
7453 if test "$GCC" = yes; then
7505 if test yes = "$GCC"; then
74547506 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
74557507 fi
74567508 ;; #(
74607512 no|'')
74617513 ;; #(
74627514 *)
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7464 $as_echo "${with_sysroot}" >&6; }
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7516 $as_echo "$with_sysroot" >&6; }
74657517 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
74667518 ;;
74677519 esac
74737525
74747526
74757527
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7529 $as_echo_n "checking for a working dd... " >&6; }
7530 if ${ac_cv_path_lt_DD+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 printf 0123456789abcdef0123456789abcdef >conftest.i
7534 cat conftest.i conftest.i >conftest2.i
7535 : ${lt_DD:=$DD}
7536 if test -z "$lt_DD"; then
7537 ac_path_lt_DD_found=false
7538 # Loop through the user's path and test for each of PROGNAME-LIST
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_prog in dd; do
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7547 as_fn_executable_p "$ac_path_lt_DD" || continue
7548 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7549 cmp -s conftest.i conftest.out \
7550 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7551 fi
7552 $ac_path_lt_DD_found && break 3
7553 done
7554 done
7555 done
7556 IFS=$as_save_IFS
7557 if test -z "$ac_cv_path_lt_DD"; then
7558 :
7559 fi
7560 else
7561 ac_cv_path_lt_DD=$lt_DD
7562 fi
7563
7564 rm -f conftest.i conftest2.i conftest.out
7565 fi
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7567 $as_echo "$ac_cv_path_lt_DD" >&6; }
7568
7569
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7571 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7572 if ${lt_cv_truncate_bin+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 printf 0123456789abcdef0123456789abcdef >conftest.i
7576 cat conftest.i conftest.i >conftest2.i
7577 lt_cv_truncate_bin=
7578 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7579 cmp -s conftest.i conftest.out \
7580 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7581 fi
7582 rm -f conftest.i conftest2.i conftest.out
7583 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7584 fi
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7586 $as_echo "$lt_cv_truncate_bin" >&6; }
7587
7588
7589
7590
7591
7592
7593
7594 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7595 func_cc_basename ()
7596 {
7597 for cc_temp in $*""; do
7598 case $cc_temp in
7599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7601 \-*) ;;
7602 *) break;;
7603 esac
7604 done
7605 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7606 }
7607
74767608 # Check whether --enable-libtool-lock was given.
74777609 if test "${enable_libtool_lock+set}" = set; then :
74787610 enableval=$enable_libtool_lock;
74797611 fi
74807612
7481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7613 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
74827614
74837615 # Some flags need to be propagated to the compiler or linker for good
74847616 # libtool support.
74857617 case $host in
74867618 ia64-*-hpux*)
7487 # Find out which ABI we are using.
7619 # Find out what ABI is being produced by ac_compile, and set mode
7620 # options accordingly.
74887621 echo 'int i;' > conftest.$ac_ext
74897622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
74907623 (eval $ac_compile) 2>&5
74937626 test $ac_status = 0; }; then
74947627 case `/usr/bin/file conftest.$ac_objext` in
74957628 *ELF-32*)
7496 HPUX_IA64_MODE="32"
7629 HPUX_IA64_MODE=32
74977630 ;;
74987631 *ELF-64*)
7499 HPUX_IA64_MODE="64"
7632 HPUX_IA64_MODE=64
75007633 ;;
75017634 esac
75027635 fi
75037636 rm -rf conftest*
75047637 ;;
75057638 *-*-irix6*)
7506 # Find out which ABI we are using.
7639 # Find out what ABI is being produced by ac_compile, and set linker
7640 # options accordingly.
75077641 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
75087642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
75097643 (eval $ac_compile) 2>&5
75107644 ac_status=$?
75117645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75127646 test $ac_status = 0; }; then
7513 if test "$lt_cv_prog_gnu_ld" = yes; then
7647 if test yes = "$lt_cv_prog_gnu_ld"; then
75147648 case `/usr/bin/file conftest.$ac_objext` in
75157649 *32-bit*)
75167650 LD="${LD-ld} -melf32bsmip"
75397673 rm -rf conftest*
75407674 ;;
75417675
7676 mips64*-*linux*)
7677 # Find out what ABI is being produced by ac_compile, and set linker
7678 # options accordingly.
7679 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7681 (eval $ac_compile) 2>&5
7682 ac_status=$?
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; then
7685 emul=elf
7686 case `/usr/bin/file conftest.$ac_objext` in
7687 *32-bit*)
7688 emul="${emul}32"
7689 ;;
7690 *64-bit*)
7691 emul="${emul}64"
7692 ;;
7693 esac
7694 case `/usr/bin/file conftest.$ac_objext` in
7695 *MSB*)
7696 emul="${emul}btsmip"
7697 ;;
7698 *LSB*)
7699 emul="${emul}ltsmip"
7700 ;;
7701 esac
7702 case `/usr/bin/file conftest.$ac_objext` in
7703 *N32*)
7704 emul="${emul}n32"
7705 ;;
7706 esac
7707 LD="${LD-ld} -m $emul"
7708 fi
7709 rm -rf conftest*
7710 ;;
7711
75427712 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
75437713 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7544 # Find out which ABI we are using.
7714 # Find out what ABI is being produced by ac_compile, and set linker
7715 # options accordingly. Note that the listed cases only cover the
7716 # situations where additional linker options are needed (such as when
7717 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7718 # vice versa); the common cases where no linker options are needed do
7719 # not appear in the list.
75457720 echo 'int i;' > conftest.$ac_ext
75467721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
75477722 (eval $ac_compile) 2>&5
75647739 ;;
75657740 esac
75667741 ;;
7567 powerpc64le-*)
7742 powerpc64le-*linux*)
75687743 LD="${LD-ld} -m elf32lppclinux"
75697744 ;;
7570 powerpc64-*)
7745 powerpc64-*linux*)
75717746 LD="${LD-ld} -m elf32ppclinux"
75727747 ;;
75737748 s390x-*linux*)
75867761 x86_64-*linux*)
75877762 LD="${LD-ld} -m elf_x86_64"
75887763 ;;
7589 powerpcle-*)
7764 powerpcle-*linux*)
75907765 LD="${LD-ld} -m elf64lppc"
75917766 ;;
7592 powerpc-*)
7767 powerpc-*linux*)
75937768 LD="${LD-ld} -m elf64ppc"
75947769 ;;
75957770 s390*-*linux*|s390*-*tpf*)
76077782
76087783 *-*-sco3.2v5*)
76097784 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7610 SAVE_CFLAGS="$CFLAGS"
7785 SAVE_CFLAGS=$CFLAGS
76117786 CFLAGS="$CFLAGS -belf"
76127787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
76137788 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
76477822 fi
76487823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
76497824 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7650 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7825 if test yes != "$lt_cv_cc_needs_belf"; then
76517826 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7652 CFLAGS="$SAVE_CFLAGS"
7827 CFLAGS=$SAVE_CFLAGS
76537828 fi
76547829 ;;
76557830 *-*solaris*)
7656 # Find out which ABI we are using.
7831 # Find out what ABI is being produced by ac_compile, and set linker
7832 # options accordingly.
76577833 echo 'int i;' > conftest.$ac_ext
76587834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
76597835 (eval $ac_compile) 2>&5
76657841 case $lt_cv_prog_gnu_ld in
76667842 yes*)
76677843 case $host in
7668 i?86-*-solaris*)
7844 i?86-*-solaris*|x86_64-*-solaris*)
76697845 LD="${LD-ld} -m elf_x86_64"
76707846 ;;
76717847 sparc*-*-solaris*)
76747850 esac
76757851 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
76767852 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7677 LD="${LD-ld}_sol2"
7853 LD=${LD-ld}_sol2
76787854 fi
76797855 ;;
76807856 *)
76907866 ;;
76917867 esac
76927868
7693 need_locks="$enable_libtool_lock"
7869 need_locks=$enable_libtool_lock
76947870
76957871 if test -n "$ac_tool_prefix"; then
76967872 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
78017977 fi
78027978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
78037979 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7804 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7980 if test yes != "$lt_cv_path_mainfest_tool"; then
78057981 MANIFEST_TOOL=:
78067982 fi
78077983
83048480 $as_echo_n "(cached) " >&6
83058481 else
83068482 lt_cv_apple_cc_single_mod=no
8307 if test -z "${LT_MULTI_MODULE}"; then
8483 if test -z "$LT_MULTI_MODULE"; then
83088484 # By default we will add the -single_module flag. You can override
83098485 # by either setting the environment variable LT_MULTI_MODULE
83108486 # non-empty at configure time, or by adding -multi_module to the
83228498 cat conftest.err >&5
83238499 # Otherwise, if the output was created with a 0 exit code from
83248500 # the compiler, it worked.
8325 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8501 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
83268502 lt_cv_apple_cc_single_mod=yes
83278503 else
83288504 cat conftest.err >&5
83618537 fi
83628538 rm -f core conftest.err conftest.$ac_objext \
83638539 conftest$ac_exeext conftest.$ac_ext
8364 LDFLAGS="$save_LDFLAGS"
8540 LDFLAGS=$save_LDFLAGS
83658541
83668542 fi
83678543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
83908566 _lt_result=$?
83918567 if test -s conftest.err && $GREP force_load conftest.err; then
83928568 cat conftest.err >&5
8393 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8569 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
83948570 lt_cv_ld_force_load=yes
83958571 else
83968572 cat conftest.err >&5
84038579 $as_echo "$lt_cv_ld_force_load" >&6; }
84048580 case $host_os in
84058581 rhapsody* | darwin1.[012])
8406 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8582 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
84078583 darwin1.*)
8408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8584 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
84098585 darwin*) # darwin 5.x on
84108586 # if running on 10.5 or later, the deployment target defaults
84118587 # to the OS version, if on x86, and 10.4, the deployment
84128588 # target defaults to 10.4. Don't you love it?
84138589 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
84148590 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8415 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8416 10.[012]*)
8417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8591 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8592 10.[012][,.]*)
8593 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
84188594 10.*)
8419 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8595 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
84208596 esac
84218597 ;;
84228598 esac
8423 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8599 if test yes = "$lt_cv_apple_cc_single_mod"; then
84248600 _lt_dar_single_mod='$single_module'
84258601 fi
8426 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8427 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8602 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8603 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
84288604 else
8429 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8605 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
84308606 fi
8431 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8607 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
84328608 _lt_dsymutil='~$DSYMUTIL $lib || :'
84338609 else
84348610 _lt_dsymutil=
84358611 fi
84368612 ;;
84378613 esac
8614
8615 # func_munge_path_list VARIABLE PATH
8616 # -----------------------------------
8617 # VARIABLE is name of variable containing _space_ separated list of
8618 # directories to be munged by the contents of PATH, which is string
8619 # having a format:
8620 # "DIR[:DIR]:"
8621 # string "DIR[ DIR]" will be prepended to VARIABLE
8622 # ":DIR[:DIR]"
8623 # string "DIR[ DIR]" will be appended to VARIABLE
8624 # "DIRP[:DIRP]::[DIRA:]DIRA"
8625 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8626 # "DIRA[ DIRA]" will be appended to VARIABLE
8627 # "DIR[:DIR]"
8628 # VARIABLE will be replaced by "DIR[ DIR]"
8629 func_munge_path_list ()
8630 {
8631 case x$2 in
8632 x)
8633 ;;
8634 *:)
8635 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8636 ;;
8637 x:*)
8638 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8639 ;;
8640 *::*)
8641 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8642 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8643 ;;
8644 *)
8645 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8646 ;;
8647 esac
8648 }
84388649
84398650 ac_ext=c
84408651 ac_cpp='$CPP $CPPFLAGS'
87218932
87228933 func_stripname_cnf ()
87238934 {
8724 case ${2} in
8725 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8726 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8935 case $2 in
8936 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8937 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
87278938 esac
87288939 } # func_stripname_cnf
87298940
87508961 *)
87518962 enable_shared=no
87528963 # Look at the argument we got. We use all the common list separators.
8753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8964 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
87548965 for pkg in $enableval; do
8755 IFS="$lt_save_ifs"
8966 IFS=$lt_save_ifs
87568967 if test "X$pkg" = "X$p"; then
87578968 enable_shared=yes
87588969 fi
87598970 done
8760 IFS="$lt_save_ifs"
8971 IFS=$lt_save_ifs
87618972 ;;
87628973 esac
87638974 else
87818992 *)
87828993 enable_static=no
87838994 # Look at the argument we got. We use all the common list separators.
8784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8995 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
87858996 for pkg in $enableval; do
8786 IFS="$lt_save_ifs"
8997 IFS=$lt_save_ifs
87878998 if test "X$pkg" = "X$p"; then
87888999 enable_static=yes
87899000 fi
87909001 done
8791 IFS="$lt_save_ifs"
9002 IFS=$lt_save_ifs
87929003 ;;
87939004 esac
87949005 else
88129023 *)
88139024 pic_mode=default
88149025 # Look at the argument we got. We use all the common list separators.
8815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9026 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
88169027 for lt_pkg in $withval; do
8817 IFS="$lt_save_ifs"
9028 IFS=$lt_save_ifs
88189029 if test "X$lt_pkg" = "X$lt_p"; then
88199030 pic_mode=yes
88209031 fi
88219032 done
8822 IFS="$lt_save_ifs"
9033 IFS=$lt_save_ifs
88239034 ;;
88249035 esac
88259036 else
88269037 pic_mode=default
88279038 fi
88289039
8829
8830 test -z "$pic_mode" && pic_mode=default
88319040
88329041
88339042
88449053 *)
88459054 enable_fast_install=no
88469055 # Look at the argument we got. We use all the common list separators.
8847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9056 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
88489057 for pkg in $enableval; do
8849 IFS="$lt_save_ifs"
9058 IFS=$lt_save_ifs
88509059 if test "X$pkg" = "X$p"; then
88519060 enable_fast_install=yes
88529061 fi
88539062 done
8854 IFS="$lt_save_ifs"
9063 IFS=$lt_save_ifs
88559064 ;;
88569065 esac
88579066 else
88659074
88669075
88679076
9077 shared_archive_member_spec=
9078 case $host,$enable_shared in
9079 power*-*-aix[5-9]*,yes)
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9081 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9082
9083 # Check whether --with-aix-soname was given.
9084 if test "${with_aix_soname+set}" = set; then :
9085 withval=$with_aix_soname; case $withval in
9086 aix|svr4|both)
9087 ;;
9088 *)
9089 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9090 ;;
9091 esac
9092 lt_cv_with_aix_soname=$with_aix_soname
9093 else
9094 if ${lt_cv_with_aix_soname+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 lt_cv_with_aix_soname=aix
9098 fi
9099
9100 with_aix_soname=$lt_cv_with_aix_soname
9101 fi
9102
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9104 $as_echo "$with_aix_soname" >&6; }
9105 if test aix != "$with_aix_soname"; then
9106 # For the AIX way of multilib, we name the shared archive member
9107 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9108 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9109 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9110 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9111 if test 64 = "${OBJECT_MODE-32}"; then
9112 shared_archive_member_spec=shr_64
9113 else
9114 shared_archive_member_spec=shr
9115 fi
9116 fi
9117 ;;
9118 *)
9119 with_aix_soname=aix
9120 ;;
9121 esac
9122
9123
9124
9125
9126
9127
9128
88689129
88699130
88709131
88719132 # This can be used to rebuild libtool when needed
8872 LIBTOOL_DEPS="$ltmain"
9133 LIBTOOL_DEPS=$ltmain
88739134
88749135 # Always use our own libtool.
88759136 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
89189179
89199180
89209181
8921 if test -n "${ZSH_VERSION+set}" ; then
9182 if test -n "${ZSH_VERSION+set}"; then
89229183 setopt NO_GLOB_SUBST
89239184 fi
89249185
89579218 # AIX sometimes has problems with the GCC collect2 program. For some
89589219 # reason, if we set the COLLECT_NAMES environment variable, the problems
89599220 # vanish in a puff of smoke.
8960 if test "X${COLLECT_NAMES+set}" != Xset; then
9221 if test set != "${COLLECT_NAMES+set}"; then
89619222 COLLECT_NAMES=
89629223 export COLLECT_NAMES
89639224 fi
89689229 ofile=libtool
89699230 can_build_shared=yes
89709231
8971 # All known linkers require a `.a' archive for static linking (except MSVC,
9232 # All known linkers require a '.a' archive for static linking (except MSVC,
89729233 # which needs '.lib').
89739234 libext=a
89749235
8975 with_gnu_ld="$lt_cv_prog_gnu_ld"
8976
8977 old_CC="$CC"
8978 old_CFLAGS="$CFLAGS"
9236 with_gnu_ld=$lt_cv_prog_gnu_ld
9237
9238 old_CC=$CC
9239 old_CFLAGS=$CFLAGS
89799240
89809241 # Set sane defaults for various variables
89819242 test -z "$CC" && CC=cc
89849245 test -z "$LD" && LD=ld
89859246 test -z "$ac_objext" && ac_objext=o
89869247
8987 for cc_temp in $compiler""; do
8988 case $cc_temp in
8989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8991 \-*) ;;
8992 *) break;;
8993 esac
8994 done
8995 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9248 func_cc_basename $compiler
9249 cc_basename=$func_cc_basename_result
89969250
89979251
89989252 # Only perform the check for file, if the check method requires it
90079261 else
90089262 case $MAGIC_CMD in
90099263 [\\/*] | ?:[\\/]*)
9010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9264 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
90119265 ;;
90129266 *)
9013 lt_save_MAGIC_CMD="$MAGIC_CMD"
9014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9267 lt_save_MAGIC_CMD=$MAGIC_CMD
9268 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
90159269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
90169270 for ac_dir in $ac_dummy; do
9017 IFS="$lt_save_ifs"
9271 IFS=$lt_save_ifs
90189272 test -z "$ac_dir" && ac_dir=.
9019 if test -f $ac_dir/${ac_tool_prefix}file; then
9020 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9273 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9274 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
90219275 if test -n "$file_magic_test_file"; then
90229276 case $deplibs_check_method in
90239277 "file_magic "*)
90249278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9279 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
90269280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
90279281 $EGREP "$file_magic_regex" > /dev/null; then
90289282 :
90459299 break
90469300 fi
90479301 done
9048 IFS="$lt_save_ifs"
9049 MAGIC_CMD="$lt_save_MAGIC_CMD"
9302 IFS=$lt_save_ifs
9303 MAGIC_CMD=$lt_save_MAGIC_CMD
90509304 ;;
90519305 esac
90529306 fi
90539307
9054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
90559309 if test -n "$MAGIC_CMD"; then
90569310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
90579311 $as_echo "$MAGIC_CMD" >&6; }
90739327 else
90749328 case $MAGIC_CMD in
90759329 [\\/*] | ?:[\\/]*)
9076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9330 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
90779331 ;;
90789332 *)
9079 lt_save_MAGIC_CMD="$MAGIC_CMD"
9080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9333 lt_save_MAGIC_CMD=$MAGIC_CMD
9334 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
90819335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
90829336 for ac_dir in $ac_dummy; do
9083 IFS="$lt_save_ifs"
9337 IFS=$lt_save_ifs
90849338 test -z "$ac_dir" && ac_dir=.
9085 if test -f $ac_dir/file; then
9086 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9339 if test -f "$ac_dir/file"; then
9340 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
90879341 if test -n "$file_magic_test_file"; then
90889342 case $deplibs_check_method in
90899343 "file_magic "*)
90909344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9345 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
90929346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
90939347 $EGREP "$file_magic_regex" > /dev/null; then
90949348 :
91119365 break
91129366 fi
91139367 done
9114 IFS="$lt_save_ifs"
9115 MAGIC_CMD="$lt_save_MAGIC_CMD"
9368 IFS=$lt_save_ifs
9369 MAGIC_CMD=$lt_save_MAGIC_CMD
91169370 ;;
91179371 esac
91189372 fi
91199373
9120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9374 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
91219375 if test -n "$MAGIC_CMD"; then
91229376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
91239377 $as_echo "$MAGIC_CMD" >&6; }
91389392
91399393 # Use C for the default configuration in the libtool script
91409394
9141 lt_save_CC="$CC"
9395 lt_save_CC=$CC
91429396 ac_ext=c
91439397 ac_cpp='$CPP $CPPFLAGS'
91449398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
91969450
91979451 lt_prog_compiler_no_builtin_flag=
91989452
9199 if test "$GCC" = yes; then
9453 if test yes = "$GCC"; then
92009454 case $cc_basename in
92019455 nvcc*)
92029456 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
92129466 lt_cv_prog_compiler_rtti_exceptions=no
92139467 ac_outfile=conftest.$ac_objext
92149468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9215 lt_compiler_flag="-fno-rtti -fno-exceptions"
9469 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
92169470 # Insert the option either (1) after the last *FLAGS variable, or
92179471 # (2) before a word containing "conftest.", or (3) at the end.
92189472 # Note that $ac_compile itself does not contain backslashes and begins
92429496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
92439497 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
92449498
9245 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9499 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
92469500 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
92479501 else
92489502 :
92609514 lt_prog_compiler_static=
92619515
92629516
9263 if test "$GCC" = yes; then
9517 if test yes = "$GCC"; then
92649518 lt_prog_compiler_wl='-Wl,'
92659519 lt_prog_compiler_static='-static'
92669520
92679521 case $host_os in
92689522 aix*)
92699523 # All AIX code is PIC.
9270 if test "$host_cpu" = ia64; then
9524 if test ia64 = "$host_cpu"; then
92719525 # AIX 5 now supports IA64 processor
92729526 lt_prog_compiler_static='-Bstatic'
92739527 fi
9528 lt_prog_compiler_pic='-fPIC'
92749529 ;;
92759530
92769531 amigaos*)
92819536 ;;
92829537 m68k)
92839538 # FIXME: we need at least 68020 code to build shared libraries, but
9284 # adding the `-m68020' flag to GCC prevents building anything better,
9285 # like `-m68040'.
9539 # adding the '-m68020' flag to GCC prevents building anything better,
9540 # like '-m68040'.
92869541 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
92879542 ;;
92889543 esac
92989553 # Although the cygwin gcc ignores -fPIC, still need this for old-style
92999554 # (--disable-auto-import) libraries
93009555 lt_prog_compiler_pic='-DDLL_EXPORT'
9556 case $host_os in
9557 os2*)
9558 lt_prog_compiler_static='$wl-static'
9559 ;;
9560 esac
93019561 ;;
93029562
93039563 darwin* | rhapsody*)
93689628 case $host_os in
93699629 aix*)
93709630 lt_prog_compiler_wl='-Wl,'
9371 if test "$host_cpu" = ia64; then
9631 if test ia64 = "$host_cpu"; then
93729632 # AIX 5 now supports IA64 processor
93739633 lt_prog_compiler_static='-Bstatic'
93749634 else
93769636 fi
93779637 ;;
93789638
9639 darwin* | rhapsody*)
9640 # PIC is the default on this platform
9641 # Common symbols not allowed in MH_DYLIB files
9642 lt_prog_compiler_pic='-fno-common'
9643 case $cc_basename in
9644 nagfor*)
9645 # NAG Fortran compiler
9646 lt_prog_compiler_wl='-Wl,-Wl,,'
9647 lt_prog_compiler_pic='-PIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 ;;
9650 esac
9651 ;;
9652
93799653 mingw* | cygwin* | pw32* | os2* | cegcc*)
93809654 # This hack is so that the source file can tell whether it is being
93819655 # built for inclusion in a dll (and should export symbols for example).
93829656 lt_prog_compiler_pic='-DDLL_EXPORT'
9657 case $host_os in
9658 os2*)
9659 lt_prog_compiler_static='$wl-static'
9660 ;;
9661 esac
93839662 ;;
93849663
93859664 hpux9* | hpux10* | hpux11*)
93959674 ;;
93969675 esac
93979676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9398 lt_prog_compiler_static='${wl}-a ${wl}archive'
9677 lt_prog_compiler_static='$wl-a ${wl}archive'
93999678 ;;
94009679
94019680 irix5* | irix6* | nonstopux*)
94069685
94079686 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
94089687 case $cc_basename in
9409 # old Intel for x86_64 which still supported -KPIC.
9688 # old Intel for x86_64, which still supported -KPIC.
94109689 ecc*)
94119690 lt_prog_compiler_wl='-Wl,'
94129691 lt_prog_compiler_pic='-KPIC'
94309709 lt_prog_compiler_wl='-Wl,-Wl,,'
94319710 lt_prog_compiler_pic='-PIC'
94329711 lt_prog_compiler_static='-Bstatic'
9712 ;;
9713 tcc*)
9714 # Fabrice Bellard et al's Tiny C Compiler
9715 lt_prog_compiler_wl='-Wl,'
9716 lt_prog_compiler_pic='-fPIC'
9717 lt_prog_compiler_static='-static'
94339718 ;;
94349719 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
94359720 # Portland Group compilers (*not* the Pentium gcc compiler,
95289813 ;;
95299814
95309815 sysv4*MP*)
9531 if test -d /usr/nec ;then
9816 if test -d /usr/nec; then
95329817 lt_prog_compiler_pic='-Kconform_pic'
95339818 lt_prog_compiler_static='-Bstatic'
95349819 fi
95579842 fi
95589843
95599844 case $host_os in
9560 # For platforms which do not support PIC, -DPIC is meaningless:
9845 # For platforms that do not support PIC, -DPIC is meaningless:
95619846 *djgpp*)
95629847 lt_prog_compiler_pic=
95639848 ;;
95899874 lt_cv_prog_compiler_pic_works=no
95909875 ac_outfile=conftest.$ac_objext
95919876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9877 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
95939878 # Insert the option either (1) after the last *FLAGS variable, or
95949879 # (2) before a word containing "conftest.", or (3) at the end.
95959880 # Note that $ac_compile itself does not contain backslashes and begins
96199904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
96209905 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
96219906
9622 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9907 if test yes = "$lt_cv_prog_compiler_pic_works"; then
96239908 case $lt_prog_compiler_pic in
96249909 "" | " "*) ;;
96259910 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
96519936 $as_echo_n "(cached) " >&6
96529937 else
96539938 lt_cv_prog_compiler_static_works=no
9654 save_LDFLAGS="$LDFLAGS"
9939 save_LDFLAGS=$LDFLAGS
96559940 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
96569941 echo "$lt_simple_link_test_code" > conftest.$ac_ext
96579942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
96709955 fi
96719956 fi
96729957 $RM -r conftest*
9673 LDFLAGS="$save_LDFLAGS"
9958 LDFLAGS=$save_LDFLAGS
96749959
96759960 fi
96769961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
96779962 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
96789963
9679 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9964 if test yes = "$lt_cv_prog_compiler_static_works"; then
96809965 :
96819966 else
96829967 lt_prog_compiler_static=
979610081
979710082
979810083
9799 hard_links="nottested"
9800 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10084 hard_links=nottested
10085 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
980110086 # do not overwrite the value of need_locks provided by the user
980210087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
980310088 $as_echo_n "checking if we can lock with hard links... " >&6; }
980910094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
981010095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
981110096 $as_echo "$hard_links" >&6; }
9812 if test "$hard_links" = no; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9814 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10097 if test no = "$hard_links"; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10099 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
981510100 need_locks=warn
981610101 fi
981710102 else
985410139 # included in the symbol list
985510140 include_expsyms=
985610141 # exclude_expsyms can be an extended regexp of symbols to exclude
9857 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9858 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9859 # as well as any symbol that contains `d'.
10142 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10143 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10144 # as well as any symbol that contains 'd'.
986010145 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
986110146 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
986210147 # platforms (ab)use it in PIC code, but their linkers get confused if
987110156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
987210157 # When not using gcc, we currently assume that we are using
987310158 # Microsoft Visual C++.
9874 if test "$GCC" != yes; then
10159 if test yes != "$GCC"; then
987510160 with_gnu_ld=no
987610161 fi
987710162 ;;
987910164 # we just hope/assume this is gcc and not c89 (= MSVC++)
988010165 with_gnu_ld=yes
988110166 ;;
9882 openbsd*)
10167 openbsd* | bitrig*)
988310168 with_gnu_ld=no
988410169 ;;
988510170 linux* | k*bsd*-gnu | gnu*)
989210177 # On some targets, GNU ld is compatible enough with the native linker
989310178 # that we're better off using the native interface for both.
989410179 lt_use_gnu_ld_interface=no
9895 if test "$with_gnu_ld" = yes; then
10180 if test yes = "$with_gnu_ld"; then
989610181 case $host_os in
989710182 aix*)
989810183 # The AIX port of GNU ld has always aspired to compatibility
991410199 esac
991510200 fi
991610201
9917 if test "$lt_use_gnu_ld_interface" = yes; then
10202 if test yes = "$lt_use_gnu_ld_interface"; then
991810203 # If archive_cmds runs LD, not CC, wlarc should be empty
9919 wlarc='${wl}'
10204 wlarc='$wl'
992010205
992110206 # Set some defaults for GNU ld with shared library support. These
992210207 # are reset later if shared libraries are not supported. Putting them
992310208 # here allows them to be overridden if necessary.
992410209 runpath_var=LD_RUN_PATH
9925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9926 export_dynamic_flag_spec='${wl}--export-dynamic'
10210 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10211 export_dynamic_flag_spec='$wl--export-dynamic'
992710212 # ancient GNU ld didn't support --whole-archive et. al.
992810213 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9929 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10214 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
993010215 else
993110216 whole_archive_flag_spec=
993210217 fi
993310218 supports_anon_versioning=no
9934 case `$LD -v 2>&1` in
10219 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
993510220 *GNU\ gold*) supports_anon_versioning=yes ;;
993610221 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
993710222 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
994410229 case $host_os in
994510230 aix[3-9]*)
994610231 # On AIX/PPC, the GNU linker is very broken
9947 if test "$host_cpu" != ia64; then
10232 if test ia64 != "$host_cpu"; then
994810233 ld_shlibs=no
994910234 cat <<_LT_EOF 1>&2
995010235
996310248 case $host_cpu in
996410249 powerpc)
996510250 # see comment about AmigaOS4 .so support
9966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
996710252 archive_expsym_cmds=''
996810253 ;;
996910254 m68k)
997910264 allow_undefined_flag=unsupported
998010265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
998110266 # support --undefined. This deserves some investigation. FIXME
9982 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10267 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
998310268 else
998410269 ld_shlibs=no
998510270 fi
998910274 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
999010275 # as there is no search path for DLLs.
999110276 hardcode_libdir_flag_spec='-L$libdir'
9992 export_dynamic_flag_spec='${wl}--export-all-symbols'
10277 export_dynamic_flag_spec='$wl--export-all-symbols'
999310278 allow_undefined_flag=unsupported
999410279 always_export_symbols=no
999510280 enable_shared_with_static_runtimes=yes
999710282 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
999810283
999910284 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10001 # If the export-symbols file already is a .def file (1st line
10002 # is EXPORTS), use it as is; otherwise, prepend...
10003 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10004 cp $export_symbols $output_objdir/$soname.def;
10005 else
10006 echo EXPORTS > $output_objdir/$soname.def;
10007 cat $export_symbols >> $output_objdir/$soname.def;
10008 fi~
10009 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10286 # If the export-symbols file already is a .def file, use it as
10287 # is; otherwise, prepend EXPORTS...
10288 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10289 cp $export_symbols $output_objdir/$soname.def;
10290 else
10291 echo EXPORTS > $output_objdir/$soname.def;
10292 cat $export_symbols >> $output_objdir/$soname.def;
10293 fi~
10294 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1001010295 else
1001110296 ld_shlibs=no
1001210297 fi
1001310298 ;;
1001410299
1001510300 haiku*)
10016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1001710302 link_all_deplibs=yes
10303 ;;
10304
10305 os2*)
10306 hardcode_libdir_flag_spec='-L$libdir'
10307 hardcode_minus_L=yes
10308 allow_undefined_flag=unsupported
10309 shrext_cmds=.dll
10310 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10311 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10312 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10313 $ECHO EXPORTS >> $output_objdir/$libname.def~
10314 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10315 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10316 emximp -o $lib $output_objdir/$libname.def'
10317 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10318 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10319 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10320 $ECHO EXPORTS >> $output_objdir/$libname.def~
10321 prefix_cmds="$SED"~
10322 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10323 prefix_cmds="$prefix_cmds -e 1d";
10324 fi~
10325 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10326 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10327 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10328 emximp -o $lib $output_objdir/$libname.def'
10329 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10330 enable_shared_with_static_runtimes=yes
1001810331 ;;
1001910332
1002010333 interix[3-9]*)
1002110334 hardcode_direct=no
1002210335 hardcode_shlibpath_var=no
10023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10024 export_dynamic_flag_spec='${wl}-E'
10336 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10337 export_dynamic_flag_spec='$wl-E'
1002510338 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1002610339 # Instead, shared libraries are loaded at an image base (0x10000000 by
1002710340 # default) and relocated if they conflict, which is a slow very memory
1002810341 # consuming and fragmenting process. To avoid this, we pick a random,
1002910342 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1003010343 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10031 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10032 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'
10344 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10345 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'
1003310346 ;;
1003410347
1003510348 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1003610349 tmp_diet=no
10037 if test "$host_os" = linux-dietlibc; then
10350 if test linux-dietlibc = "$host_os"; then
1003810351 case $cc_basename in
1003910352 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
1004010353 esac
1004110354 fi
1004210355 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10043 && test "$tmp_diet" = no
10356 && test no = "$tmp_diet"
1004410357 then
1004510358 tmp_addflag=' $pic_flag'
1004610359 tmp_sharedflag='-shared'
1004710360 case $cc_basename,$host_cpu in
1004810361 pgcc*) # Portland Group C compiler
10049 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'
10362 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'
1005010363 tmp_addflag=' $pic_flag'
1005110364 ;;
1005210365 pgf77* | pgf90* | pgf95* | pgfortran*)
1005310366 # Portland Group f77 and f90 compilers
10054 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'
10367 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'
1005510368 tmp_addflag=' $pic_flag -Mnomain' ;;
1005610369 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
1005710370 tmp_addflag=' -i_dynamic' ;;
1006210375 lf95*) # Lahey Fortran 8.1
1006310376 whole_archive_flag_spec=
1006410377 tmp_sharedflag='--shared' ;;
10378 nagfor*) # NAGFOR 5.3
10379 tmp_sharedflag='-Wl,-shared' ;;
1006510380 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
1006610381 tmp_sharedflag='-qmkshrobj'
1006710382 tmp_addflag= ;;
1006810383 nvcc*) # Cuda Compiler Driver 2.2
10069 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'
10384 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'
1007010385 compiler_needs_object=yes
1007110386 ;;
1007210387 esac
1007310388 case `$CC -V 2>&1 | sed 5q` in
1007410389 *Sun\ C*) # Sun C 5.9
10075 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'
10390 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'
1007610391 compiler_needs_object=yes
1007710392 tmp_sharedflag='-G' ;;
1007810393 *Sun\ F*) # Sun Fortran 8.3
1007910394 tmp_sharedflag='-G' ;;
1008010395 esac
10081 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082
10083 if test "x$supports_anon_versioning" = xyes; then
10396 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10397
10398 if test yes = "$supports_anon_versioning"; then
1008410399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10086 echo "local: *; };" >> $output_objdir/$libname.ver~
10087 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10401 echo "local: *; };" >> $output_objdir/$libname.ver~
10402 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1008810403 fi
1008910404
1009010405 case $cc_basename in
10406 tcc*)
10407 export_dynamic_flag_spec='-rdynamic'
10408 ;;
1009110409 xlf* | bgf* | bgxlf* | mpixlf*)
1009210410 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
1009310411 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10412 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1009510413 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10096 if test "x$supports_anon_versioning" = xyes; then
10414 if test yes = "$supports_anon_versioning"; then
1009710415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10099 echo "local: *; };" >> $output_objdir/$libname.ver~
10100 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10417 echo "local: *; };" >> $output_objdir/$libname.ver~
10418 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1010110419 fi
1010210420 ;;
1010310421 esac
1011110429 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1011210430 wlarc=
1011310431 else
10114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10115 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10433 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1011610434 fi
1011710435 ;;
1011810436
1013010448
1013110449 _LT_EOF
1013210450 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10451 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10452 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1013510453 else
1013610454 ld_shlibs=no
1013710455 fi
1014310461 ld_shlibs=no
1014410462 cat <<_LT_EOF 1>&2
1014510463
10146 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
1014710465 *** reliably create shared libraries on SCO systems. Therefore, libtool
1014810466 *** is disabling shared libraries support. We urge you to upgrade GNU
1014910467 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
1015810476 # DT_RUNPATH tag from executables and libraries. But doing so
1015910477 # requires that you compile everything twice, which is a pain.
1016010478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10163 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10479 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1016410482 else
1016510483 ld_shlibs=no
1016610484 fi
1017710495
1017810496 *)
1017910497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10180 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10181 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10498 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10499 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1018210500 else
1018310501 ld_shlibs=no
1018410502 fi
1018510503 ;;
1018610504 esac
1018710505
10188 if test "$ld_shlibs" = no; then
10506 if test no = "$ld_shlibs"; then
1018910507 runpath_var=
1019010508 hardcode_libdir_flag_spec=
1019110509 export_dynamic_flag_spec=
1020110519 # Note: this linker hardcodes the directories in LIBPATH if there
1020210520 # are no directories specified by -L.
1020310521 hardcode_minus_L=yes
10204 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10522 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
1020510523 # Neither direct hardcoding nor static linking is supported with a
1020610524 # broken collect2.
1020710525 hardcode_direct=unsupported
1020910527 ;;
1021010528
1021110529 aix[4-9]*)
10212 if test "$host_cpu" = ia64; then
10530 if test ia64 = "$host_cpu"; then
1021310531 # On IA64, the linker does run time linking by default, so we don't
1021410532 # have to do anything special.
1021510533 aix_use_runtimelinking=no
1021610534 exp_sym_flag='-Bexport'
10217 no_entry_flag=""
10535 no_entry_flag=
1021810536 else
1021910537 # If we're using GNU nm, then we don't want the "-C" option.
10220 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10221 # Also, AIX nm treats weak defined symbols like other global
10222 # defined symbols, whereas GNU nm marks them as "W".
10538 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10539 # Without the "-l" option, or with the "-B" option, AIX nm treats
10540 # weak defined symbols like other global defined symbols, whereas
10541 # GNU nm marks them as "W".
10542 # While the 'weak' keyword is ignored in the Export File, we need
10543 # it in the Import File for the 'aix-soname' feature, so we have
10544 # to replace the "-B" option with "-P" for AIX nm.
1022310545 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10224 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'
10546 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'
1022510547 else
10226 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'
10548 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'
1022710549 fi
1022810550 aix_use_runtimelinking=no
1022910551
1023010552 # Test if we are trying to use run time linking or normal
1023110553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10232 # need to do runtime linking.
10554 # have runtime linking enabled, and use it for executables.
10555 # For shared libraries, we enable/disable runtime linking
10556 # depending on the kind of the shared library created -
10557 # when "with_aix_soname,aix_use_runtimelinking" is:
10558 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10559 # "aix,yes" lib.so shared, rtl:yes, for executables
10560 # lib.a static archive
10561 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10562 # lib.a(lib.so.V) shared, rtl:no, for executables
10563 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10564 # lib.a(lib.so.V) shared, rtl:no
10565 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10566 # lib.a static archive
1023310567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1023410568 for ld_flag in $LDFLAGS; do
10235 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10569 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
1023610570 aix_use_runtimelinking=yes
1023710571 break
1023810572 fi
1023910573 done
10574 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10575 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10576 # so we don't have lib.a shared libs to link our executables.
10577 # We have to force runtime linking in this case.
10578 aix_use_runtimelinking=yes
10579 LDFLAGS="$LDFLAGS -Wl,-brtl"
10580 fi
1024010581 ;;
1024110582 esac
1024210583
1025510596 hardcode_direct_absolute=yes
1025610597 hardcode_libdir_separator=':'
1025710598 link_all_deplibs=yes
10258 file_list_spec='${wl}-f,'
10259
10260 if test "$GCC" = yes; then
10599 file_list_spec='$wl-f,'
10600 case $with_aix_soname,$aix_use_runtimelinking in
10601 aix,*) ;; # traditional, no import file
10602 svr4,* | *,yes) # use import file
10603 # The Import File defines what to hardcode.
10604 hardcode_direct=no
10605 hardcode_direct_absolute=no
10606 ;;
10607 esac
10608
10609 if test yes = "$GCC"; then
1026110610 case $host_os in aix4.[012]|aix4.[012].*)
1026210611 # We only want to do this on AIX 4.2 and lower, the check
1026310612 # below for broken collect2 doesn't work under 4.3+
10264 collect2name=`${CC} -print-prog-name=collect2`
10613 collect2name=`$CC -print-prog-name=collect2`
1026510614 if test -f "$collect2name" &&
1026610615 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1026710616 then
1028010629 ;;
1028110630 esac
1028210631 shared_flag='-shared'
10283 if test "$aix_use_runtimelinking" = yes; then
10284 shared_flag="$shared_flag "'${wl}-G'
10632 if test yes = "$aix_use_runtimelinking"; then
10633 shared_flag="$shared_flag "'$wl-G'
1028510634 fi
10286 link_all_deplibs=no
10635 # Need to ensure runtime linking is disabled for the traditional
10636 # shared library, or the linker may eventually find shared libraries
10637 # /with/ Import File - we do not want to mix them.
10638 shared_flag_aix='-shared'
10639 shared_flag_svr4='-shared $wl-G'
1028710640 else
1028810641 # not using gcc
10289 if test "$host_cpu" = ia64; then
10642 if test ia64 = "$host_cpu"; then
1029010643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1029110644 # chokes on -Wl,-G. The following line is correct:
1029210645 shared_flag='-G'
1029310646 else
10294 if test "$aix_use_runtimelinking" = yes; then
10295 shared_flag='${wl}-G'
10647 if test yes = "$aix_use_runtimelinking"; then
10648 shared_flag='$wl-G'
1029610649 else
10297 shared_flag='${wl}-bM:SRE'
10650 shared_flag='$wl-bM:SRE'
1029810651 fi
10652 shared_flag_aix='$wl-bM:SRE'
10653 shared_flag_svr4='$wl-G'
1029910654 fi
1030010655 fi
1030110656
10302 export_dynamic_flag_spec='${wl}-bexpall'
10657 export_dynamic_flag_spec='$wl-bexpall'
1030310658 # It seems that -bexpall does not export symbols beginning with
1030410659 # underscore (_), so it is better to generate a list of symbols to export.
1030510660 always_export_symbols=yes
10306 if test "$aix_use_runtimelinking" = yes; then
10661 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1030710662 # Warning - without using the other runtime loading flags (-brtl),
1030810663 # -berok will link without error, but may produce a broken library.
1030910664 allow_undefined_flag='-berok'
1031010665 # Determine the default libpath from the value encoded in an
1031110666 # empty executable.
10312 if test "${lt_cv_aix_libpath+set}" = set; then
10667 if test set = "${lt_cv_aix_libpath+set}"; then
1031310668 aix_libpath=$lt_cv_aix_libpath
1031410669 else
1031510670 if ${lt_cv_aix_libpath_+:} false; then :
1034410699 rm -f core conftest.err conftest.$ac_objext \
1034510700 conftest$ac_exeext conftest.$ac_ext
1034610701 if test -z "$lt_cv_aix_libpath_"; then
10347 lt_cv_aix_libpath_="/usr/lib:/lib"
10702 lt_cv_aix_libpath_=/usr/lib:/lib
1034810703 fi
1034910704
1035010705 fi
1035210707 aix_libpath=$lt_cv_aix_libpath_
1035310708 fi
1035410709
10355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10356 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"
10710 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10711 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
1035710712 else
10358 if test "$host_cpu" = ia64; then
10359 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10713 if test ia64 = "$host_cpu"; then
10714 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
1036010715 allow_undefined_flag="-z nodefs"
10361 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"
10716 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"
1036210717 else
1036310718 # Determine the default libpath from the value encoded in an
1036410719 # empty executable.
10365 if test "${lt_cv_aix_libpath+set}" = set; then
10720 if test set = "${lt_cv_aix_libpath+set}"; then
1036610721 aix_libpath=$lt_cv_aix_libpath
1036710722 else
1036810723 if ${lt_cv_aix_libpath_+:} false; then :
1039710752 rm -f core conftest.err conftest.$ac_objext \
1039810753 conftest$ac_exeext conftest.$ac_ext
1039910754 if test -z "$lt_cv_aix_libpath_"; then
10400 lt_cv_aix_libpath_="/usr/lib:/lib"
10755 lt_cv_aix_libpath_=/usr/lib:/lib
1040110756 fi
1040210757
1040310758 fi
1040510760 aix_libpath=$lt_cv_aix_libpath_
1040610761 fi
1040710762
10408 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10763 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
1040910764 # Warning - without using the other run time loading flags,
1041010765 # -berok will link without error, but may produce a broken library.
10411 no_undefined_flag=' ${wl}-bernotok'
10412 allow_undefined_flag=' ${wl}-berok'
10413 if test "$with_gnu_ld" = yes; then
10766 no_undefined_flag=' $wl-bernotok'
10767 allow_undefined_flag=' $wl-berok'
10768 if test yes = "$with_gnu_ld"; then
1041410769 # We only use this code for GNU lds that support --whole-archive.
10415 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10770 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
1041610771 else
1041710772 # Exported symbols can be pulled into shared objects from archives
1041810773 whole_archive_flag_spec='$convenience'
1041910774 fi
1042010775 archive_cmds_need_lc=yes
10421 # This is similar to how AIX traditionally builds its shared libraries.
10422 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'
10776 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10777 # -brtl affects multiple linker settings, -berok does not and is overridden later
10778 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10779 if test svr4 != "$with_aix_soname"; then
10780 # This is similar to how AIX traditionally builds its shared libraries.
10781 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'
10782 fi
10783 if test aix != "$with_aix_soname"; then
10784 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'
10785 else
10786 # used by -dlpreopen to get the symbols
10787 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10788 fi
10789 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
1042310790 fi
1042410791 fi
1042510792 ;;
1042810795 case $host_cpu in
1042910796 powerpc)
1043010797 # see comment about AmigaOS4 .so support
10431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1043210799 archive_expsym_cmds=''
1043310800 ;;
1043410801 m68k)
1045810825 # Tell ltmain to make .lib files, not .a files.
1045910826 libext=lib
1046010827 # Tell ltmain to make .dll files, not .so files.
10461 shrext_cmds=".dll"
10828 shrext_cmds=.dll
1046210829 # FIXME: Setting linknames here is a bad hack.
10463 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10464 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10465 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10466 else
10467 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10468 fi~
10469 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10470 linknames='
10830 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10831 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10832 cp "$export_symbols" "$output_objdir/$soname.def";
10833 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10834 else
10835 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10836 fi~
10837 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10838 linknames='
1047110839 # The linker will not automatically build a static lib if we build a DLL.
1047210840 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
1047310841 enable_shared_with_static_runtimes=yes
1047610844 # Don't use ranlib
1047710845 old_postinstall_cmds='chmod 644 $oldlib'
1047810846 postlink_cmds='lt_outputfile="@OUTPUT@"~
10479 lt_tool_outputfile="@TOOL_OUTPUT@"~
10480 case $lt_outputfile in
10481 *.exe|*.EXE) ;;
10482 *)
10483 lt_outputfile="$lt_outputfile.exe"
10484 lt_tool_outputfile="$lt_tool_outputfile.exe"
10485 ;;
10486 esac~
10487 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10488 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10489 $RM "$lt_outputfile.manifest";
10490 fi'
10847 lt_tool_outputfile="@TOOL_OUTPUT@"~
10848 case $lt_outputfile in
10849 *.exe|*.EXE) ;;
10850 *)
10851 lt_outputfile=$lt_outputfile.exe
10852 lt_tool_outputfile=$lt_tool_outputfile.exe
10853 ;;
10854 esac~
10855 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10856 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10857 $RM "$lt_outputfile.manifest";
10858 fi'
1049110859 ;;
1049210860 *)
1049310861 # Assume MSVC wrapper
1049610864 # Tell ltmain to make .lib files, not .a files.
1049710865 libext=lib
1049810866 # Tell ltmain to make .dll files, not .so files.
10499 shrext_cmds=".dll"
10867 shrext_cmds=.dll
1050010868 # FIXME: Setting linknames here is a bad hack.
1050110869 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1050210870 # The linker will automatically build a .lib file if we build a DLL.
1051510883 hardcode_direct=no
1051610884 hardcode_automatic=yes
1051710885 hardcode_shlibpath_var=unsupported
10518 if test "$lt_cv_ld_force_load" = "yes"; then
10519 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\"`'
10886 if test yes = "$lt_cv_ld_force_load"; then
10887 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\"`'
1052010888
1052110889 else
1052210890 whole_archive_flag_spec=''
1052310891 fi
1052410892 link_all_deplibs=yes
10525 allow_undefined_flag="$_lt_dar_allow_undefined"
10893 allow_undefined_flag=$_lt_dar_allow_undefined
1052610894 case $cc_basename in
10527 ifort*) _lt_dar_can_shared=yes ;;
10895 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1052810896 *) _lt_dar_can_shared=$GCC ;;
1052910897 esac
10530 if test "$_lt_dar_can_shared" = "yes"; then
10898 if test yes = "$_lt_dar_can_shared"; then
1053110899 output_verbose_link_cmd=func_echo_all
10532 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10533 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10534 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}"
10535 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}"
10900 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10901 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10902 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"
10903 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"
1053610904
1053710905 else
1053810906 ld_shlibs=no
1057410942 ;;
1057510943
1057610944 hpux9*)
10577 if test "$GCC" = yes; then
10578 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'
10945 if test yes = "$GCC"; then
10946 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'
1057910947 else
10580 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'
10948 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'
1058110949 fi
10582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10950 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1058310951 hardcode_libdir_separator=:
1058410952 hardcode_direct=yes
1058510953
1058610954 # hardcode_minus_L: Not really in the search PATH,
1058710955 # but as the default location of the library.
1058810956 hardcode_minus_L=yes
10589 export_dynamic_flag_spec='${wl}-E'
10957 export_dynamic_flag_spec='$wl-E'
1059010958 ;;
1059110959
1059210960 hpux10*)
10593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10594 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10961 if test yes,no = "$GCC,$with_gnu_ld"; then
10962 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1059510963 else
1059610964 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1059710965 fi
10598 if test "$with_gnu_ld" = no; then
10599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10966 if test no = "$with_gnu_ld"; then
10967 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1060010968 hardcode_libdir_separator=:
1060110969 hardcode_direct=yes
1060210970 hardcode_direct_absolute=yes
10603 export_dynamic_flag_spec='${wl}-E'
10971 export_dynamic_flag_spec='$wl-E'
1060410972 # hardcode_minus_L: Not really in the search PATH,
1060510973 # but as the default location of the library.
1060610974 hardcode_minus_L=yes
1060810976 ;;
1060910977
1061010978 hpux11*)
10611 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10979 if test yes,no = "$GCC,$with_gnu_ld"; then
1061210980 case $host_cpu in
1061310981 hppa*64*)
10614 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1061510983 ;;
1061610984 ia64*)
10617 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10985 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1061810986 ;;
1061910987 *)
10620 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10988 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1062110989 ;;
1062210990 esac
1062310991 else
1062410992 case $host_cpu in
1062510993 hppa*64*)
10626 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10994 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1062710995 ;;
1062810996 ia64*)
10629 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10997 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1063010998 ;;
1063110999 *)
1063211000
1063811006 $as_echo_n "(cached) " >&6
1063911007 else
1064011008 lt_cv_prog_compiler__b=no
10641 save_LDFLAGS="$LDFLAGS"
11009 save_LDFLAGS=$LDFLAGS
1064211010 LDFLAGS="$LDFLAGS -b"
1064311011 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1064411012 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1065711025 fi
1065811026 fi
1065911027 $RM -r conftest*
10660 LDFLAGS="$save_LDFLAGS"
11028 LDFLAGS=$save_LDFLAGS
1066111029
1066211030 fi
1066311031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
1066411032 $as_echo "$lt_cv_prog_compiler__b" >&6; }
1066511033
10666 if test x"$lt_cv_prog_compiler__b" = xyes; then
10667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11034 if test yes = "$lt_cv_prog_compiler__b"; then
11035 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1066811036 else
1066911037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1067011038 fi
1067211040 ;;
1067311041 esac
1067411042 fi
10675 if test "$with_gnu_ld" = no; then
10676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11043 if test no = "$with_gnu_ld"; then
11044 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1067711045 hardcode_libdir_separator=:
1067811046
1067911047 case $host_cpu in
1068411052 *)
1068511053 hardcode_direct=yes
1068611054 hardcode_direct_absolute=yes
10687 export_dynamic_flag_spec='${wl}-E'
11055 export_dynamic_flag_spec='$wl-E'
1068811056
1068911057 # hardcode_minus_L: Not really in the search PATH,
1069011058 # but as the default location of the library.
1069511063 ;;
1069611064
1069711065 irix5* | irix6* | nonstopux*)
10698 if test "$GCC" = yes; then
10699 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'
11066 if test yes = "$GCC"; then
11067 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'
1070011068 # Try to use the -exported_symbol ld option, if it does not
1070111069 # work, assume that -exports_file does not work either and
1070211070 # implicitly export all symbols.
1070611074 if ${lt_cv_irix_exported_symbol+:} false; then :
1070711075 $as_echo_n "(cached) " >&6
1070811076 else
10709 save_LDFLAGS="$LDFLAGS"
10710 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11077 save_LDFLAGS=$LDFLAGS
11078 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1071111079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1071211080 /* end confdefs.h. */
1071311081 int foo (void) { return 0; }
1071911087 fi
1072011088 rm -f core conftest.err conftest.$ac_objext \
1072111089 conftest$ac_exeext conftest.$ac_ext
10722 LDFLAGS="$save_LDFLAGS"
11090 LDFLAGS=$save_LDFLAGS
1072311091 fi
1072411092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
1072511093 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10726 if test "$lt_cv_irix_exported_symbol" = yes; then
10727 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'
11094 if test yes = "$lt_cv_irix_exported_symbol"; then
11095 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'
1072811096 fi
11097 link_all_deplibs=no
1072911098 else
10730 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'
10731 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'
11099 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'
11100 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'
1073211101 fi
1073311102 archive_cmds_need_lc='no'
10734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11103 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1073511104 hardcode_libdir_separator=:
1073611105 inherit_rpath=yes
1073711106 link_all_deplibs=yes
11107 ;;
11108
11109 linux*)
11110 case $cc_basename in
11111 tcc*)
11112 # Fabrice Bellard et al's Tiny C Compiler
11113 ld_shlibs=yes
11114 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11115 ;;
11116 esac
1073811117 ;;
1073911118
1074011119 netbsd* | netbsdelf*-gnu)
1075111130 newsos6)
1075211131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1075311132 hardcode_direct=yes
10754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11133 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1075511134 hardcode_libdir_separator=:
1075611135 hardcode_shlibpath_var=no
1075711136 ;;
1075911138 *nto* | *qnx*)
1076011139 ;;
1076111140
10762 openbsd*)
11141 openbsd* | bitrig*)
1076311142 if test -f /usr/libexec/ld.so; then
1076411143 hardcode_direct=yes
1076511144 hardcode_shlibpath_var=no
1076611145 hardcode_direct_absolute=yes
10767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1076811147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10771 export_dynamic_flag_spec='${wl}-E'
11148 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11149 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11150 export_dynamic_flag_spec='$wl-E'
1077211151 else
10773 case $host_os in
10774 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10776 hardcode_libdir_flag_spec='-R$libdir'
10777 ;;
10778 *)
10779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10781 ;;
10782 esac
11152 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11153 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1078311154 fi
1078411155 else
1078511156 ld_shlibs=no
1079011161 hardcode_libdir_flag_spec='-L$libdir'
1079111162 hardcode_minus_L=yes
1079211163 allow_undefined_flag=unsupported
10793 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'
10794 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11164 shrext_cmds=.dll
11165 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11166 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11167 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11168 $ECHO EXPORTS >> $output_objdir/$libname.def~
11169 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11170 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11171 emximp -o $lib $output_objdir/$libname.def'
11172 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11173 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11174 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11175 $ECHO EXPORTS >> $output_objdir/$libname.def~
11176 prefix_cmds="$SED"~
11177 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11178 prefix_cmds="$prefix_cmds -e 1d";
11179 fi~
11180 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11181 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11182 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11183 emximp -o $lib $output_objdir/$libname.def'
11184 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11185 enable_shared_with_static_runtimes=yes
1079511186 ;;
1079611187
1079711188 osf3*)
10798 if test "$GCC" = yes; then
10799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10800 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'
11189 if test yes = "$GCC"; then
11190 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11191 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'
1080111192 else
1080211193 allow_undefined_flag=' -expect_unresolved \*'
10803 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'
11194 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'
1080411195 fi
1080511196 archive_cmds_need_lc='no'
10806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1080711198 hardcode_libdir_separator=:
1080811199 ;;
1080911200
1081011201 osf4* | osf5*) # as osf3* with the addition of -msym flag
10811 if test "$GCC" = yes; then
10812 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10813 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'
10814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11202 if test yes = "$GCC"; then
11203 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11204 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'
11205 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1081511206 else
1081611207 allow_undefined_flag=' -expect_unresolved \*'
10817 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'
11208 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'
1081811209 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~
10819 $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'
11210 $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'
1082011211
1082111212 # Both c and cxx compiler support -rpath directly
1082211213 hardcode_libdir_flag_spec='-rpath $libdir'
1082711218
1082811219 solaris*)
1082911220 no_undefined_flag=' -z defs'
10830 if test "$GCC" = yes; then
10831 wlarc='${wl}'
10832 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11221 if test yes = "$GCC"; then
11222 wlarc='$wl'
11223 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1083311224 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10834 $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'
11225 $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'
1083511226 else
1083611227 case `$CC -V 2>&1` in
1083711228 *"Compilers 5.0"*)
1083811229 wlarc=''
10839 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11230 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1084011231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10841 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11232 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1084211233 ;;
1084311234 *)
10844 wlarc='${wl}'
10845 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11235 wlarc='$wl'
11236 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1084611237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10847 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11238 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1084811239 ;;
1084911240 esac
1085011241 fi
1085411245 solaris2.[0-5] | solaris2.[0-5].*) ;;
1085511246 *)
1085611247 # The compiler driver will combine and reorder linker options,
10857 # but understands `-z linker_flag'. GCC discards it without `$wl',
11248 # but understands '-z linker_flag'. GCC discards it without '$wl',
1085811249 # but is careful enough not to reorder.
1085911250 # Supported since Solaris 2.6 (maybe 2.5.1?)
10860 if test "$GCC" = yes; then
10861 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11251 if test yes = "$GCC"; then
11252 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1086211253 else
1086311254 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
1086411255 fi
1086811259 ;;
1086911260
1087011261 sunos4*)
10871 if test "x$host_vendor" = xsequent; then
11262 if test sequent = "$host_vendor"; then
1087211263 # Use $CC to link under sequent, because it throws in some extra .o
1087311264 # files that make .init and .fini sections work.
10874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11265 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1087511266 else
1087611267 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1087711268 fi
1092011311 ;;
1092111312
1092211313 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10923 no_undefined_flag='${wl}-z,text'
11314 no_undefined_flag='$wl-z,text'
1092411315 archive_cmds_need_lc=no
1092511316 hardcode_shlibpath_var=no
1092611317 runpath_var='LD_RUN_PATH'
1092711318
10928 if test "$GCC" = yes; then
10929 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11319 if test yes = "$GCC"; then
11320 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1093111322 else
10932 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11323 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11324 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1093411325 fi
1093511326 ;;
1093611327
1093711328 sysv5* | sco3.2v5* | sco5v6*)
10938 # Note: We can NOT use -z defs as we might desire, because we do not
11329 # Note: We CANNOT use -z defs as we might desire, because we do not
1093911330 # link with -lc, and that would cause any symbols used from libc to
1094011331 # always be unresolved, which means just about no library would
1094111332 # ever link correctly. If we're not using GNU ld we use -z text
1094211333 # though, which does catch some bad symbols but isn't as heavy-handed
1094311334 # as -z defs.
10944 no_undefined_flag='${wl}-z,text'
10945 allow_undefined_flag='${wl}-z,nodefs'
11335 no_undefined_flag='$wl-z,text'
11336 allow_undefined_flag='$wl-z,nodefs'
1094611337 archive_cmds_need_lc=no
1094711338 hardcode_shlibpath_var=no
10948 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11339 hardcode_libdir_flag_spec='$wl-R,$libdir'
1094911340 hardcode_libdir_separator=':'
1095011341 link_all_deplibs=yes
10951 export_dynamic_flag_spec='${wl}-Bexport'
11342 export_dynamic_flag_spec='$wl-Bexport'
1095211343 runpath_var='LD_RUN_PATH'
1095311344
10954 if test "$GCC" = yes; then
10955 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11345 if test yes = "$GCC"; then
11346 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11347 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1095711348 else
10958 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11350 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1096011351 fi
1096111352 ;;
1096211353
1097111362 ;;
1097211363 esac
1097311364
10974 if test x$host_vendor = xsni; then
11365 if test sni = "$host_vendor"; then
1097511366 case $host in
1097611367 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10977 export_dynamic_flag_spec='${wl}-Blargedynsym'
11368 export_dynamic_flag_spec='$wl-Blargedynsym'
1097811369 ;;
1097911370 esac
1098011371 fi
1098211373
1098311374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
1098411375 $as_echo "$ld_shlibs" >&6; }
10985 test "$ld_shlibs" = no && can_build_shared=no
11376 test no = "$ld_shlibs" && can_build_shared=no
1098611377
1098711378 with_gnu_ld=$with_gnu_ld
1098811379
1100811399 # Assume -lc should be added
1100911400 archive_cmds_need_lc=yes
1101011401
11011 if test "$enable_shared" = yes && test "$GCC" = yes; then
11402 if test yes,yes = "$GCC,$enable_shared"; then
1101211403 case $archive_cmds in
1101311404 *'~'*)
1101411405 # FIXME: we may have to deal with multi-command sequences.
1122311614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1122411615 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1122511616
11226 if test "$GCC" = yes; then
11617 if test yes = "$GCC"; then
1122711618 case $host_os in
11228 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11229 *) lt_awk_arg="/^libraries:/" ;;
11619 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11620 *) lt_awk_arg='/^libraries:/' ;;
1123011621 esac
1123111622 case $host_os in
11232 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11233 *) lt_sed_strip_eq="s,=/,/,g" ;;
11623 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11624 *) lt_sed_strip_eq='s|=/|/|g' ;;
1123411625 esac
1123511626 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
1123611627 case $lt_search_path_spec in
1124611637 ;;
1124711638 esac
1124811639 # Ok, now we have the path, separated by spaces, we can step through it
11249 # and add multilib dir if necessary.
11640 # and add multilib dir if necessary...
1125011641 lt_tmp_lt_search_path_spec=
11251 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11642 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11643 # ...but if some path component already ends with the multilib dir we assume
11644 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11645 case "$lt_multi_os_dir; $lt_search_path_spec " in
11646 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11647 lt_multi_os_dir=
11648 ;;
11649 esac
1125211650 for lt_sys_path in $lt_search_path_spec; do
11253 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11254 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11255 else
11651 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11652 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11653 elif test -n "$lt_multi_os_dir"; then
1125611654 test -d "$lt_sys_path" && \
1125711655 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1125811656 fi
1125911657 done
1126011658 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11261 BEGIN {RS=" "; FS="/|\n";} {
11262 lt_foo="";
11263 lt_count=0;
11659 BEGIN {RS = " "; FS = "/|\n";} {
11660 lt_foo = "";
11661 lt_count = 0;
1126411662 for (lt_i = NF; lt_i > 0; lt_i--) {
1126511663 if ($lt_i != "" && $lt_i != ".") {
1126611664 if ($lt_i == "..") {
1126711665 lt_count++;
1126811666 } else {
1126911667 if (lt_count == 0) {
11270 lt_foo="/" $lt_i lt_foo;
11668 lt_foo = "/" $lt_i lt_foo;
1127111669 } else {
1127211670 lt_count--;
1127311671 }
1128111679 # for these hosts.
1128211680 case $host_os in
1128311681 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11284 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11682 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1128511683 esac
1128611684 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1128711685 else
1129011688 library_names_spec=
1129111689 libname_spec='lib$name'
1129211690 soname_spec=
11293 shrext_cmds=".so"
11691 shrext_cmds=.so
1129411692 postinstall_cmds=
1129511693 postuninstall_cmds=
1129611694 finish_cmds=
1130711705 # flags to be left without arguments
1130811706 need_version=unknown
1130911707
11708
11709
1131011710 case $host_os in
1131111711 aix3*)
1131211712 version_type=linux # correct to gnu/linux during the next big refactor
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11713 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1131411714 shlibpath_var=LIBPATH
1131511715
1131611716 # AIX 3 has no versioning support, so we append a major version to the name.
11317 soname_spec='${libname}${release}${shared_ext}$major'
11717 soname_spec='$libname$release$shared_ext$major'
1131811718 ;;
1131911719
1132011720 aix[4-9]*)
1132211722 need_lib_prefix=no
1132311723 need_version=no
1132411724 hardcode_into_libs=yes
11325 if test "$host_cpu" = ia64; then
11725 if test ia64 = "$host_cpu"; then
1132611726 # AIX 5 supports IA64
11327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11727 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1132811728 shlibpath_var=LD_LIBRARY_PATH
1132911729 else
1133011730 # With GCC up to 2.95.x, collect2 would create an import file
1133111731 # for dependence libraries. The import file would start with
11332 # the line `#! .'. This would cause the generated library to
11333 # depend on `.', always an invalid library. This was fixed in
11732 # the line '#! .'. This would cause the generated library to
11733 # depend on '.', always an invalid library. This was fixed in
1133411734 # development snapshots of GCC prior to 3.0.
1133511735 case $host_os in
1133611736 aix4 | aix4.[01] | aix4.[01].*)
1133711737 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1133811738 echo ' yes '
11339 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11739 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1134011740 :
1134111741 else
1134211742 can_build_shared=no
1134311743 fi
1134411744 ;;
1134511745 esac
11346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11746 # Using Import Files as archive members, it is possible to support
11747 # filename-based versioning of shared library archives on AIX. While
11748 # this would work for both with and without runtime linking, it will
11749 # prevent static linking of such archives. So we do filename-based
11750 # shared library versioning with .so extension only, which is used
11751 # when both runtime linking and shared linking is enabled.
11752 # Unfortunately, runtime linking may impact performance, so we do
11753 # not want this to be the default eventually. Also, we use the
11754 # versioned .so libs for executables only if there is the -brtl
11755 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11756 # To allow for filename-based versioning support, we need to create
11757 # libNAME.so.V as an archive file, containing:
11758 # *) an Import File, referring to the versioned filename of the
11759 # archive as well as the shared archive member, telling the
11760 # bitwidth (32 or 64) of that shared object, and providing the
11761 # list of exported symbols of that shared object, eventually
11762 # decorated with the 'weak' keyword
11763 # *) the shared object with the F_LOADONLY flag set, to really avoid
11764 # it being seen by the linker.
11765 # At run time we better use the real file rather than another symlink,
11766 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11767
11768 case $with_aix_soname,$aix_use_runtimelinking in
11769 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1134711770 # soname into executable. Probably we can add versioning support to
1134811771 # collect2, so additional links can be useful in future.
11349 if test "$aix_use_runtimelinking" = yes; then
11772 aix,yes) # traditional libtool
11773 dynamic_linker='AIX unversionable lib.so'
1135011774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1135111775 # instead of lib<name>.a to let people know that these are not
1135211776 # typical AIX shared libraries.
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 else
11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11778 ;;
11779 aix,no) # traditional AIX only
11780 dynamic_linker='AIX lib.a(lib.so.V)'
1135511781 # We preserve .a as extension for shared libraries through AIX4.2
1135611782 # and later when we are not doing run time linking.
11357 library_names_spec='${libname}${release}.a $libname.a'
11358 soname_spec='${libname}${release}${shared_ext}$major'
11359 fi
11783 library_names_spec='$libname$release.a $libname.a'
11784 soname_spec='$libname$release$shared_ext$major'
11785 ;;
11786 svr4,*) # full svr4 only
11787 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11788 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11789 # We do not specify a path in Import Files, so LIBPATH fires.
11790 shlibpath_overrides_runpath=yes
11791 ;;
11792 *,yes) # both, prefer svr4
11793 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11794 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11795 # unpreferred sharedlib libNAME.a needs extra handling
11796 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"'
11797 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"'
11798 # We do not specify a path in Import Files, so LIBPATH fires.
11799 shlibpath_overrides_runpath=yes
11800 ;;
11801 *,no) # both, prefer aix
11802 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11803 library_names_spec='$libname$release.a $libname.a'
11804 soname_spec='$libname$release$shared_ext$major'
11805 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11806 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)'
11807 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"'
11808 ;;
11809 esac
1136011810 shlibpath_var=LIBPATH
1136111811 fi
1136211812 ;;
1136611816 powerpc)
1136711817 # Since July 2007 AmigaOS4 officially supports .so libraries.
1136811818 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1137011820 ;;
1137111821 m68k)
1137211822 library_names_spec='$libname.ixlibrary $libname.a'
1137311823 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11374 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'
11824 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'
1137511825 ;;
1137611826 esac
1137711827 ;;
1137811828
1137911829 beos*)
11380 library_names_spec='${libname}${shared_ext}'
11830 library_names_spec='$libname$shared_ext'
1138111831 dynamic_linker="$host_os ld.so"
1138211832 shlibpath_var=LIBRARY_PATH
1138311833 ;;
1138511835 bsdi[45]*)
1138611836 version_type=linux # correct to gnu/linux during the next big refactor
1138711837 need_version=no
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11839 soname_spec='$libname$release$shared_ext$major'
1139011840 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1139111841 shlibpath_var=LD_LIBRARY_PATH
1139211842 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1139811848
1139911849 cygwin* | mingw* | pw32* | cegcc*)
1140011850 version_type=windows
11401 shrext_cmds=".dll"
11851 shrext_cmds=.dll
1140211852 need_version=no
1140311853 need_lib_prefix=no
1140411854
1140711857 # gcc
1140811858 library_names_spec='$libname.dll.a'
1140911859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410 postinstall_cmds='base_file=`basename \${file}`~
11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11860 postinstall_cmds='base_file=`basename \$file`~
11861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1141211862 dldir=$destdir/`dirname \$dlpath`~
1141311863 test -d \$dldir || mkdir -p \$dldir~
1141411864 $install_prog $dir/$dlname \$dldir/$dlname~
1142411874 case $host_os in
1142511875 cygwin*)
1142611876 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11877 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1142811878
1142911879 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1143011880 ;;
1143111881 mingw* | cegcc*)
1143211882 # MinGW DLLs use traditional 'lib' prefix
11433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11883 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1143411884 ;;
1143511885 pw32*)
1143611886 # pw32 DLLs use 'pw' prefix rather than 'lib'
11437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11887 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1143811888 ;;
1143911889 esac
1144011890 dynamic_linker='Win32 ld.exe'
1144311893 *,cl*)
1144411894 # Native MSVC
1144511895 libname_spec='$name'
11446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11447 library_names_spec='${libname}.dll.lib'
11896 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11897 library_names_spec='$libname.dll.lib'
1144811898
1144911899 case $build_os in
1145011900 mingw*)
1147111921 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1147211922 ;;
1147311923 *)
11474 sys_lib_search_path_spec="$LIB"
11924 sys_lib_search_path_spec=$LIB
1147511925 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1147611926 # It is most probably a Windows format PATH.
1147711927 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1148411934 esac
1148511935
1148611936 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11487 postinstall_cmds='base_file=`basename \${file}`~
11488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11937 postinstall_cmds='base_file=`basename \$file`~
11938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1148911939 dldir=$destdir/`dirname \$dlpath`~
1149011940 test -d \$dldir || mkdir -p \$dldir~
1149111941 $install_prog $dir/$dlname \$dldir/$dlname'
1149811948
1149911949 *)
1150011950 # Assume MSVC wrapper
11501 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11951 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1150211952 dynamic_linker='Win32 ld.exe'
1150311953 ;;
1150411954 esac
1151111961 version_type=darwin
1151211962 need_lib_prefix=no
1151311963 need_version=no
11514 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11515 soname_spec='${libname}${release}${major}$shared_ext'
11964 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11965 soname_spec='$libname$release$major$shared_ext'
1151611966 shlibpath_overrides_runpath=yes
1151711967 shlibpath_var=DYLD_LIBRARY_PATH
1151811968 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1152511975 version_type=linux # correct to gnu/linux during the next big refactor
1152611976 need_lib_prefix=no
1152711977 need_version=no
11528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11529 soname_spec='${libname}${release}${shared_ext}$major'
11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11979 soname_spec='$libname$release$shared_ext$major'
1153011980 shlibpath_var=LD_LIBRARY_PATH
1153111981 ;;
1153211982
1154411994 version_type=freebsd-$objformat
1154511995 case $version_type in
1154611996 freebsd-elf*)
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11998 soname_spec='$libname$release$shared_ext$major'
1154811999 need_version=no
1154912000 need_lib_prefix=no
1155012001 ;;
1155112002 freebsd-*)
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12003 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1155312004 need_version=yes
1155412005 ;;
1155512006 esac
1157912030 need_lib_prefix=no
1158012031 need_version=no
1158112032 dynamic_linker="$host_os runtime_loader"
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
12033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12034 soname_spec='$libname$release$shared_ext$major'
1158412035 shlibpath_var=LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
12036 shlibpath_overrides_runpath=no
1158612037 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1158712038 hardcode_into_libs=yes
1158812039 ;;
1160012051 dynamic_linker="$host_os dld.so"
1160112052 shlibpath_var=LD_LIBRARY_PATH
1160212053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 soname_spec='${libname}${release}${shared_ext}$major'
11605 if test "X$HPUX_IA64_MODE" = X32; then
12054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12055 soname_spec='$libname$release$shared_ext$major'
12056 if test 32 = "$HPUX_IA64_MODE"; then
1160612057 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12058 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1160712059 else
1160812060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12061 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1160912062 fi
11610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1161112063 ;;
1161212064 hppa*64*)
1161312065 shrext_cmds='.sl'
1161512067 dynamic_linker="$host_os dld.sl"
1161612068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1161712069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
12070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071 soname_spec='$libname$release$shared_ext$major'
1162012072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1162112073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1162212074 ;;
1162512077 dynamic_linker="$host_os dld.sl"
1162612078 shlibpath_var=SHLIB_PATH
1162712079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
12080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081 soname_spec='$libname$release$shared_ext$major'
1163012082 ;;
1163112083 esac
1163212084 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1163912091 version_type=linux # correct to gnu/linux during the next big refactor
1164012092 need_lib_prefix=no
1164112093 need_version=no
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
12094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12095 soname_spec='$libname$release$shared_ext$major'
1164412096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1164512097 shlibpath_var=LD_LIBRARY_PATH
1164612098 shlibpath_overrides_runpath=no
1165112103 case $host_os in
1165212104 nonstopux*) version_type=nonstopux ;;
1165312105 *)
11654 if test "$lt_cv_prog_gnu_ld" = yes; then
12106 if test yes = "$lt_cv_prog_gnu_ld"; then
1165512107 version_type=linux # correct to gnu/linux during the next big refactor
1165612108 else
1165712109 version_type=irix
1165912111 esac
1166012112 need_lib_prefix=no
1166112113 need_version=no
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12114 soname_spec='$libname$release$shared_ext$major'
12115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1166412116 case $host_os in
1166512117 irix5* | nonstopux*)
1166612118 libsuff= shlibsuff=
1167912131 esac
1168012132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1168112133 shlibpath_overrides_runpath=no
11682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12134 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12135 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1168412136 hardcode_into_libs=yes
1168512137 ;;
1168612138
1168712139 # No shared lib support for Linux oldld, aout, or coff.
1168812140 linux*oldld* | linux*aout* | linux*coff*)
1168912141 dynamic_linker=no
12142 ;;
12143
12144 linux*android*)
12145 version_type=none # Android doesn't support versioned libraries.
12146 need_lib_prefix=no
12147 need_version=no
12148 library_names_spec='$libname$release$shared_ext'
12149 soname_spec='$libname$release$shared_ext'
12150 finish_cmds=
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=yes
12153
12154 # This implies no fast_install, which is unacceptable.
12155 # Some rework will be needed to allow for fast_install
12156 # before this can be enabled.
12157 hardcode_into_libs=yes
12158
12159 dynamic_linker='Android linker'
12160 # Don't embed -rpath directories since the linker doesn't support them.
12161 hardcode_libdir_flag_spec='-L$libdir'
1169012162 ;;
1169112163
1169212164 # This must be glibc/ELF.
1169412166 version_type=linux # correct to gnu/linux during the next big refactor
1169512167 need_lib_prefix=no
1169612168 need_version=no
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 soname_spec='${libname}${release}${shared_ext}$major'
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12170 soname_spec='$libname$release$shared_ext$major'
1169912171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1170012172 shlibpath_var=LD_LIBRARY_PATH
1170112173 shlibpath_overrides_runpath=no
1173912211 # before this can be enabled.
1174012212 hardcode_into_libs=yes
1174112213
11742 # Append ld.so.conf contents to the search path
12214 # Ideally, we could use ldconfig to report *all* directores which are
12215 # searched for libraries, however this is still not possible. Aside from not
12216 # being certain /sbin/ldconfig is available, command
12217 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12218 # even though it is searched at run-time. Try to do the best guess by
12219 # appending ld.so.conf contents (and includes) to the search path.
1174312220 if test -f /etc/ld.so.conf; then
1174412221 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' ' '`
1174512222 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1177112248 need_lib_prefix=no
1177212249 need_version=no
1177312250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1177512252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1177612253 dynamic_linker='NetBSD (a.out) ld.so'
1177712254 else
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256 soname_spec='$libname$release$shared_ext$major'
1178012257 dynamic_linker='NetBSD ld.elf_so'
1178112258 fi
1178212259 shlibpath_var=LD_LIBRARY_PATH
1178612263
1178712264 newsos6)
1178812265 version_type=linux # correct to gnu/linux during the next big refactor
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1179012267 shlibpath_var=LD_LIBRARY_PATH
1179112268 shlibpath_overrides_runpath=yes
1179212269 ;;
1179512272 version_type=qnx
1179612273 need_lib_prefix=no
1179712274 need_version=no
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
12275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12276 soname_spec='$libname$release$shared_ext$major'
1180012277 shlibpath_var=LD_LIBRARY_PATH
1180112278 shlibpath_overrides_runpath=no
1180212279 hardcode_into_libs=yes
1180312280 dynamic_linker='ldqnx.so'
1180412281 ;;
1180512282
11806 openbsd*)
12283 openbsd* | bitrig*)
1180712284 version_type=sunos
11808 sys_lib_dlsearch_path_spec="/usr/lib"
12285 sys_lib_dlsearch_path_spec=/usr/lib
1180912286 need_lib_prefix=no
11810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11811 case $host_os in
11812 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11813 *) need_version=no ;;
11814 esac
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12288 need_version=no
12289 else
12290 need_version=yes
12291 fi
12292 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1181612293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1181712294 shlibpath_var=LD_LIBRARY_PATH
11818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11819 case $host_os in
11820 openbsd2.[89] | openbsd2.[89].*)
11821 shlibpath_overrides_runpath=no
11822 ;;
11823 *)
11824 shlibpath_overrides_runpath=yes
11825 ;;
11826 esac
11827 else
11828 shlibpath_overrides_runpath=yes
11829 fi
12295 shlibpath_overrides_runpath=yes
1183012296 ;;
1183112297
1183212298 os2*)
1183312299 libname_spec='$name'
11834 shrext_cmds=".dll"
12300 version_type=windows
12301 shrext_cmds=.dll
12302 need_version=no
1183512303 need_lib_prefix=no
11836 library_names_spec='$libname${shared_ext} $libname.a'
12304 # OS/2 can only load a DLL with a base name of 8 characters or less.
12305 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12306 v=$($ECHO $release$versuffix | tr -d .-);
12307 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12308 $ECHO $n$v`$shared_ext'
12309 library_names_spec='${libname}_dll.$libext'
1183712310 dynamic_linker='OS/2 ld.exe'
11838 shlibpath_var=LIBPATH
12311 shlibpath_var=BEGINLIBPATH
12312 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12314 postinstall_cmds='base_file=`basename \$file`~
12315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12316 dldir=$destdir/`dirname \$dlpath`~
12317 test -d \$dldir || mkdir -p \$dldir~
12318 $install_prog $dir/$dlname \$dldir/$dlname~
12319 chmod a+x \$dldir/$dlname~
12320 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12321 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12322 fi'
12323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12324 dlpath=$dir/\$dldll~
12325 $RM \$dlpath'
1183912326 ;;
1184012327
1184112328 osf3* | osf4* | osf5*)
1184212329 version_type=osf
1184312330 need_lib_prefix=no
1184412331 need_version=no
11845 soname_spec='${libname}${release}${shared_ext}$major'
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12332 soname_spec='$libname$release$shared_ext$major'
12333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1184712334 shlibpath_var=LD_LIBRARY_PATH
1184812335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1185012337 ;;
1185112338
1185212339 rdos*)
1185712344 version_type=linux # correct to gnu/linux during the next big refactor
1185812345 need_lib_prefix=no
1185912346 need_version=no
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
12347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12348 soname_spec='$libname$release$shared_ext$major'
1186212349 shlibpath_var=LD_LIBRARY_PATH
1186312350 shlibpath_overrides_runpath=yes
1186412351 hardcode_into_libs=yes
1186812355
1186912356 sunos4*)
1187012357 version_type=sunos
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12358 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1187212359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1187312360 shlibpath_var=LD_LIBRARY_PATH
1187412361 shlibpath_overrides_runpath=yes
11875 if test "$with_gnu_ld" = yes; then
12362 if test yes = "$with_gnu_ld"; then
1187612363 need_lib_prefix=no
1187712364 fi
1187812365 need_version=yes
1188012367
1188112368 sysv4 | sysv4.3*)
1188212369 version_type=linux # correct to gnu/linux during the next big refactor
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884 soname_spec='${libname}${release}${shared_ext}$major'
12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371 soname_spec='$libname$release$shared_ext$major'
1188512372 shlibpath_var=LD_LIBRARY_PATH
1188612373 case $host_vendor in
1188712374 sni)
1190212389 ;;
1190312390
1190412391 sysv4*MP*)
11905 if test -d /usr/nec ;then
12392 if test -d /usr/nec; then
1190612393 version_type=linux # correct to gnu/linux during the next big refactor
11907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11908 soname_spec='$libname${shared_ext}.$major'
12394 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12395 soname_spec='$libname$shared_ext.$major'
1190912396 shlibpath_var=LD_LIBRARY_PATH
1191012397 fi
1191112398 ;;
1191212399
1191312400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11914 version_type=freebsd-elf
12401 version_type=sco
1191512402 need_lib_prefix=no
1191612403 need_version=no
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11918 soname_spec='${libname}${release}${shared_ext}$major'
12404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12405 soname_spec='$libname$release$shared_ext$major'
1191912406 shlibpath_var=LD_LIBRARY_PATH
1192012407 shlibpath_overrides_runpath=yes
1192112408 hardcode_into_libs=yes
11922 if test "$with_gnu_ld" = yes; then
12409 if test yes = "$with_gnu_ld"; then
1192312410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1192412411 else
1192512412 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1193712424 version_type=linux # correct to gnu/linux during the next big refactor
1193812425 need_lib_prefix=no
1193912426 need_version=no
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1194112428 shlibpath_var=LD_LIBRARY_PATH
1194212429 shlibpath_overrides_runpath=no
1194312430 hardcode_into_libs=yes
1194512432
1194612433 uts4*)
1194712434 version_type=linux # correct to gnu/linux during the next big refactor
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
12435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12436 soname_spec='$libname$release$shared_ext$major'
1195012437 shlibpath_var=LD_LIBRARY_PATH
1195112438 ;;
1195212439
1195612443 esac
1195712444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1195812445 $as_echo "$dynamic_linker" >&6; }
11959 test "$dynamic_linker" = no && can_build_shared=no
12446 test no = "$dynamic_linker" && can_build_shared=no
1196012447
1196112448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11962 if test "$GCC" = yes; then
12449 if test yes = "$GCC"; then
1196312450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1196412451 fi
1196512452
11966 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11967 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11968 fi
11969 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11970 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11971 fi
12453 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12454 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12455 fi
12456
12457 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12458 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12459 fi
12460
12461 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12462 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12463
12464 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12465 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12466
12467 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12468 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12469
12470
12471
12472
12473
1197212474
1197312475
1197412476
1206612568 hardcode_action=
1206712569 if test -n "$hardcode_libdir_flag_spec" ||
1206812570 test -n "$runpath_var" ||
12069 test "X$hardcode_automatic" = "Xyes" ; then
12571 test yes = "$hardcode_automatic"; then
1207012572
1207112573 # We can hardcode non-existent directories.
12072 if test "$hardcode_direct" != no &&
12574 if test no != "$hardcode_direct" &&
1207312575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1207412576 # have to relink, otherwise we might link with an installed library
1207512577 # when we should be linking with a yet-to-be-installed one
12076 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12077 test "$hardcode_minus_L" != no; then
12578 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12579 test no != "$hardcode_minus_L"; then
1207812580 # Linking always hardcodes the temporary library directory.
1207912581 hardcode_action=relink
1208012582 else
1208912591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1209012592 $as_echo "$hardcode_action" >&6; }
1209112593
12092 if test "$hardcode_action" = relink ||
12093 test "$inherit_rpath" = yes; then
12594 if test relink = "$hardcode_action" ||
12595 test yes = "$inherit_rpath"; then
1209412596 # Fast installation is not supported
1209512597 enable_fast_install=no
12096 elif test "$shlibpath_overrides_runpath" = yes ||
12097 test "$enable_shared" = no; then
12598 elif test yes = "$shlibpath_overrides_runpath" ||
12599 test no = "$enable_shared"; then
1209812600 # Fast installation is not necessary
1209912601 enable_fast_install=needless
1210012602 fi
1210412606
1210512607
1210612608
12107 if test "x$enable_dlopen" != xyes; then
12609 if test yes != "$enable_dlopen"; then
1210812610 enable_dlopen=unknown
1210912611 enable_dlopen_self=unknown
1211012612 enable_dlopen_self_static=unknown
1211412616
1211512617 case $host_os in
1211612618 beos*)
12117 lt_cv_dlopen="load_add_on"
12619 lt_cv_dlopen=load_add_on
1211812620 lt_cv_dlopen_libs=
1211912621 lt_cv_dlopen_self=yes
1212012622 ;;
1212112623
1212212624 mingw* | pw32* | cegcc*)
12123 lt_cv_dlopen="LoadLibrary"
12625 lt_cv_dlopen=LoadLibrary
1212412626 lt_cv_dlopen_libs=
1212512627 ;;
1212612628
1212712629 cygwin*)
12128 lt_cv_dlopen="dlopen"
12630 lt_cv_dlopen=dlopen
1212912631 lt_cv_dlopen_libs=
1213012632 ;;
1213112633
1213212634 darwin*)
12133 # if libdl is installed we need to link against it
12635 # if libdl is installed we need to link against it
1213412636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1213512637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1213612638 if ${ac_cv_lib_dl_dlopen+:} false; then :
1216812670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1216912671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1217012672 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12172 else
12173
12174 lt_cv_dlopen="dyld"
12673 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12674 else
12675
12676 lt_cv_dlopen=dyld
1217512677 lt_cv_dlopen_libs=
1217612678 lt_cv_dlopen_self=yes
1217712679
1217812680 fi
1217912681
12682 ;;
12683
12684 tpf*)
12685 # Don't try to run any link tests for TPF. We know it's impossible
12686 # because TPF is a cross-compiler, and we know how we open DSOs.
12687 lt_cv_dlopen=dlopen
12688 lt_cv_dlopen_libs=
12689 lt_cv_dlopen_self=no
1218012690 ;;
1218112691
1218212692 *)
1218312693 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1218412694 if test "x$ac_cv_func_shl_load" = xyes; then :
12185 lt_cv_dlopen="shl_load"
12695 lt_cv_dlopen=shl_load
1218612696 else
1218712697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1218812698 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1222112731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1222212732 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1222312733 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12224 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12734 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1222512735 else
1222612736 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1222712737 if test "x$ac_cv_func_dlopen" = xyes; then :
12228 lt_cv_dlopen="dlopen"
12738 lt_cv_dlopen=dlopen
1222912739 else
1223012740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1223112741 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1226412774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1226512775 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1226612776 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12777 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1226812778 else
1226912779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1227012780 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1230312813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1230412814 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1230512815 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12816 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1230712817 else
1230812818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1230912819 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1234212852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1234312853 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1234412854 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12345 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12855 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1234612856 fi
1234712857
1234812858
1236312873 ;;
1236412874 esac
1236512875
12366 if test "x$lt_cv_dlopen" != xno; then
12876 if test no = "$lt_cv_dlopen"; then
12877 enable_dlopen=no
12878 else
1236712879 enable_dlopen=yes
12368 else
12369 enable_dlopen=no
1237012880 fi
1237112881
1237212882 case $lt_cv_dlopen in
1237312883 dlopen)
12374 save_CPPFLAGS="$CPPFLAGS"
12375 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12376
12377 save_LDFLAGS="$LDFLAGS"
12884 save_CPPFLAGS=$CPPFLAGS
12885 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12886
12887 save_LDFLAGS=$LDFLAGS
1237812888 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1237912889
12380 save_LIBS="$LIBS"
12890 save_LIBS=$LIBS
1238112891 LIBS="$lt_cv_dlopen_libs $LIBS"
1238212892
1238312893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1238512895 if ${lt_cv_dlopen_self+:} false; then :
1238612896 $as_echo_n "(cached) " >&6
1238712897 else
12388 if test "$cross_compiling" = yes; then :
12898 if test yes = "$cross_compiling"; then :
1238912899 lt_cv_dlopen_self=cross
1239012900 else
1239112901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1243212942 # endif
1243312943 #endif
1243412944
12435 /* When -fvisbility=hidden is used, assume the code has been annotated
12945 /* When -fvisibility=hidden is used, assume the code has been annotated
1243612946 correspondingly for the symbols needed. */
12437 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12947 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1243812948 int fnord () __attribute__((visibility("default")));
1243912949 #endif
1244012950
1246412974 (eval $ac_link) 2>&5
1246512975 ac_status=$?
1246612976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12467 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12977 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1246812978 (./conftest; exit; ) >&5 2>/dev/null
1246912979 lt_status=$?
1247012980 case x$lt_status in
1248412994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1248512995 $as_echo "$lt_cv_dlopen_self" >&6; }
1248612996
12487 if test "x$lt_cv_dlopen_self" = xyes; then
12997 if test yes = "$lt_cv_dlopen_self"; then
1248812998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1248912999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1249013000 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1249113001 if ${lt_cv_dlopen_self_static+:} false; then :
1249213002 $as_echo_n "(cached) " >&6
1249313003 else
12494 if test "$cross_compiling" = yes; then :
13004 if test yes = "$cross_compiling"; then :
1249513005 lt_cv_dlopen_self_static=cross
1249613006 else
1249713007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1253813048 # endif
1253913049 #endif
1254013050
12541 /* When -fvisbility=hidden is used, assume the code has been annotated
13051 /* When -fvisibility=hidden is used, assume the code has been annotated
1254213052 correspondingly for the symbols needed. */
12543 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13053 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1254413054 int fnord () __attribute__((visibility("default")));
1254513055 #endif
1254613056
1257013080 (eval $ac_link) 2>&5
1257113081 ac_status=$?
1257213082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13083 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1257413084 (./conftest; exit; ) >&5 2>/dev/null
1257513085 lt_status=$?
1257613086 case x$lt_status in
1259113101 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1259213102 fi
1259313103
12594 CPPFLAGS="$save_CPPFLAGS"
12595 LDFLAGS="$save_LDFLAGS"
12596 LIBS="$save_LIBS"
13104 CPPFLAGS=$save_CPPFLAGS
13105 LDFLAGS=$save_LDFLAGS
13106 LIBS=$save_LIBS
1259713107 ;;
1259813108 esac
1259913109
1263713147 # FIXME - insert some real tests, host_os isn't really good enough
1263813148 case $host_os in
1263913149 darwin*)
12640 if test -n "$STRIP" ; then
13150 if test -n "$STRIP"; then
1264113151 striplib="$STRIP -x"
1264213152 old_striplib="$STRIP -S"
1264313153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1266513175
1266613176
1266713177
12668 # Report which library types will actually be built
13178 # Report what library types will actually be built
1266913179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1267013180 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1267113181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1267313183
1267413184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1267513185 $as_echo_n "checking whether to build shared libraries... " >&6; }
12676 test "$can_build_shared" = "no" && enable_shared=no
13186 test no = "$can_build_shared" && enable_shared=no
1267713187
1267813188 # On AIX, shared libraries and static libraries use the same namespace, and
1267913189 # are all built from PIC.
1268013190 case $host_os in
1268113191 aix3*)
12682 test "$enable_shared" = yes && enable_static=no
13192 test yes = "$enable_shared" && enable_static=no
1268313193 if test -n "$RANLIB"; then
1268413194 archive_cmds="$archive_cmds~\$RANLIB \$lib"
1268513195 postinstall_cmds='$RANLIB $lib'
1268713197 ;;
1268813198
1268913199 aix[4-9]*)
12690 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12691 test "$enable_shared" = yes && enable_static=no
13200 if test ia64 != "$host_cpu"; then
13201 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13202 yes,aix,yes) ;; # shared object as lib.so file only
13203 yes,svr4,*) ;; # shared object as lib.so archive member only
13204 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13205 esac
1269213206 fi
1269313207 ;;
1269413208 esac
1269813212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1269913213 $as_echo_n "checking whether to build static libraries... " >&6; }
1270013214 # Make sure either enable_shared or enable_static is yes.
12701 test "$enable_shared" = yes || enable_static=yes
13215 test yes = "$enable_shared" || enable_static=yes
1270213216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1270313217 $as_echo "$enable_static" >&6; }
1270413218
1271213226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1271313227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271413228
12715 CC="$lt_save_CC"
12716
12717 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12718 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12719 (test "X$CXX" != "Xg++"))) ; then
13229 CC=$lt_save_CC
13230
13231 if test -n "$CXX" && ( test no != "$CXX" &&
13232 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13233 (test g++ != "$CXX"))); then
1272013234 ac_ext=cpp
1272113235 ac_cpp='$CXXCPP $CPPFLAGS'
1272213236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289513409 # the CXX compiler isn't working. Some variables (like enable_shared)
1289613410 # are currently assumed to apply to all compilers on this platform,
1289713411 # and will be corrupted by setting them based on a non-working compiler.
12898 if test "$_lt_caught_CXX_error" != yes; then
13412 if test yes != "$_lt_caught_CXX_error"; then
1289913413 # Code to be used in simple compile tests
1290013414 lt_simple_compile_test_code="int some_variable = 0;"
1290113415
1295613470 CFLAGS=$CXXFLAGS
1295713471 compiler=$CC
1295813472 compiler_CXX=$CC
12959 for cc_temp in $compiler""; do
12960 case $cc_temp in
12961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12963 \-*) ;;
12964 *) break;;
12965 esac
12966 done
12967 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13473 func_cc_basename $compiler
13474 cc_basename=$func_cc_basename_result
1296813475
1296913476
1297013477 if test -n "$compiler"; then
1297113478 # We don't want -fno-exception when compiling C++ code, so set the
1297213479 # no_builtin_flag separately
12973 if test "$GXX" = yes; then
13480 if test yes = "$GXX"; then
1297413481 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
1297513482 else
1297613483 lt_prog_compiler_no_builtin_flag_CXX=
1297713484 fi
1297813485
12979 if test "$GXX" = yes; then
13486 if test yes = "$GXX"; then
1298013487 # Set up default GNU C++ configuration
1298113488
1298213489
1298313490
1298413491 # Check whether --with-gnu-ld was given.
1298513492 if test "${with_gnu_ld+set}" = set; then :
12986 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13493 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
1298713494 else
1298813495 with_gnu_ld=no
1298913496 fi
1299013497
1299113498 ac_prog=ld
12992 if test "$GCC" = yes; then
13499 if test yes = "$GCC"; then
1299313500 # Check if gcc -print-prog-name=ld gives a path.
1299413501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
1299513502 $as_echo_n "checking for ld used by $CC... " >&6; }
1299613503 case $host in
1299713504 *-*-mingw*)
12998 # gcc leaves a trailing carriage return which upsets mingw
13505 # gcc leaves a trailing carriage return, which upsets mingw
1299913506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1300013507 *)
1300113508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1300913516 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
1301013517 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1301113518 done
13012 test -z "$LD" && LD="$ac_prog"
13519 test -z "$LD" && LD=$ac_prog
1301313520 ;;
1301413521 "")
1301513522 # If it fails, then pretend we aren't using GCC.
1302013527 with_gnu_ld=unknown
1302113528 ;;
1302213529 esac
13023 elif test "$with_gnu_ld" = yes; then
13530 elif test yes = "$with_gnu_ld"; then
1302413531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
1302513532 $as_echo_n "checking for GNU ld... " >&6; }
1302613533 else
1303113538 $as_echo_n "(cached) " >&6
1303213539 else
1303313540 if test -z "$LD"; then
13034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13541 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1303513542 for ac_dir in $PATH; do
13036 IFS="$lt_save_ifs"
13543 IFS=$lt_save_ifs
1303713544 test -z "$ac_dir" && ac_dir=.
1303813545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13039 lt_cv_path_LD="$ac_dir/$ac_prog"
13546 lt_cv_path_LD=$ac_dir/$ac_prog
1304013547 # Check to see if the program is GNU ld. I'd rather use --version,
1304113548 # but apparently some variants of GNU ld only accept -v.
1304213549 # Break only if it was the GNU/non-GNU ld that we prefer.
1304313550 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1304413551 *GNU* | *'with BFD'*)
13045 test "$with_gnu_ld" != no && break
13552 test no != "$with_gnu_ld" && break
1304613553 ;;
1304713554 *)
13048 test "$with_gnu_ld" != yes && break
13555 test yes != "$with_gnu_ld" && break
1304913556 ;;
1305013557 esac
1305113558 fi
1305213559 done
13053 IFS="$lt_save_ifs"
13054 else
13055 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13056 fi
13057 fi
13058
13059 LD="$lt_cv_path_LD"
13560 IFS=$lt_save_ifs
13561 else
13562 lt_cv_path_LD=$LD # Let the user override the test with a path.
13563 fi
13564 fi
13565
13566 LD=$lt_cv_path_LD
1306013567 if test -n "$LD"; then
1306113568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
1306213569 $as_echo "$LD" >&6; }
1309213599
1309313600 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1309413601 # archiving commands below assume that GNU ld is being used.
13095 if test "$with_gnu_ld" = yes; then
13096 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13097 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'
13098
13099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13602 if test yes = "$with_gnu_ld"; then
13603 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13604 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'
13605
13606 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13607 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1310113608
1310213609 # If archive_cmds runs LD, not CC, wlarc should be empty
1310313610 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
1310413611 # investigate it a little bit more. (MM)
13105 wlarc='${wl}'
13612 wlarc='$wl'
1310613613
1310713614 # ancient GNU ld didn't support --whole-archive et. al.
1310813615 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
1310913616 $GREP 'no-whole-archive' > /dev/null; then
13110 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13617 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1311113618 else
1311213619 whole_archive_flag_spec_CXX=
1311313620 fi
1314413651 ld_shlibs_CXX=no
1314513652 ;;
1314613653 aix[4-9]*)
13147 if test "$host_cpu" = ia64; then
13654 if test ia64 = "$host_cpu"; then
1314813655 # On IA64, the linker does run time linking by default, so we don't
1314913656 # have to do anything special.
1315013657 aix_use_runtimelinking=no
1315113658 exp_sym_flag='-Bexport'
13152 no_entry_flag=""
13659 no_entry_flag=
1315313660 else
1315413661 aix_use_runtimelinking=no
1315513662
1315613663 # Test if we are trying to use run time linking or normal
1315713664 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13158 # need to do runtime linking.
13665 # have runtime linking enabled, and use it for executables.
13666 # For shared libraries, we enable/disable runtime linking
13667 # depending on the kind of the shared library created -
13668 # when "with_aix_soname,aix_use_runtimelinking" is:
13669 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13670 # "aix,yes" lib.so shared, rtl:yes, for executables
13671 # lib.a static archive
13672 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13673 # lib.a(lib.so.V) shared, rtl:no, for executables
13674 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13675 # lib.a(lib.so.V) shared, rtl:no
13676 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13677 # lib.a static archive
1315913678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1316013679 for ld_flag in $LDFLAGS; do
1316113680 case $ld_flag in
1316513684 ;;
1316613685 esac
1316713686 done
13687 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13688 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13689 # so we don't have lib.a shared libs to link our executables.
13690 # We have to force runtime linking in this case.
13691 aix_use_runtimelinking=yes
13692 LDFLAGS="$LDFLAGS -Wl,-brtl"
13693 fi
1316813694 ;;
1316913695 esac
1317013696
1318313709 hardcode_direct_absolute_CXX=yes
1318413710 hardcode_libdir_separator_CXX=':'
1318513711 link_all_deplibs_CXX=yes
13186 file_list_spec_CXX='${wl}-f,'
13187
13188 if test "$GXX" = yes; then
13712 file_list_spec_CXX='$wl-f,'
13713 case $with_aix_soname,$aix_use_runtimelinking in
13714 aix,*) ;; # no import file
13715 svr4,* | *,yes) # use import file
13716 # The Import File defines what to hardcode.
13717 hardcode_direct_CXX=no
13718 hardcode_direct_absolute_CXX=no
13719 ;;
13720 esac
13721
13722 if test yes = "$GXX"; then
1318913723 case $host_os in aix4.[012]|aix4.[012].*)
1319013724 # We only want to do this on AIX 4.2 and lower, the check
1319113725 # below for broken collect2 doesn't work under 4.3+
13192 collect2name=`${CC} -print-prog-name=collect2`
13726 collect2name=`$CC -print-prog-name=collect2`
1319313727 if test -f "$collect2name" &&
1319413728 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1319513729 then
1320713741 fi
1320813742 esac
1320913743 shared_flag='-shared'
13210 if test "$aix_use_runtimelinking" = yes; then
13211 shared_flag="$shared_flag "'${wl}-G'
13744 if test yes = "$aix_use_runtimelinking"; then
13745 shared_flag=$shared_flag' $wl-G'
1321213746 fi
13747 # Need to ensure runtime linking is disabled for the traditional
13748 # shared library, or the linker may eventually find shared libraries
13749 # /with/ Import File - we do not want to mix them.
13750 shared_flag_aix='-shared'
13751 shared_flag_svr4='-shared $wl-G'
1321313752 else
1321413753 # not using gcc
13215 if test "$host_cpu" = ia64; then
13754 if test ia64 = "$host_cpu"; then
1321613755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1321713756 # chokes on -Wl,-G. The following line is correct:
1321813757 shared_flag='-G'
1321913758 else
13220 if test "$aix_use_runtimelinking" = yes; then
13221 shared_flag='${wl}-G'
13759 if test yes = "$aix_use_runtimelinking"; then
13760 shared_flag='$wl-G'
1322213761 else
13223 shared_flag='${wl}-bM:SRE'
13762 shared_flag='$wl-bM:SRE'
1322413763 fi
13764 shared_flag_aix='$wl-bM:SRE'
13765 shared_flag_svr4='$wl-G'
1322513766 fi
1322613767 fi
1322713768
13228 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13769 export_dynamic_flag_spec_CXX='$wl-bexpall'
1322913770 # It seems that -bexpall does not export symbols beginning with
1323013771 # underscore (_), so it is better to generate a list of symbols to
1323113772 # export.
1323213773 always_export_symbols_CXX=yes
13233 if test "$aix_use_runtimelinking" = yes; then
13774 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1323413775 # Warning - without using the other runtime loading flags (-brtl),
1323513776 # -berok will link without error, but may produce a broken library.
13236 allow_undefined_flag_CXX='-berok'
13777 # The "-G" linker flag allows undefined symbols.
13778 no_undefined_flag_CXX='-bernotok'
1323713779 # Determine the default libpath from the value encoded in an empty
1323813780 # executable.
13239 if test "${lt_cv_aix_libpath+set}" = set; then
13781 if test set = "${lt_cv_aix_libpath+set}"; then
1324013782 aix_libpath=$lt_cv_aix_libpath
1324113783 else
1324213784 if ${lt_cv_aix_libpath__CXX+:} false; then :
1327113813 rm -f core conftest.err conftest.$ac_objext \
1327213814 conftest$ac_exeext conftest.$ac_ext
1327313815 if test -z "$lt_cv_aix_libpath__CXX"; then
13274 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13816 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1327513817 fi
1327613818
1327713819 fi
1327913821 aix_libpath=$lt_cv_aix_libpath__CXX
1328013822 fi
1328113823
13282 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13283
13284 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"
13824 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13825
13826 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
1328513827 else
13286 if test "$host_cpu" = ia64; then
13287 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13828 if test ia64 = "$host_cpu"; then
13829 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
1328813830 allow_undefined_flag_CXX="-z nodefs"
13289 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"
13831 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"
1329013832 else
1329113833 # Determine the default libpath from the value encoded in an
1329213834 # empty executable.
13293 if test "${lt_cv_aix_libpath+set}" = set; then
13835 if test set = "${lt_cv_aix_libpath+set}"; then
1329413836 aix_libpath=$lt_cv_aix_libpath
1329513837 else
1329613838 if ${lt_cv_aix_libpath__CXX+:} false; then :
1332513867 rm -f core conftest.err conftest.$ac_objext \
1332613868 conftest$ac_exeext conftest.$ac_ext
1332713869 if test -z "$lt_cv_aix_libpath__CXX"; then
13328 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13870 lt_cv_aix_libpath__CXX=/usr/lib:/lib
1332913871 fi
1333013872
1333113873 fi
1333313875 aix_libpath=$lt_cv_aix_libpath__CXX
1333413876 fi
1333513877
13336 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13878 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1333713879 # Warning - without using the other run time loading flags,
1333813880 # -berok will link without error, but may produce a broken library.
13339 no_undefined_flag_CXX=' ${wl}-bernotok'
13340 allow_undefined_flag_CXX=' ${wl}-berok'
13341 if test "$with_gnu_ld" = yes; then
13881 no_undefined_flag_CXX=' $wl-bernotok'
13882 allow_undefined_flag_CXX=' $wl-berok'
13883 if test yes = "$with_gnu_ld"; then
1334213884 # We only use this code for GNU lds that support --whole-archive.
13343 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13885 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1334413886 else
1334513887 # Exported symbols can be pulled into shared objects from archives
1334613888 whole_archive_flag_spec_CXX='$convenience'
1334713889 fi
1334813890 archive_cmds_need_lc_CXX=yes
13349 # This is similar to how AIX traditionally builds its shared
13350 # libraries.
13351 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'
13891 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13892 # -brtl affects multiple linker settings, -berok does not and is overridden later
13893 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13894 if test svr4 != "$with_aix_soname"; then
13895 # This is similar to how AIX traditionally builds its shared
13896 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13897 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'
13898 fi
13899 if test aix != "$with_aix_soname"; then
13900 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'
13901 else
13902 # used by -dlpreopen to get the symbols
13903 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13904 fi
13905 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
1335213906 fi
1335313907 fi
1335413908 ;;
1335813912 allow_undefined_flag_CXX=unsupported
1335913913 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1336013914 # support --undefined. This deserves some investigation. FIXME
13361 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13915 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1336213916 else
1336313917 ld_shlibs_CXX=no
1336413918 fi
1338613940 # Tell ltmain to make .lib files, not .a files.
1338713941 libext=lib
1338813942 # Tell ltmain to make .dll files, not .so files.
13389 shrext_cmds=".dll"
13943 shrext_cmds=.dll
1339013944 # FIXME: Setting linknames here is a bad hack.
13391 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13392 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13393 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13394 else
13395 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13396 fi~
13397 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13398 linknames='
13945 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13946 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13947 cp "$export_symbols" "$output_objdir/$soname.def";
13948 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13949 else
13950 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13951 fi~
13952 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13953 linknames='
1339913954 # The linker will not automatically build a static lib if we build a DLL.
1340013955 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
1340113956 enable_shared_with_static_runtimes_CXX=yes
1340213957 # Don't use ranlib
1340313958 old_postinstall_cmds_CXX='chmod 644 $oldlib'
1340413959 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13405 lt_tool_outputfile="@TOOL_OUTPUT@"~
13406 case $lt_outputfile in
13407 *.exe|*.EXE) ;;
13408 *)
13409 lt_outputfile="$lt_outputfile.exe"
13410 lt_tool_outputfile="$lt_tool_outputfile.exe"
13411 ;;
13412 esac~
13413 func_to_tool_file "$lt_outputfile"~
13414 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13415 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13416 $RM "$lt_outputfile.manifest";
13417 fi'
13960 lt_tool_outputfile="@TOOL_OUTPUT@"~
13961 case $lt_outputfile in
13962 *.exe|*.EXE) ;;
13963 *)
13964 lt_outputfile=$lt_outputfile.exe
13965 lt_tool_outputfile=$lt_tool_outputfile.exe
13966 ;;
13967 esac~
13968 func_to_tool_file "$lt_outputfile"~
13969 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13970 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13971 $RM "$lt_outputfile.manifest";
13972 fi'
1341813973 ;;
1341913974 *)
1342013975 # g++
1342113976 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
1342213977 # as there is no search path for DLLs.
1342313978 hardcode_libdir_flag_spec_CXX='-L$libdir'
13424 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13979 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
1342513980 allow_undefined_flag_CXX=unsupported
1342613981 always_export_symbols_CXX=no
1342713982 enable_shared_with_static_runtimes_CXX=yes
1342813983
1342913984 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13430 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'
13431 # If the export-symbols file already is a .def file (1st line
13432 # is EXPORTS), use it as is; otherwise, prepend...
13433 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13434 cp $export_symbols $output_objdir/$soname.def;
13435 else
13436 echo EXPORTS > $output_objdir/$soname.def;
13437 cat $export_symbols >> $output_objdir/$soname.def;
13438 fi~
13439 $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'
13985 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'
13986 # If the export-symbols file already is a .def file, use it as
13987 # is; otherwise, prepend EXPORTS...
13988 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13989 cp $export_symbols $output_objdir/$soname.def;
13990 else
13991 echo EXPORTS > $output_objdir/$soname.def;
13992 cat $export_symbols >> $output_objdir/$soname.def;
13993 fi~
13994 $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'
1344013995 else
1344113996 ld_shlibs_CXX=no
1344213997 fi
1345014005 hardcode_direct_CXX=no
1345114006 hardcode_automatic_CXX=yes
1345214007 hardcode_shlibpath_var_CXX=unsupported
13453 if test "$lt_cv_ld_force_load" = "yes"; then
13454 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\"`'
14008 if test yes = "$lt_cv_ld_force_load"; then
14009 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\"`'
1345514010
1345614011 else
1345714012 whole_archive_flag_spec_CXX=''
1345814013 fi
1345914014 link_all_deplibs_CXX=yes
13460 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14015 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
1346114016 case $cc_basename in
13462 ifort*) _lt_dar_can_shared=yes ;;
14017 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1346314018 *) _lt_dar_can_shared=$GCC ;;
1346414019 esac
13465 if test "$_lt_dar_can_shared" = "yes"; then
14020 if test yes = "$_lt_dar_can_shared"; then
1346614021 output_verbose_link_cmd=func_echo_all
13467 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}"
13468 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13469 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}"
13470 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}"
13471 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13472 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}"
13473 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}"
14022 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"
14023 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14024 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"
14025 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"
14026 if test yes != "$lt_cv_apple_cc_single_mod"; then
14027 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"
14028 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"
1347414029 fi
1347514030
1347614031 else
1347714032 ld_shlibs_CXX=no
1347814033 fi
1347914034
14035 ;;
14036
14037 os2*)
14038 hardcode_libdir_flag_spec_CXX='-L$libdir'
14039 hardcode_minus_L_CXX=yes
14040 allow_undefined_flag_CXX=unsupported
14041 shrext_cmds=.dll
14042 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14043 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14044 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14045 $ECHO EXPORTS >> $output_objdir/$libname.def~
14046 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14047 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14048 emximp -o $lib $output_objdir/$libname.def'
14049 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14050 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14051 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14052 $ECHO EXPORTS >> $output_objdir/$libname.def~
14053 prefix_cmds="$SED"~
14054 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14055 prefix_cmds="$prefix_cmds -e 1d";
14056 fi~
14057 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14058 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14059 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14060 emximp -o $lib $output_objdir/$libname.def'
14061 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14062 enable_shared_with_static_runtimes_CXX=yes
1348014063 ;;
1348114064
1348214065 dgux*)
1351414097 ;;
1351514098
1351614099 haiku*)
13517 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14100 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1351814101 link_all_deplibs_CXX=yes
1351914102 ;;
1352014103
1352114104 hpux9*)
13522 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14105 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1352314106 hardcode_libdir_separator_CXX=:
13524 export_dynamic_flag_spec_CXX='${wl}-E'
14107 export_dynamic_flag_spec_CXX='$wl-E'
1352514108 hardcode_direct_CXX=yes
1352614109 hardcode_minus_L_CXX=yes # Not in the search PATH,
1352714110 # but as the default
1353314116 ld_shlibs_CXX=no
1353414117 ;;
1353514118 aCC*)
13536 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'
14119 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'
1353714120 # Commands to make compiler produce verbose output that lists
1353814121 # what "hidden" libraries, object files and flags are used when
1353914122 # linking a shared library.
1354214125 # explicitly linking system object files so we need to strip them
1354314126 # from the output so that they don't get included in the library
1354414127 # dependencies.
13545 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"'
14128 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"'
1354614129 ;;
1354714130 *)
13548 if test "$GXX" = yes; then
13549 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'
14131 if test yes = "$GXX"; then
14132 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'
1355014133 else
1355114134 # FIXME: insert proper C++ library support
1355214135 ld_shlibs_CXX=no
1355614139 ;;
1355714140
1355814141 hpux10*|hpux11*)
13559 if test $with_gnu_ld = no; then
13560 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14142 if test no = "$with_gnu_ld"; then
14143 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1356114144 hardcode_libdir_separator_CXX=:
1356214145
1356314146 case $host_cpu in
1356414147 hppa*64*|ia64*)
1356514148 ;;
1356614149 *)
13567 export_dynamic_flag_spec_CXX='${wl}-E'
14150 export_dynamic_flag_spec_CXX='$wl-E'
1356814151 ;;
1356914152 esac
1357014153 fi
1359014173 aCC*)
1359114174 case $host_cpu in
1359214175 hppa*64*)
13593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14176 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1359414177 ;;
1359514178 ia64*)
13596 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14179 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1359714180 ;;
1359814181 *)
13599 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14182 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1360014183 ;;
1360114184 esac
1360214185 # Commands to make compiler produce verbose output that lists
1360714190 # explicitly linking system object files so we need to strip them
1360814191 # from the output so that they don't get included in the library
1360914192 # dependencies.
13610 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"'
14193 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"'
1361114194 ;;
1361214195 *)
13613 if test "$GXX" = yes; then
13614 if test $with_gnu_ld = no; then
14196 if test yes = "$GXX"; then
14197 if test no = "$with_gnu_ld"; then
1361514198 case $host_cpu in
1361614199 hppa*64*)
13617 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14200 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1361814201 ;;
1361914202 ia64*)
13620 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14203 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1362114204 ;;
1362214205 *)
13623 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'
14206 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'
1362414207 ;;
1362514208 esac
1362614209 fi
1363514218 interix[3-9]*)
1363614219 hardcode_direct_CXX=no
1363714220 hardcode_shlibpath_var_CXX=no
13638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13639 export_dynamic_flag_spec_CXX='${wl}-E'
14221 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14222 export_dynamic_flag_spec_CXX='$wl-E'
1364014223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
1364114224 # Instead, shared libraries are loaded at an image base (0x10000000 by
1364214225 # default) and relocated if they conflict, which is a slow very memory
1364314226 # consuming and fragmenting process. To avoid this, we pick a random,
1364414227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
1364514228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13646 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'
13647 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'
14229 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'
14230 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'
1364814231 ;;
1364914232 irix5* | irix6*)
1365014233 case $cc_basename in
1365114234 CC*)
1365214235 # SGI C++
13653 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'
14236 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'
1365414237
1365514238 # Archives containing C++ object files must be created using
1365614239 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1365914242 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
1366014243 ;;
1366114244 *)
13662 if test "$GXX" = yes; then
13663 if test "$with_gnu_ld" = no; then
13664 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'
14245 if test yes = "$GXX"; then
14246 if test no = "$with_gnu_ld"; then
14247 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'
1366514248 else
13666 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'
14249 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'
1366714250 fi
1366814251 fi
1366914252 link_all_deplibs_CXX=yes
1367014253 ;;
1367114254 esac
13672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14255 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1367314256 hardcode_libdir_separator_CXX=:
1367414257 inherit_rpath_CXX=yes
1367514258 ;;
1368214265 # KCC will only create a shared library if the output file
1368314266 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1368414267 # to its proper name (with version) after linking.
13685 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'
13686 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'
14268 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'
14269 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'
1368714270 # Commands to make compiler produce verbose output that lists
1368814271 # what "hidden" libraries, object files and flags are used when
1368914272 # linking a shared library.
1369214275 # explicitly linking system object files so we need to strip them
1369314276 # from the output so that they don't get included in the library
1369414277 # dependencies.
13695 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"'
13696
13697 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13698 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14278 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"'
14279
14280 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14281 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1369914282
1370014283 # Archives containing C++ object files must be created using
1370114284 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1370914292 # earlier do not add the objects themselves.
1371014293 case `$CC -V 2>&1` in
1371114294 *"Version 7."*)
13712 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13713 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'
14295 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14296 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'
1371414297 ;;
1371514298 *) # Version 8.0 or newer
1371614299 tmp_idyn=
1371714300 case $host_cpu in
1371814301 ia64*) tmp_idyn=' -i_dynamic';;
1371914302 esac
13720 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13721 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'
14303 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14304 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'
1372214305 ;;
1372314306 esac
1372414307 archive_cmds_need_lc_CXX=no
13725 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13726 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13727 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14308 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14309 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14310 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1372814311 ;;
1372914312 pgCC* | pgcpp*)
1373014313 # Portland Group C++ compiler
1373114314 case `$CC -V` in
1373214315 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
1373314316 prelink_cmds_CXX='tpldir=Template.dir~
13734 rm -rf $tpldir~
13735 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13736 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14317 rm -rf $tpldir~
14318 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14319 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1373714320 old_archive_cmds_CXX='tpldir=Template.dir~
13738 rm -rf $tpldir~
13739 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13740 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13741 $RANLIB $oldlib'
14321 rm -rf $tpldir~
14322 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14323 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14324 $RANLIB $oldlib'
1374214325 archive_cmds_CXX='tpldir=Template.dir~
13743 rm -rf $tpldir~
13744 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13745 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14326 rm -rf $tpldir~
14327 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14328 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
1374614329 archive_expsym_cmds_CXX='tpldir=Template.dir~
13747 rm -rf $tpldir~
13748 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13749 $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'
14330 rm -rf $tpldir~
14331 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14332 $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'
1375014333 ;;
1375114334 *) # Version 6 and above use weak symbols
13752 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13753 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'
14335 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14336 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'
1375414337 ;;
1375514338 esac
1375614339
13757 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13759 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'
14340 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14341 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14342 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'
1376014343 ;;
1376114344 cxx*)
1376214345 # Compaq C++
13763 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13764 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'
14346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14347 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'
1376514348
1376614349 runpath_var=LD_RUN_PATH
1376714350 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1377514358 # explicitly linking system object files so we need to strip them
1377614359 # from the output so that they don't get included in the library
1377714360 # dependencies.
13778 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'
14361 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'
1377914362 ;;
1378014363 xl* | mpixl* | bgxl*)
1378114364 # IBM XL 8.0 on PPC, with GNU ld
13782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13783 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13784 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785 if test "x$supports_anon_versioning" = xyes; then
14365 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14366 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14367 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14368 if test yes = "$supports_anon_versioning"; then
1378614369 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13788 echo "local: *; };" >> $output_objdir/$libname.ver~
13789 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14371 echo "local: *; };" >> $output_objdir/$libname.ver~
14372 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1379014373 fi
1379114374 ;;
1379214375 *)
1379414377 *Sun\ C*)
1379514378 # Sun C++ 5.9
1379614379 no_undefined_flag_CXX=' -zdefs'
13797 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13798 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'
14380 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14381 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'
1379914382 hardcode_libdir_flag_spec_CXX='-R$libdir'
13800 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'
14383 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'
1380114384 compiler_needs_object_CXX=yes
1380214385
1380314386 # Not sure whether something based on
1385514438 ld_shlibs_CXX=yes
1385614439 ;;
1385714440
13858 openbsd2*)
13859 # C++ shared libraries are fairly broken
13860 ld_shlibs_CXX=no
13861 ;;
13862
13863 openbsd*)
14441 openbsd* | bitrig*)
1386414442 if test -f /usr/libexec/ld.so; then
1386514443 hardcode_direct_CXX=yes
1386614444 hardcode_shlibpath_var_CXX=no
1386714445 hardcode_direct_absolute_CXX=yes
1386814446 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13869 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13871 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13872 export_dynamic_flag_spec_CXX='${wl}-E'
13873 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14447 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14449 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14450 export_dynamic_flag_spec_CXX='$wl-E'
14451 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1387414452 fi
1387514453 output_verbose_link_cmd=func_echo_all
1387614454 else
1388614464 # KCC will only create a shared library if the output file
1388714465 # ends with ".so" (or ".sl" for HP-UX), so rename the library
1388814466 # to its proper name (with version) after linking.
13889 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'
13890
13891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14467 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'
14468
14469 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
1389214470 hardcode_libdir_separator_CXX=:
1389314471
1389414472 # Archives containing C++ object files must be created using
1390614484 cxx*)
1390714485 case $host in
1390814486 osf3*)
13909 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13910 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'
13911 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14487 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14488 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'
14489 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1391214490 ;;
1391314491 *)
1391414492 allow_undefined_flag_CXX=' -expect_unresolved \*'
13915 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'
14493 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'
1391614494 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13917 echo "-hidden">> $lib.exp~
13918 $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~
13919 $RM $lib.exp'
14495 echo "-hidden">> $lib.exp~
14496 $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~
14497 $RM $lib.exp'
1392014498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1392114499 ;;
1392214500 esac
1393114509 # explicitly linking system object files so we need to strip them
1393214510 # from the output so that they don't get included in the library
1393314511 # dependencies.
13934 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"'
14512 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"'
1393514513 ;;
1393614514 *)
13937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13938 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14515 if test yes,no = "$GXX,$with_gnu_ld"; then
14516 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
1393914517 case $host in
1394014518 osf3*)
13941 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'
14519 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'
1394214520 ;;
1394314521 *)
13944 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'
14522 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'
1394514523 ;;
1394614524 esac
1394714525
13948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14526 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1394914527 hardcode_libdir_separator_CXX=:
1395014528
1395114529 # Commands to make compiler produce verbose output that lists
1399114569 # Sun C++ 4.2, 5.x and Centerline C++
1399214570 archive_cmds_need_lc_CXX=yes
1399314571 no_undefined_flag_CXX=' -zdefs'
13994 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14572 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1399514573 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13996 $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'
14574 $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'
1399714575
1399814576 hardcode_libdir_flag_spec_CXX='-R$libdir'
1399914577 hardcode_shlibpath_var_CXX=no
1400114579 solaris2.[0-5] | solaris2.[0-5].*) ;;
1400214580 *)
1400314581 # The compiler driver will combine and reorder linker options,
14004 # but understands `-z linker_flag'.
14582 # but understands '-z linker_flag'.
1400514583 # Supported since Solaris 2.6 (maybe 2.5.1?)
1400614584 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
1400714585 ;;
1401814596 ;;
1401914597 gcx*)
1402014598 # Green Hills C++ Compiler
14021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1402214600
1402314601 # The C++ compiler must be used to create the archive.
1402414602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
1402514603 ;;
1402614604 *)
1402714605 # GNU C++ compiler with Solaris linker
14028 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14029 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14606 if test yes,no = "$GXX,$with_gnu_ld"; then
14607 no_undefined_flag_CXX=' $wl-z ${wl}defs'
1403014608 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14031 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14609 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1403214610 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14033 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14611 $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'
1403414612
1403514613 # Commands to make compiler produce verbose output that lists
1403614614 # what "hidden" libraries, object files and flags are used when
1403714615 # linking a shared library.
1403814616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1403914617 else
14040 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14618 # g++ 2.7 appears to require '-G' NOT '-shared' on this
1404114619 # platform.
14042 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14620 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1404314621 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14044 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14622 $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'
1404514623
1404614624 # Commands to make compiler produce verbose output that lists
1404714625 # what "hidden" libraries, object files and flags are used when
1404914627 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
1405014628 fi
1405114629
14052 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14630 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
1405314631 case $host_os in
1405414632 solaris2.[0-5] | solaris2.[0-5].*) ;;
1405514633 *)
14056 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14634 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1405714635 ;;
1405814636 esac
1405914637 fi
1406214640 ;;
1406314641
1406414642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14065 no_undefined_flag_CXX='${wl}-z,text'
14643 no_undefined_flag_CXX='$wl-z,text'
1406614644 archive_cmds_need_lc_CXX=no
1406714645 hardcode_shlibpath_var_CXX=no
1406814646 runpath_var='LD_RUN_PATH'
1406914647
1407014648 case $cc_basename in
1407114649 CC*)
14072 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14073 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1407414652 ;;
1407514653 *)
14076 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14077 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14655 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1407814656 ;;
1407914657 esac
1408014658 ;;
1408114659
1408214660 sysv5* | sco3.2v5* | sco5v6*)
14083 # Note: We can NOT use -z defs as we might desire, because we do not
14661 # Note: We CANNOT use -z defs as we might desire, because we do not
1408414662 # link with -lc, and that would cause any symbols used from libc to
1408514663 # always be unresolved, which means just about no library would
1408614664 # ever link correctly. If we're not using GNU ld we use -z text
1408714665 # though, which does catch some bad symbols but isn't as heavy-handed
1408814666 # as -z defs.
14089 no_undefined_flag_CXX='${wl}-z,text'
14090 allow_undefined_flag_CXX='${wl}-z,nodefs'
14667 no_undefined_flag_CXX='$wl-z,text'
14668 allow_undefined_flag_CXX='$wl-z,nodefs'
1409114669 archive_cmds_need_lc_CXX=no
1409214670 hardcode_shlibpath_var_CXX=no
14093 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14671 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
1409414672 hardcode_libdir_separator_CXX=':'
1409514673 link_all_deplibs_CXX=yes
14096 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14674 export_dynamic_flag_spec_CXX='$wl-Bexport'
1409714675 runpath_var='LD_RUN_PATH'
1409814676
1409914677 case $cc_basename in
1410014678 CC*)
14101 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14102 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14679 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14680 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1410314681 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14104 '"$old_archive_cmds_CXX"
14682 '"$old_archive_cmds_CXX"
1410514683 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14106 '"$reload_cmds_CXX"
14684 '"$reload_cmds_CXX"
1410714685 ;;
1410814686 *)
14109 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14110 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14687 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14688 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1411114689 ;;
1411214690 esac
1411314691 ;;
1413914717
1414014718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1414114719 $as_echo "$ld_shlibs_CXX" >&6; }
14142 test "$ld_shlibs_CXX" = no && can_build_shared=no
14143
14144 GCC_CXX="$GXX"
14145 LD_CXX="$LD"
14720 test no = "$ld_shlibs_CXX" && can_build_shared=no
14721
14722 GCC_CXX=$GXX
14723 LD_CXX=$LD
1414614724
1414714725 ## CAVEAT EMPTOR:
1414814726 ## There is no encapsulation within the following macros, do not change
1418614764 pre_test_object_deps_done=no
1418714765
1418814766 for p in `eval "$output_verbose_link_cmd"`; do
14189 case ${prev}${p} in
14767 case $prev$p in
1419014768
1419114769 -L* | -R* | -l*)
1419214770 # Some compilers place space between "-{L,R}" and the path.
1419314771 # Remove the space.
14194 if test $p = "-L" ||
14195 test $p = "-R"; then
14772 if test x-L = "$p" ||
14773 test x-R = "$p"; then
1419614774 prev=$p
1419714775 continue
1419814776 fi
1420814786 case $p in
1420914787 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
1421014788 esac
14211 if test "$pre_test_object_deps_done" = no; then
14212 case ${prev} in
14789 if test no = "$pre_test_object_deps_done"; then
14790 case $prev in
1421314791 -L | -R)
1421414792 # Internal compiler library paths should come after those
1421514793 # provided the user. The postdeps already come after the
1421614794 # user supplied libs so there is no need to process them.
1421714795 if test -z "$compiler_lib_search_path_CXX"; then
14218 compiler_lib_search_path_CXX="${prev}${p}"
14796 compiler_lib_search_path_CXX=$prev$p
1421914797 else
14220 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14798 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
1422114799 fi
1422214800 ;;
1422314801 # The "-l" case would never come before the object being
1422514803 esac
1422614804 else
1422714805 if test -z "$postdeps_CXX"; then
14228 postdeps_CXX="${prev}${p}"
14806 postdeps_CXX=$prev$p
1422914807 else
14230 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14808 postdeps_CXX="${postdeps_CXX} $prev$p"
1423114809 fi
1423214810 fi
1423314811 prev=
1424214820 continue
1424314821 fi
1424414822
14245 if test "$pre_test_object_deps_done" = no; then
14823 if test no = "$pre_test_object_deps_done"; then
1424614824 if test -z "$predep_objects_CXX"; then
14247 predep_objects_CXX="$p"
14825 predep_objects_CXX=$p
1424814826 else
1424914827 predep_objects_CXX="$predep_objects_CXX $p"
1425014828 fi
1425114829 else
1425214830 if test -z "$postdep_objects_CXX"; then
14253 postdep_objects_CXX="$p"
14831 postdep_objects_CXX=$p
1425414832 else
1425514833 postdep_objects_CXX="$postdep_objects_CXX $p"
1425614834 fi
1428014858 postdep_objects_CXX=
1428114859 postdeps_CXX=
1428214860 ;;
14283
14284 linux*)
14285 case `$CC -V 2>&1 | sed 5q` in
14286 *Sun\ C*)
14287 # Sun C++ 5.9
14288
14289 # The more standards-conforming stlport4 library is
14290 # incompatible with the Cstd library. Avoid specifying
14291 # it if it's in CXXFLAGS. Ignore libCrun as
14292 # -library=stlport4 depends on it.
14293 case " $CXX $CXXFLAGS " in
14294 *" -library=stlport4 "*)
14295 solaris_use_stlport4=yes
14296 ;;
14297 esac
14298
14299 if test "$solaris_use_stlport4" != yes; then
14300 postdeps_CXX='-library=Cstd -library=Crun'
14301 fi
14302 ;;
14303 esac
14304 ;;
14305
14306 solaris*)
14307 case $cc_basename in
14308 CC* | sunCC*)
14309 # The more standards-conforming stlport4 library is
14310 # incompatible with the Cstd library. Avoid specifying
14311 # it if it's in CXXFLAGS. Ignore libCrun as
14312 # -library=stlport4 depends on it.
14313 case " $CXX $CXXFLAGS " in
14314 *" -library=stlport4 "*)
14315 solaris_use_stlport4=yes
14316 ;;
14317 esac
14318
14319 # Adding this requires a known-good setup of shared libraries for
14320 # Sun compiler versions before 5.6, else PIC objects from an old
14321 # archive will be linked into the output, leading to subtle bugs.
14322 if test "$solaris_use_stlport4" != yes; then
14323 postdeps_CXX='-library=Cstd -library=Crun'
14324 fi
14325 ;;
14326 esac
14327 ;;
1432814861 esac
1432914862
1433014863
1433314866 esac
1433414867 compiler_lib_search_dirs_CXX=
1433514868 if test -n "${compiler_lib_search_path_CXX}"; then
14336 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14869 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
1433714870 fi
1433814871
1433914872
1437214905
1437314906
1437414907 # C++ specific cases for pic, static, wl, etc.
14375 if test "$GXX" = yes; then
14908 if test yes = "$GXX"; then
1437614909 lt_prog_compiler_wl_CXX='-Wl,'
1437714910 lt_prog_compiler_static_CXX='-static'
1437814911
1437914912 case $host_os in
1438014913 aix*)
1438114914 # All AIX code is PIC.
14382 if test "$host_cpu" = ia64; then
14915 if test ia64 = "$host_cpu"; then
1438314916 # AIX 5 now supports IA64 processor
1438414917 lt_prog_compiler_static_CXX='-Bstatic'
1438514918 fi
14919 lt_prog_compiler_pic_CXX='-fPIC'
1438614920 ;;
1438714921
1438814922 amigaos*)
1439314927 ;;
1439414928 m68k)
1439514929 # FIXME: we need at least 68020 code to build shared libraries, but
14396 # adding the `-m68020' flag to GCC prevents building anything better,
14397 # like `-m68040'.
14930 # adding the '-m68020' flag to GCC prevents building anything better,
14931 # like '-m68040'.
1439814932 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
1439914933 ;;
1440014934 esac
1440914943 # Although the cygwin gcc ignores -fPIC, still need this for old-style
1441014944 # (--disable-auto-import) libraries
1441114945 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14946 case $host_os in
14947 os2*)
14948 lt_prog_compiler_static_CXX='$wl-static'
14949 ;;
14950 esac
1441214951 ;;
1441314952 darwin* | rhapsody*)
1441414953 # PIC is the default on this platform
1445814997 case $host_os in
1445914998 aix[4-9]*)
1446014999 # All AIX code is PIC.
14461 if test "$host_cpu" = ia64; then
15000 if test ia64 = "$host_cpu"; then
1446215001 # AIX 5 now supports IA64 processor
1446315002 lt_prog_compiler_static_CXX='-Bstatic'
1446415003 else
1449815037 case $cc_basename in
1449915038 CC*)
1450015039 lt_prog_compiler_wl_CXX='-Wl,'
14501 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14502 if test "$host_cpu" != ia64; then
15040 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15041 if test ia64 != "$host_cpu"; then
1450315042 lt_prog_compiler_pic_CXX='+Z'
1450415043 fi
1450515044 ;;
1450615045 aCC*)
1450715046 lt_prog_compiler_wl_CXX='-Wl,'
14508 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15047 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
1450915048 case $host_cpu in
1451015049 hppa*64*|ia64*)
1451115050 # +Z the default
1454215081 lt_prog_compiler_pic_CXX='-fPIC'
1454315082 ;;
1454415083 ecpc* )
14545 # old Intel C++ for x86_64 which still supported -KPIC.
15084 # old Intel C++ for x86_64, which still supported -KPIC.
1454615085 lt_prog_compiler_wl_CXX='-Wl,'
1454715086 lt_prog_compiler_pic_CXX='-KPIC'
1454815087 lt_prog_compiler_static_CXX='-static'
1468715226 fi
1468815227
1468915228 case $host_os in
14690 # For platforms which do not support PIC, -DPIC is meaningless:
15229 # For platforms that do not support PIC, -DPIC is meaningless:
1469115230 *djgpp*)
1469215231 lt_prog_compiler_pic_CXX=
1469315232 ;;
1471915258 lt_cv_prog_compiler_pic_works_CXX=no
1472015259 ac_outfile=conftest.$ac_objext
1472115260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14722 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15261 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
1472315262 # Insert the option either (1) after the last *FLAGS variable, or
1472415263 # (2) before a word containing "conftest.", or (3) at the end.
1472515264 # Note that $ac_compile itself does not contain backslashes and begins
1474915288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
1475015289 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1475115290
14752 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15291 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1475315292 case $lt_prog_compiler_pic_CXX in
1475415293 "" | " "*) ;;
1475515294 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
1477515314 $as_echo_n "(cached) " >&6
1477615315 else
1477715316 lt_cv_prog_compiler_static_works_CXX=no
14778 save_LDFLAGS="$LDFLAGS"
15317 save_LDFLAGS=$LDFLAGS
1477915318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1478015319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1478115320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1479415333 fi
1479515334 fi
1479615335 $RM -r conftest*
14797 LDFLAGS="$save_LDFLAGS"
15336 LDFLAGS=$save_LDFLAGS
1479815337
1479915338 fi
1480015339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
1480115340 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1480215341
14803 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15342 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1480415343 :
1480515344 else
1480615345 lt_prog_compiler_static_CXX=
1491415453
1491515454
1491615455
14917 hard_links="nottested"
14918 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15456 hard_links=nottested
15457 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1491915458 # do not overwrite the value of need_locks provided by the user
1492015459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
1492115460 $as_echo_n "checking if we can lock with hard links... " >&6; }
1492715466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1492815467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
1492915468 $as_echo "$hard_links" >&6; }
14930 if test "$hard_links" = no; then
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14932 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15469 if test no = "$hard_links"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15471 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1493315472 need_locks=warn
1493415473 fi
1493515474 else
1494615485 case $host_os in
1494715486 aix[4-9]*)
1494815487 # If we're using GNU nm, then we don't want the "-C" option.
14949 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14950 # Also, AIX nm treats weak defined symbols like other global defined
14951 # symbols, whereas GNU nm marks them as "W".
15488 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15489 # Without the "-l" option, or with the "-B" option, AIX nm treats
15490 # weak defined symbols like other global defined symbols, whereas
15491 # GNU nm marks them as "W".
15492 # While the 'weak' keyword is ignored in the Export File, we need
15493 # it in the Import File for the 'aix-soname' feature, so we have
15494 # to replace the "-B" option with "-P" for AIX nm.
1495215495 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14953 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'
15496 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'
1495415497 else
14955 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'
15498 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'
1495615499 fi
1495715500 ;;
1495815501 pw32*)
14959 export_symbols_cmds_CXX="$ltdll_cmds"
15502 export_symbols_cmds_CXX=$ltdll_cmds
1496015503 ;;
1496115504 cygwin* | mingw* | cegcc*)
1496215505 case $cc_basename in
1497915522
1498015523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1498115524 $as_echo "$ld_shlibs_CXX" >&6; }
14982 test "$ld_shlibs_CXX" = no && can_build_shared=no
15525 test no = "$ld_shlibs_CXX" && can_build_shared=no
1498315526
1498415527 with_gnu_ld_CXX=$with_gnu_ld
1498515528
1499615539 # Assume -lc should be added
1499715540 archive_cmds_need_lc_CXX=yes
1499815541
14999 if test "$enable_shared" = yes && test "$GCC" = yes; then
15542 if test yes,yes = "$GCC,$enable_shared"; then
1500015543 case $archive_cmds_CXX in
1500115544 *'~'*)
1500215545 # FIXME: we may have to deal with multi-command sequences.
1512415667 library_names_spec=
1512515668 libname_spec='lib$name'
1512615669 soname_spec=
15127 shrext_cmds=".so"
15670 shrext_cmds=.so
1512815671 postinstall_cmds=
1512915672 postuninstall_cmds=
1513015673 finish_cmds=
1514115684 # flags to be left without arguments
1514215685 need_version=unknown
1514315686
15687
15688
1514415689 case $host_os in
1514515690 aix3*)
1514615691 version_type=linux # correct to gnu/linux during the next big refactor
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15692 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1514815693 shlibpath_var=LIBPATH
1514915694
1515015695 # AIX 3 has no versioning support, so we append a major version to the name.
15151 soname_spec='${libname}${release}${shared_ext}$major'
15696 soname_spec='$libname$release$shared_ext$major'
1515215697 ;;
1515315698
1515415699 aix[4-9]*)
1515615701 need_lib_prefix=no
1515715702 need_version=no
1515815703 hardcode_into_libs=yes
15159 if test "$host_cpu" = ia64; then
15704 if test ia64 = "$host_cpu"; then
1516015705 # AIX 5 supports IA64
15161 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15706 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1516215707 shlibpath_var=LD_LIBRARY_PATH
1516315708 else
1516415709 # With GCC up to 2.95.x, collect2 would create an import file
1516515710 # for dependence libraries. The import file would start with
15166 # the line `#! .'. This would cause the generated library to
15167 # depend on `.', always an invalid library. This was fixed in
15711 # the line '#! .'. This would cause the generated library to
15712 # depend on '.', always an invalid library. This was fixed in
1516815713 # development snapshots of GCC prior to 3.0.
1516915714 case $host_os in
1517015715 aix4 | aix4.[01] | aix4.[01].*)
1517115716 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1517215717 echo ' yes '
15173 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15718 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1517415719 :
1517515720 else
1517615721 can_build_shared=no
1517715722 fi
1517815723 ;;
1517915724 esac
15180 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15725 # Using Import Files as archive members, it is possible to support
15726 # filename-based versioning of shared library archives on AIX. While
15727 # this would work for both with and without runtime linking, it will
15728 # prevent static linking of such archives. So we do filename-based
15729 # shared library versioning with .so extension only, which is used
15730 # when both runtime linking and shared linking is enabled.
15731 # Unfortunately, runtime linking may impact performance, so we do
15732 # not want this to be the default eventually. Also, we use the
15733 # versioned .so libs for executables only if there is the -brtl
15734 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15735 # To allow for filename-based versioning support, we need to create
15736 # libNAME.so.V as an archive file, containing:
15737 # *) an Import File, referring to the versioned filename of the
15738 # archive as well as the shared archive member, telling the
15739 # bitwidth (32 or 64) of that shared object, and providing the
15740 # list of exported symbols of that shared object, eventually
15741 # decorated with the 'weak' keyword
15742 # *) the shared object with the F_LOADONLY flag set, to really avoid
15743 # it being seen by the linker.
15744 # At run time we better use the real file rather than another symlink,
15745 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15746
15747 case $with_aix_soname,$aix_use_runtimelinking in
15748 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1518115749 # soname into executable. Probably we can add versioning support to
1518215750 # collect2, so additional links can be useful in future.
15183 if test "$aix_use_runtimelinking" = yes; then
15751 aix,yes) # traditional libtool
15752 dynamic_linker='AIX unversionable lib.so'
1518415753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1518515754 # instead of lib<name>.a to let people know that these are not
1518615755 # typical AIX shared libraries.
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 else
15756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15757 ;;
15758 aix,no) # traditional AIX only
15759 dynamic_linker='AIX lib.a(lib.so.V)'
1518915760 # We preserve .a as extension for shared libraries through AIX4.2
1519015761 # and later when we are not doing run time linking.
15191 library_names_spec='${libname}${release}.a $libname.a'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 fi
15762 library_names_spec='$libname$release.a $libname.a'
15763 soname_spec='$libname$release$shared_ext$major'
15764 ;;
15765 svr4,*) # full svr4 only
15766 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15767 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15768 # We do not specify a path in Import Files, so LIBPATH fires.
15769 shlibpath_overrides_runpath=yes
15770 ;;
15771 *,yes) # both, prefer svr4
15772 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15773 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15774 # unpreferred sharedlib libNAME.a needs extra handling
15775 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"'
15776 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"'
15777 # We do not specify a path in Import Files, so LIBPATH fires.
15778 shlibpath_overrides_runpath=yes
15779 ;;
15780 *,no) # both, prefer aix
15781 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15782 library_names_spec='$libname$release.a $libname.a'
15783 soname_spec='$libname$release$shared_ext$major'
15784 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15785 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)'
15786 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"'
15787 ;;
15788 esac
1519415789 shlibpath_var=LIBPATH
1519515790 fi
1519615791 ;;
1520015795 powerpc)
1520115796 # Since July 2007 AmigaOS4 officially supports .so libraries.
1520215797 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1520415799 ;;
1520515800 m68k)
1520615801 library_names_spec='$libname.ixlibrary $libname.a'
1520715802 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15208 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'
15803 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'
1520915804 ;;
1521015805 esac
1521115806 ;;
1521215807
1521315808 beos*)
15214 library_names_spec='${libname}${shared_ext}'
15809 library_names_spec='$libname$shared_ext'
1521515810 dynamic_linker="$host_os ld.so"
1521615811 shlibpath_var=LIBRARY_PATH
1521715812 ;;
1521915814 bsdi[45]*)
1522015815 version_type=linux # correct to gnu/linux during the next big refactor
1522115816 need_version=no
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223 soname_spec='${libname}${release}${shared_ext}$major'
15817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15818 soname_spec='$libname$release$shared_ext$major'
1522415819 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1522515820 shlibpath_var=LD_LIBRARY_PATH
1522615821 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1523215827
1523315828 cygwin* | mingw* | pw32* | cegcc*)
1523415829 version_type=windows
15235 shrext_cmds=".dll"
15830 shrext_cmds=.dll
1523615831 need_version=no
1523715832 need_lib_prefix=no
1523815833
1524115836 # gcc
1524215837 library_names_spec='$libname.dll.a'
1524315838 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15244 postinstall_cmds='base_file=`basename \${file}`~
15245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15839 postinstall_cmds='base_file=`basename \$file`~
15840 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1524615841 dldir=$destdir/`dirname \$dlpath`~
1524715842 test -d \$dldir || mkdir -p \$dldir~
1524815843 $install_prog $dir/$dlname \$dldir/$dlname~
1525815853 case $host_os in
1525915854 cygwin*)
1526015855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15261 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15856 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1526215857
1526315858 ;;
1526415859 mingw* | cegcc*)
1526515860 # MinGW DLLs use traditional 'lib' prefix
15266 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15861 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1526715862 ;;
1526815863 pw32*)
1526915864 # pw32 DLLs use 'pw' prefix rather than 'lib'
15270 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15865 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1527115866 ;;
1527215867 esac
1527315868 dynamic_linker='Win32 ld.exe'
1527615871 *,cl*)
1527715872 # Native MSVC
1527815873 libname_spec='$name'
15279 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15280 library_names_spec='${libname}.dll.lib'
15874 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15875 library_names_spec='$libname.dll.lib'
1528115876
1528215877 case $build_os in
1528315878 mingw*)
1530415899 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1530515900 ;;
1530615901 *)
15307 sys_lib_search_path_spec="$LIB"
15902 sys_lib_search_path_spec=$LIB
1530815903 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1530915904 # It is most probably a Windows format PATH.
1531015905 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1531715912 esac
1531815913
1531915914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15320 postinstall_cmds='base_file=`basename \${file}`~
15321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15915 postinstall_cmds='base_file=`basename \$file`~
15916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1532215917 dldir=$destdir/`dirname \$dlpath`~
1532315918 test -d \$dldir || mkdir -p \$dldir~
1532415919 $install_prog $dir/$dlname \$dldir/$dlname'
1533115926
1533215927 *)
1533315928 # Assume MSVC wrapper
15334 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15929 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1533515930 dynamic_linker='Win32 ld.exe'
1533615931 ;;
1533715932 esac
1534415939 version_type=darwin
1534515940 need_lib_prefix=no
1534615941 need_version=no
15347 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15348 soname_spec='${libname}${release}${major}$shared_ext'
15942 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15943 soname_spec='$libname$release$major$shared_ext'
1534915944 shlibpath_overrides_runpath=yes
1535015945 shlibpath_var=DYLD_LIBRARY_PATH
1535115946 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1535715952 version_type=linux # correct to gnu/linux during the next big refactor
1535815953 need_lib_prefix=no
1535915954 need_version=no
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15956 soname_spec='$libname$release$shared_ext$major'
1536215957 shlibpath_var=LD_LIBRARY_PATH
1536315958 ;;
1536415959
1537615971 version_type=freebsd-$objformat
1537715972 case $version_type in
1537815973 freebsd-elf*)
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15975 soname_spec='$libname$release$shared_ext$major'
1538015976 need_version=no
1538115977 need_lib_prefix=no
1538215978 ;;
1538315979 freebsd-*)
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15980 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1538515981 need_version=yes
1538615982 ;;
1538715983 esac
1541116007 need_lib_prefix=no
1541216008 need_version=no
1541316009 dynamic_linker="$host_os runtime_loader"
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
16010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16011 soname_spec='$libname$release$shared_ext$major'
1541616012 shlibpath_var=LIBRARY_PATH
15417 shlibpath_overrides_runpath=yes
16013 shlibpath_overrides_runpath=no
1541816014 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1541916015 hardcode_into_libs=yes
1542016016 ;;
1543216028 dynamic_linker="$host_os dld.so"
1543316029 shlibpath_var=LD_LIBRARY_PATH
1543416030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 if test "X$HPUX_IA64_MODE" = X32; then
16031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032 soname_spec='$libname$release$shared_ext$major'
16033 if test 32 = "$HPUX_IA64_MODE"; then
1543816034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16035 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1543916036 else
1544016037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16038 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1544116039 fi
15442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1544316040 ;;
1544416041 hppa*64*)
1544516042 shrext_cmds='.sl'
1544716044 dynamic_linker="$host_os dld.sl"
1544816045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1544916046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
16047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16048 soname_spec='$libname$release$shared_ext$major'
1545216049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1545316050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1545416051 ;;
1545716054 dynamic_linker="$host_os dld.sl"
1545816055 shlibpath_var=SHLIB_PATH
1545916056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
16057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16058 soname_spec='$libname$release$shared_ext$major'
1546216059 ;;
1546316060 esac
1546416061 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1547116068 version_type=linux # correct to gnu/linux during the next big refactor
1547216069 need_lib_prefix=no
1547316070 need_version=no
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
16071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16072 soname_spec='$libname$release$shared_ext$major'
1547616073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1547716074 shlibpath_var=LD_LIBRARY_PATH
1547816075 shlibpath_overrides_runpath=no
1548316080 case $host_os in
1548416081 nonstopux*) version_type=nonstopux ;;
1548516082 *)
15486 if test "$lt_cv_prog_gnu_ld" = yes; then
16083 if test yes = "$lt_cv_prog_gnu_ld"; then
1548716084 version_type=linux # correct to gnu/linux during the next big refactor
1548816085 else
1548916086 version_type=irix
1549116088 esac
1549216089 need_lib_prefix=no
1549316090 need_version=no
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16091 soname_spec='$libname$release$shared_ext$major'
16092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1549616093 case $host_os in
1549716094 irix5* | nonstopux*)
1549816095 libsuff= shlibsuff=
1551116108 esac
1551216109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1551316110 shlibpath_overrides_runpath=no
15514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16111 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16112 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1551616113 hardcode_into_libs=yes
1551716114 ;;
1551816115
1551916116 # No shared lib support for Linux oldld, aout, or coff.
1552016117 linux*oldld* | linux*aout* | linux*coff*)
1552116118 dynamic_linker=no
16119 ;;
16120
16121 linux*android*)
16122 version_type=none # Android doesn't support versioned libraries.
16123 need_lib_prefix=no
16124 need_version=no
16125 library_names_spec='$libname$release$shared_ext'
16126 soname_spec='$libname$release$shared_ext'
16127 finish_cmds=
16128 shlibpath_var=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath=yes
16130
16131 # This implies no fast_install, which is unacceptable.
16132 # Some rework will be needed to allow for fast_install
16133 # before this can be enabled.
16134 hardcode_into_libs=yes
16135
16136 dynamic_linker='Android linker'
16137 # Don't embed -rpath directories since the linker doesn't support them.
16138 hardcode_libdir_flag_spec_CXX='-L$libdir'
1552216139 ;;
1552316140
1552416141 # This must be glibc/ELF.
1552616143 version_type=linux # correct to gnu/linux during the next big refactor
1552716144 need_lib_prefix=no
1552816145 need_version=no
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530 soname_spec='${libname}${release}${shared_ext}$major'
16146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16147 soname_spec='$libname$release$shared_ext$major'
1553116148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1553216149 shlibpath_var=LD_LIBRARY_PATH
1553316150 shlibpath_overrides_runpath=no
1557116188 # before this can be enabled.
1557216189 hardcode_into_libs=yes
1557316190
15574 # Append ld.so.conf contents to the search path
16191 # Ideally, we could use ldconfig to report *all* directores which are
16192 # searched for libraries, however this is still not possible. Aside from not
16193 # being certain /sbin/ldconfig is available, command
16194 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16195 # even though it is searched at run-time. Try to do the best guess by
16196 # appending ld.so.conf contents (and includes) to the search path.
1557516197 if test -f /etc/ld.so.conf; then
1557616198 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' ' '`
1557716199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1560316225 need_lib_prefix=no
1560416226 need_version=no
1560516227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1560716229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1560816230 dynamic_linker='NetBSD (a.out) ld.so'
1560916231 else
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
16232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16233 soname_spec='$libname$release$shared_ext$major'
1561216234 dynamic_linker='NetBSD ld.elf_so'
1561316235 fi
1561416236 shlibpath_var=LD_LIBRARY_PATH
1561816240
1561916241 newsos6)
1562016242 version_type=linux # correct to gnu/linux during the next big refactor
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1562216244 shlibpath_var=LD_LIBRARY_PATH
1562316245 shlibpath_overrides_runpath=yes
1562416246 ;;
1562716249 version_type=qnx
1562816250 need_lib_prefix=no
1562916251 need_version=no
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631 soname_spec='${libname}${release}${shared_ext}$major'
16252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16253 soname_spec='$libname$release$shared_ext$major'
1563216254 shlibpath_var=LD_LIBRARY_PATH
1563316255 shlibpath_overrides_runpath=no
1563416256 hardcode_into_libs=yes
1563516257 dynamic_linker='ldqnx.so'
1563616258 ;;
1563716259
15638 openbsd*)
16260 openbsd* | bitrig*)
1563916261 version_type=sunos
15640 sys_lib_dlsearch_path_spec="/usr/lib"
16262 sys_lib_dlsearch_path_spec=/usr/lib
1564116263 need_lib_prefix=no
15642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15643 case $host_os in
15644 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15645 *) need_version=no ;;
15646 esac
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16264 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16265 need_version=no
16266 else
16267 need_version=yes
16268 fi
16269 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1564816270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1564916271 shlibpath_var=LD_LIBRARY_PATH
15650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15651 case $host_os in
15652 openbsd2.[89] | openbsd2.[89].*)
15653 shlibpath_overrides_runpath=no
15654 ;;
15655 *)
15656 shlibpath_overrides_runpath=yes
15657 ;;
15658 esac
15659 else
15660 shlibpath_overrides_runpath=yes
15661 fi
16272 shlibpath_overrides_runpath=yes
1566216273 ;;
1566316274
1566416275 os2*)
1566516276 libname_spec='$name'
15666 shrext_cmds=".dll"
16277 version_type=windows
16278 shrext_cmds=.dll
16279 need_version=no
1566716280 need_lib_prefix=no
15668 library_names_spec='$libname${shared_ext} $libname.a'
16281 # OS/2 can only load a DLL with a base name of 8 characters or less.
16282 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16283 v=$($ECHO $release$versuffix | tr -d .-);
16284 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16285 $ECHO $n$v`$shared_ext'
16286 library_names_spec='${libname}_dll.$libext'
1566916287 dynamic_linker='OS/2 ld.exe'
15670 shlibpath_var=LIBPATH
16288 shlibpath_var=BEGINLIBPATH
16289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16291 postinstall_cmds='base_file=`basename \$file`~
16292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16293 dldir=$destdir/`dirname \$dlpath`~
16294 test -d \$dldir || mkdir -p \$dldir~
16295 $install_prog $dir/$dlname \$dldir/$dlname~
16296 chmod a+x \$dldir/$dlname~
16297 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16298 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16299 fi'
16300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16301 dlpath=$dir/\$dldll~
16302 $RM \$dlpath'
1567116303 ;;
1567216304
1567316305 osf3* | osf4* | osf5*)
1567416306 version_type=osf
1567516307 need_lib_prefix=no
1567616308 need_version=no
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 soname_spec='$libname$release$shared_ext$major'
16310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1567916311 shlibpath_var=LD_LIBRARY_PATH
1568016312 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15681 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1568216314 ;;
1568316315
1568416316 rdos*)
1568916321 version_type=linux # correct to gnu/linux during the next big refactor
1569016322 need_lib_prefix=no
1569116323 need_version=no
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693 soname_spec='${libname}${release}${shared_ext}$major'
16324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16325 soname_spec='$libname$release$shared_ext$major'
1569416326 shlibpath_var=LD_LIBRARY_PATH
1569516327 shlibpath_overrides_runpath=yes
1569616328 hardcode_into_libs=yes
1570016332
1570116333 sunos4*)
1570216334 version_type=sunos
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16335 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1570416336 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1570516337 shlibpath_var=LD_LIBRARY_PATH
1570616338 shlibpath_overrides_runpath=yes
15707 if test "$with_gnu_ld" = yes; then
16339 if test yes = "$with_gnu_ld"; then
1570816340 need_lib_prefix=no
1570916341 fi
1571016342 need_version=yes
1571216344
1571316345 sysv4 | sysv4.3*)
1571416346 version_type=linux # correct to gnu/linux during the next big refactor
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
16347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16348 soname_spec='$libname$release$shared_ext$major'
1571716349 shlibpath_var=LD_LIBRARY_PATH
1571816350 case $host_vendor in
1571916351 sni)
1573416366 ;;
1573516367
1573616368 sysv4*MP*)
15737 if test -d /usr/nec ;then
16369 if test -d /usr/nec; then
1573816370 version_type=linux # correct to gnu/linux during the next big refactor
15739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15740 soname_spec='$libname${shared_ext}.$major'
16371 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16372 soname_spec='$libname$shared_ext.$major'
1574116373 shlibpath_var=LD_LIBRARY_PATH
1574216374 fi
1574316375 ;;
1574416376
1574516377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15746 version_type=freebsd-elf
16378 version_type=sco
1574716379 need_lib_prefix=no
1574816380 need_version=no
15749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15750 soname_spec='${libname}${release}${shared_ext}$major'
16381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16382 soname_spec='$libname$release$shared_ext$major'
1575116383 shlibpath_var=LD_LIBRARY_PATH
1575216384 shlibpath_overrides_runpath=yes
1575316385 hardcode_into_libs=yes
15754 if test "$with_gnu_ld" = yes; then
16386 if test yes = "$with_gnu_ld"; then
1575516387 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1575616388 else
1575716389 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1576916401 version_type=linux # correct to gnu/linux during the next big refactor
1577016402 need_lib_prefix=no
1577116403 need_version=no
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1577316405 shlibpath_var=LD_LIBRARY_PATH
1577416406 shlibpath_overrides_runpath=no
1577516407 hardcode_into_libs=yes
1577716409
1577816410 uts4*)
1577916411 version_type=linux # correct to gnu/linux during the next big refactor
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 soname_spec='${libname}${release}${shared_ext}$major'
16412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16413 soname_spec='$libname$release$shared_ext$major'
1578216414 shlibpath_var=LD_LIBRARY_PATH
1578316415 ;;
1578416416
1578816420 esac
1578916421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1579016422 $as_echo "$dynamic_linker" >&6; }
15791 test "$dynamic_linker" = no && can_build_shared=no
16423 test no = "$dynamic_linker" && can_build_shared=no
1579216424
1579316425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15794 if test "$GCC" = yes; then
16426 if test yes = "$GCC"; then
1579516427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1579616428 fi
1579716429
15798 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15799 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15800 fi
15801 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15802 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15803 fi
16430 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16431 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16432 fi
16433
16434 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16435 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16436 fi
16437
16438 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16439 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16440
16441 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16442 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16443
16444 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16445 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16446
16447
1580416448
1580516449
1580616450
1584416488 hardcode_action_CXX=
1584516489 if test -n "$hardcode_libdir_flag_spec_CXX" ||
1584616490 test -n "$runpath_var_CXX" ||
15847 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16491 test yes = "$hardcode_automatic_CXX"; then
1584816492
1584916493 # We can hardcode non-existent directories.
15850 if test "$hardcode_direct_CXX" != no &&
16494 if test no != "$hardcode_direct_CXX" &&
1585116495 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1585216496 # have to relink, otherwise we might link with an installed library
1585316497 # when we should be linking with a yet-to-be-installed one
15854 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15855 test "$hardcode_minus_L_CXX" != no; then
16498 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16499 test no != "$hardcode_minus_L_CXX"; then
1585616500 # Linking always hardcodes the temporary library directory.
1585716501 hardcode_action_CXX=relink
1585816502 else
1586716511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
1586816512 $as_echo "$hardcode_action_CXX" >&6; }
1586916513
15870 if test "$hardcode_action_CXX" = relink ||
15871 test "$inherit_rpath_CXX" = yes; then
16514 if test relink = "$hardcode_action_CXX" ||
16515 test yes = "$inherit_rpath_CXX"; then
1587216516 # Fast installation is not supported
1587316517 enable_fast_install=no
15874 elif test "$shlibpath_overrides_runpath" = yes ||
15875 test "$enable_shared" = no; then
16518 elif test yes = "$shlibpath_overrides_runpath" ||
16519 test no = "$enable_shared"; then
1587616520 # Fast installation is not necessary
1587716521 enable_fast_install=needless
1587816522 fi
1589516539 lt_cv_path_LD=$lt_save_path_LD
1589616540 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
1589716541 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15898 fi # test "$_lt_caught_CXX_error" != yes
16542 fi # test yes != "$_lt_caught_CXX_error"
1589916543
1590016544 ac_ext=c
1590116545 ac_cpp='$CPP $CPPFLAGS'
1598216626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598316627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1598416628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16629
16630
16631 # auto_ptr compat
16632 # - C++14 deprecates 'auto_ptr' in favor of 'unique_ptr' [and gcc6 does ugly warnings].
16633 # - std::unique_ptr is available since C++11, so we use it then.
16634 # - While compat is still needed, use 'UI::auto_ptr' in-code.
16635 # - When removing this compat, just bulk-replace 'UI::auto_ptr' with 'std::unique_ptr' in-code. */
16636
1598516637
1598616638 # Check whether --enable-largefile was given.
1598716639 if test "${enable_largefile+set}" = set; then :
1752218174 # report actual input values of CONFIG_FILES etc. instead of their
1752318175 # values after options handling.
1752418176 ac_log="
17525 This file was extended by ui-utilcpp $as_me 1.8.3, which was
18177 This file was extended by ui-utilcpp $as_me 1.8.4, which was
1752618178 generated by GNU Autoconf 2.69. Invocation command line was
1752718179
1752818180 CONFIG_FILES = $CONFIG_FILES
1758818240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1758918241 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1759018242 ac_cs_version="\\
17591 ui-utilcpp config.status 1.8.3
18243 ui-utilcpp config.status 1.8.4
1759218244 configured by $0, generated by GNU Autoconf 2.69,
1759318245 with options \\"\$ac_cs_config\\"
1759418246
1772318375 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1772418376 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1772518377 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18378 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1772618379 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1772718380 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1772818381 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1777218425 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1777318426 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1777418427 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18428 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1777518429 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1777618430 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"`'
18431 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1777718432 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1777818433 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18434 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1777918435 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1778018436 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1778118437 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1784018496 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1784118497 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1784218498 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17843 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18499 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18500 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1784418501 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1784518502 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1784618503 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1794518602 compiler \
1794618603 lt_cv_sys_global_symbol_pipe \
1794718604 lt_cv_sys_global_symbol_to_cdecl \
18605 lt_cv_sys_global_symbol_to_import \
1794818606 lt_cv_sys_global_symbol_to_c_name_address \
1794918607 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18608 lt_cv_nm_interface \
1795018609 nm_file_list_spec \
18610 lt_cv_truncate_bin \
1795118611 lt_prog_compiler_no_builtin_flag \
1795218612 lt_prog_compiler_pic \
1795318613 lt_prog_compiler_wl \
1801318673 compiler_lib_search_path_CXX; do
1801418674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1801518675 *[\\\\\\\`\\"\\\$]*)
18016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1801718677 ;;
1801818678 *)
1801918679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1804018700 postuninstall_cmds \
1804118701 finish_cmds \
1804218702 sys_lib_search_path_spec \
18043 sys_lib_dlsearch_path_spec \
18703 configure_time_dlsearch_path \
18704 configure_time_lt_sys_library_path \
1804418705 reload_cmds_CXX \
1804518706 old_archive_cmds_CXX \
1804618707 old_archive_from_new_cmds_CXX \
1805418715 postlink_cmds_CXX; do
1805518716 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1805618717 *[\\\\\\\`\\"\\\$]*)
18057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18718 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1805818719 ;;
1805918720 *)
1806018721 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1806318724 done
1806418725
1806518726 ac_aux_dir='$ac_aux_dir'
18066 xsi_shell='$xsi_shell'
18067 lt_shell_append='$lt_shell_append'
18068
18069 # See if we are running on zsh, and set the options which allow our
18727
18728 # See if we are running on zsh, and set the options that allow our
1807018729 # commands through without removal of \ escapes INIT.
18071 if test -n "\${ZSH_VERSION+set}" ; then
18730 if test -n "\${ZSH_VERSION+set}"; then
1807218731 setopt NO_GLOB_SUBST
1807318732 fi
1807418733
1807518734
1807618735 PACKAGE='$PACKAGE'
1807718736 VERSION='$VERSION'
18078 TIMESTAMP='$TIMESTAMP'
1807918737 RM='$RM'
1808018738 ofile='$ofile'
1808118739
1883119489 ;;
1883219490 "libtool":C)
1883319491
18834 # See if we are running on zsh, and set the options which allow our
19492 # See if we are running on zsh, and set the options that allow our
1883519493 # commands through without removal of \ escapes.
18836 if test -n "${ZSH_VERSION+set}" ; then
19494 if test -n "${ZSH_VERSION+set}"; then
1883719495 setopt NO_GLOB_SUBST
1883819496 fi
1883919497
18840 cfgfile="${ofile}T"
19498 cfgfile=${ofile}T
1884119499 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1884219500 $RM "$cfgfile"
1884319501
1884419502 cat <<_LT_EOF >> "$cfgfile"
1884519503 #! $SHELL
18846
18847 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18848 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19504 # Generated automatically by $as_me ($PACKAGE) $VERSION
1885019505 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19506
19507 # Provide generalized library-building support services.
19508 # Written by Gordon Matzigkeit, 1996
19509
19510 # Copyright (C) 2014 Free Software Foundation, Inc.
19511 # This is free software; see the source for copying conditions. There is NO
19512 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19513
19514 # GNU Libtool is free software; you can redistribute it and/or modify
19515 # it under the terms of the GNU General Public License as published by
19516 # the Free Software Foundation; either version 2 of of the License, or
19517 # (at your option) any later version.
1885119518 #
18852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18853 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18854 # Foundation, Inc.
18855 # Written by Gordon Matzigkeit, 1996
19519 # As a special exception to the GNU General Public License, if you
19520 # distribute this file as part of a program or library that is built
19521 # using GNU Libtool, you may include this file under the same
19522 # distribution terms that you use for the rest of that program.
1885619523 #
18857 # This file is part of GNU Libtool.
18858 #
18859 # GNU Libtool is free software; you can redistribute it and/or
18860 # modify it under the terms of the GNU General Public License as
18861 # published by the Free Software Foundation; either version 2 of
18862 # the License, or (at your option) any later version.
18863 #
18864 # As a special exception to the GNU General Public License,
18865 # if you distribute this file as part of a program or library that
18866 # is built using GNU Libtool, you may include this file under the
18867 # same distribution terms that you use for the rest of that program.
18868 #
18869 # GNU Libtool is distributed in the hope that it will be useful,
18870 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19524 # GNU Libtool is distributed in the hope that it will be useful, but
19525 # WITHOUT ANY WARRANTY; without even the implied warranty of
1887119526 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1887219527 # GNU General Public License for more details.
1887319528 #
1887419529 # You should have received a copy of the GNU General Public License
18875 # along with GNU Libtool; see the file COPYING. If not, a copy
18876 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18877 # obtained by writing to the Free Software Foundation, Inc.,
18878 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19530 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1887919531
1888019532
1888119533 # The names of the tagged configurations supported by this script.
18882 available_tags="CXX "
19534 available_tags='CXX '
19535
19536 # Configured defaults for sys_lib_dlsearch_path munging.
19537 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1888319538
1888419539 # ### BEGIN LIBTOOL CONFIG
1888519540
1889819553
1889919554 # Whether or not to optimize for fast installation.
1890019555 fast_install=$enable_fast_install
19556
19557 # Shared archive member basename,for filename based shared library versioning on AIX.
19558 shared_archive_member_spec=$shared_archive_member_spec
1890119559
1890219560 # Shell to use when invoking shell scripts.
1890319561 SHELL=$lt_SHELL
1901619674 # Transform the output of nm in a proper C declaration.
1901719675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1901819676
19677 # Transform the output of nm into a list of symbols to manually relocate.
19678 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19679
1901919680 # Transform the output of nm in a C name address pair.
1902019681 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1902119682
1902219683 # Transform the output of nm in a C name address pair when lib prefix is needed.
1902319684 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1902419685
19686 # The name lister interface.
19687 nm_interface=$lt_lt_cv_nm_interface
19688
1902519689 # Specify filename containing input files for \$NM.
1902619690 nm_file_list_spec=$lt_nm_file_list_spec
1902719691
19028 # The root where to search for dependent libraries,and in which our libraries should be installed.
19692 # The root where to search for dependent libraries,and where our libraries should be installed.
1902919693 lt_sysroot=$lt_sysroot
19694
19695 # Command to truncate a binary pipe.
19696 lt_truncate_bin=$lt_lt_cv_truncate_bin
1903019697
1903119698 # The name of the directory that contains temporary libtool files.
1903219699 objdir=$objdir
1911819785 # Compile-time system search path for libraries.
1911919786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1912019787
19121 # Run-time system search path for libraries.
19122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19788 # Detected run-time system search path for libraries.
19789 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19790
19791 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19792 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1912319793
1912419794 # Whether dlopen is supported.
1912519795 dlopen_support=$enable_dlopen
1921219882 # Whether we need a single "-rpath" flag with a separated argument.
1921319883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1921419884
19215 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19885 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1921619886 # DIR into the resulting binary.
1921719887 hardcode_direct=$hardcode_direct
1921819888
19219 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19889 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1922019890 # DIR into the resulting binary and the resulting library dependency is
19221 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19891 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1922219892 # library is relocated.
1922319893 hardcode_direct_absolute=$hardcode_direct_absolute
1922419894
1928419954
1928519955 _LT_EOF
1928619956
19957 cat <<'_LT_EOF' >> "$cfgfile"
19958
19959 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19960
19961 # func_munge_path_list VARIABLE PATH
19962 # -----------------------------------
19963 # VARIABLE is name of variable containing _space_ separated list of
19964 # directories to be munged by the contents of PATH, which is string
19965 # having a format:
19966 # "DIR[:DIR]:"
19967 # string "DIR[ DIR]" will be prepended to VARIABLE
19968 # ":DIR[:DIR]"
19969 # string "DIR[ DIR]" will be appended to VARIABLE
19970 # "DIRP[:DIRP]::[DIRA:]DIRA"
19971 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19972 # "DIRA[ DIRA]" will be appended to VARIABLE
19973 # "DIR[:DIR]"
19974 # VARIABLE will be replaced by "DIR[ DIR]"
19975 func_munge_path_list ()
19976 {
19977 case x$2 in
19978 x)
19979 ;;
19980 *:)
19981 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19982 ;;
19983 x:*)
19984 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19985 ;;
19986 *::*)
19987 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19988 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19989 ;;
19990 *)
19991 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19992 ;;
19993 esac
19994 }
19995
19996
19997 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19998 func_cc_basename ()
19999 {
20000 for cc_temp in $*""; do
20001 case $cc_temp in
20002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20004 \-*) ;;
20005 *) break;;
20006 esac
20007 done
20008 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20009 }
20010
20011
20012 # ### END FUNCTIONS SHARED WITH CONFIGURE
20013
20014 _LT_EOF
20015
1928720016 case $host_os in
1928820017 aix3*)
1928920018 cat <<\_LT_EOF >> "$cfgfile"
1929020019 # AIX sometimes has problems with the GCC collect2 program. For some
1929120020 # reason, if we set the COLLECT_NAMES environment variable, the problems
1929220021 # vanish in a puff of smoke.
19293 if test "X${COLLECT_NAMES+set}" != Xset; then
20022 if test set != "${COLLECT_NAMES+set}"; then
1929420023 COLLECT_NAMES=
1929520024 export COLLECT_NAMES
1929620025 fi
1929920028 esac
1930020029
1930120030
19302 ltmain="$ac_aux_dir/ltmain.sh"
20031 ltmain=$ac_aux_dir/ltmain.sh
1930320032
1930420033
1930520034 # We use sed instead of cat because bash on DJGPP gets confused if
1930920038 sed '$q' "$ltmain" >> "$cfgfile" \
1931020039 || (rm -f "$cfgfile"; exit 1)
1931120040
19312 if test x"$xsi_shell" = xyes; then
19313 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19314 func_dirname ()\
19315 {\
19316 \ case ${1} in\
19317 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19318 \ * ) func_dirname_result="${3}" ;;\
19319 \ esac\
19320 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19321 && mv -f "$cfgfile.tmp" "$cfgfile" \
19322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19323 test 0 -eq $? || _lt_function_replace_fail=:
19324
19325
19326 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19327 func_basename ()\
19328 {\
19329 \ func_basename_result="${1##*/}"\
19330 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19331 && mv -f "$cfgfile.tmp" "$cfgfile" \
19332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19333 test 0 -eq $? || _lt_function_replace_fail=:
19334
19335
19336 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19337 func_dirname_and_basename ()\
19338 {\
19339 \ case ${1} in\
19340 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19341 \ * ) func_dirname_result="${3}" ;;\
19342 \ esac\
19343 \ func_basename_result="${1##*/}"\
19344 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19345 && mv -f "$cfgfile.tmp" "$cfgfile" \
19346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19347 test 0 -eq $? || _lt_function_replace_fail=:
19348
19349
19350 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19351 func_stripname ()\
19352 {\
19353 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19354 \ # positional parameters, so assign one to ordinary parameter first.\
19355 \ func_stripname_result=${3}\
19356 \ func_stripname_result=${func_stripname_result#"${1}"}\
19357 \ func_stripname_result=${func_stripname_result%"${2}"}\
19358 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19359 && mv -f "$cfgfile.tmp" "$cfgfile" \
19360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19361 test 0 -eq $? || _lt_function_replace_fail=:
19362
19363
19364 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19365 func_split_long_opt ()\
19366 {\
19367 \ func_split_long_opt_name=${1%%=*}\
19368 \ func_split_long_opt_arg=${1#*=}\
19369 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19370 && mv -f "$cfgfile.tmp" "$cfgfile" \
19371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19372 test 0 -eq $? || _lt_function_replace_fail=:
19373
19374
19375 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19376 func_split_short_opt ()\
19377 {\
19378 \ func_split_short_opt_arg=${1#??}\
19379 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19380 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19381 && mv -f "$cfgfile.tmp" "$cfgfile" \
19382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19383 test 0 -eq $? || _lt_function_replace_fail=:
19384
19385
19386 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19387 func_lo2o ()\
19388 {\
19389 \ case ${1} in\
19390 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19391 \ *) func_lo2o_result=${1} ;;\
19392 \ esac\
19393 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19394 && mv -f "$cfgfile.tmp" "$cfgfile" \
19395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19396 test 0 -eq $? || _lt_function_replace_fail=:
19397
19398
19399 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19400 func_xform ()\
19401 {\
19402 func_xform_result=${1%.*}.lo\
19403 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19404 && mv -f "$cfgfile.tmp" "$cfgfile" \
19405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19406 test 0 -eq $? || _lt_function_replace_fail=:
19407
19408
19409 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19410 func_arith ()\
19411 {\
19412 func_arith_result=$(( $* ))\
19413 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19414 && mv -f "$cfgfile.tmp" "$cfgfile" \
19415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19416 test 0 -eq $? || _lt_function_replace_fail=:
19417
19418
19419 sed -e '/^func_len ()$/,/^} # func_len /c\
19420 func_len ()\
19421 {\
19422 func_len_result=${#1}\
19423 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19424 && mv -f "$cfgfile.tmp" "$cfgfile" \
19425 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19426 test 0 -eq $? || _lt_function_replace_fail=:
19427
19428 fi
19429
19430 if test x"$lt_shell_append" = xyes; then
19431 sed -e '/^func_append ()$/,/^} # func_append /c\
19432 func_append ()\
19433 {\
19434 eval "${1}+=\\${2}"\
19435 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19436 && mv -f "$cfgfile.tmp" "$cfgfile" \
19437 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19438 test 0 -eq $? || _lt_function_replace_fail=:
19439
19440
19441 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19442 func_append_quoted ()\
19443 {\
19444 \ func_quote_for_eval "${2}"\
19445 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19446 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19447 && mv -f "$cfgfile.tmp" "$cfgfile" \
19448 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19449 test 0 -eq $? || _lt_function_replace_fail=:
19450
19451
19452 # Save a `func_append' function call where possible by direct use of '+='
19453 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19454 && mv -f "$cfgfile.tmp" "$cfgfile" \
19455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19456 test 0 -eq $? || _lt_function_replace_fail=:
19457 else
19458 # Save a `func_append' function call even when '+=' is not available
19459 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19460 && mv -f "$cfgfile.tmp" "$cfgfile" \
19461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19462 test 0 -eq $? || _lt_function_replace_fail=:
19463 fi
19464
19465 if test x"$_lt_function_replace_fail" = x":"; then
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19467 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19468 fi
19469
19470
1947120041 mv -f "$cfgfile" "$ofile" ||
1947220042 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1947320043 chmod +x "$ofile"
1955420124 # Whether we need a single "-rpath" flag with a separated argument.
1955520125 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
1955620126
19557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20127 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1955820128 # DIR into the resulting binary.
1955920129 hardcode_direct=$hardcode_direct_CXX
1956020130
19561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20131 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1956220132 # DIR into the resulting binary and the resulting library dependency is
19563 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20133 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1956420134 # library is relocated.
1956520135 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
1956620136
0 AC_INIT([ui-utilcpp], [1.8.3])
0 AC_INIT([ui-utilcpp], [1.8.4])
11
22 dnl See DEVELOPERS file for shared library versioning instructions
33 dnl INTERFACE:REVISION:AGE
4545 # check for dl lib
4646 # All symbolic libs are linked with
4747 AC_LANG_PUSH(C++)
48
49 # auto_ptr compat
50 # - C++14 deprecates 'auto_ptr' in favor of 'unique_ptr' [and gcc6 does ugly warnings].
51 # - std::unique_ptr is available since C++11, so we use it then.
52 # - While compat is still needed, use 'UI::auto_ptr' in-code.
53 # - When removing this compat, just bulk-replace 'UI::auto_ptr' with 'std::unique_ptr' in-code. */
54 AH_VERBATIM(
55 [TINCAS_ADDONS],
56 [
57 #include <memory>
58 namespace UI {
59 #if __cplusplus >= 201103L
60 template <typename T>
61 using auto_ptr = std::unique_ptr<T>;
62 #else
63 using std::auto_ptr;
64 #endif
65 }
66 ])
67
4868 AC_SYS_LARGEFILE
4969 AC_CHECK_HEADER(dlfcn.h,, [ AC_MSG_ERROR(error: libdl include file dlfcn.h not found.)])
5070 AC_CHECK_LIB(dl, dlopen,, [ AC_MSG_ERROR(Failed to detect libdl.)])
22
33 scriptversion=2013-05-30.07; # UTC
44
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
7888 build_triplet = @build@
7989 host_triplet = @host@
8090 subdir = doc
81 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8291 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8392 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8493 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8594 $(ACLOCAL_M4)
95 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
8696 mkinstalldirs = $(install_sh) -d
8797 CONFIG_HEADER = $(top_builddir)/config.h
8898 CONFIG_CLEAN_FILES =
136146 am__installdirs = "$(DESTDIR)$(docdir)"
137147 DATA = $(doc_DATA)
138148 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
149 am__DIST_COMMON = $(srcdir)/Makefile.in
139150 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
140151 ACLOCAL = @ACLOCAL@
141152 AMTAR = @AMTAR@
184195 LIPO = @LIPO@
185196 LN_S = @LN_S@
186197 LTLIBOBJS = @LTLIBOBJS@
198 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
187199 MAKEINFO = @MAKEINFO@
188200 MANIFEST_TOOL = @MANIFEST_TOOL@
189201 MKDIR_P = @MKDIR_P@
259271 prefix = @prefix@
260272 program_transform_name = @program_transform_name@
261273 psdir = @psdir@
274 runstatedir = @runstatedir@
262275 sbindir = @sbindir@
263276 sharedstatedir = @sharedstatedir@
264277 srcdir = @srcdir@
285298 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
286299 $(am__cd) $(top_srcdir) && \
287300 $(AUTOMAKE) --gnu doc/Makefile
288 .PRECIOUS: Makefile
289301 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
290302 @case '$?' in \
291303 *config.status*) \
485497 mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
486498 uninstall-am uninstall-docDATA
487499
500 .PRECIOUS: Makefile
501
488502
489503 # Tell versions [3.59,3.63) of GNU make to not export all variables.
490504 # Otherwise a system limit (for SysV at least) may be exceeded.
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-11-20.07; # UTC
3 scriptversion=2014-09-12.12; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
4040 # This script is compatible with the BSD install script, but was written
4141 # from scratch.
4242
43 tab=' '
4344 nl='
4445 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
5050 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
51 doit_exec=${doit:-exec}
5652
5753 # Put in absolute file names if you don't have them in your path;
5854 # or use environment vars.
6763 rmprog=${RMPROG-rm}
6864 stripprog=${STRIPPROG-strip}
6965
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
8166 posix_mkdir=
8267
8368 # Desired mode of installed file.
9681 dst_arg=
9782
9883 copy_on_change=false
99 no_target_directory=
84 is_target_a_directory=possibly
10085
10186 usage="\
10287 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
136121 -d) dir_arg=true;;
137122
138123 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
124 shift;;
140125
141126 --help) echo "$usage"; exit $?;;
142127
143128 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
151135
152136 -o) chowncmd="$chownprog $2"
153 shift;;
137 shift;;
154138
155139 -s) stripcmd=$stripprog;;
156140
157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
162 shift;;
163
164 -T) no_target_directory=true;;
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
165151
166152 --version) echo "$0 $scriptversion"; exit $?;;
167153
168 --) shift
169 break;;
170
171 -*) echo "$0: invalid option: $1" >&2
172 exit 1;;
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
173159
174160 *) break;;
175161 esac
176162 shift
177163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
178174
179175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
180176 # When -d is used, all remaining arguments are directories to create.
207203 fi
208204
209205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
210215 do_exit='(exit $ret); exit $ret'
211216 trap "ret=129; $do_exit" 1
212217 trap "ret=130; $do_exit" 2
222227
223228 *[0-7])
224229 if test -z "$stripcmd"; then
225 u_plus_rw=
230 u_plus_rw=
226231 else
227 u_plus_rw='% 200'
232 u_plus_rw='% 200'
228233 fi
229234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
230235 *)
231236 if test -z "$stripcmd"; then
232 u_plus_rw=
237 u_plus_rw=
233238 else
234 u_plus_rw=,u+rw
239 u_plus_rw=,u+rw
235240 fi
236241 cp_umask=$mode$u_plus_rw;;
237242 esac
268273 # If destination is a directory, append the input filename; won't work
269274 # if double slashes aren't ignored.
270275 if test -d "$dst"; then
271 if test -n "$no_target_directory"; then
272 echo "$0: $dst_arg: Is a directory" >&2
273 exit 1
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
274279 fi
275280 dstdir=$dst
276281 dst=$dstdir/`basename "$src"`
277282 dstdir_status=0
278283 else
279 # Prefer dirname, but fall back on a substitute if dirname fails.
280 dstdir=`
281 (dirname "$dst") 2>/dev/null ||
282 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
283 X"$dst" : 'X\(//\)[^/]' \| \
284 X"$dst" : 'X\(//\)$' \| \
285 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
286 echo X"$dst" |
287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
288 s//\1/
289 q
290 }
291 /^X\(\/\/\)[^/].*/{
292 s//\1/
293 q
294 }
295 /^X\(\/\/\)$/{
296 s//\1/
297 q
298 }
299 /^X\(\/\).*/{
300 s//\1/
301 q
302 }
303 s/.*/./; q'
304 `
305
284 dstdir=`dirname "$dst"`
306285 test -d "$dstdir"
307286 dstdir_status=$?
308287 fi
313292 if test $dstdir_status != 0; then
314293 case $posix_mkdir in
315294 '')
316 # Create intermediate dirs using mode 755 as modified by the umask.
317 # This is like FreeBSD 'install' as of 1997-10-28.
318 umask=`umask`
319 case $stripcmd.$umask in
320 # Optimize common cases.
321 *[2367][2367]) mkdir_umask=$umask;;
322 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
323
324 *[0-7])
325 mkdir_umask=`expr $umask + 22 \
326 - $umask % 100 % 40 + $umask % 20 \
327 - $umask % 10 % 4 + $umask % 2
328 `;;
329 *) mkdir_umask=$umask,go-w;;
330 esac
331
332 # With -d, create the new directory with the user-specified mode.
333 # Otherwise, rely on $mkdir_umask.
334 if test -n "$dir_arg"; then
335 mkdir_mode=-m$mode
336 else
337 mkdir_mode=
338 fi
339
340 posix_mkdir=false
341 case $umask in
342 *[123567][0-7][0-7])
343 # POSIX mkdir -p sets u+wx bits regardless of umask, which
344 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
345 ;;
346 *)
347 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
348 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
349
350 if (umask $mkdir_umask &&
351 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
352 then
353 if test -z "$dir_arg" || {
354 # Check for POSIX incompatibilities with -m.
355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writable bit of parent directory when it shouldn't.
357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359 case $ls_ld_tmpdir in
360 d????-?r-*) different_mode=700;;
361 d????-?--*) different_mode=755;;
362 *) false;;
363 esac &&
364 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
365 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
366 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
367 }
368 }
369 then posix_mkdir=:
370 fi
371 rmdir "$tmpdir/d" "$tmpdir"
372 else
373 # Remove any dirs left behind by ancient mkdir implementations.
374 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
375 fi
376 trap '' 0;;
377 esac;;
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 # $RANDOM is not portable (e.g. dash); use it when possible to
327 # lower collision chance
328 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
329 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
330
331 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so
332 # create the $tmpdir first (and fail if unsuccessful) to make sure
333 # that nobody tries to guess the $tmpdir name.
334 if (umask $mkdir_umask &&
335 $mkdirprog $mkdir_mode "$tmpdir" &&
336 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
337 then
338 if test -z "$dir_arg" || {
339 # Check for POSIX incompatibilities with -m.
340 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
341 # other-writable bit of parent directory when it shouldn't.
342 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
343 test_tmpdir="$tmpdir/a"
344 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
345 case $ls_ld_tmpdir in
346 d????-?r-*) different_mode=700;;
347 d????-?--*) different_mode=755;;
348 *) false;;
349 esac &&
350 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
351 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
352 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
353 }
354 }
355 then posix_mkdir=:
356 fi
357 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
358 else
359 # Remove any dirs left behind by ancient mkdir implementations.
360 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
361 fi
362 trap '' 0;;
363 esac;;
378364 esac
379365
380366 if
381367 $posix_mkdir && (
382 umask $mkdir_umask &&
383 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
368 umask $mkdir_umask &&
369 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
384370 )
385371 then :
386372 else
390376 # directory the slow way, step by step, checking for races as we go.
391377
392378 case $dstdir in
393 /*) prefix='/';;
394 [-=\(\)!]*) prefix='./';;
395 *) prefix='';;
379 /*) prefix='/';;
380 [-=\(\)!]*) prefix='./';;
381 *) prefix='';;
396382 esac
397
398 eval "$initialize_posix_glob"
399383
400384 oIFS=$IFS
401385 IFS=/
402 $posix_glob set -f
386 set -f
403387 set fnord $dstdir
404388 shift
405 $posix_glob set +f
389 set +f
406390 IFS=$oIFS
407391
408392 prefixes=
409393
410394 for d
411395 do
412 test X"$d" = X && continue
413
414 prefix=$prefix$d
415 if test -d "$prefix"; then
416 prefixes=
417 else
418 if $posix_mkdir; then
419 (umask=$mkdir_umask &&
420 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
421 # Don't fail if two instances are running concurrently.
422 test -d "$prefix" || exit 1
423 else
424 case $prefix in
425 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
426 *) qprefix=$prefix;;
427 esac
428 prefixes="$prefixes '$qprefix'"
429 fi
430 fi
431 prefix=$prefix/
396 test X"$d" = X && continue
397
398 prefix=$prefix$d
399 if test -d "$prefix"; then
400 prefixes=
401 else
402 if $posix_mkdir; then
403 (umask=$mkdir_umask &&
404 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
405 # Don't fail if two instances are running concurrently.
406 test -d "$prefix" || exit 1
407 else
408 case $prefix in
409 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
410 *) qprefix=$prefix;;
411 esac
412 prefixes="$prefixes '$qprefix'"
413 fi
414 fi
415 prefix=$prefix/
432416 done
433417
434418 if test -n "$prefixes"; then
435 # Don't fail if two instances are running concurrently.
436 (umask $mkdir_umask &&
437 eval "\$doit_exec \$mkdirprog $prefixes") ||
438 test -d "$dstdir" || exit 1
439 obsolete_mkdir_used=true
419 # Don't fail if two instances are running concurrently.
420 (umask $mkdir_umask &&
421 eval "\$doit_exec \$mkdirprog $prefixes") ||
422 test -d "$dstdir" || exit 1
423 obsolete_mkdir_used=true
440424 fi
441425 fi
442426 fi
471455
472456 # If -C, don't bother to copy if it wouldn't change the file.
473457 if $copy_on_change &&
474 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
475 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
476
477 eval "$initialize_posix_glob" &&
478 $posix_glob set -f &&
458 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
459 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
460 set -f &&
479461 set X $old && old=:$2:$4:$5:$6 &&
480462 set X $new && new=:$2:$4:$5:$6 &&
481 $posix_glob set +f &&
482
463 set +f &&
483464 test "$old" = "$new" &&
484465 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
485466 then
492473 # to itself, or perhaps because mv is so ancient that it does not
493474 # support -f.
494475 {
495 # Now remove or move aside any old file at destination location.
496 # We try this two ways since rm can't unlink itself on some
497 # systems and the destination file might be busy for other
498 # reasons. In this case, the final cleanup might fail but the new
499 # file should still install successfully.
500 {
501 test ! -f "$dst" ||
502 $doit $rmcmd -f "$dst" 2>/dev/null ||
503 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
504 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
505 } ||
506 { echo "$0: cannot unlink or rename $dst" >&2
507 (exit 1); exit 1
508 }
509 } &&
510
511 # Now rename the file to the real destination.
512 $doit $mvcmd "$dsttmp" "$dst"
476 # Now remove or move aside any old file at destination location.
477 # We try this two ways since rm can't unlink itself on some
478 # systems and the destination file might be busy for other
479 # reasons. In this case, the final cleanup might fail but the new
480 # file should still install successfully.
481 {
482 test ! -f "$dst" ||
483 $doit $rmcmd -f "$dst" 2>/dev/null ||
484 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
485 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
486 } ||
487 { echo "$0: cannot unlink or rename $dst" >&2
488 (exit 1); exit 1
489 }
490 } &&
491
492 # Now rename the file to the real destination.
493 $doit $mvcmd "$dsttmp" "$dst"
513494 }
514495 fi || exit 1
515496
+3656
-2161
ltmain.sh less more
0
1 # libtool (GNU libtool) 2.4.2
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
26 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
37
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
69 # This is free software; see the source for copying conditions. There is NO
710 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
811
2225 # General Public License for more details.
2326 #
2427 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
49 #
50 # MODE must be one of the following:
51 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
59 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
63 #
64 # When reporting a bug, please describe a test case to reproduce it and
65 # include the following information:
66 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.7
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.7"
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-1"
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
88118 emulate sh
89119 NULLCMD=:
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
91121 # is contrary to our usage. Disable this feature.
92122 alias -g '${1+"$@"}'='"$@"'
93123 setopt NO_GLOB_SUBST
94124 else
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
96126 fi
97 BIN_SH=xpg4; export BIN_SH # for Tru64
98 DUALCASE=1; export DUALCASE # for MKS sh
99
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
108 # NLS nuisances: We save the old values to restore during execute mode.
109 lt_user_locale=
110 lt_safe_locale=
111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
112132 do
113 eval "if test \"\${$lt_var+set}\" = set; then
114 save_$lt_var=\$$lt_var
115 $lt_var=C
116 export $lt_var
117 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
119139 fi"
120140 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124
125 $lt_unset CDPATH
126
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
127401
128402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129403 # is ksh but when the shell is invoked as "sh" and the current value of
130404 # the _XPG environment variable is not equal to 1 (one), the special
131405 # positional parameter $0, within a function call, is the name of the
132406 # function.
133 progpath="$0"
134
135
136
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${MAKE="make"}
140 : ${MKDIR="mkdir"}
141 : ${MV="mv -f"}
142 : ${RM="rm -f"}
143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144 : ${Xsed="$SED -e 1s/^X//"}
145
146 # Global variables:
147 EXIT_SUCCESS=0
148 EXIT_FAILURE=1
149 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
150 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
151
152 exit_status=$EXIT_SUCCESS
153
154 # Make sure IFS has a sensible default
155 lt_nl='
156 '
157 IFS=" $lt_nl"
158
159 dirname="s,/[^/]*$,,"
160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
163679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164680 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
182
183 # func_dirname_and_basename file append nondir_replacement
184 # perform func_basename and func_dirname in a single function
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
185692 # call:
186693 # dirname: Compute the dirname of FILE. If nonempty,
187694 # add APPEND to the result, otherwise set result
189696 # value returned in "$func_dirname_result"
190697 # basename: Compute filename of FILE.
191698 # value retuned in "$func_basename_result"
192 # Implementation must be kept synchronized with func_dirname
193 # and func_basename. For efficiency, we do not delegate to
194 # those functions but instead duplicate the functionality here.
195 func_dirname_and_basename ()
196 {
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
201898 else
202 func_dirname_result="$func_dirname_result${2}"
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
203916 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
917
918 $ECHO "$_G_tmpdir"
919 }
920
232921
233922 # func_normal_abspath PATH
923 # ------------------------
234924 # Remove doubled-up and trailing slashes, "." path components,
235925 # and cancel out any ".." path components in PATH after making
236926 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238927 func_normal_abspath ()
239928 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
287976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
337984 fi
338985 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
360 fi
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
370
371 # The name of this program:
372 func_dirname_and_basename "$progpath"
373 progname=$func_basename_result
374
375 # Make sure we have an absolute path for reexecution:
376 case $progpath in
377 [\\/]*|[A-Za-z]:\\*) ;;
378 *[\\/]*)
379 progdir=$func_dirname_result
380 progdir=`cd "$progdir" && pwd`
381 progpath="$progdir/$progname"
382 ;;
383 *)
384 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
386 for progdir in $PATH; do
387 IFS="$save_IFS"
388 test -x "$progdir/$progname" && break
389 done
390 IFS="$save_IFS"
391 test -n "$progdir" || progdir=`pwd`
392 progpath="$progdir/$progname"
393 ;;
394 esac
395
396 # Sed substitution that helps us do robust quoting. It backslashifies
397 # metacharacters that are still active within double-quoted strings.
398 Xsed="${SED}"' -e 1s/^X//'
399 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
400
401 # Same as above, but do not quote variable references.
402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
412
413 # Re-`\' parameter expansions in output of double_quote_subst that were
414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
415 # in input to double_quote_subst, that '$' was protected from expansion.
416 # Since each input `\' is now two `\'s, look for any number of runs of
417 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
418 bs='\\'
419 bs2='\\\\'
420 bs4='\\\\\\\\'
421 dollar='\$'
422 sed_double_backslash="\
423 s/$bs4/&\\
424 /g
425 s/^$bs2$dollar/$bs&/
426 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
427 s/\n//g"
428
429 # Standard options:
430 opt_dry_run=false
431 opt_help=false
432 opt_quiet=false
433 opt_verbose=false
434 opt_warning=:
435
436 # func_echo arg...
437 # Echo program name prefixed message, along with the current mode
438 # name if it has been set yet.
439 func_echo ()
440 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
442 }
443
444 # func_verbose arg...
445 # Echo program name prefixed message in verbose mode only.
446 func_verbose ()
447 {
448 $opt_verbose && func_echo ${1+"$@"}
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
4491020
4501021 # A bug in bash halts the script if the last line of a function
4511022 # fails when set -e is in force, so we need another command to
4531024 :
4541025 }
4551026
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463 # func_error arg...
464 # Echo program name prefixed message to standard error.
465 func_error ()
466 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
468 }
469
470 # func_warning arg...
471 # Echo program name prefixed warning message to standard error.
472 func_warning ()
473 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
475
476 # bash bug again:
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
4771089 :
4781090 }
4791091
480 # func_fatal_error arg...
481 # Echo program name prefixed message to standard error, and exit.
482 func_fatal_error ()
483 {
484 func_error ${1+"$@"}
485 exit $EXIT_FAILURE
486 }
487
488 # func_fatal_help arg...
489 # Echo program name prefixed message to standard error, followed by
490 # a help hint, and exit.
491 func_fatal_help ()
492 {
493 func_error ${1+"$@"}
494 func_fatal_error "$help"
495 }
496 help="Try \`$progname --help' for more information." ## default
497
498
499 # func_grep expression filename
500 # Check whether EXPRESSION matches any line of FILENAME, without output.
501 func_grep ()
502 {
503 $GREP "$1" "$2" >/dev/null 2>&1
504 }
505
506
507 # func_mkdir_p directory-path
508 # Make sure the entire path to DIRECTORY-PATH is available.
509 func_mkdir_p ()
510 {
511 my_directory_path="$1"
512 my_dir_list=
513
514 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
515
516 # Protect directory names starting with `-'
517 case $my_directory_path in
518 -*) my_directory_path="./$my_directory_path" ;;
1092
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1103 {
1104 $debug_cmd
1105
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
5191114 esac
520
521 # While some portion of DIR does not yet exist...
522 while test ! -d "$my_directory_path"; do
523 # ...make a list in topmost first order. Use a colon delimited
524 # list incase some portion of path contains whitespace.
525 my_dir_list="$my_directory_path:$my_dir_list"
526
527 # If the last portion added has no slash in it, the list is done
528 case $my_directory_path in */*) ;; *) break ;; esac
529
530 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
532 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
534
535 save_mkdir_p_IFS="$IFS"; IFS=':'
536 for my_dir in $my_dir_list; do
537 IFS="$save_mkdir_p_IFS"
538 # mkdir can fail with a `File exist' error if two processes
539 # try to create one of the directories concurrently. Don't
540 # stop in that case!
541 $MKDIR "$my_dir" 2>/dev/null || :
542 done
543 IFS="$save_mkdir_p_IFS"
544
545 # Bail out if we (or some other process) failed to create a directory.
546 test -d "$my_directory_path" || \
547 func_fatal_error "Failed to create \`$1'"
548 fi
549 }
550
551
552 # func_mktempdir [string]
553 # Make a temporary directory that won't clash with other running
554 # libtool processes, and avoids race conditions if possible. If
555 # given, STRING is the basename for that directory.
556 func_mktempdir ()
557 {
558 my_template="${TMPDIR-/tmp}/${1-$progname}"
559
560 if test "$opt_dry_run" = ":"; then
561 # Return a directory name, but don't create it in dry-run mode
562 my_tmpdir="${my_template}-$$"
563 else
564
565 # If mktemp works, use that first and foremost
566 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
567
568 if test ! -d "$my_tmpdir"; then
569 # Failing that, at least try and use $RANDOM to avoid a race
570 my_tmpdir="${my_template}-${RANDOM-0}$$"
571
572 save_mktempdir_umask=`umask`
573 umask 0077
574 $MKDIR "$my_tmpdir"
575 umask $save_mktempdir_umask
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
5761119 fi
5771120
578 # If we're not in dry-run mode, bomb out on failure
579 test -d "$my_tmpdir" || \
580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581 fi
582
583 $ECHO "$my_tmpdir"
584 }
585
586
587 # func_quote_for_eval arg
588 # Aesthetically quote ARG to be evaled later.
589 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
590 # is double-quoted, suitable for a subsequent eval, whereas
591 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
592 # which are still active within double quotes backslashified.
593 func_quote_for_eval ()
594 {
595 case $1 in
596 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
598 *)
599 func_quote_for_eval_unquoted_result="$1" ;;
600 esac
601
602 case $func_quote_for_eval_unquoted_result in
603 # Double-quote args containing shell metacharacters to delay
604 # word splitting, command substitution and and variable
605 # expansion for a subsequent eval.
606 # Many Bourne shells cannot handle close brackets correctly
607 # in scan sets, so we specify it separately.
608 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
609 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
610 ;;
611 *)
612 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
613 esac
614 }
615
616
617 # func_quote_for_expand arg
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1129 ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1133 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1137 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1139 fi
1140 shift
1141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
6181147 # Aesthetically quote ARG to be evaled later; same as above,
6191148 # but do not quote variable references.
6201149 func_quote_for_expand ()
6211150 {
1151 $debug_cmd
1152
6221153 case $1 in
6231154 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
6261157 *)
627 my_arg="$1" ;;
1158 _G_arg=$1 ;;
6281159 esac
6291160
630 case $my_arg in
1161 case $_G_arg in
6311162 # Double-quote args containing shell metacharacters to delay
6321163 # word splitting and command substitution for a subsequent eval.
6331164 # Many Bourne shells cannot handle close brackets correctly
6341165 # in scan sets, so we specify it separately.
6351166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
1167 _G_arg=\"$_G_arg\"
6371168 ;;
6381169 esac
6391170
640 func_quote_for_expand_result="$my_arg"
641 }
642
643
644 # func_show_eval cmd [fail_exp]
645 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1171 func_quote_for_expand_result=$_G_arg
1172 }
1173
1174
1175 # func_stripname PREFIX SUFFIX NAME
1176 # ---------------------------------
1177 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1178 # PREFIX and SUFFIX must not contain globbing or regex special
1179 # characters, hashes, percent signs, but SUFFIX may contain a leading
1180 # dot (in which case that matches only a dot).
1181 if test yes = "$_G_HAVE_XSI_OPS"; then
1182 eval 'func_stripname ()
1183 {
1184 $debug_cmd
1185
1186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1187 # positional parameters, so assign one to ordinary variable first.
1188 func_stripname_result=$3
1189 func_stripname_result=${func_stripname_result#"$1"}
1190 func_stripname_result=${func_stripname_result%"$2"}
1191 }'
1192 else
1193 func_stripname ()
1194 {
1195 $debug_cmd
1196
1197 case $2 in
1198 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1199 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1200 esac
1201 }
1202 fi
1203
1204
1205 # func_show_eval CMD [FAIL_EXP]
1206 # -----------------------------
1207 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6461208 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6471209 # is given, then evaluate it.
6481210 func_show_eval ()
6491211 {
650 my_cmd="$1"
651 my_fail_exp="${2-:}"
652
653 ${opt_silent-false} || {
654 func_quote_for_expand "$my_cmd"
655 eval "func_echo $func_quote_for_expand_result"
1212 $debug_cmd
1213
1214 _G_cmd=$1
1215 _G_fail_exp=${2-':'}
1216
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1219
1220 $opt_dry_run || {
1221 eval "$_G_cmd"
1222 _G_status=$?
1223 if test 0 -ne "$_G_status"; then
1224 eval "(exit $_G_status); $_G_fail_exp"
1225 fi
6561226 }
657
658 if ${opt_dry_run-false}; then :; else
659 eval "$my_cmd"
660 my_status=$?
661 if test "$my_status" -eq 0; then :; else
662 eval "(exit $my_status); $my_fail_exp"
663 fi
664 fi
665 }
666
667
668 # func_show_eval_locale cmd [fail_exp]
669 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1227 }
1228
1229
1230 # func_show_eval_locale CMD [FAIL_EXP]
1231 # ------------------------------------
1232 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6701233 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6711234 # is given, then evaluate it. Use the saved locale for evaluation.
6721235 func_show_eval_locale ()
6731236 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
1237 $debug_cmd
1238
1239 _G_cmd=$1
1240 _G_fail_exp=${2-':'}
1241
1242 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
6791244 eval "func_echo $func_quote_for_expand_result"
6801245 }
6811246
682 if ${opt_dry_run-false}; then :; else
683 eval "$lt_user_locale
684 $my_cmd"
685 my_status=$?
686 eval "$lt_safe_locale"
687 if test "$my_status" -eq 0; then :; else
688 eval "(exit $my_status); $my_fail_exp"
1247 $opt_dry_run || {
1248 eval "$_G_user_locale
1249 $_G_cmd"
1250 _G_status=$?
1251 eval "$_G_safe_locale"
1252 if test 0 -ne "$_G_status"; then
1253 eval "(exit $_G_status); $_G_fail_exp"
6891254 fi
690 fi
691 }
1255 }
1256 }
1257
6921258
6931259 # func_tr_sh
1260 # ----------
6941261 # Turn $1 into a string suitable for a shell variable name.
6951262 # Result is stored in $func_tr_sh_result. All characters
6961263 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
6971264 # if $1 begins with a digit, a '_' is prepended as well.
6981265 func_tr_sh ()
6991266 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
710
711 # func_version
712 # Echo version message to standard output and exit.
713 func_version ()
714 {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
726 s/^# //
727 s/^# *$//
728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
729 p
730 }' < "$progpath"
731 exit $?
732 }
733
734 # func_usage
735 # Echo short help message to standard output and exit.
736 func_usage ()
737 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
741 s/^# //
742 s/^# *$//
743 s/\$progname/'$progname'/
744 p
745 }' < "$progpath"
746 echo
747 $ECHO "run \`$progname --help | more' for full usage"
748 exit $?
749 }
750
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
1267 $debug_cmd
1268
1269 case $1 in
1270 [0-9]* | *[!a-zA-Z0-9_]*)
1271 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1272 ;;
1273 * )
1274 func_tr_sh_result=$1
1275 ;;
1276 esac
1277 }
1278
1279
1280 # func_verbose ARG...
1281 # -------------------
1282 # Echo program name prefixed message in verbose mode only.
1283 func_verbose ()
1284 {
1285 $debug_cmd
1286
1287 $opt_verbose && func_echo "$*"
1288
1289 :
1290 }
1291
1292
1293 # func_warn_and_continue ARG...
1294 # -----------------------------
1295 # Echo program name prefixed warning message to standard error.
1296 func_warn_and_continue ()
1297 {
1298 $debug_cmd
1299
1300 $require_term_colors
1301
1302 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1303 }
1304
1305
1306 # func_warning CATEGORY ARG...
1307 # ----------------------------
1308 # Echo program name prefixed warning message to standard error. Warning
1309 # messages can be filtered according to CATEGORY, where this function
1310 # elides messages where CATEGORY is not listed in the global variable
1311 # 'opt_warning_types'.
1312 func_warning ()
1313 {
1314 $debug_cmd
1315
1316 # CATEGORY must be in the warning_categories list!
1317 case " $warning_categories " in
1318 *" $1 "*) ;;
1319 *) func_internal_error "invalid warning category '$1'" ;;
1320 esac
1321
1322 _G_category=$1
1323 shift
1324
1325 case " $opt_warning_types " in
1326 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1327 esac
1328 }
1329
1330
1331 # func_sort_ver VER1 VER2
1332 # -----------------------
1333 # 'sort -V' is not generally available.
1334 # Note this deviates from the version comparison in automake
1335 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1336 # but this should suffice as we won't be specifying old
1337 # version formats or redundant trailing .0 in bootstrap.conf.
1338 # If we did want full compatibility then we should probably
1339 # use m4_version_compare from autoconf.
1340 func_sort_ver ()
1341 {
1342 $debug_cmd
1343
1344 printf '%s\n%s\n' "$1" "$2" \
1345 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1346 }
1347
1348 # func_lt_ver PREV CURR
1349 # ---------------------
1350 # Return true if PREV and CURR are in the correct order according to
1351 # func_sort_ver, otherwise false. Use it like this:
1352 #
1353 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1354 func_lt_ver ()
1355 {
1356 $debug_cmd
1357
1358 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1359 }
1360
1361
1362 # Local variables:
1363 # mode: shell-script
1364 # sh-indentation: 2
1365 # eval: (add-hook 'before-save-hook 'time-stamp)
1366 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1367 # time-stamp-time-zone: "UTC"
1368 # End:
1369 #! /bin/sh
1370
1371 # Set a version string for this script.
1372 scriptversion=2014-01-07.03; # UTC
1373
1374 # A portable, pluggable option parser for Bourne shell.
1375 # Written by Gary V. Vaughan, 2010
1376
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1395
1396
1397 ## ------ ##
1398 ## Usage. ##
1399 ## ------ ##
1400
1401 # This file is a library for parsing options in your shell scripts along
1402 # with assorted other useful supporting features that you can make use
1403 # of too.
1404 #
1405 # For the simplest scripts you might need only:
1406 #
1407 # #!/bin/sh
1408 # . relative/path/to/funclib.sh
1409 # . relative/path/to/options-parser
1410 # scriptversion=1.0
1411 # func_options ${1+"$@"}
1412 # eval set dummy "$func_options_result"; shift
1413 # ...rest of your script...
1414 #
1415 # In order for the '--version' option to work, you will need to have a
1416 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1418 #
1419 # For '-h' and '--help' to work, you will also need a one line
1420 # description of your script's purpose in a comment directly above the
1421 # '# Written by ' line, like the one at the top of this file.
1422 #
1423 # The default options also support '--debug', which will turn on shell
1424 # execution tracing (see the comment above debug_cmd below for another
1425 # use), and '--verbose' and the func_verbose function to allow your script
1426 # to display verbose messages only when your user has specified
1427 # '--verbose'.
1428 #
1429 # After sourcing this file, you can plug processing for additional
1430 # options by amending the variables from the 'Configuration' section
1431 # below, and following the instructions in the 'Option parsing'
1432 # section further down.
1433
1434 ## -------------- ##
1435 ## Configuration. ##
1436 ## -------------- ##
1437
1438 # You should override these variables in your script after sourcing this
1439 # file so that they reflect the customisations you have added to the
1440 # option parser.
1441
1442 # The usage line for option parsing errors and the start of '-h' and
1443 # '--help' output messages. You can embed shell variables for delayed
1444 # expansion at the time the message is displayed, but you will need to
1445 # quote other shell meta-characters carefully to prevent them being
1446 # expanded when the contents are evaled.
1447 usage='$progpath [OPTION]...'
1448
1449 # Short help message in response to '-h' and '--help'. Add to this or
1450 # override it after sourcing this library to reflect the full set of
1451 # options your script accepts.
1452 usage_message="\
1453 --debug enable verbose shell tracing
1454 -W, --warnings=CATEGORY
1455 report the warnings falling in CATEGORY [all]
1456 -v, --verbose verbosely report processing
1457 --version print version information and exit
1458 -h, --help print short or long help message and exit
1459 "
1460
1461 # Additional text appended to 'usage_message' in response to '--help'.
1462 long_help_message="
1463 Warning categories include:
1464 'all' show all warnings
1465 'none' turn off all the warnings
1466 'error' warnings are treated as fatal errors"
1467
1468 # Help message printed before fatal option parsing errors.
1469 fatal_help="Try '\$progname --help' for more information."
1470
1471
1472
1473 ## ------------------------- ##
1474 ## Hook function management. ##
1475 ## ------------------------- ##
1476
1477 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1480
1481 # func_hookable FUNC_NAME
1482 # -----------------------
1483 # Declare that FUNC_NAME will run hooks added with
1484 # 'func_add_hook FUNC_NAME ...'.
1485 func_hookable ()
1486 {
1487 $debug_cmd
1488
1489 func_append hookable_fns " $1"
1490 }
1491
1492
1493 # func_add_hook FUNC_NAME HOOK_FUNC
1494 # ---------------------------------
1495 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1496 # first have been declared "hookable" by a call to 'func_hookable'.
1497 func_add_hook ()
1498 {
1499 $debug_cmd
1500
1501 case " $hookable_fns " in
1502 *" $1 "*) ;;
1503 *) func_fatal_error "'$1' does not accept hook functions." ;;
1504 esac
1505
1506 eval func_append ${1}_hooks '" $2"'
1507 }
1508
1509
1510 # func_remove_hook FUNC_NAME HOOK_FUNC
1511 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1513 func_remove_hook ()
1514 {
1515 $debug_cmd
1516
1517 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1518 }
1519
1520
1521 # func_run_hooks FUNC_NAME [ARG]...
1522 # ---------------------------------
1523 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1525 # than a whitespace-delimited list of legal shell function names, and
1526 # no effort is wasted trying to catch shell meta-characters or preserve
1527 # whitespace.
1528 func_run_hooks ()
1529 {
1530 $debug_cmd
1531
1532 case " $hookable_fns " in
1533 *" $1 "*) ;;
1534 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1535 esac
1536
1537 eval _G_hook_fns=\$$1_hooks; shift
1538
1539 for _G_hook in $_G_hook_fns; do
1540 eval $_G_hook '"$@"'
1541
1542 # store returned options list back into positional
1543 # parameters for next 'cmd' execution.
1544 eval _G_hook_result=\$${_G_hook}_result
1545 eval set dummy "$_G_hook_result"; shift
1546 done
1547
1548 func_quote_for_eval ${1+"$@"}
1549 func_run_hooks_result=$func_quote_for_eval_result
1550 }
1551
1552
1553
1554 ## --------------- ##
1555 ## Option parsing. ##
1556 ## --------------- ##
1557
1558 # In order to add your own option parsing hooks, you must accept the
1559 # full positional parameter list in your hook function, remove any
1560 # options that you action, and then pass back the remaining unprocessed
1561 # options in '<hooked_function_name>_result', escaped suitably for
1562 # 'eval'. Like this:
1563 #
1564 # my_options_prep ()
1565 # {
1566 # $debug_cmd
1567 #
1568 # # Extend the existing usage message.
1569 # usage_message=$usage_message'
1570 # -s, --silent don'\''t print informational messages
1571 # '
1572 #
1573 # func_quote_for_eval ${1+"$@"}
1574 # my_options_prep_result=$func_quote_for_eval_result
1575 # }
1576 # func_add_hook func_options_prep my_options_prep
1577 #
1578 #
1579 # my_silent_option ()
1580 # {
1581 # $debug_cmd
1582 #
1583 # # Note that for efficiency, we parse as many options as we can
1584 # # recognise in a loop before passing the remainder back to the
1585 # # caller on the first unrecognised argument we encounter.
1586 # while test $# -gt 0; do
1587 # opt=$1; shift
1588 # case $opt in
1589 # --silent|-s) opt_silent=: ;;
1590 # # Separate non-argument short options:
1591 # -s*) func_split_short_opt "$_G_opt"
1592 # set dummy "$func_split_short_opt_name" \
1593 # "-$func_split_short_opt_arg" ${1+"$@"}
1594 # shift
1595 # ;;
1596 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1597 # esac
1598 # done
1599 #
1600 # func_quote_for_eval ${1+"$@"}
1601 # my_silent_option_result=$func_quote_for_eval_result
1602 # }
1603 # func_add_hook func_parse_options my_silent_option
1604 #
1605 #
1606 # my_option_validation ()
1607 # {
1608 # $debug_cmd
1609 #
1610 # $opt_silent && $opt_verbose && func_fatal_help "\
1611 # '--silent' and '--verbose' options are mutually exclusive."
1612 #
1613 # func_quote_for_eval ${1+"$@"}
1614 # my_option_validation_result=$func_quote_for_eval_result
1615 # }
1616 # func_add_hook func_validate_options my_option_validation
1617 #
1618 # You'll alse need to manually amend $usage_message to reflect the extra
1619 # options you parse. It's preferable to append if you can, so that
1620 # multiple option parsing hooks can be added safely.
1621
1622
1623 # func_options [ARG]...
1624 # ---------------------
1625 # All the functions called inside func_options are hookable. See the
1626 # individual implementations for details.
1627 func_hookable func_options
1628 func_options ()
1629 {
1630 $debug_cmd
1631
1632 func_options_prep ${1+"$@"}
1633 eval func_parse_options \
1634 ${func_options_prep_result+"$func_options_prep_result"}
1635 eval func_validate_options \
1636 ${func_parse_options_result+"$func_parse_options_result"}
1637
1638 eval func_run_hooks func_options \
1639 ${func_validate_options_result+"$func_validate_options_result"}
1640
1641 # save modified positional parameters for caller
1642 func_options_result=$func_run_hooks_result
1643 }
1644
1645
1646 # func_options_prep [ARG]...
1647 # --------------------------
1648 # All initialisations required before starting the option parse loop.
1649 # Note that when calling hook functions, we pass through the list of
1650 # positional parameters. If a hook function modifies that list, and
1651 # needs to propogate that back to rest of this script, then the complete
1652 # modified list must be put in 'func_run_hooks_result' before
1653 # returning.
1654 func_hookable func_options_prep
1655 func_options_prep ()
1656 {
1657 $debug_cmd
1658
1659 # Option defaults:
1660 opt_verbose=false
1661 opt_warning_types=
1662
1663 func_run_hooks func_options_prep ${1+"$@"}
1664
1665 # save modified positional parameters for caller
1666 func_options_prep_result=$func_run_hooks_result
1667 }
1668
1669
1670 # func_parse_options [ARG]...
1671 # ---------------------------
1672 # The main option parsing loop.
1673 func_hookable func_parse_options
1674 func_parse_options ()
1675 {
1676 $debug_cmd
1677
1678 func_parse_options_result=
1679
1680 # this just eases exit handling
1681 while test $# -gt 0; do
1682 # Defer to hook functions for initial option parsing, so they
1683 # get priority in the event of reusing an option name.
1684 func_run_hooks func_parse_options ${1+"$@"}
1685
1686 # Adjust func_parse_options positional parameters to match
1687 eval set dummy "$func_run_hooks_result"; shift
1688
1689 # Break out of the loop if we already parsed every option.
1690 test $# -gt 0 || break
1691
1692 _G_opt=$1
1693 shift
1694 case $_G_opt in
1695 --debug|-x) debug_cmd='set -x'
1696 func_echo "enabling shell trace mode"
1697 $debug_cmd
1698 ;;
1699
1700 --no-warnings|--no-warning|--no-warn)
1701 set dummy --warnings none ${1+"$@"}
1702 shift
1703 ;;
1704
1705 --warnings|--warning|-W)
1706 test $# = 0 && func_missing_arg $_G_opt && break
1707 case " $warning_categories $1" in
1708 *" $1 "*)
1709 # trailing space prevents matching last $1 above
1710 func_append_uniq opt_warning_types " $1"
1711 ;;
1712 *all)
1713 opt_warning_types=$warning_categories
1714 ;;
1715 *none)
1716 opt_warning_types=none
1717 warning_func=:
1718 ;;
1719 *error)
1720 opt_warning_types=$warning_categories
1721 warning_func=func_fatal_error
1722 ;;
1723 *)
1724 func_fatal_error \
1725 "unsupported warning category: '$1'"
1726 ;;
1727 esac
1728 shift
1729 ;;
1730
1731 --verbose|-v) opt_verbose=: ;;
1732 --version) func_version ;;
1733 -\?|-h) func_usage ;;
1734 --help) func_help ;;
1735
1736 # Separate optargs to long options (plugins may need this):
1737 --*=*) func_split_equals "$_G_opt"
1738 set dummy "$func_split_equals_lhs" \
1739 "$func_split_equals_rhs" ${1+"$@"}
1740 shift
1741 ;;
1742
1743 # Separate optargs to short options:
1744 -W*)
1745 func_split_short_opt "$_G_opt"
1746 set dummy "$func_split_short_opt_name" \
1747 "$func_split_short_opt_arg" ${1+"$@"}
1748 shift
1749 ;;
1750
1751 # Separate non-argument short options:
1752 -\?*|-h*|-v*|-x*)
1753 func_split_short_opt "$_G_opt"
1754 set dummy "$func_split_short_opt_name" \
1755 "-$func_split_short_opt_arg" ${1+"$@"}
1756 shift
1757 ;;
1758
1759 --) break ;;
1760 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1761 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1762 esac
1763 done
1764
1765 # save modified positional parameters for caller
1766 func_quote_for_eval ${1+"$@"}
1767 func_parse_options_result=$func_quote_for_eval_result
1768 }
1769
1770
1771 # func_validate_options [ARG]...
1772 # ------------------------------
1773 # Perform any sanity checks on option settings and/or unconsumed
1774 # arguments.
1775 func_hookable func_validate_options
1776 func_validate_options ()
1777 {
1778 $debug_cmd
1779
1780 # Display all warnings if -W was not given.
1781 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1782
1783 func_run_hooks func_validate_options ${1+"$@"}
1784
1785 # Bail if the options were screwed!
1786 $exit_cmd $EXIT_FAILURE
1787
1788 # save modified positional parameters for caller
1789 func_validate_options_result=$func_run_hooks_result
1790 }
1791
1792
1793
1794 ## ----------------- ##
1795 ## Helper functions. ##
1796 ## ----------------- ##
1797
1798 # This section contains the helper functions used by the rest of the
1799 # hookable option parser framework in ascii-betical order.
1800
1801
1802 # func_fatal_help ARG...
1803 # ----------------------
1804 # Echo program name prefixed message to standard error, followed by
1805 # a help hint, and exit.
1806 func_fatal_help ()
1807 {
1808 $debug_cmd
1809
1810 eval \$ECHO \""Usage: $usage"\"
1811 eval \$ECHO \""$fatal_help"\"
1812 func_error ${1+"$@"}
1813 exit $EXIT_FAILURE
1814 }
1815
1816
1817 # func_help
1818 # ---------
1819 # Echo long help message to standard output and exit.
7541820 func_help ()
7551821 {
756 $opt_debug
757
758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760 s/^# //
761 s/^# *$//
762 s*\$progname*'$progname'*
763 s*\$host*'"$host"'*
764 s*\$SHELL*'"$SHELL"'*
765 s*\$LTCC*'"$LTCC"'*
766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767 s*\$LD*'"$LD"'*
768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
771 p
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
781 }
782
783 # func_missing_arg argname
1822 $debug_cmd
1823
1824 func_usage_message
1825 $ECHO "$long_help_message"
1826 exit 0
1827 }
1828
1829
1830 # func_missing_arg ARGNAME
1831 # ------------------------
7841832 # Echo program name prefixed message to standard error and set global
7851833 # exit_cmd.
7861834 func_missing_arg ()
7871835 {
788 $opt_debug
789
790 func_error "missing argument for $1."
1836 $debug_cmd
1837
1838 func_error "Missing argument for '$1'."
7911839 exit_cmd=exit
7921840 }
7931841
7941842
795 # func_split_short_opt shortopt
1843 # func_split_equals STRING
1844 # ------------------------
1845 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1846 # splitting STRING at the '=' sign.
1847 test -z "$_G_HAVE_XSI_OPS" \
1848 && (eval 'x=a/b/c;
1849 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1850 && _G_HAVE_XSI_OPS=yes
1851
1852 if test yes = "$_G_HAVE_XSI_OPS"
1853 then
1854 # This is an XSI compatible shell, allowing a faster implementation...
1855 eval 'func_split_equals ()
1856 {
1857 $debug_cmd
1858
1859 func_split_equals_lhs=${1%%=*}
1860 func_split_equals_rhs=${1#*=}
1861 test "x$func_split_equals_lhs" = "x$1" \
1862 && func_split_equals_rhs=
1863 }'
1864 else
1865 # ...otherwise fall back to using expr, which is often a shell builtin.
1866 func_split_equals ()
1867 {
1868 $debug_cmd
1869
1870 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1871 func_split_equals_rhs=
1872 test "x$func_split_equals_lhs" = "x$1" \
1873 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1874 }
1875 fi #func_split_equals
1876
1877
1878 # func_split_short_opt SHORTOPT
1879 # -----------------------------
7961880 # Set func_split_short_opt_name and func_split_short_opt_arg shell
7971881 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
820 exit_cmd=:
821
822
823
824
825
826 magic="%%%MAGIC variable%%%"
827 magic_exe="%%%MAGIC EXE variable%%%"
828
829 # Global variables.
830 nonopt=
831 preserve_args=
832 lo2o="s/\\.lo\$/.${objext}/"
833 o2lo="s/\\.${objext}\$/.lo/"
834 extracted_archives=
835 extracted_serial=0
836
837 # If this variable is set in any of the actions, the command in it
838 # will be execed at the end. This prevents here-documents from being
839 # left over by shells.
840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
888 # func_fatal_configuration arg...
1882 if test yes = "$_G_HAVE_XSI_OPS"
1883 then
1884 # This is an XSI compatible shell, allowing a faster implementation...
1885 eval 'func_split_short_opt ()
1886 {
1887 $debug_cmd
1888
1889 func_split_short_opt_arg=${1#??}
1890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1891 }'
1892 else
1893 # ...otherwise fall back to using expr, which is often a shell builtin.
1894 func_split_short_opt ()
1895 {
1896 $debug_cmd
1897
1898 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1899 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1900 }
1901 fi #func_split_short_opt
1902
1903
1904 # func_usage
1905 # ----------
1906 # Echo short help message to standard output and exit.
1907 func_usage ()
1908 {
1909 $debug_cmd
1910
1911 func_usage_message
1912 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1913 exit 0
1914 }
1915
1916
1917 # func_usage_message
1918 # ------------------
1919 # Echo short help message to standard output.
1920 func_usage_message ()
1921 {
1922 $debug_cmd
1923
1924 eval \$ECHO \""Usage: $usage"\"
1925 echo
1926 $SED -n 's|^# ||
1927 /^Written by/{
1928 x;p;x
1929 }
1930 h
1931 /^Written by/q' < "$progpath"
1932 echo
1933 eval \$ECHO \""$usage_message"\"
1934 }
1935
1936
1937 # func_version
1938 # ------------
1939 # Echo version message to standard output and exit.
1940 func_version ()
1941 {
1942 $debug_cmd
1943
1944 printf '%s\n' "$progname $scriptversion"
1945 $SED -n '
1946 /(C)/!b go
1947 :more
1948 /\./!{
1949 N
1950 s|\n# | |
1951 b more
1952 }
1953 :go
1954 /^# Written by /,/# warranty; / {
1955 s|^# ||
1956 s|^# *$||
1957 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1958 p
1959 }
1960 /^# Written by / {
1961 s|^# ||
1962 p
1963 }
1964 /^warranty; /q' < "$progpath"
1965
1966 exit $?
1967 }
1968
1969
1970 # Local variables:
1971 # mode: shell-script
1972 # sh-indentation: 2
1973 # eval: (add-hook 'before-save-hook 'time-stamp)
1974 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1975 # time-stamp-time-zone: "UTC"
1976 # End:
1977
1978 # Set a version string.
1979 scriptversion='(GNU libtool) 2.4.6 Debian-2.4.6-1'
1980
1981
1982 # func_echo ARG...
1983 # ----------------
1984 # Libtool also displays the current mode in messages, so override
1985 # funclib.sh func_echo with this custom definition.
1986 func_echo ()
1987 {
1988 $debug_cmd
1989
1990 _G_message=$*
1991
1992 func_echo_IFS=$IFS
1993 IFS=$nl
1994 for _G_line in $_G_message; do
1995 IFS=$func_echo_IFS
1996 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
1997 done
1998 IFS=$func_echo_IFS
1999 }
2000
2001
2002 # func_warning ARG...
2003 # -------------------
2004 # Libtool warnings are not categorized, so override funclib.sh
2005 # func_warning with this simpler definition.
2006 func_warning ()
2007 {
2008 $debug_cmd
2009
2010 $warning_func ${1+"$@"}
2011 }
2012
2013
2014 ## ---------------- ##
2015 ## Options parsing. ##
2016 ## ---------------- ##
2017
2018 # Hook in the functions to make sure our own options are parsed during
2019 # the option parsing loop.
2020
2021 usage='$progpath [OPTION]... [MODE-ARG]...'
2022
2023 # Short help message in response to '-h'.
2024 usage_message="Options:
2025 --config show all configuration variables
2026 --debug enable verbose shell tracing
2027 -n, --dry-run display commands without modifying any files
2028 --features display basic configuration information and exit
2029 --mode=MODE use operation mode MODE
2030 --no-warnings equivalent to '-Wnone'
2031 --preserve-dup-deps don't remove duplicate dependency libraries
2032 --quiet, --silent don't print informational messages
2033 --tag=TAG use configuration variables from tag TAG
2034 -v, --verbose print more informational messages than default
2035 --version print version information
2036 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2037 -h, --help, --help-all print short, long, or detailed help message
2038 "
2039
2040 # Additional text appended to 'usage_message' in response to '--help'.
2041 func_help ()
2042 {
2043 $debug_cmd
2044
2045 func_usage_message
2046 $ECHO "$long_help_message
2047
2048 MODE must be one of the following:
2049
2050 clean remove files from the build directory
2051 compile compile a source file into a libtool object
2052 execute automatically set library path, then run a program
2053 finish complete the installation of libtool libraries
2054 install install libraries or executables
2055 link create a library or an executable
2056 uninstall remove libraries from an installed directory
2057
2058 MODE-ARGS vary depending on the MODE. When passed as first option,
2059 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2060 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2061
2062 When reporting a bug, please describe a test case to reproduce it and
2063 include the following information:
2064
2065 host-triplet: $host
2066 shell: $SHELL
2067 compiler: $LTCC
2068 compiler flags: $LTCFLAGS
2069 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname $scriptversion
2071 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2072 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2073
2074 Report bugs to <bug-libtool@gnu.org>.
2075 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2076 General help using GNU software: <http://www.gnu.org/gethelp/>."
2077 exit 0
2078 }
2079
2080
2081 # func_lo2o OBJECT-NAME
2082 # ---------------------
2083 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2084 # object suffix.
2085
2086 lo2o=s/\\.lo\$/.$objext/
2087 o2lo=s/\\.$objext\$/.lo/
2088
2089 if test yes = "$_G_HAVE_XSI_OPS"; then
2090 eval 'func_lo2o ()
2091 {
2092 case $1 in
2093 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2094 * ) func_lo2o_result=$1 ;;
2095 esac
2096 }'
2097
2098 # func_xform LIBOBJ-OR-SOURCE
2099 # ---------------------------
2100 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2101 # suffix to a '.lo' libtool-object suffix.
2102 eval 'func_xform ()
2103 {
2104 func_xform_result=${1%.*}.lo
2105 }'
2106 else
2107 # ...otherwise fall back to using sed.
2108 func_lo2o ()
2109 {
2110 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2111 }
2112
2113 func_xform ()
2114 {
2115 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2116 }
2117 fi
2118
2119
2120 # func_fatal_configuration ARG...
2121 # -------------------------------
8892122 # Echo program name prefixed message to standard error, followed by
8902123 # a configuration failure hint, and exit.
8912124 func_fatal_configuration ()
8922125 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
2126 func__fatal_error ${1+"$@"} \
2127 "See the $PACKAGE documentation for more information." \
2128 "Fatal configuration error."
8962129 }
8972130
8982131
8992132 # func_config
2133 # -----------
9002134 # Display the configuration for all the tags in this script.
9012135 func_config ()
9022136 {
9142148 exit $?
9152149 }
9162150
2151
9172152 # func_features
2153 # -------------
9182154 # Display the features supported by this script.
9192155 func_features ()
9202156 {
9212157 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
2158 if test yes = "$build_libtool_libs"; then
9232159 echo "enable shared libraries"
9242160 else
9252161 echo "disable shared libraries"
9262162 fi
927 if test "$build_old_libs" = yes; then
2163 if test yes = "$build_old_libs"; then
9282164 echo "enable static libraries"
9292165 else
9302166 echo "disable static libraries"
9332169 exit $?
9342170 }
9352171
936 # func_enable_tag tagname
2172
2173 # func_enable_tag TAGNAME
2174 # -----------------------
9372175 # Verify that TAGNAME is valid, and either flag an error and exit, or
9382176 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
9392177 # variable here.
9402178 func_enable_tag ()
9412179 {
942 # Global variable:
943 tagname="$1"
944
945 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
946 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
947 sed_extractcf="/$re_begincf/,/$re_endcf/p"
948
949 # Validate tagname.
950 case $tagname in
951 *[!-_A-Za-z0-9,/]*)
952 func_fatal_error "invalid tag name: $tagname"
953 ;;
954 esac
955
956 # Don't test for the "default" C tag, as we know it's
957 # there but not specially marked.
958 case $tagname in
959 CC) ;;
2180 # Global variable:
2181 tagname=$1
2182
2183 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2184 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2185 sed_extractcf=/$re_begincf/,/$re_endcf/p
2186
2187 # Validate tagname.
2188 case $tagname in
2189 *[!-_A-Za-z0-9,/]*)
2190 func_fatal_error "invalid tag name: $tagname"
2191 ;;
2192 esac
2193
2194 # Don't test for the "default" C tag, as we know it's
2195 # there but not specially marked.
2196 case $tagname in
2197 CC) ;;
9602198 *)
961 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
962 taglist="$taglist $tagname"
963
964 # Evaluate the configuration. Be careful to quote the path
965 # and the sed script, to avoid splitting on whitespace, but
966 # also don't use non-portable quotes within backquotes within
967 # quotes we have to do it in 2 steps:
968 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
969 eval "$extractedcf"
970 else
971 func_error "ignoring unknown tag $tagname"
972 fi
973 ;;
974 esac
975 }
2199 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2200 taglist="$taglist $tagname"
2201
2202 # Evaluate the configuration. Be careful to quote the path
2203 # and the sed script, to avoid splitting on whitespace, but
2204 # also don't use non-portable quotes within backquotes within
2205 # quotes we have to do it in 2 steps:
2206 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2207 eval "$extractedcf"
2208 else
2209 func_error "ignoring unknown tag $tagname"
2210 fi
2211 ;;
2212 esac
2213 }
2214
9762215
9772216 # func_check_version_match
2217 # ------------------------
9782218 # Ensure that we are using m4 macros, and libtool script from the same
9792219 # release of libtool.
9802220 func_check_version_match ()
9812221 {
982 if test "$package_revision" != "$macro_revision"; then
983 if test "$VERSION" != "$macro_version"; then
984 if test -z "$macro_version"; then
985 cat >&2 <<_LT_EOF
2222 if test "$package_revision" != "$macro_revision"; then
2223 if test "$VERSION" != "$macro_version"; then
2224 if test -z "$macro_version"; then
2225 cat >&2 <<_LT_EOF
9862226 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9872227 $progname: definition of this LT_INIT comes from an older release.
9882228 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9892229 $progname: and run autoconf again.
9902230 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
2231 else
2232 cat >&2 <<_LT_EOF
9932233 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9942234 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
9952235 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9962236 $progname: and run autoconf again.
9972237 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
2238 fi
2239 else
2240 cat >&2 <<_LT_EOF
10012241 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
10022242 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
10032243 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
10042244 $progname: of $PACKAGE $VERSION and run autoconf again.
10052245 _LT_EOF
2246 fi
2247
2248 exit $EXIT_MISMATCH
10062249 fi
1007
1008 exit $EXIT_MISMATCH
1009 fi
1010 }
1011
1012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
2250 }
2251
2252
2253 # libtool_options_prep [ARG]...
2254 # -----------------------------
2255 # Preparation for options parsed by libtool.
2256 libtool_options_prep ()
2257 {
2258 $debug_mode
2259
2260 # Option defaults:
2261 opt_config=false
2262 opt_dlopen=
2263 opt_dry_run=false
2264 opt_help=false
2265 opt_mode=
2266 opt_preserve_dup_deps=false
2267 opt_quiet=false
2268
2269 nonopt=
2270 preserve_args=
2271
2272 # Shorthand for --mode=foo, only valid as the first argument
2273 case $1 in
2274 clean|clea|cle|cl)
2275 shift; set dummy --mode clean ${1+"$@"}; shift
2276 ;;
2277 compile|compil|compi|comp|com|co|c)
2278 shift; set dummy --mode compile ${1+"$@"}; shift
2279 ;;
2280 execute|execut|execu|exec|exe|ex|e)
2281 shift; set dummy --mode execute ${1+"$@"}; shift
2282 ;;
2283 finish|finis|fini|fin|fi|f)
2284 shift; set dummy --mode finish ${1+"$@"}; shift
2285 ;;
2286 install|instal|insta|inst|ins|in|i)
2287 shift; set dummy --mode install ${1+"$@"}; shift
2288 ;;
2289 link|lin|li|l)
2290 shift; set dummy --mode link ${1+"$@"}; shift
2291 ;;
2292 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2293 shift; set dummy --mode uninstall ${1+"$@"}; shift
2294 ;;
11672295 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
2296
2297 # Pass back the list of options.
2298 func_quote_for_eval ${1+"$@"}
2299 libtool_options_prep_result=$func_quote_for_eval_result
2300 }
2301 func_add_hook func_options_prep libtool_options_prep
2302
2303
2304 # libtool_parse_options [ARG]...
2305 # ---------------------------------
2306 # Provide handling for libtool specific options.
2307 libtool_parse_options ()
2308 {
2309 $debug_cmd
2310
2311 # Perform our own loop to consume as many options as possible in
2312 # each iteration.
2313 while test $# -gt 0; do
2314 _G_opt=$1
2315 shift
2316 case $_G_opt in
2317 --dry-run|--dryrun|-n)
2318 opt_dry_run=:
2319 ;;
2320
2321 --config) func_config ;;
2322
2323 --dlopen|-dlopen)
2324 opt_dlopen="${opt_dlopen+$opt_dlopen
2325 }$1"
2326 shift
2327 ;;
2328
2329 --preserve-dup-deps)
2330 opt_preserve_dup_deps=: ;;
2331
2332 --features) func_features ;;
2333
2334 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2335
2336 --help) opt_help=: ;;
2337
2338 --help-all) opt_help=': help-all' ;;
2339
2340 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2341 opt_mode=$1
2342 case $1 in
2343 # Valid mode arguments:
2344 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2345
2346 # Catch anything else as an error
2347 *) func_error "invalid argument for $_G_opt"
2348 exit_cmd=exit
2349 break
2350 ;;
2351 esac
2352 shift
2353 ;;
2354
2355 --no-silent|--no-quiet)
2356 opt_quiet=false
2357 func_append preserve_args " $_G_opt"
2358 ;;
2359
2360 --no-warnings|--no-warning|--no-warn)
2361 opt_warning=false
2362 func_append preserve_args " $_G_opt"
2363 ;;
2364
2365 --no-verbose)
2366 opt_verbose=false
2367 func_append preserve_args " $_G_opt"
2368 ;;
2369
2370 --silent|--quiet)
2371 opt_quiet=:
2372 opt_verbose=false
2373 func_append preserve_args " $_G_opt"
2374 ;;
2375
2376 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2377 opt_tag=$1
2378 func_append preserve_args " $_G_opt $1"
2379 func_enable_tag "$1"
2380 shift
2381 ;;
2382
2383 --verbose|-v) opt_quiet=false
2384 opt_verbose=:
2385 func_append preserve_args " $_G_opt"
2386 ;;
2387
2388 # An option not handled by this hook function:
2389 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2390 esac
2391 done
2392
2393
2394 # save modified positional parameters for caller
2395 func_quote_for_eval ${1+"$@"}
2396 libtool_parse_options_result=$func_quote_for_eval_result
2397 }
2398 func_add_hook func_parse_options libtool_parse_options
2399
2400
2401
2402 # libtool_validate_options [ARG]...
2403 # ---------------------------------
2404 # Perform any sanity checks on option settings and/or unconsumed
2405 # arguments.
2406 libtool_validate_options ()
2407 {
2408 # save first non-option argument
2409 if test 0 -lt $#; then
2410 nonopt=$1
2411 shift
11972412 fi
11982413
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
2414 # preserve --debug
2415 test : = "$debug_cmd" || func_append preserve_args " --debug"
2416
2417 case $host in
2418 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2419 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2420 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2421 # don't eliminate duplications in $postdeps and $predeps
2422 opt_duplicate_compiler_generated_deps=:
2423 ;;
2424 *)
2425 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2426 ;;
2427 esac
2428
2429 $opt_help || {
2430 # Sanity checks first:
2431 func_check_version_match
2432
2433 test yes != "$build_libtool_libs" \
2434 && test yes != "$build_old_libs" \
2435 && func_fatal_configuration "not configured to build any kind of library"
2436
2437 # Darwin sucks
2438 eval std_shrext=\"$shrext_cmds\"
2439
2440 # Only execute mode is allowed to have -dlopen flags.
2441 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2442 func_error "unrecognized option '-dlopen'"
2443 $ECHO "$help" 1>&2
2444 exit $EXIT_FAILURE
2445 fi
2446
2447 # Change the help message to a mode-specific one.
2448 generic_help=$help
2449 help="Try '$progname --help --mode=$opt_mode' for more information."
2450 }
2451
2452 # Pass back the unparsed argument list
2453 func_quote_for_eval ${1+"$@"}
2454 libtool_validate_options_result=$func_quote_for_eval_result
2455 }
2456 func_add_hook func_validate_options libtool_validate_options
2457
2458
2459 # Process options as early as possible so that --help and --version
2460 # can return quickly.
2461 func_options ${1+"$@"}
2462 eval set dummy "$func_options_result"; shift
12192463
12202464
12212465
12232467 ## Main. ##
12242468 ## ----------- ##
12252469
2470 magic='%%%MAGIC variable%%%'
2471 magic_exe='%%%MAGIC EXE variable%%%'
2472
2473 # Global variables.
2474 extracted_archives=
2475 extracted_serial=0
2476
2477 # If this variable is set in any of the actions, the command in it
2478 # will be execed at the end. This prevents here-documents from being
2479 # left over by shells.
2480 exec_cmd=
2481
2482
2483 # A function that is used when there is no print builtin or printf.
2484 func_fallback_echo ()
2485 {
2486 eval 'cat <<_LTECHO_EOF
2487 $1
2488 _LTECHO_EOF'
2489 }
2490
2491 # func_generated_by_libtool
2492 # True iff stdin has been generated by Libtool. This function is only
2493 # a basic sanity check; it will hardly flush out determined imposters.
2494 func_generated_by_libtool_p ()
2495 {
2496 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2497 }
2498
12262499 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
2500 # True iff FILE is a libtool '.la' library or '.lo' object file.
12282501 # This function is only a basic sanity check; it will hardly flush out
12292502 # determined imposters.
12302503 func_lalib_p ()
12312504 {
12322505 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2506 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
12352507 }
12362508
12372509 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
2510 # True iff FILE is a libtool '.la' library or '.lo' object file.
12392511 # This function implements the same check as func_lalib_p without
12402512 # resorting to external programs. To this end, it redirects stdin and
12412513 # closes it afterwards, without saving the original file descriptor.
12422514 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
2515 # fatal anyway. Works if 'file' does not exist.
12442516 func_lalib_unsafe_p ()
12452517 {
12462518 lalib_p=no
12482520 for lalib_p_l in 1 2 3 4
12492521 do
12502522 read lalib_p_line
1251 case "$lalib_p_line" in
2523 case $lalib_p_line in
12522524 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
12532525 esac
12542526 done
12552527 exec 0<&5 5<&-
12562528 fi
1257 test "$lalib_p" = yes
2529 test yes = "$lalib_p"
12582530 }
12592531
12602532 # func_ltwrapper_script_p file
12632535 # determined imposters.
12642536 func_ltwrapper_script_p ()
12652537 {
1266 func_lalib_p "$1"
2538 test -f "$1" &&
2539 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
12672540 }
12682541
12692542 # func_ltwrapper_executable_p file
12882561 {
12892562 func_dirname_and_basename "$1" "" "."
12902563 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
2564 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
12922565 }
12932566
12942567 # func_ltwrapper_p file
13072580 # FAIL_CMD may read-access the current command in variable CMD!
13082581 func_execute_cmds ()
13092582 {
1310 $opt_debug
2583 $debug_cmd
2584
13112585 save_ifs=$IFS; IFS='~'
13122586 for cmd in $1; do
2587 IFS=$sp$nl
2588 eval cmd=\"$cmd\"
13132589 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
13152590 func_show_eval "$cmd" "${2-:}"
13162591 done
13172592 IFS=$save_ifs
13232598 # Note that it is not necessary on cygwin/mingw to append a dot to
13242599 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
13252600 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
2601 # 'FILE.' does not work on cygwin managed mounts.
13272602 func_source ()
13282603 {
1329 $opt_debug
2604 $debug_cmd
2605
13302606 case $1 in
13312607 */* | *\\*) . "$1" ;;
13322608 *) . "./$1" ;;
13532629 # store the result into func_replace_sysroot_result.
13542630 func_replace_sysroot ()
13552631 {
1356 case "$lt_sysroot:$1" in
2632 case $lt_sysroot:$1 in
13572633 ?*:"$lt_sysroot"*)
13582634 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
2635 func_replace_sysroot_result='='$func_stripname_result
13602636 ;;
13612637 *)
13622638 # Including no sysroot.
13732649 # arg is usually of the form 'gcc ...'
13742650 func_infer_tag ()
13752651 {
1376 $opt_debug
2652 $debug_cmd
2653
13772654 if test -n "$available_tags" && test -z "$tagname"; then
13782655 CC_quoted=
13792656 for arg in $CC; do
13922669 for z in $available_tags; do
13932670 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
13942671 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2672 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
13962673 CC_quoted=
13972674 for arg in $CC; do
13982675 # Double-quote args containing other shell metacharacters.
14172694 # line option must be used.
14182695 if test -z "$tagname"; then
14192696 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
2697 func_fatal_error "specify a tag with '--tag'"
14212698 # else
14222699 # func_verbose "using $tagname tagged configuration"
14232700 fi
14332710 # but don't create it if we're doing a dry run.
14342711 func_write_libtool_object ()
14352712 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
2713 write_libobj=$1
2714 if test yes = "$build_libtool_libs"; then
2715 write_lobj=\'$2\'
14392716 else
14402717 write_lobj=none
14412718 fi
14422719
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
2720 if test yes = "$build_old_libs"; then
2721 write_oldobj=\'$3\'
14452722 else
14462723 write_oldobj=none
14472724 fi
14492726 $opt_dry_run || {
14502727 cat >${write_libobj}T <<EOF
14512728 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2729 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
14532730 #
14542731 # Please DO NOT delete this file!
14552732 # It is necessary for linking the library.
14612738 non_pic_object=$write_oldobj
14622739
14632740 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
2741 $MV "${write_libobj}T" "$write_libobj"
14652742 }
14662743 }
14672744
14812758 # be empty on error (or when ARG is empty)
14822759 func_convert_core_file_wine_to_w32 ()
14832760 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
2761 $debug_cmd
2762
2763 func_convert_core_file_wine_to_w32_result=$1
14862764 if test -n "$1"; then
14872765 # Unfortunately, winepath does not exit with a non-zero error code, so we
14882766 # are forced to check the contents of stdout. On the other hand, if the
14902768 # *an error message* to stdout. So we must check for both error code of
14912769 # zero AND non-empty stdout, which explains the odd construction:
14922770 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
2771 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
14942772 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
2773 $SED -e "$sed_naive_backslashify"`
14962774 else
14972775 func_convert_core_file_wine_to_w32_result=
14982776 fi
15132791 # are convertible, then the result may be empty.
15142792 func_convert_core_path_wine_to_w32 ()
15152793 {
1516 $opt_debug
2794 $debug_cmd
2795
15172796 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
2797 func_convert_core_path_wine_to_w32_result=
15192798 if test -n "$1"; then
15202799 oldIFS=$IFS
15212800 IFS=:
15222801 for func_convert_core_path_wine_to_w32_f in $1; do
15232802 IFS=$oldIFS
15242803 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
2804 if test -n "$func_convert_core_file_wine_to_w32_result"; then
15262805 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
2806 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
15282807 else
15292808 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15302809 fi
15532832 # environment variable; do not put it in $PATH.
15542833 func_cygpath ()
15552834 {
1556 $opt_debug
2835 $debug_cmd
2836
15572837 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15582838 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15592839 if test "$?" -ne 0; then
15622842 fi
15632843 else
15642844 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
2845 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
15662846 fi
15672847 }
15682848 #end: func_cygpath
15732853 # result in func_convert_core_msys_to_w32_result.
15742854 func_convert_core_msys_to_w32 ()
15752855 {
1576 $opt_debug
2856 $debug_cmd
2857
15772858 # awkward: cmd appends spaces to result
15782859 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2860 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
15802861 }
15812862 #end: func_convert_core_msys_to_w32
15822863
15872868 # func_to_host_file_result to ARG1).
15882869 func_convert_file_check ()
15892870 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
2871 $debug_cmd
2872
2873 if test -z "$2" && test -n "$1"; then
15922874 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
2875 func_error " '$1'"
15942876 func_error "Continuing, but uninstalled executables may not work."
15952877 # Fallback:
1596 func_to_host_file_result="$1"
2878 func_to_host_file_result=$1
15972879 fi
15982880 }
15992881 # end func_convert_file_check
16052887 # func_to_host_file_result to a simplistic fallback value (see below).
16062888 func_convert_path_check ()
16072889 {
1608 $opt_debug
2890 $debug_cmd
2891
16092892 if test -z "$4" && test -n "$3"; then
16102893 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
2894 func_error " '$3'"
16122895 func_error "Continuing, but uninstalled executables may not work."
16132896 # Fallback. This is a deliberately simplistic "conversion" and
16142897 # should not be "improved". See libtool.info.
16172900 func_to_host_path_result=`echo "$3" |
16182901 $SED -e "$lt_replace_pathsep_chars"`
16192902 else
1620 func_to_host_path_result="$3"
2903 func_to_host_path_result=$3
16212904 fi
16222905 fi
16232906 }
16292912 # and appending REPL if ORIG matches BACKPAT.
16302913 func_convert_path_front_back_pathsep ()
16312914 {
1632 $opt_debug
2915 $debug_cmd
2916
16332917 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
2918 $1 ) func_to_host_path_result=$3$func_to_host_path_result
16352919 ;;
16362920 esac
16372921 case $4 in
16452929 ##################################################
16462930 # $build to $host FILE NAME CONVERSION FUNCTIONS #
16472931 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
2932 # invoked via '$to_host_file_cmd ARG'
16492933 #
16502934 # In each case, ARG is the path to be converted from $build to $host format.
16512935 # Result will be available in $func_to_host_file_result.
16562940 # in func_to_host_file_result.
16572941 func_to_host_file ()
16582942 {
1659 $opt_debug
2943 $debug_cmd
2944
16602945 $to_host_file_cmd "$1"
16612946 }
16622947 # end func_to_host_file
16682953 # in (the comma separated) LAZY, no conversion takes place.
16692954 func_to_tool_file ()
16702955 {
1671 $opt_debug
2956 $debug_cmd
2957
16722958 case ,$2, in
16732959 *,"$to_tool_file_cmd",*)
16742960 func_to_tool_file_result=$1
16862972 # Copy ARG to func_to_host_file_result.
16872973 func_convert_file_noop ()
16882974 {
1689 func_to_host_file_result="$1"
2975 func_to_host_file_result=$1
16902976 }
16912977 # end func_convert_file_noop
16922978
16972983 # func_to_host_file_result.
16982984 func_convert_file_msys_to_w32 ()
16992985 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
2986 $debug_cmd
2987
2988 func_to_host_file_result=$1
17022989 if test -n "$1"; then
17032990 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
2991 func_to_host_file_result=$func_convert_core_msys_to_w32_result
17052992 fi
17062993 func_convert_file_check "$1" "$func_to_host_file_result"
17072994 }
17133000 # func_to_host_file_result.
17143001 func_convert_file_cygwin_to_w32 ()
17153002 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
3003 $debug_cmd
3004
3005 func_to_host_file_result=$1
17183006 if test -n "$1"; then
17193007 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
17203008 # LT_CYGPATH in this case.
17303018 # and a working winepath. Returns result in func_to_host_file_result.
17313019 func_convert_file_nix_to_w32 ()
17323020 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
3021 $debug_cmd
3022
3023 func_to_host_file_result=$1
17353024 if test -n "$1"; then
17363025 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
3026 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
17383027 fi
17393028 func_convert_file_check "$1" "$func_to_host_file_result"
17403029 }
17463035 # Returns result in func_to_host_file_result.
17473036 func_convert_file_msys_to_cygwin ()
17483037 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
3038 $debug_cmd
3039
3040 func_to_host_file_result=$1
17513041 if test -n "$1"; then
17523042 func_convert_core_msys_to_w32 "$1"
17533043 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
3044 func_to_host_file_result=$func_cygpath_result
17553045 fi
17563046 func_convert_file_check "$1" "$func_to_host_file_result"
17573047 }
17643054 # in func_to_host_file_result.
17653055 func_convert_file_nix_to_cygwin ()
17663056 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
3057 $debug_cmd
3058
3059 func_to_host_file_result=$1
17693060 if test -n "$1"; then
17703061 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
17713062 func_convert_core_file_wine_to_w32 "$1"
17723063 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
3064 func_to_host_file_result=$func_cygpath_result
17743065 fi
17753066 func_convert_file_check "$1" "$func_to_host_file_result"
17763067 }
17803071 #############################################
17813072 # $build to $host PATH CONVERSION FUNCTIONS #
17823073 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
3074 # invoked via '$to_host_path_cmd ARG'
17843075 #
17853076 # In each case, ARG is the path to be converted from $build to $host format.
17863077 # The result will be available in $func_to_host_path_result.
18043095 to_host_path_cmd=
18053096 func_init_to_host_path_cmd ()
18063097 {
1807 $opt_debug
3098 $debug_cmd
3099
18083100 if test -z "$to_host_path_cmd"; then
18093101 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
3102 to_host_path_cmd=func_convert_path_$func_stripname_result
18113103 fi
18123104 }
18133105
18173109 # in func_to_host_path_result.
18183110 func_to_host_path ()
18193111 {
1820 $opt_debug
3112 $debug_cmd
3113
18213114 func_init_to_host_path_cmd
18223115 $to_host_path_cmd "$1"
18233116 }
18283121 # Copy ARG to func_to_host_path_result.
18293122 func_convert_path_noop ()
18303123 {
1831 func_to_host_path_result="$1"
3124 func_to_host_path_result=$1
18323125 }
18333126 # end func_convert_path_noop
18343127
18393132 # func_to_host_path_result.
18403133 func_convert_path_msys_to_w32 ()
18413134 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
3135 $debug_cmd
3136
3137 func_to_host_path_result=$1
18443138 if test -n "$1"; then
18453139 # Remove leading and trailing path separator characters from ARG. MSYS
18463140 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
18483142 func_stripname : : "$1"
18493143 func_to_host_path_tmp1=$func_stripname_result
18503144 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
3145 func_to_host_path_result=$func_convert_core_msys_to_w32_result
18523146 func_convert_path_check : ";" \
18533147 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18543148 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
18623156 # func_to_host_file_result.
18633157 func_convert_path_cygwin_to_w32 ()
18643158 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
3159 $debug_cmd
3160
3161 func_to_host_path_result=$1
18673162 if test -n "$1"; then
18683163 # See func_convert_path_msys_to_w32:
18693164 func_stripname : : "$1"
18823177 # a working winepath. Returns result in func_to_host_file_result.
18833178 func_convert_path_nix_to_w32 ()
18843179 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
3180 $debug_cmd
3181
3182 func_to_host_path_result=$1
18873183 if test -n "$1"; then
18883184 # See func_convert_path_msys_to_w32:
18893185 func_stripname : : "$1"
18903186 func_to_host_path_tmp1=$func_stripname_result
18913187 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
3188 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
18933189 func_convert_path_check : ";" \
18943190 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18953191 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
19033199 # Returns result in func_to_host_file_result.
19043200 func_convert_path_msys_to_cygwin ()
19053201 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
3202 $debug_cmd
3203
3204 func_to_host_path_result=$1
19083205 if test -n "$1"; then
19093206 # See func_convert_path_msys_to_w32:
19103207 func_stripname : : "$1"
19113208 func_to_host_path_tmp1=$func_stripname_result
19123209 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
19133210 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
3211 func_to_host_path_result=$func_cygpath_result
19153212 func_convert_path_check : : \
19163213 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19173214 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19263223 # func_to_host_file_result.
19273224 func_convert_path_nix_to_cygwin ()
19283225 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
3226 $debug_cmd
3227
3228 func_to_host_path_result=$1
19313229 if test -n "$1"; then
19323230 # Remove leading and trailing path separator characters from
19333231 # ARG. msys behavior is inconsistent here, cygpath turns them
19363234 func_to_host_path_tmp1=$func_stripname_result
19373235 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
19383236 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
3237 func_to_host_path_result=$func_cygpath_result
19403238 func_convert_path_check : : \
19413239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19423240 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19453243 # end func_convert_path_nix_to_cygwin
19463244
19473245
3246 # func_dll_def_p FILE
3247 # True iff FILE is a Windows DLL '.def' file.
3248 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3249 func_dll_def_p ()
3250 {
3251 $debug_cmd
3252
3253 func_dll_def_p_tmp=`$SED -n \
3254 -e 's/^[ ]*//' \
3255 -e '/^\(;.*\)*$/d' \
3256 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3257 -e q \
3258 "$1"`
3259 test DEF = "$func_dll_def_p_tmp"
3260 }
3261
3262
19483263 # func_mode_compile arg...
19493264 func_mode_compile ()
19503265 {
1951 $opt_debug
3266 $debug_cmd
3267
19523268 # Get the compilation command and the source file.
19533269 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
3270 srcfile=$nonopt # always keep a non-empty value in "srcfile"
19553271 suppress_opt=yes
19563272 suppress_output=
19573273 arg_mode=normal
19643280 case $arg_mode in
19653281 arg )
19663282 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
3283 lastarg=$arg
19683284 arg_mode=normal
19693285 ;;
19703286
19713287 target )
1972 libobj="$arg"
3288 libobj=$arg
19733289 arg_mode=normal
19743290 continue
19753291 ;;
19793295 case $arg in
19803296 -o)
19813297 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
3298 func_fatal_error "you cannot specify '-o' more than once"
19833299 arg_mode=target
19843300 continue
19853301 ;;
20083324 func_stripname '-Wc,' '' "$arg"
20093325 args=$func_stripname_result
20103326 lastarg=
2011 save_ifs="$IFS"; IFS=','
3327 save_ifs=$IFS; IFS=,
20123328 for arg in $args; do
2013 IFS="$save_ifs"
3329 IFS=$save_ifs
20143330 func_append_quoted lastarg "$arg"
20153331 done
2016 IFS="$save_ifs"
3332 IFS=$save_ifs
20173333 func_stripname ' ' '' "$lastarg"
20183334 lastarg=$func_stripname_result
20193335
20263342 # Accept the current argument as the source file.
20273343 # The previous "srcfile" becomes the current argument.
20283344 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
3345 lastarg=$srcfile
3346 srcfile=$arg
20313347 ;;
20323348 esac # case $arg
20333349 ;;
20423358 func_fatal_error "you must specify an argument for -Xcompile"
20433359 ;;
20443360 target)
2045 func_fatal_error "you must specify a target with \`-o'"
3361 func_fatal_error "you must specify a target with '-o'"
20463362 ;;
20473363 *)
20483364 # Get the name of the library object.
20493365 test -z "$libobj" && {
20503366 func_basename "$srcfile"
2051 libobj="$func_basename_result"
3367 libobj=$func_basename_result
20523368 }
20533369 ;;
20543370 esac
20683384 case $libobj in
20693385 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
20703386 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
3387 func_fatal_error "cannot determine name of library object from '$libobj'"
20723388 ;;
20733389 esac
20743390
20773393 for arg in $later; do
20783394 case $arg in
20793395 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
3396 test yes = "$build_libtool_libs" \
3397 || func_fatal_configuration "cannot build a shared library"
20823398 build_old_libs=no
20833399 continue
20843400 ;;
21043420 func_quote_for_eval "$libobj"
21053421 test "X$libobj" != "X$func_quote_for_eval_result" \
21063422 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
3423 && func_warning "libobj name '$libobj' may not contain shell special characters."
21083424 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
3425 objname=$func_basename_result
3426 xdir=$func_dirname_result
3427 lobj=$xdir$objdir/$objname
21123428
21133429 test -z "$base_compile" && \
21143430 func_fatal_help "you must specify a compilation command"
21153431
21163432 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
3433 if test yes = "$build_old_libs"; then
21183434 removelist="$obj $lobj $libobj ${libobj}T"
21193435 else
21203436 removelist="$lobj $libobj ${libobj}T"
21263442 pic_mode=default
21273443 ;;
21283444 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
3445 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
21303446 # non-PIC code in shared libraries is not supported
21313447 pic_mode=default
21323448 fi
21333449
21343450 # Calculate the filename of the output object if compiler does
21353451 # not support -o with -c
2136 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2138 lockfile="$output_obj.lock"
3452 if test no = "$compiler_c_o"; then
3453 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3454 lockfile=$output_obj.lock
21393455 else
21403456 output_obj=
21413457 need_locks=no
21443460
21453461 # Lock this critical section if it is needed
21463462 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
3463 if test yes = "$need_locks"; then
21483464 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
21493465 func_echo "Waiting for $lockfile to be removed"
21503466 sleep 2
21513467 done
2152 elif test "$need_locks" = warn; then
3468 elif test warn = "$need_locks"; then
21533469 if test -f "$lockfile"; then
21543470 $ECHO "\
21553471 *** ERROR, $lockfile exists and contains:
21573473
21583474 This indicates that another process is trying to use the same
21593475 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
3476 your compiler does not support '-c' and '-o' together. If you
21613477 repeat this compilation, it may succeed, by chance, but you had better
21623478 avoid parallel builds (make -j) in this platform, or get a better
21633479 compiler."
21793495 qsrcfile=$func_quote_for_eval_result
21803496
21813497 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
3498 if test yes = "$build_libtool_libs"; then
21833499 # Without this assignment, base_compile gets emptied.
21843500 fbsd_hideous_sh_bug=$base_compile
21853501
2186 if test "$pic_mode" != no; then
3502 if test no != "$pic_mode"; then
21873503 command="$base_compile $qsrcfile $pic_flag"
21883504 else
21893505 # Don't build PIC code
22003516 func_show_eval_locale "$command" \
22013517 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
22023518
2203 if test "$need_locks" = warn &&
3519 if test warn = "$need_locks" &&
22043520 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22053521 $ECHO "\
22063522 *** ERROR, $lockfile contains:
22113527
22123528 This indicates that another process is trying to use the same
22133529 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
3530 your compiler does not support '-c' and '-o' together. If you
22153531 repeat this compilation, it may succeed, by chance, but you had better
22163532 avoid parallel builds (make -j) in this platform, or get a better
22173533 compiler."
22273543 fi
22283544
22293545 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
3546 if test yes = "$suppress_opt"; then
22313547 suppress_output=' >/dev/null 2>&1'
22323548 fi
22333549 fi
22343550
22353551 # Only build a position-dependent object if we build old libraries.
2236 if test "$build_old_libs" = yes; then
2237 if test "$pic_mode" != yes; then
3552 if test yes = "$build_old_libs"; then
3553 if test yes != "$pic_mode"; then
22383554 # Don't build PIC code
22393555 command="$base_compile $qsrcfile$pie_flag"
22403556 else
22413557 command="$base_compile $qsrcfile $pic_flag"
22423558 fi
2243 if test "$compiler_c_o" = yes; then
3559 if test yes = "$compiler_c_o"; then
22443560 func_append command " -o $obj"
22453561 fi
22463562
22493565 func_show_eval_locale "$command" \
22503566 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22513567
2252 if test "$need_locks" = warn &&
3568 if test warn = "$need_locks" &&
22533569 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22543570 $ECHO "\
22553571 *** ERROR, $lockfile contains:
22603576
22613577 This indicates that another process is trying to use the same
22623578 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
3579 your compiler does not support '-c' and '-o' together. If you
22643580 repeat this compilation, it may succeed, by chance, but you had better
22653581 avoid parallel builds (make -j) in this platform, or get a better
22663582 compiler."
22803596 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
22813597
22823598 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
3599 if test no != "$need_locks"; then
22843600 removelist=$lockfile
22853601 $RM "$lockfile"
22863602 fi
22903606 }
22913607
22923608 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
3609 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
22943610 }
22953611
22963612 func_mode_help ()
23103626 Remove files from the build directory.
23113627
23123628 RM is the name of the program to use to delete files associated with each FILE
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3629 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
23143630 to RM.
23153631
23163632 If FILE is a libtool library, object or program, all the files associated
23293645 -no-suppress do not suppress compiler output for multiple passes
23303646 -prefer-pic try to build PIC objects only
23313647 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
3648 -shared do not build a '.o' file suitable for static linking
3649 -static only build a '.o' file suitable for static linking
23343650 -Wc,FLAG pass FLAG directly to the compiler
23353651
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3652 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
23373653 from the given SOURCEFILE.
23383654
23393655 The output file name is determined by removing the directory component from
2340 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2341 library object suffix, \`.lo'."
3656 SOURCEFILE, then substituting the C source code suffix '.c' with the
3657 library object suffix, '.lo'."
23423658 ;;
23433659
23443660 execute)
23513667
23523668 -dlopen FILE add the directory containing FILE to the library path
23533669
2354 This mode sets the library path environment variable according to \`-dlopen'
3670 This mode sets the library path environment variable according to '-dlopen'
23553671 flags.
23563672
23573673 If any of the ARGS are libtool executable wrappers, then they are translated
23703686 Each LIBDIR is a directory that contains libtool libraries.
23713687
23723688 The commands that this mode executes may require superuser privileges. Use
2373 the \`--dry-run' option if you just want to see what would be executed."
3689 the '--dry-run' option if you just want to see what would be executed."
23743690 ;;
23753691
23763692 install)
23803696 Install executables or libraries.
23813697
23823698 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
3699 either the 'install' or 'cp' program.
23843700
23853701 The following components of INSTALL-COMMAND are treated specially:
23863702
24063722 -avoid-version do not add a version suffix if possible
24073723 -bindir BINDIR specify path to binaries directory (for systems where
24083724 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3725 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
24103726 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24113727 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24123728 -export-symbols SYMFILE
24203736 -no-install link a not-installable executable
24213737 -no-undefined declare that a library does not refer to external symbols
24223738 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
3739 -objectlist FILE use a list of object files found in FILE to specify objects
3740 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
24243741 -precious-files-regex REGEX
24253742 don't remove output files matching REGEX
24263743 -release RELEASE specify package release information
24403757 -Xlinker FLAG pass linker-specific FLAG directly to the linker
24413758 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
24423759
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
3760 All other options (arguments beginning with '-') are ignored.
3761
3762 Every other argument is treated as a filename. Files ending in '.la' are
24463763 treated as uninstalled libtool libraries, other files are standard or library
24473764 object files.
24483765
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
3766 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3767 only library objects ('.lo' files) may be specified, and '-rpath' is
24513768 required, except when creating a convenience library.
24523769
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2454 using \`ar' and \`ranlib', or on Windows using \`lib'.
2455
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
3770 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3771 using 'ar' and 'ranlib', or on Windows using 'lib'.
3772
3773 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
24573774 is created, otherwise an executable program is created."
24583775 ;;
24593776
24643781 Remove libraries from an installation directory.
24653782
24663783 RM is the name of the program to use to delete files associated with each FILE
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3784 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
24683785 to RM.
24693786
24703787 If FILE is a libtool library, all the files associated with it are deleted.
24723789 ;;
24733790
24743791 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
3792 func_fatal_help "invalid operation mode '$opt_mode'"
24763793 ;;
24773794 esac
24783795
24793796 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
3797 $ECHO "Try '$progname --help' for more information about other modes."
24813798 }
24823799
24833800 # Now that we've collected a possible --mode arg, show help if necessary
24843801 if $opt_help; then
2485 if test "$opt_help" = :; then
3802 if test : = "$opt_help"; then
24863803 func_mode_help
24873804 else
24883805 {
24903807 for opt_mode in compile link execute install finish uninstall clean; do
24913808 func_mode_help
24923809 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
3810 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
24943811 {
24953812 func_help noexit
24963813 for opt_mode in compile link execute install finish uninstall clean; do
24983815 func_mode_help
24993816 done
25003817 } |
2501 sed '1d
3818 $SED '1d
25023819 /^When reporting/,/^Report/{
25033820 H
25043821 d
25153832 # func_mode_execute arg...
25163833 func_mode_execute ()
25173834 {
2518 $opt_debug
3835 $debug_cmd
3836
25193837 # The first argument is the command name.
2520 cmd="$nonopt"
3838 cmd=$nonopt
25213839 test -z "$cmd" && \
25223840 func_fatal_help "you must specify a COMMAND"
25233841
25243842 # Handle -dlopen flags immediately.
25253843 for file in $opt_dlopen; do
25263844 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
3845 || func_fatal_help "'$file' is not a file"
25283846
25293847 dir=
25303848 case $file in
25343852
25353853 # Check to see that this really is a libtool archive.
25363854 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
3855 || func_fatal_help "'$lib' is not a valid libtool archive"
25383856
25393857 # Read the libtool library.
25403858 dlname=
25453863 if test -z "$dlname"; then
25463864 # Warn if it was a shared library.
25473865 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
3866 func_warning "'$file' was not linked with '-export-dynamic'"
25493867 continue
25503868 fi
25513869
25523870 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
3871 dir=$func_dirname_result
25543872
25553873 if test -f "$dir/$objdir/$dlname"; then
25563874 func_append dir "/$objdir"
25573875 else
25583876 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
3877 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
25603878 fi
25613879 fi
25623880 ;;
25643882 *.lo)
25653883 # Just add the directory containing the .lo file.
25663884 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
3885 dir=$func_dirname_result
25683886 ;;
25693887
25703888 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
3889 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
25723890 continue
25733891 ;;
25743892 esac
25753893
25763894 # Get the absolute pathname.
25773895 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
3896 test -n "$absdir" && dir=$absdir
25793897
25803898 # Now add the directory to shlibpath_var.
25813899 if eval "test -z \"\$$shlibpath_var\""; then
25873905
25883906 # This variable tells wrapper scripts just to set shlibpath_var
25893907 # rather than running their programs.
2590 libtool_execute_magic="$magic"
3908 libtool_execute_magic=$magic
25913909
25923910 # Check if any of the arguments is a wrapper script.
25933911 args=
26003918 if func_ltwrapper_script_p "$file"; then
26013919 func_source "$file"
26023920 # Transform arg to wrapped name.
2603 file="$progdir/$program"
3921 file=$progdir/$program
26043922 elif func_ltwrapper_executable_p "$file"; then
26053923 func_ltwrapper_scriptname "$file"
26063924 func_source "$func_ltwrapper_scriptname_result"
26073925 # Transform arg to wrapped name.
2608 file="$progdir/$program"
3926 file=$progdir/$program
26093927 fi
26103928 ;;
26113929 esac
26133931 func_append_quoted args "$file"
26143932 done
26153933
2616 if test "X$opt_dry_run" = Xfalse; then
3934 if $opt_dry_run; then
3935 # Display what would be done.
3936 if test -n "$shlibpath_var"; then
3937 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
3938 echo "export $shlibpath_var"
3939 fi
3940 $ECHO "$cmd$args"
3941 exit $EXIT_SUCCESS
3942 else
26173943 if test -n "$shlibpath_var"; then
26183944 # Export the shlibpath_var.
26193945 eval "export $shlibpath_var"
26303956 done
26313957
26323958 # Now prepare to actually exec the command.
2633 exec_cmd="\$cmd$args"
2634 else
2635 # Display what would be done.
2636 if test -n "$shlibpath_var"; then
2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
2639 fi
2640 $ECHO "$cmd$args"
2641 exit $EXIT_SUCCESS
3959 exec_cmd=\$cmd$args
26423960 fi
26433961 }
26443962
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
3963 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
26463964
26473965
26483966 # func_mode_finish arg...
26493967 func_mode_finish ()
26503968 {
2651 $opt_debug
3969 $debug_cmd
3970
26523971 libs=
26533972 libdirs=
26543973 admincmds=
26623981 if func_lalib_unsafe_p "$opt"; then
26633982 func_append libs " $opt"
26643983 else
2665 func_warning "\`$opt' is not a valid libtool archive"
3984 func_warning "'$opt' is not a valid libtool archive"
26663985 fi
26673986
26683987 else
2669 func_fatal_error "invalid argument \`$opt'"
3988 func_fatal_error "invalid argument '$opt'"
26703989 fi
26713990 done
26723991
26814000 # Remove sysroot references
26824001 if $opt_dry_run; then
26834002 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
4003 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
26854004 done
26864005 else
26874006 tmpdir=`func_mktempdir`
26884007 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4008 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26904009 > $tmpdir/tmp-la
26914010 mv -f $tmpdir/tmp-la $lib
26924011 done
27114030 fi
27124031
27134032 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
4033 $opt_quiet && exit $EXIT_SUCCESS
27154034
27164035 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
27174036 echo "----------------------------------------------------------------------"
27224041 echo
27234042 echo "If you ever happen to want to link against installed libraries"
27244043 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
4044 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
27264045 echo "flag during linking and do at least one of the following:"
27274046 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
4047 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
27294048 echo " during execution"
27304049 fi
27314050 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
4051 echo " - add LIBDIR to the '$runpath_var' environment variable"
27334052 echo " during linking"
27344053 fi
27354054 if test -n "$hardcode_libdir_flag_spec"; then
27364055 libdir=LIBDIR
27374056 eval flag=\"$hardcode_libdir_flag_spec\"
27384057
2739 $ECHO " - use the \`$flag' linker flag"
4058 $ECHO " - use the '$flag' linker flag"
27404059 fi
27414060 if test -n "$admincmds"; then
27424061 $ECHO " - have your system administrator run these commands:$admincmds"
27434062 fi
27444063 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
4064 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
27464065 fi
27474066 echo
27484067
27614080 exit $EXIT_SUCCESS
27624081 }
27634082
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
4083 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
27654084
27664085
27674086 # func_mode_install arg...
27684087 func_mode_install ()
27694088 {
2770 $opt_debug
4089 $debug_cmd
4090
27714091 # There may be an optional sh(1) argument at the beginning of
27724092 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
4093 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
27744094 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
4095 case $nonopt in *shtool*) :;; *) false;; esac
4096 then
27764097 # Aesthetically quote it.
27774098 func_quote_for_eval "$nonopt"
27784099 install_prog="$func_quote_for_eval_result "
27994120 opts=
28004121 prev=
28014122 install_type=
2802 isdir=no
4123 isdir=false
28034124 stripme=
28044125 no_mode=:
28054126 for arg
28124133 fi
28134134
28144135 case $arg in
2815 -d) isdir=yes ;;
4136 -d) isdir=: ;;
28164137 -f)
28174138 if $install_cp; then :; else
28184139 prev=$arg
28304151 *)
28314152 # If the previous option needed an argument, then skip it.
28324153 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
4154 if test X-m = "X$prev" && test -n "$install_override_mode"; then
28344155 arg2=$install_override_mode
28354156 no_mode=false
28364157 fi
28554176 func_fatal_help "you must specify an install program"
28564177
28574178 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
4179 func_fatal_help "the '$prev' option requires an argument"
28594180
28604181 if test -n "$install_override_mode" && $no_mode; then
28614182 if $install_cp; then :; else
28774198 dest=$func_stripname_result
28784199
28794200 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
4201 test -d "$dest" && isdir=:
4202 if $isdir; then
4203 destdir=$dest
28834204 destname=
28844205 else
28854206 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
4207 destdir=$func_dirname_result
4208 destname=$func_basename_result
28884209
28894210 # Not a directory, so check to see that there is only one file specified.
28904211 set dummy $files; shift
28914212 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
4213 func_fatal_help "'$dest' is not a directory"
28934214 fi
28944215 case $destdir in
28954216 [\\/]* | [A-Za-z]:[\\/]*) ;;
28984219 case $file in
28994220 *.lo) ;;
29004221 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
4222 func_fatal_help "'$destdir' must be an absolute directory name"
29024223 ;;
29034224 esac
29044225 done
29074228
29084229 # This variable tells wrapper scripts just to set variables rather
29094230 # than running their programs.
2910 libtool_install_magic="$magic"
4231 libtool_install_magic=$magic
29114232
29124233 staticlibs=
29134234 future_libdirs=
29274248
29284249 # Check to see that this really is a libtool archive.
29294250 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
4251 || func_fatal_help "'$file' is not a valid libtool archive"
29314252
29324253 library_names=
29334254 old_library=
29494270 fi
29504271
29514272 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
4273 dir=$func_dirname_result
29534274 func_append dir "$objdir"
29544275
29554276 if test -n "$relink_command"; then
29634284 # are installed into $libdir/../bin (currently, that works fine)
29644285 # but it's something to keep an eye on.
29654286 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
4287 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
29674288
29684289 if test -n "$inst_prefix_dir"; then
29694290 # Stick the inst_prefix_dir data into the link command.
29724293 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
29734294 fi
29744295
2975 func_warning "relinking \`$file'"
4296 func_warning "relinking '$file'"
29764297 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
4298 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
29784299 fi
29794300
29804301 # See the names of the shared library.
29814302 set dummy $library_names; shift
29824303 if test -n "$1"; then
2983 realname="$1"
4304 realname=$1
29844305 shift
29854306
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
4307 srcname=$realname
4308 test -n "$relink_command" && srcname=${realname}T
29884309
29894310 # Install the shared library and build the symlinks.
29904311 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
29914312 'exit $?'
2992 tstripme="$stripme"
4313 tstripme=$stripme
29934314 case $host_os in
29944315 cygwin* | mingw* | pw32* | cegcc*)
29954316 case $realname in
29964317 *.dll.a)
2997 tstripme=""
4318 tstripme=
4319 ;;
4320 esac
4321 ;;
4322 os2*)
4323 case $realname in
4324 *_dll.a)
4325 tstripme=
29984326 ;;
29994327 esac
30004328 ;;
30054333
30064334 if test "$#" -gt 0; then
30074335 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
4336 # Try 'ln -sf' first, because the 'ln' binary might depend on
30094337 # the symlink we replace! Solaris /bin/ln does not understand -f,
30104338 # so we also need to try rm && ln -s.
30114339 for linkname
30164344 fi
30174345
30184346 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
4347 lib=$destdir/$realname
30204348 func_execute_cmds "$postinstall_cmds" 'exit $?'
30214349 fi
30224350
30234351 # Install the pseudo-library for information purposes.
30244352 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
4353 name=$func_basename_result
4354 instname=$dir/${name}i
30274355 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
30284356
30294357 # Maybe install the static library, too.
30354363
30364364 # Figure out destination file name, if it wasn't already specified.
30374365 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
4366 destfile=$destdir/$destname
30394367 else
30404368 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
4369 destfile=$func_basename_result
4370 destfile=$destdir/$destfile
30434371 fi
30444372
30454373 # Deduce the name of the destination old-style object file.
30494377 staticdest=$func_lo2o_result
30504378 ;;
30514379 *.$objext)
3052 staticdest="$destfile"
4380 staticdest=$destfile
30534381 destfile=
30544382 ;;
30554383 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
4384 func_fatal_help "cannot copy a libtool object to '$destfile'"
30574385 ;;
30584386 esac
30594387
30624390 func_show_eval "$install_prog $file $destfile" 'exit $?'
30634391
30644392 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
4393 if test yes = "$build_old_libs"; then
30664394 # Deduce the name of the old-style object file.
30674395 func_lo2o "$file"
30684396 staticobj=$func_lo2o_result
30744402 *)
30754403 # Figure out destination file name, if it wasn't already specified.
30764404 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
4405 destfile=$destdir/$destname
30784406 else
30794407 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
4408 destfile=$func_basename_result
4409 destfile=$destdir/$destfile
30824410 fi
30834411
30844412 # If the file is missing, and there is a .exe on the end, strip it
30854413 # because it is most likely a libtool script we actually want to
30864414 # install
3087 stripped_ext=""
4415 stripped_ext=
30884416 case $file in
30894417 *.exe)
30904418 if test ! -f "$file"; then
30914419 func_stripname '' '.exe' "$file"
30924420 file=$func_stripname_result
3093 stripped_ext=".exe"
4421 stripped_ext=.exe
30944422 fi
30954423 ;;
30964424 esac
31184446
31194447 # Check the variables that should have been set.
31204448 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
4449 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4450
4451 finalize=:
31244452 for lib in $notinst_deplibs; do
31254453 # Check to see that each library is installed.
31264454 libdir=
31274455 if test -f "$lib"; then
31284456 func_source "$lib"
31294457 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
4458 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
31314459 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
4460 func_warning "'$lib' has not been installed in '$libdir'"
4461 finalize=false
31344462 fi
31354463 done
31364464
31384466 func_source "$wrapper"
31394467
31404468 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
4469 if test no = "$fast_install" && test -n "$relink_command"; then
31424470 $opt_dry_run || {
3143 if test "$finalize" = yes; then
4471 if $finalize; then
31444472 tmpdir=`func_mktempdir`
31454473 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
4474 file=$func_basename_result
4475 outputname=$tmpdir/$file
31484476 # Replace the output file specification.
31494477 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
31504478
3151 $opt_silent || {
4479 $opt_quiet || {
31524480 func_quote_for_expand "$relink_command"
31534481 eval "func_echo $func_quote_for_expand_result"
31544482 }
31554483 if eval "$relink_command"; then :
31564484 else
3157 func_error "error: relink \`$file' with the above command before installing it"
4485 func_error "error: relink '$file' with the above command before installing it"
31584486 $opt_dry_run || ${RM}r "$tmpdir"
31594487 continue
31604488 fi
3161 file="$outputname"
4489 file=$outputname
31624490 else
3163 func_warning "cannot relink \`$file'"
4491 func_warning "cannot relink '$file'"
31644492 fi
31654493 }
31664494 else
31974525
31984526 for file in $staticlibs; do
31994527 func_basename "$file"
3200 name="$func_basename_result"
4528 name=$func_basename_result
32014529
32024530 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
4531 oldlib=$destdir/$name
32044532 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
32054533 tool_oldlib=$func_to_tool_file_result
32064534
32154543 done
32164544
32174545 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
4546 func_warning "remember to run '$progname --finish$future_libdirs'"
32194547
32204548 if test -n "$current_libdirs"; then
32214549 # Maybe just do a dry run.
32224550 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
4551 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
32244552 else
32254553 exit $EXIT_SUCCESS
32264554 fi
32274555 }
32284556
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
4557 test install = "$opt_mode" && func_mode_install ${1+"$@"}
32304558
32314559
32324560 # func_generate_dlsyms outputname originator pic_p
32344562 # a dlpreopen symbol table.
32354563 func_generate_dlsyms ()
32364564 {
3237 $opt_debug
3238 my_outputname="$1"
3239 my_originator="$2"
3240 my_pic_p="${3-no}"
3241 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
4565 $debug_cmd
4566
4567 my_outputname=$1
4568 my_originator=$2
4569 my_pic_p=${3-false}
4570 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
32424571 my_dlsyms=
32434572
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4573 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
32454574 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
4575 my_dlsyms=${my_outputname}S.c
32474576 else
32484577 func_error "not configured to extract global symbols from dlpreopened files"
32494578 fi
32544583 "") ;;
32554584 *.c)
32564585 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
4586 nlist=$output_objdir/$my_outputname.nm
32584587
32594588 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
32604589
32624591 func_verbose "creating $output_objdir/$my_dlsyms"
32634592
32644593 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3265 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3266 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
4594 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4595 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
32674596
32684597 #ifdef __cplusplus
32694598 extern \"C\" {
32704599 #endif
32714600
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4601 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
32734602 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
32744603 #endif
32754604
32764605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4606 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4607 /* DATA imports from DLLs on WIN32 can't be const, because runtime
32794608 relocations are performed -- see ld's documentation on pseudo-relocs. */
32804609 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
4610 #elif defined __osf__
32824611 /* This system does not cope well with relocations in const data. */
32834612 # define LT_DLSYM_CONST
32844613 #else
32854614 # define LT_DLSYM_CONST const
32864615 #endif
32874616
4617 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4618
32884619 /* External symbol declarations for the compiler. */\
32894620 "
32904621
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
4622 if test yes = "$dlself"; then
4623 func_verbose "generating symbol list for '$output'"
32934624
32944625 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32954626
32974628 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
32984629 for progfile in $progfiles; do
32994630 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
4631 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
33014632 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
33024633 done
33034634
33174648
33184649 # Prepare the list of exported symbols
33194650 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
4651 export_symbols=$output_objdir/$outputname.exp
33214652 $opt_dry_run || {
33224653 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4654 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
33244655 case $host in
33254656 *cygwin* | *mingw* | *cegcc* )
33264657 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
33304661 }
33314662 else
33324663 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4664 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
33344665 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
33354666 eval '$MV "$nlist"T "$nlist"'
33364667 case $host in
33444675 fi
33454676
33464677 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
4678 func_verbose "extracting global C symbols from '$dlprefile'"
33484679 func_basename "$dlprefile"
3349 name="$func_basename_result"
4680 name=$func_basename_result
33504681 case $host in
33514682 *cygwin* | *mingw* | *cegcc* )
33524683 # if an import library, we need to obtain dlname
33534684 if func_win32_import_lib_p "$dlprefile"; then
33544685 func_tr_sh "$dlprefile"
33554686 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
4687 dlprefile_dlbasename=
33574688 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
33584689 # Use subshell, to avoid clobbering current variable values
33594690 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
4691 if test -n "$dlprefile_dlname"; then
33614692 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
4693 dlprefile_dlbasename=$func_basename_result
33634694 else
33644695 # no lafile. user explicitly requested -dlpreopen <import library>.
33654696 $sharedlib_from_linklib_cmd "$dlprefile"
33674698 fi
33684699 fi
33694700 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
4701 if test -n "$dlprefile_dlbasename"; then
33714702 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
33724703 else
33734704 func_warning "Could not compute DLL name from $name"
34234754 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
34244755 fi
34254756
4757 func_show_eval '$RM "${nlist}I"'
4758 if test -n "$global_symbol_to_import"; then
4759 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4760 fi
4761
34264762 echo >> "$output_objdir/$my_dlsyms" "\
34274763
34284764 /* The mapping between symbol names and symbols. */
34314767 void *address;
34324768 } lt_dlsymlist;
34334769 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
4770 lt_${my_prefix}_LTX_preloaded_symbols[];\
4771 "
4772
4773 if test -s "$nlist"I; then
4774 echo >> "$output_objdir/$my_dlsyms" "\
4775 static void lt_syminit(void)
4776 {
4777 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4778 for (; symbol->name; ++symbol)
4779 {"
4780 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4781 echo >> "$output_objdir/$my_dlsyms" "\
4782 }
4783 }"
4784 fi
4785 echo >> "$output_objdir/$my_dlsyms" "\
34354786 LT_DLSYM_CONST lt_dlsymlist
34364787 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
4788 { {\"$my_originator\", (void *) 0},"
4789
4790 if test -s "$nlist"I; then
4791 echo >> "$output_objdir/$my_dlsyms" "\
4792 {\"@INIT@\", (void *) &lt_syminit},"
4793 fi
34394794
34404795 case $need_lib_prefix in
34414796 no)
34774832 *-*-hpux*)
34784833 pic_flag_for_symtable=" $pic_flag" ;;
34794834 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
4835 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
34834836 ;;
34844837 esac
34854838 ;;
34964849 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
34974850
34984851 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
4852 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
35004853
35014854 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
4855 symfileobj=$output_objdir/${my_outputname}S.$objext
35034856 case $host in
35044857 *cygwin* | *mingw* | *cegcc* )
35054858 if test -f "$output_objdir/$my_outputname.def"; then
35174870 esac
35184871 ;;
35194872 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
4873 func_fatal_error "unknown suffix for '$my_dlsyms'"
35214874 ;;
35224875 esac
35234876 else
35294882 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
35304883 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
35314884 fi
4885 }
4886
4887 # func_cygming_gnu_implib_p ARG
4888 # This predicate returns with zero status (TRUE) if
4889 # ARG is a GNU/binutils-style import library. Returns
4890 # with nonzero status (FALSE) otherwise.
4891 func_cygming_gnu_implib_p ()
4892 {
4893 $debug_cmd
4894
4895 func_to_tool_file "$1" func_convert_file_msys_to_w32
4896 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
4897 test -n "$func_cygming_gnu_implib_tmp"
4898 }
4899
4900 # func_cygming_ms_implib_p ARG
4901 # This predicate returns with zero status (TRUE) if
4902 # ARG is an MS-style import library. Returns
4903 # with nonzero status (FALSE) otherwise.
4904 func_cygming_ms_implib_p ()
4905 {
4906 $debug_cmd
4907
4908 func_to_tool_file "$1" func_convert_file_msys_to_w32
4909 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
4910 test -n "$func_cygming_ms_implib_tmp"
35324911 }
35334912
35344913 # func_win32_libid arg
35404919 # Despite the name, also deal with 64 bit binaries.
35414920 func_win32_libid ()
35424921 {
3543 $opt_debug
3544 win32_libid_type="unknown"
4922 $debug_cmd
4923
4924 win32_libid_type=unknown
35454925 win32_fileres=`file -L $1 2>/dev/null`
35464926 case $win32_fileres in
35474927 *ar\ archive\ import\ library*) # definitely import
35514931 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35524932 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
35534933 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3556 $SED -n -e '
4934 case $nm_interface in
4935 "MS dumpbin")
4936 if func_cygming_ms_implib_p "$1" ||
4937 func_cygming_gnu_implib_p "$1"
4938 then
4939 win32_nmres=import
4940 else
4941 win32_nmres=
4942 fi
4943 ;;
4944 *)
4945 func_to_tool_file "$1" func_convert_file_msys_to_w32
4946 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4947 $SED -n -e '
35574948 1,100{
35584949 / I /{
3559 s,.*,import,
4950 s|.*|import|
35604951 p
35614952 q
35624953 }
35634954 }'`
4955 ;;
4956 esac
35644957 case $win32_nmres in
35654958 import*) win32_libid_type="x86 archive import";;
35664959 *) win32_libid_type="x86 archive static";;
35924985 # $sharedlib_from_linklib_result
35934986 func_cygming_dll_for_implib ()
35944987 {
3595 $opt_debug
4988 $debug_cmd
4989
35964990 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
35974991 }
35984992
36095003 # specified import library.
36105004 func_cygming_dll_for_implib_fallback_core ()
36115005 {
3612 $opt_debug
5006 $debug_cmd
5007
36135008 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
36145009 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
36155010 $SED '/^Contents of section '"$match_literal"':/{
36455040 /./p' |
36465041 # we now have a list, one entry per line, of the stringified
36475042 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
5043 # archive that possess that section. Heuristic: eliminate
5044 # all those that have a first or second character that is
36505045 # a '.' (that is, objdump's representation of an unprintable
36515046 # character.) This should work for all archives with less than
36525047 # 0x302f exports -- but will fail for DLLs whose name actually
36555050 #
36565051 # Of those that remain, print the first one.
36575052 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
36825053 }
36835054
36845055 # func_cygming_dll_for_implib_fallback ARG
36945065 # $sharedlib_from_linklib_result
36955066 func_cygming_dll_for_implib_fallback ()
36965067 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
5068 $debug_cmd
5069
5070 if func_cygming_gnu_implib_p "$1"; then
36995071 # binutils import library
37005072 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
5073 elif func_cygming_ms_implib_p "$1"; then
37025074 # ms-generated import library
37035075 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
37045076 else
37055077 # unknown
3706 sharedlib_from_linklib_result=""
5078 sharedlib_from_linklib_result=
37075079 fi
37085080 }
37095081
37115083 # func_extract_an_archive dir oldlib
37125084 func_extract_an_archive ()
37135085 {
3714 $opt_debug
3715 f_ex_an_ar_dir="$1"; shift
3716 f_ex_an_ar_oldlib="$1"
3717 if test "$lock_old_archive_extraction" = yes; then
5086 $debug_cmd
5087
5088 f_ex_an_ar_dir=$1; shift
5089 f_ex_an_ar_oldlib=$1
5090 if test yes = "$lock_old_archive_extraction"; then
37185091 lockfile=$f_ex_an_ar_oldlib.lock
37195092 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
37205093 func_echo "Waiting for $lockfile to be removed"
37235096 fi
37245097 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
37255098 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
5099 if test yes = "$lock_old_archive_extraction"; then
37275100 $opt_dry_run || rm -f "$lockfile"
37285101 fi
37295102 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
37375110 # func_extract_archives gentop oldlib ...
37385111 func_extract_archives ()
37395112 {
3740 $opt_debug
3741 my_gentop="$1"; shift
5113 $debug_cmd
5114
5115 my_gentop=$1; shift
37425116 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
5117 my_oldobjs=
5118 my_xlib=
5119 my_xabs=
5120 my_xdir=
37475121
37485122 for my_xlib in $my_oldlibs; do
37495123 # Extract the objects.
37505124 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
5125 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
37525126 *) my_xabs=`pwd`"/$my_xlib" ;;
37535127 esac
37545128 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
5129 my_xlib=$func_basename_result
37565130 my_xlib_u=$my_xlib
37575131 while :; do
37585132 case " $extracted_archives " in
37645138 esac
37655139 done
37665140 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
5141 my_xdir=$my_gentop/$my_xlib_u
37685142
37695143 func_mkdir_p "$my_xdir"
37705144
37775151 cd $my_xdir || exit $?
37785152 darwin_archive=$my_xabs
37795153 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
5154 func_basename "$darwin_archive"
5155 darwin_base_archive=$func_basename_result
37815156 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
37825157 if test -n "$darwin_arches"; then
37835158 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
37845159 darwin_arch=
37855160 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3786 for darwin_arch in $darwin_arches ; do
3787 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3788 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3789 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
5161 for darwin_arch in $darwin_arches; do
5162 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5163 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5164 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5165 func_extract_an_archive "`pwd`" "$darwin_base_archive"
37915166 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
5167 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
37935168 done # $darwin_arches
37945169 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3795 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
5170 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
37965171 darwin_file=
37975172 darwin_files=
37985173 for darwin_file in $darwin_filelist; do
38145189 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
38155190 done
38165191
3817 func_extract_archives_result="$my_oldobjs"
5192 func_extract_archives_result=$my_oldobjs
38185193 }
38195194
38205195
38295204 #
38305205 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
38315206 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
5207 # will assume that the directory where it is stored is
38335208 # the $objdir directory. This is a cygwin/mingw-specific
38345209 # behavior.
38355210 func_emit_wrapper ()
38405215 #! $SHELL
38415216
38425217 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5218 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
38445219 #
38455220 # The $output program cannot be directly executed until all the libtool
38465221 # libraries that it depends on are installed.
38975272
38985273 # Very basic option parsing. These options are (a) specific to
38995274 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
5275 # /script/ and the wrapper /executable/ that is used only on
39015276 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
5277 # (application programs are unlikely to have options that match
39035278 # this pattern).
39045279 #
39055280 # There are only two supported options: --lt-debug and
39325307
39335308 # Print the debug banner immediately:
39345309 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
5310 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
39365311 fi
39375312 }
39385313
39435318 lt_dump_args_N=1;
39445319 for lt_arg
39455320 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
5321 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
39475322 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
39485323 done
39495324 }
39575332 *-*-mingw | *-*-os2* | *-cegcc*)
39585333 $ECHO "\
39595334 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
5335 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
39615336 func_lt_dump_args \${1+\"\$@\"} 1>&2
39625337 fi
39635338 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
39675342 *)
39685343 $ECHO "\
39695344 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
5345 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
39715346 func_lt_dump_args \${1+\"\$@\"} 1>&2
39725347 fi
39735348 exec \"\$progdir/\$program\" \${1+\"\$@\"}
40425417 test -n \"\$absdir\" && thisdir=\"\$absdir\"
40435418 "
40445419
4045 if test "$fast_install" = yes; then
5420 if test yes = "$fast_install"; then
40465421 $ECHO "\
40475422 program=lt-'$outputname'$exeext
40485423 progdir=\"\$thisdir/$objdir\"
40495424
40505425 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5426 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
40525427 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
40535428
40545429 file=\"\$\$-\$program\"
40655440 if test -n \"\$relink_command\"; then
40665441 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
40675442 else
4068 $ECHO \"\$relink_command_output\" >&2
5443 \$ECHO \"\$relink_command_output\" >&2
40695444 $RM \"\$progdir/\$file\"
40705445 exit 1
40715446 fi
41005475 fi
41015476
41025477 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5478 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
41045479 $ECHO "\
41055480 # Add our own library path to $shlibpath_var
41065481 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
41205495 fi
41215496 else
41225497 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5498 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
41245499 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
41255500 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
41265501 exit 1
41395514 cat <<EOF
41405515
41415516 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5517 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
41435518
41445519 The $output program cannot be directly executed until all the libtool
41455520 libraries that it depends on are installed.
41745549 #include <fcntl.h>
41755550 #include <sys/stat.h>
41765551
5552 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5553
41775554 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
5555 #if defined __MINGW32__
41795556 # ifdef __STRICT_ANSI__
41805557 int _putenv (const char *);
41815558 # endif
4182 #elif defined(__CYGWIN__)
5559 #elif defined __CYGWIN__
41835560 # ifdef __STRICT_ANSI__
41845561 char *realpath (const char *, char *);
41855562 int putenv (char *);
41865563 int setenv (const char *, const char *, int);
41875564 # endif
4188 /* #elif defined (other platforms) ... */
5565 /* #elif defined other_platform || defined ... */
41895566 #endif
41905567
41915568 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
5569 #if defined _MSC_VER
41935570 # define setmode _setmode
41945571 # define stat _stat
41955572 # define chmod _chmod
41965573 # define getcwd _getcwd
41975574 # define putenv _putenv
41985575 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
5576 #elif defined __MINGW32__
42045577 # define setmode _setmode
42055578 # define stat _stat
42065579 # define chmod _chmod
42075580 # define getcwd _getcwd
42085581 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
5582 #elif defined __CYGWIN__
42105583 # define HAVE_SETENV
42115584 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
5585 /* #elif defined other platforms ... */
42135586 #endif
42145587
4215 #if defined(PATH_MAX)
5588 #if defined PATH_MAX
42165589 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
5590 #elif defined MAXPATHLEN
42185591 # define LT_PATHMAX MAXPATHLEN
42195592 #else
42205593 # define LT_PATHMAX 1024
42335606 # define PATH_SEPARATOR ':'
42345607 #endif
42355608
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
5609 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5610 defined __OS2__
42385611 # define HAVE_DOS_BASED_FILE_SYSTEM
42395612 # define FOPEN_WB "wb"
42405613 # ifndef DIR_SEPARATOR_2
42675640
42685641 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
42695642 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
5643 if (stale) { free (stale); stale = 0; } \
42715644 } while (0)
42725645
4273 #if defined(LT_DEBUGWRAPPER)
5646 #if defined LT_DEBUGWRAPPER
42745647 static int lt_debug = 1;
42755648 #else
42765649 static int lt_debug = 0;
42995672 EOF
43005673
43015674 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
5675 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5676 # define externally_visible volatile
5677 #else
5678 # define externally_visible __attribute__((externally_visible)) volatile
5679 #endif
5680 externally_visible const char * MAGIC_EXE = "$magic_exe";
43035681 const char * LIB_PATH_VARNAME = "$shlibpath_var";
43045682 EOF
43055683
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5684 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
43075685 func_to_host_path "$temp_rpath"
43085686 cat <<EOF
43095687 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
43275705 EOF
43285706 fi
43295707
4330 if test "$fast_install" = yes; then
5708 if test yes = "$fast_install"; then
43315709 cat <<EOF
43325710 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
43335711 EOF
43565734 char *actual_cwrapper_name;
43575735 char *target_name;
43585736 char *lt_argv_zero;
4359 intptr_t rval = 127;
5737 int rval = 127;
43605738
43615739 int i;
43625740
43635741 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
5742 newargz = XMALLOC (char *, (size_t) argc + 1);
43655743
43665744 /* very simple arg parsing; don't want to rely on getopt
43675745 * also, copy all non cwrapper options to newargz, except
43705748 newargc=0;
43715749 for (i = 1; i < argc; i++)
43725750 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
5751 if (STREQ (argv[i], dumpscript_opt))
43745752 {
43755753 EOF
4376 case "$host" in
5754 case $host in
43775755 *mingw* | *cygwin* )
43785756 # make stdout use "unix" line endings
43795757 echo " setmode(1,_O_BINARY);"
43845762 lt_dump_script (stdout);
43855763 return 0;
43865764 }
4387 if (strcmp (argv[i], debug_opt) == 0)
5765 if (STREQ (argv[i], debug_opt))
43885766 {
43895767 lt_debug = 1;
43905768 continue;
43915769 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
5770 if (STREQ (argv[i], ltwrapper_option_prefix))
43935771 {
43945772 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
43955773 namespace, but it is not one of the ones we know about and
44125790 EOF
44135791 cat <<EOF
44145792 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
5793 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
44165794 EOF
44175795 cat <<"EOF"
44185796 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
45235901 cat <<"EOF"
45245902 /* execv doesn't actually work on mingw as expected on unix */
45255903 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5904 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
45275905 if (rval == -1)
45285906 {
45295907 /* failed to start process */
45685946 {
45695947 const char *base;
45705948
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5949 #if defined HAVE_DOS_BASED_FILE_SYSTEM
45725950 /* Skip over the disk name in MSDOS pathnames. */
45735951 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
45745952 name += 2;
46276005 const char *p_next;
46286006 /* static buffer for getcwd */
46296007 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
6008 size_t tmp_len;
46316009 char *concat_name;
46326010
46336011 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
46376015 return NULL;
46386016
46396017 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6018 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46416019 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
46426020 {
46436021 concat_name = xstrdup (wrapper);
46556033 return concat_name;
46566034 XFREE (concat_name);
46576035 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6036 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46596037 }
46606038 #endif
46616039
46786056 for (q = p; *q; q++)
46796057 if (IS_PATH_SEPARATOR (*q))
46806058 break;
4681 p_len = q - p;
6059 p_len = (size_t) (q - p);
46826060 p_next = (*q == '\0' ? q : q + 1);
46836061 if (p_len == 0)
46846062 {
47976175 if (patlen <= len)
47986176 {
47996177 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
6178 if (STREQ (str, pat))
48016179 *str = '\0';
48026180 }
48036181 return str;
48626240 char *str = xstrdup (value);
48636241 setenv (name, str, 1);
48646242 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
6243 size_t len = strlen (name) + 1 + strlen (value) + 1;
48666244 char *str = XMALLOC (char, len);
48676245 sprintf (str, "%s=%s", name, value);
48686246 if (putenv (str) != EXIT_SUCCESS)
48796257 char *new_value;
48806258 if (orig_value && *orig_value)
48816259 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
6260 size_t orig_value_len = strlen (orig_value);
6261 size_t add_len = strlen (add);
48846262 new_value = XMALLOC (char, add_len + orig_value_len + 1);
48856263 if (to_end)
48866264 {
49116289 {
49126290 char *new_value = lt_extend_str (getenv (name), value, 0);
49136291 /* some systems can't cope with a ':'-terminated path #' */
4914 int len = strlen (new_value);
4915 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6292 size_t len = strlen (new_value);
6293 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
49166294 {
4917 new_value[len-1] = '\0';
6295 new_value[--len] = '\0';
49186296 }
49196297 lt_setenv (name, new_value);
49206298 XFREE (new_value);
50816459 # True if ARG is an import lib, as indicated by $file_magic_cmd
50826460 func_win32_import_lib_p ()
50836461 {
5084 $opt_debug
6462 $debug_cmd
6463
50856464 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
50866465 *import*) : ;;
50876466 *) false ;;
50886467 esac
50896468 }
50906469
6470 # func_suncc_cstd_abi
6471 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6472 # Several compiler flags select an ABI that is incompatible with the
6473 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6474 func_suncc_cstd_abi ()
6475 {
6476 $debug_cmd
6477
6478 case " $compile_command " in
6479 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6480 suncc_use_cstd_abi=no
6481 ;;
6482 *)
6483 suncc_use_cstd_abi=yes
6484 ;;
6485 esac
6486 }
6487
50916488 # func_mode_link arg...
50926489 func_mode_link ()
50936490 {
5094 $opt_debug
6491 $debug_cmd
6492
50956493 case $host in
50966494 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
50976495 # It is impossible to link a dll without this setting, and
50986496 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
6497 # what system we are compiling for in order to pass an extra
51006498 # flag for every libtool invocation.
51016499 # allow_undefined=no
51026500
51036501 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
6502 # to make a dll that has undefined symbols, in which case not
51056503 # even a static library is built. For now, we need to specify
51066504 # -no-undefined on the libtool link line when we can be certain
51076505 # that all symbols are satisfied, otherwise we get a static library.
51456543 module=no
51466544 no_install=no
51476545 objs=
6546 os2dllname=
51486547 non_pic_objects=
51496548 precious_files_regex=
51506549 prefer_static_libs=no
5151 preload=no
6550 preload=false
51526551 prev=
51536552 prevarg=
51546553 release=
51606559 vinfo=
51616560 vinfo_number=no
51626561 weak_libs=
5163 single_module="${wl}-single_module"
6562 single_module=$wl-single_module
51646563 func_infer_tag $base_compile
51656564
51666565 # We need to know -static, to get the right output filenames.
51686567 do
51696568 case $arg in
51706569 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
6570 test yes != "$build_libtool_libs" \
6571 && func_fatal_configuration "cannot build a shared library"
51736572 build_old_libs=no
51746573 break
51756574 ;;
51766575 -all-static | -static | -static-libtool-libs)
51776576 case $arg in
51786577 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
6578 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
51806579 func_warning "complete static linking is impossible in this configuration"
51816580 fi
51826581 if test -n "$link_static_flag"; then
52096608
52106609 # Go through the arguments, transforming them on the way.
52116610 while test "$#" -gt 0; do
5212 arg="$1"
6611 arg=$1
52136612 shift
52146613 func_quote_for_eval "$arg"
52156614 qarg=$func_quote_for_eval_unquoted_result
52266625
52276626 case $prev in
52286627 bindir)
5229 bindir="$arg"
6628 bindir=$arg
52306629 prev=
52316630 continue
52326631 ;;
52336632 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
6633 $preload || {
52356634 # Add the symbol object into the linking commands.
52366635 func_append compile_command " @SYMFILE@"
52376636 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
6637 preload=:
6638 }
52406639 case $arg in
52416640 *.la | *.lo) ;; # We handle these cases below.
52426641 force)
5243 if test "$dlself" = no; then
6642 if test no = "$dlself"; then
52446643 dlself=needless
52456644 export_dynamic=yes
52466645 fi
52486647 continue
52496648 ;;
52506649 self)
5251 if test "$prev" = dlprefiles; then
6650 if test dlprefiles = "$prev"; then
52526651 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
6652 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
52546653 dlself=yes
52556654 else
52566655 dlself=needless
52606659 continue
52616660 ;;
52626661 *)
5263 if test "$prev" = dlfiles; then
6662 if test dlfiles = "$prev"; then
52646663 func_append dlfiles " $arg"
52656664 else
52666665 func_append dlprefiles " $arg"
52716670 esac
52726671 ;;
52736672 expsyms)
5274 export_symbols="$arg"
6673 export_symbols=$arg
52756674 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
6675 || func_fatal_error "symbol file '$arg' does not exist"
52776676 prev=
52786677 continue
52796678 ;;
52806679 expsyms_regex)
5281 export_symbols_regex="$arg"
6680 export_symbols_regex=$arg
52826681 prev=
52836682 continue
52846683 ;;
52966695 continue
52976696 ;;
52986697 inst_prefix)
5299 inst_prefix_dir="$arg"
6698 inst_prefix_dir=$arg
6699 prev=
6700 continue
6701 ;;
6702 mllvm)
6703 # Clang does not use LLVM to link, so we can simply discard any
6704 # '-mllvm $arg' options when doing the link step.
53006705 prev=
53016706 continue
53026707 ;;
53206725
53216726 if test -z "$pic_object" ||
53226727 test -z "$non_pic_object" ||
5323 test "$pic_object" = none &&
5324 test "$non_pic_object" = none; then
5325 func_fatal_error "cannot find name of object for \`$arg'"
6728 test none = "$pic_object" &&
6729 test none = "$non_pic_object"; then
6730 func_fatal_error "cannot find name of object for '$arg'"
53266731 fi
53276732
53286733 # Extract subdirectory from the argument.
53296734 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
6735 xdir=$func_dirname_result
6736
6737 if test none != "$pic_object"; then
53336738 # Prepend the subdirectory the object is found in.
5334 pic_object="$xdir$pic_object"
5335
5336 if test "$prev" = dlfiles; then
5337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6739 pic_object=$xdir$pic_object
6740
6741 if test dlfiles = "$prev"; then
6742 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
53386743 func_append dlfiles " $pic_object"
53396744 prev=
53406745 continue
53456750 fi
53466751
53476752 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
6753 if test dlprefiles = "$prev"; then
53496754 # Preload the old-style object.
53506755 func_append dlprefiles " $pic_object"
53516756 prev=
53536758
53546759 # A PIC object.
53556760 func_append libobjs " $pic_object"
5356 arg="$pic_object"
6761 arg=$pic_object
53576762 fi
53586763
53596764 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
6765 if test none != "$non_pic_object"; then
53616766 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
6767 non_pic_object=$xdir$non_pic_object
53636768
53646769 # A standard non-PIC object
53656770 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
6771 if test -z "$pic_object" || test none = "$pic_object"; then
6772 arg=$non_pic_object
53686773 fi
53696774 else
53706775 # If the PIC object exists, use it instead.
53716776 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
6777 non_pic_object=$pic_object
53736778 func_append non_pic_objects " $non_pic_object"
53746779 fi
53756780 else
53776782 if $opt_dry_run; then
53786783 # Extract subdirectory from the argument.
53796784 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
6785 xdir=$func_dirname_result
53816786
53826787 func_lo2o "$arg"
53836788 pic_object=$xdir$objdir/$func_lo2o_result
53856790 func_append libobjs " $pic_object"
53866791 func_append non_pic_objects " $non_pic_object"
53876792 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
6793 func_fatal_error "'$arg' is not a valid libtool object"
53896794 fi
53906795 fi
53916796 done
53926797 else
5393 func_fatal_error "link input file \`$arg' does not exist"
6798 func_fatal_error "link input file '$arg' does not exist"
53946799 fi
53956800 arg=$save_arg
53966801 prev=
53976802 continue
53986803 ;;
6804 os2dllname)
6805 os2dllname=$arg
6806 prev=
6807 continue
6808 ;;
53996809 precious_regex)
5400 precious_files_regex="$arg"
6810 precious_files_regex=$arg
54016811 prev=
54026812 continue
54036813 ;;
54046814 release)
5405 release="-$arg"
6815 release=-$arg
54066816 prev=
54076817 continue
54086818 ;;
54146824 func_fatal_error "only absolute run-paths are allowed"
54156825 ;;
54166826 esac
5417 if test "$prev" = rpath; then
6827 if test rpath = "$prev"; then
54186828 case "$rpath " in
54196829 *" $arg "*) ;;
54206830 *) func_append rpath " $arg" ;;
54296839 continue
54306840 ;;
54316841 shrext)
5432 shrext_cmds="$arg"
6842 shrext_cmds=$arg
54336843 prev=
54346844 continue
54356845 ;;
54696879 esac
54706880 fi # test -n "$prev"
54716881
5472 prevarg="$arg"
6882 prevarg=$arg
54736883
54746884 case $arg in
54756885 -all-static)
54836893
54846894 -allow-undefined)
54856895 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
6896 func_fatal_error "'-allow-undefined' must not be used because it is the default"
54876897 ;;
54886898
54896899 -avoid-version)
55156925 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
55166926 func_fatal_error "more than one -exported-symbols argument is not allowed"
55176927 fi
5518 if test "X$arg" = "X-export-symbols"; then
6928 if test X-export-symbols = "X$arg"; then
55196929 prev=expsyms
55206930 else
55216931 prev=expsyms_regex
55496959 func_stripname "-L" '' "$arg"
55506960 if test -z "$func_stripname_result"; then
55516961 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
6962 func_fatal_error "require no space between '-L' and '$1'"
55536963 else
5554 func_fatal_error "need path for \`-L' option"
6964 func_fatal_error "need path for '-L' option"
55556965 fi
55566966 fi
55576967 func_resolve_sysroot "$func_stripname_result"
55626972 *)
55636973 absdir=`cd "$dir" && pwd`
55646974 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
6975 func_fatal_error "cannot determine absolute directory name of '$dir'"
6976 dir=$absdir
55676977 ;;
55686978 esac
55696979 case "$deplibs " in
55987008 ;;
55997009
56007010 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7011 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
56027012 case $host in
56037013 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
56047014 # These systems don't actually have a C or math library (as such)
56067016 ;;
56077017 *-*-os2*)
56087018 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
7019 test X-lc = "X$arg" && continue
56107020 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7021 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56127022 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
7023 test X-lc = "X$arg" && continue
56147024 ;;
56157025 *-*-rhapsody* | *-*-darwin1.[012])
56167026 # Rhapsody C and math libraries are in the System framework
56197029 ;;
56207030 *-*-sco3.2v5* | *-*-sco5v6*)
56217031 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
7032 test X-lc = "X$arg" && continue
56237033 ;;
56247034 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
56257035 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
7036 test X-lc = "X$arg" && continue
56277037 ;;
56287038 esac
5629 elif test "X$arg" = "X-lc_r"; then
7039 elif test X-lc_r = "X$arg"; then
56307040 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7041 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56327042 # Do not include libc_r directly, use -pthread flag.
56337043 continue
56347044 ;;
56357045 esac
56367046 fi
56377047 func_append deplibs " $arg"
7048 continue
7049 ;;
7050
7051 -mllvm)
7052 prev=mllvm
56387053 continue
56397054 ;;
56407055
56677082 ;;
56687083
56697084 -multi_module)
5670 single_module="${wl}-multi_module"
7085 single_module=$wl-multi_module
56717086 continue
56727087 ;;
56737088
56817096 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
56827097 # The PATH hackery in wrapper scripts is required on Windows
56837098 # and Darwin in order for the loader to find any dlls it needs.
5684 func_warning "\`-no-install' is ignored for $host"
5685 func_warning "assuming \`-no-fast-install' instead"
7099 func_warning "'-no-install' is ignored for $host"
7100 func_warning "assuming '-no-fast-install' instead"
56867101 fast_install=no
56877102 ;;
56887103 *) no_install=yes ;;
56977112
56987113 -objectlist)
56997114 prev=objectlist
7115 continue
7116 ;;
7117
7118 -os2dllname)
7119 prev=os2dllname
57007120 continue
57017121 ;;
57027122
57877207 func_stripname '-Wc,' '' "$arg"
57887208 args=$func_stripname_result
57897209 arg=
5790 save_ifs="$IFS"; IFS=','
7210 save_ifs=$IFS; IFS=,
57917211 for flag in $args; do
5792 IFS="$save_ifs"
7212 IFS=$save_ifs
57937213 func_quote_for_eval "$flag"
57947214 func_append arg " $func_quote_for_eval_result"
57957215 func_append compiler_flags " $func_quote_for_eval_result"
57967216 done
5797 IFS="$save_ifs"
7217 IFS=$save_ifs
57987218 func_stripname ' ' '' "$arg"
57997219 arg=$func_stripname_result
58007220 ;;
58037223 func_stripname '-Wl,' '' "$arg"
58047224 args=$func_stripname_result
58057225 arg=
5806 save_ifs="$IFS"; IFS=','
7226 save_ifs=$IFS; IFS=,
58077227 for flag in $args; do
5808 IFS="$save_ifs"
7228 IFS=$save_ifs
58097229 func_quote_for_eval "$flag"
58107230 func_append arg " $wl$func_quote_for_eval_result"
58117231 func_append compiler_flags " $wl$func_quote_for_eval_result"
58127232 func_append linker_flags " $func_quote_for_eval_result"
58137233 done
5814 IFS="$save_ifs"
7234 IFS=$save_ifs
58157235 func_stripname ' ' '' "$arg"
58167236 arg=$func_stripname_result
58177237 ;;
58347254 # -msg_* for osf cc
58357255 -msg_*)
58367256 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
7257 arg=$func_quote_for_eval_result
58387258 ;;
58397259
58407260 # Flags to be passed through unchanged, with rationale:
58467266 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
58477267 # -F/path path to uninstalled frameworks, gcc on darwin
58487268 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7269 # -fstack-protector* stack protector flags for GCC
58497270 # @file GCC response files
58507271 # -tp=* Portland pgcc target processor selection
58517272 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7273 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7274 # -specs=* GCC specs files
7275 # -stdlib=* select c++ std lib with clang
7276 # -fsanitize=* Clang/GCC memory and address sanitizer
58537277 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
58547278 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
7279 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7280 -specs=*|-fsanitize=*)
58567281 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
7282 arg=$func_quote_for_eval_result
58587283 func_append compile_command " $arg"
58597284 func_append finalize_command " $arg"
58607285 func_append compiler_flags " $arg"
58617286 continue
58627287 ;;
58637288
7289 -Z*)
7290 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7291 # OS/2 uses -Zxxx to specify OS/2-specific options
7292 compiler_flags="$compiler_flags $arg"
7293 func_append compile_command " $arg"
7294 func_append finalize_command " $arg"
7295 case $arg in
7296 -Zlinker | -Zstack)
7297 prev=xcompiler
7298 ;;
7299 esac
7300 continue
7301 else
7302 # Otherwise treat like 'Some other compiler flag' below
7303 func_quote_for_eval "$arg"
7304 arg=$func_quote_for_eval_result
7305 fi
7306 ;;
7307
58647308 # Some other compiler flag.
58657309 -* | +*)
58667310 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
7311 arg=$func_quote_for_eval_result
58687312 ;;
58697313
58707314 *.$objext)
58857329
58867330 if test -z "$pic_object" ||
58877331 test -z "$non_pic_object" ||
5888 test "$pic_object" = none &&
5889 test "$non_pic_object" = none; then
5890 func_fatal_error "cannot find name of object for \`$arg'"
7332 test none = "$pic_object" &&
7333 test none = "$non_pic_object"; then
7334 func_fatal_error "cannot find name of object for '$arg'"
58917335 fi
58927336
58937337 # Extract subdirectory from the argument.
58947338 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
7339 xdir=$func_dirname_result
7340
7341 test none = "$pic_object" || {
58987342 # Prepend the subdirectory the object is found in.
5899 pic_object="$xdir$pic_object"
5900
5901 if test "$prev" = dlfiles; then
5902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
7343 pic_object=$xdir$pic_object
7344
7345 if test dlfiles = "$prev"; then
7346 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
59037347 func_append dlfiles " $pic_object"
59047348 prev=
59057349 continue
59107354 fi
59117355
59127356 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
7357 if test dlprefiles = "$prev"; then
59147358 # Preload the old-style object.
59157359 func_append dlprefiles " $pic_object"
59167360 prev=
59187362
59197363 # A PIC object.
59207364 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
7365 arg=$pic_object
7366 }
59237367
59247368 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
7369 if test none != "$non_pic_object"; then
59267370 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
7371 non_pic_object=$xdir$non_pic_object
59287372
59297373 # A standard non-PIC object
59307374 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
7375 if test -z "$pic_object" || test none = "$pic_object"; then
7376 arg=$non_pic_object
59337377 fi
59347378 else
59357379 # If the PIC object exists, use it instead.
59367380 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
7381 non_pic_object=$pic_object
59387382 func_append non_pic_objects " $non_pic_object"
59397383 fi
59407384 else
59427386 if $opt_dry_run; then
59437387 # Extract subdirectory from the argument.
59447388 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
7389 xdir=$func_dirname_result
59467390
59477391 func_lo2o "$arg"
59487392 pic_object=$xdir$objdir/$func_lo2o_result
59507394 func_append libobjs " $pic_object"
59517395 func_append non_pic_objects " $non_pic_object"
59527396 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
7397 func_fatal_error "'$arg' is not a valid libtool object"
59547398 fi
59557399 fi
59567400 ;;
59667410 # A libtool-controlled library.
59677411
59687412 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
7413 if test dlfiles = "$prev"; then
59707414 # This library was specified with -dlopen.
59717415 func_append dlfiles " $func_resolve_sysroot_result"
59727416 prev=
5973 elif test "$prev" = dlprefiles; then
7417 elif test dlprefiles = "$prev"; then
59747418 # The library was specified with -dlpreopen.
59757419 func_append dlprefiles " $func_resolve_sysroot_result"
59767420 prev=
59857429 # Unknown arguments in both finalize_command and compile_command need
59867430 # to be aesthetically quoted because they are evaled later.
59877431 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
7432 arg=$func_quote_for_eval_result
59897433 ;;
59907434 esac # arg
59917435
59977441 done # argument parsing loop
59987442
59997443 test -n "$prev" && \
6000 func_fatal_help "the \`$prevarg' option requires an argument"
6001
6002 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
7444 func_fatal_help "the '$prevarg' option requires an argument"
7445
7446 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
60037447 eval arg=\"$export_dynamic_flag_spec\"
60047448 func_append compile_command " $arg"
60057449 func_append finalize_command " $arg"
60087452 oldlibs=
60097453 # calculate the name of the file, without its directory
60107454 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
7455 outputname=$func_basename_result
7456 libobjs_save=$libobjs
60137457
60147458 if test -n "$shlibpath_var"; then
60157459 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
7460 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
60177461 else
60187462 shlib_search_path=
60197463 fi
60207464 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
60217465 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
60227466
7467 # Definition is injected by LT_CONFIG during libtool generation.
7468 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7469
60237470 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
7471 output_objdir=$func_dirname_result$objdir
60257472 func_to_tool_file "$output_objdir/"
60267473 tool_output_objdir=$func_to_tool_file_result
60277474 # Create the object directory.
60447491 # Find all interdependent deplibs by searching for libraries
60457492 # that are linked more than once (e.g. -la -lb -la)
60467493 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
7494 if $opt_preserve_dup_deps; then
60487495 case "$libs " in
60497496 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
60507497 esac
60527499 func_append libs " $deplib"
60537500 done
60547501
6055 if test "$linkmode" = lib; then
7502 if test lib = "$linkmode"; then
60567503 libs="$predeps $libs $compiler_lib_search_path $postdeps"
60577504
60587505 # Compute libraries that are listed more than once in $predeps
60847531 case $file in
60857532 *.la) ;;
60867533 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
7534 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
60887535 ;;
60897536 esac
60907537 done
60927539 prog)
60937540 compile_deplibs=
60947541 finalize_deplibs=
6095 alldeplibs=no
7542 alldeplibs=false
60967543 newdlfiles=
60977544 newdlprefiles=
60987545 passes="conv scan dlopen dlpreopen link"
61047551 for pass in $passes; do
61057552 # The preopen pass in lib mode reverses $deplibs; put it back here
61067553 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
7554 if test lib,link = "$linkmode,$pass"; then
61087555 ## FIXME: Find the place where the list is rebuilt in the wrong
61097556 ## order, and fix it there properly
61107557 tmp_deplibs=
61117558 for deplib in $deplibs; do
61127559 tmp_deplibs="$deplib $tmp_deplibs"
61137560 done
6114 deplibs="$tmp_deplibs"
7561 deplibs=$tmp_deplibs
61157562 fi
61167563
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
7564 if test lib,link = "$linkmode,$pass" ||
7565 test prog,scan = "$linkmode,$pass"; then
7566 libs=$deplibs
61207567 deplibs=
61217568 fi
6122 if test "$linkmode" = prog; then
7569 if test prog = "$linkmode"; then
61237570 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
7571 dlopen) libs=$dlfiles ;;
7572 dlpreopen) libs=$dlprefiles ;;
61267573 link)
61277574 libs="$deplibs %DEPLIBS%"
61287575 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
61297576 ;;
61307577 esac
61317578 fi
6132 if test "$linkmode,$pass" = "lib,dlpreopen"; then
7579 if test lib,dlpreopen = "$linkmode,$pass"; then
61337580 # Collect and forward deplibs of preopened libtool libs
61347581 for lib in $dlprefiles; do
61357582 # Ignore non-libtool-libs
61507597 esac
61517598 done
61527599 done
6153 libs="$dlprefiles"
7600 libs=$dlprefiles
61547601 fi
6155 if test "$pass" = dlopen; then
7602 if test dlopen = "$pass"; then
61567603 # Collect dlpreopened libraries
6157 save_deplibs="$deplibs"
7604 save_deplibs=$deplibs
61587605 deplibs=
61597606 fi
61607607
61617608 for deplib in $libs; do
61627609 lib=
6163 found=no
7610 found=false
61647611 case $deplib in
61657612 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
61667613 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6167 if test "$linkmode,$pass" = "prog,link"; then
7614 if test prog,link = "$linkmode,$pass"; then
61687615 compile_deplibs="$deplib $compile_deplibs"
61697616 finalize_deplibs="$deplib $finalize_deplibs"
61707617 else
61717618 func_append compiler_flags " $deplib"
6172 if test "$linkmode" = lib ; then
7619 if test lib = "$linkmode"; then
61737620 case "$new_inherited_linker_flags " in
61747621 *" $deplib "*) ;;
61757622 * ) func_append new_inherited_linker_flags " $deplib" ;;
61797626 continue
61807627 ;;
61817628 -l*)
6182 if test "$linkmode" != lib && test "$linkmode" != prog; then
6183 func_warning "\`-l' is ignored for archives/objects"
7629 if test lib != "$linkmode" && test prog != "$linkmode"; then
7630 func_warning "'-l' is ignored for archives/objects"
61847631 continue
61857632 fi
61867633 func_stripname '-l' '' "$deplib"
61877634 name=$func_stripname_result
6188 if test "$linkmode" = lib; then
7635 if test lib = "$linkmode"; then
61897636 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
61907637 else
61917638 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
61937640 for searchdir in $searchdirs; do
61947641 for search_ext in .la $std_shrext .so .a; do
61957642 # Search the libtool library
6196 lib="$searchdir/lib${name}${search_ext}"
7643 lib=$searchdir/lib$name$search_ext
61977644 if test -f "$lib"; then
6198 if test "$search_ext" = ".la"; then
6199 found=yes
7645 if test .la = "$search_ext"; then
7646 found=:
62007647 else
6201 found=no
7648 found=false
62027649 fi
62037650 break 2
62047651 fi
62057652 done
62067653 done
6207 if test "$found" != yes; then
6208 # deplib doesn't seem to be a libtool library
6209 if test "$linkmode,$pass" = "prog,link"; then
6210 compile_deplibs="$deplib $compile_deplibs"
6211 finalize_deplibs="$deplib $finalize_deplibs"
6212 else
6213 deplibs="$deplib $deplibs"
6214 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6215 fi
6216 continue
6217 else # deplib is a libtool library
7654 if $found; then
7655 # deplib is a libtool library
62187656 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
62197657 # We need to do some special things here, and not later.
6220 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7658 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
62217659 case " $predeps $postdeps " in
62227660 *" $deplib "*)
62237661 if func_lalib_p "$lib"; then
62257663 old_library=
62267664 func_source "$lib"
62277665 for l in $old_library $library_names; do
6228 ll="$l"
7666 ll=$l
62297667 done
6230 if test "X$ll" = "X$old_library" ; then # only static version available
6231 found=no
7668 if test "X$ll" = "X$old_library"; then # only static version available
7669 found=false
62327670 func_dirname "$lib" "" "."
6233 ladir="$func_dirname_result"
7671 ladir=$func_dirname_result
62347672 lib=$ladir/$old_library
6235 if test "$linkmode,$pass" = "prog,link"; then
7673 if test prog,link = "$linkmode,$pass"; then
62367674 compile_deplibs="$deplib $compile_deplibs"
62377675 finalize_deplibs="$deplib $finalize_deplibs"
62387676 else
62397677 deplibs="$deplib $deplibs"
6240 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
7678 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
62417679 fi
62427680 continue
62437681 fi
62467684 *) ;;
62477685 esac
62487686 fi
7687 else
7688 # deplib doesn't seem to be a libtool library
7689 if test prog,link = "$linkmode,$pass"; then
7690 compile_deplibs="$deplib $compile_deplibs"
7691 finalize_deplibs="$deplib $finalize_deplibs"
7692 else
7693 deplibs="$deplib $deplibs"
7694 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7695 fi
7696 continue
62497697 fi
62507698 ;; # -l
62517699 *.ltframework)
6252 if test "$linkmode,$pass" = "prog,link"; then
7700 if test prog,link = "$linkmode,$pass"; then
62537701 compile_deplibs="$deplib $compile_deplibs"
62547702 finalize_deplibs="$deplib $finalize_deplibs"
62557703 else
62567704 deplibs="$deplib $deplibs"
6257 if test "$linkmode" = lib ; then
7705 if test lib = "$linkmode"; then
62587706 case "$new_inherited_linker_flags " in
62597707 *" $deplib "*) ;;
62607708 * ) func_append new_inherited_linker_flags " $deplib" ;;
62677715 case $linkmode in
62687716 lib)
62697717 deplibs="$deplib $deplibs"
6270 test "$pass" = conv && continue
7718 test conv = "$pass" && continue
62717719 newdependency_libs="$deplib $newdependency_libs"
62727720 func_stripname '-L' '' "$deplib"
62737721 func_resolve_sysroot "$func_stripname_result"
62747722 func_append newlib_search_path " $func_resolve_sysroot_result"
62757723 ;;
62767724 prog)
6277 if test "$pass" = conv; then
7725 if test conv = "$pass"; then
62787726 deplibs="$deplib $deplibs"
62797727 continue
62807728 fi
6281 if test "$pass" = scan; then
7729 if test scan = "$pass"; then
62827730 deplibs="$deplib $deplibs"
62837731 else
62847732 compile_deplibs="$deplib $compile_deplibs"
62897737 func_append newlib_search_path " $func_resolve_sysroot_result"
62907738 ;;
62917739 *)
6292 func_warning "\`-L' is ignored for archives/objects"
7740 func_warning "'-L' is ignored for archives/objects"
62937741 ;;
62947742 esac # linkmode
62957743 continue
62967744 ;; # -L
62977745 -R*)
6298 if test "$pass" = link; then
7746 if test link = "$pass"; then
62997747 func_stripname '-R' '' "$deplib"
63007748 func_resolve_sysroot "$func_stripname_result"
63017749 dir=$func_resolve_sysroot_result
63137761 lib=$func_resolve_sysroot_result
63147762 ;;
63157763 *.$libext)
6316 if test "$pass" = conv; then
7764 if test conv = "$pass"; then
63177765 deplibs="$deplib $deplibs"
63187766 continue
63197767 fi
63247772 case " $dlpreconveniencelibs " in
63257773 *" $deplib "*) ;;
63267774 *)
6327 valid_a_lib=no
7775 valid_a_lib=false
63287776 case $deplibs_check_method in
63297777 match_pattern*)
63307778 set dummy $deplibs_check_method; shift
63317779 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
63327780 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
63337781 | $EGREP "$match_pattern_regex" > /dev/null; then
6334 valid_a_lib=yes
7782 valid_a_lib=:
63357783 fi
63367784 ;;
63377785 pass_all)
6338 valid_a_lib=yes
7786 valid_a_lib=:
63397787 ;;
63407788 esac
6341 if test "$valid_a_lib" != yes; then
7789 if $valid_a_lib; then
7790 echo
7791 $ECHO "*** Warning: Linking the shared library $output against the"
7792 $ECHO "*** static library $deplib is not portable!"
7793 deplibs="$deplib $deplibs"
7794 else
63427795 echo
63437796 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
63447797 echo "*** I have the capability to make that library automatically link in when"
63467799 echo "*** shared version of the library, which you do not appear to have"
63477800 echo "*** because the file extensions .$libext of this argument makes me believe"
63487801 echo "*** that it is just a static archive that I should not use here."
6349 else
6350 echo
6351 $ECHO "*** Warning: Linking the shared library $output against the"
6352 $ECHO "*** static library $deplib is not portable!"
6353 deplibs="$deplib $deplibs"
63547802 fi
63557803 ;;
63567804 esac
63577805 continue
63587806 ;;
63597807 prog)
6360 if test "$pass" != link; then
7808 if test link != "$pass"; then
63617809 deplibs="$deplib $deplibs"
63627810 else
63637811 compile_deplibs="$deplib $compile_deplibs"
63687816 esac # linkmode
63697817 ;; # *.$libext
63707818 *.lo | *.$objext)
6371 if test "$pass" = conv; then
7819 if test conv = "$pass"; then
63727820 deplibs="$deplib $deplibs"
6373 elif test "$linkmode" = prog; then
6374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
7821 elif test prog = "$linkmode"; then
7822 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
63757823 # If there is no dlopen support or we're linking statically,
63767824 # we need to preload.
63777825 func_append newdlprefiles " $deplib"
63847832 continue
63857833 ;;
63867834 %DEPLIBS%)
6387 alldeplibs=yes
7835 alldeplibs=:
63887836 continue
63897837 ;;
63907838 esac # case $deplib
63917839
6392 if test "$found" = yes || test -f "$lib"; then :
6393 else
6394 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6395 fi
7840 $found || test -f "$lib" \
7841 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
63967842
63977843 # Check to see that this really is a libtool archive.
63987844 func_lalib_unsafe_p "$lib" \
6399 || func_fatal_error "\`$lib' is not a valid libtool archive"
7845 || func_fatal_error "'$lib' is not a valid libtool archive"
64007846
64017847 func_dirname "$lib" "" "."
6402 ladir="$func_dirname_result"
7848 ladir=$func_dirname_result
64037849
64047850 dlname=
64057851 dlopen=
64297875 done
64307876 fi
64317877 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6432 if test "$linkmode,$pass" = "lib,link" ||
6433 test "$linkmode,$pass" = "prog,scan" ||
6434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
7878 if test lib,link = "$linkmode,$pass" ||
7879 test prog,scan = "$linkmode,$pass" ||
7880 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
64357881 test -n "$dlopen" && func_append dlfiles " $dlopen"
64367882 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
64377883 fi
64387884
6439 if test "$pass" = conv; then
7885 if test conv = "$pass"; then
64407886 # Only check for convenience libraries
64417887 deplibs="$lib $deplibs"
64427888 if test -z "$libdir"; then
64437889 if test -z "$old_library"; then
6444 func_fatal_error "cannot find name of link library for \`$lib'"
7890 func_fatal_error "cannot find name of link library for '$lib'"
64457891 fi
64467892 # It is a libtool convenience library, so add in its objects.
64477893 func_append convenience " $ladir/$objdir/$old_library"
64497895 tmp_libs=
64507896 for deplib in $dependency_libs; do
64517897 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
7898 if $opt_preserve_dup_deps; then
64537899 case "$tmp_libs " in
64547900 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
64557901 esac
64567902 fi
64577903 func_append tmp_libs " $deplib"
64587904 done
6459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6460 func_fatal_error "\`$lib' is not a convenience library"
7905 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7906 func_fatal_error "'$lib' is not a convenience library"
64617907 fi
64627908 continue
64637909 fi # $pass = conv
64667912 # Get the name of the library we link against.
64677913 linklib=
64687914 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
7915 { test yes = "$prefer_static_libs" ||
7916 test built,no = "$prefer_static_libs,$installed"; }; then
64717917 linklib=$old_library
64727918 else
64737919 for l in $old_library $library_names; do
6474 linklib="$l"
7920 linklib=$l
64757921 done
64767922 fi
64777923 if test -z "$linklib"; then
6478 func_fatal_error "cannot find name of link library for \`$lib'"
7924 func_fatal_error "cannot find name of link library for '$lib'"
64797925 fi
64807926
64817927 # This library was specified with -dlopen.
6482 if test "$pass" = dlopen; then
6483 if test -z "$libdir"; then
6484 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6485 fi
7928 if test dlopen = "$pass"; then
7929 test -z "$libdir" \
7930 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
64867931 if test -z "$dlname" ||
6487 test "$dlopen_support" != yes ||
6488 test "$build_libtool_libs" = no; then
7932 test yes != "$dlopen_support" ||
7933 test no = "$build_libtool_libs"
7934 then
64897935 # If there is no dlname, no dlopen support or we're linking
64907936 # statically, we need to preload. We also need to preload any
64917937 # dependent libraries so libltdl's deplib preloader doesn't
64997945
65007946 # We need an absolute path.
65017947 case $ladir in
6502 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
7948 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
65037949 *)
65047950 abs_ladir=`cd "$ladir" && pwd`
65057951 if test -z "$abs_ladir"; then
6506 func_warning "cannot determine absolute directory name of \`$ladir'"
7952 func_warning "cannot determine absolute directory name of '$ladir'"
65077953 func_warning "passing it literally to the linker, although it might fail"
6508 abs_ladir="$ladir"
7954 abs_ladir=$ladir
65097955 fi
65107956 ;;
65117957 esac
65127958 func_basename "$lib"
6513 laname="$func_basename_result"
7959 laname=$func_basename_result
65147960
65157961 # Find the relevant object directory and library name.
6516 if test "X$installed" = Xyes; then
7962 if test yes = "$installed"; then
65177963 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6518 func_warning "library \`$lib' was moved."
6519 dir="$ladir"
6520 absdir="$abs_ladir"
6521 libdir="$abs_ladir"
7964 func_warning "library '$lib' was moved."
7965 dir=$ladir
7966 absdir=$abs_ladir
7967 libdir=$abs_ladir
65227968 else
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
7969 dir=$lt_sysroot$libdir
7970 absdir=$lt_sysroot$libdir
65257971 fi
6526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
7972 test yes = "$hardcode_automatic" && avoidtemprpath=yes
65277973 else
65287974 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6529 dir="$ladir"
6530 absdir="$abs_ladir"
7975 dir=$ladir
7976 absdir=$abs_ladir
65317977 # Remove this search path later
65327978 func_append notinst_path " $abs_ladir"
65337979 else
6534 dir="$ladir/$objdir"
6535 absdir="$abs_ladir/$objdir"
7980 dir=$ladir/$objdir
7981 absdir=$abs_ladir/$objdir
65367982 # Remove this search path later
65377983 func_append notinst_path " $abs_ladir"
65387984 fi
65417987 name=$func_stripname_result
65427988
65437989 # This library was specified with -dlpreopen.
6544 if test "$pass" = dlpreopen; then
6545 if test -z "$libdir" && test "$linkmode" = prog; then
6546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
7990 if test dlpreopen = "$pass"; then
7991 if test -z "$libdir" && test prog = "$linkmode"; then
7992 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
65477993 fi
6548 case "$host" in
7994 case $host in
65497995 # special handling for platforms with PE-DLLs.
65507996 *cygwin* | *mingw* | *cegcc* )
65517997 # Linker will automatically link against shared library if both
65898035
65908036 if test -z "$libdir"; then
65918037 # Link the convenience library
6592 if test "$linkmode" = lib; then
8038 if test lib = "$linkmode"; then
65938039 deplibs="$dir/$old_library $deplibs"
6594 elif test "$linkmode,$pass" = "prog,link"; then
8040 elif test prog,link = "$linkmode,$pass"; then
65958041 compile_deplibs="$dir/$old_library $compile_deplibs"
65968042 finalize_deplibs="$dir/$old_library $finalize_deplibs"
65978043 else
66018047 fi
66028048
66038049
6604 if test "$linkmode" = prog && test "$pass" != link; then
8050 if test prog = "$linkmode" && test link != "$pass"; then
66058051 func_append newlib_search_path " $ladir"
66068052 deplibs="$lib $deplibs"
66078053
6608 linkalldeplibs=no
6609 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6610 test "$build_libtool_libs" = no; then
6611 linkalldeplibs=yes
8054 linkalldeplibs=false
8055 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8056 test no = "$build_libtool_libs"; then
8057 linkalldeplibs=:
66128058 fi
66138059
66148060 tmp_libs=
66208066 ;;
66218067 esac
66228068 # Need to link against all dependency_libs?
6623 if test "$linkalldeplibs" = yes; then
8069 if $linkalldeplibs; then
66248070 deplibs="$deplib $deplibs"
66258071 else
66268072 # Need to hardcode shared library paths
66278073 # or/and link against static libraries
66288074 newdependency_libs="$deplib $newdependency_libs"
66298075 fi
6630 if $opt_preserve_dup_deps ; then
8076 if $opt_preserve_dup_deps; then
66318077 case "$tmp_libs " in
66328078 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
66338079 esac
66378083 continue
66388084 fi # $linkmode = prog...
66398085
6640 if test "$linkmode,$pass" = "prog,link"; then
8086 if test prog,link = "$linkmode,$pass"; then
66418087 if test -n "$library_names" &&
6642 { { test "$prefer_static_libs" = no ||
6643 test "$prefer_static_libs,$installed" = "built,yes"; } ||
8088 { { test no = "$prefer_static_libs" ||
8089 test built,yes = "$prefer_static_libs,$installed"; } ||
66448090 test -z "$old_library"; }; then
66458091 # We need to hardcode the library path
6646 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
8092 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
66478093 # Make sure the rpath contains only unique directories.
6648 case "$temp_rpath:" in
8094 case $temp_rpath: in
66498095 *"$absdir:"*) ;;
66508096 *) func_append temp_rpath "$absdir:" ;;
66518097 esac
66748120 esac
66758121 fi # $linkmode,$pass = prog,link...
66768122
6677 if test "$alldeplibs" = yes &&
6678 { test "$deplibs_check_method" = pass_all ||
6679 { test "$build_libtool_libs" = yes &&
8123 if $alldeplibs &&
8124 { test pass_all = "$deplibs_check_method" ||
8125 { test yes = "$build_libtool_libs" &&
66808126 test -n "$library_names"; }; }; then
66818127 # We only need to search for static libraries
66828128 continue
66858131
66868132 link_static=no # Whether the deplib will be linked statically
66878133 use_static_libs=$prefer_static_libs
6688 if test "$use_static_libs" = built && test "$installed" = yes; then
8134 if test built = "$use_static_libs" && test yes = "$installed"; then
66898135 use_static_libs=no
66908136 fi
66918137 if test -n "$library_names" &&
6692 { test "$use_static_libs" = no || test -z "$old_library"; }; then
8138 { test no = "$use_static_libs" || test -z "$old_library"; }; then
66938139 case $host in
6694 *cygwin* | *mingw* | *cegcc*)
8140 *cygwin* | *mingw* | *cegcc* | *os2*)
66958141 # No point in relinking DLLs because paths are not encoded
66968142 func_append notinst_deplibs " $lib"
66978143 need_relink=no
66988144 ;;
66998145 *)
6700 if test "$installed" = no; then
8146 if test no = "$installed"; then
67018147 func_append notinst_deplibs " $lib"
67028148 need_relink=yes
67038149 fi
67078153
67088154 # Warn about portability, can't link against -module's on some
67098155 # systems (darwin). Don't bleat about dlopened modules though!
6710 dlopenmodule=""
8156 dlopenmodule=
67118157 for dlpremoduletest in $dlprefiles; do
67128158 if test "X$dlpremoduletest" = "X$lib"; then
6713 dlopenmodule="$dlpremoduletest"
8159 dlopenmodule=$dlpremoduletest
67148160 break
67158161 fi
67168162 done
6717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8163 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
67188164 echo
6719 if test "$linkmode" = prog; then
8165 if test prog = "$linkmode"; then
67208166 $ECHO "*** Warning: Linking the executable $output against the loadable module"
67218167 else
67228168 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
67238169 fi
67248170 $ECHO "*** $linklib is not portable!"
67258171 fi
6726 if test "$linkmode" = lib &&
6727 test "$hardcode_into_libs" = yes; then
8172 if test lib = "$linkmode" &&
8173 test yes = "$hardcode_into_libs"; then
67288174 # Hardcode the library path.
67298175 # Skip directories that are in the system default run-time
67308176 # search path.
67528198 # figure out the soname
67538199 set dummy $library_names
67548200 shift
6755 realname="$1"
8201 realname=$1
67568202 shift
67578203 libname=`eval "\\$ECHO \"$libname_spec\""`
67588204 # use dlname if we got it. it's perfectly good, no?
67598205 if test -n "$dlname"; then
6760 soname="$dlname"
8206 soname=$dlname
67618207 elif test -n "$soname_spec"; then
67628208 # bleh windows
67638209 case $host in
6764 *cygwin* | mingw* | *cegcc*)
8210 *cygwin* | mingw* | *cegcc* | *os2*)
67658211 func_arith $current - $age
67668212 major=$func_arith_result
6767 versuffix="-$major"
8213 versuffix=-$major
67688214 ;;
67698215 esac
67708216 eval soname=\"$soname_spec\"
67718217 else
6772 soname="$realname"
8218 soname=$realname
67738219 fi
67748220
67758221 # Make a new name for the extract_expsyms_cmds to use
6776 soroot="$soname"
8222 soroot=$soname
67778223 func_basename "$soroot"
6778 soname="$func_basename_result"
8224 soname=$func_basename_result
67798225 func_stripname 'lib' '.dll' "$soname"
67808226 newlib=libimp-$func_stripname_result.a
67818227
67828228 # If the library has no export list, then create one now
67838229 if test -f "$output_objdir/$soname-def"; then :
67848230 else
6785 func_verbose "extracting exported symbol list from \`$soname'"
8231 func_verbose "extracting exported symbol list from '$soname'"
67868232 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
67878233 fi
67888234
67898235 # Create $newlib
67908236 if test -f "$output_objdir/$newlib"; then :; else
6791 func_verbose "generating import library for \`$soname'"
8237 func_verbose "generating import library for '$soname'"
67928238 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
67938239 fi
67948240 # make sure the library variables are pointing to the new library
67968242 linklib=$newlib
67978243 fi # test -n "$old_archive_from_expsyms_cmds"
67988244
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
8245 if test prog = "$linkmode" || test relink != "$opt_mode"; then
68008246 add_shlibpath=
68018247 add_dir=
68028248 add=
68038249 lib_linked=yes
68048250 case $hardcode_action in
68058251 immediate | unsupported)
6806 if test "$hardcode_direct" = no; then
6807 add="$dir/$linklib"
8252 if test no = "$hardcode_direct"; then
8253 add=$dir/$linklib
68088254 case $host in
6809 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6810 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
8255 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8256 *-*-sysv4*uw2*) add_dir=-L$dir ;;
68118257 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6812 *-*-unixware7*) add_dir="-L$dir" ;;
8258 *-*-unixware7*) add_dir=-L$dir ;;
68138259 *-*-darwin* )
6814 # if the lib is a (non-dlopened) module then we can not
8260 # if the lib is a (non-dlopened) module then we cannot
68158261 # link against it, someone is ignoring the earlier warnings
68168262 if /usr/bin/file -L $add 2> /dev/null |
6817 $GREP ": [^:]* bundle" >/dev/null ; then
8263 $GREP ": [^:]* bundle" >/dev/null; then
68188264 if test "X$dlopenmodule" != "X$lib"; then
68198265 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6820 if test -z "$old_library" ; then
8266 if test -z "$old_library"; then
68218267 echo
68228268 echo "*** And there doesn't seem to be a static archive available"
68238269 echo "*** The link will probably fail, sorry"
68248270 else
6825 add="$dir/$old_library"
8271 add=$dir/$old_library
68268272 fi
68278273 elif test -n "$old_library"; then
6828 add="$dir/$old_library"
8274 add=$dir/$old_library
68298275 fi
68308276 fi
68318277 esac
6832 elif test "$hardcode_minus_L" = no; then
8278 elif test no = "$hardcode_minus_L"; then
68338279 case $host in
6834 *-*-sunos*) add_shlibpath="$dir" ;;
8280 *-*-sunos*) add_shlibpath=$dir ;;
68358281 esac
6836 add_dir="-L$dir"
6837 add="-l$name"
6838 elif test "$hardcode_shlibpath_var" = no; then
6839 add_shlibpath="$dir"
6840 add="-l$name"
8282 add_dir=-L$dir
8283 add=-l$name
8284 elif test no = "$hardcode_shlibpath_var"; then
8285 add_shlibpath=$dir
8286 add=-l$name
68418287 else
68428288 lib_linked=no
68438289 fi
68448290 ;;
68458291 relink)
6846 if test "$hardcode_direct" = yes &&
6847 test "$hardcode_direct_absolute" = no; then
6848 add="$dir/$linklib"
6849 elif test "$hardcode_minus_L" = yes; then
6850 add_dir="-L$absdir"
8292 if test yes = "$hardcode_direct" &&
8293 test no = "$hardcode_direct_absolute"; then
8294 add=$dir/$linklib
8295 elif test yes = "$hardcode_minus_L"; then
8296 add_dir=-L$absdir
68518297 # Try looking first in the location we're being installed to.
68528298 if test -n "$inst_prefix_dir"; then
68538299 case $libdir in
68568302 ;;
68578303 esac
68588304 fi
6859 add="-l$name"
6860 elif test "$hardcode_shlibpath_var" = yes; then
6861 add_shlibpath="$dir"
6862 add="-l$name"
8305 add=-l$name
8306 elif test yes = "$hardcode_shlibpath_var"; then
8307 add_shlibpath=$dir
8308 add=-l$name
68638309 else
68648310 lib_linked=no
68658311 fi
68678313 *) lib_linked=no ;;
68688314 esac
68698315
6870 if test "$lib_linked" != yes; then
8316 if test yes != "$lib_linked"; then
68718317 func_fatal_configuration "unsupported hardcode properties"
68728318 fi
68738319
68778323 *) func_append compile_shlibpath "$add_shlibpath:" ;;
68788324 esac
68798325 fi
6880 if test "$linkmode" = prog; then
8326 if test prog = "$linkmode"; then
68818327 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
68828328 test -n "$add" && compile_deplibs="$add $compile_deplibs"
68838329 else
68848330 test -n "$add_dir" && deplibs="$add_dir $deplibs"
68858331 test -n "$add" && deplibs="$add $deplibs"
6886 if test "$hardcode_direct" != yes &&
6887 test "$hardcode_minus_L" != yes &&
6888 test "$hardcode_shlibpath_var" = yes; then
8332 if test yes != "$hardcode_direct" &&
8333 test yes != "$hardcode_minus_L" &&
8334 test yes = "$hardcode_shlibpath_var"; then
68898335 case :$finalize_shlibpath: in
68908336 *":$libdir:"*) ;;
68918337 *) func_append finalize_shlibpath "$libdir:" ;;
68948340 fi
68958341 fi
68968342
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
8343 if test prog = "$linkmode" || test relink = "$opt_mode"; then
68988344 add_shlibpath=
68998345 add_dir=
69008346 add=
69018347 # Finalize command for both is simple: just hardcode it.
6902 if test "$hardcode_direct" = yes &&
6903 test "$hardcode_direct_absolute" = no; then
6904 add="$libdir/$linklib"
6905 elif test "$hardcode_minus_L" = yes; then
6906 add_dir="-L$libdir"
6907 add="-l$name"
6908 elif test "$hardcode_shlibpath_var" = yes; then
8348 if test yes = "$hardcode_direct" &&
8349 test no = "$hardcode_direct_absolute"; then
8350 add=$libdir/$linklib
8351 elif test yes = "$hardcode_minus_L"; then
8352 add_dir=-L$libdir
8353 add=-l$name
8354 elif test yes = "$hardcode_shlibpath_var"; then
69098355 case :$finalize_shlibpath: in
69108356 *":$libdir:"*) ;;
69118357 *) func_append finalize_shlibpath "$libdir:" ;;
69128358 esac
6913 add="-l$name"
6914 elif test "$hardcode_automatic" = yes; then
8359 add=-l$name
8360 elif test yes = "$hardcode_automatic"; then
69158361 if test -n "$inst_prefix_dir" &&
6916 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6917 add="$inst_prefix_dir$libdir/$linklib"
8362 test -f "$inst_prefix_dir$libdir/$linklib"; then
8363 add=$inst_prefix_dir$libdir/$linklib
69188364 else
6919 add="$libdir/$linklib"
8365 add=$libdir/$linklib
69208366 fi
69218367 else
69228368 # We cannot seem to hardcode it, guess we'll fake it.
6923 add_dir="-L$libdir"
8369 add_dir=-L$libdir
69248370 # Try looking first in the location we're being installed to.
69258371 if test -n "$inst_prefix_dir"; then
69268372 case $libdir in
69298375 ;;
69308376 esac
69318377 fi
6932 add="-l$name"
8378 add=-l$name
69338379 fi
69348380
6935 if test "$linkmode" = prog; then
8381 if test prog = "$linkmode"; then
69368382 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
69378383 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
69388384 else
69408386 test -n "$add" && deplibs="$add $deplibs"
69418387 fi
69428388 fi
6943 elif test "$linkmode" = prog; then
8389 elif test prog = "$linkmode"; then
69448390 # Here we assume that one of hardcode_direct or hardcode_minus_L
69458391 # is not unsupported. This is valid on all known static and
69468392 # shared platforms.
6947 if test "$hardcode_direct" != unsupported; then
6948 test -n "$old_library" && linklib="$old_library"
8393 if test unsupported != "$hardcode_direct"; then
8394 test -n "$old_library" && linklib=$old_library
69498395 compile_deplibs="$dir/$linklib $compile_deplibs"
69508396 finalize_deplibs="$dir/$linklib $finalize_deplibs"
69518397 else
69528398 compile_deplibs="-l$name -L$dir $compile_deplibs"
69538399 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
69548400 fi
6955 elif test "$build_libtool_libs" = yes; then
8401 elif test yes = "$build_libtool_libs"; then
69568402 # Not a shared library
6957 if test "$deplibs_check_method" != pass_all; then
8403 if test pass_all != "$deplibs_check_method"; then
69588404 # We're trying link a shared library against a static one
69598405 # but the system doesn't support it.
69608406
69618407 # Just print a warning and add the library to dependency_libs so
69628408 # that the program can be linked against the static library.
69638409 echo
6964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8410 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
69658411 echo "*** I have the capability to make that library automatically link in when"
69668412 echo "*** you link to this library. But I can only do this if you have a"
69678413 echo "*** shared version of the library, which you do not appear to have."
6968 if test "$module" = yes; then
8414 if test yes = "$module"; then
69698415 echo "*** But as you try to build a module library, libtool will still create "
69708416 echo "*** a static module, that should work as long as the dlopening application"
69718417 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
69728418 if test -z "$global_symbol_pipe"; then
69738419 echo
69748420 echo "*** However, this would only work if libtool was able to extract symbol"
6975 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8421 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
69768422 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8423 echo "*** 'nm' from GNU binutils and a full rebuild may help."
69788424 fi
6979 if test "$build_old_libs" = no; then
8425 if test no = "$build_old_libs"; then
69808426 build_libtool_libs=module
69818427 build_old_libs=yes
69828428 else
69898435 fi
69908436 fi # link shared/static library?
69918437
6992 if test "$linkmode" = lib; then
8438 if test lib = "$linkmode"; then
69938439 if test -n "$dependency_libs" &&
6994 { test "$hardcode_into_libs" != yes ||
6995 test "$build_old_libs" = yes ||
6996 test "$link_static" = yes; }; then
8440 { test yes != "$hardcode_into_libs" ||
8441 test yes = "$build_old_libs" ||
8442 test yes = "$link_static"; }; then
69978443 # Extract -R from dependency_libs
69988444 temp_deplibs=
69998445 for libdir in $dependency_libs; do
70078453 *) func_append temp_deplibs " $libdir";;
70088454 esac
70098455 done
7010 dependency_libs="$temp_deplibs"
8456 dependency_libs=$temp_deplibs
70118457 fi
70128458
70138459 func_append newlib_search_path " $absdir"
70148460 # Link against this library
7015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8461 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
70168462 # ... and its dependency_libs
70178463 tmp_libs=
70188464 for deplib in $dependency_libs; do
70228468 func_resolve_sysroot "$func_stripname_result";;
70238469 *) func_resolve_sysroot "$deplib" ;;
70248470 esac
7025 if $opt_preserve_dup_deps ; then
8471 if $opt_preserve_dup_deps; then
70268472 case "$tmp_libs " in
70278473 *" $func_resolve_sysroot_result "*)
70288474 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
70318477 func_append tmp_libs " $func_resolve_sysroot_result"
70328478 done
70338479
7034 if test "$link_all_deplibs" != no; then
8480 if test no != "$link_all_deplibs"; then
70358481 # Add the search paths of all dependency libraries
70368482 for deplib in $dependency_libs; do
70378483 path=
70388484 case $deplib in
7039 -L*) path="$deplib" ;;
8485 -L*) path=$deplib ;;
70408486 *.la)
70418487 func_resolve_sysroot "$deplib"
70428488 deplib=$func_resolve_sysroot_result
70448490 dir=$func_dirname_result
70458491 # We need an absolute path.
70468492 case $dir in
7047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
8493 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
70488494 *)
70498495 absdir=`cd "$dir" && pwd`
70508496 if test -z "$absdir"; then
7051 func_warning "cannot determine absolute directory name of \`$dir'"
7052 absdir="$dir"
8497 func_warning "cannot determine absolute directory name of '$dir'"
8498 absdir=$dir
70538499 fi
70548500 ;;
70558501 esac
70578503 case $host in
70588504 *-*-darwin*)
70598505 depdepl=
7060 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7061 if test -n "$deplibrary_names" ; then
7062 for tmp in $deplibrary_names ; do
8506 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8507 if test -n "$deplibrary_names"; then
8508 for tmp in $deplibrary_names; do
70638509 depdepl=$tmp
70648510 done
7065 if test -f "$absdir/$objdir/$depdepl" ; then
7066 depdepl="$absdir/$objdir/$depdepl"
7067 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8511 if test -f "$absdir/$objdir/$depdepl"; then
8512 depdepl=$absdir/$objdir/$depdepl
8513 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70688514 if test -z "$darwin_install_name"; then
7069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8515 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70708516 fi
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
8517 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8518 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
70738519 path=
70748520 fi
70758521 fi
70768522 ;;
70778523 *)
7078 path="-L$absdir/$objdir"
8524 path=-L$absdir/$objdir
70798525 ;;
70808526 esac
70818527 else
7082 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8528 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
70838529 test -z "$libdir" && \
7084 func_fatal_error "\`$deplib' is not a valid libtool archive"
8530 func_fatal_error "'$deplib' is not a valid libtool archive"
70858531 test "$absdir" != "$libdir" && \
7086 func_warning "\`$deplib' seems to be moved"
7087
7088 path="-L$absdir"
8532 func_warning "'$deplib' seems to be moved"
8533
8534 path=-L$absdir
70898535 fi
70908536 ;;
70918537 esac
70978543 fi # link_all_deplibs != no
70988544 fi # linkmode = lib
70998545 done # for deplib in $libs
7100 if test "$pass" = link; then
7101 if test "$linkmode" = "prog"; then
8546 if test link = "$pass"; then
8547 if test prog = "$linkmode"; then
71028548 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
71038549 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
71048550 else
71058551 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
71068552 fi
71078553 fi
7108 dependency_libs="$newdependency_libs"
7109 if test "$pass" = dlpreopen; then
8554 dependency_libs=$newdependency_libs
8555 if test dlpreopen = "$pass"; then
71108556 # Link the dlpreopened libraries before other libraries
71118557 for deplib in $save_deplibs; do
71128558 deplibs="$deplib $deplibs"
71138559 done
71148560 fi
7115 if test "$pass" != dlopen; then
7116 if test "$pass" != conv; then
8561 if test dlopen != "$pass"; then
8562 test conv = "$pass" || {
71178563 # Make sure lib_search_path contains only unique directories.
71188564 lib_search_path=
71198565 for dir in $newlib_search_path; do
71238569 esac
71248570 done
71258571 newlib_search_path=
7126 fi
7127
7128 if test "$linkmode,$pass" != "prog,link"; then
7129 vars="deplibs"
8572 }
8573
8574 if test prog,link = "$linkmode,$pass"; then
8575 vars="compile_deplibs finalize_deplibs"
71308576 else
7131 vars="compile_deplibs finalize_deplibs"
8577 vars=deplibs
71328578 fi
71338579 for var in $vars dependency_libs; do
71348580 # Add libraries to $var in reverse order
71868632 eval $var=\"$tmp_libs\"
71878633 done # for var
71888634 fi
8635
8636 # Add Sun CC postdeps if required:
8637 test CXX = "$tagname" && {
8638 case $host_os in
8639 linux*)
8640 case `$CC -V 2>&1 | sed 5q` in
8641 *Sun\ C*) # Sun C++ 5.9
8642 func_suncc_cstd_abi
8643
8644 if test no != "$suncc_use_cstd_abi"; then
8645 func_append postdeps ' -library=Cstd -library=Crun'
8646 fi
8647 ;;
8648 esac
8649 ;;
8650
8651 solaris*)
8652 func_cc_basename "$CC"
8653 case $func_cc_basename_result in
8654 CC* | sunCC*)
8655 func_suncc_cstd_abi
8656
8657 if test no != "$suncc_use_cstd_abi"; then
8658 func_append postdeps ' -library=Cstd -library=Crun'
8659 fi
8660 ;;
8661 esac
8662 ;;
8663 esac
8664 }
8665
71898666 # Last step: remove runtime libs from dependency_libs
71908667 # (they stay in deplibs)
71918668 tmp_libs=
7192 for i in $dependency_libs ; do
8669 for i in $dependency_libs; do
71938670 case " $predeps $postdeps $compiler_lib_search_path " in
71948671 *" $i "*)
7195 i=""
8672 i=
71968673 ;;
71978674 esac
7198 if test -n "$i" ; then
8675 if test -n "$i"; then
71998676 func_append tmp_libs " $i"
72008677 fi
72018678 done
72028679 dependency_libs=$tmp_libs
72038680 done # for pass
7204 if test "$linkmode" = prog; then
7205 dlfiles="$newdlfiles"
8681 if test prog = "$linkmode"; then
8682 dlfiles=$newdlfiles
72068683 fi
7207 if test "$linkmode" = prog || test "$linkmode" = lib; then
7208 dlprefiles="$newdlprefiles"
8684 if test prog = "$linkmode" || test lib = "$linkmode"; then
8685 dlprefiles=$newdlprefiles
72098686 fi
72108687
72118688 case $linkmode in
72128689 oldlib)
7213 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7214 func_warning "\`-dlopen' is ignored for archives"
8690 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8691 func_warning "'-dlopen' is ignored for archives"
72158692 fi
72168693
72178694 case " $deplibs" in
72188695 *\ -l* | *\ -L*)
7219 func_warning "\`-l' and \`-L' are ignored for archives" ;;
8696 func_warning "'-l' and '-L' are ignored for archives" ;;
72208697 esac
72218698
72228699 test -n "$rpath" && \
7223 func_warning "\`-rpath' is ignored for archives"
8700 func_warning "'-rpath' is ignored for archives"
72248701
72258702 test -n "$xrpath" && \
7226 func_warning "\`-R' is ignored for archives"
8703 func_warning "'-R' is ignored for archives"
72278704
72288705 test -n "$vinfo" && \
7229 func_warning "\`-version-info/-version-number' is ignored for archives"
8706 func_warning "'-version-info/-version-number' is ignored for archives"
72308707
72318708 test -n "$release" && \
7232 func_warning "\`-release' is ignored for archives"
8709 func_warning "'-release' is ignored for archives"
72338710
72348711 test -n "$export_symbols$export_symbols_regex" && \
7235 func_warning "\`-export-symbols' is ignored for archives"
8712 func_warning "'-export-symbols' is ignored for archives"
72368713
72378714 # Now set the variables for building old libraries.
72388715 build_libtool_libs=no
7239 oldlibs="$output"
8716 oldlibs=$output
72408717 func_append objs "$old_deplibs"
72418718 ;;
72428719
72438720 lib)
7244 # Make sure we only generate libraries of the form `libNAME.la'.
8721 # Make sure we only generate libraries of the form 'libNAME.la'.
72458722 case $outputname in
72468723 lib*)
72478724 func_stripname 'lib' '.la' "$outputname"
72508727 eval libname=\"$libname_spec\"
72518728 ;;
72528729 *)
7253 test "$module" = no && \
7254 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7255
7256 if test "$need_lib_prefix" != no; then
8730 test no = "$module" \
8731 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8732
8733 if test no != "$need_lib_prefix"; then
72578734 # Add the "lib" prefix for modules if required
72588735 func_stripname '' '.la' "$outputname"
72598736 name=$func_stripname_result
72678744 esac
72688745
72698746 if test -n "$objs"; then
7270 if test "$deplibs_check_method" != pass_all; then
7271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
8747 if test pass_all != "$deplibs_check_method"; then
8748 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
72728749 else
72738750 echo
72748751 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72778754 fi
72788755 fi
72798756
7280 test "$dlself" != no && \
7281 func_warning "\`-dlopen self' is ignored for libtool libraries"
8757 test no = "$dlself" \
8758 || func_warning "'-dlopen self' is ignored for libtool libraries"
72828759
72838760 set dummy $rpath
72848761 shift
7285 test "$#" -gt 1 && \
7286 func_warning "ignoring multiple \`-rpath's for a libtool library"
7287
7288 install_libdir="$1"
8762 test 1 -lt "$#" \
8763 && func_warning "ignoring multiple '-rpath's for a libtool library"
8764
8765 install_libdir=$1
72898766
72908767 oldlibs=
72918768 if test -z "$rpath"; then
7292 if test "$build_libtool_libs" = yes; then
8769 if test yes = "$build_libtool_libs"; then
72938770 # Building a libtool convenience library.
7294 # Some compilers have problems with a `.al' extension so
8771 # Some compilers have problems with a '.al' extension so
72958772 # convenience libraries should have the same extension an
72968773 # archive normally would.
72978774 oldlibs="$output_objdir/$libname.$libext $oldlibs"
73008777 fi
73018778
73028779 test -n "$vinfo" && \
7303 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
8780 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
73048781
73058782 test -n "$release" && \
7306 func_warning "\`-release' is ignored for convenience libraries"
8783 func_warning "'-release' is ignored for convenience libraries"
73078784 else
73088785
73098786 # Parse the version information argument.
7310 save_ifs="$IFS"; IFS=':'
8787 save_ifs=$IFS; IFS=:
73118788 set dummy $vinfo 0 0 0
73128789 shift
7313 IFS="$save_ifs"
8790 IFS=$save_ifs
73148791
73158792 test -n "$7" && \
7316 func_fatal_help "too many parameters to \`-version-info'"
8793 func_fatal_help "too many parameters to '-version-info'"
73178794
73188795 # convert absolute version numbers to libtool ages
73198796 # this retains compatibility with .la files and attempts
73218798
73228799 case $vinfo_number in
73238800 yes)
7324 number_major="$1"
7325 number_minor="$2"
7326 number_revision="$3"
8801 number_major=$1
8802 number_minor=$2
8803 number_revision=$3
73278804 #
73288805 # There are really only two kinds -- those that
73298806 # use the current revision as the major version
73308807 # and those that subtract age and use age as
73318808 # a minor version. But, then there is irix
7332 # which has an extra 1 added just for fun
8809 # that has an extra 1 added just for fun
73338810 #
73348811 case $version_type in
73358812 # correct linux to gnu/linux during the next big refactor
7336 darwin|linux|osf|windows|none)
8813 darwin|freebsd-elf|linux|osf|windows|none)
73378814 func_arith $number_major + $number_minor
73388815 current=$func_arith_result
7339 age="$number_minor"
7340 revision="$number_revision"
8816 age=$number_minor
8817 revision=$number_revision
73418818 ;;
7342 freebsd-aout|freebsd-elf|qnx|sunos)
7343 current="$number_major"
7344 revision="$number_minor"
7345 age="0"
8819 freebsd-aout|qnx|sunos)
8820 current=$number_major
8821 revision=$number_minor
8822 age=0
73468823 ;;
73478824 irix|nonstopux)
73488825 func_arith $number_major + $number_minor
73498826 current=$func_arith_result
7350 age="$number_minor"
7351 revision="$number_minor"
8827 age=$number_minor
8828 revision=$number_minor
73528829 lt_irix_increment=no
73538830 ;;
73548831 *)
7355 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
8832 func_fatal_configuration "$modename: unknown library version type '$version_type'"
73568833 ;;
73578834 esac
73588835 ;;
73598836 no)
7360 current="$1"
7361 revision="$2"
7362 age="$3"
8837 current=$1
8838 revision=$2
8839 age=$3
73638840 ;;
73648841 esac
73658842
73678844 case $current in
73688845 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73698846 *)
7370 func_error "CURRENT \`$current' must be a nonnegative integer"
7371 func_fatal_error "\`$vinfo' is not valid version information"
8847 func_error "CURRENT '$current' must be a nonnegative integer"
8848 func_fatal_error "'$vinfo' is not valid version information"
73728849 ;;
73738850 esac
73748851
73758852 case $revision in
73768853 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73778854 *)
7378 func_error "REVISION \`$revision' must be a nonnegative integer"
7379 func_fatal_error "\`$vinfo' is not valid version information"
8855 func_error "REVISION '$revision' must be a nonnegative integer"
8856 func_fatal_error "'$vinfo' is not valid version information"
73808857 ;;
73818858 esac
73828859
73838860 case $age in
73848861 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
73858862 *)
7386 func_error "AGE \`$age' must be a nonnegative integer"
7387 func_fatal_error "\`$vinfo' is not valid version information"
8863 func_error "AGE '$age' must be a nonnegative integer"
8864 func_fatal_error "'$vinfo' is not valid version information"
73888865 ;;
73898866 esac
73908867
73918868 if test "$age" -gt "$current"; then
7392 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7393 func_fatal_error "\`$vinfo' is not valid version information"
8869 func_error "AGE '$age' is greater than the current interface number '$current'"
8870 func_fatal_error "'$vinfo' is not valid version information"
73948871 fi
73958872
73968873 # Calculate the version variables.
74058882 # verstring for coding it into the library header
74068883 func_arith $current - $age
74078884 major=.$func_arith_result
7408 versuffix="$major.$age.$revision"
8885 versuffix=$major.$age.$revision
74098886 # Darwin ld doesn't like 0 for these options...
74108887 func_arith $current + 1
74118888 minor_current=$func_arith_result
7412 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8889 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
74138890 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8891 # On Darwin other compilers
8892 case $CC in
8893 nagfor*)
8894 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8895 ;;
8896 *)
8897 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8898 ;;
8899 esac
74148900 ;;
74158901
74168902 freebsd-aout)
7417 major=".$current"
7418 versuffix=".$current.$revision";
8903 major=.$current
8904 versuffix=.$current.$revision
74198905 ;;
74208906
74218907 freebsd-elf)
7422 major=".$current"
7423 versuffix=".$current"
8908 func_arith $current - $age
8909 major=.$func_arith_result
8910 versuffix=$major.$age.$revision
74248911 ;;
74258912
74268913 irix | nonstopux)
7427 if test "X$lt_irix_increment" = "Xno"; then
8914 if test no = "$lt_irix_increment"; then
74288915 func_arith $current - $age
74298916 else
74308917 func_arith $current - $age + 1
74358922 nonstopux) verstring_prefix=nonstopux ;;
74368923 *) verstring_prefix=sgi ;;
74378924 esac
7438 verstring="$verstring_prefix$major.$revision"
8925 verstring=$verstring_prefix$major.$revision
74398926
74408927 # Add in all the interfaces that we are compatible with.
74418928 loop=$revision
7442 while test "$loop" -ne 0; do
8929 while test 0 -ne "$loop"; do
74438930 func_arith $revision - $loop
74448931 iface=$func_arith_result
74458932 func_arith $loop - 1
74468933 loop=$func_arith_result
7447 verstring="$verstring_prefix$major.$iface:$verstring"
8934 verstring=$verstring_prefix$major.$iface:$verstring
74488935 done
74498936
7450 # Before this point, $major must not contain `.'.
8937 # Before this point, $major must not contain '.'.
74518938 major=.$major
7452 versuffix="$major.$revision"
8939 versuffix=$major.$revision
74538940 ;;
74548941
74558942 linux) # correct to gnu/linux during the next big refactor
74568943 func_arith $current - $age
74578944 major=.$func_arith_result
7458 versuffix="$major.$age.$revision"
8945 versuffix=$major.$age.$revision
74598946 ;;
74608947
74618948 osf)
74628949 func_arith $current - $age
74638950 major=.$func_arith_result
7464 versuffix=".$current.$age.$revision"
7465 verstring="$current.$age.$revision"
8951 versuffix=.$current.$age.$revision
8952 verstring=$current.$age.$revision
74668953
74678954 # Add in all the interfaces that we are compatible with.
74688955 loop=$age
7469 while test "$loop" -ne 0; do
8956 while test 0 -ne "$loop"; do
74708957 func_arith $current - $loop
74718958 iface=$func_arith_result
74728959 func_arith $loop - 1
74738960 loop=$func_arith_result
7474 verstring="$verstring:${iface}.0"
8961 verstring=$verstring:$iface.0
74758962 done
74768963
74778964 # Make executables depend on our current version.
7478 func_append verstring ":${current}.0"
8965 func_append verstring ":$current.0"
74798966 ;;
74808967
74818968 qnx)
7482 major=".$current"
7483 versuffix=".$current"
8969 major=.$current
8970 versuffix=.$current
74848971 ;;
74858972
8973 sco)
8974 major=.$current
8975 versuffix=.$current
8976 ;;
8977
74868978 sunos)
7487 major=".$current"
7488 versuffix=".$current.$revision"
8979 major=.$current
8980 versuffix=.$current.$revision
74898981 ;;
74908982
74918983 windows)
74928984 # Use '-' rather than '.', since we only want one
7493 # extension on DOS 8.3 filesystems.
8985 # extension on DOS 8.3 file systems.
74948986 func_arith $current - $age
74958987 major=$func_arith_result
7496 versuffix="-$major"
8988 versuffix=-$major
74978989 ;;
74988990
74998991 *)
7500 func_fatal_configuration "unknown library version type \`$version_type'"
8992 func_fatal_configuration "unknown library version type '$version_type'"
75018993 ;;
75028994 esac
75038995
75119003 verstring=
75129004 ;;
75139005 *)
7514 verstring="0.0"
9006 verstring=0.0
75159007 ;;
75169008 esac
7517 if test "$need_version" = no; then
9009 if test no = "$need_version"; then
75189010 versuffix=
75199011 else
7520 versuffix=".0.0"
9012 versuffix=.0.0
75219013 fi
75229014 fi
75239015
75249016 # Remove version info from name if versioning should be avoided
7525 if test "$avoid_version" = yes && test "$need_version" = no; then
9017 if test yes,no = "$avoid_version,$need_version"; then
75269018 major=
75279019 versuffix=
7528 verstring=""
9020 verstring=
75299021 fi
75309022
75319023 # Check to see if the archive will have undefined symbols.
7532 if test "$allow_undefined" = yes; then
7533 if test "$allow_undefined_flag" = unsupported; then
7534 func_warning "undefined symbols not allowed in $host shared libraries"
7535 build_libtool_libs=no
7536 build_old_libs=yes
9024 if test yes = "$allow_undefined"; then
9025 if test unsupported = "$allow_undefined_flag"; then
9026 if test yes = "$build_old_libs"; then
9027 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9028 build_libtool_libs=no
9029 else
9030 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9031 fi
75379032 fi
75389033 else
75399034 # Don't allow undefined symbols.
7540 allow_undefined_flag="$no_undefined_flag"
9035 allow_undefined_flag=$no_undefined_flag
75419036 fi
75429037
75439038 fi
75449039
7545 func_generate_dlsyms "$libname" "$libname" "yes"
9040 func_generate_dlsyms "$libname" "$libname" :
75469041 func_append libobjs " $symfileobj"
7547 test "X$libobjs" = "X " && libobjs=
7548
7549 if test "$opt_mode" != relink; then
9042 test " " = "$libobjs" && libobjs=
9043
9044 if test relink != "$opt_mode"; then
75509045 # Remove our outputs, but don't remove object files since they
75519046 # may have been created when compiling PIC objects.
75529047 removelist=
75559050 case $p in
75569051 *.$objext | *.gcno)
75579052 ;;
7558 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7559 if test "X$precious_files_regex" != "X"; then
9053 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9054 if test -n "$precious_files_regex"; then
75609055 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
75619056 then
75629057 continue
75729067 fi
75739068
75749069 # Now set the variables for building old libraries.
7575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
9070 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
75769071 func_append oldlibs " $output_objdir/$libname.$libext"
75779072
75789073 # Transform .lo files to .o files.
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
9074 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
75809075 fi
75819076
75829077 # Eliminate all temporary directories.
75979092 *) func_append finalize_rpath " $libdir" ;;
75989093 esac
75999094 done
7600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
9095 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
76019096 dependency_libs="$temp_xrpath $dependency_libs"
76029097 fi
76039098 fi
76049099
76059100 # Make sure dlfiles contains only unique files that won't be dlpreopened
7606 old_dlfiles="$dlfiles"
9101 old_dlfiles=$dlfiles
76079102 dlfiles=
76089103 for lib in $old_dlfiles; do
76099104 case " $dlprefiles $dlfiles " in
76139108 done
76149109
76159110 # Make sure dlprefiles contains only unique files
7616 old_dlprefiles="$dlprefiles"
9111 old_dlprefiles=$dlprefiles
76179112 dlprefiles=
76189113 for lib in $old_dlprefiles; do
76199114 case "$dlprefiles " in
76229117 esac
76239118 done
76249119
7625 if test "$build_libtool_libs" = yes; then
9120 if test yes = "$build_libtool_libs"; then
76269121 if test -n "$rpath"; then
76279122 case $host in
76289123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
76469141 ;;
76479142 *)
76489143 # Add libc to deplibs on all other systems if necessary.
7649 if test "$build_libtool_need_lc" = "yes"; then
9144 if test yes = "$build_libtool_need_lc"; then
76509145 func_append deplibs " -lc"
76519146 fi
76529147 ;;
76629157 # I'm not sure if I'm treating the release correctly. I think
76639158 # release should show up in the -l (ie -lgmp5) so we don't want to
76649159 # add it in twice. Is that correct?
7665 release=""
7666 versuffix=""
7667 major=""
9160 release=
9161 versuffix=
9162 major=
76689163 newdeplibs=
76699164 droppeddeps=no
76709165 case $deplibs_check_method in
76939188 -l*)
76949189 func_stripname -l '' "$i"
76959190 name=$func_stripname_result
7696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9191 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
76979192 case " $predeps $postdeps " in
76989193 *" $i "*)
76999194 func_append newdeplibs " $i"
7700 i=""
9195 i=
77019196 ;;
77029197 esac
77039198 fi
7704 if test -n "$i" ; then
9199 if test -n "$i"; then
77059200 libname=`eval "\\$ECHO \"$libname_spec\""`
77069201 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77079202 set dummy $deplib_matches; shift
77089203 deplib_match=$1
7709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9204 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77109205 func_append newdeplibs " $i"
77119206 else
77129207 droppeddeps=yes
77369231 $opt_dry_run || $RM conftest
77379232 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
77389233 ldd_output=`ldd conftest`
7739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9234 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77409235 case " $predeps $postdeps " in
77419236 *" $i "*)
77429237 func_append newdeplibs " $i"
7743 i=""
9238 i=
77449239 ;;
77459240 esac
77469241 fi
7747 if test -n "$i" ; then
9242 if test -n "$i"; then
77489243 libname=`eval "\\$ECHO \"$libname_spec\""`
77499244 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77509245 set dummy $deplib_matches; shift
77519246 deplib_match=$1
7752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9247 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77539248 func_append newdeplibs " $i"
77549249 else
77559250 droppeddeps=yes
77869281 -l*)
77879282 func_stripname -l '' "$a_deplib"
77889283 name=$func_stripname_result
7789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9284 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77909285 case " $predeps $postdeps " in
77919286 *" $a_deplib "*)
77929287 func_append newdeplibs " $a_deplib"
7793 a_deplib=""
9288 a_deplib=
77949289 ;;
77959290 esac
77969291 fi
7797 if test -n "$a_deplib" ; then
9292 if test -n "$a_deplib"; then
77989293 libname=`eval "\\$ECHO \"$libname_spec\""`
77999294 if test -n "$file_magic_glob"; then
78009295 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
78019296 else
78029297 libnameglob=$libname
78039298 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
9299 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
78059300 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7806 if test "$want_nocaseglob" = yes; then
9301 if test yes = "$want_nocaseglob"; then
78079302 shopt -s nocaseglob
78089303 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
78099304 $nocaseglob
78219316 # We might still enter an endless loop, since a link
78229317 # loop can be closed while we follow links,
78239318 # but so what?
7824 potlib="$potent_lib"
9319 potlib=$potent_lib
78259320 while test -h "$potlib" 2>/dev/null; do
7826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
9321 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
78279322 case $potliblink in
7828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
9323 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9324 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
78309325 esac
78319326 done
78329327 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78339328 $SED -e 10q |
78349329 $EGREP "$file_magic_regex" > /dev/null; then
78359330 func_append newdeplibs " $a_deplib"
7836 a_deplib=""
9331 a_deplib=
78379332 break 2
78389333 fi
78399334 done
78409335 done
78419336 fi
7842 if test -n "$a_deplib" ; then
9337 if test -n "$a_deplib"; then
78439338 droppeddeps=yes
78449339 echo
78459340 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78479342 echo "*** you link to this library. But I can only do this if you have a"
78489343 echo "*** shared version of the library, which you do not appear to have"
78499344 echo "*** because I did check the linker path looking for a file starting"
7850 if test -z "$potlib" ; then
9345 if test -z "$potlib"; then
78519346 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78529347 else
78539348 $ECHO "*** with $libname and none of the candidates passed a file format test"
78709365 -l*)
78719366 func_stripname -l '' "$a_deplib"
78729367 name=$func_stripname_result
7873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9368 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
78749369 case " $predeps $postdeps " in
78759370 *" $a_deplib "*)
78769371 func_append newdeplibs " $a_deplib"
7877 a_deplib=""
9372 a_deplib=
78789373 ;;
78799374 esac
78809375 fi
7881 if test -n "$a_deplib" ; then
9376 if test -n "$a_deplib"; then
78829377 libname=`eval "\\$ECHO \"$libname_spec\""`
78839378 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
78849379 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78859380 for potent_lib in $potential_libs; do
7886 potlib="$potent_lib" # see symlink-check above in file_magic test
9381 potlib=$potent_lib # see symlink-check above in file_magic test
78879382 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
78889383 $EGREP "$match_pattern_regex" > /dev/null; then
78899384 func_append newdeplibs " $a_deplib"
7890 a_deplib=""
9385 a_deplib=
78919386 break 2
78929387 fi
78939388 done
78949389 done
78959390 fi
7896 if test -n "$a_deplib" ; then
9391 if test -n "$a_deplib"; then
78979392 droppeddeps=yes
78989393 echo
78999394 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
79019396 echo "*** you link to this library. But I can only do this if you have a"
79029397 echo "*** shared version of the library, which you do not appear to have"
79039398 echo "*** because I did check the linker path looking for a file starting"
7904 if test -z "$potlib" ; then
9399 if test -z "$potlib"; then
79059400 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
79069401 else
79079402 $ECHO "*** with $libname and none of the candidates passed a file format test"
79179412 done # Gone through all deplibs.
79189413 ;;
79199414 none | unknown | *)
7920 newdeplibs=""
9415 newdeplibs=
79219416 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7923 for i in $predeps $postdeps ; do
9417 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9418 for i in $predeps $postdeps; do
79249419 # can't use Xsed below, because $i might contain '/'
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
9420 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
79269421 done
79279422 fi
79289423 case $tmp_deplibs in
79299424 *[!\ \ ]*)
79309425 echo
7931 if test "X$deplibs_check_method" = "Xnone"; then
9426 if test none = "$deplibs_check_method"; then
79329427 echo "*** Warning: inter-library dependencies are not supported in this platform."
79339428 else
79349429 echo "*** Warning: inter-library dependencies are not known to be supported."
79529447 ;;
79539448 esac
79549449
7955 if test "$droppeddeps" = yes; then
7956 if test "$module" = yes; then
9450 if test yes = "$droppeddeps"; then
9451 if test yes = "$module"; then
79579452 echo
79589453 echo "*** Warning: libtool could not satisfy all declared inter-library"
79599454 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
79629457 if test -z "$global_symbol_pipe"; then
79639458 echo
79649459 echo "*** However, this would only work if libtool was able to extract symbol"
7965 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
9460 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
79669461 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
9462 echo "*** 'nm' from GNU binutils and a full rebuild may help."
79689463 fi
7969 if test "$build_old_libs" = no; then
7970 oldlibs="$output_objdir/$libname.$libext"
9464 if test no = "$build_old_libs"; then
9465 oldlibs=$output_objdir/$libname.$libext
79719466 build_libtool_libs=module
79729467 build_old_libs=yes
79739468 else
79789473 echo "*** automatically added whenever a program is linked with this library"
79799474 echo "*** or is declared to -dlopen it."
79809475
7981 if test "$allow_undefined" = no; then
9476 if test no = "$allow_undefined"; then
79829477 echo
79839478 echo "*** Since this library must not contain undefined symbols,"
79849479 echo "*** because either the platform does not support them or"
79859480 echo "*** it was explicitly requested with -no-undefined,"
79869481 echo "*** libtool will only create a static version of it."
7987 if test "$build_old_libs" = no; then
7988 oldlibs="$output_objdir/$libname.$libext"
9482 if test no = "$build_old_libs"; then
9483 oldlibs=$output_objdir/$libname.$libext
79899484 build_libtool_libs=module
79909485 build_old_libs=yes
79919486 else
80319526 *) func_append new_libs " $deplib" ;;
80329527 esac
80339528 done
8034 deplibs="$new_libs"
9529 deplibs=$new_libs
80359530
80369531 # All the library-specific variables (install_libdir is set above).
80379532 library_names=
80399534 dlname=
80409535
80419536 # Test again, we may have decided not to build it any more
8042 if test "$build_libtool_libs" = yes; then
8043 # Remove ${wl} instances when linking with ld.
9537 if test yes = "$build_libtool_libs"; then
9538 # Remove $wl instances when linking with ld.
80449539 # FIXME: should test the right _cmds variable.
80459540 case $archive_cmds in
80469541 *\$LD\ *) wl= ;;
80479542 esac
8048 if test "$hardcode_into_libs" = yes; then
9543 if test yes = "$hardcode_into_libs"; then
80499544 # Hardcode the library paths
80509545 hardcode_libdirs=
80519546 dep_rpath=
8052 rpath="$finalize_rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
9547 rpath=$finalize_rpath
9548 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
80549549 for libdir in $rpath; do
80559550 if test -n "$hardcode_libdir_flag_spec"; then
80569551 if test -n "$hardcode_libdir_separator"; then
80579552 func_replace_sysroot "$libdir"
80589553 libdir=$func_replace_sysroot_result
80599554 if test -z "$hardcode_libdirs"; then
8060 hardcode_libdirs="$libdir"
9555 hardcode_libdirs=$libdir
80619556 else
80629557 # Just accumulate the unique libdirs.
80639558 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
80829577 # Substitute the hardcoded libdirs into the rpath.
80839578 if test -n "$hardcode_libdir_separator" &&
80849579 test -n "$hardcode_libdirs"; then
8085 libdir="$hardcode_libdirs"
9580 libdir=$hardcode_libdirs
80869581 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80879582 fi
80889583 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80969591 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
80979592 fi
80989593
8099 shlibpath="$finalize_shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
9594 shlibpath=$finalize_shlibpath
9595 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
81019596 if test -n "$shlibpath"; then
81029597 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
81039598 fi
81079602 eval library_names=\"$library_names_spec\"
81089603 set dummy $library_names
81099604 shift
8110 realname="$1"
9605 realname=$1
81119606 shift
81129607
81139608 if test -n "$soname_spec"; then
81149609 eval soname=\"$soname_spec\"
81159610 else
8116 soname="$realname"
9611 soname=$realname
81179612 fi
81189613 if test -z "$dlname"; then
81199614 dlname=$soname
81209615 fi
81219616
8122 lib="$output_objdir/$realname"
9617 lib=$output_objdir/$realname
81239618 linknames=
81249619 for link
81259620 do
81339628 delfiles=
81349629 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81359630 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8136 export_symbols="$output_objdir/$libname.uexp"
9631 export_symbols=$output_objdir/$libname.uexp
81379632 func_append delfiles " $export_symbols"
81389633 fi
81399634
81429637 cygwin* | mingw* | cegcc*)
81439638 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
81449639 # exporting using user supplied symfile
8145 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
9640 func_dll_def_p "$export_symbols" || {
81469641 # and it's NOT already a .def file. Must figure out
81479642 # which of the given symbols are data symbols and tag
81489643 # them as such. So, trigger use of export_symbols_cmds.
81499644 # export_symbols gets reassigned inside the "prepare
81509645 # the list of exported symbols" if statement, so the
81519646 # include_expsyms logic still works.
8152 orig_export_symbols="$export_symbols"
9647 orig_export_symbols=$export_symbols
81539648 export_symbols=
81549649 always_export_symbols=yes
8155 fi
9650 }
81569651 fi
81579652 ;;
81589653 esac
81599654
81609655 # Prepare the list of exported symbols
81619656 if test -z "$export_symbols"; then
8162 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8163 func_verbose "generating symbol list for \`$libname.la'"
8164 export_symbols="$output_objdir/$libname.exp"
9657 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9658 func_verbose "generating symbol list for '$libname.la'"
9659 export_symbols=$output_objdir/$libname.exp
81659660 $opt_dry_run || $RM $export_symbols
81669661 cmds=$export_symbols_cmds
8167 save_ifs="$IFS"; IFS='~'
9662 save_ifs=$IFS; IFS='~'
81689663 for cmd1 in $cmds; do
8169 IFS="$save_ifs"
9664 IFS=$save_ifs
81709665 # Take the normal branch if the nm_file_list_spec branch
81719666 # doesn't work or if tool conversion is not needed.
81729667 case $nm_file_list_spec~$to_tool_file_cmd in
81809675 try_normal_branch=no
81819676 ;;
81829677 esac
8183 if test "$try_normal_branch" = yes \
9678 if test yes = "$try_normal_branch" \
81849679 && { test "$len" -lt "$max_cmd_len" \
81859680 || test "$max_cmd_len" -le -1; }
81869681 then
81919686 output_la=$func_basename_result
81929687 save_libobjs=$libobjs
81939688 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
9689 output=$output_objdir/$output_la.nm
81959690 func_to_tool_file "$output"
81969691 libobjs=$nm_file_list_spec$func_to_tool_file_result
81979692 func_append delfiles " $output"
82149709 break
82159710 fi
82169711 done
8217 IFS="$save_ifs"
8218 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
9712 IFS=$save_ifs
9713 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
82199714 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
82209715 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
82219716 fi
82239718 fi
82249719
82259720 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8226 tmp_export_symbols="$export_symbols"
8227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9721 tmp_export_symbols=$export_symbols
9722 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
82289723 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
82299724 fi
82309725
8231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
9726 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
82329727 # The given exports_symbols file has to be filtered, so filter it.
8233 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9728 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
82349729 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8235 # 's' commands which not all seds can handle. GNU sed should be fine
9730 # 's' commands, which not all seds can handle. GNU sed should be fine
82369731 # though. Also, the filter scales superlinearly with the number of
82379732 # global variables. join(1) would be nice here, but unfortunately
82389733 # isn't a blessed tool.
82519746 ;;
82529747 esac
82539748 done
8254 deplibs="$tmp_deplibs"
9749 deplibs=$tmp_deplibs
82559750
82569751 if test -n "$convenience"; then
82579752 if test -n "$whole_archive_flag_spec" &&
8258 test "$compiler_needs_object" = yes &&
9753 test yes = "$compiler_needs_object" &&
82599754 test -z "$libobjs"; then
82609755 # extract the archives, so we have objects to list.
82619756 # TODO: could optimize this to just extract one archive.
82669761 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
82679762 test "X$libobjs" = "X " && libobjs=
82689763 else
8269 gentop="$output_objdir/${outputname}x"
9764 gentop=$output_objdir/${outputname}x
82709765 func_append generated " $gentop"
82719766
82729767 func_extract_archives $gentop $convenience
82759770 fi
82769771 fi
82779772
8278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
9773 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
82799774 eval flag=\"$thread_safe_flag_spec\"
82809775 func_append linker_flags " $flag"
82819776 fi
82829777
82839778 # Make a backup of the uninstalled library when relinking
8284 if test "$opt_mode" = relink; then
9779 if test relink = "$opt_mode"; then
82859780 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82869781 fi
82879782
82889783 # Do each of the archive commands.
8289 if test "$module" = yes && test -n "$module_cmds" ; then
9784 if test yes = "$module" && test -n "$module_cmds"; then
82909785 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
82919786 eval test_cmds=\"$module_expsym_cmds\"
82929787 cmds=$module_expsym_cmds
83049799 fi
83059800 fi
83069801
8307 if test "X$skipped_export" != "X:" &&
9802 if test : != "$skipped_export" &&
83089803 func_len " $test_cmds" &&
83099804 len=$func_len_result &&
83109805 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
83379832 last_robj=
83389833 k=1
83399834
8340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8341 output=${output_objdir}/${output_la}.lnkscript
9835 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9836 output=$output_objdir/$output_la.lnkscript
83429837 func_verbose "creating GNU ld script: $output"
83439838 echo 'INPUT (' > $output
83449839 for obj in $save_libobjs
83509845 func_append delfiles " $output"
83519846 func_to_tool_file "$output"
83529847 output=$func_to_tool_file_result
8353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8354 output=${output_objdir}/${output_la}.lnk
9848 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9849 output=$output_objdir/$output_la.lnk
83559850 func_verbose "creating linker input file list: $output"
83569851 : > $output
83579852 set x $save_libobjs
83589853 shift
83599854 firstobj=
8360 if test "$compiler_needs_object" = yes; then
9855 if test yes = "$compiler_needs_object"; then
83619856 firstobj="$1 "
83629857 shift
83639858 fi
83729867 else
83739868 if test -n "$save_libobjs"; then
83749869 func_verbose "creating reloadable object files..."
8375 output=$output_objdir/$output_la-${k}.$objext
9870 output=$output_objdir/$output_la-$k.$objext
83769871 eval test_cmds=\"$reload_cmds\"
83779872 func_len " $test_cmds"
83789873 len0=$func_len_result
83849879 func_len " $obj"
83859880 func_arith $len + $func_len_result
83869881 len=$func_arith_result
8387 if test "X$objlist" = X ||
9882 if test -z "$objlist" ||
83889883 test "$len" -lt "$max_cmd_len"; then
83899884 func_append objlist " $obj"
83909885 else
83919886 # The command $test_cmds is almost too long, add a
83929887 # command to the queue.
8393 if test "$k" -eq 1 ; then
9888 if test 1 -eq "$k"; then
83949889 # The first file doesn't have a previous command to add.
83959890 reload_objs=$objlist
83969891 eval concat_cmds=\"$reload_cmds\"
84009895 reload_objs="$objlist $last_robj"
84019896 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
84029897 fi
8403 last_robj=$output_objdir/$output_la-${k}.$objext
9898 last_robj=$output_objdir/$output_la-$k.$objext
84049899 func_arith $k + 1
84059900 k=$func_arith_result
8406 output=$output_objdir/$output_la-${k}.$objext
9901 output=$output_objdir/$output_la-$k.$objext
84079902 objlist=" $obj"
84089903 func_len " $last_robj"
84099904 func_arith $len0 + $func_len_result
84159910 # files will link in the last one created.
84169911 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
84179912 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
9913 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
84199914 if test -n "$last_robj"; then
8420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
9915 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84219916 fi
84229917 func_append delfiles " $output"
84239918
84259920 output=
84269921 fi
84279922
8428 if ${skipped_export-false}; then
8429 func_verbose "generating symbol list for \`$libname.la'"
8430 export_symbols="$output_objdir/$libname.exp"
9923 ${skipped_export-false} && {
9924 func_verbose "generating symbol list for '$libname.la'"
9925 export_symbols=$output_objdir/$libname.exp
84319926 $opt_dry_run || $RM $export_symbols
84329927 libobjs=$output
84339928 # Append the command to create the export file.
84369931 if test -n "$last_robj"; then
84379932 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84389933 fi
8439 fi
9934 }
84409935
84419936 test -n "$save_libobjs" &&
84429937 func_verbose "creating a temporary reloadable object file: $output"
84439938
84449939 # Loop through the commands generated above and execute them.
8445 save_ifs="$IFS"; IFS='~'
9940 save_ifs=$IFS; IFS='~'
84469941 for cmd in $concat_cmds; do
8447 IFS="$save_ifs"
8448 $opt_silent || {
9942 IFS=$save_ifs
9943 $opt_quiet || {
84499944 func_quote_for_expand "$cmd"
84509945 eval "func_echo $func_quote_for_expand_result"
84519946 }
84539948 lt_exit=$?
84549949
84559950 # Restore the uninstalled library and exit
8456 if test "$opt_mode" = relink; then
9951 if test relink = "$opt_mode"; then
84579952 ( cd "$output_objdir" && \
84589953 $RM "${realname}T" && \
84599954 $MV "${realname}U" "$realname" )
84629957 exit $lt_exit
84639958 }
84649959 done
8465 IFS="$save_ifs"
9960 IFS=$save_ifs
84669961
84679962 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
84689963 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
84709965 fi
84719966 fi
84729967
8473 if ${skipped_export-false}; then
9968 ${skipped_export-false} && {
84749969 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8475 tmp_export_symbols="$export_symbols"
8476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9970 tmp_export_symbols=$export_symbols
9971 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
84779972 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
84789973 fi
84799974
84809975 if test -n "$orig_export_symbols"; then
84819976 # The given exports_symbols file has to be filtered, so filter it.
8482 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9977 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
84839978 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8484 # 's' commands which not all seds can handle. GNU sed should be fine
9979 # 's' commands, which not all seds can handle. GNU sed should be fine
84859980 # though. Also, the filter scales superlinearly with the number of
84869981 # global variables. join(1) would be nice here, but unfortunately
84879982 # isn't a blessed tool.
84909985 export_symbols=$output_objdir/$libname.def
84919986 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
84929987 fi
8493 fi
9988 }
84949989
84959990 libobjs=$output
84969991 # Restore the value of output.
85049999 # value of $libobjs for piecewise linking.
850510000
850610001 # Do each of the archive commands.
8507 if test "$module" = yes && test -n "$module_cmds" ; then
10002 if test yes = "$module" && test -n "$module_cmds"; then
850810003 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
850910004 cmds=$module_expsym_cmds
851010005 else
852610021
852710022 # Add any objects from preloaded convenience libraries
852810023 if test -n "$dlprefiles"; then
8529 gentop="$output_objdir/${outputname}x"
10024 gentop=$output_objdir/${outputname}x
853010025 func_append generated " $gentop"
853110026
853210027 func_extract_archives $gentop $dlprefiles
853410029 test "X$libobjs" = "X " && libobjs=
853510030 fi
853610031
8537 save_ifs="$IFS"; IFS='~'
10032 save_ifs=$IFS; IFS='~'
853810033 for cmd in $cmds; do
8539 IFS="$save_ifs"
10034 IFS=$sp$nl
854010035 eval cmd=\"$cmd\"
8541 $opt_silent || {
10036 IFS=$save_ifs
10037 $opt_quiet || {
854210038 func_quote_for_expand "$cmd"
854310039 eval "func_echo $func_quote_for_expand_result"
854410040 }
854610042 lt_exit=$?
854710043
854810044 # Restore the uninstalled library and exit
8549 if test "$opt_mode" = relink; then
10045 if test relink = "$opt_mode"; then
855010046 ( cd "$output_objdir" && \
855110047 $RM "${realname}T" && \
855210048 $MV "${realname}U" "$realname" )
855510051 exit $lt_exit
855610052 }
855710053 done
8558 IFS="$save_ifs"
10054 IFS=$save_ifs
855910055
856010056 # Restore the uninstalled library and exit
8561 if test "$opt_mode" = relink; then
10057 if test relink = "$opt_mode"; then
856210058 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
856310059
856410060 if test -n "$convenience"; then
857810074 done
857910075
858010076 # If -module or -export-dynamic was specified, set the dlname.
8581 if test "$module" = yes || test "$export_dynamic" = yes; then
10077 if test yes = "$module" || test yes = "$export_dynamic"; then
858210078 # On all known operating systems, these are identical.
8583 dlname="$soname"
10079 dlname=$soname
858410080 fi
858510081 fi
858610082 ;;
858710083
858810084 obj)
8589 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8590 func_warning "\`-dlopen' is ignored for objects"
10085 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10086 func_warning "'-dlopen' is ignored for objects"
859110087 fi
859210088
859310089 case " $deplibs" in
859410090 *\ -l* | *\ -L*)
8595 func_warning "\`-l' and \`-L' are ignored for objects" ;;
10091 func_warning "'-l' and '-L' are ignored for objects" ;;
859610092 esac
859710093
859810094 test -n "$rpath" && \
8599 func_warning "\`-rpath' is ignored for objects"
10095 func_warning "'-rpath' is ignored for objects"
860010096
860110097 test -n "$xrpath" && \
8602 func_warning "\`-R' is ignored for objects"
10098 func_warning "'-R' is ignored for objects"
860310099
860410100 test -n "$vinfo" && \
8605 func_warning "\`-version-info' is ignored for objects"
10101 func_warning "'-version-info' is ignored for objects"
860610102
860710103 test -n "$release" && \
8608 func_warning "\`-release' is ignored for objects"
10104 func_warning "'-release' is ignored for objects"
860910105
861010106 case $output in
861110107 *.lo)
861210108 test -n "$objs$old_deplibs" && \
8613 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
10109 func_fatal_error "cannot build library object '$output' from non-libtool objects"
861410110
861510111 libobj=$output
861610112 func_lo2o "$libobj"
861810114 ;;
861910115 *)
862010116 libobj=
8621 obj="$output"
10117 obj=$output
862210118 ;;
862310119 esac
862410120
863110127 # the extraction.
863210128 reload_conv_objs=
863310129 gentop=
8634 # reload_cmds runs $LD directly, so let us get rid of
8635 # -Wl from whole_archive_flag_spec and hope we can get by with
8636 # turning comma into space..
8637 wl=
8638
10130 # if reload_cmds runs $LD directly, get rid of -Wl from
10131 # whole_archive_flag_spec and hope we can get by with turning comma
10132 # into space.
10133 case $reload_cmds in
10134 *\$LD[\ \$]*) wl= ;;
10135 esac
863910136 if test -n "$convenience"; then
864010137 if test -n "$whole_archive_flag_spec"; then
864110138 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10139 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10140 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
864310141 else
8644 gentop="$output_objdir/${obj}x"
10142 gentop=$output_objdir/${obj}x
864510143 func_append generated " $gentop"
864610144
864710145 func_extract_archives $gentop $convenience
865010148 fi
865110149
865210150 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
10151 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
865410152
865510153 # Create the old-style object.
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8657
8658 output="$obj"
10154 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10155
10156 output=$obj
865910157 func_execute_cmds "$reload_cmds" 'exit $?'
866010158
866110159 # Exit if we aren't doing a library object file.
866710165 exit $EXIT_SUCCESS
866810166 fi
866910167
8670 if test "$build_libtool_libs" != yes; then
10168 test yes = "$build_libtool_libs" || {
867110169 if test -n "$gentop"; then
867210170 func_show_eval '${RM}r "$gentop"'
867310171 fi
867710175 # $show "echo timestamp > $libobj"
867810176 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
867910177 exit $EXIT_SUCCESS
8680 fi
8681
8682 if test -n "$pic_flag" || test "$pic_mode" != default; then
10178 }
10179
10180 if test -n "$pic_flag" || test default != "$pic_mode"; then
868310181 # Only do commands if we really have different PIC objects.
868410182 reload_objs="$libobjs $reload_conv_objs"
8685 output="$libobj"
10183 output=$libobj
868610184 func_execute_cmds "$reload_cmds" 'exit $?'
868710185 fi
868810186
869910197 output=$func_stripname_result.exe;;
870010198 esac
870110199 test -n "$vinfo" && \
8702 func_warning "\`-version-info' is ignored for programs"
10200 func_warning "'-version-info' is ignored for programs"
870310201
870410202 test -n "$release" && \
8705 func_warning "\`-release' is ignored for programs"
8706
8707 test "$preload" = yes \
8708 && test "$dlopen_support" = unknown \
8709 && test "$dlopen_self" = unknown \
8710 && test "$dlopen_self_static" = unknown && \
8711 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
10203 func_warning "'-release' is ignored for programs"
10204
10205 $preload \
10206 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10207 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
871210208
871310209 case $host in
871410210 *-*-rhapsody* | *-*-darwin1.[012])
872210218 *-*-darwin*)
872310219 # Don't allow lazy linking, it breaks C++ global constructors
872410220 # But is supposedly fixed on 10.4 or later (yay!).
8725 if test "$tagname" = CXX ; then
10221 if test CXX = "$tagname"; then
872610222 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
872710223 10.[0123])
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
10224 func_append compile_command " $wl-bind_at_load"
10225 func_append finalize_command " $wl-bind_at_load"
873010226 ;;
873110227 esac
873210228 fi
876210258 *) func_append new_libs " $deplib" ;;
876310259 esac
876410260 done
8765 compile_deplibs="$new_libs"
10261 compile_deplibs=$new_libs
876610262
876710263
876810264 func_append compile_command " $compile_deplibs"
878610282 if test -n "$hardcode_libdir_flag_spec"; then
878710283 if test -n "$hardcode_libdir_separator"; then
878810284 if test -z "$hardcode_libdirs"; then
8789 hardcode_libdirs="$libdir"
10285 hardcode_libdirs=$libdir
879010286 else
879110287 # Just accumulate the unique libdirs.
879210288 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
880910305 fi
881010306 case $host in
881110307 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8812 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
10308 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
881310309 case :$dllsearchpath: in
881410310 *":$libdir:"*) ;;
881510311 ::) dllsearchpath=$libdir;;
882610322 # Substitute the hardcoded libdirs into the rpath.
882710323 if test -n "$hardcode_libdir_separator" &&
882810324 test -n "$hardcode_libdirs"; then
8829 libdir="$hardcode_libdirs"
10325 libdir=$hardcode_libdirs
883010326 eval rpath=\" $hardcode_libdir_flag_spec\"
883110327 fi
8832 compile_rpath="$rpath"
10328 compile_rpath=$rpath
883310329
883410330 rpath=
883510331 hardcode_libdirs=
883710333 if test -n "$hardcode_libdir_flag_spec"; then
883810334 if test -n "$hardcode_libdir_separator"; then
883910335 if test -z "$hardcode_libdirs"; then
8840 hardcode_libdirs="$libdir"
10336 hardcode_libdirs=$libdir
884110337 else
884210338 # Just accumulate the unique libdirs.
884310339 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
886210358 # Substitute the hardcoded libdirs into the rpath.
886310359 if test -n "$hardcode_libdir_separator" &&
886410360 test -n "$hardcode_libdirs"; then
8865 libdir="$hardcode_libdirs"
10361 libdir=$hardcode_libdirs
886610362 eval rpath=\" $hardcode_libdir_flag_spec\"
886710363 fi
8868 finalize_rpath="$rpath"
8869
8870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
10364 finalize_rpath=$rpath
10365
10366 if test -n "$libobjs" && test yes = "$build_old_libs"; then
887110367 # Transform all the library objects into standard objects.
887210368 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887310369 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887410370 fi
887510371
8876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
10372 func_generate_dlsyms "$outputname" "@PROGRAM@" false
887710373
887810374 # template prelinking step
887910375 if test -n "$prelink_cmds"; then
888010376 func_execute_cmds "$prelink_cmds" 'exit $?'
888110377 fi
888210378
8883 wrappers_required=yes
10379 wrappers_required=:
888410380 case $host in
888510381 *cegcc* | *mingw32ce*)
888610382 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
10383 wrappers_required=false
888810384 ;;
888910385 *cygwin* | *mingw* )
8890 if test "$build_libtool_libs" != yes; then
8891 wrappers_required=no
8892 fi
10386 test yes = "$build_libtool_libs" || wrappers_required=false
889310387 ;;
889410388 *)
8895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8896 wrappers_required=no
10389 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10390 wrappers_required=false
889710391 fi
889810392 ;;
889910393 esac
8900 if test "$wrappers_required" = no; then
10394 $wrappers_required || {
890110395 # Replace the output file specification.
890210396 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8903 link_command="$compile_command$compile_rpath"
10397 link_command=$compile_command$compile_rpath
890410398
890510399 # We have no uninstalled library dependencies, so finalize right now.
890610400 exit_status=0
891310407 fi
891410408
891510409 # Delete the generated files.
8916 if test -f "$output_objdir/${outputname}S.${objext}"; then
8917 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
10410 if test -f "$output_objdir/${outputname}S.$objext"; then
10411 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
891810412 fi
891910413
892010414 exit $exit_status
8921 fi
10415 }
892210416
892310417 if test -n "$compile_shlibpath$finalize_shlibpath"; then
892410418 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
894810442 fi
894910443 fi
895010444
8951 if test "$no_install" = yes; then
10445 if test yes = "$no_install"; then
895210446 # We don't need to create a wrapper script.
8953 link_command="$compile_var$compile_command$compile_rpath"
10447 link_command=$compile_var$compile_command$compile_rpath
895410448 # Replace the output file specification.
895510449 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
895610450 # Delete the old output file.
896710461 exit $EXIT_SUCCESS
896810462 fi
896910463
8970 if test "$hardcode_action" = relink; then
8971 # Fast installation is not supported
8972 link_command="$compile_var$compile_command$compile_rpath"
8973 relink_command="$finalize_var$finalize_command$finalize_rpath"
8974
8975 func_warning "this platform does not like uninstalled shared libraries"
8976 func_warning "\`$output' will be relinked during installation"
8977 else
8978 if test "$fast_install" != no; then
8979 link_command="$finalize_var$compile_command$finalize_rpath"
8980 if test "$fast_install" = yes; then
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8982 else
8983 # fast_install is set to needless
8984 relink_command=
8985 fi
8986 else
8987 link_command="$compile_var$compile_command$compile_rpath"
8988 relink_command="$finalize_var$finalize_command$finalize_rpath"
8989 fi
8990 fi
10464 case $hardcode_action,$fast_install in
10465 relink,*)
10466 # Fast installation is not supported
10467 link_command=$compile_var$compile_command$compile_rpath
10468 relink_command=$finalize_var$finalize_command$finalize_rpath
10469
10470 func_warning "this platform does not like uninstalled shared libraries"
10471 func_warning "'$output' will be relinked during installation"
10472 ;;
10473 *,yes)
10474 link_command=$finalize_var$compile_command$finalize_rpath
10475 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10476 ;;
10477 *,no)
10478 link_command=$compile_var$compile_command$compile_rpath
10479 relink_command=$finalize_var$finalize_command$finalize_rpath
10480 ;;
10481 *,needless)
10482 link_command=$finalize_var$compile_command$finalize_rpath
10483 relink_command=
10484 ;;
10485 esac
899110486
899210487 # Replace the output file specification.
899310488 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
904410539 func_dirname_and_basename "$output" "" "."
904510540 output_name=$func_basename_result
904610541 output_path=$func_dirname_result
9047 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9048 cwrapper="$output_path/$output_name.exe"
10542 cwrappersource=$output_path/$objdir/lt-$output_name.c
10543 cwrapper=$output_path/$output_name.exe
904910544 $RM $cwrappersource $cwrapper
905010545 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
905110546
906610561 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
906710562 $opt_dry_run || {
906810563 # note: this script will not be executed, so do not chmod.
9069 if test "x$build" = "x$host" ; then
10564 if test "x$build" = "x$host"; then
907010565 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
907110566 else
907210567 func_emit_wrapper no > $func_ltwrapper_scriptname_result
908910584 # See if we need to build an old-fashioned archive.
909010585 for oldlib in $oldlibs; do
909110586
9092 if test "$build_libtool_libs" = convenience; then
9093 oldobjs="$libobjs_save $symfileobj"
9094 addlibs="$convenience"
9095 build_libtool_libs=no
9096 else
9097 if test "$build_libtool_libs" = module; then
9098 oldobjs="$libobjs_save"
10587 case $build_libtool_libs in
10588 convenience)
10589 oldobjs="$libobjs_save $symfileobj"
10590 addlibs=$convenience
909910591 build_libtool_libs=no
9100 else
10592 ;;
10593 module)
10594 oldobjs=$libobjs_save
10595 addlibs=$old_convenience
10596 build_libtool_libs=no
10597 ;;
10598 *)
910110599 oldobjs="$old_deplibs $non_pic_objects"
9102 if test "$preload" = yes && test -f "$symfileobj"; then
9103 func_append oldobjs " $symfileobj"
9104 fi
9105 fi
9106 addlibs="$old_convenience"
9107 fi
10600 $preload && test -f "$symfileobj" \
10601 && func_append oldobjs " $symfileobj"
10602 addlibs=$old_convenience
10603 ;;
10604 esac
910810605
910910606 if test -n "$addlibs"; then
9110 gentop="$output_objdir/${outputname}x"
10607 gentop=$output_objdir/${outputname}x
911110608 func_append generated " $gentop"
911210609
911310610 func_extract_archives $gentop $addlibs
911510612 fi
911610613
911710614 # Do each command in the archive commands.
9118 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
10615 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
911910616 cmds=$old_archive_from_new_cmds
912010617 else
912110618
912210619 # Add any objects from preloaded convenience libraries
912310620 if test -n "$dlprefiles"; then
9124 gentop="$output_objdir/${outputname}x"
10621 gentop=$output_objdir/${outputname}x
912510622 func_append generated " $gentop"
912610623
912710624 func_extract_archives $gentop $dlprefiles
914210639 :
914310640 else
914410641 echo "copying selected object files to avoid basename conflicts..."
9145 gentop="$output_objdir/${outputname}x"
10642 gentop=$output_objdir/${outputname}x
914610643 func_append generated " $gentop"
914710644 func_mkdir_p "$gentop"
914810645 save_oldobjs=$oldobjs
915110648 for obj in $save_oldobjs
915210649 do
915310650 func_basename "$obj"
9154 objbase="$func_basename_result"
10651 objbase=$func_basename_result
915510652 case " $oldobjs " in
915610653 " ") oldobjs=$obj ;;
915710654 *[\ /]"$objbase "*)
922010717 else
922110718 # the above command should be used before it gets too long
922210719 oldobjs=$objlist
9223 if test "$obj" = "$last_oldobj" ; then
10720 if test "$obj" = "$last_oldobj"; then
922410721 RANLIB=$save_RANLIB
922510722 fi
922610723 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9227 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
10724 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
922810725 objlist=
922910726 len=$len0
923010727 fi
923110728 done
923210729 RANLIB=$save_RANLIB
923310730 oldobjs=$objlist
9234 if test "X$oldobjs" = "X" ; then
10731 if test -z "$oldobjs"; then
923510732 eval cmds=\"\$concat_cmds\"
923610733 else
923710734 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
924810745 case $output in
924910746 *.la)
925010747 old_library=
9251 test "$build_old_libs" = yes && old_library="$libname.$libext"
10748 test yes = "$build_old_libs" && old_library=$libname.$libext
925210749 func_verbose "creating $output"
925310750
925410751 # Preserve any variables that may affect compiler behavior
926310760 fi
926410761 done
926510762 # Quote the link command for shipping.
9266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10763 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
926710764 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9268 if test "$hardcode_automatic" = yes ; then
10765 if test yes = "$hardcode_automatic"; then
926910766 relink_command=
927010767 fi
927110768
927210769 # Only create the output if not a dry run.
927310770 $opt_dry_run || {
927410771 for installed in no yes; do
9275 if test "$installed" = yes; then
10772 if test yes = "$installed"; then
927610773 if test -z "$install_libdir"; then
927710774 break
927810775 fi
9279 output="$output_objdir/$outputname"i
10776 output=$output_objdir/${outputname}i
928010777 # Replace all uninstalled libtool libraries with the installed ones
928110778 newdependency_libs=
928210779 for deplib in $dependency_libs; do
928310780 case $deplib in
928410781 *.la)
928510782 func_basename "$deplib"
9286 name="$func_basename_result"
10783 name=$func_basename_result
928710784 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10785 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
928910786 test -z "$libdir" && \
9290 func_fatal_error "\`$deplib' is not a valid libtool archive"
10787 func_fatal_error "'$deplib' is not a valid libtool archive"
929110788 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
929210789 ;;
929310790 -L*)
930310800 *) func_append newdependency_libs " $deplib" ;;
930410801 esac
930510802 done
9306 dependency_libs="$newdependency_libs"
10803 dependency_libs=$newdependency_libs
930710804 newdlfiles=
930810805
930910806 for lib in $dlfiles; do
931010807 case $lib in
931110808 *.la)
931210809 func_basename "$lib"
9313 name="$func_basename_result"
9314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10810 name=$func_basename_result
10811 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
931510812 test -z "$libdir" && \
9316 func_fatal_error "\`$lib' is not a valid libtool archive"
10813 func_fatal_error "'$lib' is not a valid libtool archive"
931710814 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
931810815 ;;
931910816 *) func_append newdlfiles " $lib" ;;
932010817 esac
932110818 done
9322 dlfiles="$newdlfiles"
10819 dlfiles=$newdlfiles
932310820 newdlprefiles=
932410821 for lib in $dlprefiles; do
932510822 case $lib in
932910826 # didn't already link the preopened objects directly into
933010827 # the library:
933110828 func_basename "$lib"
9332 name="$func_basename_result"
9333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10829 name=$func_basename_result
10830 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
933410831 test -z "$libdir" && \
9335 func_fatal_error "\`$lib' is not a valid libtool archive"
10832 func_fatal_error "'$lib' is not a valid libtool archive"
933610833 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
933710834 ;;
933810835 esac
933910836 done
9340 dlprefiles="$newdlprefiles"
10837 dlprefiles=$newdlprefiles
934110838 else
934210839 newdlfiles=
934310840 for lib in $dlfiles; do
934410841 case $lib in
9345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10842 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934610843 *) abs=`pwd`"/$lib" ;;
934710844 esac
934810845 func_append newdlfiles " $abs"
934910846 done
9350 dlfiles="$newdlfiles"
10847 dlfiles=$newdlfiles
935110848 newdlprefiles=
935210849 for lib in $dlprefiles; do
935310850 case $lib in
9354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10851 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
935510852 *) abs=`pwd`"/$lib" ;;
935610853 esac
935710854 func_append newdlprefiles " $abs"
935810855 done
9359 dlprefiles="$newdlprefiles"
10856 dlprefiles=$newdlprefiles
936010857 fi
936110858 $RM $output
936210859 # place dlname in correct position for cygwin
937210869 case $host,$output,$installed,$module,$dlname in
937310870 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
937410871 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
10872 if test -n "$bindir"; then
937710873 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
10874 tdlname=$func_relative_path_result/$dlname
937910875 else
938010876 # Otherwise fall back on heuristic.
938110877 tdlname=../bin/$dlname
938410880 esac
938510881 $ECHO > $output "\
938610882 # $outputname - a libtool library file
9387 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10883 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
938810884 #
938910885 # Please DO NOT delete this file!
939010886 # It is necessary for linking the library.
939810894 # The name of the static archive.
939910895 old_library='$old_library'
940010896
9401 # Linker flags that can not go in dependency_libs.
10897 # Linker flags that cannot go in dependency_libs.
940210898 inherited_linker_flags='$new_inherited_linker_flags'
940310899
940410900 # Libraries that this one depends upon.
942410920
942510921 # Directory that this library needs to be installed in:
942610922 libdir='$install_libdir'"
9427 if test "$installed" = no && test "$need_relink" = yes; then
10923 if test no,yes = "$installed,$need_relink"; then
942810924 $ECHO >> $output "\
942910925 relink_command=\"$relink_command\""
943010926 fi
943910935 exit $EXIT_SUCCESS
944010936 }
944110937
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9443 func_mode_link ${1+"$@"}
10938 if test link = "$opt_mode" || test relink = "$opt_mode"; then
10939 func_mode_link ${1+"$@"}
10940 fi
944410941
944510942
944610943 # func_mode_uninstall arg...
944710944 func_mode_uninstall ()
944810945 {
9449 $opt_debug
9450 RM="$nonopt"
10946 $debug_cmd
10947
10948 RM=$nonopt
945110949 files=
9452 rmforce=
10950 rmforce=false
945310951 exit_status=0
945410952
945510953 # This variable tells wrapper scripts just to set variables rather
945610954 # than running their programs.
9457 libtool_install_magic="$magic"
10955 libtool_install_magic=$magic
945810956
945910957 for arg
946010958 do
946110959 case $arg in
9462 -f) func_append RM " $arg"; rmforce=yes ;;
10960 -f) func_append RM " $arg"; rmforce=: ;;
946310961 -*) func_append RM " $arg" ;;
946410962 *) func_append files " $arg" ;;
946510963 esac
947210970
947310971 for file in $files; do
947410972 func_dirname "$file" "" "."
9475 dir="$func_dirname_result"
9476 if test "X$dir" = X.; then
9477 odir="$objdir"
10973 dir=$func_dirname_result
10974 if test . = "$dir"; then
10975 odir=$objdir
947810976 else
9479 odir="$dir/$objdir"
10977 odir=$dir/$objdir
948010978 fi
948110979 func_basename "$file"
9482 name="$func_basename_result"
9483 test "$opt_mode" = uninstall && odir="$dir"
10980 name=$func_basename_result
10981 test uninstall = "$opt_mode" && odir=$dir
948410982
948510983 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
10984 if test clean = "$opt_mode"; then
948710985 case " $rmdirs " in
948810986 *" $odir "*) ;;
948910987 *) func_append rmdirs " $odir" ;;
949810996 elif test -d "$file"; then
949910997 exit_status=1
950010998 continue
9501 elif test "$rmforce" = yes; then
10999 elif $rmforce; then
950211000 continue
950311001 fi
950411002
9505 rmfiles="$file"
11003 rmfiles=$file
950611004
950711005 case $name in
950811006 *.la)
951611014 done
951711015 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
951811016
9519 case "$opt_mode" in
11017 case $opt_mode in
952011018 clean)
952111019 case " $library_names " in
952211020 *" $dlname "*) ;;
952711025 uninstall)
952811026 if test -n "$library_names"; then
952911027 # Do each command in the postuninstall commands.
9530 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11028 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
953111029 fi
953211030
953311031 if test -n "$old_library"; then
953411032 # Do each command in the old_postuninstall commands.
9535 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11033 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
953611034 fi
953711035 # FIXME: should reinstall the best remaining shared library.
953811036 ;;
954811046 func_source $dir/$name
954911047
955011048 # Add PIC object to the list of files to remove.
9551 if test -n "$pic_object" &&
9552 test "$pic_object" != none; then
11049 if test -n "$pic_object" && test none != "$pic_object"; then
955311050 func_append rmfiles " $dir/$pic_object"
955411051 fi
955511052
955611053 # Add non-PIC object to the list of files to remove.
9557 if test -n "$non_pic_object" &&
9558 test "$non_pic_object" != none; then
11054 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
955911055 func_append rmfiles " $dir/$non_pic_object"
956011056 fi
956111057 fi
956211058 ;;
956311059
956411060 *)
9565 if test "$opt_mode" = clean ; then
11061 if test clean = "$opt_mode"; then
956611062 noexename=$name
956711063 case $file in
956811064 *.exe)
958911085
959011086 # note $name still contains .exe if it was in $file originally
959111087 # as does the version of $file that was added into $rmfiles
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9593 if test "$fast_install" = yes && test -n "$relink_command"; then
11088 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11089 if test yes = "$fast_install" && test -n "$relink_command"; then
959411090 func_append rmfiles " $odir/lt-$name"
959511091 fi
9596 if test "X$noexename" != "X$name" ; then
9597 func_append rmfiles " $odir/lt-${noexename}.c"
11092 if test "X$noexename" != "X$name"; then
11093 func_append rmfiles " $odir/lt-$noexename.c"
959811094 fi
959911095 fi
960011096 fi
960311099 func_show_eval "$RM $rmfiles" 'exit_status=1'
960411100 done
960511101
9606 # Try to remove the ${objdir}s in the directories where we deleted files
11102 # Try to remove the $objdir's in the directories where we deleted files
960711103 for dir in $rmdirs; do
960811104 if test -d "$dir"; then
960911105 func_show_eval "rmdir $dir >/dev/null 2>&1"
961311109 exit $exit_status
961411110 }
961511111
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9617 func_mode_uninstall ${1+"$@"}
11112 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11113 func_mode_uninstall ${1+"$@"}
11114 fi
961811115
961911116 test -z "$opt_mode" && {
9620 help="$generic_help"
11117 help=$generic_help
962111118 func_fatal_help "you must specify a MODE"
962211119 }
962311120
962411121 test -z "$exec_cmd" && \
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
11122 func_fatal_help "invalid operation mode '$opt_mode'"
962611123
962711124 if test -n "$exec_cmd"; then
962811125 eval exec "$exec_cmd"
963311130
963411131
963511132 # The TAGs below are defined such that we never get into a situation
9636 # in which we disable both kinds of libraries. Given conflicting
11133 # where we disable both kinds of libraries. Given conflicting
963711134 # choices, we go for a static library, that is the most portable,
963811135 # since we can't tell whether shared libraries were disabled because
963911136 # the user asked for that or because the platform doesn't support
965611153 # mode:shell-script
965711154 # sh-indentation:2
965811155 # End:
9659 # vi:sw=2
9660
22
33 scriptversion=2013-10-28.13; # UTC
44
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1313
1414 @SET_MAKE@
1515 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
16 am__is_gnu_make = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
1727 am__make_running_with_option = \
1828 case $${target_option-} in \
1929 ?) ;; \
7787 build_triplet = @build@
7888 host_triplet = @host@
7989 subdir = src
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8190 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8291 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8392 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8493 $(ACLOCAL_M4)
94 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
8595 mkinstalldirs = $(install_sh) -d
8696 CONFIG_HEADER = $(top_builddir)/config.h
8797 CONFIG_CLEAN_FILES =
141151 ETAGS = etags
142152 CTAGS = ctags
143153 DIST_SUBDIRS = $(SUBDIRS)
154 am__DIST_COMMON = $(srcdir)/Makefile.in
144155 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
145156 am__relativize = \
146157 dir0=`pwd`; \
214225 LIPO = @LIPO@
215226 LN_S = @LN_S@
216227 LTLIBOBJS = @LTLIBOBJS@
228 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
217229 MAKEINFO = @MAKEINFO@
218230 MANIFEST_TOOL = @MANIFEST_TOOL@
219231 MKDIR_P = @MKDIR_P@
289301 prefix = @prefix@
290302 program_transform_name = @program_transform_name@
291303 psdir = @psdir@
304 runstatedir = @runstatedir@
292305 sbindir = @sbindir@
293306 sharedstatedir = @sharedstatedir@
294307 srcdir = @srcdir@
314327 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
315328 $(am__cd) $(top_srcdir) && \
316329 $(AUTOMAKE) --gnu src/Makefile
317 .PRECIOUS: Makefile
318330 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
319331 @case '$?' in \
320332 *config.status*) \
609621 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
610622 ps ps-am tags tags-am uninstall uninstall-am
611623
624 .PRECIOUS: Makefile
625
612626
613627 # Tell versions [3.59,3.63) of GNU make to not export all variables.
614628 # Otherwise a system limit (for SysV at least) may be exceeded.
0 // Local configuration
1 #include "config.h"
2
03 // STDC++
14 #include <string>
25 #include <memory>
5659 {
5760 if (argc < 3) { throw UI::Exception("Wrong usage"); };
5861
59 std::auto_ptr<UI::Util::Socket> socket((std::strcmp(argv[1], "unix") == 0) ?
60 (UI::Util::Socket *) new UI::Util::UnixSocket(unSock, true) :
61 (UI::Util::Socket *) new UI::Util::INetSocket(inHost, inPort, true, true));
62 UI::auto_ptr<UI::Util::Socket> socket((std::strcmp(argv[1], "unix") == 0) ?
63 (UI::Util::Socket *) new UI::Util::UnixSocket(unSock, true) :
64 (UI::Util::Socket *) new UI::Util::INetSocket(inHost, inPort, true, true));
6265
6366 std::strcmp(argv[2], "server") == 0 ? server(*socket.get()) : client(*socket.get());
6467 }
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1616
1717
1818 VPATH = @srcdir@
19 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__is_gnu_make = { \
20 if test -z '$(MAKELEVEL)'; then \
21 false; \
22 elif test -n '$(MAKE_HOST)'; then \
23 true; \
24 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
25 true; \
26 else \
27 false; \
28 fi; \
29 }
2030 am__make_running_with_option = \
2131 case $${target_option-} in \
2232 ?) ;; \
8898 ui-utilcpp-recoder$(EXEEXT) ui-utilcpp-wget$(EXEEXT) \
8999 ui-utilcpp-cap$(EXEEXT)
90100 subdir = src/tools
91 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
92 $(top_srcdir)/depcomp
93101 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
94102 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
95103 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
96104 $(ACLOCAL_M4)
105 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
97106 mkinstalldirs = $(install_sh) -d
98107 CONFIG_HEADER = $(top_builddir)/config.h
99108 CONFIG_CLEAN_FILES =
254263 done | $(am__uniquify_input)`
255264 ETAGS = etags
256265 CTAGS = ctags
266 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
257267 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
258268 ACLOCAL = @ACLOCAL@
259269 AMTAR = @AMTAR@
302312 LIPO = @LIPO@
303313 LN_S = @LN_S@
304314 LTLIBOBJS = @LTLIBOBJS@
315 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
305316 MAKEINFO = @MAKEINFO@
306317 MANIFEST_TOOL = @MANIFEST_TOOL@
307318 MKDIR_P = @MKDIR_P@
377388 prefix = @prefix@
378389 program_transform_name = @program_transform_name@
379390 psdir = @psdir@
391 runstatedir = @runstatedir@
380392 sbindir = @sbindir@
381393 sharedstatedir = @sharedstatedir@
382394 srcdir = @srcdir@
436448 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/tools/Makefile'; \
437449 $(am__cd) $(top_srcdir) && \
438450 $(AUTOMAKE) --gnu src/tools/Makefile
439 .PRECIOUS: Makefile
440451 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
441452 @case '$?' in \
442453 *config.status*) \
896907 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \
897908 uninstall-binSCRIPTS uninstall-docDATA
898909
910 .PRECIOUS: Makefile
911
899912
900913 check-local:
901914 ./ui-utilcpp-unittests
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616
1717 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
1929 am__make_running_with_option = \
2030 case $${target_option-} in \
2131 ?) ;; \
7989 build_triplet = @build@
8090 host_triplet = @host@
8191 subdir = src/ui-utilcpp
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/depcomp $(inc_HEADERS)
8492 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8593 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8694 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8795 $(ACLOCAL_M4)
96 DIST_COMMON = $(srcdir)/Makefile.am $(inc_HEADERS) $(am__DIST_COMMON)
8897 mkinstalldirs = $(install_sh) -d
8998 CONFIG_HEADER = $(top_builddir)/config.h
9099 CONFIG_CLEAN_FILES =
212221 ETAGS = etags
213222 CTAGS = ctags
214223 DIST_SUBDIRS = $(SUBDIRS)
224 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
215225 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
216226 am__relativize = \
217227 dir0=`pwd`; \
285295 LIPO = @LIPO@
286296 LN_S = @LN_S@
287297 LTLIBOBJS = @LTLIBOBJS@
298 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
288299 MAKEINFO = @MAKEINFO@
289300 MANIFEST_TOOL = @MANIFEST_TOOL@
290301 MKDIR_P = @MKDIR_P@
360371 prefix = @prefix@
361372 program_transform_name = @program_transform_name@
362373 psdir = @psdir@
374 runstatedir = @runstatedir@
363375 sbindir = @sbindir@
364376 sharedstatedir = @sharedstatedir@
365377 srcdir = @srcdir@
430442 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/ui-utilcpp/Makefile'; \
431443 $(am__cd) $(top_srcdir) && \
432444 $(AUTOMAKE) --gnu src/ui-utilcpp/Makefile
433 .PRECIOUS: Makefile
434445 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
435446 @case '$?' in \
436447 *config.status*) \
839850 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
840851 uninstall-incHEADERS uninstall-libLTLIBRARIES
841852
853 .PRECIOUS: Makefile
854
842855
843856 # Tell versions [3.59,3.63) of GNU make to not export all variables.
844857 # Otherwise a system limit (for SysV at least) may be exceeded.
594594
595595 std::string Recoder::run(char const * const buf, size_t const bufSize) const
596596 {
597 std::auto_ptr<Conversion const> conv(make(buf, bufSize));
597 UI::auto_ptr<Conversion const> conv(make(buf, bufSize));
598598 return conv->getString();
599599 }
600600
601601 std::string Recoder::run(char const * const src) const
602602 {
603 std::auto_ptr<Conversion const> conv(make(src));
603 UI::auto_ptr<Conversion const> conv(make(src));
604604 return conv->getString();
605605 }
606606
607607 std::string Recoder::run(std::string const & src) const
608608 {
609 std::auto_ptr<Conversion const> conv(make(src.c_str(), src.size()));
609 UI::auto_ptr<Conversion const> conv(make(src.c_str(), src.size()));
610610 return conv->getString();
611611 }
612612
281281 return ret;
282282 }
283283
284 std::auto_ptr<unsigned char> XConversion::xorEncrypt(std::string const& message, std::string const& key, int* length)
284 UI::auto_ptr<unsigned char> XConversion::xorEncrypt(std::string const& message, std::string const& key, int* length)
285285 {
286286 unsigned char* result=0;
287287 int keyLen = key.size();
296296 if (j>=keyLen) j=0;
297297 }
298298 *length=i;
299 return std::auto_ptr<unsigned char>(result);
299 return UI::auto_ptr<unsigned char>(result);
300300 }
301301
302302 std::string XConversion::xorDecrypt(const unsigned char* message, const int length, std::string const& key) {
353353 return std::string(result.str());
354354 }
355355
356 std::auto_ptr<unsigned char> XConversion::base64Decode(std::string const& message, int* length) {
356 UI::auto_ptr<unsigned char> XConversion::base64Decode(std::string const& message, int* length) {
357357
358358 int ix = 0;
359359
387387 }
388388 }
389389 }
390 return std::auto_ptr<unsigned char>(result);
390 return UI::auto_ptr<unsigned char>(result);
391391 }
392392
393393 std::string md5sum(std::string const & data)
365365 *
366366 * @returns the encrypted message (binary)
367367 */
368 static std::auto_ptr<unsigned char> xorEncrypt(std::string const& message, std::string const& key, int* length);
368 static UI::auto_ptr<unsigned char> xorEncrypt(std::string const& message, std::string const& key, int* length);
369369
370370 /**
371371 * decrypt a message using xor and the given key
398398 *
399399 * @returns number decoded chars
400400 */
401 static std::auto_ptr<unsigned char> base64Decode(std::string const& message, int* length);
401 static UI::auto_ptr<unsigned char> base64Decode(std::string const& message, int* length);
402402 };
403403
404404 std::string md5sum(std::string const & data);
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616
1717 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
1929 am__make_running_with_option = \
2030 case $${target_option-} in \
2131 ?) ;; \
7989 build_triplet = @build@
8090 host_triplet = @host@
8191 subdir = src/ui-utilcpp/http
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/depcomp $(inc_HEADERS)
8492 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8593 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8694 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8795 $(ACLOCAL_M4)
96 DIST_COMMON = $(srcdir)/Makefile.am $(inc_HEADERS) $(am__DIST_COMMON)
8897 mkinstalldirs = $(install_sh) -d
8998 CONFIG_HEADER = $(top_builddir)/config.h
9099 CONFIG_CLEAN_FILES =
187196 done | $(am__uniquify_input)`
188197 ETAGS = etags
189198 CTAGS = ctags
199 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
190200 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
191201 ACLOCAL = @ACLOCAL@
192202 AMTAR = @AMTAR@
235245 LIPO = @LIPO@
236246 LN_S = @LN_S@
237247 LTLIBOBJS = @LTLIBOBJS@
248 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
238249 MAKEINFO = @MAKEINFO@
239250 MANIFEST_TOOL = @MANIFEST_TOOL@
240251 MKDIR_P = @MKDIR_P@
310321 prefix = @prefix@
311322 program_transform_name = @program_transform_name@
312323 psdir = @psdir@
324 runstatedir = @runstatedir@
313325 sbindir = @sbindir@
314326 sharedstatedir = @sharedstatedir@
315327 srcdir = @srcdir@
340352 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/ui-utilcpp/http/Makefile'; \
341353 $(am__cd) $(top_srcdir) && \
342354 $(AUTOMAKE) --gnu src/ui-utilcpp/http/Makefile
343 .PRECIOUS: Makefile
344355 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
345356 @case '$?' in \
346357 *config.status*) \
639650 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
640651 uninstall-incHEADERS
641652
653 .PRECIOUS: Makefile
654
642655
643656 # Tell versions [3.59,3.63) of GNU make to not export all variables.
644657 # Otherwise a system limit (for SysV at least) may be exceeded.