Codebase list mtdev / 5dfbacf
Imported Upstream version 1.1.2 Nobuhiro Iwamatsu 12 years ago
17 changed file(s) with 6782 addition(s) and 3807 deletion(s). Raw diff Collapse all Expand all
0 commit 5a6773f85a77e78dbbb915e32768aa24e1c83124
1 Author: Henrik Rydberg <rydberg@euromail.se>
2 Date: Mon Feb 20 16:03:05 2012 +0100
3
4 Release mtdev-1.1.2
5
6 Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
7
8 commit 43ce27aab2d990e9a4f54d2050b851bd2da01875
9 Author: Henrik Rydberg <rydberg@euromail.se>
10 Date: Thu Feb 16 16:25:30 2012 +0100
11
12 Add support for kernel MT slot state retrieval
13
14 From kernel 3.4, extraction of the MT slot state is supported
15 via the EVIOGMTSLOTS ioctl. This patch initializes the slots
16 using that information.
17
18 Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
19
20 commit 3ec66c3b21e45d6529567f5144ba24dcc4645591
21 Author: Henrik Rydberg <rydberg@euromail.se>
22 Date: Thu Jan 12 20:05:28 2012 +0100
23
24 Add the missing distance event to the internal slot representation
25
26 The new distance value was missing from the internal representation,
27 leading to memory corruption for devices supporting the event. Fixed
28 with this patch.
29
30 Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
31
32 commit 3aa3de4c19b80caaf93812fafff20acd5f5a4d12
33 Author: Peter Hutterer <peter.hutterer@who-t.net>
34 Date: Tue Apr 19 11:45:45 2011 +0200
35
36 Return EINVAL for invalid parameters on mtdev_init.
37
38 [rydberg@euromail.se: minor cleanup]
39 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
40 Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
41
42 commit 61684cf0466200631b6a44af1c662eb760ad3f5d
43 Author: Peter Hutterer <peter.hutterer@who-t.net>
44 Date: Tue Apr 19 11:41:04 2011 +0200
45
46 mtdev_close should ignore NULL devices.
47
48 Saves us one goto label in mtdev_init.
49
50 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
51 Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
52
053 commit 9e3daba37d1d15c99a41a2d838bf683934cc7077
154 Author: Henrik Rydberg <rydberg@euromail.se>
255 Date: Wed Dec 22 18:55:09 2010 +0100
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
8080 am__base_list = \
8181 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
8282 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
83 am__uninstall_files_from_dir = { \
84 test -z "$$files" \
85 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
86 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
87 $(am__cd) "$$dir" && rm -f $$files; }; \
88 }
8389 am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
8490 DATA = $(pkgconfig_DATA)
8591 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
94100 distdir = $(PACKAGE)-$(VERSION)
95101 top_distdir = $(distdir)
96102 am__remove_distdir = \
97 { test ! -d "$(distdir)" \
98 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
99 && rm -fr "$(distdir)"; }; }
103 if test -d "$(distdir)"; then \
104 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
105 && rm -rf "$(distdir)" \
106 || { sleep 5 && rm -rf "$(distdir)"; }; \
107 else :; fi
100108 am__relativize = \
101109 dir0=`pwd`; \
102110 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
125133 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
126134 GZIP_ENV = --best
127135 distuninstallcheck_listfiles = find . -type f -print
136 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
137 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
128138 distcleancheck_listfiles = find . -type f -print
129139 ACLOCAL = @ACLOCAL@
130140 AMTAR = @AMTAR@
141151 CYGPATH_W = @CYGPATH_W@
142152 DEFS = @DEFS@
143153 DEPDIR = @DEPDIR@
154 DLLTOOL = @DLLTOOL@
144155 DSYMUTIL = @DSYMUTIL@
145156 DUMPBIN = @DUMPBIN@
146157 ECHO_C = @ECHO_C@
166177 LTLIBOBJS = @LTLIBOBJS@
167178 MAINT = @MAINT@
168179 MAKEINFO = @MAKEINFO@
180 MANIFEST_TOOL = @MANIFEST_TOOL@
169181 MKDIR_P = @MKDIR_P@
170182 NM = @NM@
171183 NMEDIT = @NMEDIT@
191203 abs_srcdir = @abs_srcdir@
192204 abs_top_builddir = @abs_top_builddir@
193205 abs_top_srcdir = @abs_top_srcdir@
206 ac_ct_AR = @ac_ct_AR@
194207 ac_ct_CC = @ac_ct_CC@
195208 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
196209 am__include = @am__include@
223236 libexecdir = @libexecdir@
224237 localedir = @localedir@
225238 localstatedir = @localstatedir@
226 lt_ECHO = @lt_ECHO@
227239 mandir = @mandir@
228240 mkdir_p = @mkdir_p@
229241 oldincludedir = @oldincludedir@
247259 $(MAKE) $(AM_MAKEFLAGS) all-recursive
248260
249261 .SUFFIXES:
250 am--refresh:
262 am--refresh: Makefile
251263 @:
252264 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
253265 @for dep in $?; do \
283295 $(am__aclocal_m4_deps):
284296
285297 config.h: stamp-h1
286 @if test ! -f $@; then \
287 rm -f stamp-h1; \
288 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
289 else :; fi
298 @if test ! -f $@; then rm -f stamp-h1; else :; fi
299 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
290300
291301 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
292302 @rm -f stamp-h1
326336 @$(NORMAL_UNINSTALL)
327337 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
328338 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
329 test -n "$$files" || exit 0; \
330 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
331 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
339 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
332340
333341 # This directory's subdirectories are mostly independent; you can cd
334342 # into them and run `make' without going through this Makefile.
539547 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
540548 $(am__remove_distdir)
541549 dist-bzip2: distdir
542 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
550 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
551 $(am__remove_distdir)
552
553 dist-lzip: distdir
554 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
543555 $(am__remove_distdir)
544556
545557 dist-lzma: distdir
547559 $(am__remove_distdir)
548560
549561 dist-xz: distdir
550 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
562 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
551563 $(am__remove_distdir)
552564
553565 dist-tarZ: distdir
565577
566578 dist dist-all: distdir
567579 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
568 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
580 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
569581 $(am__remove_distdir)
570582
571583 # This target untars the dist file and tries a VPATH configuration. Then
579591 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
580592 *.tar.lzma*) \
581593 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
594 *.tar.lz*) \
595 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
582596 *.tar.xz*) \
583597 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
584598 *.tar.Z*) \
598612 && am__cwd=`pwd` \
599613 && $(am__cd) $(distdir)/_build \
600614 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
615 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
601616 $(DISTCHECK_CONFIGURE_FLAGS) \
602617 && $(MAKE) $(AM_MAKEFLAGS) \
603618 && $(MAKE) $(AM_MAKEFLAGS) dvi \
626641 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
627642 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
628643 distuninstallcheck:
629 @$(am__cd) '$(distuninstallcheck_dir)' \
630 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
644 @test -n '$(distuninstallcheck_dir)' || { \
645 echo 'ERROR: trying to run $@ with an empty' \
646 '$$(distuninstallcheck_dir)' >&2; \
647 exit 1; \
648 }; \
649 $(am__cd) '$(distuninstallcheck_dir)' || { \
650 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
651 exit 1; \
652 }; \
653 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
631654 || { echo "ERROR: files left after uninstall:" ; \
632655 if test -n "$(DESTDIR)"; then \
633656 echo " (check DESTDIR support)"; \
661684
662685 installcheck: installcheck-recursive
663686 install-strip:
664 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
665 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
666 `test -z '$(STRIP)' || \
667 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
687 if test -z '$(STRIP)'; then \
688 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
689 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
690 install; \
691 else \
692 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
693 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
694 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
695 fi
668696 mostlyclean-generic:
669697
670698 clean-generic:
752780 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
753781 all all-am am--refresh check check-am clean clean-generic \
754782 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
755 dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
756 dist-zip distcheck distclean distclean-generic distclean-hdr \
757 distclean-libtool distclean-tags distcleancheck distdir \
758 distuninstallcheck dvi dvi-am html html-am info info-am \
759 install install-am install-data install-data-am install-dvi \
760 install-dvi-am install-exec install-exec-am install-html \
761 install-html-am install-info install-info-am install-man \
762 install-pdf install-pdf-am install-pkgconfigDATA install-ps \
763 install-ps-am install-strip installcheck installcheck-am \
764 installdirs installdirs-am maintainer-clean \
783 dist-gzip dist-hook dist-lzip dist-lzma dist-shar dist-tarZ \
784 dist-xz dist-zip distcheck distclean distclean-generic \
785 distclean-hdr distclean-libtool distclean-tags distcleancheck \
786 distdir distuninstallcheck dvi dvi-am html html-am info \
787 info-am install install-am install-data install-data-am \
788 install-dvi install-dvi-am install-exec install-exec-am \
789 install-html install-html-am install-info install-info-am \
790 install-man install-pdf install-pdf-am install-pkgconfigDATA \
791 install-ps install-ps-am install-strip installcheck \
792 installcheck-am installdirs installdirs-am maintainer-clean \
765793 maintainer-clean-generic mostlyclean mostlyclean-generic \
766794 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
767795 uninstall uninstall-am uninstall-pkgconfigDATA
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
45 # This file is free software; the Free Software Foundation
56 # gives unlimited permission to copy and/or distribute it,
67 # with or without modifications, as long as this notice is preserved.
1213
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
16 [m4_warning([this file was generated for autoconf 2.67.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
1718 You have another version of autoconf. It may work, but is not guaranteed to.
1819 If you have problems, you may need to regenerate the build system entirely.
1920 To do so, use the procedure documented by the package, typically `autoreconf'.])])
2122 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2223 #
2324 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24 # 2006, 2007, 2008 Free Software Foundation, Inc.
25 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26 # Foundation, Inc.
2527 # Written by Gordon Matzigkeit, 1996
2628 #
2729 # This file is free software; the Free Software Foundation gives
3032
3133 m4_define([_LT_COPYING], [dnl
3234 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33 # 2006, 2007, 2008 Free Software Foundation, Inc.
35 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36 # Foundation, Inc.
3437 # Written by Gordon Matzigkeit, 1996
3538 #
3639 # This file is part of GNU Libtool.
5760 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5861 ])
5962
60 # serial 56 LT_INIT
63 # serial 57 LT_INIT
6164
6265
6366 # LT_PREREQ(VERSION)
8689 # ------------------
8790 AC_DEFUN([LT_INIT],
8891 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
92 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
8993 AC_BEFORE([$0], [LT_LANG])dnl
9094 AC_BEFORE([$0], [LT_OUTPUT])dnl
9195 AC_BEFORE([$0], [LTDL_INIT])dnl
101105 AC_REQUIRE([LTVERSION_VERSION])dnl
102106 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
103107 m4_require([_LT_PROG_LTMAIN])dnl
108
109 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
104110
105111 dnl Parse OPTIONS
106112 _LT_SET_OPTIONS([$0], [$1])
138144 *) break;;
139145 esac
140146 done
141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
142148 ])
143149
144150
158164 m4_defun([_LT_SETUP],
159165 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
160166 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
167 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
168 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
169
170 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
171 dnl
161172 _LT_DECL([], [host_alias], [0], [The host system])dnl
162173 _LT_DECL([], [host], [0])dnl
163174 _LT_DECL([], [host_os], [0])dnl
180191 dnl
181192 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
182193 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
194 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
183195 m4_require([_LT_CMD_RELOAD])dnl
184196 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
197 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
185198 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186199 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
200 m4_require([_LT_WITH_SYSROOT])dnl
187201
188202 _LT_CONFIG_LIBTOOL_INIT([
189203 # See if we are running on zsh, and set the options which allow our
199213 _LT_CHECK_OBJDIR
200214
201215 m4_require([_LT_TAG_COMPILER])dnl
202 _LT_PROG_ECHO_BACKSLASH
203216
204217 case $host_os in
205218 aix3*)
213226 ;;
214227 esac
215228
216 # Sed substitution that helps us do robust quoting. It backslashifies
217 # metacharacters that are still active within double-quoted strings.
218 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
219
220 # Same as above, but do not quote variable references.
221 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
222
223 # Sed substitution to delay expansion of an escaped shell variable in a
224 # double_quote_subst'ed string.
225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
226
227 # Sed substitution to delay expansion of an escaped single quote.
228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
229
230 # Sed substitution to avoid accidental globbing in evaled expressions
231 no_glob_subst='s/\*/\\\*/g'
232
233229 # Global variables:
234230 ofile=libtool
235231 can_build_shared=yes
269265 _LT_CONFIG_COMMANDS
270266 ])# _LT_SETUP
271267
268
269 # _LT_PREPARE_SED_QUOTE_VARS
270 # --------------------------
271 # Define a few sed substitution that help us do robust quoting.
272 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
273 [# Backslashify metacharacters that are still active within
274 # double-quoted strings.
275 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
276
277 # Same as above, but do not quote variable references.
278 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
279
280 # Sed substitution to delay expansion of an escaped shell variable in a
281 # double_quote_subst'ed string.
282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
283
284 # Sed substitution to delay expansion of an escaped single quote.
285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
286
287 # Sed substitution to avoid accidental globbing in evaled expressions
288 no_glob_subst='s/\*/\\\*/g'
289 ])
272290
273291 # _LT_PROG_LTMAIN
274292 # ---------------
422440 # declaration there will have the same value as in `configure'. VARNAME
423441 # must have a single quote delimited value for this to work.
424442 m4_define([_LT_CONFIG_STATUS_DECLARE],
425 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
443 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
426444
427445
428446 # _LT_CONFIG_STATUS_DECLARATIONS
432450 # embedded single quotes properly. In configure, this macro expands
433451 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
434452 #
435 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
453 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
436454 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
437455 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
438456 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
531549 LTCFLAGS='$LTCFLAGS'
532550 compiler='$compiler_DEFAULT'
533551
552 # A function that is used when there is no print builtin or printf.
553 func_fallback_echo ()
554 {
555 eval 'cat <<_LTECHO_EOF
556 \$[]1
557 _LTECHO_EOF'
558 }
559
534560 # Quote evaled strings.
535561 for var in lt_decl_all_varnames([[ \
536562 ]], lt_decl_quote_varnames); do
537 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
538564 *[[\\\\\\\`\\"\\\$]]*)
539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
540566 ;;
541567 *)
542568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
547573 # Double-quote double-evaled strings.
548574 for var in lt_decl_all_varnames([[ \
549575 ]], lt_decl_dquote_varnames); do
550 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
551577 *[[\\\\\\\`\\"\\\$]]*)
552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
553579 ;;
554580 *)
555581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
557583 esac
558584 done
559585
560 # Fix-up fallback echo if it was mangled by the above quoting rules.
561 case \$lt_ECHO in
562 *'\\\[$]0 --fallback-echo"')dnl "
563 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
564 ;;
565 esac
566
567586 _LT_OUTPUT_LIBTOOL_INIT
568587 ])
569588
589 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
590 # ------------------------------------
591 # Generate a child script FILE with all initialization necessary to
592 # reuse the environment learned by the parent script, and make the
593 # file executable. If COMMENT is supplied, it is inserted after the
594 # `#!' sequence but before initialization text begins. After this
595 # macro, additional text can be appended to FILE to form the body of
596 # the child script. The macro ends with non-zero status if the
597 # file could not be fully written (such as if the disk is full).
598 m4_ifdef([AS_INIT_GENERATED],
599 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
600 [m4_defun([_LT_GENERATED_FILE_INIT],
601 [m4_require([AS_PREPARE])]dnl
602 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
603 [lt_write_fail=0
604 cat >$1 <<_ASEOF || lt_write_fail=1
605 #! $SHELL
606 # Generated by $as_me.
607 $2
608 SHELL=\${CONFIG_SHELL-$SHELL}
609 export SHELL
610 _ASEOF
611 cat >>$1 <<\_ASEOF || lt_write_fail=1
612 AS_SHELL_SANITIZE
613 _AS_PREPARE
614 exec AS_MESSAGE_FD>&1
615 _ASEOF
616 test $lt_write_fail = 0 && chmod +x $1[]dnl
617 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
570618
571619 # LT_OUTPUT
572620 # ---------
576624 AC_DEFUN([LT_OUTPUT],
577625 [: ${CONFIG_LT=./config.lt}
578626 AC_MSG_NOTICE([creating $CONFIG_LT])
579 cat >"$CONFIG_LT" <<_LTEOF
580 #! $SHELL
581 # Generated by $as_me.
582 # Run this file to recreate a libtool stub with the current configuration.
583
627 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
628 [# Run this file to recreate a libtool stub with the current configuration.])
629
630 cat >>"$CONFIG_LT" <<\_LTEOF
584631 lt_cl_silent=false
585 SHELL=\${CONFIG_SHELL-$SHELL}
586 _LTEOF
587
588 cat >>"$CONFIG_LT" <<\_LTEOF
589 AS_SHELL_SANITIZE
590 _AS_PREPARE
591
592 exec AS_MESSAGE_FD>&1
593632 exec AS_MESSAGE_LOG_FD>>config.log
594633 {
595634 echo
615654 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
616655 configured by $[0], generated by m4_PACKAGE_STRING.
617656
618 Copyright (C) 2008 Free Software Foundation, Inc.
657 Copyright (C) 2011 Free Software Foundation, Inc.
619658 This config.lt script is free software; the Free Software Foundation
620659 gives unlimited permision to copy, distribute and modify it."
621660
660699 # appending to config.log, which fails on DOS, as config.log is still kept
661700 # open by configure. Here we exec the FD to /dev/null, effectively closing
662701 # config.log, so it can be properly (re)opened and appended to by config.lt.
663 if test "$no_create" != yes; then
664 lt_cl_success=:
665 test "$silent" = yes &&
666 lt_config_lt_args="$lt_config_lt_args --quiet"
667 exec AS_MESSAGE_LOG_FD>/dev/null
668 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 exec AS_MESSAGE_LOG_FD>>config.log
670 $lt_cl_success || AS_EXIT(1)
671 fi
702 lt_cl_success=:
703 test "$silent" = yes &&
704 lt_config_lt_args="$lt_config_lt_args --quiet"
705 exec AS_MESSAGE_LOG_FD>/dev/null
706 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
707 exec AS_MESSAGE_LOG_FD>>config.log
708 $lt_cl_success || AS_EXIT(1)
672709 ])# LT_OUTPUT
673710
674711
731768 # if finds mixed CR/LF and LF-only lines. Since sed operates in
732769 # text mode, it properly converts lines to CR/LF. This bash problem
733770 # is reportedly fixed, but why not run on old versions too?
734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
735 || (rm -f "$cfgfile"; exit 1)
736
737 _LT_PROG_XSI_SHELLFNS
738
739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
740 || (rm -f "$cfgfile"; exit 1)
741
742 mv -f "$cfgfile" "$ofile" ||
771 sed '$q' "$ltmain" >> "$cfgfile" \
772 || (rm -f "$cfgfile"; exit 1)
773
774 _LT_PROG_REPLACE_SHELLFNS
775
776 mv -f "$cfgfile" "$ofile" ||
743777 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
744778 chmod +x "$ofile"
745779 ],
784818 m4_case([$1],
785819 [C], [_LT_LANG(C)],
786820 [C++], [_LT_LANG(CXX)],
821 [Go], [_LT_LANG(GO)],
787822 [Java], [_LT_LANG(GCJ)],
788823 [Fortran 77], [_LT_LANG(F77)],
789824 [Fortran], [_LT_LANG(FC)],
803838 m4_define([_LT_LANG_]$1[_enabled], [])dnl
804839 _LT_LANG_$1_CONFIG($1)])dnl
805840 ])# _LT_LANG
841
842
843 m4_ifndef([AC_PROG_GO], [
844 # NOTE: This macro has been submitted for inclusion into #
845 # GNU Autoconf as AC_PROG_GO. When it is available in #
846 # a released version of Autoconf we should remove this #
847 # macro and use it instead. #
848 m4_defun([AC_PROG_GO],
849 [AC_LANG_PUSH(Go)dnl
850 AC_ARG_VAR([GOC], [Go compiler command])dnl
851 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
852 _AC_ARG_VAR_LDFLAGS()dnl
853 AC_CHECK_TOOL(GOC, gccgo)
854 if test -z "$GOC"; then
855 if test -n "$ac_tool_prefix"; then
856 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
857 fi
858 fi
859 if test -z "$GOC"; then
860 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
861 fi
862 ])#m4_defun
863 ])#m4_ifndef
806864
807865
808866 # _LT_LANG_DEFAULT_CONFIG
835893 m4_ifdef([LT_PROG_GCJ],
836894 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
837895
896 AC_PROVIDE_IFELSE([AC_PROG_GO],
897 [LT_LANG(GO)],
898 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
899
838900 AC_PROVIDE_IFELSE([LT_PROG_RC],
839901 [LT_LANG(RC)],
840902 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
845907 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
846908 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
847909 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
910 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
848911 dnl aclocal-1.4 backwards compatibility:
849912 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
850913 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
851914 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
852915 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
916 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
853917
854918
855919 # _LT_TAG_COMPILER
935999 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9361000 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9371001 _lt_result=$?
938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1002 # If there is a non-empty error log, and "single_module"
1003 # appears in it, assume the flag caused a linker warning
1004 if test -s conftest.err && $GREP single_module conftest.err; then
1005 cat conftest.err >&AS_MESSAGE_LOG_FD
1006 # Otherwise, if the output was created with a 0 exit code from
1007 # the compiler, it worked.
1008 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9391009 lt_cv_apple_cc_single_mod=yes
9401010 else
9411011 cat conftest.err >&AS_MESSAGE_LOG_FD
9431013 rm -rf libconftest.dylib*
9441014 rm -f conftest.*
9451015 fi])
1016
9461017 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
9471018 [lt_cv_ld_exported_symbols_list],
9481019 [lt_cv_ld_exported_symbols_list=no
9531024 [lt_cv_ld_exported_symbols_list=yes],
9541025 [lt_cv_ld_exported_symbols_list=no])
9551026 LDFLAGS="$save_LDFLAGS"
1027 ])
1028
1029 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1030 [lt_cv_ld_force_load=no
1031 cat > conftest.c << _LT_EOF
1032 int forced_loaded() { return 2;}
1033 _LT_EOF
1034 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1035 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1036 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1037 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1038 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1039 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1040 cat > conftest.c << _LT_EOF
1041 int main() { return 0;}
1042 _LT_EOF
1043 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1044 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1045 _lt_result=$?
1046 if test -s conftest.err && $GREP force_load conftest.err; then
1047 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
1049 lt_cv_ld_force_load=yes
1050 else
1051 cat conftest.err >&AS_MESSAGE_LOG_FD
1052 fi
1053 rm -f conftest.err libconftest.a conftest conftest.c
1054 rm -rf conftest.dSYM
9561055 ])
9571056 case $host_os in
9581057 rhapsody* | darwin1.[[012]])
9811080 else
9821081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9831082 fi
984 if test "$DSYMUTIL" != ":"; then
1083 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9851084 _lt_dsymutil='~$DSYMUTIL $lib || :'
9861085 else
9871086 _lt_dsymutil=
9911090 ])
9921091
9931092
994 # _LT_DARWIN_LINKER_FEATURES
995 # --------------------------
1093 # _LT_DARWIN_LINKER_FEATURES([TAG])
1094 # ---------------------------------
9961095 # Checks for linker and compiler features on darwin
9971096 m4_defun([_LT_DARWIN_LINKER_FEATURES],
9981097 [
10011100 _LT_TAGVAR(hardcode_direct, $1)=no
10021101 _LT_TAGVAR(hardcode_automatic, $1)=yes
10031102 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1004 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
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\"`'
1105 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1106 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1107 else
1108 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1109 fi
10051110 _LT_TAGVAR(link_all_deplibs, $1)=yes
10061111 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
10071112 case $cc_basename in
10091114 *) _lt_dar_can_shared=$GCC ;;
10101115 esac
10111116 if test "$_lt_dar_can_shared" = "yes"; then
1012 output_verbose_link_cmd=echo
1117 output_verbose_link_cmd=func_echo_all
10131118 _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}"
10141119 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10151120 _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}"
10251130 fi
10261131 ])
10271132
1028 # _LT_SYS_MODULE_PATH_AIX
1029 # -----------------------
1133 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1134 # ----------------------------------
10301135 # Links a minimal program and checks the executable
10311136 # for the system default hardcoded library path. In most cases,
10321137 # this is /usr/lib:/lib, but when the MPI compilers are used
10331138 # the location of the communication and MPI libs are included too.
10341139 # If we don't find anything, use the default library path according
10351140 # to the aix ld manual.
1141 # Store the results from the different compilers for each TAGNAME.
1142 # Allow to override them for all tags through lt_cv_aix_libpath.
10361143 m4_defun([_LT_SYS_MODULE_PATH_AIX],
10371144 [m4_require([_LT_DECL_SED])dnl
1038 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1039 lt_aix_libpath_sed='
1040 /Import File Strings/,/^$/ {
1041 /^0/ {
1042 s/^0 *\(.*\)$/\1/
1043 p
1044 }
1045 }'
1046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1047 # Check for a 64-bit object if we didn't find anything.
1048 if test -z "$aix_libpath"; then
1049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1050 fi],[])
1051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1145 if test "${lt_cv_aix_libpath+set}" = set; then
1146 aix_libpath=$lt_cv_aix_libpath
1147 else
1148 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1149 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1150 lt_aix_libpath_sed='[
1151 /Import File Strings/,/^$/ {
1152 /^0/ {
1153 s/^0 *\([^ ]*\) *$/\1/
1154 p
1155 }
1156 }]'
1157 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1158 # Check for a 64-bit object if we didn't find anything.
1159 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1160 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1161 fi],[])
1162 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1163 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1164 fi
1165 ])
1166 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1167 fi
10521168 ])# _LT_SYS_MODULE_PATH_AIX
10531169
10541170
10551171 # _LT_SHELL_INIT(ARG)
10561172 # -------------------
10571173 m4_define([_LT_SHELL_INIT],
1058 [ifdef([AC_DIVERSION_NOTICE],
1059 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1060 [AC_DIVERT_PUSH(NOTICE)])
1061 $1
1062 AC_DIVERT_POP
1063 ])# _LT_SHELL_INIT
1174 [m4_divert_text([M4SH-INIT], [$1
1175 ])])# _LT_SHELL_INIT
1176
10641177
10651178
10661179 # _LT_PROG_ECHO_BACKSLASH
10671180 # -----------------------
1068 # Add some code to the start of the generated configure script which
1069 # will find an echo command which doesn't interpret backslashes.
1181 # Find how we can fake an echo command that does not interpret backslash.
1182 # 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).
10701185 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1071 [_LT_SHELL_INIT([
1072 # Check that we are running under the correct shell.
1073 SHELL=${CONFIG_SHELL-/bin/sh}
1074
1075 case X$lt_ECHO in
1076 X*--fallback-echo)
1077 # Remove one level of quotation (which was required for Make).
1078 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1079 ;;
1186 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1189
1190 AC_MSG_CHECKING([how to print strings])
1191 # Test print first, because it will be a builtin if present.
1192 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1194 ECHO='print -r --'
1195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1196 ECHO='printf %s\n'
1197 else
1198 # Use this function as a fallback that always works.
1199 func_fallback_echo ()
1200 {
1201 eval 'cat <<_LTECHO_EOF
1202 $[]1
1203 _LTECHO_EOF'
1204 }
1205 ECHO='func_fallback_echo'
1206 fi
1207
1208 # func_echo_all arg...
1209 # Invoke $ECHO with all args, space-separated.
1210 func_echo_all ()
1211 {
1212 $ECHO "$*"
1213 }
1214
1215 case "$ECHO" in
1216 printf*) AC_MSG_RESULT([printf]) ;;
1217 print*) AC_MSG_RESULT([print -r]) ;;
1218 *) AC_MSG_RESULT([cat]) ;;
10801219 esac
10811220
1082 ECHO=${lt_ECHO-echo}
1083 if test "X[$]1" = X--no-reexec; then
1084 # Discard the --no-reexec flag, and continue.
1085 shift
1086 elif test "X[$]1" = X--fallback-echo; then
1087 # Avoid inline document here, it may be left over
1088 :
1089 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1090 # Yippee, $ECHO works!
1091 :
1092 else
1093 # Restart under the correct shell.
1094 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1095 fi
1096
1097 if test "X[$]1" = X--fallback-echo; then
1098 # used as fallback echo
1099 shift
1100 cat <<_LT_EOF
1101 [$]*
1102 _LT_EOF
1103 exit 0
1104 fi
1105
1106 # The HP-UX ksh and POSIX shell print the target directory to stdout
1107 # if CDPATH is set.
1108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1109
1110 if test -z "$lt_ECHO"; then
1111 if test "X${echo_test_string+set}" != Xset; then
1112 # find a string as large as possible, as long as the shell can cope with it
1113 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1114 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1115 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1116 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1117 then
1118 break
1119 fi
1120 done
1121 fi
1122
1123 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 :
1127 else
1128 # The Solaris, AIX, and Digital Unix default echo programs unquote
1129 # backslashes. This makes it impossible to quote backslashes using
1130 # echo "$something" | sed 's/\\/\\\\/g'
1131 #
1132 # So, first we look for a working echo in the user's PATH.
1133
1134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1135 for dir in $PATH /usr/ucb; do
1136 IFS="$lt_save_ifs"
1137 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1138 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1139 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1140 test "X$echo_testing_string" = "X$echo_test_string"; then
1141 ECHO="$dir/echo"
1142 break
1143 fi
1144 done
1145 IFS="$lt_save_ifs"
1146
1147 if test "X$ECHO" = Xecho; then
1148 # We didn't find a better echo, so look for alternatives.
1149 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1150 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1151 test "X$echo_testing_string" = "X$echo_test_string"; then
1152 # This shell has a builtin print -r that does the trick.
1153 ECHO='print -r'
1154 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1155 test "X$CONFIG_SHELL" != X/bin/ksh; then
1156 # If we have ksh, try running configure again with it.
1157 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1158 export ORIGINAL_CONFIG_SHELL
1159 CONFIG_SHELL=/bin/ksh
1160 export CONFIG_SHELL
1161 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1162 else
1163 # Try using printf.
1164 ECHO='printf %s\n'
1165 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1166 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1167 test "X$echo_testing_string" = "X$echo_test_string"; then
1168 # Cool, printf works
1169 :
1170 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1171 test "X$echo_testing_string" = 'X\t' &&
1172 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1173 test "X$echo_testing_string" = "X$echo_test_string"; then
1174 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1175 export CONFIG_SHELL
1176 SHELL="$CONFIG_SHELL"
1177 export SHELL
1178 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1179 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1180 test "X$echo_testing_string" = 'X\t' &&
1181 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1182 test "X$echo_testing_string" = "X$echo_test_string"; then
1183 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1184 else
1185 # maybe with a smaller string...
1186 prev=:
1187
1188 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1189 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1190 then
1191 break
1192 fi
1193 prev="$cmd"
1194 done
1195
1196 if test "$prev" != 'sed 50q "[$]0"'; then
1197 echo_test_string=`eval $prev`
1198 export echo_test_string
1199 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1200 else
1201 # Oops. We lost completely, so just stick with echo.
1202 ECHO=echo
1203 fi
1204 fi
1205 fi
1206 fi
1207 fi
1208 fi
1209
1210 # Copy echo and quote the copy suitably for passing to libtool from
1211 # the Makefile, instead of quoting the original, which is used later.
1212 lt_ECHO=$ECHO
1213 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1214 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1215 fi
1216
1217 AC_SUBST(lt_ECHO)
1218 ])
1221 m4_ifdef([_AS_DETECT_SUGGESTED],
1222 [_AS_DETECT_SUGGESTED([
1223 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1227 PATH=/empty FPATH=/empty; export PATH FPATH
1228 test "X`printf %s $ECHO`" = "X$ECHO" \
1229 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1230
12191231 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1220 _LT_DECL([], [ECHO], [1],
1221 [An echo program that does not interpret backslashes])
1232 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
12221233 ])# _LT_PROG_ECHO_BACKSLASH
12231234
1235
1236 # _LT_WITH_SYSROOT
1237 # ----------------
1238 AC_DEFUN([_LT_WITH_SYSROOT],
1239 [AC_MSG_CHECKING([for sysroot])
1240 AC_ARG_WITH([sysroot],
1241 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1242 (or the compiler's sysroot if not specified).],
1243 [], [with_sysroot=no])
1244
1245 dnl lt_sysroot will always be passed unquoted. We quote it here
1246 dnl in case the user passed a directory name.
1247 lt_sysroot=
1248 case ${with_sysroot} in #(
1249 yes)
1250 if test "$GCC" = yes; then
1251 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1252 fi
1253 ;; #(
1254 /*)
1255 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1256 ;; #(
1257 no|'')
1258 ;; #(
1259 *)
1260 AC_MSG_RESULT([${with_sysroot}])
1261 AC_MSG_ERROR([The sysroot must be an absolute path.])
1262 ;;
1263 esac
1264
1265 AC_MSG_RESULT([${lt_sysroot:-no}])
1266 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1267 [dependent libraries, and in which our libraries should be installed.])])
12241268
12251269 # _LT_ENABLE_LOCK
12261270 # ---------------
12501294 ;;
12511295 *-*-irix6*)
12521296 # Find out which ABI we are using.
1253 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1297 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12541298 if AC_TRY_EVAL(ac_compile); then
12551299 if test "$lt_cv_prog_gnu_ld" = yes; then
12561300 case `/usr/bin/file conftest.$ac_objext` in
13431387 CFLAGS="$SAVE_CFLAGS"
13441388 fi
13451389 ;;
1346 sparc*-*solaris*)
1390 *-*solaris*)
13471391 # Find out which ABI we are using.
13481392 echo 'int i;' > conftest.$ac_ext
13491393 if AC_TRY_EVAL(ac_compile); then
13501394 case `/usr/bin/file conftest.o` in
13511395 *64-bit*)
13521396 case $lt_cv_prog_gnu_ld in
1353 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1397 yes*)
1398 case $host in
1399 i?86-*-solaris*)
1400 LD="${LD-ld} -m elf_x86_64"
1401 ;;
1402 sparc*-*-solaris*)
1403 LD="${LD-ld} -m elf64_sparc"
1404 ;;
1405 esac
1406 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1407 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1408 LD="${LD-ld}_sol2"
1409 fi
1410 ;;
13541411 *)
13551412 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13561413 LD="${LD-ld} -64"
13681425 ])# _LT_ENABLE_LOCK
13691426
13701427
1428 # _LT_PROG_AR
1429 # -----------
1430 m4_defun([_LT_PROG_AR],
1431 [AC_CHECK_TOOLS(AR, [ar], false)
1432 : ${AR=ar}
1433 : ${AR_FLAGS=cru}
1434 _LT_DECL([], [AR], [1], [The archiver])
1435 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1436
1437 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1438 [lt_cv_ar_at_file=no
1439 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1440 [echo conftest.$ac_objext > conftest.lst
1441 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1442 AC_TRY_EVAL([lt_ar_try])
1443 if test "$ac_status" -eq 0; then
1444 # Ensure the archiver fails upon bogus file names.
1445 rm -f conftest.$ac_objext libconftest.a
1446 AC_TRY_EVAL([lt_ar_try])
1447 if test "$ac_status" -ne 0; then
1448 lt_cv_ar_at_file=@
1449 fi
1450 fi
1451 rm -f conftest.* libconftest.a
1452 ])
1453 ])
1454
1455 if test "x$lt_cv_ar_at_file" = xno; then
1456 archiver_list_spec=
1457 else
1458 archiver_list_spec=$lt_cv_ar_at_file
1459 fi
1460 _LT_DECL([], [archiver_list_spec], [1],
1461 [How to feed a file listing to the archiver])
1462 ])# _LT_PROG_AR
1463
1464
13711465 # _LT_CMD_OLD_ARCHIVE
13721466 # -------------------
13731467 m4_defun([_LT_CMD_OLD_ARCHIVE],
1374 [AC_CHECK_TOOL(AR, ar, false)
1375 test -z "$AR" && AR=ar
1376 test -z "$AR_FLAGS" && AR_FLAGS=cru
1377 _LT_DECL([], [AR], [1], [The archiver])
1378 _LT_DECL([], [AR_FLAGS], [1])
1468 [_LT_PROG_AR
13791469
13801470 AC_CHECK_TOOL(STRIP, strip, :)
13811471 test -z "$STRIP" && STRIP=:
13941484 if test -n "$RANLIB"; then
13951485 case $host_os in
13961486 openbsd*)
1397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13981488 ;;
13991489 *)
1400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14011491 ;;
14021492 esac
1403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1493 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14041494 fi
1495
1496 case $host_os in
1497 darwin*)
1498 lock_old_archive_extraction=yes ;;
1499 *)
1500 lock_old_archive_extraction=no ;;
1501 esac
14051502 _LT_DECL([], [old_postinstall_cmds], [2])
14061503 _LT_DECL([], [old_postuninstall_cmds], [2])
14071504 _LT_TAGDECL([], [old_archive_cmds], [2],
14081505 [Commands used to build an old-style archive])
1506 _LT_DECL([], [lock_old_archive_extraction], [0],
1507 [Whether to use a lock for old archive extraction])
14091508 ])# _LT_CMD_OLD_ARCHIVE
14101509
14111510
14301529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14311530 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14321531 -e 's:$: $lt_compiler_flag:'`
1433 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14341533 (eval "$lt_compile" 2>conftest.err)
14351534 ac_status=$?
14361535 cat conftest.err >&AS_MESSAGE_LOG_FD
1437 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1536 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14381537 if (exit $ac_status) && test -s "$ac_outfile"; then
14391538 # The compiler can only warn and ignore the option if not recognized
14401539 # So say no if there are warnings other than the usual output.
1441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14421541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14431542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14441543 $2=yes
14781577 if test -s conftest.err; then
14791578 # Append any errors to the config.log.
14801579 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1481 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14821581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14831582 if diff conftest.exp conftest.er2 >/dev/null; then
14841583 $2=yes
15381637 # the test eventually succeeds (with a max line length of 256k).
15391638 # Instead, let's just punt: use the minimum linelength reported by
15401639 # all of the supported platforms: 8192 (on NT/2K/XP).
1640 lt_cv_sys_max_cmd_len=8192;
1641 ;;
1642
1643 mint*)
1644 # On MiNT this can take a long time and run out of memory.
15411645 lt_cv_sys_max_cmd_len=8192;
15421646 ;;
15431647
15641668 interix*)
15651669 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15661670 lt_cv_sys_max_cmd_len=196608
1671 ;;
1672
1673 os2*)
1674 # The test takes a long time on OS/2.
1675 lt_cv_sys_max_cmd_len=8192
15671676 ;;
15681677
15691678 osf*)
16051714 # If test is not a shell built-in, we'll probably end up computing a
16061715 # maximum length that is only half of the actual maximum length, but
16071716 # we can't tell.
1608 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1609 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1717 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1718 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16101719 test $i != 17 # 1/2 MB should be enough
16111720 do
16121721 i=`expr $i + 1`
16571766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16581767 lt_status=$lt_dlunknown
16591768 cat > conftest.$ac_ext <<_LT_EOF
1660 [#line __oline__ "configure"
1769 [#line $LINENO "configure"
16611770 #include "confdefs.h"
16621771
16631772 #if HAVE_DLFCN_H
16981807 # endif
16991808 #endif
17001809
1701 void fnord() { int i=42;}
1810 /* When -fvisbility=hidden is used, assume the code has been annotated
1811 correspondingly for the symbols needed. */
1812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1813 int fnord () __attribute__((visibility("default")));
1814 #endif
1815
1816 int fnord () { return 42; }
17021817 int main ()
17031818 {
17041819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17071822 if (self)
17081823 {
17091824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1825 else
1826 {
1827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1828 else puts (dlerror ());
1829 }
17111830 /* dlclose (self); */
17121831 }
17131832 else
18832002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18842003 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
18852004 -e 's:$: $lt_compiler_flag:'`
1886 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
18872006 (eval "$lt_compile" 2>out/conftest.err)
18882007 ac_status=$?
18892008 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1890 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
18912010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18922011 then
18932012 # The compiler can only warn and ignore the option if not recognized
18942013 # So say no if there are warnings
1895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18962015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18972016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18982017 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
20512170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20522171 m4_require([_LT_DECL_OBJDUMP])dnl
20532172 m4_require([_LT_DECL_SED])dnl
2173 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
20542174 AC_MSG_CHECKING([dynamic linker characteristics])
20552175 m4_if([$1],
20562176 [], [
20592179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20602180 *) lt_awk_arg="/^libraries:/" ;;
20612181 esac
2062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2063 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2182 case $host_os in
2183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2184 *) lt_sed_strip_eq="s,=/,/,g" ;;
2185 esac
2186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2187 case $lt_search_path_spec in
2188 *\;*)
20642189 # if the path contains ";" then we assume it to be the separator
20652190 # otherwise default to the standard path separator (i.e. ":") - it is
20662191 # assumed that no part of a normal pathname contains ";" but that should
20672192 # okay in the real world where ";" in dirpaths is itself problematic.
2068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2069 else
2070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2071 fi
2193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2194 ;;
2195 *)
2196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2197 ;;
2198 esac
20722199 # Ok, now we have the path, separated by spaces, we can step through it
20732200 # and add multilib dir if necessary.
20742201 lt_tmp_lt_search_path_spec=
20812208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20822209 fi
20832210 done
2084 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2211 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20852212 BEGIN {RS=" "; FS="/|\n";} {
20862213 lt_foo="";
20872214 lt_count=0;
21012228 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
21022229 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
21032230 }'`
2104 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2231 # AWK program above erroneously prepends '/' to C:/dos/paths
2232 # for these hosts.
2233 case $host_os in
2234 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2235 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2236 esac
2237 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21052238 else
21062239 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21072240 fi])
21272260
21282261 case $host_os in
21292262 aix3*)
2130 version_type=linux
2263 version_type=linux # correct to gnu/linux during the next big refactor
21312264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21322265 shlibpath_var=LIBPATH
21332266
21362269 ;;
21372270
21382271 aix[[4-9]]*)
2139 version_type=linux
2272 version_type=linux # correct to gnu/linux during the next big refactor
21402273 need_lib_prefix=no
21412274 need_version=no
21422275 hardcode_into_libs=yes
21892322 m68k)
21902323 library_names_spec='$libname.ixlibrary $libname.a'
21912324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2192 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2325 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21932326 ;;
21942327 esac
21952328 ;;
22012334 ;;
22022335
22032336 bsdi[[45]]*)
2204 version_type=linux
2337 version_type=linux # correct to gnu/linux during the next big refactor
22052338 need_version=no
22062339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22072340 soname_spec='${libname}${release}${shared_ext}$major'
22202353 need_version=no
22212354 need_lib_prefix=no
22222355
2223 case $GCC,$host_os in
2224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2356 case $GCC,$cc_basename in
2357 yes,*)
2358 # gcc
22252359 library_names_spec='$libname.dll.a'
22262360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22272361 postinstall_cmds='base_file=`basename \${file}`~
22422376 cygwin*)
22432377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22442378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2379 m4_if([$1], [],[
2380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
22462381 ;;
22472382 mingw* | cegcc*)
22482383 # MinGW DLLs use traditional 'lib' prefix
22492384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2250 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2251 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2252 # It is most probably a Windows format PATH printed by
2253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2254 # path with ; separators, and with drive letters. We can handle the
2255 # drive letters (cygwin fileutils understands them), so leave them,
2256 # especially as we might pass files found there to a mingw objdump,
2257 # which wouldn't understand a cygwinified path. Ahh.
2258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2259 else
2260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2261 fi
22622385 ;;
22632386 pw32*)
22642387 # pw32 DLLs use 'pw' prefix rather than 'lib'
22652388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22662389 ;;
22672390 esac
2391 dynamic_linker='Win32 ld.exe'
22682392 ;;
22692393
2394 *,cl*)
2395 # Native MSVC
2396 libname_spec='$name'
2397 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2398 library_names_spec='${libname}.dll.lib'
2399
2400 case $build_os in
2401 mingw*)
2402 sys_lib_search_path_spec=
2403 lt_save_ifs=$IFS
2404 IFS=';'
2405 for lt_path in $LIB
2406 do
2407 IFS=$lt_save_ifs
2408 # Let DOS variable expansion print the short 8.3 style file name.
2409 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2410 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2411 done
2412 IFS=$lt_save_ifs
2413 # Convert to MSYS style.
2414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2415 ;;
2416 cygwin*)
2417 # Convert to unix form, then to dos form, then back to unix form
2418 # but this time dos style (no spaces!) so that the unix form looks
2419 # like /cygdrive/c/PROGRA~1:/cygdr...
2420 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2421 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2422 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2423 ;;
2424 *)
2425 sys_lib_search_path_spec="$LIB"
2426 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2427 # It is most probably a Windows format PATH.
2428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2429 else
2430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2431 fi
2432 # FIXME: find the short name or the path components, as spaces are
2433 # common. (e.g. "Program Files" -> "PROGRA~1")
2434 ;;
2435 esac
2436
2437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2438 postinstall_cmds='base_file=`basename \${file}`~
2439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2440 dldir=$destdir/`dirname \$dlpath`~
2441 test -d \$dldir || mkdir -p \$dldir~
2442 $install_prog $dir/$dlname \$dldir/$dlname'
2443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2444 dlpath=$dir/\$dldll~
2445 $RM \$dlpath'
2446 shlibpath_overrides_runpath=yes
2447 dynamic_linker='Win32 link.exe'
2448 ;;
2449
22702450 *)
2451 # Assume MSVC wrapper
22712452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2453 dynamic_linker='Win32 ld.exe'
22722454 ;;
22732455 esac
2274 dynamic_linker='Win32 ld.exe'
22752456 # FIXME: first we should search . and the directory the executable is in
22762457 shlibpath_var=PATH
22772458 ;;
22922473 ;;
22932474
22942475 dgux*)
2295 version_type=linux
2476 version_type=linux # correct to gnu/linux during the next big refactor
22962477 need_lib_prefix=no
22972478 need_version=no
22982479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22992480 soname_spec='${libname}${release}${shared_ext}$major'
23002481 shlibpath_var=LD_LIBRARY_PATH
2301 ;;
2302
2303 freebsd1*)
2304 dynamic_linker=no
23052482 ;;
23062483
23072484 freebsd* | dragonfly*)
23112488 objformat=`/usr/bin/objformat`
23122489 else
23132490 case $host_os in
2314 freebsd[[123]]*) objformat=aout ;;
2491 freebsd[[23]].*) objformat=aout ;;
23152492 *) objformat=elf ;;
23162493 esac
23172494 fi
23292506 esac
23302507 shlibpath_var=LD_LIBRARY_PATH
23312508 case $host_os in
2332 freebsd2*)
2509 freebsd2.*)
23332510 shlibpath_overrides_runpath=yes
23342511 ;;
23352512 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
23492526 ;;
23502527
23512528 gnu*)
2352 version_type=linux
2529 version_type=linux # correct to gnu/linux during the next big refactor
23532530 need_lib_prefix=no
23542531 need_version=no
23552532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23562533 soname_spec='${libname}${release}${shared_ext}$major'
23572534 shlibpath_var=LD_LIBRARY_PATH
2535 shlibpath_overrides_runpath=no
2536 hardcode_into_libs=yes
2537 ;;
2538
2539 haiku*)
2540 version_type=linux # correct to gnu/linux during the next big refactor
2541 need_lib_prefix=no
2542 need_version=no
2543 dynamic_linker="$host_os runtime_loader"
2544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2545 soname_spec='${libname}${release}${shared_ext}$major'
2546 shlibpath_var=LIBRARY_PATH
2547 shlibpath_overrides_runpath=yes
2548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
23582549 hardcode_into_libs=yes
23592550 ;;
23602551
24002591 soname_spec='${libname}${release}${shared_ext}$major'
24012592 ;;
24022593 esac
2403 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24042595 postinstall_cmds='chmod 555 $lib'
2596 # or fails outright, so override atomically:
2597 install_override_mode=555
24052598 ;;
24062599
24072600 interix[[3-9]]*)
2408 version_type=linux
2601 version_type=linux # correct to gnu/linux during the next big refactor
24092602 need_lib_prefix=no
24102603 need_version=no
24112604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24212614 nonstopux*) version_type=nonstopux ;;
24222615 *)
24232616 if test "$lt_cv_prog_gnu_ld" = yes; then
2424 version_type=linux
2617 version_type=linux # correct to gnu/linux during the next big refactor
24252618 else
24262619 version_type=irix
24272620 fi ;;
24582651 dynamic_linker=no
24592652 ;;
24602653
2461 # This must be Linux ELF.
2654 # This must be glibc/ELF.
24622655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2463 version_type=linux
2656 version_type=linux # correct to gnu/linux during the next big refactor
24642657 need_lib_prefix=no
24652658 need_version=no
24662659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24682661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24692662 shlibpath_var=LD_LIBRARY_PATH
24702663 shlibpath_overrides_runpath=no
2664
24712665 # Some binutils ld are patched to set DT_RUNPATH
2472 save_LDFLAGS=$LDFLAGS
2473 save_libdir=$libdir
2474 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2475 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2476 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2477 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2478 [shlibpath_overrides_runpath=yes])])
2479 LDFLAGS=$save_LDFLAGS
2480 libdir=$save_libdir
2666 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2667 [lt_cv_shlibpath_overrides_runpath=no
2668 save_LDFLAGS=$LDFLAGS
2669 save_libdir=$libdir
2670 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2671 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2672 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2673 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2674 [lt_cv_shlibpath_overrides_runpath=yes])])
2675 LDFLAGS=$save_LDFLAGS
2676 libdir=$save_libdir
2677 ])
2678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24812679
24822680 # This implies no fast_install, which is unacceptable.
24832681 # Some rework will be needed to allow for fast_install
24862684
24872685 # Append ld.so.conf contents to the search path
24882686 if test -f /etc/ld.so.conf; then
2489 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2687 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' ' '`
24902688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24912689 fi
24922690
24972695 # people can always --disable-shared, the test was removed, and we
24982696 # assume the GNU/Linux dynamic linker is in use.
24992697 dynamic_linker='GNU/Linux ld.so'
2500 ;;
2501
2502 netbsdelf*-gnu)
2503 version_type=linux
2504 need_lib_prefix=no
2505 need_version=no
2506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2507 soname_spec='${libname}${release}${shared_ext}$major'
2508 shlibpath_var=LD_LIBRARY_PATH
2509 shlibpath_overrides_runpath=no
2510 hardcode_into_libs=yes
2511 dynamic_linker='NetBSD ld.elf_so'
25122698 ;;
25132699
25142700 netbsd*)
25302716 ;;
25312717
25322718 newsos6)
2533 version_type=linux
2719 version_type=linux # correct to gnu/linux during the next big refactor
25342720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25352721 shlibpath_var=LD_LIBRARY_PATH
25362722 shlibpath_overrides_runpath=yes
25992785 ;;
26002786
26012787 solaris*)
2602 version_type=linux
2788 version_type=linux # correct to gnu/linux during the next big refactor
26032789 need_lib_prefix=no
26042790 need_version=no
26052791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26242810 ;;
26252811
26262812 sysv4 | sysv4.3*)
2627 version_type=linux
2813 version_type=linux # correct to gnu/linux during the next big refactor
26282814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26292815 soname_spec='${libname}${release}${shared_ext}$major'
26302816 shlibpath_var=LD_LIBRARY_PATH
26482834
26492835 sysv4*MP*)
26502836 if test -d /usr/nec ;then
2651 version_type=linux
2837 version_type=linux # correct to gnu/linux during the next big refactor
26522838 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26532839 soname_spec='$libname${shared_ext}.$major'
26542840 shlibpath_var=LD_LIBRARY_PATH
26792865
26802866 tpf*)
26812867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2682 version_type=linux
2868 version_type=linux # correct to gnu/linux during the next big refactor
26832869 need_lib_prefix=no
26842870 need_version=no
26852871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26892875 ;;
26902876
26912877 uts4*)
2692 version_type=linux
2878 version_type=linux # correct to gnu/linux during the next big refactor
26932879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26942880 soname_spec='${libname}${release}${shared_ext}$major'
26952881 shlibpath_var=LD_LIBRARY_PATH
27312917 The last name is the one that the linker finds with -lNAME]])
27322918 _LT_DECL([], [soname_spec], [1],
27332919 [[The coded name of the library, if different from the real name]])
2920 _LT_DECL([], [install_override_mode], [1],
2921 [Permission mode override for installation of shared libraries])
27342922 _LT_DECL([], [postinstall_cmds], [2],
27352923 [Command to use after installation of a shared archive])
27362924 _LT_DECL([], [postuninstall_cmds], [2],
28433031 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
28443032 m4_require([_LT_DECL_SED])dnl
28453033 m4_require([_LT_DECL_EGREP])dnl
3034 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
28463035
28473036 AC_ARG_WITH([gnu-ld],
28483037 [AS_HELP_STRING([--with-gnu-ld],
29643153 esac
29653154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
29663155 case $host_os in
3156 cygwin* | mingw* | pw32* | cegcc*)
3157 if test "$GCC" != yes; then
3158 reload_cmds=false
3159 fi
3160 ;;
29673161 darwin*)
29683162 if test "$GCC" = yes; then
29693163 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
29723166 fi
29733167 ;;
29743168 esac
2975 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2976 _LT_DECL([], [reload_cmds], [2])dnl
3169 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3170 _LT_TAGDECL([], [reload_cmds], [2])dnl
29773171 ])# _LT_CMD_RELOAD
29783172
29793173
30253219 # Base MSYS/MinGW do not provide the 'file' command needed by
30263220 # func_win32_libid shell function, so use a weaker test based on 'objdump',
30273221 # unless we find 'file', for example because we are cross-compiling.
3028 if ( file / ) >/dev/null 2>&1; then
3222 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3223 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30293224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30303225 lt_cv_file_magic_cmd='func_win32_libid'
30313226 else
3032 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3227 # Keep this pattern in sync with the one in func_win32_libid.
3228 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30333229 lt_cv_file_magic_cmd='$OBJDUMP -f'
30343230 fi
30353231 ;;
30363232
3037 cegcc)
3233 cegcc*)
30383234 # use the weaker test based on 'objdump'. See mingw*.
30393235 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30403236 lt_cv_file_magic_cmd='$OBJDUMP -f'
30643260 lt_cv_deplibs_check_method=pass_all
30653261 ;;
30663262
3263 haiku*)
3264 lt_cv_deplibs_check_method=pass_all
3265 ;;
3266
30673267 hpux10.20* | hpux11*)
30683268 lt_cv_file_magic_cmd=/usr/bin/file
30693269 case $host_cpu in
30723272 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30733273 ;;
30743274 hppa*64*)
3075 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3275 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
30763276 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30773277 ;;
30783278 *)
3079 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3279 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
30803280 lt_cv_file_magic_test_file=/usr/lib/libc.sl
30813281 ;;
30823282 esac
30973297 lt_cv_deplibs_check_method=pass_all
30983298 ;;
30993299
3100 # This must be Linux ELF.
3300 # This must be glibc/ELF.
31013301 linux* | k*bsd*-gnu | kopensolaris*-gnu)
31023302 lt_cv_deplibs_check_method=pass_all
31033303 ;;
31043304
3105 netbsd* | netbsdelf*-gnu)
3305 netbsd*)
31063306 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
31073307 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
31083308 else
31763376 ;;
31773377 esac
31783378 ])
3379
3380 file_magic_glob=
3381 want_nocaseglob=no
3382 if test "$build" = "$host"; then
3383 case $host_os in
3384 mingw* | pw32*)
3385 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3386 want_nocaseglob=yes
3387 else
3388 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3389 fi
3390 ;;
3391 esac
3392 fi
3393
31793394 file_magic_cmd=$lt_cv_file_magic_cmd
31803395 deplibs_check_method=$lt_cv_deplibs_check_method
31813396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
31833398 _LT_DECL([], [deplibs_check_method], [1],
31843399 [Method to check whether dependent libraries are shared objects])
31853400 _LT_DECL([], [file_magic_cmd], [1],
3186 [Command to use when deplibs_check_method == "file_magic"])
3401 [Command to use when deplibs_check_method = "file_magic"])
3402 _LT_DECL([], [file_magic_glob], [1],
3403 [How to find potential files when deplibs_check_method = "file_magic"])
3404 _LT_DECL([], [want_nocaseglob], [1],
3405 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
31873406 ])# _LT_CHECK_MAGIC_METHOD
31883407
31893408
32403459 NM="$lt_cv_path_NM"
32413460 else
32423461 # Didn't find any BSD compatible name lister, look for dumpbin.
3243 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3462 if test -n "$DUMPBIN"; then :
3463 # Let the user override the test.
3464 else
3465 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3466 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3467 *COFF*)
3468 DUMPBIN="$DUMPBIN -symbols"
3469 ;;
3470 *)
3471 DUMPBIN=:
3472 ;;
3473 esac
3474 fi
32443475 AC_SUBST([DUMPBIN])
32453476 if test "$DUMPBIN" != ":"; then
32463477 NM="$DUMPBIN"
32533484 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
32543485 [lt_cv_nm_interface="BSD nm"
32553486 echo "int some_variable = 0;" > conftest.$ac_ext
3256 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3487 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
32573488 (eval "$ac_compile" 2>conftest.err)
32583489 cat conftest.err >&AS_MESSAGE_LOG_FD
3259 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3490 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
32603491 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32613492 cat conftest.err >&AS_MESSAGE_LOG_FD
3262 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3493 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
32633494 cat conftest.out >&AS_MESSAGE_LOG_FD
32643495 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32653496 lt_cv_nm_interface="MS dumpbin"
32733504 dnl aclocal-1.4 backwards compatibility:
32743505 dnl AC_DEFUN([AM_PROG_NM], [])
32753506 dnl AC_DEFUN([AC_PROG_NM], [])
3507
3508 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3509 # --------------------------------
3510 # how to determine the name of the shared library
3511 # associated with a specific link library.
3512 # -- PORTME fill in with the dynamic library characteristics
3513 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3514 [m4_require([_LT_DECL_EGREP])
3515 m4_require([_LT_DECL_OBJDUMP])
3516 m4_require([_LT_DECL_DLLTOOL])
3517 AC_CACHE_CHECK([how to associate runtime and link libraries],
3518 lt_cv_sharedlib_from_linklib_cmd,
3519 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3520
3521 case $host_os in
3522 cygwin* | mingw* | pw32* | cegcc*)
3523 # two different shell functions defined in ltmain.sh
3524 # decide which to use based on capabilities of $DLLTOOL
3525 case `$DLLTOOL --help 2>&1` in
3526 *--identify-strict*)
3527 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3528 ;;
3529 *)
3530 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3531 ;;
3532 esac
3533 ;;
3534 *)
3535 # fallback: assume linklib IS sharedlib
3536 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3537 ;;
3538 esac
3539 ])
3540 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3541 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3542
3543 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3544 [Command to associate shared and link libraries])
3545 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3546
3547
3548 # _LT_PATH_MANIFEST_TOOL
3549 # ----------------------
3550 # locate the manifest tool
3551 m4_defun([_LT_PATH_MANIFEST_TOOL],
3552 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3553 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3554 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3555 [lt_cv_path_mainfest_tool=no
3556 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3557 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3558 cat conftest.err >&AS_MESSAGE_LOG_FD
3559 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3560 lt_cv_path_mainfest_tool=yes
3561 fi
3562 rm -f conftest*])
3563 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3564 MANIFEST_TOOL=:
3565 fi
3566 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3567 ])# _LT_PATH_MANIFEST_TOOL
32763568
32773569
32783570 # LT_LIB_M
32823574 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
32833575 LIBM=
32843576 case $host in
3285 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3577 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
32863578 # These system don't have libm, or don't need it
32873579 ;;
32883580 *-ncr-sysv4.3*)
33103602 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
33113603
33123604 if test "$GCC" = yes; then
3313 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3605 case $cc_basename in
3606 nvcc*)
3607 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3608 *)
3609 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3610 esac
33143611
33153612 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
33163613 lt_cv_prog_compiler_rtti_exceptions,
33273624 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
33283625 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
33293626 AC_REQUIRE([AC_PROG_CC])dnl
3627 AC_REQUIRE([AC_PROG_AWK])dnl
33303628 AC_REQUIRE([LT_PATH_NM])dnl
33313629 AC_REQUIRE([LT_PATH_LD])dnl
33323630 m4_require([_LT_DECL_SED])dnl
33943692 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
33953693
33963694 # Transform an extracted symbol line into symbol name and symbol address
3397 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3398 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'"
3695 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3696 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'"
33993697
34003698 # Handle CRLF in mingw tool chain
34013699 opt_cr=
34193717 # which start with @ or ?.
34203718 lt_cv_sys_global_symbol_pipe="$AWK ['"\
34213719 " {last_section=section; section=\$ 3};"\
3720 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
34223721 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
34233722 " \$ 0!~/External *\|/{next};"\
34243723 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
34313730 else
34323731 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34333732 fi
3733 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
34343734
34353735 # Check to see that the pipe works correctly.
34363736 pipe_works=no
34523752 if AC_TRY_EVAL(ac_compile); then
34533753 # Now try to grab the symbols.
34543754 nlist=conftest.nm
3455 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3755 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
34563756 # Try sorting and uniquifying the output.
34573757 if sort "$nlist" | uniq > "$nlist"T; then
34583758 mv -f "$nlist"T "$nlist"
34643764 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
34653765 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
34663766 cat <<_LT_EOF > conftest.$ac_ext
3767 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3768 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3769 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3770 relocations are performed -- see ld's documentation on pseudo-relocs. */
3771 # define LT@&t@_DLSYM_CONST
3772 #elif defined(__osf__)
3773 /* This system does not cope well with relocations in const data. */
3774 # define LT@&t@_DLSYM_CONST
3775 #else
3776 # define LT@&t@_DLSYM_CONST const
3777 #endif
3778
34673779 #ifdef __cplusplus
34683780 extern "C" {
34693781 #endif
34753787 cat <<_LT_EOF >> conftest.$ac_ext
34763788
34773789 /* The mapping between symbol names and symbols. */
3478 const struct {
3790 LT@&t@_DLSYM_CONST struct {
34793791 const char *name;
34803792 void *address;
34813793 }
35013813 _LT_EOF
35023814 # Now try linking the two files.
35033815 mv conftest.$ac_objext conftstm.$ac_objext
3504 lt_save_LIBS="$LIBS"
3505 lt_save_CFLAGS="$CFLAGS"
3816 lt_globsym_save_LIBS=$LIBS
3817 lt_globsym_save_CFLAGS=$CFLAGS
35063818 LIBS="conftstm.$ac_objext"
35073819 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
35083820 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
35093821 pipe_works=yes
35103822 fi
3511 LIBS="$lt_save_LIBS"
3512 CFLAGS="$lt_save_CFLAGS"
3823 LIBS=$lt_globsym_save_LIBS
3824 CFLAGS=$lt_globsym_save_CFLAGS
35133825 else
35143826 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35153827 fi
35423854 AC_MSG_RESULT(ok)
35433855 fi
35443856
3857 # Response file support.
3858 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3859 nm_file_list_spec='@'
3860 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3861 nm_file_list_spec='@'
3862 fi
3863
35453864 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
35463865 [Take the output of nm and produce a listing of raw symbols and C names])
35473866 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
35523871 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
35533872 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
35543873 [Transform the output of nm in a C name address pair when lib prefix is needed])
3874 _LT_DECL([], [nm_file_list_spec], [1],
3875 [Specify filename containing input files for $NM])
35553876 ]) # _LT_CMD_GLOBAL_SYMBOLS
35563877
35573878
35633884 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
35643885 _LT_TAGVAR(lt_prog_compiler_static, $1)=
35653886
3566 AC_MSG_CHECKING([for $compiler option to produce PIC])
35673887 m4_if([$1], [CXX], [
35683888 # C++ specific cases for pic, static, wl, etc.
35693889 if test "$GXX" = yes; then
36133933 *djgpp*)
36143934 # DJGPP does not support shared libraries at all
36153935 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3936 ;;
3937 haiku*)
3938 # PIC is the default for Haiku.
3939 # The "-static" flag exists, but is broken.
3940 _LT_TAGVAR(lt_prog_compiler_static, $1)=
36163941 ;;
36173942 interix[[3-9]]*)
36183943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
36623987 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
36633988 ;;
36643989 esac
3990 ;;
3991 mingw* | cygwin* | os2* | pw32* | cegcc*)
3992 # This hack is so that the source file can tell whether it is being
3993 # built for inclusion in a dll (and should export symbols for example).
3994 m4_if([$1], [GCJ], [],
3995 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
36653996 ;;
36663997 dgux*)
36673998 case $cc_basename in
37524083 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
37534084 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37544085 ;;
3755 xlc* | xlC*)
3756 # IBM XL 8.0 on PPC
4086 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4087 # IBM XL 8.0, 9.0 on PPC and BlueGene
37574088 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37584089 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
37594090 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
37834114 ;;
37844115 esac
37854116 ;;
3786 netbsd* | netbsdelf*-gnu)
4117 netbsd*)
37874118 ;;
37884119 *qnx* | *nto*)
37894120 # QNX uses GNU C++, but need to define -shared option too, otherwise
38154146 ;;
38164147 solaris*)
38174148 case $cc_basename in
3818 CC*)
4149 CC* | sunCC*)
38194150 # Sun C++ 4.2, 5.x and Centerline C++
38204151 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38214152 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39194250 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
39204251 ;;
39214252
4253 haiku*)
4254 # PIC is the default for Haiku.
4255 # The "-static" flag exists, but is broken.
4256 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4257 ;;
4258
39224259 hpux*)
39234260 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39244261 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
39594296
39604297 *)
39614298 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4299 ;;
4300 esac
4301
4302 case $cc_basename in
4303 nvcc*) # Cuda Compiler Driver 2.2
4304 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4305 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4306 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4307 fi
39624308 ;;
39634309 esac
39644310 else
40244370 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
40254371 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
40264372 ;;
4027 pgcc* | pgf77* | pgf90* | pgf95*)
4373 nagfor*)
4374 # NAG Fortran compiler
4375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4376 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4378 ;;
4379 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
40284380 # Portland Group compilers (*not* the Pentium gcc compiler,
40294381 # which looks to be a dead project)
40304382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40364388 # All Alpha code is PIC.
40374389 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40384390 ;;
4039 xl*)
4040 # IBM XL C 8.0/Fortran 10.1 on PPC
4391 xl* | bgxl* | bgf* | mpixl*)
4392 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
40414393 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40424394 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
40434395 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
40444396 ;;
40454397 *)
40464398 case `$CC -V 2>&1 | sed 5q` in
4399 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4400 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4401 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4402 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4403 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4404 ;;
4405 *Sun\ F* | *Sun*Fortran*)
4406 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4407 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4408 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4409 ;;
40474410 *Sun\ C*)
40484411 # Sun C 5.9
40494412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40504413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40514414 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40524415 ;;
4053 *Sun\ F*)
4054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4416 *Intel*\ [[CF]]*Compiler*)
4417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4420 ;;
4421 *Portland\ Group*)
4422 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4423 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
40564424 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4057 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
40584425 ;;
40594426 esac
40604427 ;;
40864453 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40874454 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40884455 case $cc_basename in
4089 f77* | f90* | f95*)
4456 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
40904457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
40914458 *)
40924459 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
41434510 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
41444511 ;;
41454512 esac
4146 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4147 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4148 [How to pass a linker flag through the compiler])
4513
4514 AC_CACHE_CHECK([for $compiler option to produce PIC],
4515 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4516 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4517 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
41494518
41504519 #
41514520 # Check to make sure the PIC flag actually works.
41644533 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
41654534 [Additional compiler flags for building library objects])
41664535
4536 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4537 [How to pass a linker flag through the compiler])
41674538 #
41684539 # Check to make sure the static flag actually works.
41694540 #
41844555 m4_defun([_LT_LINKER_SHLIBS],
41854556 [AC_REQUIRE([LT_PATH_LD])dnl
41864557 AC_REQUIRE([LT_PATH_NM])dnl
4558 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
41874559 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
41884560 m4_require([_LT_DECL_EGREP])dnl
41894561 m4_require([_LT_DECL_SED])dnl
41924564 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
41934565 m4_if([$1], [CXX], [
41944566 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4567 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
41954568 case $host_os in
41964569 aix[[4-9]]*)
41974570 # If we're using GNU nm, then we don't want the "-C" option.
41984571 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4572 # Also, AIX nm treats weak defined symbols like other global defined
4573 # symbols, whereas GNU nm marks them as "W".
41994574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4200 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4575 _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'
42014576 else
42024577 _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'
42034578 fi
42044579 ;;
42054580 pw32*)
42064581 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4207 ;;
4582 ;;
42084583 cygwin* | mingw* | cegcc*)
4209 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4210 ;;
4211 linux* | k*bsd*-gnu)
4212 _LT_TAGVAR(link_all_deplibs, $1)=no
4213 ;;
4584 case $cc_basename in
4585 cl*)
4586 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4587 ;;
4588 *)
4589 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4590 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4591 ;;
4592 esac
4593 ;;
42144594 *)
42154595 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4216 ;;
4596 ;;
42174597 esac
4218 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42194598 ], [
42204599 runpath_var=
42214600 _LT_TAGVAR(allow_undefined_flag, $1)=
42304609 _LT_TAGVAR(hardcode_direct, $1)=no
42314610 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
42324611 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4233 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
42344612 _LT_TAGVAR(hardcode_libdir_separator, $1)=
42354613 _LT_TAGVAR(hardcode_minus_L, $1)=no
42364614 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
42754653 openbsd*)
42764654 with_gnu_ld=no
42774655 ;;
4278 linux* | k*bsd*-gnu)
4279 _LT_TAGVAR(link_all_deplibs, $1)=no
4280 ;;
42814656 esac
42824657
42834658 _LT_TAGVAR(ld_shlibs, $1)=yes
4659
4660 # On some targets, GNU ld is compatible enough with the native linker
4661 # that we're better off using the native interface for both.
4662 lt_use_gnu_ld_interface=no
42844663 if test "$with_gnu_ld" = yes; then
4664 case $host_os in
4665 aix*)
4666 # The AIX port of GNU ld has always aspired to compatibility
4667 # with the native linker. However, as the warning in the GNU ld
4668 # block says, versions before 2.19.5* couldn't really create working
4669 # shared libraries, regardless of the interface used.
4670 case `$LD -v 2>&1` in
4671 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4672 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4673 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4674 *)
4675 lt_use_gnu_ld_interface=yes
4676 ;;
4677 esac
4678 ;;
4679 *)
4680 lt_use_gnu_ld_interface=yes
4681 ;;
4682 esac
4683 fi
4684
4685 if test "$lt_use_gnu_ld_interface" = yes; then
42854686 # If archive_cmds runs LD, not CC, wlarc should be empty
42864687 wlarc='${wl}'
42874688
43154716 _LT_TAGVAR(ld_shlibs, $1)=no
43164717 cat <<_LT_EOF 1>&2
43174718
4318 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4719 *** Warning: the GNU linker, at least up to release 2.19, is reported
43194720 *** to be unable to reliably create shared libraries on AIX.
43204721 *** Therefore, libtool is disabling shared libraries support. If you
4321 *** really care for shared libraries, you may want to modify your PATH
4322 *** so that a non-GNU linker is found, and then restart.
4722 *** really care for shared libraries, you may want to install binutils
4723 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4724 *** You will then need to restart the configuration process.
43234725
43244726 _LT_EOF
43254727 fi
43554757 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
43564758 # as there is no search path for DLLs.
43574759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4760 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
43584761 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43594762 _LT_TAGVAR(always_export_symbols, $1)=no
43604763 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4361 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4764 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4765 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
43624766
43634767 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43644768 _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'
43764780 fi
43774781 ;;
43784782
4783 haiku*)
4784 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4785 _LT_TAGVAR(link_all_deplibs, $1)=yes
4786 ;;
4787
43794788 interix[[3-9]]*)
43804789 _LT_TAGVAR(hardcode_direct, $1)=no
43814790 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44014810 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
44024811 && test "$tmp_diet" = no
44034812 then
4404 tmp_addflag=
4813 tmp_addflag=' $pic_flag'
44054814 tmp_sharedflag='-shared'
44064815 case $cc_basename,$host_cpu in
44074816 pgcc*) # Portland Group C compiler
4408 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4817 _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'
44094818 tmp_addflag=' $pic_flag'
44104819 ;;
4411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4412 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4820 pgf77* | pgf90* | pgf95* | pgfortran*)
4821 # Portland Group f77 and f90 compilers
4822 _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'
44134823 tmp_addflag=' $pic_flag -Mnomain' ;;
44144824 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
44154825 tmp_addflag=' -i_dynamic' ;;
44204830 lf95*) # Lahey Fortran 8.1
44214831 _LT_TAGVAR(whole_archive_flag_spec, $1)=
44224832 tmp_sharedflag='--shared' ;;
4423 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4833 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
44244834 tmp_sharedflag='-qmkshrobj'
44254835 tmp_addflag= ;;
4836 nvcc*) # Cuda Compiler Driver 2.2
4837 _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'
4838 _LT_TAGVAR(compiler_needs_object, $1)=yes
4839 ;;
44264840 esac
44274841 case `$CC -V 2>&1 | sed 5q` in
44284842 *Sun\ C*) # Sun C 5.9
4429 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4843 _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'
44304844 _LT_TAGVAR(compiler_needs_object, $1)=yes
44314845 tmp_sharedflag='-G' ;;
44324846 *Sun\ F*) # Sun Fortran 8.3
44424856 fi
44434857
44444858 case $cc_basename in
4445 xlf*)
4859 xlf* | bgf* | bgxlf* | mpixlf*)
44464860 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
44474861 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4448 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4449 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4450 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4862 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4863 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
44514864 if test "x$supports_anon_versioning" = xyes; then
44524865 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
44534866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44544867 echo "local: *; };" >> $output_objdir/$libname.ver~
4455 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4868 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
44564869 fi
44574870 ;;
44584871 esac
44614874 fi
44624875 ;;
44634876
4464 netbsd* | netbsdelf*-gnu)
4877 netbsd*)
44654878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
44664879 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
44674880 wlarc=
44684881 else
4469 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4470 _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'
4882 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4883 _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'
44714884 fi
44724885 ;;
44734886
44854898
44864899 _LT_EOF
44874900 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4488 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4489 _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'
4901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4902 _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'
44904903 else
44914904 _LT_TAGVAR(ld_shlibs, $1)=no
44924905 fi
45324945
45334946 *)
45344947 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4535 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4536 _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'
4948 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4949 _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'
45374950 else
45384951 _LT_TAGVAR(ld_shlibs, $1)=no
45394952 fi
45734986 else
45744987 # If we're using GNU nm, then we don't want the "-C" option.
45754988 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4989 # Also, AIX nm treats weak defined symbols like other global
4990 # defined symbols, whereas GNU nm marks them as "W".
45764991 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4577 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4992 _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'
45784993 else
45794994 _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'
45804995 fi
46365051 if test "$aix_use_runtimelinking" = yes; then
46375052 shared_flag="$shared_flag "'${wl}-G'
46385053 fi
4639 _LT_TAGVAR(link_all_deplibs, $1)=no
46405054 else
46415055 # not using gcc
46425056 if test "$host_cpu" = ia64; then
46625076 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
46635077 # Determine the default libpath from the value encoded in an
46645078 # empty executable.
4665 _LT_SYS_MODULE_PATH_AIX
5079 _LT_SYS_MODULE_PATH_AIX([$1])
46665080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4667 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5081 _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"
46685082 else
46695083 if test "$host_cpu" = ia64; then
46705084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
46735087 else
46745088 # Determine the default libpath from the value encoded in an
46755089 # empty executable.
4676 _LT_SYS_MODULE_PATH_AIX
5090 _LT_SYS_MODULE_PATH_AIX([$1])
46775091 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
46785092 # Warning - without using the other run time loading flags,
46795093 # -berok will link without error, but may produce a broken library.
46805094 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
46815095 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4682 # Exported symbols can be pulled into shared objects from archives
4683 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5096 if test "$with_gnu_ld" = yes; then
5097 # We only use this code for GNU lds that support --whole-archive.
5098 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5099 else
5100 # Exported symbols can be pulled into shared objects from archives
5101 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5102 fi
46845103 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
46855104 # This is similar to how AIX traditionally builds its shared libraries.
46865105 _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'
47125131 # Microsoft Visual C++.
47135132 # hardcode_libdir_flag_spec is actually meaningless, as there is
47145133 # no search path for DLLs.
4715 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4716 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4717 # Tell ltmain to make .lib files, not .a files.
4718 libext=lib
4719 # Tell ltmain to make .dll files, not .so files.
4720 shrext_cmds=".dll"
4721 # FIXME: Setting linknames here is a bad hack.
4722 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4723 # The linker will automatically build a .lib file if we build a DLL.
4724 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4725 # FIXME: Should let the user specify the lib program.
4726 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4727 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4728 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5134 case $cc_basename in
5135 cl*)
5136 # Native MSVC
5137 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5138 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5139 _LT_TAGVAR(always_export_symbols, $1)=yes
5140 _LT_TAGVAR(file_list_spec, $1)='@'
5141 # Tell ltmain to make .lib files, not .a files.
5142 libext=lib
5143 # Tell ltmain to make .dll files, not .so files.
5144 shrext_cmds=".dll"
5145 # FIXME: Setting linknames here is a bad hack.
5146 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5147 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5148 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5149 else
5150 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5151 fi~
5152 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5153 linknames='
5154 # The linker will not automatically build a static lib if we build a DLL.
5155 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5156 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5157 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5158 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5159 # Don't use ranlib
5160 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5161 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5162 lt_tool_outputfile="@TOOL_OUTPUT@"~
5163 case $lt_outputfile in
5164 *.exe|*.EXE) ;;
5165 *)
5166 lt_outputfile="$lt_outputfile.exe"
5167 lt_tool_outputfile="$lt_tool_outputfile.exe"
5168 ;;
5169 esac~
5170 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5171 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5172 $RM "$lt_outputfile.manifest";
5173 fi'
5174 ;;
5175 *)
5176 # Assume MSVC wrapper
5177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5178 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5179 # Tell ltmain to make .lib files, not .a files.
5180 libext=lib
5181 # Tell ltmain to make .dll files, not .so files.
5182 shrext_cmds=".dll"
5183 # FIXME: Setting linknames here is a bad hack.
5184 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5185 # The linker will automatically build a .lib file if we build a DLL.
5186 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5187 # FIXME: Should let the user specify the lib program.
5188 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5189 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5190 ;;
5191 esac
47295192 ;;
47305193
47315194 darwin* | rhapsody*)
47365199 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
47375200 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
47385201 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4739 ;;
4740
4741 freebsd1*)
4742 _LT_TAGVAR(ld_shlibs, $1)=no
47435202 ;;
47445203
47455204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
47545213 ;;
47555214
47565215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4757 freebsd2*)
5216 freebsd2.*)
47585217 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
47595218 _LT_TAGVAR(hardcode_direct, $1)=yes
47605219 _LT_TAGVAR(hardcode_minus_L, $1)=yes
47635222
47645223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
47655224 freebsd* | dragonfly*)
4766 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5225 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
47675226 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
47685227 _LT_TAGVAR(hardcode_direct, $1)=yes
47695228 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47715230
47725231 hpux9*)
47735232 if test "$GCC" = yes; then
4774 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5233 _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'
47755234 else
47765235 _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'
47775236 fi
47865245 ;;
47875246
47885247 hpux10*)
4789 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4790 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5248 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5249 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47915250 else
47925251 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
47935252 fi
47945253 if test "$with_gnu_ld" = no; then
47955254 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4796 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
47975255 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
47985256 _LT_TAGVAR(hardcode_direct, $1)=yes
47995257 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
48055263 ;;
48065264
48075265 hpux11*)
4808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5266 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
48095267 case $host_cpu in
48105268 hppa*64*)
48115269 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48125270 ;;
48135271 ia64*)
4814 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5272 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48155273 ;;
48165274 *)
4817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5275 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48185276 ;;
48195277 esac
48205278 else
48265284 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48275285 ;;
48285286 *)
4829 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5287 m4_if($1, [], [
5288 # Older versions of the 11.00 compiler do not understand -b yet
5289 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5290 _LT_LINKER_OPTION([if $CC understands -b],
5291 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5292 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5293 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5294 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
48305295 ;;
48315296 esac
48325297 fi
48545319
48555320 irix5* | irix6* | nonstopux*)
48565321 if test "$GCC" = yes; then
4857 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5322 _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'
48585323 # Try to use the -exported_symbol ld option, if it does not
48595324 # work, assume that -exports_file does not work either and
48605325 # implicitly export all symbols.
4861 save_LDFLAGS="$LDFLAGS"
4862 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4863 AC_LINK_IFELSE(int foo(void) {},
4864 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4865 )
4866 LDFLAGS="$save_LDFLAGS"
5326 # This should be the same for all languages, so no per-tag cache variable.
5327 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5328 [lt_cv_irix_exported_symbol],
5329 [save_LDFLAGS="$LDFLAGS"
5330 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5331 AC_LINK_IFELSE(
5332 [AC_LANG_SOURCE(
5333 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5334 [C++], [[int foo (void) { return 0; }]],
5335 [Fortran 77], [[
5336 subroutine foo
5337 end]],
5338 [Fortran], [[
5339 subroutine foo
5340 end]])])],
5341 [lt_cv_irix_exported_symbol=yes],
5342 [lt_cv_irix_exported_symbol=no])
5343 LDFLAGS="$save_LDFLAGS"])
5344 if test "$lt_cv_irix_exported_symbol" = yes; then
5345 _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'
5346 fi
48675347 else
4868 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4869 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5348 _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'
5349 _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'
48705350 fi
48715351 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
48725352 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
48755355 _LT_TAGVAR(link_all_deplibs, $1)=yes
48765356 ;;
48775357
4878 netbsd* | netbsdelf*-gnu)
5358 netbsd*)
48795359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
48805360 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
48815361 else
49285408 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
49295409 _LT_TAGVAR(hardcode_minus_L, $1)=yes
49305410 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4931 _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'
5411 _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'
49325412 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
49335413 ;;
49345414
49355415 osf3*)
49365416 if test "$GCC" = yes; then
49375417 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5418 _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'
49395419 else
49405420 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4941 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5421 _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'
49425422 fi
49435423 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
49445424 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49485428 osf4* | osf5*) # as osf3* with the addition of -msym flag
49495429 if test "$GCC" = yes; then
49505430 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4951 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5431 _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'
49525432 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49535433 else
49545434 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4955 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5435 _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'
49565436 _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~
4957 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5437 $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'
49585438
49595439 # Both c and cxx compiler support -rpath directly
49605440 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
49675447 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
49685448 if test "$GCC" = yes; then
49695449 wlarc='${wl}'
4970 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5450 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
49715451 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4972 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5452 $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'
49735453 else
49745454 case `$CC -V 2>&1` in
49755455 *"Compilers 5.0"*)
51455625 # Test whether the compiler implicitly links with -lc since on some
51465626 # systems, -lgcc has to come before -lc. If gcc already passes -lc
51475627 # to ld, don't add -lc before -lgcc.
5148 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5149 $RM conftest*
5150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5151
5152 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5153 soname=conftest
5154 lib=conftest
5155 libobjs=conftest.$ac_objext
5156 deplibs=
5157 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5158 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5159 compiler_flags=-v
5160 linker_flags=-v
5161 verstring=
5162 output_objdir=.
5163 libname=conftest
5164 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5165 _LT_TAGVAR(allow_undefined_flag, $1)=
5166 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5167 then
5168 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5169 else
5170 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5171 fi
5172 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5173 else
5174 cat conftest.err 1>&5
5175 fi
5176 $RM conftest*
5177 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5628 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5629 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5630 [$RM conftest*
5631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5632
5633 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5634 soname=conftest
5635 lib=conftest
5636 libobjs=conftest.$ac_objext
5637 deplibs=
5638 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5639 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5640 compiler_flags=-v
5641 linker_flags=-v
5642 verstring=
5643 output_objdir=.
5644 libname=conftest
5645 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5646 _LT_TAGVAR(allow_undefined_flag, $1)=
5647 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5648 then
5649 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5650 else
5651 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5652 fi
5653 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5654 else
5655 cat conftest.err 1>&5
5656 fi
5657 $RM conftest*
5658 ])
5659 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
51785660 ;;
51795661 esac
51805662 fi
52115693 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
52125694 [Flag to hardcode $libdir into a binary during linking.
52135695 This must work even if $libdir does not exist])
5214 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5215 [[If ld is used when linking, flag to hardcode $libdir into a binary
5216 during linking. This must work even if $libdir does not exist]])
52175696 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
52185697 [Whether we need a single "-rpath" flag with a separated argument])
52195698 _LT_TAGDECL([], [hardcode_direct], [0],
52395718 to runtime path list])
52405719 _LT_TAGDECL([], [link_all_deplibs], [0],
52415720 [Whether libtool must link a program against all its dependency libraries])
5242 _LT_TAGDECL([], [fix_srcfile_path], [1],
5243 [Fix the shell variable $srcfile for the compiler])
52445721 _LT_TAGDECL([], [always_export_symbols], [0],
52455722 [Set to "yes" if exported symbols are required])
52465723 _LT_TAGDECL([], [export_symbols_cmds], [2],
52515728 [Symbols that must always be exported])
52525729 _LT_TAGDECL([], [prelink_cmds], [2],
52535730 [Commands necessary for linking programs (against libraries) with templates])
5731 _LT_TAGDECL([], [postlink_cmds], [2],
5732 [Commands necessary for finishing linking programs])
52545733 _LT_TAGDECL([], [file_list_spec], [1],
52555734 [Specify filename containing input files])
52565735 dnl FIXME: Not yet implemented
53405819 ])# _LT_LANG_C_CONFIG
53415820
53425821
5343 # _LT_PROG_CXX
5344 # ------------
5345 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5346 # compiler, we have our own version here.
5347 m4_defun([_LT_PROG_CXX],
5348 [
5349 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5350 AC_PROG_CXX
5822 # _LT_LANG_CXX_CONFIG([TAG])
5823 # --------------------------
5824 # Ensure that the configuration variables for a C++ compiler are suitably
5825 # defined. These variables are subsequently used by _LT_CONFIG to write
5826 # the compiler configuration to `libtool'.
5827 m4_defun([_LT_LANG_CXX_CONFIG],
5828 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5829 m4_require([_LT_DECL_EGREP])dnl
5830 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
53515831 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
53525832 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
53535833 (test "X$CXX" != "Xg++"))) ; then
53555835 else
53565836 _lt_caught_CXX_error=yes
53575837 fi
5358 popdef([AC_MSG_ERROR])
5359 ])# _LT_PROG_CXX
5360
5361 dnl aclocal-1.4 backwards compatibility:
5362 dnl AC_DEFUN([_LT_PROG_CXX], [])
5363
5364
5365 # _LT_LANG_CXX_CONFIG([TAG])
5366 # --------------------------
5367 # Ensure that the configuration variables for a C++ compiler are suitably
5368 # defined. These variables are subsequently used by _LT_CONFIG to write
5369 # the compiler configuration to `libtool'.
5370 m4_defun([_LT_LANG_CXX_CONFIG],
5371 [AC_REQUIRE([_LT_PROG_CXX])dnl
5372 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5373 m4_require([_LT_DECL_EGREP])dnl
53745838
53755839 AC_LANG_PUSH(C++)
53765840 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
53825846 _LT_TAGVAR(hardcode_direct, $1)=no
53835847 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
53845848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5385 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
53865849 _LT_TAGVAR(hardcode_libdir_separator, $1)=
53875850 _LT_TAGVAR(hardcode_minus_L, $1)=no
53885851 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
53925855 _LT_TAGVAR(module_expsym_cmds, $1)=
53935856 _LT_TAGVAR(link_all_deplibs, $1)=unknown
53945857 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5858 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5859 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
53955860 _LT_TAGVAR(no_undefined_flag, $1)=
53965861 _LT_TAGVAR(whole_archive_flag_spec, $1)=
53975862 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
54235888
54245889 # Allow CC to be a program name with arguments.
54255890 lt_save_CC=$CC
5891 lt_save_CFLAGS=$CFLAGS
54265892 lt_save_LD=$LD
54275893 lt_save_GCC=$GCC
54285894 GCC=$GXX
54405906 fi
54415907 test -z "${LDCXX+set}" || LD=$LDCXX
54425908 CC=${CXX-"c++"}
5909 CFLAGS=$CXXFLAGS
54435910 compiler=$CC
54445911 _LT_TAGVAR(compiler, $1)=$CC
54455912 _LT_CC_BASENAME([$compiler])
54615928 # Check if GNU C++ uses GNU ld as the underlying linker, since the
54625929 # archiving commands below assume that GNU ld is being used.
54635930 if test "$with_gnu_ld" = yes; then
5464 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5465 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5931 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5932 _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'
54665933
54675934 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
54685935 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
54945961 # Commands to make compiler produce verbose output that lists
54955962 # what "hidden" libraries, object files and flags are used when
54965963 # linking a shared library.
5497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
54985965
54995966 else
55005967 GXX=no
56036070 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
56046071 # Determine the default libpath from the value encoded in an empty
56056072 # executable.
5606 _LT_SYS_MODULE_PATH_AIX
6073 _LT_SYS_MODULE_PATH_AIX([$1])
56076074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56086075
5609 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6076 _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"
56106077 else
56116078 if test "$host_cpu" = ia64; then
56126079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
56156082 else
56166083 # Determine the default libpath from the value encoded in an
56176084 # empty executable.
5618 _LT_SYS_MODULE_PATH_AIX
6085 _LT_SYS_MODULE_PATH_AIX([$1])
56196086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56206087 # Warning - without using the other run time loading flags,
56216088 # -berok will link without error, but may produce a broken library.
56226089 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
56236090 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5624 # Exported symbols can be pulled into shared objects from archives
5625 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6091 if test "$with_gnu_ld" = yes; then
6092 # We only use this code for GNU lds that support --whole-archive.
6093 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6094 else
6095 # Exported symbols can be pulled into shared objects from archives
6096 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6097 fi
56266098 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56276099 # This is similar to how AIX traditionally builds its shared
56286100 # libraries.
56526124 ;;
56536125
56546126 cygwin* | mingw* | pw32* | cegcc*)
5655 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5656 # as there is no search path for DLLs.
5657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5658 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5659 _LT_TAGVAR(always_export_symbols, $1)=no
5660 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5661
5662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5663 _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'
5664 # If the export-symbols file already is a .def file (1st line
5665 # is EXPORTS), use it as is; otherwise, prepend...
5666 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5667 cp $export_symbols $output_objdir/$soname.def;
5668 else
5669 echo EXPORTS > $output_objdir/$soname.def;
5670 cat $export_symbols >> $output_objdir/$soname.def;
5671 fi~
5672 $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'
5673 else
5674 _LT_TAGVAR(ld_shlibs, $1)=no
5675 fi
5676 ;;
6127 case $GXX,$cc_basename in
6128 ,cl* | no,cl*)
6129 # Native MSVC
6130 # hardcode_libdir_flag_spec is actually meaningless, as there is
6131 # no search path for DLLs.
6132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6133 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6134 _LT_TAGVAR(always_export_symbols, $1)=yes
6135 _LT_TAGVAR(file_list_spec, $1)='@'
6136 # Tell ltmain to make .lib files, not .a files.
6137 libext=lib
6138 # Tell ltmain to make .dll files, not .so files.
6139 shrext_cmds=".dll"
6140 # FIXME: Setting linknames here is a bad hack.
6141 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6142 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6143 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6144 else
6145 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6146 fi~
6147 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6148 linknames='
6149 # The linker will not automatically build a static lib if we build a DLL.
6150 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6151 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6152 # Don't use ranlib
6153 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6154 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6155 lt_tool_outputfile="@TOOL_OUTPUT@"~
6156 case $lt_outputfile in
6157 *.exe|*.EXE) ;;
6158 *)
6159 lt_outputfile="$lt_outputfile.exe"
6160 lt_tool_outputfile="$lt_tool_outputfile.exe"
6161 ;;
6162 esac~
6163 func_to_tool_file "$lt_outputfile"~
6164 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6166 $RM "$lt_outputfile.manifest";
6167 fi'
6168 ;;
6169 *)
6170 # g++
6171 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6172 # as there is no search path for DLLs.
6173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6174 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6175 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6176 _LT_TAGVAR(always_export_symbols, $1)=no
6177 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6178
6179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6180 _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'
6181 # If the export-symbols file already is a .def file (1st line
6182 # is EXPORTS), use it as is; otherwise, prepend...
6183 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6184 cp $export_symbols $output_objdir/$soname.def;
6185 else
6186 echo EXPORTS > $output_objdir/$soname.def;
6187 cat $export_symbols >> $output_objdir/$soname.def;
6188 fi~
6189 $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'
6190 else
6191 _LT_TAGVAR(ld_shlibs, $1)=no
6192 fi
6193 ;;
6194 esac
6195 ;;
56776196 darwin* | rhapsody*)
56786197 _LT_DARWIN_LINKER_FEATURES($1)
56796198 ;;
56966215 esac
56976216 ;;
56986217
5699 freebsd[[12]]*)
6218 freebsd2.*)
57006219 # C++ shared libraries reported to be fairly broken before
57016220 # switch to ELF
57026221 _LT_TAGVAR(ld_shlibs, $1)=no
57136232 ;;
57146233
57156234 gnu*)
6235 ;;
6236
6237 haiku*)
6238 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6239 _LT_TAGVAR(link_all_deplibs, $1)=yes
57166240 ;;
57176241
57186242 hpux9*)
57396263 # explicitly linking system object files so we need to strip them
57406264 # from the output so that they don't get included in the library
57416265 # dependencies.
5742 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6266 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"'
57436267 ;;
57446268 *)
57456269 if test "$GXX" = yes; then
5746 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6270 _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'
57476271 else
57486272 # FIXME: insert proper C++ library support
57496273 _LT_TAGVAR(ld_shlibs, $1)=no
58046328 # explicitly linking system object files so we need to strip them
58056329 # from the output so that they don't get included in the library
58066330 # dependencies.
5807 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6331 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"'
58086332 ;;
58096333 *)
58106334 if test "$GXX" = yes; then
58146338 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58156339 ;;
58166340 ia64*)
5817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6341 _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'
58186342 ;;
58196343 *)
5820 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6344 _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'
58216345 ;;
58226346 esac
58236347 fi
58476371 case $cc_basename in
58486372 CC*)
58496373 # SGI C++
5850 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6374 _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'
58516375
58526376 # Archives containing C++ object files must be created using
58536377 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
58586382 *)
58596383 if test "$GXX" = yes; then
58606384 if test "$with_gnu_ld" = no; then
5861 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6385 _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'
58626386 else
5863 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6387 _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'
58646388 fi
58656389 fi
58666390 _LT_TAGVAR(link_all_deplibs, $1)=yes
58896413 # explicitly linking system object files so we need to strip them
58906414 # from the output so that they don't get included in the library
58916415 # dependencies.
5892 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6416 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"'
58936417
58946418 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
58956419 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59266450 pgCC* | pgcpp*)
59276451 # Portland Group C++ compiler
59286452 case `$CC -V` in
5929 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6453 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
59306454 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
59316455 rm -rf $tpldir~
59326456 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5933 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6457 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
59346458 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
59356459 rm -rf $tpldir~
59366460 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5937 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6461 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
59386462 $RANLIB $oldlib'
59396463 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
59406464 rm -rf $tpldir~
59416465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5942 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6466 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59436467 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
59446468 rm -rf $tpldir~
59456469 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5946 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6470 $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'
59476471 ;;
5948 *) # Version 6 will use weak symbols
6472 *) # Version 6 and above use weak symbols
59496473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
59506474 _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'
59516475 ;;
59536477
59546478 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
59556479 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5956 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6480 _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'
59576481 ;;
59586482 cxx*)
59596483 # Compaq C++
59726496 # explicitly linking system object files so we need to strip them
59736497 # from the output so that they don't get included in the library
59746498 # dependencies.
5975 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6499 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'
59766500 ;;
5977 xl*)
6501 xl* | mpixl* | bgxl*)
59786502 # IBM XL 8.0 on PPC, with GNU ld
59796503 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
59806504 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59946518 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
59956519 _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'
59966520 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5997 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6521 _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'
59986522 _LT_TAGVAR(compiler_needs_object, $1)=yes
59996523
60006524 # Not sure whether something based on
60016525 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
60026526 # would be better.
6003 output_verbose_link_cmd='echo'
6527 output_verbose_link_cmd='func_echo_all'
60046528
60056529 # Archives containing C++ object files must be created using
60066530 # "CC -xar", where "CC" is the Sun C++ compiler. This is
60696593 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
60706594 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
60716595 fi
6072 output_verbose_link_cmd=echo
6596 output_verbose_link_cmd=func_echo_all
60736597 else
60746598 _LT_TAGVAR(ld_shlibs, $1)=no
60756599 fi
61046628 case $host in
61056629 osf3*)
61066630 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6107 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6631 _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'
61086632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
61096633 ;;
61106634 *)
61116635 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6112 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6636 _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'
61136637 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
61146638 echo "-hidden">> $lib.exp~
6115 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6639 $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~
61166640 $RM $lib.exp'
61176641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
61186642 ;;
61286652 # explicitly linking system object files so we need to strip them
61296653 # from the output so that they don't get included in the library
61306654 # dependencies.
6131 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6655 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"'
61326656 ;;
61336657 *)
61346658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
61356659 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
61366660 case $host in
61376661 osf3*)
6138 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6662 _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'
61396663 ;;
61406664 *)
6141 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6665 _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'
61426666 ;;
61436667 esac
61446668
61486672 # Commands to make compiler produce verbose output that lists
61496673 # what "hidden" libraries, object files and flags are used when
61506674 # linking a shared library.
6151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6675 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
61526676
61536677 else
61546678 # FIXME: insert proper C++ library support
61846708
61856709 solaris*)
61866710 case $cc_basename in
6187 CC*)
6711 CC* | sunCC*)
61886712 # Sun C++ 4.2, 5.x and Centerline C++
61896713 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
61906714 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
62056729 esac
62066730 _LT_TAGVAR(link_all_deplibs, $1)=yes
62076731
6208 output_verbose_link_cmd='echo'
6732 output_verbose_link_cmd='func_echo_all'
62096733
62106734 # Archives containing C++ object files must be created using
62116735 # "CC -xar", where "CC" is the Sun C++ compiler. This is
62256749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
62266750 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
62276751 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6228 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6752 _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'
62296753 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6230 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6754 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
62316755
62326756 # Commands to make compiler produce verbose output that lists
62336757 # what "hidden" libraries, object files and flags are used when
62346758 # linking a shared library.
6235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62366760 else
62376761 # g++ 2.7 appears to require `-G' NOT `-shared' on this
62386762 # platform.
62436767 # Commands to make compiler produce verbose output that lists
62446768 # what "hidden" libraries, object files and flags are used when
62456769 # linking a shared library.
6246 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6770 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62476771 fi
62486772
62496773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
62976821 CC*)
62986822 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
62996823 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6824 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6825 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6826 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6827 '"$_LT_TAGVAR(reload_cmds, $1)"
63006828 ;;
63016829 *)
63026830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63526880 fi # test -n "$compiler"
63536881
63546882 CC=$lt_save_CC
6883 CFLAGS=$lt_save_CFLAGS
63556884 LDCXX=$LD
63566885 LD=$lt_save_LD
63576886 GCC=$lt_save_GCC
63666895 ])# _LT_LANG_CXX_CONFIG
63676896
63686897
6898 # _LT_FUNC_STRIPNAME_CNF
6899 # ----------------------
6900 # func_stripname_cnf prefix suffix name
6901 # strip PREFIX and SUFFIX off of NAME.
6902 # PREFIX and SUFFIX must not contain globbing or regex special
6903 # characters, hashes, percent signs, but SUFFIX may contain a leading
6904 # dot (in which case that matches only a dot).
6905 #
6906 # This function is identical to the (non-XSI) version of func_stripname,
6907 # except this one can be used by m4 code that may be executed by configure,
6908 # rather than the libtool script.
6909 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6910 AC_REQUIRE([_LT_DECL_SED])
6911 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6912 func_stripname_cnf ()
6913 {
6914 case ${2} in
6915 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6916 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6917 esac
6918 } # func_stripname_cnf
6919 ])# _LT_FUNC_STRIPNAME_CNF
6920
63696921 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
63706922 # ---------------------------------
63716923 # Figure out "hidden" library dependencies from verbose
63746926 # objects, libraries and library flags.
63756927 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
63766928 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6929 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
63776930 # Dependencies to place before and after the object being linked:
63786931 _LT_TAGVAR(predep_objects, $1)=
63796932 _LT_TAGVAR(postdep_objects, $1)=
64236976 }
64246977 };
64256978 _LT_EOF
6979 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6980 package foo
6981 func foo() {
6982 }
6983 _LT_EOF
64266984 ])
6985
6986 _lt_libdeps_save_CFLAGS=$CFLAGS
6987 case "$CC $CFLAGS " in #(
6988 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6989 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6990 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6991 esac
6992
64276993 dnl Parse the compiler output and extract the necessary
64286994 dnl objects, libraries and library flags.
64296995 if AC_TRY_EVAL(ac_compile); then
64357001 pre_test_object_deps_done=no
64367002
64377003 for p in `eval "$output_verbose_link_cmd"`; do
6438 case $p in
7004 case ${prev}${p} in
64397005
64407006 -L* | -R* | -l*)
64417007 # Some compilers place space between "-{L,R}" and the path.
64447010 test $p = "-R"; then
64457011 prev=$p
64467012 continue
6447 else
6448 prev=
64497013 fi
64507014
7015 # Expand the sysroot to ease extracting the directories later.
7016 if test -z "$prev"; then
7017 case $p in
7018 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7019 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7020 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7021 esac
7022 fi
7023 case $p in
7024 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7025 esac
64517026 if test "$pre_test_object_deps_done" = no; then
6452 case $p in
6453 -L* | -R*)
7027 case ${prev} in
7028 -L | -R)
64547029 # Internal compiler library paths should come after those
64557030 # provided the user. The postdeps already come after the
64567031 # user supplied libs so there is no need to process them.
64707045 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
64717046 fi
64727047 fi
7048 prev=
64737049 ;;
64747050
7051 *.lto.$objext) ;; # Ignore GCC LTO objects
64757052 *.$objext)
64767053 # This assumes that the test object file only shows up
64777054 # once in the compiler output.
65077084 fi
65087085
65097086 $RM -f confest.$objext
7087 CFLAGS=$_lt_libdeps_save_CFLAGS
65107088
65117089 # PORTME: override above test on systems where it is broken
65127090 m4_if([$1], [CXX],
65437121
65447122 solaris*)
65457123 case $cc_basename in
6546 CC*)
7124 CC* | sunCC*)
65477125 # The more standards-conforming stlport4 library is
65487126 # incompatible with the Cstd library. Avoid specifying
65497127 # it if it's in CXXFLAGS. Ignore libCrun as
65877165 ])# _LT_SYS_HIDDEN_LIBDEPS
65887166
65897167
6590 # _LT_PROG_F77
6591 # ------------
6592 # Since AC_PROG_F77 is broken, in that it returns the empty string
6593 # if there is no fortran compiler, we have our own version here.
6594 m4_defun([_LT_PROG_F77],
6595 [
6596 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6597 AC_PROG_F77
6598 if test -z "$F77" || test "X$F77" = "Xno"; then
6599 _lt_disable_F77=yes
6600 fi
6601 popdef([AC_MSG_ERROR])
6602 ])# _LT_PROG_F77
6603
6604 dnl aclocal-1.4 backwards compatibility:
6605 dnl AC_DEFUN([_LT_PROG_F77], [])
6606
6607
66087168 # _LT_LANG_F77_CONFIG([TAG])
66097169 # --------------------------
66107170 # Ensure that the configuration variables for a Fortran 77 compiler are
66117171 # suitably defined. These variables are subsequently used by _LT_CONFIG
66127172 # to write the compiler configuration to `libtool'.
66137173 m4_defun([_LT_LANG_F77_CONFIG],
6614 [AC_REQUIRE([_LT_PROG_F77])dnl
6615 AC_LANG_PUSH(Fortran 77)
7174 [AC_LANG_PUSH(Fortran 77)
7175 if test -z "$F77" || test "X$F77" = "Xno"; then
7176 _lt_disable_F77=yes
7177 fi
66167178
66177179 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
66187180 _LT_TAGVAR(allow_undefined_flag, $1)=
66227184 _LT_TAGVAR(hardcode_direct, $1)=no
66237185 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
66247186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6625 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
66267187 _LT_TAGVAR(hardcode_libdir_separator, $1)=
66277188 _LT_TAGVAR(hardcode_minus_L, $1)=no
66287189 _LT_TAGVAR(hardcode_automatic, $1)=no
66317192 _LT_TAGVAR(module_expsym_cmds, $1)=
66327193 _LT_TAGVAR(link_all_deplibs, $1)=unknown
66337194 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7195 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7196 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
66347197 _LT_TAGVAR(no_undefined_flag, $1)=
66357198 _LT_TAGVAR(whole_archive_flag_spec, $1)=
66367199 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
66707233 # Allow CC to be a program name with arguments.
66717234 lt_save_CC="$CC"
66727235 lt_save_GCC=$GCC
7236 lt_save_CFLAGS=$CFLAGS
66737237 CC=${F77-"f77"}
7238 CFLAGS=$FFLAGS
66747239 compiler=$CC
66757240 _LT_TAGVAR(compiler, $1)=$CC
66767241 _LT_CC_BASENAME([$compiler])
67247289
67257290 GCC=$lt_save_GCC
67267291 CC="$lt_save_CC"
7292 CFLAGS="$lt_save_CFLAGS"
67277293 fi # test "$_lt_disable_F77" != yes
67287294
67297295 AC_LANG_POP
67307296 ])# _LT_LANG_F77_CONFIG
6731
6732
6733 # _LT_PROG_FC
6734 # -----------
6735 # Since AC_PROG_FC is broken, in that it returns the empty string
6736 # if there is no fortran compiler, we have our own version here.
6737 m4_defun([_LT_PROG_FC],
6738 [
6739 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6740 AC_PROG_FC
6741 if test -z "$FC" || test "X$FC" = "Xno"; then
6742 _lt_disable_FC=yes
6743 fi
6744 popdef([AC_MSG_ERROR])
6745 ])# _LT_PROG_FC
6746
6747 dnl aclocal-1.4 backwards compatibility:
6748 dnl AC_DEFUN([_LT_PROG_FC], [])
67497297
67507298
67517299 # _LT_LANG_FC_CONFIG([TAG])
67547302 # suitably defined. These variables are subsequently used by _LT_CONFIG
67557303 # to write the compiler configuration to `libtool'.
67567304 m4_defun([_LT_LANG_FC_CONFIG],
6757 [AC_REQUIRE([_LT_PROG_FC])dnl
6758 AC_LANG_PUSH(Fortran)
7305 [AC_LANG_PUSH(Fortran)
7306
7307 if test -z "$FC" || test "X$FC" = "Xno"; then
7308 _lt_disable_FC=yes
7309 fi
67597310
67607311 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
67617312 _LT_TAGVAR(allow_undefined_flag, $1)=
67657316 _LT_TAGVAR(hardcode_direct, $1)=no
67667317 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
67677318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6768 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
67697319 _LT_TAGVAR(hardcode_libdir_separator, $1)=
67707320 _LT_TAGVAR(hardcode_minus_L, $1)=no
67717321 _LT_TAGVAR(hardcode_automatic, $1)=no
67747324 _LT_TAGVAR(module_expsym_cmds, $1)=
67757325 _LT_TAGVAR(link_all_deplibs, $1)=unknown
67767326 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7327 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7328 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
67777329 _LT_TAGVAR(no_undefined_flag, $1)=
67787330 _LT_TAGVAR(whole_archive_flag_spec, $1)=
67797331 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
68137365 # Allow CC to be a program name with arguments.
68147366 lt_save_CC="$CC"
68157367 lt_save_GCC=$GCC
7368 lt_save_CFLAGS=$CFLAGS
68167369 CC=${FC-"f95"}
7370 CFLAGS=$FCFLAGS
68177371 compiler=$CC
68187372 GCC=$ac_cv_fc_compiler_gnu
68197373
68697423 fi # test -n "$compiler"
68707424
68717425 GCC=$lt_save_GCC
6872 CC="$lt_save_CC"
7426 CC=$lt_save_CC
7427 CFLAGS=$lt_save_CFLAGS
68737428 fi # test "$_lt_disable_FC" != yes
68747429
68757430 AC_LANG_POP
69067461 _LT_LINKER_BOILERPLATE
69077462
69087463 # Allow CC to be a program name with arguments.
6909 lt_save_CC="$CC"
7464 lt_save_CC=$CC
7465 lt_save_CFLAGS=$CFLAGS
69107466 lt_save_GCC=$GCC
69117467 GCC=yes
69127468 CC=${GCJ-"gcj"}
7469 CFLAGS=$GCJFLAGS
69137470 compiler=$CC
69147471 _LT_TAGVAR(compiler, $1)=$CC
69157472 _LT_TAGVAR(LD, $1)="$LD"
69197476 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
69207477
69217478 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7479 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7480 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
69227481
69237482 if test -n "$compiler"; then
69247483 _LT_COMPILER_NO_RTTI($1)
69347493 AC_LANG_RESTORE
69357494
69367495 GCC=$lt_save_GCC
6937 CC="$lt_save_CC"
7496 CC=$lt_save_CC
7497 CFLAGS=$lt_save_CFLAGS
69387498 ])# _LT_LANG_GCJ_CONFIG
7499
7500
7501 # _LT_LANG_GO_CONFIG([TAG])
7502 # --------------------------
7503 # Ensure that the configuration variables for the GNU Go compiler
7504 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7505 # to write the compiler configuration to `libtool'.
7506 m4_defun([_LT_LANG_GO_CONFIG],
7507 [AC_REQUIRE([LT_PROG_GO])dnl
7508 AC_LANG_SAVE
7509
7510 # Source file extension for Go test sources.
7511 ac_ext=go
7512
7513 # Object file extension for compiled Go test sources.
7514 objext=o
7515 _LT_TAGVAR(objext, $1)=$objext
7516
7517 # Code to be used in simple compile tests
7518 lt_simple_compile_test_code="package main; func main() { }"
7519
7520 # Code to be used in simple link tests
7521 lt_simple_link_test_code='package main; func main() { }'
7522
7523 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7524 _LT_TAG_COMPILER
7525
7526 # save warnings/boilerplate of simple test code
7527 _LT_COMPILER_BOILERPLATE
7528 _LT_LINKER_BOILERPLATE
7529
7530 # Allow CC to be a program name with arguments.
7531 lt_save_CC=$CC
7532 lt_save_CFLAGS=$CFLAGS
7533 lt_save_GCC=$GCC
7534 GCC=yes
7535 CC=${GOC-"gccgo"}
7536 CFLAGS=$GOFLAGS
7537 compiler=$CC
7538 _LT_TAGVAR(compiler, $1)=$CC
7539 _LT_TAGVAR(LD, $1)="$LD"
7540 _LT_CC_BASENAME([$compiler])
7541
7542 # Go did not exist at the time GCC didn't implicitly link libc in.
7543 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7544
7545 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7546 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7547 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7548
7549 if test -n "$compiler"; then
7550 _LT_COMPILER_NO_RTTI($1)
7551 _LT_COMPILER_PIC($1)
7552 _LT_COMPILER_C_O($1)
7553 _LT_COMPILER_FILE_LOCKS($1)
7554 _LT_LINKER_SHLIBS($1)
7555 _LT_LINKER_HARDCODE_LIBPATH($1)
7556
7557 _LT_CONFIG($1)
7558 fi
7559
7560 AC_LANG_RESTORE
7561
7562 GCC=$lt_save_GCC
7563 CC=$lt_save_CC
7564 CFLAGS=$lt_save_CFLAGS
7565 ])# _LT_LANG_GO_CONFIG
69397566
69407567
69417568 # _LT_LANG_RC_CONFIG([TAG])
69697596
69707597 # Allow CC to be a program name with arguments.
69717598 lt_save_CC="$CC"
7599 lt_save_CFLAGS=$CFLAGS
69727600 lt_save_GCC=$GCC
69737601 GCC=
69747602 CC=${RC-"windres"}
7603 CFLAGS=
69757604 compiler=$CC
69767605 _LT_TAGVAR(compiler, $1)=$CC
69777606 _LT_CC_BASENAME([$compiler])
69847613
69857614 GCC=$lt_save_GCC
69867615 AC_LANG_RESTORE
6987 CC="$lt_save_CC"
7616 CC=$lt_save_CC
7617 CFLAGS=$lt_save_CFLAGS
69887618 ])# _LT_LANG_RC_CONFIG
69897619
69907620
70027632 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
70037633 dnl aclocal-1.4 backwards compatibility:
70047634 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7635
7636
7637 # LT_PROG_GO
7638 # ----------
7639 AC_DEFUN([LT_PROG_GO],
7640 [AC_CHECK_TOOL(GOC, gccgo,)
7641 ])
70057642
70067643
70077644 # LT_PROG_RC
70437680 AC_SUBST([OBJDUMP])
70447681 ])
70457682
7683 # _LT_DECL_DLLTOOL
7684 # ----------------
7685 # Ensure DLLTOOL variable is set.
7686 m4_defun([_LT_DECL_DLLTOOL],
7687 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7688 test -z "$DLLTOOL" && DLLTOOL=dlltool
7689 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7690 AC_SUBST([DLLTOOL])
7691 ])
70467692
70477693 # _LT_DECL_SED
70487694 # ------------
71347780 # Try some XSI features
71357781 xsi_shell=no
71367782 ( _lt_dummy="a/b/c"
7137 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7138 = c,a/b,, \
7783 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7784 = c,a/b,b/c, \
71397785 && eval 'test $(( 1 + 1 )) -eq 2 \
71407786 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
71417787 && xsi_shell=yes
71747820 ])# _LT_CHECK_SHELL_FEATURES
71757821
71767822
7177 # _LT_PROG_XSI_SHELLFNS
7178 # ---------------------
7179 # Bourne and XSI compatible variants of some useful shell functions.
7180 m4_defun([_LT_PROG_XSI_SHELLFNS],
7181 [case $xsi_shell in
7182 yes)
7183 cat << \_LT_EOF >> "$cfgfile"
7184
7185 # func_dirname file append nondir_replacement
7186 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7187 # otherwise set result to NONDIR_REPLACEMENT.
7188 func_dirname ()
7189 {
7190 case ${1} in
7191 */*) func_dirname_result="${1%/*}${2}" ;;
7192 * ) func_dirname_result="${3}" ;;
7193 esac
7194 }
7195
7196 # func_basename file
7197 func_basename ()
7198 {
7199 func_basename_result="${1##*/}"
7200 }
7201
7202 # func_dirname_and_basename file append nondir_replacement
7203 # perform func_basename and func_dirname in a single function
7204 # call:
7205 # dirname: Compute the dirname of FILE. If nonempty,
7206 # add APPEND to the result, otherwise set result
7207 # to NONDIR_REPLACEMENT.
7208 # value returned in "$func_dirname_result"
7209 # basename: Compute filename of FILE.
7210 # value retuned in "$func_basename_result"
7211 # Implementation must be kept synchronized with func_dirname
7212 # and func_basename. For efficiency, we do not delegate to
7213 # those functions but instead duplicate the functionality here.
7214 func_dirname_and_basename ()
7215 {
7216 case ${1} in
7217 */*) func_dirname_result="${1%/*}${2}" ;;
7218 * ) func_dirname_result="${3}" ;;
7219 esac
7220 func_basename_result="${1##*/}"
7221 }
7222
7223 # func_stripname prefix suffix name
7224 # strip PREFIX and SUFFIX off of NAME.
7225 # PREFIX and SUFFIX must not contain globbing or regex special
7226 # characters, hashes, percent signs, but SUFFIX may contain a leading
7227 # dot (in which case that matches only a dot).
7228 func_stripname ()
7229 {
7230 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7231 # positional parameters, so assign one to ordinary parameter first.
7232 func_stripname_result=${3}
7233 func_stripname_result=${func_stripname_result#"${1}"}
7234 func_stripname_result=${func_stripname_result%"${2}"}
7235 }
7236
7237 # func_opt_split
7238 func_opt_split ()
7239 {
7240 func_opt_split_opt=${1%%=*}
7241 func_opt_split_arg=${1#*=}
7242 }
7243
7244 # func_lo2o object
7245 func_lo2o ()
7246 {
7247 case ${1} in
7248 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7249 *) func_lo2o_result=${1} ;;
7250 esac
7251 }
7252
7253 # func_xform libobj-or-source
7254 func_xform ()
7255 {
7256 func_xform_result=${1%.*}.lo
7257 }
7258
7259 # func_arith arithmetic-term...
7260 func_arith ()
7261 {
7262 func_arith_result=$(( $[*] ))
7263 }
7264
7265 # func_len string
7266 # STRING may not start with a hyphen.
7267 func_len ()
7268 {
7269 func_len_result=${#1}
7270 }
7271
7272 _LT_EOF
7823 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7824 # ------------------------------------------------------
7825 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7826 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7827 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7828 [dnl {
7829 sed -e '/^$1 ()$/,/^} # $1 /c\
7830 $1 ()\
7831 {\
7832 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7833 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7834 && mv -f "$cfgfile.tmp" "$cfgfile" \
7835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7836 test 0 -eq $? || _lt_function_replace_fail=:
7837 ])
7838
7839
7840 # _LT_PROG_REPLACE_SHELLFNS
7841 # -------------------------
7842 # Replace existing portable implementations of several shell functions with
7843 # equivalent extended shell implementations where those features are available..
7844 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7845 [if test x"$xsi_shell" = xyes; then
7846 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7847 case ${1} in
7848 */*) func_dirname_result="${1%/*}${2}" ;;
7849 * ) func_dirname_result="${3}" ;;
7850 esac])
7851
7852 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7853 func_basename_result="${1##*/}"])
7854
7855 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7856 case ${1} in
7857 */*) func_dirname_result="${1%/*}${2}" ;;
7858 * ) func_dirname_result="${3}" ;;
7859 esac
7860 func_basename_result="${1##*/}"])
7861
7862 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7863 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7864 # positional parameters, so assign one to ordinary parameter first.
7865 func_stripname_result=${3}
7866 func_stripname_result=${func_stripname_result#"${1}"}
7867 func_stripname_result=${func_stripname_result%"${2}"}])
7868
7869 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7870 func_split_long_opt_name=${1%%=*}
7871 func_split_long_opt_arg=${1#*=}])
7872
7873 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7874 func_split_short_opt_arg=${1#??}
7875 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7876
7877 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7878 case ${1} in
7879 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7880 *) func_lo2o_result=${1} ;;
7881 esac])
7882
7883 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7884
7885 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7886
7887 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7888 fi
7889
7890 if test x"$lt_shell_append" = xyes; then
7891 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7892
7893 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7894 func_quote_for_eval "${2}"
7895 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7896 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7897
7898 # Save a `func_append' function call where possible by direct use of '+='
7899 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7900 && mv -f "$cfgfile.tmp" "$cfgfile" \
7901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7902 test 0 -eq $? || _lt_function_replace_fail=:
7903 else
7904 # Save a `func_append' function call even when '+=' is not available
7905 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7906 && mv -f "$cfgfile.tmp" "$cfgfile" \
7907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7908 test 0 -eq $? || _lt_function_replace_fail=:
7909 fi
7910
7911 if test x"$_lt_function_replace_fail" = x":"; then
7912 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7913 fi
7914 ])
7915
7916 # _LT_PATH_CONVERSION_FUNCTIONS
7917 # -----------------------------
7918 # Determine which file name conversion functions should be used by
7919 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7920 # for certain cross-compile configurations and native mingw.
7921 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7922 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7923 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7924 AC_MSG_CHECKING([how to convert $build file names to $host format])
7925 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7926 [case $host in
7927 *-*-mingw* )
7928 case $build in
7929 *-*-mingw* ) # actually msys
7930 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7931 ;;
7932 *-*-cygwin* )
7933 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7934 ;;
7935 * ) # otherwise, assume *nix
7936 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7937 ;;
7938 esac
72737939 ;;
7274 *) # Bourne compatible functions.
7275 cat << \_LT_EOF >> "$cfgfile"
7276
7277 # func_dirname file append nondir_replacement
7278 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7279 # otherwise set result to NONDIR_REPLACEMENT.
7280 func_dirname ()
7281 {
7282 # Extract subdirectory from the argument.
7283 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7284 if test "X$func_dirname_result" = "X${1}"; then
7285 func_dirname_result="${3}"
7286 else
7287 func_dirname_result="$func_dirname_result${2}"
7288 fi
7289 }
7290
7291 # func_basename file
7292 func_basename ()
7293 {
7294 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7295 }
7296
7297 dnl func_dirname_and_basename
7298 dnl A portable version of this function is already defined in general.m4sh
7299 dnl so there is no need for it here.
7300
7301 # func_stripname prefix suffix name
7302 # strip PREFIX and SUFFIX off of NAME.
7303 # PREFIX and SUFFIX must not contain globbing or regex special
7304 # characters, hashes, percent signs, but SUFFIX may contain a leading
7305 # dot (in which case that matches only a dot).
7306 # func_strip_suffix prefix name
7307 func_stripname ()
7308 {
7309 case ${2} in
7310 .*) func_stripname_result=`$ECHO "X${3}" \
7311 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7312 *) func_stripname_result=`$ECHO "X${3}" \
7313 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7314 esac
7315 }
7316
7317 # sed scripts:
7318 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7319 my_sed_long_arg='1s/^-[[^=]]*=//'
7320
7321 # func_opt_split
7322 func_opt_split ()
7323 {
7324 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7325 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7326 }
7327
7328 # func_lo2o object
7329 func_lo2o ()
7330 {
7331 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7332 }
7333
7334 # func_xform libobj-or-source
7335 func_xform ()
7336 {
7337 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7338 }
7339
7340 # func_arith arithmetic-term...
7341 func_arith ()
7342 {
7343 func_arith_result=`expr "$[@]"`
7344 }
7345
7346 # func_len string
7347 # STRING may not start with a hyphen.
7348 func_len ()
7349 {
7350 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7351 }
7352
7353 _LT_EOF
7940 *-*-cygwin* )
7941 case $build in
7942 *-*-mingw* ) # actually msys
7943 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7944 ;;
7945 *-*-cygwin* )
7946 lt_cv_to_host_file_cmd=func_convert_file_noop
7947 ;;
7948 * ) # otherwise, assume *nix
7949 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7950 ;;
7951 esac
7952 ;;
7953 * ) # unhandled hosts (and "normal" native builds)
7954 lt_cv_to_host_file_cmd=func_convert_file_noop
7955 ;;
73547956 esac
7355
7356 case $lt_shell_append in
7357 yes)
7358 cat << \_LT_EOF >> "$cfgfile"
7359
7360 # func_append var value
7361 # Append VALUE to the end of shell variable VAR.
7362 func_append ()
7363 {
7364 eval "$[1]+=\$[2]"
7365 }
7366 _LT_EOF
7957 ])
7958 to_host_file_cmd=$lt_cv_to_host_file_cmd
7959 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7960 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7961 [0], [convert $build file names to $host format])dnl
7962
7963 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7964 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7965 [#assume ordinary cross tools, or native build.
7966 lt_cv_to_tool_file_cmd=func_convert_file_noop
7967 case $host in
7968 *-*-mingw* )
7969 case $build in
7970 *-*-mingw* ) # actually msys
7971 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7972 ;;
7973 esac
73677974 ;;
7368 *)
7369 cat << \_LT_EOF >> "$cfgfile"
7370
7371 # func_append var value
7372 # Append VALUE to the end of shell variable VAR.
7373 func_append ()
7374 {
7375 eval "$[1]=\$$[1]\$[2]"
7376 }
7377
7378 _LT_EOF
7379 ;;
7380 esac
7975 esac
73817976 ])
7977 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7978 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7979 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7980 [0], [convert $build files to toolchain format])dnl
7981 ])# _LT_PATH_CONVERSION_FUNCTIONS
73827982
73837983 # Helper functions for option handling. -*- Autoconf -*-
73847984 #
7385 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7985 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7986 # Inc.
73867987 # Written by Gary V. Vaughan, 2004
73877988 #
73887989 # This file is free software; the Free Software Foundation gives
73897990 # unlimited permission to copy and/or distribute it, with or without
73907991 # modifications, as long as this notice is preserved.
73917992
7392 # serial 6 ltoptions.m4
7993 # serial 7 ltoptions.m4
73937994
73947995 # This is to help aclocal find these macros, as it can't see m4_define.
73957996 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
75048105 [enable_win32_dll=yes
75058106
75068107 case $host in
7507 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8108 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
75088109 AC_CHECK_TOOL(AS, as, false)
75098110 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
75108111 AC_CHECK_TOOL(OBJDUMP, objdump, false)
75128113 esac
75138114
75148115 test -z "$AS" && AS=as
7515 _LT_DECL([], [AS], [0], [Assembler program])dnl
8116 _LT_DECL([], [AS], [1], [Assembler program])dnl
75168117
75178118 test -z "$DLLTOOL" && DLLTOOL=dlltool
7518 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8119 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
75198120
75208121 test -z "$OBJDUMP" && OBJDUMP=objdump
7521 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8122 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
75228123 ])# win32-dll
75238124
75248125 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
77048305 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
77058306 m4_define([_LT_WITH_PIC],
77068307 [AC_ARG_WITH([pic],
7707 [AS_HELP_STRING([--with-pic],
8308 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
77088309 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7709 [pic_mode="$withval"],
8310 [lt_p=${PACKAGE-default}
8311 case $withval in
8312 yes|no) pic_mode=$withval ;;
8313 *)
8314 pic_mode=default
8315 # Look at the argument we got. We use all the common list separators.
8316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8317 for lt_pkg in $withval; do
8318 IFS="$lt_save_ifs"
8319 if test "X$lt_pkg" = "X$lt_p"; then
8320 pic_mode=yes
8321 fi
8322 done
8323 IFS="$lt_save_ifs"
8324 ;;
8325 esac],
77108326 [pic_mode=default])
77118327
77128328 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
78768492 # unlimited permission to copy and/or distribute it, with or without
78778493 # modifications, as long as this notice is preserved.
78788494
7879 # Generated from ltversion.in.
7880
7881 # serial 3017 ltversion.m4
8495 # @configure_input@
8496
8497 # serial 3337 ltversion.m4
78828498 # This file is part of GNU Libtool
78838499
7884 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
7885 m4_define([LT_PACKAGE_REVISION], [1.3017])
8500 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8501 m4_define([LT_PACKAGE_REVISION], [1.3337])
78868502
78878503 AC_DEFUN([LTVERSION_VERSION],
7888 [macro_version='2.2.6b'
7889 macro_revision='1.3017'
8504 [macro_version='2.4.2'
8505 macro_revision='1.3337'
78908506 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
78918507 _LT_DECL(, macro_revision, 0)
78928508 ])
78938509
78948510 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
78958511 #
7896 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8512 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
78978513 # Written by Scott James Remnant, 2004.
78988514 #
78998515 # This file is free software; the Free Software Foundation gives
79008516 # unlimited permission to copy and/or distribute it, with or without
79018517 # modifications, as long as this notice is preserved.
79028518
7903 # serial 4 lt~obsolete.m4
8519 # serial 5 lt~obsolete.m4
79048520
79058521 # These exist entirely to fool aclocal when bootstrapping libtool.
79068522 #
79708586 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
79718587 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
79728588 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7973 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
79748589 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
79758590 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
79768591 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
79838598 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
79848599 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
79858600 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7986
7987 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8601 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8602 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8603 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8604 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8605 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8606 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8607 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8608
8609 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
8610 # Foundation, Inc.
79888611 #
79898612 # This file is free software; the Free Software Foundation
79908613 # gives unlimited permission to copy and/or distribute it,
79918614 # with or without modifications, as long as this notice is preserved.
8615
8616 # serial 1
79928617
79938618 # AM_AUTOMAKE_VERSION(VERSION)
79948619 # ----------------------------
79998624 [am__api_version='1.11'
80008625 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
80018626 dnl require some minimum version. Point them to the right macro.
8002 m4_if([$1], [1.11.1], [],
8627 m4_if([$1], [1.11.3], [],
80038628 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
80048629 ])
80058630
80158640 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
80168641 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
80178642 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8018 [AM_AUTOMAKE_VERSION([1.11.1])dnl
8643 [AM_AUTOMAKE_VERSION([1.11.3])dnl
80198644 m4_ifndef([AC_AUTOCONF_VERSION],
80208645 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
80218646 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
80228647
80238648 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
80248649
8025 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8650 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
80268651 #
80278652 # This file is free software; the Free Software Foundation
80288653 # gives unlimited permission to copy and/or distribute it,
80298654 # with or without modifications, as long as this notice is preserved.
8655
8656 # serial 1
80308657
80318658 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
80328659 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
81098736 Usually this means the macro was only invoked conditionally.]])
81108737 fi])])
81118738
8112 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8113 # Free Software Foundation, Inc.
8739 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
8740 # 2010, 2011 Free Software Foundation, Inc.
81148741 #
81158742 # This file is free software; the Free Software Foundation
81168743 # gives unlimited permission to copy and/or distribute it,
81178744 # with or without modifications, as long as this notice is preserved.
81188745
8119 # serial 10
8746 # serial 12
81208747
81218748 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
81228749 # written in clear, in which case automake, when reading aclocal.m4,
81568783 # instance it was reported that on HP-UX the gcc test will end up
81578784 # making a dummy file named `D' -- because `-MD' means `put the output
81588785 # in D'.
8786 rm -rf conftest.dir
81598787 mkdir conftest.dir
81608788 # Copy depcomp to subdir because otherwise we won't find it if we're
81618789 # using a relative directory.
82208848 break
82218849 fi
82228850 ;;
8223 msvisualcpp | msvcmsys)
8851 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
82248852 # This compiler won't grok `-c -o', but also, the minuso test has
82258853 # not run yet. These depmodes are late enough in the game, and
82268854 # so weak that their functioning should not be impacted.
82858913 if test "x$enable_dependency_tracking" != xno; then
82868914 am_depcomp="$ac_aux_dir/depcomp"
82878915 AMDEPBACKSLASH='\'
8916 am__nodep='_no'
82888917 fi
82898918 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
82908919 AC_SUBST([AMDEPBACKSLASH])dnl
82918920 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
8921 AC_SUBST([am__nodep])dnl
8922 _AM_SUBST_NOTMAKE([am__nodep])dnl
82928923 ])
82938924
82948925 # Generate code to set up dependency tracking. -*- Autoconf -*-
85109141 done
85119142 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
85129143
8513 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9144 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9145 # Inc.
85149146 #
85159147 # This file is free software; the Free Software Foundation
85169148 # gives unlimited permission to copy and/or distribute it,
85179149 # with or without modifications, as long as this notice is preserved.
9150
9151 # serial 1
85189152
85199153 # AM_PROG_INSTALL_SH
85209154 # ------------------
85559189 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
85569190 # From Jim Meyering
85579191
8558 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8559 # Free Software Foundation, Inc.
9192 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
9193 # 2011 Free Software Foundation, Inc.
85609194 #
85619195 # This file is free software; the Free Software Foundation
85629196 # gives unlimited permission to copy and/or distribute it,
85769210 [disable], [m4_define([am_maintainer_other], [enable])],
85779211 [m4_define([am_maintainer_other], [enable])
85789212 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
8579 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9213 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
85809214 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
85819215 AC_ARG_ENABLE([maintainer-mode],
85829216 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
86879321 fi
86889322 ])
86899323
8690 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9324 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
9325 # Inc.
86919326 #
86929327 # This file is free software; the Free Software Foundation
86939328 # gives unlimited permission to copy and/or distribute it,
86949329 # with or without modifications, as long as this notice is preserved.
9330
9331 # serial 1
86959332
86969333 # AM_PROG_MKDIR_P
86979334 # ---------------
87159352
87169353 # Helper functions for option handling. -*- Autoconf -*-
87179354
8718 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9355 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
9356 # Foundation, Inc.
87199357 #
87209358 # This file is free software; the Free Software Foundation
87219359 # gives unlimited permission to copy and/or distribute it,
87229360 # with or without modifications, as long as this notice is preserved.
87239361
8724 # serial 4
9362 # serial 5
87259363
87269364 # _AM_MANGLE_OPTION(NAME)
87279365 # -----------------------
87299367 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
87309368
87319369 # _AM_SET_OPTION(NAME)
8732 # ------------------------------
9370 # --------------------
87339371 # Set option NAME. Presently that only means defining a flag for this option.
87349372 AC_DEFUN([_AM_SET_OPTION],
87359373 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
87369374
87379375 # _AM_SET_OPTIONS(OPTIONS)
8738 # ----------------------------------
9376 # ------------------------
87399377 # OPTIONS is a space-separated list of Automake options.
87409378 AC_DEFUN([_AM_SET_OPTIONS],
87419379 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
88119449 fi
88129450 AC_MSG_RESULT(yes)])
88139451
8814 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9452 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
88159453 #
88169454 # This file is free software; the Free Software Foundation
88179455 # gives unlimited permission to copy and/or distribute it,
88189456 # with or without modifications, as long as this notice is preserved.
9457
9458 # serial 1
88199459
88209460 # AM_PROG_INSTALL_STRIP
88219461 # ---------------------
88399479 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
88409480 AC_SUBST([INSTALL_STRIP_PROGRAM])])
88419481
8842 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9482 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
88439483 #
88449484 # This file is free software; the Free Software Foundation
88459485 # gives unlimited permission to copy and/or distribute it,
88469486 # with or without modifications, as long as this notice is preserved.
88479487
8848 # serial 2
9488 # serial 3
88499489
88509490 # _AM_SUBST_NOTMAKE(VARIABLE)
88519491 # ---------------------------
88549494 AC_DEFUN([_AM_SUBST_NOTMAKE])
88559495
88569496 # AM_SUBST_NOTMAKE(VARIABLE)
8857 # ---------------------------
9497 # --------------------------
88589498 # Public sister of _AM_SUBST_NOTMAKE.
88599499 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
88609500
88619501 # Check how to create a tarball. -*- Autoconf -*-
88629502
8863 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9503 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
88649504 #
88659505 # This file is free software; the Free Software Foundation
88669506 # gives unlimited permission to copy and/or distribute it,
88829522 # a tarball read from stdin.
88839523 # $(am__untar) < result.tar
88849524 AC_DEFUN([_AM_PROG_TAR],
8885 [# Always define AMTAR for backward compatibility.
8886 AM_MISSING_PROG([AMTAR], [tar])
9525 [# Always define AMTAR for backward compatibility. Yes, it's still used
9526 # in the wild :-( We should find a proper way to deprecate it ...
9527 AC_SUBST([AMTAR], ['$${TAR-tar}'])
88879528 m4_if([$1], [v7],
8888 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9529 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
88899530 [m4_case([$1], [ustar],, [pax],,
88909531 [m4_fatal([Unknown tar format])])
88919532 AC_MSG_CHECKING([how to create a $1 tar archive])
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-12-30'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-01-01'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
5656
5757 Originally written by Per Bothner.
5858 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
60 Software Foundation, Inc.
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
60 Free Software Foundation, Inc.
6161
6262 This is free software; see the source for copying conditions. There is NO
6363 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
144144 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
145145 *:NetBSD:*:*)
146146 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148148 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149149 # switched to ELF, *-*-netbsd* would select the old
150150 # object file format. This provides both forward
180180 fi
181181 ;;
182182 *)
183 os=netbsd
183 os=netbsd
184184 ;;
185185 esac
186186 # The OS release
223223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224224 ;;
225225 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227227 ;;
228228 esac
229229 # According to Compaq, /usr/sbin/psrinfo has been available on
269269 # A Xn.n version is an unreleased experimental baselevel.
270270 # 1.2 uses "1.2" for uname -r.
271271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 exit ;;
272 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
273 exitcode=$?
274 trap '' 0
275 exit $exitcode ;;
273276 Alpha\ *:Windows_NT*:*)
274277 # How do we know it's Interix rather than the generic POSIX subsystem?
275278 # Should we change UNAME_MACHINE based on the output of uname instead
295298 echo s390-ibm-zvmoe
296299 exit ;;
297300 *:OS400:*:*)
298 echo powerpc-ibm-os400
301 echo powerpc-ibm-os400
299302 exit ;;
300303 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301304 echo arm-acorn-riscix${UNAME_RELEASE}
394397 # MiNT. But MiNT is downward compatible to TOS, so this should
395398 # be no problem.
396399 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
397 echo m68k-atari-mint${UNAME_RELEASE}
400 echo m68k-atari-mint${UNAME_RELEASE}
398401 exit ;;
399402 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
400403 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
404 exit ;;
402405 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
406 echo m68k-atari-mint${UNAME_RELEASE}
404407 exit ;;
405408 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406 echo m68k-milan-mint${UNAME_RELEASE}
407 exit ;;
409 echo m68k-milan-mint${UNAME_RELEASE}
410 exit ;;
408411 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
409 echo m68k-hades-mint${UNAME_RELEASE}
410 exit ;;
412 echo m68k-hades-mint${UNAME_RELEASE}
413 exit ;;
411414 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
412 echo m68k-unknown-mint${UNAME_RELEASE}
413 exit ;;
415 echo m68k-unknown-mint${UNAME_RELEASE}
416 exit ;;
414417 m68k:machten:*:*)
415418 echo m68k-apple-machten${UNAME_RELEASE}
416419 exit ;;
480483 echo m88k-motorola-sysv3
481484 exit ;;
482485 AViiON:dgux:*:*)
483 # DG/UX returns AViiON for all architectures
484 UNAME_PROCESSOR=`/usr/bin/uname -p`
486 # DG/UX returns AViiON for all architectures
487 UNAME_PROCESSOR=`/usr/bin/uname -p`
485488 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
486489 then
487490 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
494497 else
495498 echo i586-dg-dgux${UNAME_RELEASE}
496499 fi
497 exit ;;
500 exit ;;
498501 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
499502 echo m88k-dolphin-sysv3
500503 exit ;;
551554 echo rs6000-ibm-aix3.2
552555 fi
553556 exit ;;
554 *:AIX:*:[456])
557 *:AIX:*:[4567])
555558 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
556559 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
557560 IBM_ARCH=rs6000
594597 9000/[678][0-9][0-9])
595598 if [ -x /usr/bin/getconf ]; then
596599 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598 case "${sc_cpu_version}" in
599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601 532) # CPU_PA_RISC2_0
602 case "${sc_kernel_bits}" in
603 32) HP_ARCH="hppa2.0n" ;;
604 64) HP_ARCH="hppa2.0w" ;;
600 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
601 case "${sc_cpu_version}" in
602 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
603 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
604 532) # CPU_PA_RISC2_0
605 case "${sc_kernel_bits}" in
606 32) HP_ARCH="hppa2.0n" ;;
607 64) HP_ARCH="hppa2.0w" ;;
605608 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606 esac ;;
607 esac
609 esac ;;
610 esac
608611 fi
609612 if [ "${HP_ARCH}" = "" ]; then
610613 eval $set_cc_for_build
611 sed 's/^ //' << EOF >$dummy.c
612
613 #define _HPUX_SOURCE
614 #include <stdlib.h>
615 #include <unistd.h>
616
617 int main ()
618 {
619 #if defined(_SC_KERNEL_BITS)
620 long bits = sysconf(_SC_KERNEL_BITS);
621 #endif
622 long cpu = sysconf (_SC_CPU_VERSION);
623
624 switch (cpu)
625 {
626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628 case CPU_PA_RISC2_0:
629 #if defined(_SC_KERNEL_BITS)
630 switch (bits)
631 {
632 case 64: puts ("hppa2.0w"); break;
633 case 32: puts ("hppa2.0n"); break;
634 default: puts ("hppa2.0"); break;
635 } break;
636 #else /* !defined(_SC_KERNEL_BITS) */
637 puts ("hppa2.0"); break;
638 #endif
639 default: puts ("hppa1.0"); break;
640 }
641 exit (0);
642 }
614 sed 's/^ //' << EOF >$dummy.c
615
616 #define _HPUX_SOURCE
617 #include <stdlib.h>
618 #include <unistd.h>
619
620 int main ()
621 {
622 #if defined(_SC_KERNEL_BITS)
623 long bits = sysconf(_SC_KERNEL_BITS);
624 #endif
625 long cpu = sysconf (_SC_CPU_VERSION);
626
627 switch (cpu)
628 {
629 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
630 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631 case CPU_PA_RISC2_0:
632 #if defined(_SC_KERNEL_BITS)
633 switch (bits)
634 {
635 case 64: puts ("hppa2.0w"); break;
636 case 32: puts ("hppa2.0n"); break;
637 default: puts ("hppa2.0"); break;
638 } break;
639 #else /* !defined(_SC_KERNEL_BITS) */
640 puts ("hppa2.0"); break;
641 #endif
642 default: puts ("hppa1.0"); break;
643 }
644 exit (0);
645 }
643646 EOF
644647 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
645648 test -z "$HP_ARCH" && HP_ARCH=hppa
730733 exit ;;
731734 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
732735 echo c1-convex-bsd
733 exit ;;
736 exit ;;
734737 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
735738 if getsysinfo -f scalar_acc
736739 then echo c32-convex-bsd
737740 else echo c2-convex-bsd
738741 fi
739 exit ;;
742 exit ;;
740743 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
741744 echo c34-convex-bsd
742 exit ;;
745 exit ;;
743746 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
744747 echo c38-convex-bsd
745 exit ;;
748 exit ;;
746749 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
747750 echo c4-convex-bsd
748 exit ;;
751 exit ;;
749752 CRAY*Y-MP:*:*:*)
750753 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
751754 exit ;;
769772 exit ;;
770773 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
771774 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
772 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
773 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
774 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
775 exit ;;
775 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
776 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
777 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 exit ;;
776779 5000:UNIX_System_V:4.*:*)
777 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
778 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
782 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780783 exit ;;
781784 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
782785 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
788791 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
789792 exit ;;
790793 *:FreeBSD:*:*)
791 case ${UNAME_MACHINE} in
792 pc98)
793 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794 UNAME_PROCESSOR=`/usr/bin/uname -p`
795 case ${UNAME_PROCESSOR} in
794796 amd64)
795797 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796798 *)
797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798800 esac
799801 exit ;;
800802 i*:CYGWIN*:*)
803805 *:MINGW*:*)
804806 echo ${UNAME_MACHINE}-pc-mingw32
805807 exit ;;
808 i*:MSYS*:*)
809 echo ${UNAME_MACHINE}-pc-msys
810 exit ;;
806811 i*:windows32*:*)
807 # uname -m includes "-pc" on this system.
808 echo ${UNAME_MACHINE}-mingw32
812 # uname -m includes "-pc" on this system.
813 echo ${UNAME_MACHINE}-mingw32
809814 exit ;;
810815 i*:PW*:*)
811816 echo ${UNAME_MACHINE}-pc-pw32
812817 exit ;;
813818 *:Interix*:*)
814 case ${UNAME_MACHINE} in
819 case ${UNAME_MACHINE} in
815820 x86)
816821 echo i586-pc-interix${UNAME_RELEASE}
817822 exit ;;
866871 EV6) UNAME_MACHINE=alphaev6 ;;
867872 EV67) UNAME_MACHINE=alphaev67 ;;
868873 EV68*) UNAME_MACHINE=alphaev68 ;;
869 esac
874 esac
870875 objdump --private-headers /bin/sh | grep -q ld.so.1
871876 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
872877 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
878883 then
879884 echo ${UNAME_MACHINE}-unknown-linux-gnu
880885 else
881 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
886 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
887 | grep -q __ARM_PCS_VFP
888 then
889 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
890 else
891 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
892 fi
882893 fi
883894 exit ;;
884895 avr32*:Linux:*:*)
885896 echo ${UNAME_MACHINE}-unknown-linux-gnu
886897 exit ;;
887898 cris:Linux:*:*)
888 echo cris-axis-linux-gnu
899 echo ${UNAME_MACHINE}-axis-linux-gnu
889900 exit ;;
890901 crisv32:Linux:*:*)
891 echo crisv32-axis-linux-gnu
902 echo ${UNAME_MACHINE}-axis-linux-gnu
892903 exit ;;
893904 frv:Linux:*:*)
894 echo frv-unknown-linux-gnu
905 echo ${UNAME_MACHINE}-unknown-linux-gnu
906 exit ;;
907 hexagon:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-gnu
895909 exit ;;
896910 i*86:Linux:*:*)
897911 LIBC=gnu
933947 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
934948 ;;
935949 or32:Linux:*:*)
936 echo or32-unknown-linux-gnu
950 echo ${UNAME_MACHINE}-unknown-linux-gnu
937951 exit ;;
938952 padre:Linux:*:*)
939953 echo sparc-unknown-linux-gnu
959973 echo ${UNAME_MACHINE}-ibm-linux
960974 exit ;;
961975 sh64*:Linux:*:*)
962 echo ${UNAME_MACHINE}-unknown-linux-gnu
976 echo ${UNAME_MACHINE}-unknown-linux-gnu
963977 exit ;;
964978 sh*:Linux:*:*)
965979 echo ${UNAME_MACHINE}-unknown-linux-gnu
967981 sparc:Linux:*:* | sparc64:Linux:*:*)
968982 echo ${UNAME_MACHINE}-unknown-linux-gnu
969983 exit ;;
984 tile*:Linux:*:*)
985 echo ${UNAME_MACHINE}-unknown-linux-gnu
986 exit ;;
970987 vax:Linux:*:*)
971988 echo ${UNAME_MACHINE}-dec-linux-gnu
972989 exit ;;
973990 x86_64:Linux:*:*)
974 echo x86_64-unknown-linux-gnu
991 echo ${UNAME_MACHINE}-unknown-linux-gnu
975992 exit ;;
976993 xtensa*:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-gnu
994 echo ${UNAME_MACHINE}-unknown-linux-gnu
978995 exit ;;
979996 i*86:DYNIX/ptx:4*:*)
980997 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9831000 echo i386-sequent-sysv4
9841001 exit ;;
9851002 i*86:UNIX_SV:4.2MP:2.*)
986 # Unixware is an offshoot of SVR4, but it has its own version
987 # number series starting with 2...
988 # I am not positive that other SVR4 systems won't match this,
1003 # Unixware is an offshoot of SVR4, but it has its own version
1004 # number series starting with 2...
1005 # I am not positive that other SVR4 systems won't match this,
9891006 # I just have to hope. -- rms.
990 # Use sysv4.2uw... so that sysv4* matches it.
1007 # Use sysv4.2uw... so that sysv4* matches it.
9911008 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9921009 exit ;;
9931010 i*86:OS/2:*:*)
10191036 fi
10201037 exit ;;
10211038 i*86:*:5:[678]*)
1022 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1039 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10231040 case `/bin/uname -X | grep "^Machine"` in
10241041 *486*) UNAME_MACHINE=i486 ;;
10251042 *Pentium) UNAME_MACHINE=i586 ;;
10471064 exit ;;
10481065 pc:*:*:*)
10491066 # Left here for compatibility:
1050 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1051 # the processor, so we play safe by assuming i586.
1067 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1068 # the processor, so we play safe by assuming i586.
10521069 # Note: whatever this is, it MUST be the same as what config.sub
10531070 # prints for the "djgpp" host, or else GDB configury will decide that
10541071 # this is a cross-build.
10551072 echo i586-pc-msdosdjgpp
1056 exit ;;
1073 exit ;;
10571074 Intel:Mach:3*:*)
10581075 echo i386-pc-mach3
10591076 exit ;;
10881105 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
10891106 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10901107 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1091 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1092 && { echo i486-ncr-sysv4; exit; } ;;
1108 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1109 && { echo i486-ncr-sysv4; exit; } ;;
10931110 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
10941111 OS_REL='.3'
10951112 test -r /etc/.relid \
11321149 echo ns32k-sni-sysv
11331150 fi
11341151 exit ;;
1135 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1136 # says <Richard.M.Bartel@ccMail.Census.GOV>
1137 echo i586-unisys-sysv4
1138 exit ;;
1152 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1153 # says <Richard.M.Bartel@ccMail.Census.GOV>
1154 echo i586-unisys-sysv4
1155 exit ;;
11391156 *:UNIX_System_V:4*:FTX*)
11401157 # From Gerald Hewes <hewes@openmarket.com>.
11411158 # How about differentiating between stratus architectures? -djm
11611178 exit ;;
11621179 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11631180 if [ -d /usr/nec ]; then
1164 echo mips-nec-sysv${UNAME_RELEASE}
1181 echo mips-nec-sysv${UNAME_RELEASE}
11651182 else
1166 echo mips-unknown-sysv${UNAME_RELEASE}
1167 fi
1168 exit ;;
1183 echo mips-unknown-sysv${UNAME_RELEASE}
1184 fi
1185 exit ;;
11691186 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11701187 echo powerpc-be-beos
11711188 exit ;;
12301247 *:QNX:*:4*)
12311248 echo i386-pc-qnx
12321249 exit ;;
1250 NEO-?:NONSTOP_KERNEL:*:*)
1251 echo neo-tandem-nsk${UNAME_RELEASE}
1252 exit ;;
12331253 NSE-?:NONSTOP_KERNEL:*:*)
12341254 echo nse-tandem-nsk${UNAME_RELEASE}
12351255 exit ;;
12751295 echo pdp10-unknown-its
12761296 exit ;;
12771297 SEI:*:*:SEIUX)
1278 echo mips-sei-seiux${UNAME_RELEASE}
1298 echo mips-sei-seiux${UNAME_RELEASE}
12791299 exit ;;
12801300 *:DragonFly:*:*)
12811301 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
12821302 exit ;;
12831303 *:*VMS:*:*)
1284 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1304 UNAME_MACHINE=`(uname -p) 2>/dev/null`
12851305 case "${UNAME_MACHINE}" in
12861306 A*) echo alpha-dec-vms ; exit ;;
12871307 I*) echo ia64-dec-vms ; exit ;;
13211341 #include <sys/param.h>
13221342 printf ("m68k-sony-newsos%s\n",
13231343 #ifdef NEWSOS4
1324 "4"
1344 "4"
13251345 #else
1326 ""
1327 #endif
1328 ); exit (0);
1346 ""
1347 #endif
1348 ); exit (0);
13291349 #endif
13301350 #endif
13311351
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2010-01-22'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-01-01'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
7575 GNU config.sub ($timestamp)
7676
7777 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
79 Software Foundation, Inc.
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
79 Free Software Foundation, Inc.
8080
8181 This is free software; see the source for copying conditions. There is NO
8282 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
123123 # Here we must recognize all the valid KERNEL-OS combinations.
124124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125125 case $maybe_os in
126 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
127 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
126 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
127 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
128 knetbsd*-gnu* | netbsd*-gnu* | \
128129 kopensolaris*-gnu* | \
129130 storm-chaos* | os2-emx* | rtmk-nova*)
130131 os=-$maybe_os
156157 os=
157158 basic_machine=$1
158159 ;;
159 -bluegene*)
160 os=-cnk
160 -bluegene*)
161 os=-cnk
161162 ;;
162163 -sim | -cisco | -oki | -wec | -winbond)
163164 os=
173174 os=-chorusos
174175 basic_machine=$1
175176 ;;
176 -chorusrdb)
177 os=-chorusrdb
177 -chorusrdb)
178 os=-chorusrdb
178179 basic_machine=$1
179 ;;
180 ;;
180181 -hiux*)
181182 os=-hiuxwe2
182183 ;;
249250 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
250251 | am33_2.0 \
251252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
253 | be32 | be64 \
252254 | bfin \
253255 | c4x | clipper \
254256 | d10v | d30v | dlx | dsp16xx \
257 | epiphany \
255258 | fido | fr30 | frv \
256259 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
260 | hexagon \
257261 | i370 | i860 | i960 | ia64 \
258262 | ip2k | iq2000 \
263 | le32 | le64 \
259264 | lm32 \
260265 | m32c | m32r | m32rle | m68000 | m68k | m88k \
261266 | maxq | mb | microblaze | mcore | mep | metag \
281286 | moxie \
282287 | mt \
283288 | msp430 \
289 | nds32 | nds32le | nds32be \
284290 | nios | nios2 \
285291 | ns16k | ns32k \
292 | open8 \
286293 | or32 \
287294 | pdp10 | pdp11 | pj | pjl \
288 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
295 | powerpc | powerpc64 | powerpc64le | powerpcle \
289296 | pyramid \
290 | rx \
297 | rl78 | rx \
291298 | score \
292299 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293300 | sh64 | sh64le \
294301 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295302 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296 | spu | strongarm \
297 | tahoe | thumb | tic4x | tic80 | tron \
303 | spu \
304 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
298305 | ubicom32 \
299 | v850 | v850e \
306 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
300307 | we32k \
301 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
308 | x86 | xc16x | xstormy16 | xtensa \
302309 | z8k | z80)
303310 basic_machine=$basic_machine-unknown
304311 ;;
312 c54x)
313 basic_machine=tic54x-unknown
314 ;;
315 c55x)
316 basic_machine=tic55x-unknown
317 ;;
318 c6x)
319 basic_machine=tic6x-unknown
320 ;;
305321 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
306 # Motorola 68HC11/12.
307322 basic_machine=$basic_machine-unknown
308323 os=-none
309324 ;;
311326 ;;
312327 ms1)
313328 basic_machine=mt-unknown
329 ;;
330
331 strongarm | thumb | xscale)
332 basic_machine=arm-unknown
333 ;;
334
335 xscaleeb)
336 basic_machine=armeb-unknown
337 ;;
338
339 xscaleel)
340 basic_machine=armel-unknown
314341 ;;
315342
316343 # We use `pc' rather than `unknown'
332359 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
333360 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
334361 | avr-* | avr32-* \
362 | be32-* | be64-* \
335363 | bfin-* | bs2000-* \
336 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
364 | c[123]* | c30-* | [cjt]90-* | c4x-* \
337365 | clipper-* | craynv-* | cydra-* \
338366 | d10v-* | d30v-* | dlx-* \
339367 | elxsi-* \
340368 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
341369 | h8300-* | h8500-* \
342370 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
371 | hexagon-* \
343372 | i*86-* | i860-* | i960-* | ia64-* \
344373 | ip2k-* | iq2000-* \
374 | le32-* | le64-* \
345375 | lm32-* \
346376 | m32c-* | m32r-* | m32rle-* \
347377 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
367397 | mmix-* \
368398 | mt-* \
369399 | msp430-* \
400 | nds32-* | nds32le-* | nds32be-* \
370401 | nios-* | nios2-* \
371402 | none-* | np1-* | ns16k-* | ns32k-* \
403 | open8-* \
372404 | orion-* \
373405 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
374 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
406 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
375407 | pyramid-* \
376 | romp-* | rs6000-* | rx-* \
408 | rl78-* | romp-* | rs6000-* | rx-* \
377409 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
378410 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
379411 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
380412 | sparclite-* \
381 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
382 | tahoe-* | thumb-* \
413 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
414 | tahoe-* \
383415 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
384 | tile-* | tilegx-* \
416 | tile*-* \
385417 | tron-* \
386418 | ubicom32-* \
387 | v850-* | v850e-* | vax-* \
419 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
420 | vax-* \
388421 | we32k-* \
389 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
422 | x86-* | x86_64-* | xc16x-* | xps100-* \
390423 | xstormy16-* | xtensa*-* \
391424 | ymp-* \
392425 | z8k-* | z80-*)
411444 basic_machine=a29k-amd
412445 os=-udi
413446 ;;
414 abacus)
447 abacus)
415448 basic_machine=abacus-unknown
416449 ;;
417450 adobe68k)
481514 basic_machine=powerpc-ibm
482515 os=-cnk
483516 ;;
517 c54x-*)
518 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
519 ;;
520 c55x-*)
521 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
522 ;;
523 c6x-*)
524 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
525 ;;
484526 c90)
485527 basic_machine=c90-cray
486528 os=-unicos
487529 ;;
488 cegcc)
530 cegcc)
489531 basic_machine=arm-unknown
490532 os=-cegcc
491533 ;;
517559 basic_machine=craynv-cray
518560 os=-unicosmp
519561 ;;
520 cr16)
562 cr16 | cr16-*)
521563 basic_machine=cr16-unknown
522564 os=-elf
523565 ;;
675717 i370-ibm* | ibm*)
676718 basic_machine=i370-ibm
677719 ;;
678 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
679720 i*86v32)
680721 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
681722 os=-sysv32
733774 basic_machine=ns32k-utek
734775 os=-sysv
735776 ;;
736 microblaze)
777 microblaze)
737778 basic_machine=microblaze-xilinx
738779 ;;
739780 mingw32)
772813 ms1-*)
773814 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
774815 ;;
816 msys)
817 basic_machine=i386-pc
818 os=-msys
819 ;;
775820 mvs)
776821 basic_machine=i370-ibm
777822 os=-mvs
823 ;;
824 nacl)
825 basic_machine=le32-unknown
826 os=-nacl
778827 ;;
779828 ncr3000)
780829 basic_machine=i486-ncr
840889 np1)
841890 basic_machine=np1-gould
842891 ;;
892 neo-tandem)
893 basic_machine=neo-tandem
894 ;;
895 nse-tandem)
896 basic_machine=nse-tandem
897 ;;
843898 nsr-tandem)
844899 basic_machine=nsr-tandem
845900 ;;
922977 ;;
923978 power) basic_machine=power-ibm
924979 ;;
925 ppc) basic_machine=powerpc-unknown
926 ;;
927 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
980 ppc | ppcbe) basic_machine=powerpc-unknown
981 ;;
982 ppc-* | ppcbe-*)
983 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
928984 ;;
929985 ppcle | powerpclittle | ppc-le | powerpc-little)
930986 basic_machine=powerpcle-unknown
10181074 basic_machine=i860-stratus
10191075 os=-sysv4
10201076 ;;
1077 strongarm-* | thumb-*)
1078 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1079 ;;
10211080 sun2)
10221081 basic_machine=m68000-sun
10231082 ;;
10741133 basic_machine=t90-cray
10751134 os=-unicos
10761135 ;;
1077 tic54x | c54x*)
1078 basic_machine=tic54x-unknown
1079 os=-coff
1080 ;;
1081 tic55x | c55x*)
1082 basic_machine=tic55x-unknown
1083 os=-coff
1084 ;;
1085 tic6x | c6x*)
1086 basic_machine=tic6x-unknown
1087 os=-coff
1088 ;;
1089 # This must be matched before tile*.
1090 tilegx*)
1091 basic_machine=tilegx-unknown
1092 os=-linux-gnu
1093 ;;
10941136 tile*)
1095 basic_machine=tile-unknown
1137 basic_machine=$basic_machine-unknown
10961138 os=-linux-gnu
10971139 ;;
10981140 tx39)
11611203 ;;
11621204 xps | xps100)
11631205 basic_machine=xps100-honeywell
1206 ;;
1207 xscale-* | xscalee[bl]-*)
1208 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11641209 ;;
11651210 ymp)
11661211 basic_machine=ymp-cray
12591304 if [ x"$os" != x"" ]
12601305 then
12611306 case $os in
1262 # First match some system type aliases
1263 # that might get confused with valid system types.
1307 # First match some system type aliases
1308 # that might get confused with valid system types.
12641309 # -solaris* is a basic system type, with this one exception.
1265 -auroraux)
1266 os=-auroraux
1310 -auroraux)
1311 os=-auroraux
12671312 ;;
12681313 -solaris1 | -solaris1.*)
12691314 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12991344 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13001345 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13011346 | -chorusos* | -chorusrdb* | -cegcc* \
1302 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1303 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1347 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1348 | -mingw32* | -linux-gnu* | -linux-android* \
1349 | -linux-newlib* | -linux-uclibc* \
13041350 | -uxpv* | -beos* | -mpeix* | -udk* \
13051351 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13061352 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13471393 -opened*)
13481394 os=-openedition
13491395 ;;
1350 -os400*)
1396 -os400*)
13511397 os=-os400
13521398 ;;
13531399 -wince*)
13961442 -sinix*)
13971443 os=-sysv4
13981444 ;;
1399 -tpf*)
1445 -tpf*)
14001446 os=-tpf
14011447 ;;
14021448 -triton*)
14411487 -dicos*)
14421488 os=-dicos
14431489 ;;
1444 -nacl*)
1445 ;;
1490 -nacl*)
1491 ;;
14461492 -none)
14471493 ;;
14481494 *)
14651511 # system, and we'll never get to this point.
14661512
14671513 case $basic_machine in
1468 score-*)
1514 score-*)
14691515 os=-elf
14701516 ;;
1471 spu-*)
1517 spu-*)
14721518 os=-elf
14731519 ;;
14741520 *-acorn)
14801526 arm*-semi)
14811527 os=-aout
14821528 ;;
1483 c4x-* | tic4x-*)
1484 os=-coff
1529 c4x-* | tic4x-*)
1530 os=-coff
1531 ;;
1532 tic54x-*)
1533 os=-coff
1534 ;;
1535 tic55x-*)
1536 os=-coff
1537 ;;
1538 tic6x-*)
1539 os=-coff
14851540 ;;
14861541 # This must come before the *-dec entry.
14871542 pdp10-*)
15011556 ;;
15021557 m68000-sun)
15031558 os=-sunos3
1504 # This also exists in the configure program, but was not the
1505 # default.
1506 # os=-sunos4
15071559 ;;
15081560 m68*-cisco)
15091561 os=-aout
15101562 ;;
1511 mep-*)
1563 mep-*)
15121564 os=-elf
15131565 ;;
15141566 mips*-cisco)
15351587 *-ibm)
15361588 os=-aix
15371589 ;;
1538 *-knuth)
1590 *-knuth)
15391591 os=-mmixware
15401592 ;;
15411593 *-wec)
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
3 scriptversion=2011-12-04.11; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
6 # 2011 Free Software Foundation, Inc.
77
88 # This program is free software; you can redistribute it and/or modify
99 # it under the terms of the GNU General Public License as published by
4343 object Object file output by `PROGRAMS ARGS'.
4444 DEPDIR directory where to store dependencies.
4545 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
46 tmpdepfile Temporary file to use when outputting dependencies.
4747 libtool Whether libtool is used (yes/no).
4848
4949 Report bugs to <bug-automake@gnu.org>.
8989 # This is just like msvisualcpp but w/o cygpath translation.
9090 # Just convert the backslash-escaped backslashes to single forward
9191 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
92 cygpath_u='sed s,\\\\,/,g'
9393 depmode=msvisualcpp
94 fi
95
96 if test "$depmode" = msvc7msys; then
97 # This is just like msvc7 but w/o cygpath translation.
98 # Just convert the backslash-escaped backslashes to single forward
99 # slashes to satisfy depend.m4
100 cygpath_u='sed s,\\\\,/,g'
101 depmode=msvc7
94102 fi
95103
96104 case "$depmode" in
157165 ' < "$tmpdepfile" |
158166 ## Some versions of gcc put a space before the `:'. On the theory
159167 ## that the space means something, we add a space to the output as
160 ## well.
168 ## well. hp depmode also adds that space, but also prefixes the VPATH
169 ## to the object. Take care to not repeat it in the output.
161170 ## Some versions of the HPUX 10.20 sed can't process this invocation
162171 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
172 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
173 | sed -e 's/$/ :/' >> "$depfile"
164174 rm -f "$tmpdepfile"
165175 ;;
166176
404414 rm -f "$tmpdepfile"
405415 ;;
406416
417 msvc7)
418 if test "$libtool" = yes; then
419 showIncludes=-Wc,-showIncludes
420 else
421 showIncludes=-showIncludes
422 fi
423 "$@" $showIncludes > "$tmpdepfile"
424 stat=$?
425 grep -v '^Note: including file: ' "$tmpdepfile"
426 if test "$stat" = 0; then :
427 else
428 rm -f "$tmpdepfile"
429 exit $stat
430 fi
431 rm -f "$depfile"
432 echo "$object : \\" > "$depfile"
433 # The first sed program below extracts the file names and escapes
434 # backslashes for cygpath. The second sed program outputs the file
435 # name when reading, but also accumulates all include files in the
436 # hold buffer in order to output them again at the end. This only
437 # works with sed implementations that can handle large buffers.
438 sed < "$tmpdepfile" -n '
439 /^Note: including file: *\(.*\)/ {
440 s//\1/
441 s/\\/\\\\/g
442 p
443 }' | $cygpath_u | sort -u | sed -n '
444 s/ /\\ /g
445 s/\(.*\)/ \1 \\/p
446 s/.\(.*\) \\/\1:/
447 H
448 $ {
449 s/.*/ /
450 G
451 p
452 }' >> "$depfile"
453 rm -f "$tmpdepfile"
454 ;;
455
456 msvc7msys)
457 # This case exists only to let depend.m4 do its work. It works by
458 # looking at the text of this script. This case will never be run,
459 # since it is checked for above.
460 exit 1
461 ;;
462
407463 #nosideeffect)
408464 # This comment above is used by automake to tell side-effect
409465 # dependency tracking mechanisms from slower ones.
502558 touch "$tmpdepfile"
503559 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504560 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
561 # makedepend may prepend the VPATH from the source file name to the object.
562 # No need to regex-escape $object, excess matching of '.' is harmless.
563 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
506564 sed '1,2d' "$tmpdepfile" | tr ' ' '
507565 ' | \
508566 ## Some versions of the HPUX 10.20 sed can't process this invocation
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2011-01-19.21; # 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
155155 -s) stripcmd=$stripprog;;
156156
157157 -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
158162 shift;;
159163
160164 -T) no_target_directory=true;;
185189 fi
186190 shift # arg
187191 dst_arg=$arg
192 # Protect names problematic for `test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
188196 done
189197 fi
190198
199207 fi
200208
201209 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
203215
204216 # Set umask so as not to create temps with too-generous modes.
205217 # However, 'strip' requires both read and write access to temps.
227239
228240 for src
229241 do
230 # Protect names starting with `-'.
242 # Protect names problematic for `test' and other utilities.
231243 case $src in
232 -*) src=./$src;;
244 -* | [=\(\)!]) src=./$src;;
233245 esac
234246
235247 if test -n "$dir_arg"; then
251263 echo "$0: no destination specified." >&2
252264 exit 1
253265 fi
254
255266 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260267
261268 # If destination is a directory, append the input filename; won't work
262269 # if double slashes aren't ignored.
384391
385392 case $dstdir in
386393 /*) prefix='/';;
387 -*) prefix='./';;
394 [-=\(\)!]*) prefix='./';;
388395 *) prefix='';;
389396 esac
390397
402409
403410 for d
404411 do
405 test -z "$d" && continue
412 test X"$d" = X && continue
406413
407414 prefix=$prefix$d
408415 if test -d "$prefix"; then
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6b
0
1 # libtool (GNU libtool) 2.4.2
32 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
43
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
66 # This is free software; see the source for copying conditions. There is NO
77 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
88
3131 #
3232 # Provide generalized library-building support services.
3333 #
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 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
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
4549 #
4650 # MODE must be one of the following:
4751 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
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
5559 #
56 # MODE-ARGS vary depending on the MODE.
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.
5762 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
5863 #
5964 # When reporting a bug, please describe a test case to reproduce it and
6065 # include the following information:
6166 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
68 # automake: $automake_version
69 # autoconf: $autoconf_version
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
73 # automake: $automake_version
74 # autoconf: $autoconf_version
7075 #
7176 # Report bugs to <bug-libtool@gnu.org>.
72
73 PROGRAM=ltmain.sh
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
79
80 PROGRAM=libtool
7481 PACKAGE=libtool
75 VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
82 VERSION=2.4.2
7683 TIMESTAMP=""
77 package_revision=1.3017
84 package_revision=1.3337
7885
7986 # Be Bourne compatible
8087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9097 BIN_SH=xpg4; export BIN_SH # for Tru64
9198 DUALCASE=1; export DUALCASE # for MKS sh
9299
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
93108 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97109 lt_user_locale=
98110 lt_safe_locale=
99111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
106118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107119 fi"
108120 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
109124
110125 $lt_unset CDPATH
111126
112127
128 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129 # is ksh but when the shell is invoked as "sh" and the current value of
130 # the _XPG environment variable is not equal to 1 (one), the special
131 # positional parameter $0, within a function call, is the name of the
132 # function.
133 progpath="$0"
113134
114135
115136
116137 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
122139 : ${MAKE="make"}
123140 : ${MKDIR="mkdir"}
124141 : ${MV="mv -f"}
125142 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128144 : ${Xsed="$SED -e 1s/^X//"}
129145
142158
143159 dirname="s,/[^/]*$,,"
144160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
163 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164 # 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
145182
146183 # func_dirname_and_basename file append nondir_replacement
147184 # perform func_basename and func_dirname in a single function
157194 # those functions but instead duplicate the functionality here.
158195 func_dirname_and_basename ()
159196 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
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}"
201 else
202 func_dirname_result="$func_dirname_result${2}"
203 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,/*$,/,'
232
233 # func_normal_abspath PATH
234 # Remove doubled-up and trailing slashes, "." path components,
235 # and cancel out any ".." path components in PATH after making
236 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238 func_normal_abspath ()
239 {
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"`
287 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=.
337 fi
338 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}
166360 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
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 }
178370
179371 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182372 func_dirname_and_basename "$progpath"
183373 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187374
188375 # Make sure we have an absolute path for reexecution:
189376 case $progpath in
195382 ;;
196383 *)
197384 save_IFS="$IFS"
198 IFS=:
385 IFS=${PATH_SEPARATOR-:}
199386 for progdir in $PATH; do
200387 IFS="$save_IFS"
201388 test -x "$progdir/$progname" && break
213400
214401 # Same as above, but do not quote variable references.
215402 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'
216412
217413 # Re-`\' parameter expansions in output of double_quote_subst that were
218414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
242438 # name if it has been set yet.
243439 func_echo ()
244440 {
245 $ECHO "$progname${mode+: }$mode: $*"
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
246442 }
247443
248444 # func_verbose arg...
257453 :
258454 }
259455
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
260463 # func_error arg...
261464 # Echo program name prefixed message to standard error.
262465 func_error ()
263466 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
265468 }
266469
267470 # func_warning arg...
268471 # Echo program name prefixed warning message to standard error.
269472 func_warning ()
270473 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
272475
273476 # bash bug again:
274477 :
325528 case $my_directory_path in */*) ;; *) break ;; esac
326529
327530 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
329532 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
331534
332535 save_mkdir_p_IFS="$IFS"; IFS=':'
333536 for my_dir in $my_dir_list; do
377580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378581 fi
379582
380 $ECHO "X$my_tmpdir" | $Xsed
583 $ECHO "$my_tmpdir"
381584 }
382585
383586
391594 {
392595 case $1 in
393596 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
395598 *)
396599 func_quote_for_eval_unquoted_result="$1" ;;
397600 esac
418621 {
419622 case $1 in
420623 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
624 my_arg=`$ECHO "$1" | $SED \
422625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423626 *)
424627 my_arg="$1" ;;
487690 fi
488691 }
489692
490
491
693 # func_tr_sh
694 # Turn $1 into a string suitable for a shell variable name.
695 # Result is stored in $func_tr_sh_result. All characters
696 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
697 # if $1 begins with a digit, a '_' is prepended as well.
698 func_tr_sh ()
699 {
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 }
492709
493710
494711 # func_version
495712 # Echo version message to standard output and exit.
496713 func_version ()
497714 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
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; / {
499726 s/^# //
500727 s/^# *$//
501728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
508735 # Echo short help message to standard output and exit.
509736 func_usage ()
510737 {
511 $SED -n '/^# Usage:/,/# -h/ {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
512741 s/^# //
513742 s/^# *$//
514743 s/\$progname/'$progname'/
515744 p
516745 }' < "$progpath"
517 $ECHO
746 echo
518747 $ECHO "run \`$progname --help | more' for full usage"
519748 exit $?
520749 }
521750
522 # func_help
523 # Echo long help message to standard output and exit.
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
524754 func_help ()
525755 {
756 $opt_debug
757
526758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
527760 s/^# //
528761 s/^# *$//
529762 s*\$progname*'$progname'*
533766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534767 s*\$LD*'"$LD"'*
535768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
538771 p
539 }' < "$progpath"
540 exit $?
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
541781 }
542782
543783 # func_missing_arg argname
545785 # exit_cmd.
546786 func_missing_arg ()
547787 {
548 func_error "missing argument for $1"
788 $opt_debug
789
790 func_error "missing argument for $1."
549791 exit_cmd=exit
550792 }
551793
794
795 # func_split_short_opt shortopt
796 # Set func_split_short_opt_name and func_split_short_opt_arg shell
797 # 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
552820 exit_cmd=:
553821
554822
555823
556824
557
558 # Check that we have a working $ECHO.
559 if test "X$1" = X--no-reexec; then
560 # Discard the --no-reexec flag, and continue.
561 shift
562 elif test "X$1" = X--fallback-echo; then
563 # Avoid inline document here, it may be left over
564 :
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
567 :
568 else
569 # Restart under the correct shell, and then maybe $ECHO will work.
570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
571 fi
572
573 if test "X$1" = X--fallback-echo; then
574 # used as fallback echo
575 shift
576 cat <<EOF
577 $*
578 EOF
579 exit $EXIT_SUCCESS
580 fi
581825
582826 magic="%%%MAGIC variable%%%"
583827 magic_exe="%%%MAGIC EXE variable%%%"
584828
585829 # Global variables.
586 # $mode is unset
587830 nonopt=
588 execute_dlfiles=
589831 preserve_args=
590832 lo2o="s/\\.lo\$/.${objext}/"
591833 o2lo="s/\\.${objext}\$/.lo/"
592834 extracted_archives=
593835 extracted_serial=0
594836
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600837 # If this variable is set in any of the actions, the command in it
601838 # will be execed at the end. This prevents here-documents from being
602839 # left over by shells.
603840 exec_cmd=
604841
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
605888 # func_fatal_configuration arg...
606889 # Echo program name prefixed message to standard error, followed by
607890 # a configuration failure hint, and exit.
635918 # Display the features supported by this script.
636919 func_features ()
637920 {
638 $ECHO "host: $host"
921 echo "host: $host"
639922 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
923 echo "enable shared libraries"
641924 else
642 $ECHO "disable shared libraries"
925 echo "disable shared libraries"
643926 fi
644927 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
928 echo "enable static libraries"
646929 else
647 $ECHO "disable static libraries"
930 echo "disable static libraries"
648931 fi
649932
650933 exit $?
689972 fi
690973 ;;
691974 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32* | *cegcc*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819975 }
820976
821977 # func_check_version_match
8541010 }
8551011
8561012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1167 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
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"
1197 fi
1198
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
1219
1220
1221
8571222 ## ----------- ##
8581223 ## Main. ##
8591224 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
8881225
8891226 # func_lalib_p file
8901227 # True iff FILE is a libtool `.la' library or `.lo' object file.
9491286 # temporary ltwrapper_script.
9501287 func_ltwrapper_scriptname ()
9511288 {
952 func_ltwrapper_scriptname_result=""
953 if func_ltwrapper_executable_p "$1"; then
954 func_dirname_and_basename "$1" "" "."
955 func_stripname '' '.exe' "$func_basename_result"
956 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
957 fi
1289 func_dirname_and_basename "$1" "" "."
1290 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
9581292 }
9591293
9601294 # func_ltwrapper_p file
10001334 }
10011335
10021336
1337 # func_resolve_sysroot PATH
1338 # Replace a leading = in PATH with a sysroot. Store the result into
1339 # func_resolve_sysroot_result
1340 func_resolve_sysroot ()
1341 {
1342 func_resolve_sysroot_result=$1
1343 case $func_resolve_sysroot_result in
1344 =*)
1345 func_stripname '=' '' "$func_resolve_sysroot_result"
1346 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1347 ;;
1348 esac
1349 }
1350
1351 # func_replace_sysroot PATH
1352 # If PATH begins with the sysroot, replace it with = and
1353 # store the result into func_replace_sysroot_result.
1354 func_replace_sysroot ()
1355 {
1356 case "$lt_sysroot:$1" in
1357 ?*:"$lt_sysroot"*)
1358 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
1360 ;;
1361 *)
1362 # Including no sysroot.
1363 func_replace_sysroot_result=$1
1364 ;;
1365 esac
1366 }
1367
10031368 # func_infer_tag arg
10041369 # Infer tagged configuration to use if any are available and
10051370 # if one wasn't chosen via the "--tag" command line option.
10121377 if test -n "$available_tags" && test -z "$tagname"; then
10131378 CC_quoted=
10141379 for arg in $CC; do
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1380 func_append_quoted CC_quoted "$arg"
10171381 done
1382 CC_expanded=`func_echo_all $CC`
1383 CC_quoted_expanded=`func_echo_all $CC_quoted`
10181384 case $@ in
10191385 # Blanks in the command may have been stripped by the calling shell,
10201386 # but not from the CC environment variable when configure was run.
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1387 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1388 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
10221389 # Blanks at the start of $base_compile will cause this to fail
10231390 # if we don't check for them as well.
10241391 *)
10291396 CC_quoted=
10301397 for arg in $CC; do
10311398 # Double-quote args containing other shell metacharacters.
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1399 func_append_quoted CC_quoted "$arg"
10341400 done
1401 CC_expanded=`func_echo_all $CC`
1402 CC_quoted_expanded=`func_echo_all $CC_quoted`
10351403 case "$@ " in
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1404 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1405 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
10371406 # The compiler in the base compile command matches
10381407 # the one in the tagged configuration.
10391408 # Assume this is the tagged configuration we want.
10961465 }
10971466 }
10981467
1468
1469 ##################################################
1470 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1471 ##################################################
1472
1473 # func_convert_core_file_wine_to_w32 ARG
1474 # Helper function used by file name conversion functions when $build is *nix,
1475 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1476 # correctly configured wine environment available, with the winepath program
1477 # in $build's $PATH.
1478 #
1479 # ARG is the $build file name to be converted to w32 format.
1480 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1481 # be empty on error (or when ARG is empty)
1482 func_convert_core_file_wine_to_w32 ()
1483 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
1486 if test -n "$1"; then
1487 # Unfortunately, winepath does not exit with a non-zero error code, so we
1488 # are forced to check the contents of stdout. On the other hand, if the
1489 # command is not found, the shell will set an exit code of 127 and print
1490 # *an error message* to stdout. So we must check for both error code of
1491 # zero AND non-empty stdout, which explains the odd construction:
1492 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
1494 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
1496 else
1497 func_convert_core_file_wine_to_w32_result=
1498 fi
1499 fi
1500 }
1501 # end: func_convert_core_file_wine_to_w32
1502
1503
1504 # func_convert_core_path_wine_to_w32 ARG
1505 # Helper function used by path conversion functions when $build is *nix, and
1506 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1507 # configured wine environment available, with the winepath program in $build's
1508 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1509 #
1510 # ARG is path to be converted from $build format to win32.
1511 # Result is available in $func_convert_core_path_wine_to_w32_result.
1512 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1513 # are convertible, then the result may be empty.
1514 func_convert_core_path_wine_to_w32 ()
1515 {
1516 $opt_debug
1517 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
1519 if test -n "$1"; then
1520 oldIFS=$IFS
1521 IFS=:
1522 for func_convert_core_path_wine_to_w32_f in $1; do
1523 IFS=$oldIFS
1524 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
1526 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"
1528 else
1529 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1530 fi
1531 fi
1532 done
1533 IFS=$oldIFS
1534 fi
1535 }
1536 # end: func_convert_core_path_wine_to_w32
1537
1538
1539 # func_cygpath ARGS...
1540 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1541 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1542 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1543 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1544 # file name or path is assumed to be in w32 format, as previously converted
1545 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1546 # or path in func_cygpath_result (input file name or path is assumed to be in
1547 # Cygwin format). Returns an empty string on error.
1548 #
1549 # ARGS are passed to cygpath, with the last one being the file name or path to
1550 # be converted.
1551 #
1552 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1553 # environment variable; do not put it in $PATH.
1554 func_cygpath ()
1555 {
1556 $opt_debug
1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1558 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1559 if test "$?" -ne 0; then
1560 # on failure, ensure result is empty
1561 func_cygpath_result=
1562 fi
1563 else
1564 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1566 fi
1567 }
1568 #end: func_cygpath
1569
1570
1571 # func_convert_core_msys_to_w32 ARG
1572 # Convert file name or path ARG from MSYS format to w32 format. Return
1573 # result in func_convert_core_msys_to_w32_result.
1574 func_convert_core_msys_to_w32 ()
1575 {
1576 $opt_debug
1577 # awkward: cmd appends spaces to result
1578 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1580 }
1581 #end: func_convert_core_msys_to_w32
1582
1583
1584 # func_convert_file_check ARG1 ARG2
1585 # Verify that ARG1 (a file name in $build format) was converted to $host
1586 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1587 # func_to_host_file_result to ARG1).
1588 func_convert_file_check ()
1589 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
1592 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
1594 func_error "Continuing, but uninstalled executables may not work."
1595 # Fallback:
1596 func_to_host_file_result="$1"
1597 fi
1598 }
1599 # end func_convert_file_check
1600
1601
1602 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1603 # Verify that FROM_PATH (a path in $build format) was converted to $host
1604 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1605 # func_to_host_file_result to a simplistic fallback value (see below).
1606 func_convert_path_check ()
1607 {
1608 $opt_debug
1609 if test -z "$4" && test -n "$3"; then
1610 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
1612 func_error "Continuing, but uninstalled executables may not work."
1613 # Fallback. This is a deliberately simplistic "conversion" and
1614 # should not be "improved". See libtool.info.
1615 if test "x$1" != "x$2"; then
1616 lt_replace_pathsep_chars="s|$1|$2|g"
1617 func_to_host_path_result=`echo "$3" |
1618 $SED -e "$lt_replace_pathsep_chars"`
1619 else
1620 func_to_host_path_result="$3"
1621 fi
1622 fi
1623 }
1624 # end func_convert_path_check
1625
1626
1627 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1628 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1629 # and appending REPL if ORIG matches BACKPAT.
1630 func_convert_path_front_back_pathsep ()
1631 {
1632 $opt_debug
1633 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1635 ;;
1636 esac
1637 case $4 in
1638 $2 ) func_append func_to_host_path_result "$3"
1639 ;;
1640 esac
1641 }
1642 # end func_convert_path_front_back_pathsep
1643
1644
1645 ##################################################
1646 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1647 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
1649 #
1650 # In each case, ARG is the path to be converted from $build to $host format.
1651 # Result will be available in $func_to_host_file_result.
1652
1653
1654 # func_to_host_file ARG
1655 # Converts the file name ARG from $build format to $host format. Return result
1656 # in func_to_host_file_result.
1657 func_to_host_file ()
1658 {
1659 $opt_debug
1660 $to_host_file_cmd "$1"
1661 }
1662 # end func_to_host_file
1663
1664
1665 # func_to_tool_file ARG LAZY
1666 # converts the file name ARG from $build format to toolchain format. Return
1667 # result in func_to_tool_file_result. If the conversion in use is listed
1668 # in (the comma separated) LAZY, no conversion takes place.
1669 func_to_tool_file ()
1670 {
1671 $opt_debug
1672 case ,$2, in
1673 *,"$to_tool_file_cmd",*)
1674 func_to_tool_file_result=$1
1675 ;;
1676 *)
1677 $to_tool_file_cmd "$1"
1678 func_to_tool_file_result=$func_to_host_file_result
1679 ;;
1680 esac
1681 }
1682 # end func_to_tool_file
1683
1684
1685 # func_convert_file_noop ARG
1686 # Copy ARG to func_to_host_file_result.
1687 func_convert_file_noop ()
1688 {
1689 func_to_host_file_result="$1"
1690 }
1691 # end func_convert_file_noop
1692
1693
1694 # func_convert_file_msys_to_w32 ARG
1695 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1696 # conversion to w32 is not available inside the cwrapper. Returns result in
1697 # func_to_host_file_result.
1698 func_convert_file_msys_to_w32 ()
1699 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
1702 if test -n "$1"; then
1703 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1705 fi
1706 func_convert_file_check "$1" "$func_to_host_file_result"
1707 }
1708 # end func_convert_file_msys_to_w32
1709
1710
1711 # func_convert_file_cygwin_to_w32 ARG
1712 # Convert file name ARG from Cygwin to w32 format. Returns result in
1713 # func_to_host_file_result.
1714 func_convert_file_cygwin_to_w32 ()
1715 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
1718 if test -n "$1"; then
1719 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1720 # LT_CYGPATH in this case.
1721 func_to_host_file_result=`cygpath -m "$1"`
1722 fi
1723 func_convert_file_check "$1" "$func_to_host_file_result"
1724 }
1725 # end func_convert_file_cygwin_to_w32
1726
1727
1728 # func_convert_file_nix_to_w32 ARG
1729 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1730 # and a working winepath. Returns result in func_to_host_file_result.
1731 func_convert_file_nix_to_w32 ()
1732 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
1735 if test -n "$1"; then
1736 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1738 fi
1739 func_convert_file_check "$1" "$func_to_host_file_result"
1740 }
1741 # end func_convert_file_nix_to_w32
1742
1743
1744 # func_convert_file_msys_to_cygwin ARG
1745 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1746 # Returns result in func_to_host_file_result.
1747 func_convert_file_msys_to_cygwin ()
1748 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
1751 if test -n "$1"; then
1752 func_convert_core_msys_to_w32 "$1"
1753 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
1755 fi
1756 func_convert_file_check "$1" "$func_to_host_file_result"
1757 }
1758 # end func_convert_file_msys_to_cygwin
1759
1760
1761 # func_convert_file_nix_to_cygwin ARG
1762 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1763 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1764 # in func_to_host_file_result.
1765 func_convert_file_nix_to_cygwin ()
1766 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
1769 if test -n "$1"; then
1770 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1771 func_convert_core_file_wine_to_w32 "$1"
1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
1774 fi
1775 func_convert_file_check "$1" "$func_to_host_file_result"
1776 }
1777 # end func_convert_file_nix_to_cygwin
1778
1779
1780 #############################################
1781 # $build to $host PATH CONVERSION FUNCTIONS #
1782 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
1784 #
1785 # In each case, ARG is the path to be converted from $build to $host format.
1786 # The result will be available in $func_to_host_path_result.
1787 #
1788 # Path separators are also converted from $build format to $host format. If
1789 # ARG begins or ends with a path separator character, it is preserved (but
1790 # converted to $host format) on output.
1791 #
1792 # All path conversion functions are named using the following convention:
1793 # file name conversion function : func_convert_file_X_to_Y ()
1794 # path conversion function : func_convert_path_X_to_Y ()
1795 # where, for any given $build/$host combination the 'X_to_Y' value is the
1796 # same. If conversion functions are added for new $build/$host combinations,
1797 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1798 # will break.
1799
1800
1801 # func_init_to_host_path_cmd
1802 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1803 # appropriate value, based on the value of $to_host_file_cmd.
1804 to_host_path_cmd=
1805 func_init_to_host_path_cmd ()
1806 {
1807 $opt_debug
1808 if test -z "$to_host_path_cmd"; then
1809 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1811 fi
1812 }
1813
1814
1815 # func_to_host_path ARG
1816 # Converts the path ARG from $build format to $host format. Return result
1817 # in func_to_host_path_result.
1818 func_to_host_path ()
1819 {
1820 $opt_debug
1821 func_init_to_host_path_cmd
1822 $to_host_path_cmd "$1"
1823 }
1824 # end func_to_host_path
1825
1826
1827 # func_convert_path_noop ARG
1828 # Copy ARG to func_to_host_path_result.
1829 func_convert_path_noop ()
1830 {
1831 func_to_host_path_result="$1"
1832 }
1833 # end func_convert_path_noop
1834
1835
1836 # func_convert_path_msys_to_w32 ARG
1837 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1838 # conversion to w32 is not available inside the cwrapper. Returns result in
1839 # func_to_host_path_result.
1840 func_convert_path_msys_to_w32 ()
1841 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
1844 if test -n "$1"; then
1845 # Remove leading and trailing path separator characters from ARG. MSYS
1846 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1847 # and winepath ignores them completely.
1848 func_stripname : : "$1"
1849 func_to_host_path_tmp1=$func_stripname_result
1850 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1852 func_convert_path_check : ";" \
1853 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1854 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1855 fi
1856 }
1857 # end func_convert_path_msys_to_w32
1858
1859
1860 # func_convert_path_cygwin_to_w32 ARG
1861 # Convert path ARG from Cygwin to w32 format. Returns result in
1862 # func_to_host_file_result.
1863 func_convert_path_cygwin_to_w32 ()
1864 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
1867 if test -n "$1"; then
1868 # See func_convert_path_msys_to_w32:
1869 func_stripname : : "$1"
1870 func_to_host_path_tmp1=$func_stripname_result
1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1872 func_convert_path_check : ";" \
1873 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1874 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1875 fi
1876 }
1877 # end func_convert_path_cygwin_to_w32
1878
1879
1880 # func_convert_path_nix_to_w32 ARG
1881 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1882 # a working winepath. Returns result in func_to_host_file_result.
1883 func_convert_path_nix_to_w32 ()
1884 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
1887 if test -n "$1"; then
1888 # See func_convert_path_msys_to_w32:
1889 func_stripname : : "$1"
1890 func_to_host_path_tmp1=$func_stripname_result
1891 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"
1893 func_convert_path_check : ";" \
1894 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1895 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1896 fi
1897 }
1898 # end func_convert_path_nix_to_w32
1899
1900
1901 # func_convert_path_msys_to_cygwin ARG
1902 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1903 # Returns result in func_to_host_file_result.
1904 func_convert_path_msys_to_cygwin ()
1905 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
1908 if test -n "$1"; then
1909 # See func_convert_path_msys_to_w32:
1910 func_stripname : : "$1"
1911 func_to_host_path_tmp1=$func_stripname_result
1912 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
1915 func_convert_path_check : : \
1916 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1917 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1918 fi
1919 }
1920 # end func_convert_path_msys_to_cygwin
1921
1922
1923 # func_convert_path_nix_to_cygwin ARG
1924 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1925 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1926 # func_to_host_file_result.
1927 func_convert_path_nix_to_cygwin ()
1928 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
1931 if test -n "$1"; then
1932 # Remove leading and trailing path separator characters from
1933 # ARG. msys behavior is inconsistent here, cygpath turns them
1934 # into '.;' and ';.', and winepath ignores them completely.
1935 func_stripname : : "$1"
1936 func_to_host_path_tmp1=$func_stripname_result
1937 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
1940 func_convert_path_check : : \
1941 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1942 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1943 fi
1944 }
1945 # end func_convert_path_nix_to_cygwin
1946
1947
10991948 # func_mode_compile arg...
11001949 func_mode_compile ()
11011950 {
11361985 ;;
11371986
11381987 -pie | -fpie | -fPIE)
1139 pie_flag="$pie_flag $arg"
1988 func_append pie_flag " $arg"
11401989 continue
11411990 ;;
11421991
11431992 -shared | -static | -prefer-pic | -prefer-non-pic)
1144 later="$later $arg"
1993 func_append later " $arg"
11451994 continue
11461995 ;;
11471996
11622011 save_ifs="$IFS"; IFS=','
11632012 for arg in $args; do
11642013 IFS="$save_ifs"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
2014 func_append_quoted lastarg "$arg"
11672015 done
11682016 IFS="$save_ifs"
11692017 func_stripname ' ' '' "$lastarg"
11702018 lastarg=$func_stripname_result
11712019
11722020 # Add the arguments to base_compile.
1173 base_compile="$base_compile $lastarg"
2021 func_append base_compile " $lastarg"
11742022 continue
11752023 ;;
11762024
11862034 esac # case $arg_mode
11872035
11882036 # Aesthetically quote the previous argument.
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
2037 func_append_quoted base_compile "$lastarg"
11912038 done # for arg
11922039
11932040 case $arg_mode in
12122059 *.[cCFSifmso] | \
12132060 *.ada | *.adb | *.ads | *.asm | \
12142061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
12162063 func_xform "$libobj"
12172064 libobj=$func_xform_result
12182065 ;;
12872134 # Calculate the filename of the output object if compiler does
12882135 # not support -o with -c
12892136 if test "$compiler_c_o" = no; then
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
12912138 lockfile="$output_obj.lock"
12922139 else
12932140 output_obj=
13182165 $opt_dry_run || $RM $removelist
13192166 exit $EXIT_FAILURE
13202167 fi
1321 removelist="$removelist $output_obj"
2168 func_append removelist " $output_obj"
13222169 $ECHO "$srcfile" > "$lockfile"
13232170 fi
13242171
13252172 $opt_dry_run || $RM $removelist
1326 removelist="$removelist $lockfile"
2173 func_append removelist " $lockfile"
13272174 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
13282175
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2177 srcfile=$func_to_tool_file_result
13322178 func_quote_for_eval "$srcfile"
13332179 qsrcfile=$func_quote_for_eval_result
13342180
13482194
13492195 if test -z "$output_obj"; then
13502196 # Place PIC objects in $objdir
1351 command="$command -o $lobj"
2197 func_append command " -o $lobj"
13522198 fi
13532199
13542200 func_show_eval_locale "$command" \
13952241 command="$base_compile $qsrcfile $pic_flag"
13962242 fi
13972243 if test "$compiler_c_o" = yes; then
1398 command="$command -o $obj"
2244 func_append command " -o $obj"
13992245 fi
14002246
14012247 # Suppress compiler output if we already did a PIC compilation.
1402 command="$command$suppress_output"
2248 func_append command "$suppress_output"
14032249 func_show_eval_locale "$command" \
14042250 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
14052251
14442290 }
14452291
14462292 $opt_help || {
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
14482294 }
14492295
14502296 func_mode_help ()
14512297 {
14522298 # We need to display help for each of the modes.
1453 case $mode in
2299 case $opt_mode in
14542300 "")
14552301 # Generic help is extracted from the usage comments
14562302 # at the start of this file.
14812327
14822328 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
14832329 -no-suppress do not suppress compiler output for multiple passes
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
2330 -prefer-pic try to build PIC objects only
2331 -prefer-non-pic try to build non-PIC objects only
14862332 -shared do not build a \`.o' file suitable for static linking
14872333 -static only build a \`.o' file suitable for static linking
2334 -Wc,FLAG pass FLAG directly to the compiler
14882335
14892336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
14902337 from the given SOURCEFILE.
15372384
15382385 The following components of INSTALL-COMMAND are treated specially:
15392386
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
15412388
15422389 The rest of the components are interpreted as arguments to that command (only
15432390 BSD-compatible install options are recognized)."
15572404
15582405 -all-static do not do any dynamic linking at all
15592406 -avoid-version do not add a version suffix if possible
2407 -bindir BINDIR specify path to binaries directory (for systems where
2408 libraries must be found in the PATH setting at runtime)
15602409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
15612410 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
15622411 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
15852434 -version-info CURRENT[:REVISION[:AGE]]
15862435 specify library version info [each variable defaults to 0]
15872436 -weak LIBNAME declare that the target provides the LIBNAME interface
2437 -Wc,FLAG
2438 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2439 -Wl,FLAG
2440 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2441 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
15882442
15892443 All other options (arguments beginning with \`-') are ignored.
15902444
16182472 ;;
16192473
16202474 *)
1621 func_fatal_help "invalid operation mode \`$mode'"
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
16222476 ;;
16232477 esac
16242478
1625 $ECHO
2479 echo
16262480 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
1629 }
1630
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
2481 }
2482
2483 # Now that we've collected a possible --mode arg, show help if necessary
2484 if $opt_help; then
2485 if test "$opt_help" = :; then
2486 func_mode_help
2487 else
2488 {
2489 func_help noexit
2490 for opt_mode in compile link execute install finish uninstall clean; do
2491 func_mode_help
2492 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2494 {
2495 func_help noexit
2496 for opt_mode in compile link execute install finish uninstall clean; do
2497 echo
2498 func_mode_help
2499 done
2500 } |
2501 sed '1d
2502 /^When reporting/,/^Report/{
2503 H
2504 d
2505 }
2506 $x
2507 /information about other modes/d
2508 /more detailed .*MODE/d
2509 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2510 fi
2511 exit $?
2512 fi
16332513
16342514
16352515 # func_mode_execute arg...
16422522 func_fatal_help "you must specify a COMMAND"
16432523
16442524 # Handle -dlopen flags immediately.
1645 for file in $execute_dlfiles; do
2525 for file in $opt_dlopen; do
16462526 test -f "$file" \
16472527 || func_fatal_help "\`$file' is not a file"
16482528
16492529 dir=
16502530 case $file in
16512531 *.la)
2532 func_resolve_sysroot "$file"
2533 file=$func_resolve_sysroot_result
2534
16522535 # Check to see that this really is a libtool archive.
16532536 func_lalib_unsafe_p "$file" \
16542537 || func_fatal_help "\`$lib' is not a valid libtool archive"
16702553 dir="$func_dirname_result"
16712554
16722555 if test -f "$dir/$objdir/$dlname"; then
1673 dir="$dir/$objdir"
2556 func_append dir "/$objdir"
16742557 else
16752558 if test ! -f "$dir/$dlname"; then
16762559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
17112594 for file
17122595 do
17132596 case $file in
1714 -*) ;;
2597 -* | *.la | *.lo ) ;;
17152598 *)
17162599 # Do a test to see if this is really a libtool program.
17172600 if func_ltwrapper_script_p "$file"; then
17272610 ;;
17282611 esac
17292612 # Quote arguments (to preserve shell metacharacters).
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
2613 func_append_quoted args "$file"
17322614 done
17332615
17342616 if test "X$opt_dry_run" = Xfalse; then
17532635 # Display what would be done.
17542636 if test -n "$shlibpath_var"; then
17552637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1756 $ECHO "export $shlibpath_var"
2638 echo "export $shlibpath_var"
17572639 fi
17582640 $ECHO "$cmd$args"
17592641 exit $EXIT_SUCCESS
17602642 fi
17612643 }
17622644
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
17642646
17652647
17662648 # func_mode_finish arg...
17672649 func_mode_finish ()
17682650 {
17692651 $opt_debug
1770 libdirs="$nonopt"
2652 libs=
2653 libdirs=
17712654 admincmds=
17722655
2656 for opt in "$nonopt" ${1+"$@"}
2657 do
2658 if test -d "$opt"; then
2659 func_append libdirs " $opt"
2660
2661 elif test -f "$opt"; then
2662 if func_lalib_unsafe_p "$opt"; then
2663 func_append libs " $opt"
2664 else
2665 func_warning "\`$opt' is not a valid libtool archive"
2666 fi
2667
2668 else
2669 func_fatal_error "invalid argument \`$opt'"
2670 fi
2671 done
2672
2673 if test -n "$libs"; then
2674 if test -n "$lt_sysroot"; then
2675 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2676 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2677 else
2678 sysroot_cmd=
2679 fi
2680
2681 # Remove sysroot references
2682 if $opt_dry_run; then
2683 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2685 done
2686 else
2687 tmpdir=`func_mktempdir`
2688 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2690 > $tmpdir/tmp-la
2691 mv -f $tmpdir/tmp-la $lib
2692 done
2693 ${RM}r "$tmpdir"
2694 fi
2695 fi
2696
17732697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
17792698 for libdir in $libdirs; do
17802699 if test -n "$finish_cmds"; then
17812700 # Do each command in the finish commands.
17852704 if test -n "$finish_eval"; then
17862705 # Do the single finish_eval.
17872706 eval cmds=\"$finish_eval\"
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
2707 $opt_dry_run || eval "$cmds" || func_append admincmds "
17892708 $cmds"
17902709 fi
17912710 done
17942713 # Exit here if they wanted silent mode.
17952714 $opt_silent && exit $EXIT_SUCCESS
17962715
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
1799 for libdir in $libdirs; do
1800 $ECHO " $libdir"
1801 done
1802 $ECHO
1803 $ECHO "If you ever happen to want to link against installed libraries"
1804 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1805 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1806 $ECHO "flag during linking and do at least one of the following:"
1807 if test -n "$shlibpath_var"; then
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2717 echo "----------------------------------------------------------------------"
2718 echo "Libraries have been installed in:"
2719 for libdir in $libdirs; do
2720 $ECHO " $libdir"
2721 done
2722 echo
2723 echo "If you ever happen to want to link against installed libraries"
2724 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'"
2726 echo "flag during linking and do at least one of the following:"
2727 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2729 echo " during execution"
2730 fi
2731 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2733 echo " during linking"
2734 fi
2735 if test -n "$hardcode_libdir_flag_spec"; then
2736 libdir=LIBDIR
2737 eval flag=\"$hardcode_libdir_flag_spec\"
2738
2739 $ECHO " - use the \`$flag' linker flag"
2740 fi
2741 if test -n "$admincmds"; then
2742 $ECHO " - have your system administrator run these commands:$admincmds"
2743 fi
2744 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2746 fi
2747 echo
2748
2749 echo "See any operating system documentation about shared libraries for"
2750 case $host in
2751 solaris2.[6789]|solaris2.1[0-9])
2752 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2753 echo "pages."
2754 ;;
2755 *)
2756 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2757 ;;
2758 esac
2759 echo "----------------------------------------------------------------------"
18102760 fi
1811 if test -n "$runpath_var"; then
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
1814 fi
1815 if test -n "$hardcode_libdir_flag_spec"; then
1816 libdir=LIBDIR
1817 eval flag=\"$hardcode_libdir_flag_spec\"
1818
1819 $ECHO " - use the \`$flag' linker flag"
1820 fi
1821 if test -n "$admincmds"; then
1822 $ECHO " - have your system administrator run these commands:$admincmds"
1823 fi
1824 if test -f /etc/ld.so.conf; then
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1826 fi
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
1830 case $host in
1831 solaris2.[6789]|solaris2.1[0-9])
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
1834 ;;
1835 *)
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1837 ;;
1838 esac
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
18402761 exit $EXIT_SUCCESS
18412762 }
18422763
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
18442765
18452766
18462767 # func_mode_install arg...
18512772 # install_prog (especially on Windows NT).
18522773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
18532774 # Allow the use of GNU shtool's install command.
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
18552776 # Aesthetically quote it.
18562777 func_quote_for_eval "$nonopt"
18572778 install_prog="$func_quote_for_eval_result "
18652786 # The real first argument should be the name of the installation program.
18662787 # Aesthetically quote it.
18672788 func_quote_for_eval "$arg"
1868 install_prog="$install_prog$func_quote_for_eval_result"
2789 func_append install_prog "$func_quote_for_eval_result"
2790 install_shared_prog=$install_prog
2791 case " $install_prog " in
2792 *[\\\ /]cp\ *) install_cp=: ;;
2793 *) install_cp=false ;;
2794 esac
18692795
18702796 # We need to accept at least all the BSD install flags.
18712797 dest=
18752801 install_type=
18762802 isdir=no
18772803 stripme=
2804 no_mode=:
18782805 for arg
18792806 do
2807 arg2=
18802808 if test -n "$dest"; then
1881 files="$files $dest"
2809 func_append files " $dest"
18822810 dest=$arg
18832811 continue
18842812 fi
18862814 case $arg in
18872815 -d) isdir=yes ;;
18882816 -f)
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
2817 if $install_cp; then :; else
2818 prev=$arg
2819 fi
18932820 ;;
18942821 -g | -m | -o)
18952822 prev=$arg
19032830 *)
19042831 # If the previous option needed an argument, then skip it.
19052832 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2834 arg2=$install_override_mode
2835 no_mode=false
2836 fi
19062837 prev=
19072838 else
19082839 dest=$arg
19132844
19142845 # Aesthetically quote the argument.
19152846 func_quote_for_eval "$arg"
1916 install_prog="$install_prog $func_quote_for_eval_result"
2847 func_append install_prog " $func_quote_for_eval_result"
2848 if test -n "$arg2"; then
2849 func_quote_for_eval "$arg2"
2850 fi
2851 func_append install_shared_prog " $func_quote_for_eval_result"
19172852 done
19182853
19192854 test -z "$install_prog" && \
19212856
19222857 test -n "$prev" && \
19232858 func_fatal_help "the \`$prev' option requires an argument"
2859
2860 if test -n "$install_override_mode" && $no_mode; then
2861 if $install_cp; then :; else
2862 func_quote_for_eval "$install_override_mode"
2863 func_append install_shared_prog " -m $func_quote_for_eval_result"
2864 fi
2865 fi
19242866
19252867 if test -z "$files"; then
19262868 if test -z "$dest"; then
19762918 case $file in
19772919 *.$libext)
19782920 # Do the static libraries later.
1979 staticlibs="$staticlibs $file"
2921 func_append staticlibs " $file"
19802922 ;;
19812923
19822924 *.la)
2925 func_resolve_sysroot "$file"
2926 file=$func_resolve_sysroot_result
2927
19832928 # Check to see that this really is a libtool archive.
19842929 func_lalib_unsafe_p "$file" \
19852930 || func_fatal_help "\`$file' is not a valid libtool archive"
19932938 if test "X$destdir" = "X$libdir"; then
19942939 case "$current_libdirs " in
19952940 *" $libdir "*) ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
2941 *) func_append current_libdirs " $libdir" ;;
19972942 esac
19982943 else
19992944 # Note the libdir as a future libdir.
20002945 case "$future_libdirs " in
20012946 *" $libdir "*) ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
2947 *) func_append future_libdirs " $libdir" ;;
20032948 esac
20042949 fi
20052950
20062951 func_dirname "$file" "/" ""
20072952 dir="$func_dirname_result"
2008 dir="$dir$objdir"
2953 func_append dir "$objdir"
20092954
20102955 if test -n "$relink_command"; then
20112956 # Determine the prefix the user has applied to our future dir.
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
20132958
20142959 # Don't allow the user to place us outside of our expected
20152960 # location b/c this prevents finding dependent libraries that
20222967
20232968 if test -n "$inst_prefix_dir"; then
20242969 # Stick the inst_prefix_dir data into the link command.
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2970 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
20262971 else
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2972 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
20282973 fi
20292974
20302975 func_warning "relinking \`$file'"
20422987 test -n "$relink_command" && srcname="$realname"T
20432988
20442989 # Install the shared library and build the symlinks.
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2990 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
20462991 'exit $?'
20472992 tstripme="$stripme"
20482993 case $host_os in
20823027 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
20833028
20843029 # Maybe install the static library, too.
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
20863031 ;;
20873032
20883033 *.lo)
21823127 if test -f "$lib"; then
21833128 func_source "$lib"
21843129 fi
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
21863131 if test -n "$libdir" && test ! -f "$libfile"; then
21873132 func_warning "\`$lib' has not been installed in \`$libdir'"
21883133 finalize=no
22013146 file="$func_basename_result"
22023147 outputname="$tmpdir/$file"
22033148 # Replace the output file specification.
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
3149 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
22053150
22063151 $opt_silent || {
22073152 func_quote_for_expand "$relink_command"
22203165 }
22213166 else
22223167 # Install the binary that we compiled earlier.
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
3168 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
22243169 fi
22253170 fi
22263171
22563201
22573202 # Set up the ranlib parameters.
22583203 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
22593206
22603207 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
22613208
22623209 if test -n "$stripme" && test -n "$old_striplib"; then
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
22643211 fi
22653212
22663213 # Do each command in the postinstall commands.
22793226 fi
22803227 }
22813228
2282 test "$mode" = install && func_mode_install ${1+"$@"}
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
22833230
22843231
22853232 # func_generate_dlsyms outputname originator pic_p
23223269 extern \"C\" {
23233270 #endif
23243271
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
3273 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3274 #endif
3275
3276 /* 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
3279 relocations are performed -- see ld's documentation on pseudo-relocs. */
3280 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
3282 /* This system does not cope well with relocations in const data. */
3283 # define LT_DLSYM_CONST
3284 #else
3285 # define LT_DLSYM_CONST const
3286 #endif
3287
23253288 /* External symbol declarations for the compiler. */\
23263289 "
23273290
23313294 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
23323295
23333296 # Add our own program objects to the symbol list.
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3297 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
23353298 for progfile in $progfiles; do
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
3299 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3301 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
23383302 done
23393303
23403304 if test -n "$exclude_expsyms"; then
23703334 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
23713335 eval '$MV "$nlist"T "$nlist"'
23723336 case $host in
2373 *cygwin | *mingw* | *cegcc* )
3337 *cygwin* | *mingw* | *cegcc* )
23743338 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
23753339 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
23763340 ;;
23833347 func_verbose "extracting global C symbols from \`$dlprefile'"
23843348 func_basename "$dlprefile"
23853349 name="$func_basename_result"
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
3350 case $host in
3351 *cygwin* | *mingw* | *cegcc* )
3352 # if an import library, we need to obtain dlname
3353 if func_win32_import_lib_p "$dlprefile"; then
3354 func_tr_sh "$dlprefile"
3355 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
3357 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3358 # Use subshell, to avoid clobbering current variable values
3359 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
3361 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
3363 else
3364 # no lafile. user explicitly requested -dlpreopen <import library>.
3365 $sharedlib_from_linklib_cmd "$dlprefile"
3366 dlprefile_dlbasename=$sharedlib_from_linklib_result
3367 fi
3368 fi
3369 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
3371 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3372 else
3373 func_warning "Could not compute DLL name from $name"
3374 eval '$ECHO ": $name " >> "$nlist"'
3375 fi
3376 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3377 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3378 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3379 }
3380 else # not an import lib
3381 $opt_dry_run || {
3382 eval '$ECHO ": $name " >> "$nlist"'
3383 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3384 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3385 }
3386 fi
3387 ;;
3388 *)
3389 $opt_dry_run || {
3390 eval '$ECHO ": $name " >> "$nlist"'
3391 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3392 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3393 }
3394 ;;
3395 esac
23903396 done
23913397
23923398 $opt_dry_run || {
24143420 if test -f "$nlist"S; then
24153421 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
24163422 else
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
3423 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
24183424 fi
24193425
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
3426 echo >> "$output_objdir/$my_dlsyms" "\
24213427
24223428 /* The mapping between symbol names and symbols. */
24233429 typedef struct {
24243430 const char *name;
24253431 void *address;
24263432 } lt_dlsymlist;
2427 "
2428 case $host in
2429 *cygwin* | *mingw* | *cegcc* )
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
2431 /* DATA imports from DLLs on WIN32 con't be const, because
2432 runtime relocations are performed -- see ld's documentation
2433 on pseudo-relocs. */"
2434 lt_dlsym_const= ;;
2435 *osf5*)
2436 echo >> "$output_objdir/$my_dlsyms" "\
2437 /* This system does not cope well with relocations in const data */"
2438 lt_dlsym_const= ;;
2439 *)
2440 lt_dlsym_const=const ;;
2441 esac
2442
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
2444 extern $lt_dlsym_const lt_dlsymlist
3433 extern LT_DLSYM_CONST lt_dlsymlist
24453434 lt_${my_prefix}_LTX_preloaded_symbols[];
2446 $lt_dlsym_const lt_dlsymlist
3435 LT_DLSYM_CONST lt_dlsymlist
24473436 lt_${my_prefix}_LTX_preloaded_symbols[] =
24483437 {\
24493438 { \"$my_originator\", (void *) 0 },"
24563445 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
24573446 ;;
24583447 esac
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
3448 echo >> "$output_objdir/$my_dlsyms" "\
24603449 {0, (void *) 0}
24613450 };
24623451
24833472 # linked before any other PIC object. But we must not use
24843473 # pic_flag when linking with -static. The problem exists in
24853474 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
24873476 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
24883477 *-*-hpux*)
24893478 pic_flag_for_symtable=" $pic_flag" ;;
24993488 for arg in $LTCFLAGS; do
25003489 case $arg in
25013490 -pie | -fpie | -fPIE) ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
3491 *) func_append symtab_cflags " $arg" ;;
25033492 esac
25043493 done
25053494
25143503 case $host in
25153504 *cygwin* | *mingw* | *cegcc* )
25163505 if test -f "$output_objdir/$my_outputname.def"; then
2517 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3506 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3507 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
25193508 else
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
3509 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3510 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
25223511 fi
25233512 ;;
25243513 *)
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
3514 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3515 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
25273516 ;;
25283517 esac
25293518 ;;
25373526 # really was required.
25383527
25393528 # Nullify the symbol file.
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
3529 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3530 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
25423531 fi
25433532 }
25443533
25483537 # Need a lot of goo to handle *both* DLLs and import libs
25493538 # Has to be a shell function in order to 'eat' the argument
25503539 # that is supplied when $file_magic_command is called.
3540 # Despite the name, also deal with 64 bit binaries.
25513541 func_win32_libid ()
25523542 {
25533543 $opt_debug
25583548 win32_libid_type="x86 archive import"
25593549 ;;
25603550 *ar\ archive*) # could be an import, or static
3551 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
25613552 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
3553 $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\" |
25643556 $SED -n -e '
25653557 1,100{
25663558 / I /{
25893581 $ECHO "$win32_libid_type"
25903582 }
25913583
3584 # func_cygming_dll_for_implib ARG
3585 #
3586 # Platform-specific function to extract the
3587 # name of the DLL associated with the specified
3588 # import library ARG.
3589 # Invoked by eval'ing the libtool variable
3590 # $sharedlib_from_linklib_cmd
3591 # Result is available in the variable
3592 # $sharedlib_from_linklib_result
3593 func_cygming_dll_for_implib ()
3594 {
3595 $opt_debug
3596 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3597 }
3598
3599 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3600 #
3601 # The is the core of a fallback implementation of a
3602 # platform-specific function to extract the name of the
3603 # DLL associated with the specified import library LIBNAME.
3604 #
3605 # SECTION_NAME is either .idata$6 or .idata$7, depending
3606 # on the platform and compiler that created the implib.
3607 #
3608 # Echos the name of the DLL associated with the
3609 # specified import library.
3610 func_cygming_dll_for_implib_fallback_core ()
3611 {
3612 $opt_debug
3613 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3614 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3615 $SED '/^Contents of section '"$match_literal"':/{
3616 # Place marker at beginning of archive member dllname section
3617 s/.*/====MARK====/
3618 p
3619 d
3620 }
3621 # These lines can sometimes be longer than 43 characters, but
3622 # are always uninteresting
3623 /:[ ]*file format pe[i]\{,1\}-/d
3624 /^In archive [^:]*:/d
3625 # Ensure marker is printed
3626 /^====MARK====/p
3627 # Remove all lines with less than 43 characters
3628 /^.\{43\}/!d
3629 # From remaining lines, remove first 43 characters
3630 s/^.\{43\}//' |
3631 $SED -n '
3632 # Join marker and all lines until next marker into a single line
3633 /^====MARK====/ b para
3634 H
3635 $ b para
3636 b
3637 :para
3638 x
3639 s/\n//g
3640 # Remove the marker
3641 s/^====MARK====//
3642 # Remove trailing dots and whitespace
3643 s/[\. \t]*$//
3644 # Print
3645 /./p' |
3646 # we now have a list, one entry per line, of the stringified
3647 # 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
3650 # a '.' (that is, objdump's representation of an unprintable
3651 # character.) This should work for all archives with less than
3652 # 0x302f exports -- but will fail for DLLs whose name actually
3653 # begins with a literal '.' or a single character followed by
3654 # a '.'.
3655 #
3656 # Of those that remain, print the first one.
3657 $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"
3682 }
3683
3684 # func_cygming_dll_for_implib_fallback ARG
3685 # Platform-specific function to extract the
3686 # name of the DLL associated with the specified
3687 # import library ARG.
3688 #
3689 # This fallback implementation is for use when $DLLTOOL
3690 # does not support the --identify-strict option.
3691 # Invoked by eval'ing the libtool variable
3692 # $sharedlib_from_linklib_cmd
3693 # Result is available in the variable
3694 # $sharedlib_from_linklib_result
3695 func_cygming_dll_for_implib_fallback ()
3696 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
3699 # binutils import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
3702 # ms-generated import library
3703 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3704 else
3705 # unknown
3706 sharedlib_from_linklib_result=""
3707 fi
3708 }
25923709
25933710
25943711 # func_extract_an_archive dir oldlib
25973714 $opt_debug
25983715 f_ex_an_ar_dir="$1"; shift
25993716 f_ex_an_ar_oldlib="$1"
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
3717 if test "$lock_old_archive_extraction" = yes; then
3718 lockfile=$f_ex_an_ar_oldlib.lock
3719 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3720 func_echo "Waiting for $lockfile to be removed"
3721 sleep 2
3722 done
3723 fi
3724 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
3725 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
3727 $opt_dry_run || rm -f "$lockfile"
3728 fi
26013729 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
26023730 :
26033731 else
26683796 darwin_file=
26693797 darwin_files=
26703798 for darwin_file in $darwin_filelist; do
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
3799 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
26723800 $LIPO -create -output "$darwin_file" $darwin_files
26733801 done # $darwin_filelist
26743802 $RM -rf unfat-$$
26833811 func_extract_an_archive "$my_xdir" "$my_xabs"
26843812 ;;
26853813 esac
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3814 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
26873815 done
26883816
26893817 func_extract_archives_result="$my_oldobjs"
26903818 }
2691
2692
2693
2694 # func_emit_wrapper_part1 [arg=no]
2695 #
2696 # Emit the first part of a libtool wrapper script on stdout.
2697 # For more information, see the description associated with
2698 # func_emit_wrapper(), below.
2699 func_emit_wrapper_part1 ()
2700 {
2701 func_emit_wrapper_part1_arg1=no
2702 if test -n "$1" ; then
2703 func_emit_wrapper_part1_arg1=$1
2704 fi
2705
2706 $ECHO "\
2707 #! $SHELL
2708
2709 # $output - temporary wrapper script for $objdir/$outputname
2710 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2711 #
2712 # The $output program cannot be directly executed until all the libtool
2713 # libraries that it depends on are installed.
2714 #
2715 # This wrapper script should never be moved out of the build directory.
2716 # If it is, it will not operate correctly.
2717
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='${SED} -e 1s/^X//'
2721 sed_quote_subst='$sed_quote_subst'
2722
2723 # Be Bourne compatible
2724 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2725 emulate sh
2726 NULLCMD=:
2727 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2728 # is contrary to our usage. Disable this feature.
2729 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2730 setopt NO_GLOB_SUBST
2731 else
2732 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2733 fi
2734 BIN_SH=xpg4; export BIN_SH # for Tru64
2735 DUALCASE=1; export DUALCASE # for MKS sh
2736
2737 # The HP-UX ksh and POSIX shell print the target directory to stdout
2738 # if CDPATH is set.
2739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2740
2741 relink_command=\"$relink_command\"
2742
2743 # This environment variable determines our operation mode.
2744 if test \"\$libtool_install_magic\" = \"$magic\"; then
2745 # install mode needs the following variables:
2746 generated_by_libtool_version='$macro_version'
2747 notinst_deplibs='$notinst_deplibs'
2748 else
2749 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2750 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2751 ECHO=\"$qecho\"
2752 file=\"\$0\"
2753 # Make sure echo works.
2754 if test \"X\$1\" = X--no-reexec; then
2755 # Discard the --no-reexec flag, and continue.
2756 shift
2757 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2758 # Yippee, \$ECHO works!
2759 :
2760 else
2761 # Restart under the correct shell, and then maybe \$ECHO will work.
2762 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2763 fi
2764 fi\
2765 "
2766 $ECHO "\
2767
2768 # Find the directory that this script lives in.
2769 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2770 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2771
2772 # Follow symbolic links until we get to the real thisdir.
2773 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2774 while test -n \"\$file\"; do
2775 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2776
2777 # If there was a directory component, then change thisdir.
2778 if test \"x\$destdir\" != \"x\$file\"; then
2779 case \"\$destdir\" in
2780 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2781 *) thisdir=\"\$thisdir/\$destdir\" ;;
2782 esac
2783 fi
2784
2785 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2786 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2787 done
2788 "
2789 }
2790 # end: func_emit_wrapper_part1
2791
2792 # func_emit_wrapper_part2 [arg=no]
2793 #
2794 # Emit the second part of a libtool wrapper script on stdout.
2795 # For more information, see the description associated with
2796 # func_emit_wrapper(), below.
2797 func_emit_wrapper_part2 ()
2798 {
2799 func_emit_wrapper_part2_arg1=no
2800 if test -n "$1" ; then
2801 func_emit_wrapper_part2_arg1=$1
2802 fi
2803
2804 $ECHO "\
2805
2806 # Usually 'no', except on cygwin/mingw when embedded into
2807 # the cwrapper.
2808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
2809 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2810 # special case for '.'
2811 if test \"\$thisdir\" = \".\"; then
2812 thisdir=\`pwd\`
2813 fi
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
2818 esac
2819 fi
2820
2821 # Try to get the absolute directory name.
2822 absdir=\`cd \"\$thisdir\" && pwd\`
2823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2824 "
2825
2826 if test "$fast_install" = yes; then
2827 $ECHO "\
2828 program=lt-'$outputname'$exeext
2829 progdir=\"\$thisdir/$objdir\"
2830
2831 if test ! -f \"\$progdir/\$program\" ||
2832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2833 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2834
2835 file=\"\$\$-\$program\"
2836
2837 if test ! -d \"\$progdir\"; then
2838 $MKDIR \"\$progdir\"
2839 else
2840 $RM \"\$progdir/\$file\"
2841 fi"
2842
2843 $ECHO "\
2844
2845 # relink executable if necessary
2846 if test -n \"\$relink_command\"; then
2847 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2848 else
2849 $ECHO \"\$relink_command_output\" >&2
2850 $RM \"\$progdir/\$file\"
2851 exit 1
2852 fi
2853 fi
2854
2855 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2856 { $RM \"\$progdir/\$program\";
2857 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2858 $RM \"\$progdir/\$file\"
2859 fi"
2860 else
2861 $ECHO "\
2862 program='$outputname'
2863 progdir=\"\$thisdir/$objdir\"
2864 "
2865 fi
2866
2867 $ECHO "\
2868
2869 if test -f \"\$progdir/\$program\"; then"
2870
2871 # Export our shlibpath_var if we have one.
2872 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2873 $ECHO "\
2874 # Add our own library path to $shlibpath_var
2875 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2876
2877 # Some systems cannot cope with colon-terminated $shlibpath_var
2878 # The second colon is a workaround for a bug in BeOS R4 sed
2879 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2880
2881 export $shlibpath_var
2882 "
2883 fi
2884
2885 # fixup the dll searchpath if we need to.
2886 if test -n "$dllsearchpath"; then
2887 $ECHO "\
2888 # Add the dll search path components to the executable PATH
2889 PATH=$dllsearchpath:\$PATH
2890 "
2891 fi
2892
2893 $ECHO "\
2894 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2895 # Run the actual program with our arguments.
2896 "
2897 case $host in
2898 # Backslashes separate directories on plain windows
2899 *-*-mingw | *-*-os2* | *-cegcc*)
2900 $ECHO "\
2901 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2902 "
2903 ;;
2904
2905 *)
2906 $ECHO "\
2907 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2908 "
2909 ;;
2910 esac
2911 $ECHO "\
2912 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2913 exit 1
2914 fi
2915 else
2916 # The program doesn't exist.
2917 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2918 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2919 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2920 exit 1
2921 fi
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
29263819
29273820
29283821 # func_emit_wrapper [arg=no]
29413834 # behavior.
29423835 func_emit_wrapper ()
29433836 {
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
2947 fi
2948
2949 # split this up so that func_emit_cwrapperexe_src
2950 # can call each part independently.
2951 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
2952 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
2953 }
2954
2955
2956 # func_to_host_path arg
3837 func_emit_wrapper_arg1=${1-no}
3838
3839 $ECHO "\
3840 #! $SHELL
3841
3842 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
29573844 #
2958 # Convert paths to host format when used with build tools.
2959 # Intended for use with "native" mingw (where libtool itself
2960 # is running under the msys shell), or in the following cross-
2961 # build environments:
2962 # $build $host
2963 # mingw (msys) mingw [e.g. native]
2964 # cygwin mingw
2965 # *nix + wine mingw
2966 # where wine is equipped with the `winepath' executable.
2967 # In the native mingw case, the (msys) shell automatically
2968 # converts paths for any non-msys applications it launches,
2969 # but that facility isn't available from inside the cwrapper.
2970 # Similar accommodations are necessary for $host mingw and
2971 # $build cygwin. Calling this function does no harm for other
2972 # $host/$build combinations not listed above.
3845 # The $output program cannot be directly executed until all the libtool
3846 # libraries that it depends on are installed.
29733847 #
2974 # ARG is the path (on $build) that should be converted to
2975 # the proper representation for $host. The result is stored
2976 # in $func_to_host_path_result.
2977 func_to_host_path ()
2978 {
2979 func_to_host_path_result="$1"
2980 if test -n "$1" ; then
2981 case $host in
2982 *mingw* )
2983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
2984 case $build in
2985 *mingw* ) # actually, msys
2986 # awkward: cmd appends spaces to result
2987 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
2988 func_to_host_path_tmp1=`( cmd //c echo "$1" |\
2989 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
2990 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2991 $SED -e "$lt_sed_naive_backslashify"`
2992 ;;
2993 *cygwin* )
2994 func_to_host_path_tmp1=`cygpath -w "$1"`
2995 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2996 $SED -e "$lt_sed_naive_backslashify"`
2997 ;;
2998 * )
2999 # Unfortunately, winepath does not exit with a non-zero
3000 # error code, so we are forced to check the contents of
3001 # stdout. On the other hand, if the command is not
3002 # found, the shell will set an exit code of 127 and print
3003 # *an error message* to stdout. So we must check for both
3004 # error code of zero AND non-empty stdout, which explains
3005 # the odd construction:
3006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
3009 $SED -e "$lt_sed_naive_backslashify"`
3010 else
3011 # Allow warning below.
3012 func_to_host_path_result=""
3013 fi
3014 ;;
3015 esac
3016 if test -z "$func_to_host_path_result" ; then
3017 func_error "Could not determine host path corresponding to"
3018 func_error " '$1'"
3019 func_error "Continuing, but uninstalled executables may not work."
3020 # Fallback:
3021 func_to_host_path_result="$1"
3022 fi
3023 ;;
3848 # This wrapper script should never be moved out of the build directory.
3849 # If it is, it will not operate correctly.
3850
3851 # Sed substitution that helps us do robust quoting. It backslashifies
3852 # metacharacters that are still active within double-quoted strings.
3853 sed_quote_subst='$sed_quote_subst'
3854
3855 # Be Bourne compatible
3856 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3857 emulate sh
3858 NULLCMD=:
3859 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
3860 # is contrary to our usage. Disable this feature.
3861 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3862 setopt NO_GLOB_SUBST
3863 else
3864 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3865 fi
3866 BIN_SH=xpg4; export BIN_SH # for Tru64
3867 DUALCASE=1; export DUALCASE # for MKS sh
3868
3869 # The HP-UX ksh and POSIX shell print the target directory to stdout
3870 # if CDPATH is set.
3871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3872
3873 relink_command=\"$relink_command\"
3874
3875 # This environment variable determines our operation mode.
3876 if test \"\$libtool_install_magic\" = \"$magic\"; then
3877 # install mode needs the following variables:
3878 generated_by_libtool_version='$macro_version'
3879 notinst_deplibs='$notinst_deplibs'
3880 else
3881 # When we are sourced in execute mode, \$file and \$ECHO are already set.
3882 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3883 file=\"\$0\""
3884
3885 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
3886 $ECHO "\
3887
3888 # A function that is used when there is no print builtin or printf.
3889 func_fallback_echo ()
3890 {
3891 eval 'cat <<_LTECHO_EOF
3892 \$1
3893 _LTECHO_EOF'
3894 }
3895 ECHO=\"$qECHO\"
3896 fi
3897
3898 # Very basic option parsing. These options are (a) specific to
3899 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
3901 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
3903 # this pattern).
3904 #
3905 # There are only two supported options: --lt-debug and
3906 # --lt-dump-script. There is, deliberately, no --lt-help.
3907 #
3908 # The first argument to this parsing function should be the
3909 # script's $0 value, followed by "$@".
3910 lt_option_debug=
3911 func_parse_lt_options ()
3912 {
3913 lt_script_arg0=\$0
3914 shift
3915 for lt_opt
3916 do
3917 case \"\$lt_opt\" in
3918 --lt-debug) lt_option_debug=1 ;;
3919 --lt-dump-script)
3920 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3921 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
3922 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3923 cat \"\$lt_dump_D/\$lt_dump_F\"
3924 exit 0
3925 ;;
3926 --lt-*)
3927 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3928 exit 1
3929 ;;
3930 esac
3931 done
3932
3933 # Print the debug banner immediately:
3934 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
3936 fi
3937 }
3938
3939 # Used when --lt-debug. Prints its arguments to stdout
3940 # (redirection is the responsibility of the caller)
3941 func_lt_dump_args ()
3942 {
3943 lt_dump_args_N=1;
3944 for lt_arg
3945 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
3947 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
3948 done
3949 }
3950
3951 # Core function for launching the target application
3952 func_exec_program_core ()
3953 {
3954 "
3955 case $host in
3956 # Backslashes separate directories on plain windows
3957 *-*-mingw | *-*-os2* | *-cegcc*)
3958 $ECHO "\
3959 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
3961 func_lt_dump_args \${1+\"\$@\"} 1>&2
3962 fi
3963 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
3964 "
3965 ;;
3966
3967 *)
3968 $ECHO "\
3969 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
3971 func_lt_dump_args \${1+\"\$@\"} 1>&2
3972 fi
3973 exec \"\$progdir/\$program\" \${1+\"\$@\"}
3974 "
3975 ;;
3976 esac
3977 $ECHO "\
3978 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
3979 exit 1
3980 }
3981
3982 # A function to encapsulate launching the target application
3983 # Strips options in the --lt-* namespace from \$@ and
3984 # launches target application with the remaining arguments.
3985 func_exec_program ()
3986 {
3987 case \" \$* \" in
3988 *\\ --lt-*)
3989 for lt_wr_arg
3990 do
3991 case \$lt_wr_arg in
3992 --lt-*) ;;
3993 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3994 esac
3995 shift
3996 done ;;
3997 esac
3998 func_exec_program_core \${1+\"\$@\"}
3999 }
4000
4001 # Parse options
4002 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
4003
4004 # Find the directory that this script lives in.
4005 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
4006 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4007
4008 # Follow symbolic links until we get to the real thisdir.
4009 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4010 while test -n \"\$file\"; do
4011 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
4012
4013 # If there was a directory component, then change thisdir.
4014 if test \"x\$destdir\" != \"x\$file\"; then
4015 case \"\$destdir\" in
4016 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4017 *) thisdir=\"\$thisdir/\$destdir\" ;;
4018 esac
4019 fi
4020
4021 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
4022 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4023 done
4024
4025 # Usually 'no', except on cygwin/mingw when embedded into
4026 # the cwrapper.
4027 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
4028 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
4029 # special case for '.'
4030 if test \"\$thisdir\" = \".\"; then
4031 thisdir=\`pwd\`
4032 fi
4033 # remove .libs from thisdir
4034 case \"\$thisdir\" in
4035 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
4036 $objdir ) thisdir=. ;;
30244037 esac
30254038 fi
3026 }
3027 # end: func_to_host_path
3028
3029 # func_to_host_pathlist arg
3030 #
3031 # Convert pathlists to host format when used with build tools.
3032 # See func_to_host_path(), above. This function supports the
3033 # following $build/$host combinations (but does no harm for
3034 # combinations not listed here):
3035 # $build $host
3036 # mingw (msys) mingw [e.g. native]
3037 # cygwin mingw
3038 # *nix + wine mingw
3039 #
3040 # Path separators are also converted from $build format to
3041 # $host format. If ARG begins or ends with a path separator
3042 # character, it is preserved (but converted to $host format)
3043 # on output.
3044 #
3045 # ARG is a pathlist (on $build) that should be converted to
3046 # the proper representation on $host. The result is stored
3047 # in $func_to_host_pathlist_result.
3048 func_to_host_pathlist ()
3049 {
3050 func_to_host_pathlist_result="$1"
3051 if test -n "$1" ; then
3052 case $host in
3053 *mingw* )
3054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3055 # Remove leading and trailing path separator characters from
3056 # ARG. msys behavior is inconsistent here, cygpath turns them
3057 # into '.;' and ';.', and winepath ignores them completely.
3058 func_to_host_pathlist_tmp2="$1"
3059 # Once set for this call, this variable should not be
3060 # reassigned. It is used in tha fallback case.
3061 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
3062 $SED -e 's|^:*||' -e 's|:*$||'`
3063 case $build in
3064 *mingw* ) # Actually, msys.
3065 # Awkward: cmd appends spaces to result.
3066 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3067 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
3068 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
3069 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3070 $SED -e "$lt_sed_naive_backslashify"`
3071 ;;
3072 *cygwin* )
3073 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
3074 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3075 $SED -e "$lt_sed_naive_backslashify"`
3076 ;;
3077 * )
3078 # unfortunately, winepath doesn't convert pathlists
3079 func_to_host_pathlist_result=""
3080 func_to_host_pathlist_oldIFS=$IFS
3081 IFS=:
3082 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3083 IFS=$func_to_host_pathlist_oldIFS
3084 if test -n "$func_to_host_pathlist_f" ; then
3085 func_to_host_path "$func_to_host_pathlist_f"
3086 if test -n "$func_to_host_path_result" ; then
3087 if test -z "$func_to_host_pathlist_result" ; then
3088 func_to_host_pathlist_result="$func_to_host_path_result"
3089 else
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
3091 fi
3092 fi
3093 fi
3094 IFS=:
3095 done
3096 IFS=$func_to_host_pathlist_oldIFS
3097 ;;
3098 esac
3099 if test -z "$func_to_host_pathlist_result" ; then
3100 func_error "Could not determine the host path(s) corresponding to"
3101 func_error " '$1'"
3102 func_error "Continuing, but uninstalled executables may not work."
3103 # Fallback. This may break if $1 contains DOS-style drive
3104 # specifications. The fix is not to complicate the expression
3105 # below, but for the user to provide a working wine installation
3106 # with winepath so that path translation in the cross-to-mingw
3107 # case works properly.
3108 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3109 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3110 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3111 fi
3112 # Now, add the leading and trailing path separators back
3113 case "$1" in
3114 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3115 ;;
3116 esac
3117 case "$1" in
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
3119 ;;
3120 esac
3121 ;;
3122 esac
4039
4040 # Try to get the absolute directory name.
4041 absdir=\`cd \"\$thisdir\" && pwd\`
4042 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4043 "
4044
4045 if test "$fast_install" = yes; then
4046 $ECHO "\
4047 program=lt-'$outputname'$exeext
4048 progdir=\"\$thisdir/$objdir\"
4049
4050 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4052 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4053
4054 file=\"\$\$-\$program\"
4055
4056 if test ! -d \"\$progdir\"; then
4057 $MKDIR \"\$progdir\"
4058 else
4059 $RM \"\$progdir/\$file\"
4060 fi"
4061
4062 $ECHO "\
4063
4064 # relink executable if necessary
4065 if test -n \"\$relink_command\"; then
4066 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4067 else
4068 $ECHO \"\$relink_command_output\" >&2
4069 $RM \"\$progdir/\$file\"
4070 exit 1
4071 fi
4072 fi
4073
4074 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4075 { $RM \"\$progdir/\$program\";
4076 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4077 $RM \"\$progdir/\$file\"
4078 fi"
4079 else
4080 $ECHO "\
4081 program='$outputname'
4082 progdir=\"\$thisdir/$objdir\"
4083 "
4084 fi
4085
4086 $ECHO "\
4087
4088 if test -f \"\$progdir/\$program\"; then"
4089
4090 # fixup the dll searchpath if we need to.
4091 #
4092 # Fix the DLL searchpath if we need to. Do this before prepending
4093 # to shlibpath, because on Windows, both are PATH and uninstalled
4094 # libraries must come first.
4095 if test -n "$dllsearchpath"; then
4096 $ECHO "\
4097 # Add the dll search path components to the executable PATH
4098 PATH=$dllsearchpath:\$PATH
4099 "
4100 fi
4101
4102 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4104 $ECHO "\
4105 # Add our own library path to $shlibpath_var
4106 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4107
4108 # Some systems cannot cope with colon-terminated $shlibpath_var
4109 # The second colon is a workaround for a bug in BeOS R4 sed
4110 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
4111
4112 export $shlibpath_var
4113 "
4114 fi
4115
4116 $ECHO "\
4117 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4118 # Run the actual program with our arguments.
4119 func_exec_program \${1+\"\$@\"}
4120 fi
4121 else
4122 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4124 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
4125 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
4126 exit 1
31234127 fi
3124 }
3125 # end: func_to_host_pathlist
4128 fi\
4129 "
4130 }
4131
31264132
31274133 # func_emit_cwrapperexe_src
31284134 # emit the source code for a wrapper executable on stdout
31404146
31414147 This wrapper executable should never be moved out of the build directory.
31424148 If it is, it will not operate correctly.
3143
3144 Currently, it simply execs the wrapper *script* "$SHELL $output",
3145 but could eventually absorb all of the scripts functionality and
3146 exec $objdir/$outputname directly.
31474149 */
31484150 EOF
31494151 cat <<"EOF"
4152 #ifdef _MSC_VER
4153 # define _CRT_SECURE_NO_DEPRECATE 1
4154 #endif
31504155 #include <stdio.h>
31514156 #include <stdlib.h>
31524157 #ifdef _MSC_VER
31534158 # include <direct.h>
31544159 # include <process.h>
31554160 # include <io.h>
3156 # define setmode _setmode
31574161 #else
31584162 # include <unistd.h>
31594163 # include <stdint.h>
31604164 # ifdef __CYGWIN__
31614165 # include <io.h>
3162 # define HAVE_SETENV
3163 # ifdef __STRICT_ANSI__
3164 char *realpath (const char *, char *);
3165 int putenv (char *);
3166 int setenv (const char *, const char *, int);
3167 # endif
31684166 # endif
31694167 #endif
31704168 #include <malloc.h>
31764174 #include <fcntl.h>
31774175 #include <sys/stat.h>
31784176
4177 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
4179 # ifdef __STRICT_ANSI__
4180 int _putenv (const char *);
4181 # endif
4182 #elif defined(__CYGWIN__)
4183 # ifdef __STRICT_ANSI__
4184 char *realpath (const char *, char *);
4185 int putenv (char *);
4186 int setenv (const char *, const char *, int);
4187 # endif
4188 /* #elif defined (other platforms) ... */
4189 #endif
4190
4191 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
4193 # define setmode _setmode
4194 # define stat _stat
4195 # define chmod _chmod
4196 # define getcwd _getcwd
4197 # define putenv _putenv
4198 # 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__)
4204 # define setmode _setmode
4205 # define stat _stat
4206 # define chmod _chmod
4207 # define getcwd _getcwd
4208 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
4210 # define HAVE_SETENV
4211 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
4213 #endif
4214
31794215 #if defined(PATH_MAX)
31804216 # define LT_PATHMAX PATH_MAX
31814217 #elif defined(MAXPATHLEN)
31914227 # define S_IXGRP 0
31924228 #endif
31934229
3194 #ifdef _MSC_VER
3195 # define S_IXUSR _S_IEXEC
3196 # define stat _stat
3197 # ifndef _INTPTR_T_DEFINED
3198 # define intptr_t int
3199 # endif
3200 #endif
3201
4230 /* path handling portability macros */
32024231 #ifndef DIR_SEPARATOR
32034232 # define DIR_SEPARATOR '/'
32044233 # define PATH_SEPARATOR ':'
32294258 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
32304259 #endif /* PATH_SEPARATOR_2 */
32314260
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
32364261 #ifndef FOPEN_WB
32374262 # define FOPEN_WB "w"
32384263 #endif
32454270 if (stale) { free ((void *) stale); stale = 0; } \
32464271 } while (0)
32474272
3248 #undef LTWRAPPER_DEBUGPRINTF
3249 #if defined DEBUGWRAPPER
3250 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3251 static void
3252 ltwrapper_debugprintf (const char *fmt, ...)
3253 {
3254 va_list args;
3255 va_start (args, fmt);
3256 (void) vfprintf (stderr, fmt, args);
3257 va_end (args);
3258 }
4273 #if defined(LT_DEBUGWRAPPER)
4274 static int lt_debug = 1;
32594275 #else
3260 # define LTWRAPPER_DEBUGPRINTF(args)
4276 static int lt_debug = 0;
32614277 #endif
32624278
3263 const char *program_name = NULL;
4279 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
32644280
32654281 void *xmalloc (size_t num);
32664282 char *xstrdup (const char *string);
32704286 int make_executable (const char *path);
32714287 int check_executable (const char *path);
32724288 char *strendzap (char *str, const char *pat);
3273 void lt_fatal (const char *message, ...);
4289 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
4290 void lt_fatal (const char *file, int line, const char *message, ...);
4291 static const char *nonnull (const char *s);
4292 static const char *nonempty (const char *s);
32744293 void lt_setenv (const char *name, const char *value);
32754294 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
3276 void lt_opt_process_env_set (const char *arg);
3277 void lt_opt_process_env_prepend (const char *arg);
3278 void lt_opt_process_env_append (const char *arg);
3279 int lt_split_name_value (const char *arg, char** name, char** value);
32804295 void lt_update_exe_path (const char *name, const char *value);
32814296 void lt_update_lib_path (const char *name, const char *value);
3282
3283 static const char *script_text_part1 =
4297 char **prepare_spawn (char **argv);
4298 void lt_dump_script (FILE *f);
32844299 EOF
32854300
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
32904301 cat <<EOF
3291
3292 static const char *script_text_part2 =
3293 EOF
3294 func_emit_wrapper_part2 yes |
3295 $SED -e 's/\([\\"]\)/\\\1/g' \
3296 -e 's/^/ "/' -e 's/$/\\n"/'
3297 echo ";"
3298
3299 cat <<EOF
3300 const char * MAGIC_EXE = "$magic_exe";
4302 volatile const char * MAGIC_EXE = "$magic_exe";
33014303 const char * LIB_PATH_VARNAME = "$shlibpath_var";
33024304 EOF
33034305
33044306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3305 func_to_host_pathlist "$temp_rpath"
4307 func_to_host_path "$temp_rpath"
33064308 cat <<EOF
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
4309 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
33084310 EOF
33094311 else
33104312 cat <<"EOF"
33134315 fi
33144316
33154317 if test -n "$dllsearchpath"; then
3316 func_to_host_pathlist "$dllsearchpath:"
4318 func_to_host_path "$dllsearchpath:"
33174319 cat <<EOF
33184320 const char * EXE_PATH_VARNAME = "PATH";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
4321 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
33204322 EOF
33214323 else
33224324 cat <<"EOF"
33394341 cat <<"EOF"
33404342
33414343 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
4344
33454345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
33474346 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
3348
3349 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
3350 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
3351 /* argument is putenv-style "foo=bar", value of foo is set to bar */
3352
3353 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
3354 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
3355 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
3356
3357 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
3358 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
3359 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
4347 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
33604348
33614349 int
33624350 main (int argc, char *argv[])
33734361 int i;
33744362
33754363 program_name = (char *) xstrdup (base_name (argv[0]));
3376 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3377 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3378
3379 /* very simple arg parsing; don't want to rely on getopt */
4364 newargz = XMALLOC (char *, argc + 1);
4365
4366 /* very simple arg parsing; don't want to rely on getopt
4367 * also, copy all non cwrapper options to newargz, except
4368 * argz[0], which is handled differently
4369 */
4370 newargc=0;
33804371 for (i = 1; i < argc; i++)
33814372 {
33824373 if (strcmp (argv[i], dumpscript_opt) == 0)
33904381 esac
33914382
33924383 cat <<"EOF"
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
4384 lt_dump_script (stdout);
33954385 return 0;
33964386 }
4387 if (strcmp (argv[i], debug_opt) == 0)
4388 {
4389 lt_debug = 1;
4390 continue;
4391 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
4393 {
4394 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
4395 namespace, but it is not one of the ones we know about and
4396 have already dealt with, above (inluding dump-script), then
4397 report an error. Otherwise, targets might begin to believe
4398 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
4399 namespace. The first time any user complains about this, we'll
4400 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4401 or a configure.ac-settable value.
4402 */
4403 lt_fatal (__FILE__, __LINE__,
4404 "unrecognized %s option: '%s'",
4405 ltwrapper_option_prefix, argv[i]);
4406 }
4407 /* otherwise ... */
4408 newargz[++newargc] = xstrdup (argv[i]);
33974409 }
3398
3399 newargz = XMALLOC (char *, argc + 1);
4410 newargz[++newargc] = NULL;
4411
4412 EOF
4413 cat <<EOF
4414 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
4416 EOF
4417 cat <<"EOF"
4418 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
4419 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
4420
34004421 tmp_pathspec = find_executable (argv[0]);
34014422 if (tmp_pathspec == NULL)
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
4423 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
4424 lt_debugprintf (__FILE__, __LINE__,
4425 "(main) found exe (before symlink chase) at: %s\n",
4426 tmp_pathspec);
34054427
34064428 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
4429 lt_debugprintf (__FILE__, __LINE__,
4430 "(main) found exe (after symlink chase) at: %s\n",
4431 actual_cwrapper_path);
34094432 XFREE (tmp_pathspec);
34104433
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
4434 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
34124435 strendzap (actual_cwrapper_path, actual_cwrapper_name);
34134436
34144437 /* wrapper name transforms */
34264449 target_name = tmp_pathspec;
34274450 tmp_pathspec = 0;
34284451
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
4452 lt_debugprintf (__FILE__, __LINE__,
4453 "(main) libtool target name: %s\n",
4454 target_name);
34314455 EOF
34324456
34334457 cat <<EOF
34774501
34784502 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
34794503 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4504 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4505 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4506 because on Windows, both *_VARNAMEs are PATH but uninstalled
4507 libraries must come first. */
4508 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
34804509 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
3482
3483 newargc=0;
3484 for (i = 1; i < argc; i++)
3485 {
3486 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
3487 {
3488 if (argv[i][env_set_opt_len] == '=')
3489 {
3490 const char *p = argv[i] + env_set_opt_len + 1;
3491 lt_opt_process_env_set (p);
3492 }
3493 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
3494 {
3495 lt_opt_process_env_set (argv[++i]); /* don't copy */
3496 }
3497 else
3498 lt_fatal ("%s missing required argument", env_set_opt);
3499 continue;
3500 }
3501 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
3502 {
3503 if (argv[i][env_prepend_opt_len] == '=')
3504 {
3505 const char *p = argv[i] + env_prepend_opt_len + 1;
3506 lt_opt_process_env_prepend (p);
3507 }
3508 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
3509 {
3510 lt_opt_process_env_prepend (argv[++i]); /* don't copy */
3511 }
3512 else
3513 lt_fatal ("%s missing required argument", env_prepend_opt);
3514 continue;
3515 }
3516 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
3517 {
3518 if (argv[i][env_append_opt_len] == '=')
3519 {
3520 const char *p = argv[i] + env_append_opt_len + 1;
3521 lt_opt_process_env_append (p);
3522 }
3523 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
3524 {
3525 lt_opt_process_env_append (argv[++i]); /* don't copy */
3526 }
3527 else
3528 lt_fatal ("%s missing required argument", env_append_opt);
3529 continue;
3530 }
3531 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
3532 {
3533 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3534 namespace, but it is not one of the ones we know about and
3535 have already dealt with, above (inluding dump-script), then
3536 report an error. Otherwise, targets might begin to believe
3537 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3538 namespace. The first time any user complains about this, we'll
3539 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3540 or a configure.ac-settable value.
3541 */
3542 lt_fatal ("Unrecognized option in %s namespace: '%s'",
3543 ltwrapper_option_prefix, argv[i]);
3544 }
3545 /* otherwise ... */
3546 newargz[++newargc] = xstrdup (argv[i]);
3547 }
3548 newargz[++newargc] = NULL;
3549
3550 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
4510
4511 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4512 nonnull (lt_argv_zero));
35514513 for (i = 0; i < newargc; i++)
35524514 {
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
4515 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4516 i, nonnull (newargz[i]));
35544517 }
35554518
35564519 EOF
35594522 mingw*)
35604523 cat <<"EOF"
35614524 /* execv doesn't actually work on mingw as expected on unix */
4525 newargz = prepare_spawn (newargz);
35624526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
35634527 if (rval == -1)
35644528 {
35654529 /* failed to start process */
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
4530 lt_debugprintf (__FILE__, __LINE__,
4531 "(main) failed to launch target \"%s\": %s\n",
4532 lt_argv_zero, nonnull (strerror (errno)));
35674533 return 127;
35684534 }
35694535 return rval;
35854551 {
35864552 void *p = (void *) malloc (num);
35874553 if (!p)
3588 lt_fatal ("Memory exhausted");
4554 lt_fatal (__FILE__, __LINE__, "memory exhausted");
35894555
35904556 return p;
35914557 }
36194585 {
36204586 struct stat st;
36214587
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
4588 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
4589 nonempty (path));
36244590 if ((!path) || (!*path))
36254591 return 0;
36264592
36374603 int rval = 0;
36384604 struct stat st;
36394605
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
4606 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
4607 nonempty (path));
36424608 if ((!path) || (!*path))
36434609 return 0;
36444610
36644630 int tmp_len;
36654631 char *concat_name;
36664632
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
4633 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
4634 nonempty (wrapper));
36694635
36704636 if ((wrapper == NULL) || (*wrapper == '\0'))
36714637 return NULL;
37184684 {
37194685 /* empty path: current directory */
37204686 if (getcwd (tmp, LT_PATHMAX) == NULL)
3721 lt_fatal ("getcwd failed");
4687 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4688 nonnull (strerror (errno)));
37224689 tmp_len = strlen (tmp);
37234690 concat_name =
37244691 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
37434710 }
37444711 /* Relative path | not found in path: prepend cwd */
37454712 if (getcwd (tmp, LT_PATHMAX) == NULL)
3746 lt_fatal ("getcwd failed");
4713 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4714 nonnull (strerror (errno)));
37474715 tmp_len = strlen (tmp);
37484716 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
37494717 memcpy (concat_name, tmp, tmp_len);
37694737 int has_symlinks = 0;
37704738 while (strlen (tmp_pathspec) && !has_symlinks)
37714739 {
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
4740 lt_debugprintf (__FILE__, __LINE__,
4741 "checking path component for symlinks: %s\n",
4742 tmp_pathspec);
37744743 if (lstat (tmp_pathspec, &s) == 0)
37754744 {
37764745 if (S_ISLNK (s.st_mode) != 0)
37924761 }
37934762 else
37944763 {
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
4764 lt_fatal (__FILE__, __LINE__,
4765 "error accessing file \"%s\": %s",
4766 tmp_pathspec, nonnull (strerror (errno)));
37974767 }
37984768 }
37994769 XFREE (tmp_pathspec);
38064776 tmp_pathspec = realpath (pathspec, buf);
38074777 if (tmp_pathspec == 0)
38084778 {
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
4779 lt_fatal (__FILE__, __LINE__,
4780 "could not follow symlinks for %s", pathspec);
38104781 }
38114782 return xstrdup (tmp_pathspec);
38124783 #endif
38324803 return str;
38334804 }
38344805
4806 void
4807 lt_debugprintf (const char *file, int line, const char *fmt, ...)
4808 {
4809 va_list args;
4810 if (lt_debug)
4811 {
4812 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
4813 va_start (args, fmt);
4814 (void) vfprintf (stderr, fmt, args);
4815 va_end (args);
4816 }
4817 }
4818
38354819 static void
3836 lt_error_core (int exit_status, const char *mode,
4820 lt_error_core (int exit_status, const char *file,
4821 int line, const char *mode,
38374822 const char *message, va_list ap)
38384823 {
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
4824 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
38404825 vfprintf (stderr, message, ap);
38414826 fprintf (stderr, ".\n");
38424827
38454830 }
38464831
38474832 void
3848 lt_fatal (const char *message, ...)
4833 lt_fatal (const char *file, int line, const char *message, ...)
38494834 {
38504835 va_list ap;
38514836 va_start (ap, message);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
4837 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
38534838 va_end (ap);
4839 }
4840
4841 static const char *
4842 nonnull (const char *s)
4843 {
4844 return s ? s : "(null)";
4845 }
4846
4847 static const char *
4848 nonempty (const char *s)
4849 {
4850 return (s && !*s) ? "(empty)" : nonnull (s);
38544851 }
38554852
38564853 void
38574854 lt_setenv (const char *name, const char *value)
38584855 {
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
4856 lt_debugprintf (__FILE__, __LINE__,
4857 "(lt_setenv) setting '%s' to '%s'\n",
4858 nonnull (name), nonnull (value));
38624859 {
38634860 #ifdef HAVE_SETENV
38644861 /* always make a copy, for consistency with !HAVE_SETENV */
39034900 return new_value;
39044901 }
39054902
3906 int
3907 lt_split_name_value (const char *arg, char** name, char** value)
3908 {
3909 const char *p;
3910 int len;
3911 if (!arg || !*arg)
3912 return 1;
3913
3914 p = strchr (arg, (int)'=');
3915
3916 if (!p)
3917 return 1;
3918
3919 *value = xstrdup (++p);
3920
3921 len = strlen (arg) - strlen (*value);
3922 *name = XMALLOC (char, len);
3923 strncpy (*name, arg, len-1);
3924 (*name)[len - 1] = '\0';
3925
3926 return 0;
3927 }
3928
3929 void
3930 lt_opt_process_env_set (const char *arg)
3931 {
3932 char *name = NULL;
3933 char *value = NULL;
3934
3935 if (lt_split_name_value (arg, &name, &value) != 0)
3936 {
3937 XFREE (name);
3938 XFREE (value);
3939 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
3940 }
3941
3942 lt_setenv (name, value);
3943 XFREE (name);
3944 XFREE (value);
3945 }
3946
3947 void
3948 lt_opt_process_env_prepend (const char *arg)
3949 {
3950 char *name = NULL;
3951 char *value = NULL;
3952 char *new_value = NULL;
3953
3954 if (lt_split_name_value (arg, &name, &value) != 0)
3955 {
3956 XFREE (name);
3957 XFREE (value);
3958 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
3959 }
3960
3961 new_value = lt_extend_str (getenv (name), value, 0);
3962 lt_setenv (name, new_value);
3963 XFREE (new_value);
3964 XFREE (name);
3965 XFREE (value);
3966 }
3967
3968 void
3969 lt_opt_process_env_append (const char *arg)
3970 {
3971 char *name = NULL;
3972 char *value = NULL;
3973 char *new_value = NULL;
3974
3975 if (lt_split_name_value (arg, &name, &value) != 0)
3976 {
3977 XFREE (name);
3978 XFREE (value);
3979 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
3980 }
3981
3982 new_value = lt_extend_str (getenv (name), value, 1);
3983 lt_setenv (name, new_value);
3984 XFREE (new_value);
3985 XFREE (name);
3986 XFREE (value);
3987 }
3988
39894903 void
39904904 lt_update_exe_path (const char *name, const char *value)
39914905 {
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
4906 lt_debugprintf (__FILE__, __LINE__,
4907 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4908 nonnull (name), nonnull (value));
39954909
39964910 if (name && *name && value && *value)
39974911 {
40104924 void
40114925 lt_update_lib_path (const char *name, const char *value)
40124926 {
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
4927 lt_debugprintf (__FILE__, __LINE__,
4928 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4929 nonnull (name), nonnull (value));
40164930
40174931 if (name && *name && value && *value)
40184932 {
40224936 }
40234937 }
40244938
4025
40264939 EOF
4940 case $host_os in
4941 mingw*)
4942 cat <<"EOF"
4943
4944 /* Prepares an argument vector before calling spawn().
4945 Note that spawn() does not by itself call the command interpreter
4946 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
4947 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
4948 GetVersionEx(&v);
4949 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
4950 }) ? "cmd.exe" : "command.com").
4951 Instead it simply concatenates the arguments, separated by ' ', and calls
4952 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
4953 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
4954 special way:
4955 - Space and tab are interpreted as delimiters. They are not treated as
4956 delimiters if they are surrounded by double quotes: "...".
4957 - Unescaped double quotes are removed from the input. Their only effect is
4958 that within double quotes, space and tab are treated like normal
4959 characters.
4960 - Backslashes not followed by double quotes are not special.
4961 - But 2*n+1 backslashes followed by a double quote become
4962 n backslashes followed by a double quote (n >= 0):
4963 \" -> "
4964 \\\" -> \"
4965 \\\\\" -> \\"
4966 */
4967 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4968 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4969 char **
4970 prepare_spawn (char **argv)
4971 {
4972 size_t argc;
4973 char **new_argv;
4974 size_t i;
4975
4976 /* Count number of arguments. */
4977 for (argc = 0; argv[argc] != NULL; argc++)
4978 ;
4979
4980 /* Allocate new argument vector. */
4981 new_argv = XMALLOC (char *, argc + 1);
4982
4983 /* Put quoted arguments into the new argument vector. */
4984 for (i = 0; i < argc; i++)
4985 {
4986 const char *string = argv[i];
4987
4988 if (string[0] == '\0')
4989 new_argv[i] = xstrdup ("\"\"");
4990 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
4991 {
4992 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
4993 size_t length;
4994 unsigned int backslashes;
4995 const char *s;
4996 char *quoted_string;
4997 char *p;
4998
4999 length = 0;
5000 backslashes = 0;
5001 if (quote_around)
5002 length++;
5003 for (s = string; *s != '\0'; s++)
5004 {
5005 char c = *s;
5006 if (c == '"')
5007 length += backslashes + 1;
5008 length++;
5009 if (c == '\\')
5010 backslashes++;
5011 else
5012 backslashes = 0;
5013 }
5014 if (quote_around)
5015 length += backslashes + 1;
5016
5017 quoted_string = XMALLOC (char, length + 1);
5018
5019 p = quoted_string;
5020 backslashes = 0;
5021 if (quote_around)
5022 *p++ = '"';
5023 for (s = string; *s != '\0'; s++)
5024 {
5025 char c = *s;
5026 if (c == '"')
5027 {
5028 unsigned int j;
5029 for (j = backslashes + 1; j > 0; j--)
5030 *p++ = '\\';
5031 }
5032 *p++ = c;
5033 if (c == '\\')
5034 backslashes++;
5035 else
5036 backslashes = 0;
5037 }
5038 if (quote_around)
5039 {
5040 unsigned int j;
5041 for (j = backslashes; j > 0; j--)
5042 *p++ = '\\';
5043 *p++ = '"';
5044 }
5045 *p = '\0';
5046
5047 new_argv[i] = quoted_string;
5048 }
5049 else
5050 new_argv[i] = (char *) string;
5051 }
5052 new_argv[argc] = NULL;
5053
5054 return new_argv;
5055 }
5056 EOF
5057 ;;
5058 esac
5059
5060 cat <<"EOF"
5061 void lt_dump_script (FILE* f)
5062 {
5063 EOF
5064 func_emit_wrapper yes |
5065 $SED -n -e '
5066 s/^\(.\{79\}\)\(..*\)/\1\
5067 \2/
5068 h
5069 s/\([\\"]\)/\\\1/g
5070 s/$/\\n/
5071 s/\([^\n]*\).*/ fputs ("\1", f);/p
5072 g
5073 D'
5074 cat <<"EOF"
5075 }
5076 EOF
40275077 }
40285078 # end: func_emit_cwrapperexe_src
5079
5080 # func_win32_import_lib_p ARG
5081 # True if ARG is an import lib, as indicated by $file_magic_cmd
5082 func_win32_import_lib_p ()
5083 {
5084 $opt_debug
5085 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5086 *import*) : ;;
5087 *) false ;;
5088 esac
5089 }
40295090
40305091 # func_mode_link arg...
40315092 func_mode_link ()
40715132 new_inherited_linker_flags=
40725133
40735134 avoid_version=no
5135 bindir=
40745136 dlfiles=
40755137 dlprefiles=
40765138 dlself=no
41635225 esac
41645226
41655227 case $prev in
5228 bindir)
5229 bindir="$arg"
5230 prev=
5231 continue
5232 ;;
41665233 dlfiles|dlprefiles)
41675234 if test "$preload" = no; then
41685235 # Add the symbol object into the linking commands.
41945261 ;;
41955262 *)
41965263 if test "$prev" = dlfiles; then
4197 dlfiles="$dlfiles $arg"
5264 func_append dlfiles " $arg"
41985265 else
4199 dlprefiles="$dlprefiles $arg"
5266 func_append dlprefiles " $arg"
42005267 fi
42015268 prev=
42025269 continue
42205287 *-*-darwin*)
42215288 case "$deplibs " in
42225289 *" $qarg.ltframework "*) ;;
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
5290 *) func_append deplibs " $qarg.ltframework" # this is fixed later
42245291 ;;
42255292 esac
42265293 ;;
42395306 moreargs=
42405307 for fil in `cat "$save_arg"`
42415308 do
4242 # moreargs="$moreargs $fil"
5309 # func_append moreargs " $fil"
42435310 arg=$fil
42445311 # A libtool-controlled object.
42455312
42685335
42695336 if test "$prev" = dlfiles; then
42705337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4271 dlfiles="$dlfiles $pic_object"
5338 func_append dlfiles " $pic_object"
42725339 prev=
42735340 continue
42745341 else
42805347 # CHECK ME: I think I busted this. -Ossama
42815348 if test "$prev" = dlprefiles; then
42825349 # Preload the old-style object.
4283 dlprefiles="$dlprefiles $pic_object"
5350 func_append dlprefiles " $pic_object"
42845351 prev=
42855352 fi
42865353
43505417 if test "$prev" = rpath; then
43515418 case "$rpath " in
43525419 *" $arg "*) ;;
4353 *) rpath="$rpath $arg" ;;
5420 *) func_append rpath " $arg" ;;
43545421 esac
43555422 else
43565423 case "$xrpath " in
43575424 *" $arg "*) ;;
4358 *) xrpath="$xrpath $arg" ;;
5425 *) func_append xrpath " $arg" ;;
43595426 esac
43605427 fi
43615428 prev=
43675434 continue
43685435 ;;
43695436 weak)
4370 weak_libs="$weak_libs $arg"
5437 func_append weak_libs " $arg"
43715438 prev=
43725439 continue
43735440 ;;
43745441 xcclinker)
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
5442 func_append linker_flags " $qarg"
5443 func_append compiler_flags " $qarg"
43775444 prev=
43785445 func_append compile_command " $qarg"
43795446 func_append finalize_command " $qarg"
43805447 continue
43815448 ;;
43825449 xcompiler)
4383 compiler_flags="$compiler_flags $qarg"
5450 func_append compiler_flags " $qarg"
43845451 prev=
43855452 func_append compile_command " $qarg"
43865453 func_append finalize_command " $qarg"
43875454 continue
43885455 ;;
43895456 xlinker)
4390 linker_flags="$linker_flags $qarg"
4391 compiler_flags="$compiler_flags $wl$qarg"
5457 func_append linker_flags " $qarg"
5458 func_append compiler_flags " $wl$qarg"
43925459 prev=
43935460 func_append compile_command " $wl$qarg"
43945461 func_append finalize_command " $wl$qarg"
44245491 continue
44255492 ;;
44265493
5494 -bindir)
5495 prev=bindir
5496 continue
5497 ;;
5498
44275499 -dlopen)
44285500 prev=dlfiles
44295501 continue
44745546 ;;
44755547
44765548 -L*)
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
5549 func_stripname "-L" '' "$arg"
5550 if test -z "$func_stripname_result"; then
44805551 if test "$#" -gt 0; then
44815552 func_fatal_error "require no space between \`-L' and \`$1'"
44825553 else
44835554 func_fatal_error "need path for \`-L' option"
44845555 fi
44855556 fi
5557 func_resolve_sysroot "$func_stripname_result"
5558 dir=$func_resolve_sysroot_result
44865559 # We need an absolute path.
44875560 case $dir in
44885561 [\\/]* | [A-Za-z]:[\\/]*) ;;
44945567 ;;
44955568 esac
44965569 case "$deplibs " in
4497 *" -L$dir "*) ;;
5570 *" -L$dir "* | *" $arg "*)
5571 # Will only happen for absolute or sysroot arguments
5572 ;;
44985573 *)
4499 deplibs="$deplibs -L$dir"
4500 lib_search_path="$lib_search_path $dir"
5574 # Preserve sysroot, but never include relative directories
5575 case $dir in
5576 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5577 *) func_append deplibs " -L$dir" ;;
5578 esac
5579 func_append lib_search_path " $dir"
45015580 ;;
45025581 esac
45035582 case $host in
45045583 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
5584 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
45065585 case :$dllsearchpath: in
45075586 *":$dir:"*) ;;
45085587 ::) dllsearchpath=$dir;;
4509 *) dllsearchpath="$dllsearchpath:$dir";;
5588 *) func_append dllsearchpath ":$dir";;
45105589 esac
45115590 case :$dllsearchpath: in
45125591 *":$testbindir:"*) ;;
45135592 ::) dllsearchpath=$testbindir;;
4514 *) dllsearchpath="$dllsearchpath:$testbindir";;
5593 *) func_append dllsearchpath ":$testbindir";;
45155594 esac
45165595 ;;
45175596 esac
45215600 -l*)
45225601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
45235602 case $host in
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
5603 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
45255604 # These systems don't actually have a C or math library (as such)
45265605 continue
45275606 ;;
45355614 ;;
45365615 *-*-rhapsody* | *-*-darwin1.[012])
45375616 # Rhapsody C and math libraries are in the System framework
4538 deplibs="$deplibs System.ltframework"
5617 func_append deplibs " System.ltframework"
45395618 continue
45405619 ;;
45415620 *-*-sco3.2v5* | *-*-sco5v6*)
45555634 ;;
45565635 esac
45575636 fi
4558 deplibs="$deplibs $arg"
5637 func_append deplibs " $arg"
45595638 continue
45605639 ;;
45615640
45675646 # Tru64 UNIX uses -model [arg] to determine the layout of C++
45685647 # classes, name mangling, and exception handling.
45695648 # Darwin uses the -arch flag to determine output architecture.
4570 -model|-arch|-isysroot)
4571 compiler_flags="$compiler_flags $arg"
5649 -model|-arch|-isysroot|--sysroot)
5650 func_append compiler_flags " $arg"
45725651 func_append compile_command " $arg"
45735652 func_append finalize_command " $arg"
45745653 prev=xcompiler
45755654 continue
45765655 ;;
45775656
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4579 compiler_flags="$compiler_flags $arg"
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5659 func_append compiler_flags " $arg"
45805660 func_append compile_command " $arg"
45815661 func_append finalize_command " $arg"
45825662 case "$new_inherited_linker_flags " in
45835663 *" $arg "*) ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
5664 * ) func_append new_inherited_linker_flags " $arg" ;;
45855665 esac
45865666 continue
45875667 ;;
46485728 # We need an absolute path.
46495729 case $dir in
46505730 [\\/]* | [A-Za-z]:[\\/]*) ;;
5731 =*)
5732 func_stripname '=' '' "$dir"
5733 dir=$lt_sysroot$func_stripname_result
5734 ;;
46515735 *)
46525736 func_fatal_error "only absolute run-paths are allowed"
46535737 ;;
46545738 esac
46555739 case "$xrpath " in
46565740 *" $dir "*) ;;
4657 *) xrpath="$xrpath $dir" ;;
5741 *) func_append xrpath " $dir" ;;
46585742 esac
46595743 continue
46605744 ;;
47075791 for flag in $args; do
47085792 IFS="$save_ifs"
47095793 func_quote_for_eval "$flag"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
5794 func_append arg " $func_quote_for_eval_result"
5795 func_append compiler_flags " $func_quote_for_eval_result"
47125796 done
47135797 IFS="$save_ifs"
47145798 func_stripname ' ' '' "$arg"
47235807 for flag in $args; do
47245808 IFS="$save_ifs"
47255809 func_quote_for_eval "$flag"
4726 arg="$arg $wl$func_quote_for_eval_result"
4727 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4728 linker_flags="$linker_flags $func_quote_for_eval_result"
5810 func_append arg " $wl$func_quote_for_eval_result"
5811 func_append compiler_flags " $wl$func_quote_for_eval_result"
5812 func_append linker_flags " $func_quote_for_eval_result"
47295813 done
47305814 IFS="$save_ifs"
47315815 func_stripname ' ' '' "$arg"
47535837 arg="$func_quote_for_eval_result"
47545838 ;;
47555839
4756 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4757 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4758 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4759 # +DA*, +DD* enable 64-bit mode on the HP compiler
4760 # -q* pass through compiler args for the IBM compiler
4761 # -m*, -t[45]*, -txscale* pass through architecture-specific
4762 # compiler args for GCC
4763 # -F/path gives path to uninstalled frameworks, gcc on darwin
4764 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4765 # @file GCC response files
5840 # Flags to be passed through unchanged, with rationale:
5841 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5842 # -r[0-9][0-9]* specify processor for the SGI compiler
5843 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5844 # +DA*, +DD* enable 64-bit mode for the HP compiler
5845 # -q* compiler args for the IBM compiler
5846 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5847 # -F/path path to uninstalled frameworks, gcc on darwin
5848 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5849 # @file GCC response files
5850 # -tp=* Portland pgcc target processor selection
5851 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
47665853 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
5854 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
47685856 func_quote_for_eval "$arg"
47695857 arg="$func_quote_for_eval_result"
47705858 func_append compile_command " $arg"
47715859 func_append finalize_command " $arg"
4772 compiler_flags="$compiler_flags $arg"
5860 func_append compiler_flags " $arg"
47735861 continue
47745862 ;;
47755863
47815869
47825870 *.$objext)
47835871 # A standard object.
4784 objs="$objs $arg"
5872 func_append objs " $arg"
47855873 ;;
47865874
47875875 *.lo)
48125900
48135901 if test "$prev" = dlfiles; then
48145902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4815 dlfiles="$dlfiles $pic_object"
5903 func_append dlfiles " $pic_object"
48165904 prev=
48175905 continue
48185906 else
48245912 # CHECK ME: I think I busted this. -Ossama
48255913 if test "$prev" = dlprefiles; then
48265914 # Preload the old-style object.
4827 dlprefiles="$dlprefiles $pic_object"
5915 func_append dlprefiles " $pic_object"
48285916 prev=
48295917 fi
48305918
48695957
48705958 *.$libext)
48715959 # An archive.
4872 deplibs="$deplibs $arg"
4873 old_deplibs="$old_deplibs $arg"
5960 func_append deplibs " $arg"
5961 func_append old_deplibs " $arg"
48745962 continue
48755963 ;;
48765964
48775965 *.la)
48785966 # A libtool-controlled library.
48795967
5968 func_resolve_sysroot "$arg"
48805969 if test "$prev" = dlfiles; then
48815970 # This library was specified with -dlopen.
4882 dlfiles="$dlfiles $arg"
5971 func_append dlfiles " $func_resolve_sysroot_result"
48835972 prev=
48845973 elif test "$prev" = dlprefiles; then
48855974 # The library was specified with -dlpreopen.
4886 dlprefiles="$dlprefiles $arg"
5975 func_append dlprefiles " $func_resolve_sysroot_result"
48875976 prev=
48885977 else
4889 deplibs="$deplibs $arg"
5978 func_append deplibs " $func_resolve_sysroot_result"
48905979 fi
48915980 continue
48925981 ;;
49246013
49256014 if test -n "$shlibpath_var"; then
49266015 # get the directories listed in $shlibpath_var
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
49286017 else
49296018 shlib_search_path=
49306019 fi
49336022
49346023 func_dirname "$output" "/" ""
49356024 output_objdir="$func_dirname_result$objdir"
6025 func_to_tool_file "$output_objdir/"
6026 tool_output_objdir=$func_to_tool_file_result
49366027 # Create the object directory.
49376028 func_mkdir_p "$output_objdir"
49386029
49536044 # Find all interdependent deplibs by searching for libraries
49546045 # that are linked more than once (e.g. -la -lb -la)
49556046 for deplib in $deplibs; do
4956 if $opt_duplicate_deps ; then
6047 if $opt_preserve_dup_deps ; then
49576048 case "$libs " in
4958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6049 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
49596050 esac
49606051 fi
4961 libs="$libs $deplib"
6052 func_append libs " $deplib"
49626053 done
49636054
49646055 if test "$linkmode" = lib; then
49716062 if $opt_duplicate_compiler_generated_deps; then
49726063 for pre_post_dep in $predeps $postdeps; do
49736064 case "$pre_post_deps " in
4974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
6065 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
49756066 esac
4976 pre_post_deps="$pre_post_deps $pre_post_dep"
6067 func_append pre_post_deps " $pre_post_dep"
49776068 done
49786069 fi
49796070 pre_post_deps=
50326123 case $pass in
50336124 dlopen) libs="$dlfiles" ;;
50346125 dlpreopen) libs="$dlprefiles" ;;
5035 link)
5036 libs="$deplibs %DEPLIBS%"
5037 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
5038 ;;
6126 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
50396127 esac
50406128 fi
50416129 if test "$linkmode,$pass" = "lib,dlpreopen"; then
50436131 for lib in $dlprefiles; do
50446132 # Ignore non-libtool-libs
50456133 dependency_libs=
6134 func_resolve_sysroot "$lib"
50466135 case $lib in
5047 *.la) func_source "$lib" ;;
6136 *.la) func_source "$func_resolve_sysroot_result" ;;
50486137 esac
50496138
50506139 # Collect preopened libtool deplibs, except any this library
50516140 # has declared as weak libs
50526141 for deplib in $dependency_libs; do
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
6142 func_basename "$deplib"
6143 deplib_base=$func_basename_result
50546144 case " $weak_libs " in
50556145 *" $deplib_base "*) ;;
5056 *) deplibs="$deplibs $deplib" ;;
6146 *) func_append deplibs " $deplib" ;;
50576147 esac
50586148 done
50596149 done
50696159 lib=
50706160 found=no
50716161 case $deplib in
5072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6162 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6163 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
50736164 if test "$linkmode,$pass" = "prog,link"; then
50746165 compile_deplibs="$deplib $compile_deplibs"
50756166 finalize_deplibs="$deplib $finalize_deplibs"
50766167 else
5077 compiler_flags="$compiler_flags $deplib"
6168 func_append compiler_flags " $deplib"
50786169 if test "$linkmode" = lib ; then
50796170 case "$new_inherited_linker_flags " in
50806171 *" $deplib "*) ;;
5081 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6172 * ) func_append new_inherited_linker_flags " $deplib" ;;
50826173 esac
50836174 fi
50846175 fi
51636254 if test "$linkmode" = lib ; then
51646255 case "$new_inherited_linker_flags " in
51656256 *" $deplib "*) ;;
5166 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6257 * ) func_append new_inherited_linker_flags " $deplib" ;;
51676258 esac
51686259 fi
51696260 fi
51766267 test "$pass" = conv && continue
51776268 newdependency_libs="$deplib $newdependency_libs"
51786269 func_stripname '-L' '' "$deplib"
5179 newlib_search_path="$newlib_search_path $func_stripname_result"
6270 func_resolve_sysroot "$func_stripname_result"
6271 func_append newlib_search_path " $func_resolve_sysroot_result"
51806272 ;;
51816273 prog)
51826274 if test "$pass" = conv; then
51906282 finalize_deplibs="$deplib $finalize_deplibs"
51916283 fi
51926284 func_stripname '-L' '' "$deplib"
5193 newlib_search_path="$newlib_search_path $func_stripname_result"
6285 func_resolve_sysroot "$func_stripname_result"
6286 func_append newlib_search_path " $func_resolve_sysroot_result"
51946287 ;;
51956288 *)
51966289 func_warning "\`-L' is ignored for archives/objects"
52016294 -R*)
52026295 if test "$pass" = link; then
52036296 func_stripname '-R' '' "$deplib"
5204 dir=$func_stripname_result
6297 func_resolve_sysroot "$func_stripname_result"
6298 dir=$func_resolve_sysroot_result
52056299 # Make sure the xrpath contains only unique directories.
52066300 case "$xrpath " in
52076301 *" $dir "*) ;;
5208 *) xrpath="$xrpath $dir" ;;
6302 *) func_append xrpath " $dir" ;;
52096303 esac
52106304 fi
52116305 deplibs="$deplib $deplibs"
52126306 continue
52136307 ;;
5214 *.la) lib="$deplib" ;;
6308 *.la)
6309 func_resolve_sysroot "$deplib"
6310 lib=$func_resolve_sysroot_result
6311 ;;
52156312 *.$libext)
52166313 if test "$pass" = conv; then
52176314 deplibs="$deplib $deplibs"
52296326 match_pattern*)
52306327 set dummy $deplibs_check_method; shift
52316328 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
6329 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
52336330 | $EGREP "$match_pattern_regex" > /dev/null; then
52346331 valid_a_lib=yes
52356332 fi
52396336 ;;
52406337 esac
52416338 if test "$valid_a_lib" != yes; then
5242 $ECHO
6339 echo
52436340 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5244 $ECHO "*** I have the capability to make that library automatically link in when"
5245 $ECHO "*** you link to this library. But I can only do this if you have a"
5246 $ECHO "*** shared version of the library, which you do not appear to have"
5247 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5248 $ECHO "*** that it is just a static archive that I should not use here."
6341 echo "*** I have the capability to make that library automatically link in when"
6342 echo "*** you link to this library. But I can only do this if you have a"
6343 echo "*** shared version of the library, which you do not appear to have"
6344 echo "*** because the file extensions .$libext of this argument makes me believe"
6345 echo "*** that it is just a static archive that I should not use here."
52496346 else
5250 $ECHO
6347 echo
52516348 $ECHO "*** Warning: Linking the shared library $output against the"
52526349 $ECHO "*** static library $deplib is not portable!"
52536350 deplibs="$deplib $deplibs"
52746371 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
52756372 # If there is no dlopen support or we're linking statically,
52766373 # we need to preload.
5277 newdlprefiles="$newdlprefiles $deplib"
6374 func_append newdlprefiles " $deplib"
52786375 compile_deplibs="$deplib $compile_deplibs"
52796376 finalize_deplibs="$deplib $finalize_deplibs"
52806377 else
5281 newdlfiles="$newdlfiles $deplib"
6378 func_append newdlfiles " $deplib"
52826379 fi
52836380 fi
52846381 continue
53206417
53216418 # Convert "-framework foo" to "foo.ltframework"
53226419 if test -n "$inherited_linker_flags"; then
5323 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
6420 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
53246421 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
53256422 case " $new_inherited_linker_flags " in
53266423 *" $tmp_inherited_linker_flag "*) ;;
5327 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
6424 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
53286425 esac
53296426 done
53306427 fi
5331 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6428 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
53326429 if test "$linkmode,$pass" = "lib,link" ||
53336430 test "$linkmode,$pass" = "prog,scan" ||
53346431 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5335 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5336 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6432 test -n "$dlopen" && func_append dlfiles " $dlopen"
6433 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
53376434 fi
53386435
53396436 if test "$pass" = conv; then
53446441 func_fatal_error "cannot find name of link library for \`$lib'"
53456442 fi
53466443 # It is a libtool convenience library, so add in its objects.
5347 convenience="$convenience $ladir/$objdir/$old_library"
5348 old_convenience="$old_convenience $ladir/$objdir/$old_library"
5349 tmp_libs=
5350 for deplib in $dependency_libs; do
5351 deplibs="$deplib $deplibs"
5352 if $opt_duplicate_deps ; then
5353 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5355 esac
5356 fi
5357 tmp_libs="$tmp_libs $deplib"
5358 done
6444 func_append convenience " $ladir/$objdir/$old_library"
6445 func_append old_convenience " $ladir/$objdir/$old_library"
53596446 elif test "$linkmode" != prog && test "$linkmode" != lib; then
53606447 func_fatal_error "\`$lib' is not a convenience library"
53616448 fi
6449 tmp_libs=
6450 for deplib in $dependency_libs; do
6451 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
6453 case "$tmp_libs " in
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6455 esac
6456 fi
6457 func_append tmp_libs " $deplib"
6458 done
53626459 continue
53636460 fi # $pass = conv
53646461
53656462
53666463 # Get the name of the library we link against.
53676464 linklib=
5368 for l in $old_library $library_names; do
5369 linklib="$l"
5370 done
6465 if test -n "$old_library" &&
6466 { test "$prefer_static_libs" = yes ||
6467 test "$prefer_static_libs,$installed" = "built,no"; }; then
6468 linklib=$old_library
6469 else
6470 for l in $old_library $library_names; do
6471 linklib="$l"
6472 done
6473 fi
53716474 if test -z "$linklib"; then
53726475 func_fatal_error "cannot find name of link library for \`$lib'"
53736476 fi
53846487 # statically, we need to preload. We also need to preload any
53856488 # dependent libraries so libltdl's deplib preloader doesn't
53866489 # bomb out in the load deplibs phase.
5387 dlprefiles="$dlprefiles $lib $dependency_libs"
6490 func_append dlprefiles " $lib $dependency_libs"
53886491 else
5389 newdlfiles="$newdlfiles $lib"
6492 func_append newdlfiles " $lib"
53906493 fi
53916494 continue
53926495 fi # $pass = dlopen
54086511
54096512 # Find the relevant object directory and library name.
54106513 if test "X$installed" = Xyes; then
5411 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6514 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
54126515 func_warning "library \`$lib' was moved."
54136516 dir="$ladir"
54146517 absdir="$abs_ladir"
54156518 libdir="$abs_ladir"
54166519 else
5417 dir="$libdir"
5418 absdir="$libdir"
6520 dir="$lt_sysroot$libdir"
6521 absdir="$lt_sysroot$libdir"
54196522 fi
54206523 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
54216524 else
54236526 dir="$ladir"
54246527 absdir="$abs_ladir"
54256528 # Remove this search path later
5426 notinst_path="$notinst_path $abs_ladir"
6529 func_append notinst_path " $abs_ladir"
54276530 else
54286531 dir="$ladir/$objdir"
54296532 absdir="$abs_ladir/$objdir"
54306533 # Remove this search path later
5431 notinst_path="$notinst_path $abs_ladir"
6534 func_append notinst_path " $abs_ladir"
54326535 fi
54336536 fi # $installed = yes
54346537 func_stripname 'lib' '.la' "$laname"
54396542 if test -z "$libdir" && test "$linkmode" = prog; then
54406543 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
54416544 fi
5442 # Prefer using a static library (so that no silly _DYNAMIC symbols
5443 # are required to link).
5444 if test -n "$old_library"; then
5445 newdlprefiles="$newdlprefiles $dir/$old_library"
5446 # Keep a list of preopened convenience libraries to check
5447 # that they are being used correctly in the link pass.
5448 test -z "$libdir" && \
5449 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5450 # Otherwise, use the dlname, so that lt_dlopen finds it.
5451 elif test -n "$dlname"; then
5452 newdlprefiles="$newdlprefiles $dir/$dlname"
5453 else
5454 newdlprefiles="$newdlprefiles $dir/$linklib"
5455 fi
6545 case "$host" in
6546 # special handling for platforms with PE-DLLs.
6547 *cygwin* | *mingw* | *cegcc* )
6548 # Linker will automatically link against shared library if both
6549 # static and shared are present. Therefore, ensure we extract
6550 # symbols from the import library if a shared library is present
6551 # (otherwise, the dlopen module name will be incorrect). We do
6552 # this by putting the import library name into $newdlprefiles.
6553 # We recover the dlopen module name by 'saving' the la file
6554 # name in a special purpose variable, and (later) extracting the
6555 # dlname from the la file.
6556 if test -n "$dlname"; then
6557 func_tr_sh "$dir/$linklib"
6558 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6559 func_append newdlprefiles " $dir/$linklib"
6560 else
6561 func_append newdlprefiles " $dir/$old_library"
6562 # Keep a list of preopened convenience libraries to check
6563 # that they are being used correctly in the link pass.
6564 test -z "$libdir" && \
6565 func_append dlpreconveniencelibs " $dir/$old_library"
6566 fi
6567 ;;
6568 * )
6569 # Prefer using a static library (so that no silly _DYNAMIC symbols
6570 # are required to link).
6571 if test -n "$old_library"; then
6572 func_append newdlprefiles " $dir/$old_library"
6573 # Keep a list of preopened convenience libraries to check
6574 # that they are being used correctly in the link pass.
6575 test -z "$libdir" && \
6576 func_append dlpreconveniencelibs " $dir/$old_library"
6577 # Otherwise, use the dlname, so that lt_dlopen finds it.
6578 elif test -n "$dlname"; then
6579 func_append newdlprefiles " $dir/$dlname"
6580 else
6581 func_append newdlprefiles " $dir/$linklib"
6582 fi
6583 ;;
6584 esac
54566585 fi # $pass = dlpreopen
54576586
54586587 if test -z "$libdir"; then
54706599
54716600
54726601 if test "$linkmode" = prog && test "$pass" != link; then
5473 newlib_search_path="$newlib_search_path $ladir"
6602 func_append newlib_search_path " $ladir"
54746603 deplibs="$lib $deplibs"
54756604
54766605 linkalldeplibs=no
54836612 for deplib in $dependency_libs; do
54846613 case $deplib in
54856614 -L*) func_stripname '-L' '' "$deplib"
5486 newlib_search_path="$newlib_search_path $func_stripname_result"
6615 func_resolve_sysroot "$func_stripname_result"
6616 func_append newlib_search_path " $func_resolve_sysroot_result"
54876617 ;;
54886618 esac
54896619 # Need to link against all dependency_libs?
54946624 # or/and link against static libraries
54956625 newdependency_libs="$deplib $newdependency_libs"
54966626 fi
5497 if $opt_duplicate_deps ; then
6627 if $opt_preserve_dup_deps ; then
54986628 case "$tmp_libs " in
5499 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6629 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
55006630 esac
55016631 fi
5502 tmp_libs="$tmp_libs $deplib"
6632 func_append tmp_libs " $deplib"
55036633 done # for deplib
55046634 continue
55056635 fi # $linkmode = prog...
55146644 # Make sure the rpath contains only unique directories.
55156645 case "$temp_rpath:" in
55166646 *"$absdir:"*) ;;
5517 *) temp_rpath="$temp_rpath$absdir:" ;;
6647 *) func_append temp_rpath "$absdir:" ;;
55186648 esac
55196649 fi
55206650
55266656 *)
55276657 case "$compile_rpath " in
55286658 *" $absdir "*) ;;
5529 *) compile_rpath="$compile_rpath $absdir"
6659 *) func_append compile_rpath " $absdir" ;;
55306660 esac
55316661 ;;
55326662 esac
55356665 *)
55366666 case "$finalize_rpath " in
55376667 *" $libdir "*) ;;
5538 *) finalize_rpath="$finalize_rpath $libdir"
6668 *) func_append finalize_rpath " $libdir" ;;
55396669 esac
55406670 ;;
55416671 esac
55606690 case $host in
55616691 *cygwin* | *mingw* | *cegcc*)
55626692 # No point in relinking DLLs because paths are not encoded
5563 notinst_deplibs="$notinst_deplibs $lib"
6693 func_append notinst_deplibs " $lib"
55646694 need_relink=no
55656695 ;;
55666696 *)
55676697 if test "$installed" = no; then
5568 notinst_deplibs="$notinst_deplibs $lib"
6698 func_append notinst_deplibs " $lib"
55696699 need_relink=yes
55706700 fi
55716701 ;;
55826712 fi
55836713 done
55846714 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5585 $ECHO
6715 echo
55866716 if test "$linkmode" = prog; then
55876717 $ECHO "*** Warning: Linking the executable $output against the loadable module"
55886718 else
56006730 *)
56016731 case "$compile_rpath " in
56026732 *" $absdir "*) ;;
5603 *) compile_rpath="$compile_rpath $absdir"
6733 *) func_append compile_rpath " $absdir" ;;
56046734 esac
56056735 ;;
56066736 esac
56096739 *)
56106740 case "$finalize_rpath " in
56116741 *" $libdir "*) ;;
5612 *) finalize_rpath="$finalize_rpath $libdir"
6742 *) func_append finalize_rpath " $libdir" ;;
56136743 esac
56146744 ;;
56156745 esac
56636793 linklib=$newlib
56646794 fi # test -n "$old_archive_from_expsyms_cmds"
56656795
5666 if test "$linkmode" = prog || test "$mode" != relink; then
6796 if test "$linkmode" = prog || test "$opt_mode" != relink; then
56676797 add_shlibpath=
56686798 add_dir=
56696799 add=
56856815 if test "X$dlopenmodule" != "X$lib"; then
56866816 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
56876817 if test -z "$old_library" ; then
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
6818 echo
6819 echo "*** And there doesn't seem to be a static archive available"
6820 echo "*** The link will probably fail, sorry"
56916821 else
56926822 add="$dir/$old_library"
56936823 fi
57146844 test "$hardcode_direct_absolute" = no; then
57156845 add="$dir/$linklib"
57166846 elif test "$hardcode_minus_L" = yes; then
5717 add_dir="-L$dir"
6847 add_dir="-L$absdir"
57186848 # Try looking first in the location we're being installed to.
57196849 if test -n "$inst_prefix_dir"; then
57206850 case $libdir in
57216851 [\\/]*)
5722 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6852 func_append add_dir " -L$inst_prefix_dir$libdir"
57236853 ;;
57246854 esac
57256855 fi
57416871 if test -n "$add_shlibpath"; then
57426872 case :$compile_shlibpath: in
57436873 *":$add_shlibpath:"*) ;;
5744 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6874 *) func_append compile_shlibpath "$add_shlibpath:" ;;
57456875 esac
57466876 fi
57476877 if test "$linkmode" = prog; then
57556885 test "$hardcode_shlibpath_var" = yes; then
57566886 case :$finalize_shlibpath: in
57576887 *":$libdir:"*) ;;
5758 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6888 *) func_append finalize_shlibpath "$libdir:" ;;
57596889 esac
57606890 fi
57616891 fi
57626892 fi
57636893
5764 if test "$linkmode" = prog || test "$mode" = relink; then
6894 if test "$linkmode" = prog || test "$opt_mode" = relink; then
57656895 add_shlibpath=
57666896 add_dir=
57676897 add=
57756905 elif test "$hardcode_shlibpath_var" = yes; then
57766906 case :$finalize_shlibpath: in
57776907 *":$libdir:"*) ;;
5778 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6908 *) func_append finalize_shlibpath "$libdir:" ;;
57796909 esac
57806910 add="-l$name"
57816911 elif test "$hardcode_automatic" = yes; then
57926922 if test -n "$inst_prefix_dir"; then
57936923 case $libdir in
57946924 [\\/]*)
5795 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6925 func_append add_dir " -L$inst_prefix_dir$libdir"
57966926 ;;
57976927 esac
57986928 fi
58276957
58286958 # Just print a warning and add the library to dependency_libs so
58296959 # that the program can be linked against the static library.
5830 $ECHO
6960 echo
58316961 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5832 $ECHO "*** I have the capability to make that library automatically link in when"
5833 $ECHO "*** you link to this library. But I can only do this if you have a"
5834 $ECHO "*** shared version of the library, which you do not appear to have."
6962 echo "*** I have the capability to make that library automatically link in when"
6963 echo "*** you link to this library. But I can only do this if you have a"
6964 echo "*** shared version of the library, which you do not appear to have."
58356965 if test "$module" = yes; then
5836 $ECHO "*** But as you try to build a module library, libtool will still create "
5837 $ECHO "*** a static module, that should work as long as the dlopening application"
5838 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
6966 echo "*** But as you try to build a module library, libtool will still create "
6967 echo "*** a static module, that should work as long as the dlopening application"
6968 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
58396969 if test -z "$global_symbol_pipe"; then
5840 $ECHO
5841 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5842 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5843 $ECHO "*** not find such a program. So, this module is probably useless."
5844 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
6970 echo
6971 echo "*** However, this would only work if libtool was able to extract symbol"
6972 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6973 echo "*** not find such a program. So, this module is probably useless."
6974 echo "*** \`nm' from GNU binutils and a full rebuild may help."
58456975 fi
58466976 if test "$build_old_libs" = no; then
58476977 build_libtool_libs=module
58696999 temp_xrpath=$func_stripname_result
58707000 case " $xrpath " in
58717001 *" $temp_xrpath "*) ;;
5872 *) xrpath="$xrpath $temp_xrpath";;
7002 *) func_append xrpath " $temp_xrpath";;
58737003 esac;;
5874 *) temp_deplibs="$temp_deplibs $libdir";;
7004 *) func_append temp_deplibs " $libdir";;
58757005 esac
58767006 done
58777007 dependency_libs="$temp_deplibs"
58787008 fi
58797009
5880 newlib_search_path="$newlib_search_path $absdir"
7010 func_append newlib_search_path " $absdir"
58817011 # Link against this library
58827012 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
58837013 # ... and its dependency_libs
58847014 tmp_libs=
58857015 for deplib in $dependency_libs; do
58867016 newdependency_libs="$deplib $newdependency_libs"
5887 if $opt_duplicate_deps ; then
7017 case $deplib in
7018 -L*) func_stripname '-L' '' "$deplib"
7019 func_resolve_sysroot "$func_stripname_result";;
7020 *) func_resolve_sysroot "$deplib" ;;
7021 esac
7022 if $opt_preserve_dup_deps ; then
58887023 case "$tmp_libs " in
5889 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7024 *" $func_resolve_sysroot_result "*)
7025 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
58907026 esac
58917027 fi
5892 tmp_libs="$tmp_libs $deplib"
7028 func_append tmp_libs " $func_resolve_sysroot_result"
58937029 done
58947030
58957031 if test "$link_all_deplibs" != no; then
58997035 case $deplib in
59007036 -L*) path="$deplib" ;;
59017037 *.la)
7038 func_resolve_sysroot "$deplib"
7039 deplib=$func_resolve_sysroot_result
59027040 func_dirname "$deplib" "" "."
5903 dir="$func_dirname_result"
7041 dir=$func_dirname_result
59047042 # We need an absolute path.
59057043 case $dir in
59067044 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
59277065 if test -z "$darwin_install_name"; then
59287066 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
59297067 fi
5930 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5931 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
7068 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7069 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
59327070 path=
59337071 fi
59347072 fi
59617099 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
59627100 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
59637101 else
5964 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7102 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
59657103 fi
59667104 fi
59677105 dependency_libs="$newdependency_libs"
59787116 for dir in $newlib_search_path; do
59797117 case "$lib_search_path " in
59807118 *" $dir "*) ;;
5981 *) lib_search_path="$lib_search_path $dir" ;;
7119 *) func_append lib_search_path " $dir" ;;
59827120 esac
59837121 done
59847122 newlib_search_path=
60367174 -L*)
60377175 case " $tmp_libs " in
60387176 *" $deplib "*) ;;
6039 *) tmp_libs="$tmp_libs $deplib" ;;
7177 *) func_append tmp_libs " $deplib" ;;
60407178 esac
60417179 ;;
6042 *) tmp_libs="$tmp_libs $deplib" ;;
7180 *) func_append tmp_libs " $deplib" ;;
60437181 esac
60447182 done
60457183 eval $var=\"$tmp_libs\"
60557193 ;;
60567194 esac
60577195 if test -n "$i" ; then
6058 tmp_libs="$tmp_libs $i"
7196 func_append tmp_libs " $i"
60597197 fi
60607198 done
60617199 dependency_libs=$tmp_libs
60967234 # Now set the variables for building old libraries.
60977235 build_libtool_libs=no
60987236 oldlibs="$output"
6099 objs="$objs$old_deplibs"
7237 func_append objs "$old_deplibs"
61007238 ;;
61017239
61027240 lib)
61297267 if test "$deplibs_check_method" != pass_all; then
61307268 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
61317269 else
6132 $ECHO
7270 echo
61337271 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
61347272 $ECHO "*** objects $objs is not portable!"
6135 libobjs="$libobjs $objs"
7273 func_append libobjs " $objs"
61367274 fi
61377275 fi
61387276
61917329 # which has an extra 1 added just for fun
61927330 #
61937331 case $version_type in
7332 # correct linux to gnu/linux during the next big refactor
61947333 darwin|linux|osf|windows|none)
61957334 func_arith $number_major + $number_minor
61967335 current=$func_arith_result
61977336 age="$number_minor"
61987337 revision="$number_revision"
61997338 ;;
6200 freebsd-aout|freebsd-elf|sunos)
7339 freebsd-aout|freebsd-elf|qnx|sunos)
62017340 current="$number_major"
62027341 revision="$number_minor"
62037342 age="0"
62087347 age="$number_minor"
62097348 revision="$number_minor"
62107349 lt_irix_increment=no
6211 ;;
6212 *)
6213 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
62147350 ;;
62157351 esac
62167352 ;;
63107446 versuffix="$major.$revision"
63117447 ;;
63127448
6313 linux)
7449 linux) # correct to gnu/linux during the next big refactor
63147450 func_arith $current - $age
63157451 major=.$func_arith_result
63167452 versuffix="$major.$age.$revision"
63337469 done
63347470
63357471 # Make executables depend on our current version.
6336 verstring="$verstring:${current}.0"
7472 func_append verstring ":${current}.0"
63377473 ;;
63387474
63397475 qnx)
64017537 fi
64027538
64037539 func_generate_dlsyms "$libname" "$libname" "yes"
6404 libobjs="$libobjs $symfileobj"
7540 func_append libobjs " $symfileobj"
64057541 test "X$libobjs" = "X " && libobjs=
64067542
6407 if test "$mode" != relink; then
7543 if test "$opt_mode" != relink; then
64087544 # Remove our outputs, but don't remove object files since they
64097545 # may have been created when compiling PIC objects.
64107546 removelist=
64207556 continue
64217557 fi
64227558 fi
6423 removelist="$removelist $p"
7559 func_append removelist " $p"
64247560 ;;
64257561 *) ;;
64267562 esac
64317567
64327568 # Now set the variables for building old libraries.
64337569 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
7570 func_append oldlibs " $output_objdir/$libname.$libext"
64357571
64367572 # Transform .lo files to .o files.
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
7573 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
64387574 fi
64397575
64407576 # Eliminate all temporary directories.
64417577 #for path in $notinst_path; do
6442 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6443 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6444 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
7578 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
7579 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7580 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
64457581 #done
64467582
64477583 if test -n "$xrpath"; then
64487584 # If the user specified any rpath flags, then add them.
64497585 temp_xrpath=
64507586 for libdir in $xrpath; do
6451 temp_xrpath="$temp_xrpath -R$libdir"
7587 func_replace_sysroot "$libdir"
7588 func_append temp_xrpath " -R$func_replace_sysroot_result"
64527589 case "$finalize_rpath " in
64537590 *" $libdir "*) ;;
6454 *) finalize_rpath="$finalize_rpath $libdir" ;;
7591 *) func_append finalize_rpath " $libdir" ;;
64557592 esac
64567593 done
64577594 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
64657602 for lib in $old_dlfiles; do
64667603 case " $dlprefiles $dlfiles " in
64677604 *" $lib "*) ;;
6468 *) dlfiles="$dlfiles $lib" ;;
7605 *) func_append dlfiles " $lib" ;;
64697606 esac
64707607 done
64717608
64757612 for lib in $old_dlprefiles; do
64767613 case "$dlprefiles " in
64777614 *" $lib "*) ;;
6478 *) dlprefiles="$dlprefiles $lib" ;;
7615 *) func_append dlprefiles " $lib" ;;
64797616 esac
64807617 done
64817618
64827619 if test "$build_libtool_libs" = yes; then
64837620 if test -n "$rpath"; then
64847621 case $host in
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
7622 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
64867623 # these systems don't actually have a c library (as such)!
64877624 ;;
64887625 *-*-rhapsody* | *-*-darwin1.[012])
64897626 # Rhapsody C library is in the System framework
6490 deplibs="$deplibs System.ltframework"
7627 func_append deplibs " System.ltframework"
64917628 ;;
64927629 *-*-netbsd*)
64937630 # Don't link with libc until the a.out ld.so is fixed.
65047641 *)
65057642 # Add libc to deplibs on all other systems if necessary.
65067643 if test "$build_libtool_need_lc" = "yes"; then
6507 deplibs="$deplibs -lc"
7644 func_append deplibs " -lc"
65087645 fi
65097646 ;;
65107647 esac
65537690 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65547691 case " $predeps $postdeps " in
65557692 *" $i "*)
6556 newdeplibs="$newdeplibs $i"
7693 func_append newdeplibs " $i"
65577694 i=""
65587695 ;;
65597696 esac
65647701 set dummy $deplib_matches; shift
65657702 deplib_match=$1
65667703 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6567 newdeplibs="$newdeplibs $i"
7704 func_append newdeplibs " $i"
65687705 else
65697706 droppeddeps=yes
6570 $ECHO
7707 echo
65717708 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6572 $ECHO "*** I have the capability to make that library automatically link in when"
6573 $ECHO "*** you link to this library. But I can only do this if you have a"
6574 $ECHO "*** shared version of the library, which I believe you do not have"
6575 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6576 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
7709 echo "*** I have the capability to make that library automatically link in when"
7710 echo "*** you link to this library. But I can only do this if you have a"
7711 echo "*** shared version of the library, which I believe you do not have"
7712 echo "*** because a test_compile did reveal that the linker did not use it for"
7713 echo "*** its dynamic dependency list that programs get resolved with at runtime."
65777714 fi
65787715 fi
65797716 ;;
65807717 *)
6581 newdeplibs="$newdeplibs $i"
7718 func_append newdeplibs " $i"
65827719 ;;
65837720 esac
65847721 done
65967733 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
65977734 case " $predeps $postdeps " in
65987735 *" $i "*)
6599 newdeplibs="$newdeplibs $i"
7736 func_append newdeplibs " $i"
66007737 i=""
66017738 ;;
66027739 esac
66077744 set dummy $deplib_matches; shift
66087745 deplib_match=$1
66097746 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6610 newdeplibs="$newdeplibs $i"
7747 func_append newdeplibs " $i"
66117748 else
66127749 droppeddeps=yes
6613 $ECHO
7750 echo
66147751 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6615 $ECHO "*** I have the capability to make that library automatically link in when"
6616 $ECHO "*** you link to this library. But I can only do this if you have a"
6617 $ECHO "*** shared version of the library, which you do not appear to have"
6618 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6619 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
7752 echo "*** I have the capability to make that library automatically link in when"
7753 echo "*** you link to this library. But I can only do this if you have a"
7754 echo "*** shared version of the library, which you do not appear to have"
7755 echo "*** because a test_compile did reveal that the linker did not use this one"
7756 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
66207757 fi
66217758 fi
66227759 else
66237760 droppeddeps=yes
6624 $ECHO
7761 echo
66257762 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6626 $ECHO "*** make it link in! You will probably need to install it or some"
6627 $ECHO "*** library that it depends on before this library will be fully"
6628 $ECHO "*** functional. Installing it before continuing would be even better."
7763 echo "*** make it link in! You will probably need to install it or some"
7764 echo "*** library that it depends on before this library will be fully"
7765 echo "*** functional. Installing it before continuing would be even better."
66297766 fi
66307767 ;;
66317768 *)
6632 newdeplibs="$newdeplibs $i"
7769 func_append newdeplibs " $i"
66337770 ;;
66347771 esac
66357772 done
66467783 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
66477784 case " $predeps $postdeps " in
66487785 *" $a_deplib "*)
6649 newdeplibs="$newdeplibs $a_deplib"
7786 func_append newdeplibs " $a_deplib"
66507787 a_deplib=""
66517788 ;;
66527789 esac
66537790 fi
66547791 if test -n "$a_deplib" ; then
66557792 libname=`eval "\\$ECHO \"$libname_spec\""`
7793 if test -n "$file_magic_glob"; then
7794 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7795 else
7796 libnameglob=$libname
7797 fi
7798 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
66567799 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6657 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7800 if test "$want_nocaseglob" = yes; then
7801 shopt -s nocaseglob
7802 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7803 $nocaseglob
7804 else
7805 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7806 fi
66587807 for potent_lib in $potential_libs; do
66597808 # Follow soft links.
66607809 if ls -lLd "$potent_lib" 2>/dev/null |
66717820 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
66727821 case $potliblink in
66737822 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
7823 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
66757824 esac
66767825 done
66777826 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
66787827 $SED -e 10q |
66797828 $EGREP "$file_magic_regex" > /dev/null; then
6680 newdeplibs="$newdeplibs $a_deplib"
7829 func_append newdeplibs " $a_deplib"
66817830 a_deplib=""
66827831 break 2
66837832 fi
66867835 fi
66877836 if test -n "$a_deplib" ; then
66887837 droppeddeps=yes
6689 $ECHO
7838 echo
66907839 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6691 $ECHO "*** I have the capability to make that library automatically link in when"
6692 $ECHO "*** you link to this library. But I can only do this if you have a"
6693 $ECHO "*** shared version of the library, which you do not appear to have"
6694 $ECHO "*** because I did check the linker path looking for a file starting"
7840 echo "*** I have the capability to make that library automatically link in when"
7841 echo "*** you link to this library. But I can only do this if you have a"
7842 echo "*** shared version of the library, which you do not appear to have"
7843 echo "*** because I did check the linker path looking for a file starting"
66957844 if test -z "$potlib" ; then
66967845 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
66977846 else
67027851 ;;
67037852 *)
67047853 # Add a -L argument.
6705 newdeplibs="$newdeplibs $a_deplib"
7854 func_append newdeplibs " $a_deplib"
67067855 ;;
67077856 esac
67087857 done # Gone through all deplibs.
67187867 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67197868 case " $predeps $postdeps " in
67207869 *" $a_deplib "*)
6721 newdeplibs="$newdeplibs $a_deplib"
7870 func_append newdeplibs " $a_deplib"
67227871 a_deplib=""
67237872 ;;
67247873 esac
67297878 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
67307879 for potent_lib in $potential_libs; do
67317880 potlib="$potent_lib" # see symlink-check above in file_magic test
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
7881 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
67337882 $EGREP "$match_pattern_regex" > /dev/null; then
6734 newdeplibs="$newdeplibs $a_deplib"
7883 func_append newdeplibs " $a_deplib"
67357884 a_deplib=""
67367885 break 2
67377886 fi
67407889 fi
67417890 if test -n "$a_deplib" ; then
67427891 droppeddeps=yes
6743 $ECHO
7892 echo
67447893 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6745 $ECHO "*** I have the capability to make that library automatically link in when"
6746 $ECHO "*** you link to this library. But I can only do this if you have a"
6747 $ECHO "*** shared version of the library, which you do not appear to have"
6748 $ECHO "*** because I did check the linker path looking for a file starting"
7894 echo "*** I have the capability to make that library automatically link in when"
7895 echo "*** you link to this library. But I can only do this if you have a"
7896 echo "*** shared version of the library, which you do not appear to have"
7897 echo "*** because I did check the linker path looking for a file starting"
67497898 if test -z "$potlib" ; then
67507899 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
67517900 else
67567905 ;;
67577906 *)
67587907 # Add a -L argument.
6759 newdeplibs="$newdeplibs $a_deplib"
7908 func_append newdeplibs " $a_deplib"
67607909 ;;
67617910 esac
67627911 done # Gone through all deplibs.
67637912 ;;
67647913 none | unknown | *)
67657914 newdeplibs=""
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
7915 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
67687916 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
67697917 for i in $predeps $postdeps ; do
67707918 # can't use Xsed below, because $i might contain '/'
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
7919 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
67727920 done
67737921 fi
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
7922 case $tmp_deplibs in
7923 *[!\ \ ]*)
7924 echo
67777925 if test "X$deplibs_check_method" = "Xnone"; then
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
7926 echo "*** Warning: inter-library dependencies are not supported in this platform."
67797927 else
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
7928 echo "*** Warning: inter-library dependencies are not known to be supported."
67817929 fi
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
7930 echo "*** All declared inter-library dependencies are being dropped."
67837931 droppeddeps=yes
6784 fi
7932 ;;
7933 esac
67857934 ;;
67867935 esac
67877936 versuffix=$versuffix_save
67937942 case $host in
67947943 *-*-rhapsody* | *-*-darwin1.[012])
67957944 # On Rhapsody replace the C library with the System framework
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7945 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
67977946 ;;
67987947 esac
67997948
68007949 if test "$droppeddeps" = yes; then
68017950 if test "$module" = yes; then
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
7951 echo
7952 echo "*** Warning: libtool could not satisfy all declared inter-library"
68047953 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
7954 echo "*** a static module, that should work as long as the dlopening"
7955 echo "*** application is linked with the -dlopen flag."
68077956 if test -z "$global_symbol_pipe"; then
6808 $ECHO
6809 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6810 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6811 $ECHO "*** not find such a program. So, this module is probably useless."
6812 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
7957 echo
7958 echo "*** However, this would only work if libtool was able to extract symbol"
7959 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7960 echo "*** not find such a program. So, this module is probably useless."
7961 echo "*** \`nm' from GNU binutils and a full rebuild may help."
68137962 fi
68147963 if test "$build_old_libs" = no; then
68157964 oldlibs="$output_objdir/$libname.$libext"
68197968 build_libtool_libs=no
68207969 fi
68217970 else
6822 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6823 $ECHO "*** automatically added whenever a program is linked with this library"
6824 $ECHO "*** or is declared to -dlopen it."
7971 echo "*** The inter-library dependencies that have been dropped here will be"
7972 echo "*** automatically added whenever a program is linked with this library"
7973 echo "*** or is declared to -dlopen it."
68257974
68267975 if test "$allow_undefined" = no; then
6827 $ECHO
6828 $ECHO "*** Since this library must not contain undefined symbols,"
6829 $ECHO "*** because either the platform does not support them or"
6830 $ECHO "*** it was explicitly requested with -no-undefined,"
6831 $ECHO "*** libtool will only create a static version of it."
7976 echo
7977 echo "*** Since this library must not contain undefined symbols,"
7978 echo "*** because either the platform does not support them or"
7979 echo "*** it was explicitly requested with -no-undefined,"
7980 echo "*** libtool will only create a static version of it."
68327981 if test "$build_old_libs" = no; then
68337982 oldlibs="$output_objdir/$libname.$libext"
68347983 build_libtool_libs=module
68457994 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
68467995 case $host in
68477996 *-*-darwin*)
6848 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6849 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6850 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7997 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7998 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7999 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
68518000 ;;
68528001 esac
68538002
68608009 *)
68618010 case " $deplibs " in
68628011 *" -L$path/$objdir "*)
6863 new_libs="$new_libs -L$path/$objdir" ;;
8012 func_append new_libs " -L$path/$objdir" ;;
68648013 esac
68658014 ;;
68668015 esac
68708019 -L*)
68718020 case " $new_libs " in
68728021 *" $deplib "*) ;;
6873 *) new_libs="$new_libs $deplib" ;;
8022 *) func_append new_libs " $deplib" ;;
68748023 esac
68758024 ;;
6876 *) new_libs="$new_libs $deplib" ;;
8025 *) func_append new_libs " $deplib" ;;
68778026 esac
68788027 done
68798028 deplibs="$new_libs"
68858034
68868035 # Test again, we may have decided not to build it any more
68878036 if test "$build_libtool_libs" = yes; then
8037 # Remove ${wl} instances when linking with ld.
8038 # FIXME: should test the right _cmds variable.
8039 case $archive_cmds in
8040 *\$LD\ *) wl= ;;
8041 esac
68888042 if test "$hardcode_into_libs" = yes; then
68898043 # Hardcode the library paths
68908044 hardcode_libdirs=
68918045 dep_rpath=
68928046 rpath="$finalize_rpath"
6893 test "$mode" != relink && rpath="$compile_rpath$rpath"
8047 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
68948048 for libdir in $rpath; do
68958049 if test -n "$hardcode_libdir_flag_spec"; then
68968050 if test -n "$hardcode_libdir_separator"; then
8051 func_replace_sysroot "$libdir"
8052 libdir=$func_replace_sysroot_result
68978053 if test -z "$hardcode_libdirs"; then
68988054 hardcode_libdirs="$libdir"
68998055 else
69028058 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
69038059 ;;
69048060 *)
6905 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8061 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
69068062 ;;
69078063 esac
69088064 fi
69098065 else
69108066 eval flag=\"$hardcode_libdir_flag_spec\"
6911 dep_rpath="$dep_rpath $flag"
8067 func_append dep_rpath " $flag"
69128068 fi
69138069 elif test -n "$runpath_var"; then
69148070 case "$perm_rpath " in
69158071 *" $libdir "*) ;;
6916 *) perm_rpath="$perm_rpath $libdir" ;;
8072 *) func_append perm_rpath " $libdir" ;;
69178073 esac
69188074 fi
69198075 done
69218077 if test -n "$hardcode_libdir_separator" &&
69228078 test -n "$hardcode_libdirs"; then
69238079 libdir="$hardcode_libdirs"
6924 if test -n "$hardcode_libdir_flag_spec_ld"; then
6925 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
6926 else
6927 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
6928 fi
8080 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
69298081 fi
69308082 if test -n "$runpath_var" && test -n "$perm_rpath"; then
69318083 # We should set the runpath_var.
69328084 rpath=
69338085 for dir in $perm_rpath; do
6934 rpath="$rpath$dir:"
8086 func_append rpath "$dir:"
69358087 done
69368088 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
69378089 fi
69398091 fi
69408092
69418093 shlibpath="$finalize_shlibpath"
6942 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8094 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
69438095 if test -n "$shlibpath"; then
69448096 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
69458097 fi
69658117 linknames=
69668118 for link
69678119 do
6968 linknames="$linknames $link"
8120 func_append linknames " $link"
69698121 done
69708122
69718123 # Use standard objects if they are pic
6972 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8124 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
69738125 test "X$libobjs" = "X " && libobjs=
69748126
69758127 delfiles=
69768128 if test -n "$export_symbols" && test -n "$include_expsyms"; then
69778129 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
69788130 export_symbols="$output_objdir/$libname.uexp"
6979 delfiles="$delfiles $export_symbols"
8131 func_append delfiles " $export_symbols"
69808132 fi
69818133
69828134 orig_export_symbols=
70078159 $opt_dry_run || $RM $export_symbols
70088160 cmds=$export_symbols_cmds
70098161 save_ifs="$IFS"; IFS='~'
7010 for cmd in $cmds; do
8162 for cmd1 in $cmds; do
70118163 IFS="$save_ifs"
7012 eval cmd=\"$cmd\"
7013 func_len " $cmd"
7014 len=$func_len_result
7015 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8164 # Take the normal branch if the nm_file_list_spec branch
8165 # doesn't work or if tool conversion is not needed.
8166 case $nm_file_list_spec~$to_tool_file_cmd in
8167 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8168 try_normal_branch=yes
8169 eval cmd=\"$cmd1\"
8170 func_len " $cmd"
8171 len=$func_len_result
8172 ;;
8173 *)
8174 try_normal_branch=no
8175 ;;
8176 esac
8177 if test "$try_normal_branch" = yes \
8178 && { test "$len" -lt "$max_cmd_len" \
8179 || test "$max_cmd_len" -le -1; }
8180 then
70168181 func_show_eval "$cmd" 'exit $?'
8182 skipped_export=false
8183 elif test -n "$nm_file_list_spec"; then
8184 func_basename "$output"
8185 output_la=$func_basename_result
8186 save_libobjs=$libobjs
8187 save_output=$output
8188 output=${output_objdir}/${output_la}.nm
8189 func_to_tool_file "$output"
8190 libobjs=$nm_file_list_spec$func_to_tool_file_result
8191 func_append delfiles " $output"
8192 func_verbose "creating $NM input file list: $output"
8193 for obj in $save_libobjs; do
8194 func_to_tool_file "$obj"
8195 $ECHO "$func_to_tool_file_result"
8196 done > "$output"
8197 eval cmd=\"$cmd1\"
8198 func_show_eval "$cmd" 'exit $?'
8199 output=$save_output
8200 libobjs=$save_libobjs
70178201 skipped_export=false
70188202 else
70198203 # The command line is too long to execute in one step.
70358219 if test -n "$export_symbols" && test -n "$include_expsyms"; then
70368220 tmp_export_symbols="$export_symbols"
70378221 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8222 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
70398223 fi
70408224
70418225 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
70478231 # global variables. join(1) would be nice here, but unfortunately
70488232 # isn't a blessed tool.
70498233 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7050 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8234 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
70518235 export_symbols=$output_objdir/$libname.def
70528236 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
70538237 fi
70578241 case " $convenience " in
70588242 *" $test_deplib "*) ;;
70598243 *)
7060 tmp_deplibs="$tmp_deplibs $test_deplib"
8244 func_append tmp_deplibs " $test_deplib"
70618245 ;;
70628246 esac
70638247 done
70778261 test "X$libobjs" = "X " && libobjs=
70788262 else
70798263 gentop="$output_objdir/${outputname}x"
7080 generated="$generated $gentop"
8264 func_append generated " $gentop"
70818265
70828266 func_extract_archives $gentop $convenience
7083 libobjs="$libobjs $func_extract_archives_result"
8267 func_append libobjs " $func_extract_archives_result"
70848268 test "X$libobjs" = "X " && libobjs=
70858269 fi
70868270 fi
70878271
70888272 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
70898273 eval flag=\"$thread_safe_flag_spec\"
7090 linker_flags="$linker_flags $flag"
8274 func_append linker_flags " $flag"
70918275 fi
70928276
70938277 # Make a backup of the uninstalled library when relinking
7094 if test "$mode" = relink; then
8278 if test "$opt_mode" = relink; then
70958279 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
70968280 fi
70978281
71368320 save_libobjs=$libobjs
71378321 fi
71388322 save_output=$output
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
8323 func_basename "$output"
8324 output_la=$func_basename_result
71408325
71418326 # Clear the reloadable object creation command queue and
71428327 # initialize k to one.
71498334 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
71508335 output=${output_objdir}/${output_la}.lnkscript
71518336 func_verbose "creating GNU ld script: $output"
7152 $ECHO 'INPUT (' > $output
8337 echo 'INPUT (' > $output
71538338 for obj in $save_libobjs
71548339 do
7155 $ECHO "$obj" >> $output
8340 func_to_tool_file "$obj"
8341 $ECHO "$func_to_tool_file_result" >> $output
71568342 done
7157 $ECHO ')' >> $output
7158 delfiles="$delfiles $output"
8343 echo ')' >> $output
8344 func_append delfiles " $output"
8345 func_to_tool_file "$output"
8346 output=$func_to_tool_file_result
71598347 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
71608348 output=${output_objdir}/${output_la}.lnk
71618349 func_verbose "creating linker input file list: $output"
71698357 fi
71708358 for obj
71718359 do
7172 $ECHO "$obj" >> $output
8360 func_to_tool_file "$obj"
8361 $ECHO "$func_to_tool_file_result" >> $output
71738362 done
7174 delfiles="$delfiles $output"
7175 output=$firstobj\"$file_list_spec$output\"
8363 func_append delfiles " $output"
8364 func_to_tool_file "$output"
8365 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
71768366 else
71778367 if test -n "$save_libobjs"; then
71788368 func_verbose "creating reloadable object files..."
71968386 # command to the queue.
71978387 if test "$k" -eq 1 ; then
71988388 # The first file doesn't have a previous command to add.
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
8389 reload_objs=$objlist
8390 eval concat_cmds=\"$reload_cmds\"
72008391 else
72018392 # All subsequent reloadable object files will link in
72028393 # the last one created.
7203 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
8394 reload_objs="$objlist $last_robj"
8395 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
72048396 fi
72058397 last_robj=$output_objdir/$output_la-${k}.$objext
72068398 func_arith $k + 1
72078399 k=$func_arith_result
72088400 output=$output_objdir/$output_la-${k}.$objext
7209 objlist=$obj
8401 objlist=" $obj"
72108402 func_len " $last_robj"
72118403 func_arith $len0 + $func_len_result
72128404 len=$func_arith_result
72168408 # reloadable object file. All subsequent reloadable object
72178409 # files will link in the last one created.
72188410 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
8411 reload_objs="$objlist $last_robj"
8412 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
72208413 if test -n "$last_robj"; then
72218414 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
72228415 fi
7223 delfiles="$delfiles $output"
8416 func_append delfiles " $output"
72248417
72258418 else
72268419 output=
72548447 lt_exit=$?
72558448
72568449 # Restore the uninstalled library and exit
7257 if test "$mode" = relink; then
8450 if test "$opt_mode" = relink; then
72588451 ( cd "$output_objdir" && \
72598452 $RM "${realname}T" && \
72608453 $MV "${realname}U" "$realname" )
72758468 if test -n "$export_symbols" && test -n "$include_expsyms"; then
72768469 tmp_export_symbols="$export_symbols"
72778470 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
8471 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
72798472 fi
72808473
72818474 if test -n "$orig_export_symbols"; then
72878480 # global variables. join(1) would be nice here, but unfortunately
72888481 # isn't a blessed tool.
72898482 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7290 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8483 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
72918484 export_symbols=$output_objdir/$libname.def
72928485 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
72938486 fi
73288521 # Add any objects from preloaded convenience libraries
73298522 if test -n "$dlprefiles"; then
73308523 gentop="$output_objdir/${outputname}x"
7331 generated="$generated $gentop"
8524 func_append generated " $gentop"
73328525
73338526 func_extract_archives $gentop $dlprefiles
7334 libobjs="$libobjs $func_extract_archives_result"
8527 func_append libobjs " $func_extract_archives_result"
73358528 test "X$libobjs" = "X " && libobjs=
73368529 fi
73378530
73478540 lt_exit=$?
73488541
73498542 # Restore the uninstalled library and exit
7350 if test "$mode" = relink; then
8543 if test "$opt_mode" = relink; then
73518544 ( cd "$output_objdir" && \
73528545 $RM "${realname}T" && \
73538546 $MV "${realname}U" "$realname" )
73598552 IFS="$save_ifs"
73608553
73618554 # Restore the uninstalled library and exit
7362 if test "$mode" = relink; then
8555 if test "$opt_mode" = relink; then
73638556 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
73648557
73658558 if test -n "$convenience"; then
74408633 if test -n "$convenience"; then
74418634 if test -n "$whole_archive_flag_spec"; then
74428635 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
8636 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
74448637 else
74458638 gentop="$output_objdir/${obj}x"
7446 generated="$generated $gentop"
8639 func_append generated " $gentop"
74478640
74488641 func_extract_archives $gentop $convenience
74498642 reload_conv_objs="$reload_objs $func_extract_archives_result"
74508643 fi
74518644 fi
74528645
8646 # If we're not building shared, we need to use non_pic_objs
8647 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
8648
74538649 # Create the old-style object.
7454 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8650 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
74558651
74568652 output="$obj"
74578653 func_execute_cmds "$reload_cmds" 'exit $?'
75118707 case $host in
75128708 *-*-rhapsody* | *-*-darwin1.[012])
75138709 # On Rhapsody replace the C library is the System framework
7514 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7515 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
8710 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8711 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
75168712 ;;
75178713 esac
75188714
75238719 if test "$tagname" = CXX ; then
75248720 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
75258721 10.[0123])
7526 compile_command="$compile_command ${wl}-bind_at_load"
7527 finalize_command="$finalize_command ${wl}-bind_at_load"
8722 func_append compile_command " ${wl}-bind_at_load"
8723 func_append finalize_command " ${wl}-bind_at_load"
75288724 ;;
75298725 esac
75308726 fi
75318727 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7532 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7533 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
8728 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8729 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
75348730 ;;
75358731 esac
75368732
75448740 *)
75458741 case " $compile_deplibs " in
75468742 *" -L$path/$objdir "*)
7547 new_libs="$new_libs -L$path/$objdir" ;;
8743 func_append new_libs " -L$path/$objdir" ;;
75488744 esac
75498745 ;;
75508746 esac
75548750 -L*)
75558751 case " $new_libs " in
75568752 *" $deplib "*) ;;
7557 *) new_libs="$new_libs $deplib" ;;
8753 *) func_append new_libs " $deplib" ;;
75588754 esac
75598755 ;;
7560 *) new_libs="$new_libs $deplib" ;;
8756 *) func_append new_libs " $deplib" ;;
75618757 esac
75628758 done
75638759 compile_deplibs="$new_libs"
75648760
75658761
7566 compile_command="$compile_command $compile_deplibs"
7567 finalize_command="$finalize_command $finalize_deplibs"
8762 func_append compile_command " $compile_deplibs"
8763 func_append finalize_command " $finalize_deplibs"
75688764
75698765 if test -n "$rpath$xrpath"; then
75708766 # If the user specified any rpath flags, then add them.
75728768 # This is the magic to use -rpath.
75738769 case "$finalize_rpath " in
75748770 *" $libdir "*) ;;
7575 *) finalize_rpath="$finalize_rpath $libdir" ;;
8771 *) func_append finalize_rpath " $libdir" ;;
75768772 esac
75778773 done
75788774 fi
75918787 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
75928788 ;;
75938789 *)
7594 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8790 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
75958791 ;;
75968792 esac
75978793 fi
75988794 else
75998795 eval flag=\"$hardcode_libdir_flag_spec\"
7600 rpath="$rpath $flag"
8796 func_append rpath " $flag"
76018797 fi
76028798 elif test -n "$runpath_var"; then
76038799 case "$perm_rpath " in
76048800 *" $libdir "*) ;;
7605 *) perm_rpath="$perm_rpath $libdir" ;;
8801 *) func_append perm_rpath " $libdir" ;;
76068802 esac
76078803 fi
76088804 case $host in
76118807 case :$dllsearchpath: in
76128808 *":$libdir:"*) ;;
76138809 ::) dllsearchpath=$libdir;;
7614 *) dllsearchpath="$dllsearchpath:$libdir";;
8810 *) func_append dllsearchpath ":$libdir";;
76158811 esac
76168812 case :$dllsearchpath: in
76178813 *":$testbindir:"*) ;;
76188814 ::) dllsearchpath=$testbindir;;
7619 *) dllsearchpath="$dllsearchpath:$testbindir";;
8815 *) func_append dllsearchpath ":$testbindir";;
76208816 esac
76218817 ;;
76228818 esac
76428838 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
76438839 ;;
76448840 *)
7645 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8841 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
76468842 ;;
76478843 esac
76488844 fi
76498845 else
76508846 eval flag=\"$hardcode_libdir_flag_spec\"
7651 rpath="$rpath $flag"
8847 func_append rpath " $flag"
76528848 fi
76538849 elif test -n "$runpath_var"; then
76548850 case "$finalize_perm_rpath " in
76558851 *" $libdir "*) ;;
7656 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8852 *) func_append finalize_perm_rpath " $libdir" ;;
76578853 esac
76588854 fi
76598855 done
76678863
76688864 if test -n "$libobjs" && test "$build_old_libs" = yes; then
76698865 # Transform all the library objects into standard objects.
7670 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7671 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
8866 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8867 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
76728868 fi
76738869
76748870 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
76808876
76818877 wrappers_required=yes
76828878 case $host in
8879 *cegcc* | *mingw32ce*)
8880 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8881 wrappers_required=no
8882 ;;
76838883 *cygwin* | *mingw* )
76848884 if test "$build_libtool_libs" != yes; then
76858885 wrappers_required=no
76868886 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
76918887 ;;
76928888 *)
76938889 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
76978893 esac
76988894 if test "$wrappers_required" = no; then
76998895 # Replace the output file specification.
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8896 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77018897 link_command="$compile_command$compile_rpath"
77028898
77038899 # We have no uninstalled library dependencies, so finalize right now.
77048900 exit_status=0
77058901 func_show_eval "$link_command" 'exit_status=$?'
8902
8903 if test -n "$postlink_cmds"; then
8904 func_to_tool_file "$output"
8905 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8906 func_execute_cmds "$postlink_cmds" 'exit $?'
8907 fi
77068908
77078909 # Delete the generated files.
77088910 if test -f "$output_objdir/${outputname}S.${objext}"; then
77268928 # We should set the runpath_var.
77278929 rpath=
77288930 for dir in $perm_rpath; do
7729 rpath="$rpath$dir:"
8931 func_append rpath "$dir:"
77308932 done
77318933 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
77328934 fi
77348936 # We should set the runpath_var.
77358937 rpath=
77368938 for dir in $finalize_perm_rpath; do
7737 rpath="$rpath$dir:"
8939 func_append rpath "$dir:"
77388940 done
77398941 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
77408942 fi
77448946 # We don't need to create a wrapper script.
77458947 link_command="$compile_var$compile_command$compile_rpath"
77468948 # Replace the output file specification.
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
8949 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
77488950 # Delete the old output file.
77498951 $opt_dry_run || $RM $output
77508952 # Link the executable and exit
77518953 func_show_eval "$link_command" 'exit $?'
8954
8955 if test -n "$postlink_cmds"; then
8956 func_to_tool_file "$output"
8957 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8958 func_execute_cmds "$postlink_cmds" 'exit $?'
8959 fi
8960
77528961 exit $EXIT_SUCCESS
77538962 fi
77548963
77638972 if test "$fast_install" != no; then
77648973 link_command="$finalize_var$compile_command$finalize_rpath"
77658974 if test "$fast_install" = yes; then
7766 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
8975 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
77678976 else
77688977 # fast_install is set to needless
77698978 relink_command=
77758984 fi
77768985
77778986 # Replace the output file specification.
7778 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
8987 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
77798988
77808989 # Delete the old output files.
77818990 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
77828991
77838992 func_show_eval "$link_command" 'exit $?'
8993
8994 if test -n "$postlink_cmds"; then
8995 func_to_tool_file "$output_objdir/$outputname"
8996 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8997 func_execute_cmds "$postlink_cmds" 'exit $?'
8998 fi
77848999
77859000 # Now create the wrapper script.
77869001 func_verbose "creating $output"
77999014 fi
78009015 done
78019016 relink_command="(cd `pwd`; $relink_command)"
7802 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7803 fi
7804
7805 # Quote $ECHO for shipping.
7806 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
7807 case $progpath in
7808 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
7809 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
7810 esac
7811 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
7812 else
7813 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
9017 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
78149018 fi
78159019
78169020 # Only actually do things if not in dry run mode.
78909094 else
78919095 oldobjs="$old_deplibs $non_pic_objects"
78929096 if test "$preload" = yes && test -f "$symfileobj"; then
7893 oldobjs="$oldobjs $symfileobj"
9097 func_append oldobjs " $symfileobj"
78949098 fi
78959099 fi
78969100 addlibs="$old_convenience"
78989102
78999103 if test -n "$addlibs"; then
79009104 gentop="$output_objdir/${outputname}x"
7901 generated="$generated $gentop"
9105 func_append generated " $gentop"
79029106
79039107 func_extract_archives $gentop $addlibs
7904 oldobjs="$oldobjs $func_extract_archives_result"
9108 func_append oldobjs " $func_extract_archives_result"
79059109 fi
79069110
79079111 # Do each command in the archive commands.
79129116 # Add any objects from preloaded convenience libraries
79139117 if test -n "$dlprefiles"; then
79149118 gentop="$output_objdir/${outputname}x"
7915 generated="$generated $gentop"
9119 func_append generated " $gentop"
79169120
79179121 func_extract_archives $gentop $dlprefiles
7918 oldobjs="$oldobjs $func_extract_archives_result"
9122 func_append oldobjs " $func_extract_archives_result"
79199123 fi
79209124
79219125 # POSIX demands no paths to be encoded in archives. We have
79319135 done | sort | sort -uc >/dev/null 2>&1); then
79329136 :
79339137 else
7934 $ECHO "copying selected object files to avoid basename conflicts..."
9138 echo "copying selected object files to avoid basename conflicts..."
79359139 gentop="$output_objdir/${outputname}x"
7936 generated="$generated $gentop"
9140 func_append generated " $gentop"
79379141 func_mkdir_p "$gentop"
79389142 save_oldobjs=$oldobjs
79399143 oldobjs=
79579161 esac
79589162 done
79599163 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
7960 oldobjs="$oldobjs $gentop/$newobj"
9164 func_append oldobjs " $gentop/$newobj"
79619165 ;;
7962 *) oldobjs="$oldobjs $obj" ;;
9166 *) func_append oldobjs " $obj" ;;
79639167 esac
79649168 done
79659169 fi
9170 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9171 tool_oldlib=$func_to_tool_file_result
79669172 eval cmds=\"$old_archive_cmds\"
79679173
79689174 func_len " $cmds"
79699175 len=$func_len_result
79709176 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9177 cmds=$old_archive_cmds
9178 elif test -n "$archiver_list_spec"; then
9179 func_verbose "using command file archive linking..."
9180 for obj in $oldobjs
9181 do
9182 func_to_tool_file "$obj"
9183 $ECHO "$func_to_tool_file_result"
9184 done > $output_objdir/$libname.libcmd
9185 func_to_tool_file "$output_objdir/$libname.libcmd"
9186 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
79719187 cmds=$old_archive_cmds
79729188 else
79739189 # the command line is too long to link in one step, link in parts
80429258 done
80439259 # Quote the link command for shipping.
80449260 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
9261 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
80469262 if test "$hardcode_automatic" = yes ; then
80479263 relink_command=
80489264 fi
80629278 *.la)
80639279 func_basename "$deplib"
80649280 name="$func_basename_result"
8065 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9281 func_resolve_sysroot "$deplib"
9282 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
80669283 test -z "$libdir" && \
80679284 func_fatal_error "\`$deplib' is not a valid libtool archive"
8068 newdependency_libs="$newdependency_libs $libdir/$name"
9285 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
80699286 ;;
8070 *) newdependency_libs="$newdependency_libs $deplib" ;;
9287 -L*)
9288 func_stripname -L '' "$deplib"
9289 func_replace_sysroot "$func_stripname_result"
9290 func_append newdependency_libs " -L$func_replace_sysroot_result"
9291 ;;
9292 -R*)
9293 func_stripname -R '' "$deplib"
9294 func_replace_sysroot "$func_stripname_result"
9295 func_append newdependency_libs " -R$func_replace_sysroot_result"
9296 ;;
9297 *) func_append newdependency_libs " $deplib" ;;
80719298 esac
80729299 done
80739300 dependency_libs="$newdependency_libs"
80819308 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
80829309 test -z "$libdir" && \
80839310 func_fatal_error "\`$lib' is not a valid libtool archive"
8084 newdlfiles="$newdlfiles $libdir/$name"
9311 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
80859312 ;;
8086 *) newdlfiles="$newdlfiles $lib" ;;
9313 *) func_append newdlfiles " $lib" ;;
80879314 esac
80889315 done
80899316 dlfiles="$newdlfiles"
81009327 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
81019328 test -z "$libdir" && \
81029329 func_fatal_error "\`$lib' is not a valid libtool archive"
8103 newdlprefiles="$newdlprefiles $libdir/$name"
9330 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
81049331 ;;
81059332 esac
81069333 done
81129339 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81139340 *) abs=`pwd`"/$lib" ;;
81149341 esac
8115 newdlfiles="$newdlfiles $abs"
9342 func_append newdlfiles " $abs"
81169343 done
81179344 dlfiles="$newdlfiles"
81189345 newdlprefiles=
81219348 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
81229349 *) abs=`pwd`"/$lib" ;;
81239350 esac
8124 newdlprefiles="$newdlprefiles $abs"
9351 func_append newdlprefiles " $abs"
81259352 done
81269353 dlprefiles="$newdlprefiles"
81279354 fi
81289355 $RM $output
81299356 # place dlname in correct position for cygwin
9357 # In fact, it would be nice if we could use this code for all target
9358 # systems that can't hard-code library paths into their executables
9359 # and that have no shared library path variable independent of PATH,
9360 # but it turns out we can't easily determine that from inspecting
9361 # libtool variables, so we have to hard-code the OSs to which it
9362 # applies here; at the moment, that means platforms that use the PE
9363 # object format with DLL files. See the long comment at the top of
9364 # tests/bindir.at for full details.
81309365 tdlname=$dlname
81319366 case $host,$output,$installed,$module,$dlname in
8132 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
9367 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9368 # If a -bindir argument was supplied, place the dll there.
9369 if test "x$bindir" != x ;
9370 then
9371 func_relative_path "$install_libdir" "$bindir"
9372 tdlname=$func_relative_path_result$dlname
9373 else
9374 # Otherwise fall back on heuristic.
9375 tdlname=../bin/$dlname
9376 fi
9377 ;;
81339378 esac
81349379 $ECHO > $output "\
81359380 # $outputname - a libtool library file
81889433 exit $EXIT_SUCCESS
81899434 }
81909435
8191 { test "$mode" = link || test "$mode" = relink; } &&
9436 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
81929437 func_mode_link ${1+"$@"}
81939438
81949439
82089453 for arg
82099454 do
82109455 case $arg in
8211 -f) RM="$RM $arg"; rmforce=yes ;;
8212 -*) RM="$RM $arg" ;;
8213 *) files="$files $arg" ;;
9456 -f) func_append RM " $arg"; rmforce=yes ;;
9457 -*) func_append RM " $arg" ;;
9458 *) func_append files " $arg" ;;
82149459 esac
82159460 done
82169461
82199464
82209465 rmdirs=
82219466
8222 origobjdir="$objdir"
82239467 for file in $files; do
82249468 func_dirname "$file" "" "."
82259469 dir="$func_dirname_result"
82269470 if test "X$dir" = X.; then
8227 objdir="$origobjdir"
9471 odir="$objdir"
82289472 else
8229 objdir="$dir/$origobjdir"
9473 odir="$dir/$objdir"
82309474 fi
82319475 func_basename "$file"
82329476 name="$func_basename_result"
8233 test "$mode" = uninstall && objdir="$dir"
8234
8235 # Remember objdir for removal later, being careful to avoid duplicates
8236 if test "$mode" = clean; then
9477 test "$opt_mode" = uninstall && odir="$dir"
9478
9479 # Remember odir for removal later, being careful to avoid duplicates
9480 if test "$opt_mode" = clean; then
82379481 case " $rmdirs " in
8238 *" $objdir "*) ;;
8239 *) rmdirs="$rmdirs $objdir" ;;
9482 *" $odir "*) ;;
9483 *) func_append rmdirs " $odir" ;;
82409484 esac
82419485 fi
82429486
82629506
82639507 # Delete the libtool libraries and symlinks.
82649508 for n in $library_names; do
8265 rmfiles="$rmfiles $objdir/$n"
9509 func_append rmfiles " $odir/$n"
82669510 done
8267 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8268
8269 case "$mode" in
9511 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9512
9513 case "$opt_mode" in
82709514 clean)
8271 case " $library_names " in
8272 # " " in the beginning catches empty $dlname
9515 case " $library_names " in
82739516 *" $dlname "*) ;;
8274 *) rmfiles="$rmfiles $objdir/$dlname" ;;
9517 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
82759518 esac
8276 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9519 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
82779520 ;;
82789521 uninstall)
82799522 if test -n "$library_names"; then
83019544 # Add PIC object to the list of files to remove.
83029545 if test -n "$pic_object" &&
83039546 test "$pic_object" != none; then
8304 rmfiles="$rmfiles $dir/$pic_object"
9547 func_append rmfiles " $dir/$pic_object"
83059548 fi
83069549
83079550 # Add non-PIC object to the list of files to remove.
83089551 if test -n "$non_pic_object" &&
83099552 test "$non_pic_object" != none; then
8310 rmfiles="$rmfiles $dir/$non_pic_object"
9553 func_append rmfiles " $dir/$non_pic_object"
83119554 fi
83129555 fi
83139556 ;;
83149557
83159558 *)
8316 if test "$mode" = clean ; then
9559 if test "$opt_mode" = clean ; then
83179560 noexename=$name
83189561 case $file in
83199562 *.exe)
83239566 noexename=$func_stripname_result
83249567 # $file with .exe has already been added to rmfiles,
83259568 # add $file without .exe
8326 rmfiles="$rmfiles $file"
9569 func_append rmfiles " $file"
83279570 ;;
83289571 esac
83299572 # Do a test to see if this is a libtool program.
83329575 func_ltwrapper_scriptname "$file"
83339576 relink_command=
83349577 func_source $func_ltwrapper_scriptname_result
8335 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
9578 func_append rmfiles " $func_ltwrapper_scriptname_result"
83369579 else
83379580 relink_command=
83389581 func_source $dir/$noexename
83409583
83419584 # note $name still contains .exe if it was in $file originally
83429585 # as does the version of $file that was added into $rmfiles
8343 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9586 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
83449587 if test "$fast_install" = yes && test -n "$relink_command"; then
8345 rmfiles="$rmfiles $objdir/lt-$name"
9588 func_append rmfiles " $odir/lt-$name"
83469589 fi
83479590 if test "X$noexename" != "X$name" ; then
8348 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
9591 func_append rmfiles " $odir/lt-${noexename}.c"
83499592 fi
83509593 fi
83519594 fi
83539596 esac
83549597 func_show_eval "$RM $rmfiles" 'exit_status=1'
83559598 done
8356 objdir="$origobjdir"
83579599
83589600 # Try to remove the ${objdir}s in the directories where we deleted files
83599601 for dir in $rmdirs; do
83659607 exit $exit_status
83669608 }
83679609
8368 { test "$mode" = uninstall || test "$mode" = clean; } &&
9610 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
83699611 func_mode_uninstall ${1+"$@"}
83709612
8371 test -z "$mode" && {
9613 test -z "$opt_mode" && {
83729614 help="$generic_help"
83739615 func_fatal_help "you must specify a MODE"
83749616 }
83759617
83769618 test -z "$exec_cmd" && \
8377 func_fatal_help "invalid operation mode \`$mode'"
9619 func_fatal_help "invalid operation mode \`$opt_mode'"
83789620
83799621 if test -n "$exec_cmd"; then
83809622 eval exec "$exec_cmd"
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2012-01-06.13; # UTC
44
55 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
6 # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
99 # This program is free software; you can redistribute it and/or modify
8383 help2man touch the output file
8484 lex create \`lex.yy.c', if possible, from existing .c
8585 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
8786 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
8887
8988 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
119118 case $1 in
120119 lex*|yacc*)
121120 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131121 ;;
132122
133123 *)
225215 \`Bison' from any GNU archive site."
226216 rm -f y.tab.c y.tab.h
227217 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
218 eval LASTARG=\${$#}
229219 case $LASTARG in
230220 *.y)
231221 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
255245 \`Flex' from any GNU archive site."
256246 rm -f lex.yy.c
257247 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
248 eval LASTARG=\${$#}
259249 case $LASTARG in
260250 *.l)
261251 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
317307 touch $file
318308 ;;
319309
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355310 *)
356311 echo 1>&2 "\
357312 WARNING: \`$1' is needed, and is $msg.
+1898
-1033
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.67 for Multitouch Protocol Translation Library 1.1.0.
2 # Generated by GNU Autoconf 2.68 for Multitouch Protocol Translation Library 1.1.2.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8888 IFS=" "" $as_nl"
8989
9090 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
9192 case $0 in #((
9293 *[\\/]* ) as_myself=$0 ;;
9394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
170171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
173182 test \$(( 1 + 1 )) = 2 || exit 1"
174183 if (eval "$as_required") 2>/dev/null; then :
175184 as_have_required=yes
213222 # We cannot yet assume a decent shell, so we have to provide a
214223 # neutralization value for shells without unset; and this also
215224 # works around shells that cannot unset nonexistent variables.
225 # Preserve -v and -x to the replacement shell.
216226 BASH_ENV=/dev/null
217227 ENV=/dev/null
218228 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219229 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 case $- in # ((((
231 *v*x* | *x*v* ) as_opts=-vx ;;
232 *v* ) as_opts=-v ;;
233 *x* ) as_opts=-x ;;
234 * ) as_opts= ;;
235 esac
236 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
221237 fi
222238
223239 if test x$as_have_required = xno; then :
524540 # Sed expression to map a string onto a valid variable name.
525541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526542
527
528
529 # Check that we are running under the correct shell.
530543 SHELL=${CONFIG_SHELL-/bin/sh}
531
532 case X$lt_ECHO in
533 X*--fallback-echo)
534 # Remove one level of quotation (which was required for Make).
535 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 ;;
537 esac
538
539 ECHO=${lt_ECHO-echo}
540 if test "X$1" = X--no-reexec; then
541 # Discard the --no-reexec flag, and continue.
542 shift
543 elif test "X$1" = X--fallback-echo; then
544 # Avoid inline document here, it may be left over
545 :
546 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547 # Yippee, $ECHO works!
548 :
549 else
550 # Restart under the correct shell.
551 exec $SHELL "$0" --no-reexec ${1+"$@"}
552 fi
553
554 if test "X$1" = X--fallback-echo; then
555 # used as fallback echo
556 shift
557 cat <<_LT_EOF
558 $*
559 _LT_EOF
560 exit 0
561 fi
562
563 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 # if CDPATH is set.
565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566
567 if test -z "$lt_ECHO"; then
568 if test "X${echo_test_string+set}" != Xset; then
569 # find a string as large as possible, as long as the shell can cope with it
570 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574 then
575 break
576 fi
577 done
578 fi
579
580 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582 test "X$echo_testing_string" = "X$echo_test_string"; then
583 :
584 else
585 # The Solaris, AIX, and Digital Unix default echo programs unquote
586 # backslashes. This makes it impossible to quote backslashes using
587 # echo "$something" | sed 's/\\/\\\\/g'
588 #
589 # So, first we look for a working echo in the user's PATH.
590
591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592 for dir in $PATH /usr/ucb; do
593 IFS="$lt_save_ifs"
594 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597 test "X$echo_testing_string" = "X$echo_test_string"; then
598 ECHO="$dir/echo"
599 break
600 fi
601 done
602 IFS="$lt_save_ifs"
603
604 if test "X$ECHO" = Xecho; then
605 # We didn't find a better echo, so look for alternatives.
606 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # This shell has a builtin print -r that does the trick.
610 ECHO='print -r'
611 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612 test "X$CONFIG_SHELL" != X/bin/ksh; then
613 # If we have ksh, try running configure again with it.
614 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615 export ORIGINAL_CONFIG_SHELL
616 CONFIG_SHELL=/bin/ksh
617 export CONFIG_SHELL
618 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619 else
620 # Try using printf.
621 ECHO='printf %s\n'
622 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 # Cool, printf works
626 :
627 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628 test "X$echo_testing_string" = 'X\t' &&
629 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 export CONFIG_SHELL
633 SHELL="$CONFIG_SHELL"
634 export SHELL
635 ECHO="$CONFIG_SHELL $0 --fallback-echo"
636 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 else
642 # maybe with a smaller string...
643 prev=:
644
645 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647 then
648 break
649 fi
650 prev="$cmd"
651 done
652
653 if test "$prev" != 'sed 50q "$0"'; then
654 echo_test_string=`eval $prev`
655 export echo_test_string
656 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 else
658 # Oops. We lost completely, so just stick with echo.
659 ECHO=echo
660 fi
661 fi
662 fi
663 fi
664 fi
665 fi
666
667 # Copy echo and quote the copy suitably for passing to libtool from
668 # the Makefile, instead of quoting the original, which is used later.
669 lt_ECHO=$ECHO
670 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672 fi
673
674
675544
676545
677546 test -n "$DJDIR" || exec 7<&0 </dev/null
697566 # Identity of this package.
698567 PACKAGE_NAME='Multitouch Protocol Translation Library'
699568 PACKAGE_TARNAME='mtdev'
700 PACKAGE_VERSION='1.1.0'
701 PACKAGE_STRING='Multitouch Protocol Translation Library 1.1.0'
569 PACKAGE_VERSION='1.1.2'
570 PACKAGE_STRING='Multitouch Protocol Translation Library 1.1.2'
702571 PACKAGE_BUGREPORT=''
703572 PACKAGE_URL=''
704573
749618 LIPO
750619 NMEDIT
751620 DSYMUTIL
752 lt_ECHO
621 MANIFEST_TOOL
753622 RANLIB
623 ac_ct_AR
754624 AR
625 DLLTOOL
755626 OBJDUMP
756627 LN_S
757628 NM
765636 am__fastdepCC_FALSE
766637 am__fastdepCC_TRUE
767638 CCDEPMODE
639 am__nodep
768640 AMDEPBACKSLASH
769641 AMDEP_FALSE
770642 AMDEP_TRUE
862734 enable_fast_install
863735 enable_dependency_tracking
864736 with_gnu_ld
737 with_sysroot
865738 enable_libtool_lock
866739 '
867740 ac_precious_vars='build_alias
12771150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12781151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12791152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12811154 ;;
12821155
12831156 esac
14151288 # Omit some internal or obsolete options to make the list less imposing.
14161289 # This message is too long to be a string in the A/UX 3.1 sh.
14171290 cat <<_ACEOF
1418 \`configure' configures Multitouch Protocol Translation Library 1.1.0 to adapt to many kinds of systems.
1291 \`configure' configures Multitouch Protocol Translation Library 1.1.2 to adapt to many kinds of systems.
14191292
14201293 Usage: $0 [OPTION]... [VAR=VALUE]...
14211294
14851358
14861359 if test -n "$ac_init_help"; then
14871360 case $ac_init_help in
1488 short | recursive ) echo "Configuration of Multitouch Protocol Translation Library 1.1.0:";;
1361 short | recursive ) echo "Configuration of Multitouch Protocol Translation Library 1.1.2:";;
14891362 esac
14901363 cat <<\_ACEOF
14911364
15061379 Optional Packages:
15071380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
15081381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1382 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
15101383 both]
15111384 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1385 --with-sysroot=DIR Search for dependent libraries within DIR
1386 (or the compiler's sysroot if not specified).
15121387
15131388 Some influential environment variables:
15141389 CC C compiler command
15861461 test -n "$ac_init_help" && exit $ac_status
15871462 if $ac_init_version; then
15881463 cat <<\_ACEOF
1589 Multitouch Protocol Translation Library configure 1.1.0
1590 generated by GNU Autoconf 2.67
1464 Multitouch Protocol Translation Library configure 1.1.2
1465 generated by GNU Autoconf 2.68
15911466
15921467 Copyright (C) 2010 Free Software Foundation, Inc.
15931468 This configure script is free software; the Free Software Foundation
16331508
16341509 ac_retval=1
16351510 fi
1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16371512 as_fn_set_status $ac_retval
16381513
16391514 } # ac_fn_c_try_compile
16791554 # interfere with the next link command; also delete a directory that is
16801555 # left behind by Apple's compiler. We do this before executing the actions.
16811556 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16831558 as_fn_set_status $ac_retval
16841559
16851560 } # ac_fn_c_try_link
16931568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16941569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16951570 $as_echo_n "checking for $2... " >&6; }
1696 if eval "test \"\${$3+set}\"" = set; then :
1571 if eval \${$3+:} false; then :
16971572 $as_echo_n "(cached) " >&6
16981573 else
16991574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111586 eval ac_res=\$$3
17121587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17131588 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17151590
17161591 } # ac_fn_c_check_header_compile
17171592
17471622
17481623 ac_retval=1
17491624 fi
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17511626 as_fn_set_status $ac_retval
17521627
17531628 } # ac_fn_c_try_cpp
17891664 ac_retval=$ac_status
17901665 fi
17911666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17931668 as_fn_set_status $ac_retval
17941669
17951670 } # ac_fn_c_try_run
18021677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18031678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18041679 $as_echo_n "checking for $2... " >&6; }
1805 if eval "test \"\${$3+set}\"" = set; then :
1680 if eval \${$3+:} false; then :
18061681 $as_echo_n "(cached) " >&6
18071682 else
18081683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571732 eval ac_res=\$$3
18581733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18591734 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18611736
18621737 } # ac_fn_c_check_func
18631738 cat >config.log <<_ACEOF
18641739 This file contains any messages produced by compilers while
18651740 running configure, to aid debugging if configure makes a mistake.
18661741
1867 It was created by Multitouch Protocol Translation Library $as_me 1.1.0, which was
1868 generated by GNU Autoconf 2.67. Invocation command line was
1742 It was created by Multitouch Protocol Translation Library $as_me 1.1.2, which was
1743 generated by GNU Autoconf 2.68. Invocation command line was
18691744
18701745 $ $0 $@
18711746
21231998 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21241999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21252000 as_fn_error $? "failed to load site script $ac_site_file
2126 See \`config.log' for more details" "$LINENO" 5 ; }
2001 See \`config.log' for more details" "$LINENO" 5; }
21272002 fi
21282003 done
21292004
22652140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22662141 $as_echo_n "checking for a BSD-compatible install... " >&6; }
22672142 if test -z "$INSTALL"; then
2268 if test "${ac_cv_path_install+set}" = set; then :
2143 if ${ac_cv_path_install+:} false; then :
22692144 $as_echo_n "(cached) " >&6
22702145 else
22712146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23522227 '
23532228 case `pwd` in
23542229 *[\\\"\#\$\&\'\`$am_lf]*)
2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2230 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
23562231 esac
23572232 case $srcdir in
23582233 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2359 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2234 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
23602235 esac
23612236
23622237 # Do `set' in a subshell so we don't clobber the current shell's
24422317 set dummy ${ac_tool_prefix}strip; ac_word=$2
24432318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24442319 $as_echo_n "checking for $ac_word... " >&6; }
2445 if test "${ac_cv_prog_STRIP+set}" = set; then :
2320 if ${ac_cv_prog_STRIP+:} false; then :
24462321 $as_echo_n "(cached) " >&6
24472322 else
24482323 if test -n "$STRIP"; then
24822357 set dummy strip; ac_word=$2
24832358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24842359 $as_echo_n "checking for $ac_word... " >&6; }
2485 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2360 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
24862361 $as_echo_n "(cached) " >&6
24872362 else
24882363 if test -n "$ac_ct_STRIP"; then
25352410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
25362411 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25372412 if test -z "$MKDIR_P"; then
2538 if test "${ac_cv_path_mkdir+set}" = set; then :
2413 if ${ac_cv_path_mkdir+:} false; then :
25392414 $as_echo_n "(cached) " >&6
25402415 else
25412416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25862461 set dummy $ac_prog; ac_word=$2
25872462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25882463 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_AWK+set}" = set; then :
2464 if ${ac_cv_prog_AWK+:} false; then :
25902465 $as_echo_n "(cached) " >&6
25912466 else
25922467 if test -n "$AWK"; then
26262501 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26272502 set x ${MAKE-make}
26282503 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2629 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2504 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
26302505 $as_echo_n "(cached) " >&6
26312506 else
26322507 cat >conftest.make <<\_ACEOF
26842559
26852560 # Define the identity of the package.
26862561 PACKAGE='mtdev'
2687 VERSION='1.1.0'
2562 VERSION='1.1.2'
26882563
26892564
26902565 cat >>confdefs.h <<_ACEOF
27142589
27152590 # We need awk for the "check" target. The system "awk" is bad on
27162591 # some platforms.
2717 # Always define AMTAR for backward compatibility.
2718
2719 AMTAR=${AMTAR-"${am_missing_run}tar"}
2720
2721 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2592 # Always define AMTAR for backward compatibility. Yes, it's still used
2593 # in the wild :-( We should find a proper way to deprecate it ...
2594 AMTAR='$${TAR-tar}'
2595
2596 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
27222597
27232598
27242599
27602635
27612636
27622637
2763 macro_version='2.2.6b'
2764 macro_revision='1.3017'
2638 macro_version='2.4.2'
2639 macro_revision='1.3337'
27652640
27662641
27672642
27832658
27842659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
27852660 $as_echo_n "checking build system type... " >&6; }
2786 if test "${ac_cv_build+set}" = set; then :
2661 if ${ac_cv_build+:} false; then :
27872662 $as_echo_n "(cached) " >&6
27882663 else
27892664 ac_build_alias=$build_alias
27992674 $as_echo "$ac_cv_build" >&6; }
28002675 case $ac_cv_build in
28012676 *-*-*) ;;
2802 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2677 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
28032678 esac
28042679 build=$ac_cv_build
28052680 ac_save_IFS=$IFS; IFS='-'
28172692
28182693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
28192694 $as_echo_n "checking host system type... " >&6; }
2820 if test "${ac_cv_host+set}" = set; then :
2695 if ${ac_cv_host+:} false; then :
28212696 $as_echo_n "(cached) " >&6
28222697 else
28232698 if test "x$host_alias" = x; then
28322707 $as_echo "$ac_cv_host" >&6; }
28332708 case $ac_cv_host in
28342709 *-*-*) ;;
2835 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2710 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
28362711 esac
28372712 host=$ac_cv_host
28382713 ac_save_IFS=$IFS; IFS='-'
28462721 host_os=$*
28472722 IFS=$ac_save_IFS
28482723 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2724
2725
2726 # Backslashify metacharacters that are still active within
2727 # double-quoted strings.
2728 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2729
2730 # Same as above, but do not quote variable references.
2731 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2732
2733 # Sed substitution to delay expansion of an escaped shell variable in a
2734 # double_quote_subst'ed string.
2735 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2736
2737 # Sed substitution to delay expansion of an escaped single quote.
2738 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2739
2740 # Sed substitution to avoid accidental globbing in evaled expressions
2741 no_glob_subst='s/\*/\\\*/g'
2742
2743 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2748 $as_echo_n "checking how to print strings... " >&6; }
2749 # Test print first, because it will be a builtin if present.
2750 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2751 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2752 ECHO='print -r --'
2753 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2754 ECHO='printf %s\n'
2755 else
2756 # Use this function as a fallback that always works.
2757 func_fallback_echo ()
2758 {
2759 eval 'cat <<_LTECHO_EOF
2760 $1
2761 _LTECHO_EOF'
2762 }
2763 ECHO='func_fallback_echo'
2764 fi
2765
2766 # func_echo_all arg...
2767 # Invoke $ECHO with all args, space-separated.
2768 func_echo_all ()
2769 {
2770 $ECHO ""
2771 }
2772
2773 case "$ECHO" in
2774 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2775 $as_echo "printf" >&6; } ;;
2776 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2777 $as_echo "print -r" >&6; } ;;
2778 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2779 $as_echo "cat" >&6; } ;;
2780 esac
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
28492793
28502794
28512795 DEPDIR="${am__leading_dot}deps"
29002844 if test "x$enable_dependency_tracking" != xno; then
29012845 am_depcomp="$ac_aux_dir/depcomp"
29022846 AMDEPBACKSLASH='\'
2847 am__nodep='_no'
29032848 fi
29042849 if test "x$enable_dependency_tracking" != xno; then
29052850 AMDEP_TRUE=
29202865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
29212866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29222867 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then :
2868 if ${ac_cv_prog_CC+:} false; then :
29242869 $as_echo_n "(cached) " >&6
29252870 else
29262871 if test -n "$CC"; then
29602905 set dummy gcc; ac_word=$2
29612906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29622907 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
29642909 $as_echo_n "(cached) " >&6
29652910 else
29662911 if test -n "$ac_ct_CC"; then
30132958 set dummy ${ac_tool_prefix}cc; ac_word=$2
30142959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30152960 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then :
2961 if ${ac_cv_prog_CC+:} false; then :
30172962 $as_echo_n "(cached) " >&6
30182963 else
30192964 if test -n "$CC"; then
30532998 set dummy cc; ac_word=$2
30542999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30553000 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then :
3001 if ${ac_cv_prog_CC+:} false; then :
30573002 $as_echo_n "(cached) " >&6
30583003 else
30593004 if test -n "$CC"; then
31123057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31133058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31143059 $as_echo_n "checking for $ac_word... " >&6; }
3115 if test "${ac_cv_prog_CC+set}" = set; then :
3060 if ${ac_cv_prog_CC+:} false; then :
31163061 $as_echo_n "(cached) " >&6
31173062 else
31183063 if test -n "$CC"; then
31563101 set dummy $ac_prog; ac_word=$2
31573102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31583103 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3104 if ${ac_cv_prog_ac_ct_CC+:} false; then :
31603105 $as_echo_n "(cached) " >&6
31613106 else
31623107 if test -n "$ac_ct_CC"; then
32113156 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32123157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32133158 as_fn_error $? "no acceptable C compiler found in \$PATH
3214 See \`config.log' for more details" "$LINENO" 5 ; }
3159 See \`config.log' for more details" "$LINENO" 5; }
32153160
32163161 # Provide some information about the compiler.
32173162 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
33263271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33273272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33283273 as_fn_error 77 "C compiler cannot create executables
3329 See \`config.log' for more details" "$LINENO" 5 ; }
3274 See \`config.log' for more details" "$LINENO" 5; }
33303275 else
33313276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33323277 $as_echo "yes" >&6; }
33693314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33703315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33713316 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3372 See \`config.log' for more details" "$LINENO" 5 ; }
3317 See \`config.log' for more details" "$LINENO" 5; }
33733318 fi
33743319 rm -f conftest conftest$ac_cv_exeext
33753320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
34283373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34293374 as_fn_error $? "cannot run C compiled programs.
34303375 If you meant to cross compile, use \`--host'.
3431 See \`config.log' for more details" "$LINENO" 5 ; }
3376 See \`config.log' for more details" "$LINENO" 5; }
34323377 fi
34333378 fi
34343379 fi
34393384 ac_clean_files=$ac_clean_files_save
34403385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
34413386 $as_echo_n "checking for suffix of object files... " >&6; }
3442 if test "${ac_cv_objext+set}" = set; then :
3387 if ${ac_cv_objext+:} false; then :
34433388 $as_echo_n "(cached) " >&6
34443389 else
34453390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34803425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34813426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34823427 as_fn_error $? "cannot compute suffix of object files: cannot compile
3483 See \`config.log' for more details" "$LINENO" 5 ; }
3428 See \`config.log' for more details" "$LINENO" 5; }
34843429 fi
34853430 rm -f conftest.$ac_cv_objext conftest.$ac_ext
34863431 fi
34903435 ac_objext=$OBJEXT
34913436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
34923437 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3493 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3438 if ${ac_cv_c_compiler_gnu+:} false; then :
34943439 $as_echo_n "(cached) " >&6
34953440 else
34963441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35273472 ac_save_CFLAGS=$CFLAGS
35283473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
35293474 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3530 if test "${ac_cv_prog_cc_g+set}" = set; then :
3475 if ${ac_cv_prog_cc_g+:} false; then :
35313476 $as_echo_n "(cached) " >&6
35323477 else
35333478 ac_save_c_werror_flag=$ac_c_werror_flag
36053550 fi
36063551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
36073552 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3553 if ${ac_cv_prog_cc_c89+:} false; then :
36093554 $as_echo_n "(cached) " >&6
36103555 else
36113556 ac_cv_prog_cc_c89=no
37043649
37053650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
37063651 $as_echo_n "checking dependency style of $depcc... " >&6; }
3707 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3652 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
37083653 $as_echo_n "(cached) " >&6
37093654 else
37103655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
37133658 # instance it was reported that on HP-UX the gcc test will end up
37143659 # making a dummy file named `D' -- because `-MD' means `put the output
37153660 # in D'.
3661 rm -rf conftest.dir
37163662 mkdir conftest.dir
37173663 # Copy depcomp to subdir because otherwise we won't find it if we're
37183664 # using a relative directory.
37723718 break
37733719 fi
37743720 ;;
3775 msvisualcpp | msvcmsys)
3721 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
37763722 # This compiler won't grok `-c -o', but also, the minuso test has
37773723 # not run yet. These depmodes are late enough in the game, and
37783724 # so weak that their functioning should not be impacted.
38293775
38303776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
38313777 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3832 if test "${ac_cv_path_SED+set}" = set; then :
3778 if ${ac_cv_path_SED+:} false; then :
38333779 $as_echo_n "(cached) " >&6
38343780 else
38353781 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
39113857
39123858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
39133859 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3914 if test "${ac_cv_path_GREP+set}" = set; then :
3860 if ${ac_cv_path_GREP+:} false; then :
39153861 $as_echo_n "(cached) " >&6
39163862 else
39173863 if test -z "$GREP"; then
39743920
39753921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
39763922 $as_echo_n "checking for egrep... " >&6; }
3977 if test "${ac_cv_path_EGREP+set}" = set; then :
3923 if ${ac_cv_path_EGREP+:} false; then :
39783924 $as_echo_n "(cached) " >&6
39793925 else
39803926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
40413987
40423988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
40433989 $as_echo_n "checking for fgrep... " >&6; }
4044 if test "${ac_cv_path_FGREP+set}" = set; then :
3990 if ${ac_cv_path_FGREP+:} false; then :
40453991 $as_echo_n "(cached) " >&6
40463992 else
40473993 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
41724118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
41734119 $as_echo_n "checking for non-GNU ld... " >&6; }
41744120 fi
4175 if test "${lt_cv_path_LD+set}" = set; then :
4121 if ${lt_cv_path_LD+:} false; then :
41764122 $as_echo_n "(cached) " >&6
41774123 else
41784124 if test -z "$LD"; then
42124158 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
42134159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
42144160 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4215 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4161 if ${lt_cv_prog_gnu_ld+:} false; then :
42164162 $as_echo_n "(cached) " >&6
42174163 else
42184164 # I'd rather use --version here, but apparently some GNU lds only accept -v.
42394185
42404186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
42414187 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4242 if test "${lt_cv_path_NM+set}" = set; then :
4188 if ${lt_cv_path_NM+:} false; then :
42434189 $as_echo_n "(cached) " >&6
42444190 else
42454191 if test -n "$NM"; then
42924238 NM="$lt_cv_path_NM"
42934239 else
42944240 # Didn't find any BSD compatible name lister, look for dumpbin.
4295 if test -n "$ac_tool_prefix"; then
4296 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4241 if test -n "$DUMPBIN"; then :
4242 # Let the user override the test.
4243 else
4244 if test -n "$ac_tool_prefix"; then
4245 for ac_prog in dumpbin "link -dump"
42974246 do
42984247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
42994248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
43004249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43014250 $as_echo_n "checking for $ac_word... " >&6; }
4302 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4251 if ${ac_cv_prog_DUMPBIN+:} false; then :
43034252 $as_echo_n "(cached) " >&6
43044253 else
43054254 if test -n "$DUMPBIN"; then
43374286 fi
43384287 if test -z "$DUMPBIN"; then
43394288 ac_ct_DUMPBIN=$DUMPBIN
4340 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4289 for ac_prog in dumpbin "link -dump"
43414290 do
43424291 # Extract the first word of "$ac_prog", so it can be a program name with args.
43434292 set dummy $ac_prog; ac_word=$2
43444293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43454294 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4295 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
43474296 $as_echo_n "(cached) " >&6
43484297 else
43494298 if test -n "$ac_ct_DUMPBIN"; then
43924341 fi
43934342 fi
43944343
4344 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4345 *COFF*)
4346 DUMPBIN="$DUMPBIN -symbols"
4347 ;;
4348 *)
4349 DUMPBIN=:
4350 ;;
4351 esac
4352 fi
43954353
43964354 if test "$DUMPBIN" != ":"; then
43974355 NM="$DUMPBIN"
44064364
44074365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
44084366 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4409 if test "${lt_cv_nm_interface+set}" = set; then :
4367 if ${lt_cv_nm_interface+:} false; then :
44104368 $as_echo_n "(cached) " >&6
44114369 else
44124370 lt_cv_nm_interface="BSD nm"
44134371 echo "int some_variable = 0;" > conftest.$ac_ext
4414 (eval echo "\"\$as_me:4415: $ac_compile\"" >&5)
4372 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
44154373 (eval "$ac_compile" 2>conftest.err)
44164374 cat conftest.err >&5
4417 (eval echo "\"\$as_me:4418: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4375 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
44184376 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
44194377 cat conftest.err >&5
4420 (eval echo "\"\$as_me:4421: output\"" >&5)
4378 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
44214379 cat conftest.out >&5
44224380 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
44234381 lt_cv_nm_interface="MS dumpbin"
44414399 # find the maximum length of command line arguments
44424400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
44434401 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4444 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4402 if ${lt_cv_sys_max_cmd_len+:} false; then :
44454403 $as_echo_n "(cached) " >&6
44464404 else
44474405 i=0
44714429 # the test eventually succeeds (with a max line length of 256k).
44724430 # Instead, let's just punt: use the minimum linelength reported by
44734431 # all of the supported platforms: 8192 (on NT/2K/XP).
4432 lt_cv_sys_max_cmd_len=8192;
4433 ;;
4434
4435 mint*)
4436 # On MiNT this can take a long time and run out of memory.
44744437 lt_cv_sys_max_cmd_len=8192;
44754438 ;;
44764439
44974460 interix*)
44984461 # We know the value 262144 and hardcode it with a safety zone (like BSD)
44994462 lt_cv_sys_max_cmd_len=196608
4463 ;;
4464
4465 os2*)
4466 # The test takes a long time on OS/2.
4467 lt_cv_sys_max_cmd_len=8192
45004468 ;;
45014469
45024470 osf*)
45384506 # If test is not a shell built-in, we'll probably end up computing a
45394507 # maximum length that is only half of the actual maximum length, but
45404508 # we can't tell.
4541 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4542 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4509 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4510 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
45434511 test $i != 17 # 1/2 MB should be enough
45444512 do
45454513 i=`expr $i + 1`
45814549 # Try some XSI features
45824550 xsi_shell=no
45834551 ( _lt_dummy="a/b/c"
4584 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4585 = c,a/b,, \
4552 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4553 = c,a/b,b/c, \
45864554 && eval 'test $(( 1 + 1 )) -eq 2 \
45874555 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
45884556 && xsi_shell=yes
46314599
46324600
46334601
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4603 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4604 if ${lt_cv_to_host_file_cmd+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 case $host in
4608 *-*-mingw* )
4609 case $build in
4610 *-*-mingw* ) # actually msys
4611 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4612 ;;
4613 *-*-cygwin* )
4614 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4615 ;;
4616 * ) # otherwise, assume *nix
4617 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4618 ;;
4619 esac
4620 ;;
4621 *-*-cygwin* )
4622 case $build in
4623 *-*-mingw* ) # actually msys
4624 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4625 ;;
4626 *-*-cygwin* )
4627 lt_cv_to_host_file_cmd=func_convert_file_noop
4628 ;;
4629 * ) # otherwise, assume *nix
4630 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4631 ;;
4632 esac
4633 ;;
4634 * ) # unhandled hosts (and "normal" native builds)
4635 lt_cv_to_host_file_cmd=func_convert_file_noop
4636 ;;
4637 esac
4638
4639 fi
4640
4641 to_host_file_cmd=$lt_cv_to_host_file_cmd
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4643 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4644
4645
4646
4647
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4650 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4651 if ${lt_cv_to_tool_file_cmd+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 #assume ordinary cross tools, or native build.
4655 lt_cv_to_tool_file_cmd=func_convert_file_noop
4656 case $host in
4657 *-*-mingw* )
4658 case $build in
4659 *-*-mingw* ) # actually msys
4660 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4661 ;;
4662 esac
4663 ;;
4664 esac
4665
4666 fi
4667
4668 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4670 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4671
4672
4673
4674
4675
46344676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
46354677 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4636 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4678 if ${lt_cv_ld_reload_flag+:} false; then :
46374679 $as_echo_n "(cached) " >&6
46384680 else
46394681 lt_cv_ld_reload_flag='-r'
46474689 esac
46484690 reload_cmds='$LD$reload_flag -o $output$reload_objs'
46494691 case $host_os in
4692 cygwin* | mingw* | pw32* | cegcc*)
4693 if test "$GCC" != yes; then
4694 reload_cmds=false
4695 fi
4696 ;;
46504697 darwin*)
46514698 if test "$GCC" = yes; then
46524699 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
46694716 set dummy ${ac_tool_prefix}objdump; ac_word=$2
46704717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46714718 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4719 if ${ac_cv_prog_OBJDUMP+:} false; then :
46734720 $as_echo_n "(cached) " >&6
46744721 else
46754722 if test -n "$OBJDUMP"; then
47094756 set dummy objdump; ac_word=$2
47104757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47114758 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4759 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
47134760 $as_echo_n "(cached) " >&6
47144761 else
47154762 if test -n "$ac_ct_OBJDUMP"; then
47684815
47694816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
47704817 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4771 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4818 if ${lt_cv_deplibs_check_method+:} false; then :
47724819 $as_echo_n "(cached) " >&6
47734820 else
47744821 lt_cv_file_magic_cmd='$MAGIC_CMD'
48104857 # Base MSYS/MinGW do not provide the 'file' command needed by
48114858 # func_win32_libid shell function, so use a weaker test based on 'objdump',
48124859 # unless we find 'file', for example because we are cross-compiling.
4813 if ( file / ) >/dev/null 2>&1; then
4860 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4861 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
48144862 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
48154863 lt_cv_file_magic_cmd='func_win32_libid'
48164864 else
4817 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4865 # Keep this pattern in sync with the one in func_win32_libid.
4866 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
48184867 lt_cv_file_magic_cmd='$OBJDUMP -f'
48194868 fi
48204869 ;;
48214870
4822 cegcc)
4871 cegcc*)
48234872 # use the weaker test based on 'objdump'. See mingw*.
48244873 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
48254874 lt_cv_file_magic_cmd='$OBJDUMP -f'
48494898 lt_cv_deplibs_check_method=pass_all
48504899 ;;
48514900
4901 haiku*)
4902 lt_cv_deplibs_check_method=pass_all
4903 ;;
4904
48524905 hpux10.20* | hpux11*)
48534906 lt_cv_file_magic_cmd=/usr/bin/file
48544907 case $host_cpu in
48574910 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
48584911 ;;
48594912 hppa*64*)
4860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
48614914 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
48624915 ;;
48634916 *)
4864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
48654918 lt_cv_file_magic_test_file=/usr/lib/libc.sl
48664919 ;;
48674920 esac
48824935 lt_cv_deplibs_check_method=pass_all
48834936 ;;
48844937
4885 # This must be Linux ELF.
4938 # This must be glibc/ELF.
48864939 linux* | k*bsd*-gnu | kopensolaris*-gnu)
48874940 lt_cv_deplibs_check_method=pass_all
48884941 ;;
48894942
4890 netbsd* | netbsdelf*-gnu)
4943 netbsd*)
48914944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
48924945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
48934946 else
49645017 fi
49655018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
49665019 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5020
5021 file_magic_glob=
5022 want_nocaseglob=no
5023 if test "$build" = "$host"; then
5024 case $host_os in
5025 mingw* | pw32*)
5026 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5027 want_nocaseglob=yes
5028 else
5029 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5030 fi
5031 ;;
5032 esac
5033 fi
5034
49675035 file_magic_cmd=$lt_cv_file_magic_cmd
49685036 deplibs_check_method=$lt_cv_deplibs_check_method
49695037 test -z "$deplibs_check_method" && deplibs_check_method=unknown
49795047
49805048
49815049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
49825060 if test -n "$ac_tool_prefix"; then
4983 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4984 set dummy ${ac_tool_prefix}ar; ac_word=$2
5061 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5062 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
49855063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49865064 $as_echo_n "checking for $ac_word... " >&6; }
4987 if test "${ac_cv_prog_AR+set}" = set; then :
5065 if ${ac_cv_prog_DLLTOOL+:} false; then :
49885066 $as_echo_n "(cached) " >&6
49895067 else
4990 if test -n "$AR"; then
4991 ac_cv_prog_AR="$AR" # Let the user override the test.
5068 if test -n "$DLLTOOL"; then
5069 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
49925070 else
49935071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49945072 for as_dir in $PATH
49975075 test -z "$as_dir" && as_dir=.
49985076 for ac_exec_ext in '' $ac_executable_extensions; do
49995077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_prog_AR="${ac_tool_prefix}ar"
5078 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
50015079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
50025080 break 2
50035081 fi
50075085
50085086 fi
50095087 fi
5010 AR=$ac_cv_prog_AR
5011 if test -n "$AR"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5013 $as_echo "$AR" >&6; }
5088 DLLTOOL=$ac_cv_prog_DLLTOOL
5089 if test -n "$DLLTOOL"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5091 $as_echo "$DLLTOOL" >&6; }
50145092 else
50155093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50165094 $as_echo "no" >&6; }
50185096
50195097
50205098 fi
5021 if test -z "$ac_cv_prog_AR"; then
5022 ac_ct_AR=$AR
5023 # Extract the first word of "ar", so it can be a program name with args.
5024 set dummy ar; ac_word=$2
5099 if test -z "$ac_cv_prog_DLLTOOL"; then
5100 ac_ct_DLLTOOL=$DLLTOOL
5101 # Extract the first word of "dlltool", so it can be a program name with args.
5102 set dummy dlltool; ac_word=$2
50255103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
50265104 $as_echo_n "checking for $ac_word... " >&6; }
5027 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5105 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
50285106 $as_echo_n "(cached) " >&6
50295107 else
5030 if test -n "$ac_ct_AR"; then
5031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5108 if test -n "$ac_ct_DLLTOOL"; then
5109 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
50325110 else
50335111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50345112 for as_dir in $PATH
50375115 test -z "$as_dir" && as_dir=.
50385116 for ac_exec_ext in '' $ac_executable_extensions; do
50395117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ac_ct_AR="ar"
5118 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 fi
5127 fi
5128 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5129 if test -n "$ac_ct_DLLTOOL"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5131 $as_echo "$ac_ct_DLLTOOL" >&6; }
5132 else
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5135 fi
5136
5137 if test "x$ac_ct_DLLTOOL" = x; then
5138 DLLTOOL="false"
5139 else
5140 case $cross_compiling:$ac_tool_warned in
5141 yes:)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned=yes ;;
5145 esac
5146 DLLTOOL=$ac_ct_DLLTOOL
5147 fi
5148 else
5149 DLLTOOL="$ac_cv_prog_DLLTOOL"
5150 fi
5151
5152 test -z "$DLLTOOL" && DLLTOOL=dlltool
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5164 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5165 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 lt_cv_sharedlib_from_linklib_cmd='unknown'
5169
5170 case $host_os in
5171 cygwin* | mingw* | pw32* | cegcc*)
5172 # two different shell functions defined in ltmain.sh
5173 # decide which to use based on capabilities of $DLLTOOL
5174 case `$DLLTOOL --help 2>&1` in
5175 *--identify-strict*)
5176 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5177 ;;
5178 *)
5179 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5180 ;;
5181 esac
5182 ;;
5183 *)
5184 # fallback: assume linklib IS sharedlib
5185 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5186 ;;
5187 esac
5188
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5191 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5192 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5193 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5194
5195
5196
5197
5198
5199
5200
5201
5202 if test -n "$ac_tool_prefix"; then
5203 for ac_prog in ar
5204 do
5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_AR+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$AR"; then
5213 ac_cv_prog_AR="$AR" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 AR=$ac_cv_prog_AR
5233 if test -n "$AR"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5235 $as_echo "$AR" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 test -n "$AR" && break
5243 done
5244 fi
5245 if test -z "$AR"; then
5246 ac_ct_AR=$AR
5247 for ac_prog in ar
5248 do
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$ac_ct_AR"; then
5257 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_ac_ct_AR="$ac_prog"
50415267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
50425268 break 2
50435269 fi
50555281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50565282 $as_echo "no" >&6; }
50575283 fi
5284
5285
5286 test -n "$ac_ct_AR" && break
5287 done
50585288
50595289 if test "x$ac_ct_AR" = x; then
50605290 AR="false"
50675297 esac
50685298 AR=$ac_ct_AR
50695299 fi
5070 else
5071 AR="$ac_cv_prog_AR"
5072 fi
5073
5074 test -z "$AR" && AR=ar
5075 test -z "$AR_FLAGS" && AR_FLAGS=cru
5076
5077
5078
5079
5300 fi
5301
5302 : ${AR=ar}
5303 : ${AR_FLAGS=cru}
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5316 $as_echo_n "checking for archiver @FILE support... " >&6; }
5317 if ${lt_cv_ar_at_file+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 lt_cv_ar_at_file=no
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323
5324 int
5325 main ()
5326 {
5327
5328 ;
5329 return 0;
5330 }
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 echo conftest.$ac_objext > conftest.lst
5334 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5336 (eval $lt_ar_try) 2>&5
5337 ac_status=$?
5338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5339 test $ac_status = 0; }
5340 if test "$ac_status" -eq 0; then
5341 # Ensure the archiver fails upon bogus file names.
5342 rm -f conftest.$ac_objext libconftest.a
5343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5344 (eval $lt_ar_try) 2>&5
5345 ac_status=$?
5346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5347 test $ac_status = 0; }
5348 if test "$ac_status" -ne 0; then
5349 lt_cv_ar_at_file=@
5350 fi
5351 fi
5352 rm -f conftest.* libconftest.a
5353
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5359 $as_echo "$lt_cv_ar_at_file" >&6; }
5360
5361 if test "x$lt_cv_ar_at_file" = xno; then
5362 archiver_list_spec=
5363 else
5364 archiver_list_spec=$lt_cv_ar_at_file
5365 fi
50805366
50815367
50825368
50895375 set dummy ${ac_tool_prefix}strip; ac_word=$2
50905376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
50915377 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_STRIP+set}" = set; then :
5378 if ${ac_cv_prog_STRIP+:} false; then :
50935379 $as_echo_n "(cached) " >&6
50945380 else
50955381 if test -n "$STRIP"; then
51295415 set dummy strip; ac_word=$2
51305416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51315417 $as_echo_n "checking for $ac_word... " >&6; }
5132 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5418 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
51335419 $as_echo_n "(cached) " >&6
51345420 else
51355421 if test -n "$ac_ct_STRIP"; then
51885474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
51895475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
51905476 $as_echo_n "checking for $ac_word... " >&6; }
5191 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5477 if ${ac_cv_prog_RANLIB+:} false; then :
51925478 $as_echo_n "(cached) " >&6
51935479 else
51945480 if test -n "$RANLIB"; then
52285514 set dummy ranlib; ac_word=$2
52295515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52305516 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5517 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
52325518 $as_echo_n "(cached) " >&6
52335519 else
52345520 if test -n "$ac_ct_RANLIB"; then
52905576 if test -n "$RANLIB"; then
52915577 case $host_os in
52925578 openbsd*)
5293 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5579 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
52945580 ;;
52955581 *)
5296 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5582 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
52975583 ;;
52985584 esac
5299 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5300 fi
5585 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5586 fi
5587
5588 case $host_os in
5589 darwin*)
5590 lock_old_archive_extraction=yes ;;
5591 *)
5592 lock_old_archive_extraction=no ;;
5593 esac
5594
5595
5596
5597
5598
53015599
53025600
53035601
53455643 # Check for command to grab the raw symbol name followed by C symbol from nm.
53465644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
53475645 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5348 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5646 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
53495647 $as_echo_n "(cached) " >&6
53505648 else
53515649
54065704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
54075705
54085706 # Transform an extracted symbol line into symbol name and symbol address
5409 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5410 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'"
5707 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5708 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'"
54115709
54125710 # Handle CRLF in mingw tool chain
54135711 opt_cr=
54315729 # which start with @ or ?.
54325730 lt_cv_sys_global_symbol_pipe="$AWK '"\
54335731 " {last_section=section; section=\$ 3};"\
5732 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
54345733 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
54355734 " \$ 0!~/External *\|/{next};"\
54365735 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
54435742 else
54445743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
54455744 fi
5745 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
54465746
54475747 # Check to see that the pipe works correctly.
54485748 pipe_works=no
54685768 test $ac_status = 0; }; then
54695769 # Now try to grab the symbols.
54705770 nlist=conftest.nm
5471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5472 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5772 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
54735773 ac_status=$?
54745774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54755775 test $ac_status = 0; } && test -s "$nlist"; then
54845784 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
54855785 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
54865786 cat <<_LT_EOF > conftest.$ac_ext
5787 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5788 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5789 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5790 relocations are performed -- see ld's documentation on pseudo-relocs. */
5791 # define LT_DLSYM_CONST
5792 #elif defined(__osf__)
5793 /* This system does not cope well with relocations in const data. */
5794 # define LT_DLSYM_CONST
5795 #else
5796 # define LT_DLSYM_CONST const
5797 #endif
5798
54875799 #ifdef __cplusplus
54885800 extern "C" {
54895801 #endif
54955807 cat <<_LT_EOF >> conftest.$ac_ext
54965808
54975809 /* The mapping between symbol names and symbols. */
5498 const struct {
5810 LT_DLSYM_CONST struct {
54995811 const char *name;
55005812 void *address;
55015813 }
55215833 _LT_EOF
55225834 # Now try linking the two files.
55235835 mv conftest.$ac_objext conftstm.$ac_objext
5524 lt_save_LIBS="$LIBS"
5525 lt_save_CFLAGS="$CFLAGS"
5836 lt_globsym_save_LIBS=$LIBS
5837 lt_globsym_save_CFLAGS=$CFLAGS
55265838 LIBS="conftstm.$ac_objext"
55275839 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
55285840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
55325844 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
55335845 pipe_works=yes
55345846 fi
5535 LIBS="$lt_save_LIBS"
5536 CFLAGS="$lt_save_CFLAGS"
5847 LIBS=$lt_globsym_save_LIBS
5848 CFLAGS=$lt_globsym_save_CFLAGS
55375849 else
55385850 echo "cannot find nm_test_func in $nlist" >&5
55395851 fi
55705882 $as_echo "ok" >&6; }
55715883 fi
55725884
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5885 # Response file support.
5886 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5887 nm_file_list_spec='@'
5888 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5889 nm_file_list_spec='@'
5890 fi
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5919 $as_echo_n "checking for sysroot... " >&6; }
5920
5921 # Check whether --with-sysroot was given.
5922 if test "${with_sysroot+set}" = set; then :
5923 withval=$with_sysroot;
5924 else
5925 with_sysroot=no
5926 fi
5927
5928
5929 lt_sysroot=
5930 case ${with_sysroot} in #(
5931 yes)
5932 if test "$GCC" = yes; then
5933 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5934 fi
5935 ;; #(
5936 /*)
5937 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5938 ;; #(
5939 no|'')
5940 ;; #(
5941 *)
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5943 $as_echo "${with_sysroot}" >&6; }
5944 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5945 ;;
5946 esac
5947
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5949 $as_echo "${lt_sysroot:-no}" >&6; }
55905950
55915951
55925952
56235983 ;;
56245984 *-*-irix6*)
56255985 # Find out which ABI we are using.
5626 echo '#line 5627 "configure"' > conftest.$ac_ext
5986 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
56275987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
56285988 (eval $ac_compile) 2>&5
56295989 ac_status=$?
57176077 CFLAGS="$CFLAGS -belf"
57186078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
57196079 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5720 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6080 if ${lt_cv_cc_needs_belf+:} false; then :
57216081 $as_echo_n "(cached) " >&6
57226082 else
57236083 ac_ext=c
57586118 CFLAGS="$SAVE_CFLAGS"
57596119 fi
57606120 ;;
5761 sparc*-*solaris*)
6121 *-*solaris*)
57626122 # Find out which ABI we are using.
57636123 echo 'int i;' > conftest.$ac_ext
57646124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
57696129 case `/usr/bin/file conftest.o` in
57706130 *64-bit*)
57716131 case $lt_cv_prog_gnu_ld in
5772 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6132 yes*)
6133 case $host in
6134 i?86-*-solaris*)
6135 LD="${LD-ld} -m elf_x86_64"
6136 ;;
6137 sparc*-*-solaris*)
6138 LD="${LD-ld} -m elf64_sparc"
6139 ;;
6140 esac
6141 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6142 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6143 LD="${LD-ld}_sol2"
6144 fi
6145 ;;
57736146 *)
57746147 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
57756148 LD="${LD-ld} -64"
57856158
57866159 need_locks="$enable_libtool_lock"
57876160
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}mt; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$MANIFEST_TOOL"; then
6170 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6182 fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6190 if test -n "$MANIFEST_TOOL"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6192 $as_echo "$MANIFEST_TOOL" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198
6199 fi
6200 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6201 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6202 # Extract the first word of "mt", so it can be a program name with args.
6203 set dummy mt; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$ac_ct_MANIFEST_TOOL"; then
6210 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6230 if test -n "$ac_ct_MANIFEST_TOOL"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6232 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6239 MANIFEST_TOOL=":"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6248 fi
6249 else
6250 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6251 fi
6252
6253 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6255 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6256 if ${lt_cv_path_mainfest_tool+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 lt_cv_path_mainfest_tool=no
6260 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6261 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6262 cat conftest.err >&5
6263 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6264 lt_cv_path_mainfest_tool=yes
6265 fi
6266 rm -f conftest*
6267 fi
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6269 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6270 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6271 MANIFEST_TOOL=:
6272 fi
6273
6274
6275
6276
6277
57886278
57896279 case $host_os in
57906280 rhapsody* | darwin*)
57936283 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
57946284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
57956285 $as_echo_n "checking for $ac_word... " >&6; }
5796 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6286 if ${ac_cv_prog_DSYMUTIL+:} false; then :
57976287 $as_echo_n "(cached) " >&6
57986288 else
57996289 if test -n "$DSYMUTIL"; then
58336323 set dummy dsymutil; ac_word=$2
58346324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58356325 $as_echo_n "checking for $ac_word... " >&6; }
5836 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6326 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
58376327 $as_echo_n "(cached) " >&6
58386328 else
58396329 if test -n "$ac_ct_DSYMUTIL"; then
58856375 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
58866376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
58876377 $as_echo_n "checking for $ac_word... " >&6; }
5888 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6378 if ${ac_cv_prog_NMEDIT+:} false; then :
58896379 $as_echo_n "(cached) " >&6
58906380 else
58916381 if test -n "$NMEDIT"; then
59256415 set dummy nmedit; ac_word=$2
59266416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59276417 $as_echo_n "checking for $ac_word... " >&6; }
5928 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6418 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
59296419 $as_echo_n "(cached) " >&6
59306420 else
59316421 if test -n "$ac_ct_NMEDIT"; then
59776467 set dummy ${ac_tool_prefix}lipo; ac_word=$2
59786468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59796469 $as_echo_n "checking for $ac_word... " >&6; }
5980 if test "${ac_cv_prog_LIPO+set}" = set; then :
6470 if ${ac_cv_prog_LIPO+:} false; then :
59816471 $as_echo_n "(cached) " >&6
59826472 else
59836473 if test -n "$LIPO"; then
60176507 set dummy lipo; ac_word=$2
60186508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60196509 $as_echo_n "checking for $ac_word... " >&6; }
6020 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6510 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
60216511 $as_echo_n "(cached) " >&6
60226512 else
60236513 if test -n "$ac_ct_LIPO"; then
60696559 set dummy ${ac_tool_prefix}otool; ac_word=$2
60706560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
60716561 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6562 if ${ac_cv_prog_OTOOL+:} false; then :
60736563 $as_echo_n "(cached) " >&6
60746564 else
60756565 if test -n "$OTOOL"; then
61096599 set dummy otool; ac_word=$2
61106600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61116601 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6602 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
61136603 $as_echo_n "(cached) " >&6
61146604 else
61156605 if test -n "$ac_ct_OTOOL"; then
61616651 set dummy ${ac_tool_prefix}otool64; ac_word=$2
61626652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
61636653 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6654 if ${ac_cv_prog_OTOOL64+:} false; then :
61656655 $as_echo_n "(cached) " >&6
61666656 else
61676657 if test -n "$OTOOL64"; then
62016691 set dummy otool64; ac_word=$2
62026692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
62036693 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6694 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
62056695 $as_echo_n "(cached) " >&6
62066696 else
62076697 if test -n "$ac_ct_OTOOL64"; then
62766766
62776767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
62786768 $as_echo_n "checking for -single_module linker flag... " >&6; }
6279 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6769 if ${lt_cv_apple_cc_single_mod+:} false; then :
62806770 $as_echo_n "(cached) " >&6
62816771 else
62826772 lt_cv_apple_cc_single_mod=no
62926782 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
62936783 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
62946784 _lt_result=$?
6295 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6785 # If there is a non-empty error log, and "single_module"
6786 # appears in it, assume the flag caused a linker warning
6787 if test -s conftest.err && $GREP single_module conftest.err; then
6788 cat conftest.err >&5
6789 # Otherwise, if the output was created with a 0 exit code from
6790 # the compiler, it worked.
6791 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
62966792 lt_cv_apple_cc_single_mod=yes
62976793 else
62986794 cat conftest.err >&5
63036799 fi
63046800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
63056801 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6802
63066803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
63076804 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6308 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6805 if ${lt_cv_ld_exported_symbols_list+:} false; then :
63096806 $as_echo_n "(cached) " >&6
63106807 else
63116808 lt_cv_ld_exported_symbols_list=no
63356832 fi
63366833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
63376834 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6837 $as_echo_n "checking for -force_load linker flag... " >&6; }
6838 if ${lt_cv_ld_force_load+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 lt_cv_ld_force_load=no
6842 cat > conftest.c << _LT_EOF
6843 int forced_loaded() { return 2;}
6844 _LT_EOF
6845 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6846 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6847 echo "$AR cru libconftest.a conftest.o" >&5
6848 $AR cru libconftest.a conftest.o 2>&5
6849 echo "$RANLIB libconftest.a" >&5
6850 $RANLIB libconftest.a 2>&5
6851 cat > conftest.c << _LT_EOF
6852 int main() { return 0;}
6853 _LT_EOF
6854 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6855 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6856 _lt_result=$?
6857 if test -s conftest.err && $GREP force_load conftest.err; then
6858 cat conftest.err >&5
6859 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6860 lt_cv_ld_force_load=yes
6861 else
6862 cat conftest.err >&5
6863 fi
6864 rm -f conftest.err libconftest.a conftest conftest.c
6865 rm -rf conftest.dSYM
6866
6867 fi
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6869 $as_echo "$lt_cv_ld_force_load" >&6; }
63386870 case $host_os in
63396871 rhapsody* | darwin1.[012])
63406872 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
63626894 else
63636895 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
63646896 fi
6365 if test "$DSYMUTIL" != ":"; then
6897 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
63666898 _lt_dsymutil='~$DSYMUTIL $lib || :'
63676899 else
63686900 _lt_dsymutil=
63826914 CPP=
63836915 fi
63846916 if test -z "$CPP"; then
6385 if test "${ac_cv_prog_CPP+set}" = set; then :
6917 if ${ac_cv_prog_CPP+:} false; then :
63866918 $as_echo_n "(cached) " >&6
63876919 else
63886920 # Double quotes because CPP needs to be expanded
64987030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
64997031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
65007032 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6501 See \`config.log' for more details" "$LINENO" 5 ; }
7033 See \`config.log' for more details" "$LINENO" 5; }
65027034 fi
65037035
65047036 ac_ext=c
65107042
65117043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
65127044 $as_echo_n "checking for ANSI C header files... " >&6; }
6513 if test "${ac_cv_header_stdc+set}" = set; then :
7045 if ${ac_cv_header_stdc+:} false; then :
65147046 $as_echo_n "(cached) " >&6
65157047 else
65167048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66417173 do :
66427174 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
66437175 "
6644 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7176 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
66457177 cat >>confdefs.h <<_ACEOF
66467178 #define HAVE_DLFCN_H 1
66477179 _ACEOF
66497181 fi
66507182
66517183 done
7184
7185
66527186
66537187
66547188
67277261
67287262 # Check whether --with-pic was given.
67297263 if test "${with_pic+set}" = set; then :
6730 withval=$with_pic; pic_mode="$withval"
7264 withval=$with_pic; lt_p=${PACKAGE-default}
7265 case $withval in
7266 yes|no) pic_mode=$withval ;;
7267 *)
7268 pic_mode=default
7269 # Look at the argument we got. We use all the common list separators.
7270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271 for lt_pkg in $withval; do
7272 IFS="$lt_save_ifs"
7273 if test "X$lt_pkg" = "X$lt_p"; then
7274 pic_mode=yes
7275 fi
7276 done
7277 IFS="$lt_save_ifs"
7278 ;;
7279 esac
67317280 else
67327281 pic_mode=default
67337282 fi
68047353
68057354
68067355
7356
7357
7358
7359
7360
68077361 test -z "$LN_S" && LN_S="ln -s"
68087362
68097363
68257379
68267380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
68277381 $as_echo_n "checking for objdir... " >&6; }
6828 if test "${lt_cv_objdir+set}" = set; then :
7382 if ${lt_cv_objdir+:} false; then :
68297383 $as_echo_n "(cached) " >&6
68307384 else
68317385 rm -f .libs 2>/dev/null
68497403 cat >>confdefs.h <<_ACEOF
68507404 #define LT_OBJDIR "$lt_cv_objdir/"
68517405 _ACEOF
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
68657406
68667407
68677408
68787419 ;;
68797420 esac
68807421
6881 # Sed substitution that helps us do robust quoting. It backslashifies
6882 # metacharacters that are still active within double-quoted strings.
6883 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6884
6885 # Same as above, but do not quote variable references.
6886 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6887
6888 # Sed substitution to delay expansion of an escaped shell variable in a
6889 # double_quote_subst'ed string.
6890 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6891
6892 # Sed substitution to delay expansion of an escaped single quote.
6893 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6894
6895 # Sed substitution to avoid accidental globbing in evaled expressions
6896 no_glob_subst='s/\*/\\\*/g'
6897
68987422 # Global variables:
68997423 ofile=libtool
69007424 can_build_shared=yes
69237447 *) break;;
69247448 esac
69257449 done
6926 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7450 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
69277451
69287452
69297453 # Only perform the check for file, if the check method requires it
69337457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
69347458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
69357459 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6936 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7460 if ${lt_cv_path_MAGIC_CMD+:} false; then :
69377461 $as_echo_n "(cached) " >&6
69387462 else
69397463 case $MAGIC_CMD in
69997523 if test -n "$ac_tool_prefix"; then
70007524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
70017525 $as_echo_n "checking for file... " >&6; }
7002 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
70037527 $as_echo_n "(cached) " >&6
70047528 else
70057529 case $MAGIC_CMD in
71287652 lt_prog_compiler_no_builtin_flag=
71297653
71307654 if test "$GCC" = yes; then
7131 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7655 case $cc_basename in
7656 nvcc*)
7657 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7658 *)
7659 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7660 esac
71327661
71337662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
71347663 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7135 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7664 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
71367665 $as_echo_n "(cached) " >&6
71377666 else
71387667 lt_cv_prog_compiler_rtti_exceptions=no
71487677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
71497678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
71507679 -e 's:$: $lt_compiler_flag:'`
7151 (eval echo "\"\$as_me:7152: $lt_compile\"" >&5)
7680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
71527681 (eval "$lt_compile" 2>conftest.err)
71537682 ac_status=$?
71547683 cat conftest.err >&5
7155 echo "$as_me:7156: \$? = $ac_status" >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71567685 if (exit $ac_status) && test -s "$ac_outfile"; then
71577686 # The compiler can only warn and ignore the option if not recognized
71587687 # So say no if there are warnings other than the usual output.
7159 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7688 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
71607689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
71617690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
71627691 lt_cv_prog_compiler_rtti_exceptions=yes
71857714 lt_prog_compiler_pic=
71867715 lt_prog_compiler_static=
71877716
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7189 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
71907717
71917718 if test "$GCC" = yes; then
71927719 lt_prog_compiler_wl='-Wl,'
72347761 lt_prog_compiler_pic='-fno-common'
72357762 ;;
72367763
7764 haiku*)
7765 # PIC is the default for Haiku.
7766 # The "-static" flag exists, but is broken.
7767 lt_prog_compiler_static=
7768 ;;
7769
72377770 hpux*)
72387771 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
72397772 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
72747807
72757808 *)
72767809 lt_prog_compiler_pic='-fPIC'
7810 ;;
7811 esac
7812
7813 case $cc_basename in
7814 nvcc*) # Cuda Compiler Driver 2.2
7815 lt_prog_compiler_wl='-Xlinker '
7816 if test -n "$lt_prog_compiler_pic"; then
7817 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7818 fi
72777819 ;;
72787820 esac
72797821 else
73387880 lt_prog_compiler_pic='--shared'
73397881 lt_prog_compiler_static='--static'
73407882 ;;
7341 pgcc* | pgf77* | pgf90* | pgf95*)
7883 nagfor*)
7884 # NAG Fortran compiler
7885 lt_prog_compiler_wl='-Wl,-Wl,,'
7886 lt_prog_compiler_pic='-PIC'
7887 lt_prog_compiler_static='-Bstatic'
7888 ;;
7889 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
73427890 # Portland Group compilers (*not* the Pentium gcc compiler,
73437891 # which looks to be a dead project)
73447892 lt_prog_compiler_wl='-Wl,'
73507898 # All Alpha code is PIC.
73517899 lt_prog_compiler_static='-non_shared'
73527900 ;;
7353 xl*)
7354 # IBM XL C 8.0/Fortran 10.1 on PPC
7901 xl* | bgxl* | bgf* | mpixl*)
7902 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
73557903 lt_prog_compiler_wl='-Wl,'
73567904 lt_prog_compiler_pic='-qpic'
73577905 lt_prog_compiler_static='-qstaticlink'
73587906 ;;
73597907 *)
73607908 case `$CC -V 2>&1 | sed 5q` in
7909 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7910 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7911 lt_prog_compiler_pic='-KPIC'
7912 lt_prog_compiler_static='-Bstatic'
7913 lt_prog_compiler_wl=''
7914 ;;
7915 *Sun\ F* | *Sun*Fortran*)
7916 lt_prog_compiler_pic='-KPIC'
7917 lt_prog_compiler_static='-Bstatic'
7918 lt_prog_compiler_wl='-Qoption ld '
7919 ;;
73617920 *Sun\ C*)
73627921 # Sun C 5.9
73637922 lt_prog_compiler_pic='-KPIC'
73647923 lt_prog_compiler_static='-Bstatic'
73657924 lt_prog_compiler_wl='-Wl,'
73667925 ;;
7367 *Sun\ F*)
7368 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7369 lt_prog_compiler_pic='-KPIC'
7926 *Intel*\ [CF]*Compiler*)
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_pic='-fPIC'
7929 lt_prog_compiler_static='-static'
7930 ;;
7931 *Portland\ Group*)
7932 lt_prog_compiler_wl='-Wl,'
7933 lt_prog_compiler_pic='-fpic'
73707934 lt_prog_compiler_static='-Bstatic'
7371 lt_prog_compiler_wl=''
73727935 ;;
73737936 esac
73747937 ;;
74007963 lt_prog_compiler_pic='-KPIC'
74017964 lt_prog_compiler_static='-Bstatic'
74027965 case $cc_basename in
7403 f77* | f90* | f95*)
7966 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
74047967 lt_prog_compiler_wl='-Qoption ld ';;
74057968 *)
74067969 lt_prog_compiler_wl='-Wl,';;
74578020 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
74588021 ;;
74598022 esac
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7461 $as_echo "$lt_prog_compiler_pic" >&6; }
7462
7463
7464
7465
7466
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8026 if ${lt_cv_prog_compiler_pic+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8032 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8033 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
74678034
74688035 #
74698036 # Check to make sure the PIC flag actually works.
74718038 if test -n "$lt_prog_compiler_pic"; then
74728039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
74738040 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7474 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8041 if ${lt_cv_prog_compiler_pic_works+:} false; then :
74758042 $as_echo_n "(cached) " >&6
74768043 else
74778044 lt_cv_prog_compiler_pic_works=no
74878054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
74888055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
74898056 -e 's:$: $lt_compiler_flag:'`
7490 (eval echo "\"\$as_me:7491: $lt_compile\"" >&5)
8057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
74918058 (eval "$lt_compile" 2>conftest.err)
74928059 ac_status=$?
74938060 cat conftest.err >&5
7494 echo "$as_me:7495: \$? = $ac_status" >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
74958062 if (exit $ac_status) && test -s "$ac_outfile"; then
74968063 # The compiler can only warn and ignore the option if not recognized
74978064 # So say no if there are warnings other than the usual output.
7498 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
74998066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
75008067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
75018068 lt_cv_prog_compiler_pic_works=yes
75248091
75258092
75268093
8094
8095
8096
8097
8098
75278099 #
75288100 # Check to make sure the static flag actually works.
75298101 #
75308102 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
75318103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
75328104 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7533 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8105 if ${lt_cv_prog_compiler_static_works+:} false; then :
75348106 $as_echo_n "(cached) " >&6
75358107 else
75368108 lt_cv_prog_compiler_static_works=no
75438115 if test -s conftest.err; then
75448116 # Append any errors to the config.log.
75458117 cat conftest.err 1>&5
7546 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
75478119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
75488120 if diff conftest.exp conftest.er2 >/dev/null; then
75498121 lt_cv_prog_compiler_static_works=yes
75738145
75748146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
75758147 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8148 if ${lt_cv_prog_compiler_c_o+:} false; then :
75778149 $as_echo_n "(cached) " >&6
75788150 else
75798151 lt_cv_prog_compiler_c_o=no
75928164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
75938165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
75948166 -e 's:$: $lt_compiler_flag:'`
7595 (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
8167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
75968168 (eval "$lt_compile" 2>out/conftest.err)
75978169 ac_status=$?
75988170 cat out/conftest.err >&5
7599 echo "$as_me:7600: \$? = $ac_status" >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76008172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
76018173 then
76028174 # The compiler can only warn and ignore the option if not recognized
76038175 # So say no if there are warnings
7604 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
76058177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
76068178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
76078179 lt_cv_prog_compiler_c_o=yes
76288200
76298201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
76308202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7631 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8203 if ${lt_cv_prog_compiler_c_o+:} false; then :
76328204 $as_echo_n "(cached) " >&6
76338205 else
76348206 lt_cv_prog_compiler_c_o=no
76478219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76488220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76498221 -e 's:$: $lt_compiler_flag:'`
7650 (eval echo "\"\$as_me:7651: $lt_compile\"" >&5)
8222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
76518223 (eval "$lt_compile" 2>out/conftest.err)
76528224 ac_status=$?
76538225 cat out/conftest.err >&5
7654 echo "$as_me:7655: \$? = $ac_status" >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
76558227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
76568228 then
76578229 # The compiler can only warn and ignore the option if not recognized
76588230 # So say no if there are warnings
7659 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
76608232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
76618233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
76628234 lt_cv_prog_compiler_c_o=yes
77228294 hardcode_direct=no
77238295 hardcode_direct_absolute=no
77248296 hardcode_libdir_flag_spec=
7725 hardcode_libdir_flag_spec_ld=
77268297 hardcode_libdir_separator=
77278298 hardcode_minus_L=no
77288299 hardcode_shlibpath_var=unsupported
77668337 openbsd*)
77678338 with_gnu_ld=no
77688339 ;;
7769 linux* | k*bsd*-gnu)
7770 link_all_deplibs=no
7771 ;;
77728340 esac
77738341
77748342 ld_shlibs=yes
8343
8344 # On some targets, GNU ld is compatible enough with the native linker
8345 # that we're better off using the native interface for both.
8346 lt_use_gnu_ld_interface=no
77758347 if test "$with_gnu_ld" = yes; then
8348 case $host_os in
8349 aix*)
8350 # The AIX port of GNU ld has always aspired to compatibility
8351 # with the native linker. However, as the warning in the GNU ld
8352 # block says, versions before 2.19.5* couldn't really create working
8353 # shared libraries, regardless of the interface used.
8354 case `$LD -v 2>&1` in
8355 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8356 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8357 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8358 *)
8359 lt_use_gnu_ld_interface=yes
8360 ;;
8361 esac
8362 ;;
8363 *)
8364 lt_use_gnu_ld_interface=yes
8365 ;;
8366 esac
8367 fi
8368
8369 if test "$lt_use_gnu_ld_interface" = yes; then
77768370 # If archive_cmds runs LD, not CC, wlarc should be empty
77778371 wlarc='${wl}'
77788372
78068400 ld_shlibs=no
78078401 cat <<_LT_EOF 1>&2
78088402
7809 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8403 *** Warning: the GNU linker, at least up to release 2.19, is reported
78108404 *** to be unable to reliably create shared libraries on AIX.
78118405 *** Therefore, libtool is disabling shared libraries support. If you
7812 *** really care for shared libraries, you may want to modify your PATH
7813 *** so that a non-GNU linker is found, and then restart.
8406 *** really care for shared libraries, you may want to install binutils
8407 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8408 *** You will then need to restart the configuration process.
78148409
78158410 _LT_EOF
78168411 fi
78468441 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
78478442 # as there is no search path for DLLs.
78488443 hardcode_libdir_flag_spec='-L$libdir'
8444 export_dynamic_flag_spec='${wl}--export-all-symbols'
78498445 allow_undefined_flag=unsupported
78508446 always_export_symbols=no
78518447 enable_shared_with_static_runtimes=yes
7852 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8448 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8449 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
78538450
78548451 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
78558452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
78678464 fi
78688465 ;;
78698466
8467 haiku*)
8468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8469 link_all_deplibs=yes
8470 ;;
8471
78708472 interix[3-9]*)
78718473 hardcode_direct=no
78728474 hardcode_shlibpath_var=no
78928494 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
78938495 && test "$tmp_diet" = no
78948496 then
7895 tmp_addflag=
8497 tmp_addflag=' $pic_flag'
78968498 tmp_sharedflag='-shared'
78978499 case $cc_basename,$host_cpu in
78988500 pgcc*) # Portland Group C compiler
7899 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8501 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'
79008502 tmp_addflag=' $pic_flag'
79018503 ;;
7902 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7903 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8504 pgf77* | pgf90* | pgf95* | pgfortran*)
8505 # Portland Group f77 and f90 compilers
8506 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'
79048507 tmp_addflag=' $pic_flag -Mnomain' ;;
79058508 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
79068509 tmp_addflag=' -i_dynamic' ;;
79118514 lf95*) # Lahey Fortran 8.1
79128515 whole_archive_flag_spec=
79138516 tmp_sharedflag='--shared' ;;
7914 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8517 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
79158518 tmp_sharedflag='-qmkshrobj'
79168519 tmp_addflag= ;;
8520 nvcc*) # Cuda Compiler Driver 2.2
8521 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'
8522 compiler_needs_object=yes
8523 ;;
79178524 esac
79188525 case `$CC -V 2>&1 | sed 5q` in
79198526 *Sun\ C*) # Sun C 5.9
7920 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8527 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'
79218528 compiler_needs_object=yes
79228529 tmp_sharedflag='-G' ;;
79238530 *Sun\ F*) # Sun Fortran 8.3
79338540 fi
79348541
79358542 case $cc_basename in
7936 xlf*)
8543 xlf* | bgf* | bgxlf* | mpixlf*)
79378544 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
79388545 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7939 hardcode_libdir_flag_spec=
7940 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7941 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8547 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
79428548 if test "x$supports_anon_versioning" = xyes; then
79438549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
79448550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
79458551 echo "local: *; };" >> $output_objdir/$libname.ver~
7946 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8552 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
79478553 fi
79488554 ;;
79498555 esac
79528558 fi
79538559 ;;
79548560
7955 netbsd* | netbsdelf*-gnu)
8561 netbsd*)
79568562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
79578563 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
79588564 wlarc=
79598565 else
7960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
79628568 fi
79638569 ;;
79648570
79768582
79778583 _LT_EOF
79788584 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8585 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
79818587 else
79828588 ld_shlibs=no
79838589 fi
80238629
80248630 *)
80258631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
80288634 else
80298635 ld_shlibs=no
80308636 fi
80648670 else
80658671 # If we're using GNU nm, then we don't want the "-C" option.
80668672 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8673 # Also, AIX nm treats weak defined symbols like other global
8674 # defined symbols, whereas GNU nm marks them as "W".
80678675 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8068 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8676 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'
80698677 else
80708678 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'
80718679 fi
81278735 if test "$aix_use_runtimelinking" = yes; then
81288736 shared_flag="$shared_flag "'${wl}-G'
81298737 fi
8130 link_all_deplibs=no
81318738 else
81328739 # not using gcc
81338740 if test "$host_cpu" = ia64; then
81538760 allow_undefined_flag='-berok'
81548761 # Determine the default libpath from the value encoded in an
81558762 # empty executable.
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 if test "${lt_cv_aix_libpath+set}" = set; then
8764 aix_libpath=$lt_cv_aix_libpath
8765 else
8766 if ${lt_cv_aix_libpath_+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81578770 /* end confdefs.h. */
81588771
81598772 int
81668779 _ACEOF
81678780 if ac_fn_c_try_link "$LINENO"; then :
81688781
8169 lt_aix_libpath_sed='
8170 /Import File Strings/,/^$/ {
8171 /^0/ {
8172 s/^0 *\(.*\)$/\1/
8173 p
8174 }
8175 }'
8176 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8177 # Check for a 64-bit object if we didn't find anything.
8178 if test -z "$aix_libpath"; then
8179 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8180 fi
8782 lt_aix_libpath_sed='
8783 /Import File Strings/,/^$/ {
8784 /^0/ {
8785 s/^0 *\([^ ]*\) *$/\1/
8786 p
8787 }
8788 }'
8789 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8790 # Check for a 64-bit object if we didn't find anything.
8791 if test -z "$lt_cv_aix_libpath_"; then
8792 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8793 fi
81818794 fi
81828795 rm -f core conftest.err conftest.$ac_objext \
81838796 conftest$ac_exeext conftest.$ac_ext
8184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8797 if test -z "$lt_cv_aix_libpath_"; then
8798 lt_cv_aix_libpath_="/usr/lib:/lib"
8799 fi
8800
8801 fi
8802
8803 aix_libpath=$lt_cv_aix_libpath_
8804 fi
81858805
81868806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8187 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8807 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"
81888808 else
81898809 if test "$host_cpu" = ia64; then
81908810 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
81938813 else
81948814 # Determine the default libpath from the value encoded in an
81958815 # empty executable.
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 if test "${lt_cv_aix_libpath+set}" = set; then
8817 aix_libpath=$lt_cv_aix_libpath
8818 else
8819 if ${lt_cv_aix_libpath_+:} false; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81978823 /* end confdefs.h. */
81988824
81998825 int
82068832 _ACEOF
82078833 if ac_fn_c_try_link "$LINENO"; then :
82088834
8209 lt_aix_libpath_sed='
8210 /Import File Strings/,/^$/ {
8211 /^0/ {
8212 s/^0 *\(.*\)$/\1/
8213 p
8214 }
8215 }'
8216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8217 # Check for a 64-bit object if we didn't find anything.
8218 if test -z "$aix_libpath"; then
8219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8220 fi
8835 lt_aix_libpath_sed='
8836 /Import File Strings/,/^$/ {
8837 /^0/ {
8838 s/^0 *\([^ ]*\) *$/\1/
8839 p
8840 }
8841 }'
8842 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8843 # Check for a 64-bit object if we didn't find anything.
8844 if test -z "$lt_cv_aix_libpath_"; then
8845 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8846 fi
82218847 fi
82228848 rm -f core conftest.err conftest.$ac_objext \
82238849 conftest$ac_exeext conftest.$ac_ext
8224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8850 if test -z "$lt_cv_aix_libpath_"; then
8851 lt_cv_aix_libpath_="/usr/lib:/lib"
8852 fi
8853
8854 fi
8855
8856 aix_libpath=$lt_cv_aix_libpath_
8857 fi
82258858
82268859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
82278860 # Warning - without using the other run time loading flags,
82288861 # -berok will link without error, but may produce a broken library.
82298862 no_undefined_flag=' ${wl}-bernotok'
82308863 allow_undefined_flag=' ${wl}-berok'
8231 # Exported symbols can be pulled into shared objects from archives
8232 whole_archive_flag_spec='$convenience'
8864 if test "$with_gnu_ld" = yes; then
8865 # We only use this code for GNU lds that support --whole-archive.
8866 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8867 else
8868 # Exported symbols can be pulled into shared objects from archives
8869 whole_archive_flag_spec='$convenience'
8870 fi
82338871 archive_cmds_need_lc=yes
82348872 # This is similar to how AIX traditionally builds its shared libraries.
82358873 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'
82618899 # Microsoft Visual C++.
82628900 # hardcode_libdir_flag_spec is actually meaningless, as there is
82638901 # no search path for DLLs.
8264 hardcode_libdir_flag_spec=' '
8265 allow_undefined_flag=unsupported
8266 # Tell ltmain to make .lib files, not .a files.
8267 libext=lib
8268 # Tell ltmain to make .dll files, not .so files.
8269 shrext_cmds=".dll"
8270 # FIXME: Setting linknames here is a bad hack.
8271 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8272 # The linker will automatically build a .lib file if we build a DLL.
8273 old_archive_from_new_cmds='true'
8274 # FIXME: Should let the user specify the lib program.
8275 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8276 fix_srcfile_path='`cygpath -w "$srcfile"`'
8277 enable_shared_with_static_runtimes=yes
8902 case $cc_basename in
8903 cl*)
8904 # Native MSVC
8905 hardcode_libdir_flag_spec=' '
8906 allow_undefined_flag=unsupported
8907 always_export_symbols=yes
8908 file_list_spec='@'
8909 # Tell ltmain to make .lib files, not .a files.
8910 libext=lib
8911 # Tell ltmain to make .dll files, not .so files.
8912 shrext_cmds=".dll"
8913 # FIXME: Setting linknames here is a bad hack.
8914 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8915 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8916 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8917 else
8918 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8919 fi~
8920 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8921 linknames='
8922 # The linker will not automatically build a static lib if we build a DLL.
8923 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8924 enable_shared_with_static_runtimes=yes
8925 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8927 # Don't use ranlib
8928 old_postinstall_cmds='chmod 644 $oldlib'
8929 postlink_cmds='lt_outputfile="@OUTPUT@"~
8930 lt_tool_outputfile="@TOOL_OUTPUT@"~
8931 case $lt_outputfile in
8932 *.exe|*.EXE) ;;
8933 *)
8934 lt_outputfile="$lt_outputfile.exe"
8935 lt_tool_outputfile="$lt_tool_outputfile.exe"
8936 ;;
8937 esac~
8938 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8939 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8940 $RM "$lt_outputfile.manifest";
8941 fi'
8942 ;;
8943 *)
8944 # Assume MSVC wrapper
8945 hardcode_libdir_flag_spec=' '
8946 allow_undefined_flag=unsupported
8947 # Tell ltmain to make .lib files, not .a files.
8948 libext=lib
8949 # Tell ltmain to make .dll files, not .so files.
8950 shrext_cmds=".dll"
8951 # FIXME: Setting linknames here is a bad hack.
8952 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8953 # The linker will automatically build a .lib file if we build a DLL.
8954 old_archive_from_new_cmds='true'
8955 # FIXME: Should let the user specify the lib program.
8956 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8957 enable_shared_with_static_runtimes=yes
8958 ;;
8959 esac
82788960 ;;
82798961
82808962 darwin* | rhapsody*)
82848966 hardcode_direct=no
82858967 hardcode_automatic=yes
82868968 hardcode_shlibpath_var=unsupported
8287 whole_archive_flag_spec=''
8969 if test "$lt_cv_ld_force_load" = "yes"; then
8970 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\"`'
8971
8972 else
8973 whole_archive_flag_spec=''
8974 fi
82888975 link_all_deplibs=yes
82898976 allow_undefined_flag="$_lt_dar_allow_undefined"
82908977 case $cc_basename in
82928979 *) _lt_dar_can_shared=$GCC ;;
82938980 esac
82948981 if test "$_lt_dar_can_shared" = "yes"; then
8295 output_verbose_link_cmd=echo
8982 output_verbose_link_cmd=func_echo_all
82968983 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
82978984 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
82988985 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}"
83088995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
83098996 hardcode_libdir_flag_spec='-L$libdir'
83108997 hardcode_shlibpath_var=no
8311 ;;
8312
8313 freebsd1*)
8314 ld_shlibs=no
83158998 ;;
83168999
83179000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
83269009 ;;
83279010
83289011 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8329 freebsd2*)
9012 freebsd2.*)
83309013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
83319014 hardcode_direct=yes
83329015 hardcode_minus_L=yes
83359018
83369019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
83379020 freebsd* | dragonfly*)
8338 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
83399022 hardcode_libdir_flag_spec='-R$libdir'
83409023 hardcode_direct=yes
83419024 hardcode_shlibpath_var=no
83439026
83449027 hpux9*)
83459028 if test "$GCC" = yes; then
8346 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9029 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'
83479030 else
83489031 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'
83499032 fi
83589041 ;;
83599042
83609043 hpux10*)
8361 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8362 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9044 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9045 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
83639046 else
83649047 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
83659048 fi
83669049 if test "$with_gnu_ld" = no; then
83679050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8368 hardcode_libdir_flag_spec_ld='+b $libdir'
83699051 hardcode_libdir_separator=:
83709052 hardcode_direct=yes
83719053 hardcode_direct_absolute=yes
83779059 ;;
83789060
83799061 hpux11*)
8380 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9062 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
83819063 case $host_cpu in
83829064 hppa*64*)
83839065 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
83849066 ;;
83859067 ia64*)
8386 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9068 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
83879069 ;;
83889070 *)
8389 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9071 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
83909072 ;;
83919073 esac
83929074 else
83989080 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
83999081 ;;
84009082 *)
8401 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9083
9084 # Older versions of the 11.00 compiler do not understand -b yet
9085 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9087 $as_echo_n "checking if $CC understands -b... " >&6; }
9088 if ${lt_cv_prog_compiler__b+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 lt_cv_prog_compiler__b=no
9092 save_LDFLAGS="$LDFLAGS"
9093 LDFLAGS="$LDFLAGS -b"
9094 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9096 # The linker can only warn and ignore the option if not recognized
9097 # So say no if there are warnings
9098 if test -s conftest.err; then
9099 # Append any errors to the config.log.
9100 cat conftest.err 1>&5
9101 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9103 if diff conftest.exp conftest.er2 >/dev/null; then
9104 lt_cv_prog_compiler__b=yes
9105 fi
9106 else
9107 lt_cv_prog_compiler__b=yes
9108 fi
9109 fi
9110 $RM -r conftest*
9111 LDFLAGS="$save_LDFLAGS"
9112
9113 fi
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9115 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9116
9117 if test x"$lt_cv_prog_compiler__b" = xyes; then
9118 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9119 else
9120 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9121 fi
9122
84029123 ;;
84039124 esac
84049125 fi
84269147
84279148 irix5* | irix6* | nonstopux*)
84289149 if test "$GCC" = yes; then
8429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9150 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'
84309151 # Try to use the -exported_symbol ld option, if it does not
84319152 # work, assume that -exports_file does not work either and
84329153 # implicitly export all symbols.
8433 save_LDFLAGS="$LDFLAGS"
8434 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 # This should be the same for all languages, so no per-tag cache variable.
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9156 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9157 if ${lt_cv_irix_exported_symbol+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 save_LDFLAGS="$LDFLAGS"
9161 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84369163 /* end confdefs.h. */
8437 int foo(void) {}
9164 int foo (void) { return 0; }
84389165 _ACEOF
84399166 if ac_fn_c_try_link "$LINENO"; then :
8440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8441
9167 lt_cv_irix_exported_symbol=yes
9168 else
9169 lt_cv_irix_exported_symbol=no
84429170 fi
84439171 rm -f core conftest.err conftest.$ac_objext \
84449172 conftest$ac_exeext conftest.$ac_ext
8445 LDFLAGS="$save_LDFLAGS"
9173 LDFLAGS="$save_LDFLAGS"
9174 fi
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9176 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9177 if test "$lt_cv_irix_exported_symbol" = yes; then
9178 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'
9179 fi
84469180 else
8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9181 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'
9182 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'
84499183 fi
84509184 archive_cmds_need_lc='no'
84519185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
84549188 link_all_deplibs=yes
84559189 ;;
84569190
8457 netbsd* | netbsdelf*-gnu)
9191 netbsd*)
84589192 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
84599193 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
84609194 else
85079241 hardcode_libdir_flag_spec='-L$libdir'
85089242 hardcode_minus_L=yes
85099243 allow_undefined_flag=unsupported
8510 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'
9244 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'
85119245 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
85129246 ;;
85139247
85149248 osf3*)
85159249 if test "$GCC" = yes; then
85169250 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8517 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9251 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'
85189252 else
85199253 allow_undefined_flag=' -expect_unresolved \*'
8520 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9254 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'
85219255 fi
85229256 archive_cmds_need_lc='no'
85239257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
85279261 osf4* | osf5*) # as osf3* with the addition of -msym flag
85289262 if test "$GCC" = yes; then
85299263 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8530 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9264 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'
85319265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
85329266 else
85339267 allow_undefined_flag=' -expect_unresolved \*'
8534 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9268 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'
85359269 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~
8536 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9270 $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'
85379271
85389272 # Both c and cxx compiler support -rpath directly
85399273 hardcode_libdir_flag_spec='-rpath $libdir'
85469280 no_undefined_flag=' -z defs'
85479281 if test "$GCC" = yes; then
85489282 wlarc='${wl}'
8549 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9283 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
85509284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8551 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9285 $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'
85529286 else
85539287 case `$CC -V 2>&1` in
85549288 *"Compilers 5.0"*)
87369470 # to ld, don't add -lc before -lgcc.
87379471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
87389472 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8739 $RM conftest*
8740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8741
8742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9473 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 $RM conftest*
9477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478
9479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
87439480 (eval $ac_compile) 2>&5
87449481 ac_status=$?
87459482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87469483 test $ac_status = 0; } 2>conftest.err; then
8747 soname=conftest
8748 lib=conftest
8749 libobjs=conftest.$ac_objext
8750 deplibs=
8751 wl=$lt_prog_compiler_wl
8752 pic_flag=$lt_prog_compiler_pic
8753 compiler_flags=-v
8754 linker_flags=-v
8755 verstring=
8756 output_objdir=.
8757 libname=conftest
8758 lt_save_allow_undefined_flag=$allow_undefined_flag
8759 allow_undefined_flag=
8760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9484 soname=conftest
9485 lib=conftest
9486 libobjs=conftest.$ac_objext
9487 deplibs=
9488 wl=$lt_prog_compiler_wl
9489 pic_flag=$lt_prog_compiler_pic
9490 compiler_flags=-v
9491 linker_flags=-v
9492 verstring=
9493 output_objdir=.
9494 libname=conftest
9495 lt_save_allow_undefined_flag=$allow_undefined_flag
9496 allow_undefined_flag=
9497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
87619498 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
87629499 ac_status=$?
87639500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87649501 test $ac_status = 0; }
8765 then
8766 archive_cmds_need_lc=no
8767 else
8768 archive_cmds_need_lc=yes
8769 fi
8770 allow_undefined_flag=$lt_save_allow_undefined_flag
8771 else
8772 cat conftest.err 1>&5
8773 fi
8774 $RM conftest*
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8776 $as_echo "$archive_cmds_need_lc" >&6; }
9502 then
9503 lt_cv_archive_cmds_need_lc=no
9504 else
9505 lt_cv_archive_cmds_need_lc=yes
9506 fi
9507 allow_undefined_flag=$lt_save_allow_undefined_flag
9508 else
9509 cat conftest.err 1>&5
9510 fi
9511 $RM conftest*
9512
9513 fi
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9515 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9516 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
87779517 ;;
87789518 esac
87799519 fi
87809520 ;;
87819521 esac
8782
8783
8784
8785
8786
87879522
87889523
87899524
89449679 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
89459680 *) lt_awk_arg="/^libraries:/" ;;
89469681 esac
8947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8948 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9682 case $host_os in
9683 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9684 *) lt_sed_strip_eq="s,=/,/,g" ;;
9685 esac
9686 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9687 case $lt_search_path_spec in
9688 *\;*)
89499689 # if the path contains ";" then we assume it to be the separator
89509690 # otherwise default to the standard path separator (i.e. ":") - it is
89519691 # assumed that no part of a normal pathname contains ";" but that should
89529692 # okay in the real world where ";" in dirpaths is itself problematic.
8953 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8954 else
8955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8956 fi
9693 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9694 ;;
9695 *)
9696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9697 ;;
9698 esac
89579699 # Ok, now we have the path, separated by spaces, we can step through it
89589700 # and add multilib dir if necessary.
89599701 lt_tmp_lt_search_path_spec=
89669708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
89679709 fi
89689710 done
8969 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9711 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
89709712 BEGIN {RS=" "; FS="/|\n";} {
89719713 lt_foo="";
89729714 lt_count=0;
89869728 if (lt_foo != "") { lt_freq[lt_foo]++; }
89879729 if (lt_freq[lt_foo] == 1) { print lt_foo; }
89889730 }'`
8989 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9731 # AWK program above erroneously prepends '/' to C:/dos/paths
9732 # for these hosts.
9733 case $host_os in
9734 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9735 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9736 esac
9737 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
89909738 else
89919739 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
89929740 fi
90129760
90139761 case $host_os in
90149762 aix3*)
9015 version_type=linux
9763 version_type=linux # correct to gnu/linux during the next big refactor
90169764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
90179765 shlibpath_var=LIBPATH
90189766
90219769 ;;
90229770
90239771 aix[4-9]*)
9024 version_type=linux
9772 version_type=linux # correct to gnu/linux during the next big refactor
90259773 need_lib_prefix=no
90269774 need_version=no
90279775 hardcode_into_libs=yes
90749822 m68k)
90759823 library_names_spec='$libname.ixlibrary $libname.a'
90769824 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9077 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9825 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'
90789826 ;;
90799827 esac
90809828 ;;
90869834 ;;
90879835
90889836 bsdi[45]*)
9089 version_type=linux
9837 version_type=linux # correct to gnu/linux during the next big refactor
90909838 need_version=no
90919839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
90929840 soname_spec='${libname}${release}${shared_ext}$major'
91059853 need_version=no
91069854 need_lib_prefix=no
91079855
9108 case $GCC,$host_os in
9109 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9856 case $GCC,$cc_basename in
9857 yes,*)
9858 # gcc
91109859 library_names_spec='$libname.dll.a'
91119860 # DLL is installed to $(libdir)/../bin by postinstall_cmds
91129861 postinstall_cmds='base_file=`basename \${file}`~
91279876 cygwin*)
91289877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
91299878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9879
9880 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
91319881 ;;
91329882 mingw* | cegcc*)
91339883 # MinGW DLLs use traditional 'lib' prefix
91349884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9135 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9136 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9137 # It is most probably a Windows format PATH printed by
9138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9139 # path with ; separators, and with drive letters. We can handle the
9140 # drive letters (cygwin fileutils understands them), so leave them,
9141 # especially as we might pass files found there to a mingw objdump,
9142 # which wouldn't understand a cygwinified path. Ahh.
9143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9144 else
9145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9146 fi
91479885 ;;
91489886 pw32*)
91499887 # pw32 DLLs use 'pw' prefix rather than 'lib'
91509888 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
91519889 ;;
91529890 esac
9891 dynamic_linker='Win32 ld.exe'
91539892 ;;
91549893
9894 *,cl*)
9895 # Native MSVC
9896 libname_spec='$name'
9897 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9898 library_names_spec='${libname}.dll.lib'
9899
9900 case $build_os in
9901 mingw*)
9902 sys_lib_search_path_spec=
9903 lt_save_ifs=$IFS
9904 IFS=';'
9905 for lt_path in $LIB
9906 do
9907 IFS=$lt_save_ifs
9908 # Let DOS variable expansion print the short 8.3 style file name.
9909 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9910 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9911 done
9912 IFS=$lt_save_ifs
9913 # Convert to MSYS style.
9914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9915 ;;
9916 cygwin*)
9917 # Convert to unix form, then to dos form, then back to unix form
9918 # but this time dos style (no spaces!) so that the unix form looks
9919 # like /cygdrive/c/PROGRA~1:/cygdr...
9920 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9921 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9922 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9923 ;;
9924 *)
9925 sys_lib_search_path_spec="$LIB"
9926 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9927 # It is most probably a Windows format PATH.
9928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9929 else
9930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9931 fi
9932 # FIXME: find the short name or the path components, as spaces are
9933 # common. (e.g. "Program Files" -> "PROGRA~1")
9934 ;;
9935 esac
9936
9937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9938 postinstall_cmds='base_file=`basename \${file}`~
9939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9940 dldir=$destdir/`dirname \$dlpath`~
9941 test -d \$dldir || mkdir -p \$dldir~
9942 $install_prog $dir/$dlname \$dldir/$dlname'
9943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9944 dlpath=$dir/\$dldll~
9945 $RM \$dlpath'
9946 shlibpath_overrides_runpath=yes
9947 dynamic_linker='Win32 link.exe'
9948 ;;
9949
91559950 *)
9951 # Assume MSVC wrapper
91569952 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9953 dynamic_linker='Win32 ld.exe'
91579954 ;;
91589955 esac
9159 dynamic_linker='Win32 ld.exe'
91609956 # FIXME: first we should search . and the directory the executable is in
91619957 shlibpath_var=PATH
91629958 ;;
91779973 ;;
91789974
91799975 dgux*)
9180 version_type=linux
9976 version_type=linux # correct to gnu/linux during the next big refactor
91819977 need_lib_prefix=no
91829978 need_version=no
91839979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
91849980 soname_spec='${libname}${release}${shared_ext}$major'
91859981 shlibpath_var=LD_LIBRARY_PATH
9186 ;;
9187
9188 freebsd1*)
9189 dynamic_linker=no
91909982 ;;
91919983
91929984 freebsd* | dragonfly*)
91969988 objformat=`/usr/bin/objformat`
91979989 else
91989990 case $host_os in
9199 freebsd[123]*) objformat=aout ;;
9991 freebsd[23].*) objformat=aout ;;
92009992 *) objformat=elf ;;
92019993 esac
92029994 fi
921410006 esac
921510007 shlibpath_var=LD_LIBRARY_PATH
921610008 case $host_os in
9217 freebsd2*)
10009 freebsd2.*)
921810010 shlibpath_overrides_runpath=yes
921910011 ;;
922010012 freebsd3.[01]* | freebsdelf3.[01]*)
923410026 ;;
923510027
923610028 gnu*)
9237 version_type=linux
10029 version_type=linux # correct to gnu/linux during the next big refactor
923810030 need_lib_prefix=no
923910031 need_version=no
924010032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
924110033 soname_spec='${libname}${release}${shared_ext}$major'
924210034 shlibpath_var=LD_LIBRARY_PATH
10035 shlibpath_overrides_runpath=no
10036 hardcode_into_libs=yes
10037 ;;
10038
10039 haiku*)
10040 version_type=linux # correct to gnu/linux during the next big refactor
10041 need_lib_prefix=no
10042 need_version=no
10043 dynamic_linker="$host_os runtime_loader"
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LIBRARY_PATH
10047 shlibpath_overrides_runpath=yes
10048 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
924310049 hardcode_into_libs=yes
924410050 ;;
924510051
928510091 soname_spec='${libname}${release}${shared_ext}$major'
928610092 ;;
928710093 esac
9288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10094 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
928910095 postinstall_cmds='chmod 555 $lib'
10096 # or fails outright, so override atomically:
10097 install_override_mode=555
929010098 ;;
929110099
929210100 interix[3-9]*)
9293 version_type=linux
10101 version_type=linux # correct to gnu/linux during the next big refactor
929410102 need_lib_prefix=no
929510103 need_version=no
929610104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
930610114 nonstopux*) version_type=nonstopux ;;
930710115 *)
930810116 if test "$lt_cv_prog_gnu_ld" = yes; then
9309 version_type=linux
10117 version_type=linux # correct to gnu/linux during the next big refactor
931010118 else
931110119 version_type=irix
931210120 fi ;;
934310151 dynamic_linker=no
934410152 ;;
934510153
9346 # This must be Linux ELF.
10154 # This must be glibc/ELF.
934710155 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9348 version_type=linux
10156 version_type=linux # correct to gnu/linux during the next big refactor
934910157 need_lib_prefix=no
935010158 need_version=no
935110159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
935310161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
935410162 shlibpath_var=LD_LIBRARY_PATH
935510163 shlibpath_overrides_runpath=no
10164
935610165 # Some binutils ld are patched to set DT_RUNPATH
9357 save_LDFLAGS=$LDFLAGS
9358 save_libdir=$libdir
9359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 lt_cv_shlibpath_overrides_runpath=no
10170 save_LDFLAGS=$LDFLAGS
10171 save_libdir=$libdir
10172 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10173 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
936210175 /* end confdefs.h. */
936310176
936410177 int
937110184 _ACEOF
937210185 if ac_fn_c_try_link "$LINENO"; then :
937310186 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9374 shlibpath_overrides_runpath=yes
10187 lt_cv_shlibpath_overrides_runpath=yes
937510188 fi
937610189 fi
937710190 rm -f core conftest.err conftest.$ac_objext \
937810191 conftest$ac_exeext conftest.$ac_ext
9379 LDFLAGS=$save_LDFLAGS
9380 libdir=$save_libdir
10192 LDFLAGS=$save_LDFLAGS
10193 libdir=$save_libdir
10194
10195 fi
10196
10197 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
938110198
938210199 # This implies no fast_install, which is unacceptable.
938310200 # Some rework will be needed to allow for fast_install
938610203
938710204 # Append ld.so.conf contents to the search path
938810205 if test -f /etc/ld.so.conf; then
9389 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10206 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' ' '`
939010207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
939110208 fi
939210209
939710214 # people can always --disable-shared, the test was removed, and we
939810215 # assume the GNU/Linux dynamic linker is in use.
939910216 dynamic_linker='GNU/Linux ld.so'
9400 ;;
9401
9402 netbsdelf*-gnu)
9403 version_type=linux
9404 need_lib_prefix=no
9405 need_version=no
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9407 soname_spec='${libname}${release}${shared_ext}$major'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 shlibpath_overrides_runpath=no
9410 hardcode_into_libs=yes
9411 dynamic_linker='NetBSD ld.elf_so'
941210217 ;;
941310218
941410219 netbsd*)
943010235 ;;
943110236
943210237 newsos6)
9433 version_type=linux
10238 version_type=linux # correct to gnu/linux during the next big refactor
943410239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
943510240 shlibpath_var=LD_LIBRARY_PATH
943610241 shlibpath_overrides_runpath=yes
949910304 ;;
950010305
950110306 solaris*)
9502 version_type=linux
10307 version_type=linux # correct to gnu/linux during the next big refactor
950310308 need_lib_prefix=no
950410309 need_version=no
950510310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
952410329 ;;
952510330
952610331 sysv4 | sysv4.3*)
9527 version_type=linux
10332 version_type=linux # correct to gnu/linux during the next big refactor
952810333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
952910334 soname_spec='${libname}${release}${shared_ext}$major'
953010335 shlibpath_var=LD_LIBRARY_PATH
954810353
954910354 sysv4*MP*)
955010355 if test -d /usr/nec ;then
9551 version_type=linux
10356 version_type=linux # correct to gnu/linux during the next big refactor
955210357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
955310358 soname_spec='$libname${shared_ext}.$major'
955410359 shlibpath_var=LD_LIBRARY_PATH
957910384
958010385 tpf*)
958110386 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9582 version_type=linux
10387 version_type=linux # correct to gnu/linux during the next big refactor
958310388 need_lib_prefix=no
958410389 need_version=no
958510390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
958910394 ;;
959010395
959110396 uts4*)
9592 version_type=linux
10397 version_type=linux # correct to gnu/linux during the next big refactor
959310398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
959410399 soname_spec='${libname}${release}${shared_ext}$major'
959510400 shlibpath_var=LD_LIBRARY_PATH
961410419 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
961510420 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
961610421 fi
10422
10423
10424
10425
10426
961710427
961810428
961910429
977310583 # if libdl is installed we need to link against it
977410584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
977510585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9776 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10586 if ${ac_cv_lib_dl_dlopen+:} false; then :
977710587 $as_echo_n "(cached) " >&6
977810588 else
977910589 ac_check_lib_save_LIBS=$LIBS
980710617 fi
980810618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
980910619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9810 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10620 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
981110621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
981210622 else
981310623
982110631
982210632 *)
982310633 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9824 if test "x$ac_cv_func_shl_load" = x""yes; then :
10634 if test "x$ac_cv_func_shl_load" = xyes; then :
982510635 lt_cv_dlopen="shl_load"
982610636 else
982710637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
982810638 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9829 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10639 if ${ac_cv_lib_dld_shl_load+:} false; then :
983010640 $as_echo_n "(cached) " >&6
983110641 else
983210642 ac_check_lib_save_LIBS=$LIBS
986010670 fi
986110671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
986210672 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9863 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10673 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
986410674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
986510675 else
986610676 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9867 if test "x$ac_cv_func_dlopen" = x""yes; then :
10677 if test "x$ac_cv_func_dlopen" = xyes; then :
986810678 lt_cv_dlopen="dlopen"
986910679 else
987010680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
987110681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9872 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10682 if ${ac_cv_lib_dl_dlopen+:} false; then :
987310683 $as_echo_n "(cached) " >&6
987410684 else
987510685 ac_check_lib_save_LIBS=$LIBS
990310713 fi
990410714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
990510715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9906 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10716 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
990710717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
990810718 else
990910719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
991010720 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9911 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10721 if ${ac_cv_lib_svld_dlopen+:} false; then :
991210722 $as_echo_n "(cached) " >&6
991310723 else
991410724 ac_check_lib_save_LIBS=$LIBS
994210752 fi
994310753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
994410754 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9945 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10755 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
994610756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
994710757 else
994810758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
994910759 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9950 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10760 if ${ac_cv_lib_dld_dld_link+:} false; then :
995110761 $as_echo_n "(cached) " >&6
995210762 else
995310763 ac_check_lib_save_LIBS=$LIBS
998110791 fi
998210792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
998310793 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9984 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10794 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
998510795 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
998610796 fi
998710797
1002210832
1002310833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1002410834 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10025 if test "${lt_cv_dlopen_self+set}" = set; then :
10835 if ${lt_cv_dlopen_self+:} false; then :
1002610836 $as_echo_n "(cached) " >&6
1002710837 else
1002810838 if test "$cross_compiling" = yes; then :
1003110841 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1003210842 lt_status=$lt_dlunknown
1003310843 cat > conftest.$ac_ext <<_LT_EOF
10034 #line 10035 "configure"
10844 #line $LINENO "configure"
1003510845 #include "confdefs.h"
1003610846
1003710847 #if HAVE_DLFCN_H
1007210882 # endif
1007310883 #endif
1007410884
10075 void fnord() { int i=42;}
10885 /* When -fvisbility=hidden is used, assume the code has been annotated
10886 correspondingly for the symbols needed. */
10887 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10888 int fnord () __attribute__((visibility("default")));
10889 #endif
10890
10891 int fnord () { return 42; }
1007610892 int main ()
1007710893 {
1007810894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1008110897 if (self)
1008210898 {
1008310899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10084 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10900 else
10901 {
10902 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10903 else puts (dlerror ());
10904 }
1008510905 /* dlclose (self); */
1008610906 }
1008710907 else
1011810938 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1011910939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1012010940 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10121 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10941 if ${lt_cv_dlopen_self_static+:} false; then :
1012210942 $as_echo_n "(cached) " >&6
1012310943 else
1012410944 if test "$cross_compiling" = yes; then :
1012710947 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1012810948 lt_status=$lt_dlunknown
1012910949 cat > conftest.$ac_ext <<_LT_EOF
10130 #line 10131 "configure"
10950 #line $LINENO "configure"
1013110951 #include "confdefs.h"
1013210952
1013310953 #if HAVE_DLFCN_H
1016810988 # endif
1016910989 #endif
1017010990
10171 void fnord() { int i=42;}
10991 /* When -fvisbility=hidden is used, assume the code has been annotated
10992 correspondingly for the symbols needed. */
10993 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10994 int fnord () __attribute__((visibility("default")));
10995 #endif
10996
10997 int fnord () { return 42; }
1017210998 int main ()
1017310999 {
1017411000 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1017711003 if (self)
1017811004 {
1017911005 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11006 else
11007 {
11008 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11009 else puts (dlerror ());
11010 }
1018111011 /* dlclose (self); */
1018211012 }
1018311013 else
1034611176
1034711177
1034811178
11179
11180
1034911181 ac_config_commands="$ac_config_commands libtool"
1035011182
1035111183
1036611198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1036711199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1036811200 $as_echo_n "checking for $ac_word... " >&6; }
10369 if test "${ac_cv_prog_CC+set}" = set; then :
11201 if ${ac_cv_prog_CC+:} false; then :
1037011202 $as_echo_n "(cached) " >&6
1037111203 else
1037211204 if test -n "$CC"; then
1040611238 set dummy gcc; ac_word=$2
1040711239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1040811240 $as_echo_n "checking for $ac_word... " >&6; }
10409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1041011242 $as_echo_n "(cached) " >&6
1041111243 else
1041211244 if test -n "$ac_ct_CC"; then
1045911291 set dummy ${ac_tool_prefix}cc; ac_word=$2
1046011292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1046111293 $as_echo_n "checking for $ac_word... " >&6; }
10462 if test "${ac_cv_prog_CC+set}" = set; then :
11294 if ${ac_cv_prog_CC+:} false; then :
1046311295 $as_echo_n "(cached) " >&6
1046411296 else
1046511297 if test -n "$CC"; then
1049911331 set dummy cc; ac_word=$2
1050011332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1050111333 $as_echo_n "checking for $ac_word... " >&6; }
10502 if test "${ac_cv_prog_CC+set}" = set; then :
11334 if ${ac_cv_prog_CC+:} false; then :
1050311335 $as_echo_n "(cached) " >&6
1050411336 else
1050511337 if test -n "$CC"; then
1055811390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1055911391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1056011392 $as_echo_n "checking for $ac_word... " >&6; }
10561 if test "${ac_cv_prog_CC+set}" = set; then :
11393 if ${ac_cv_prog_CC+:} false; then :
1056211394 $as_echo_n "(cached) " >&6
1056311395 else
1056411396 if test -n "$CC"; then
1060211434 set dummy $ac_prog; ac_word=$2
1060311435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1060411436 $as_echo_n "checking for $ac_word... " >&6; }
10605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11437 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1060611438 $as_echo_n "(cached) " >&6
1060711439 else
1060811440 if test -n "$ac_ct_CC"; then
1065711489 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1065811490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1065911491 as_fn_error $? "no acceptable C compiler found in \$PATH
10660 See \`config.log' for more details" "$LINENO" 5 ; }
11492 See \`config.log' for more details" "$LINENO" 5; }
1066111493
1066211494 # Provide some information about the compiler.
1066311495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1068611518
1068711519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
1068811520 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10689 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11521 if ${ac_cv_c_compiler_gnu+:} false; then :
1069011522 $as_echo_n "(cached) " >&6
1069111523 else
1069211524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1072311555 ac_save_CFLAGS=$CFLAGS
1072411556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
1072511557 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10726 if test "${ac_cv_prog_cc_g+set}" = set; then :
11558 if ${ac_cv_prog_cc_g+:} false; then :
1072711559 $as_echo_n "(cached) " >&6
1072811560 else
1072911561 ac_save_c_werror_flag=$ac_c_werror_flag
1080111633 fi
1080211634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
1080311635 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10804 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11636 if ${ac_cv_prog_cc_c89+:} false; then :
1080511637 $as_echo_n "(cached) " >&6
1080611638 else
1080711639 ac_cv_prog_cc_c89=no
1090011732
1090111733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
1090211734 $as_echo_n "checking dependency style of $depcc... " >&6; }
10903 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11735 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1090411736 $as_echo_n "(cached) " >&6
1090511737 else
1090611738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1090911741 # instance it was reported that on HP-UX the gcc test will end up
1091011742 # making a dummy file named `D' -- because `-MD' means `put the output
1091111743 # in D'.
11744 rm -rf conftest.dir
1091211745 mkdir conftest.dir
1091311746 # Copy depcomp to subdir because otherwise we won't find it if we're
1091411747 # using a relative directory.
1096811801 break
1096911802 fi
1097011803 ;;
10971 msvisualcpp | msvcmsys)
11804 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1097211805 # This compiler won't grok `-c -o', but also, the minuso test has
1097311806 # not run yet. These depmodes are late enough in the game, and
1097411807 # so weak that their functioning should not be impacted.
1109111924 :end' >>confcache
1109211925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1109311926 if test -w "$cache_file"; then
11094 test "x$cache_file" != "x/dev/null" &&
11927 if test "x$cache_file" != "x/dev/null"; then
1109511928 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1109611929 $as_echo "$as_me: updating cache $cache_file" >&6;}
11097 cat confcache >$cache_file
11930 if test ! -f "$cache_file" || test -h "$cache_file"; then
11931 cat confcache >"$cache_file"
11932 else
11933 case $cache_file in #(
11934 */* | ?:*)
11935 mv -f confcache "$cache_file"$$ &&
11936 mv -f "$cache_file"$$ "$cache_file" ;; #(
11937 *)
11938 mv -f confcache "$cache_file" ;;
11939 esac
11940 fi
11941 fi
1109811942 else
1109911943 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1110011944 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1115011994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1115111995 fi
1115211996
11153 : ${CONFIG_STATUS=./config.status}
11997 : "${CONFIG_STATUS=./config.status}"
1115411998 ac_write_fail=0
1115511999 ac_clean_files_save=$ac_clean_files
1115612000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1125112095 IFS=" "" $as_nl"
1125212096
1125312097 # Find who we are. Look in the path if we contain no directory separator.
12098 as_myself=
1125412099 case $0 in #((
1125512100 *[\\/]* ) as_myself=$0 ;;
1125612101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1155712402 # report actual input values of CONFIG_FILES etc. instead of their
1155812403 # values after options handling.
1155912404 ac_log="
11560 This file was extended by Multitouch Protocol Translation Library $as_me 1.1.0, which was
11561 generated by GNU Autoconf 2.67. Invocation command line was
12405 This file was extended by Multitouch Protocol Translation Library $as_me 1.1.2, which was
12406 generated by GNU Autoconf 2.68. Invocation command line was
1156212407
1156312408 CONFIG_FILES = $CONFIG_FILES
1156412409 CONFIG_HEADERS = $CONFIG_HEADERS
1162312468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1162412469 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1162512470 ac_cs_version="\\
11626 Multitouch Protocol Translation Library config.status 1.1.0
11627 configured by $0, generated by GNU Autoconf 2.67,
12471 Multitouch Protocol Translation Library config.status 1.1.2
12472 configured by $0, generated by GNU Autoconf 2.68,
1162812473 with options \\"\$ac_cs_config\\"
1162912474
1163012475 Copyright (C) 2010 Free Software Foundation, Inc.
1175212597 sed_quote_subst='$sed_quote_subst'
1175312598 double_quote_subst='$double_quote_subst'
1175412599 delay_variable_subst='$delay_variable_subst'
11755 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11756 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11757 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11758 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11759 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11760 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11761 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11762 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11763 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11764 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11765 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11766 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11767 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11768 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11769 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11770 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11771 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11772 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11773 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11774 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11775 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11776 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11777 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11778 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11779 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11780 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11781 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11782 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11783 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11784 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11785 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11786 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11787 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11788 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11789 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11790 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11791 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11792 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11793 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11794 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11795 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11796 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11797 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11798 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11799 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11800 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11801 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11802 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11803 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11804 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11805 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11806 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11807 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11808 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11809 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11810 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11811 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11812 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11813 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11814 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11815 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11816 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11817 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11818 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11819 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11820 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11821 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11822 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11823 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11824 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11825 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11826 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11827 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11828 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11829 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11830 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11831 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11832 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11833 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11834 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11835 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11836 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11837 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11838 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11839 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11840 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11841 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11842 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11843 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11844 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11845 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11846 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11847 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11848 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11849 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11850 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11851 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11852 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11853 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11854 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11855 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11856 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11857 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11858 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11859 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11860 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11861 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11862 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11863 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11864 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11865 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11866 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11867 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11868 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11869 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11870 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11871 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11872 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12600 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12601 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12602 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12603 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12604 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12605 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12606 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12607 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12608 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12609 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12610 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12611 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12612 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12613 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12614 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12615 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12616 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12617 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12618 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12619 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12620 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12621 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12622 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12623 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12624 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12625 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12626 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12627 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12628 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12629 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12630 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12631 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12632 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12633 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12634 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12635 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12636 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12637 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12638 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12639 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12640 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12641 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12642 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12643 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12644 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12645 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12646 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12647 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12648 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12649 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12650 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12651 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12652 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12653 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12654 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12655 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12656 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"`'
12657 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12658 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12659 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12660 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12661 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12662 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12663 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12664 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12665 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12666 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12667 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12668 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12669 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12670 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12671 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12672 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12673 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12674 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12675 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12676 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12677 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12678 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12679 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12680 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12681 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12682 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12683 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12684 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12685 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12686 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12687 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12688 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12689 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12690 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12691 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12692 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12693 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12694 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12695 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12696 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12697 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12698 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12699 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12700 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12701 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12702 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12703 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12704 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12705 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12706 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12707 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12708 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12709 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12710 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12711 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12712 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12713 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12714 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12715 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12716 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12717 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12718 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12719 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12720 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12721 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12722 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12723 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12724 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12725 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12726 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12727 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12728 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12729 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
1187312730
1187412731 LTCC='$LTCC'
1187512732 LTCFLAGS='$LTCFLAGS'
1187612733 compiler='$compiler_DEFAULT'
1187712734
12735 # A function that is used when there is no print builtin or printf.
12736 func_fallback_echo ()
12737 {
12738 eval 'cat <<_LTECHO_EOF
12739 \$1
12740 _LTECHO_EOF'
12741 }
12742
1187812743 # Quote evaled strings.
11879 for var in SED \
12744 for var in SHELL \
12745 ECHO \
12746 PATH_SEPARATOR \
12747 SED \
1188012748 GREP \
1188112749 EGREP \
1188212750 FGREP \
1188912757 OBJDUMP \
1189012758 deplibs_check_method \
1189112759 file_magic_cmd \
12760 file_magic_glob \
12761 want_nocaseglob \
12762 DLLTOOL \
12763 sharedlib_from_linklib_cmd \
1189212764 AR \
1189312765 AR_FLAGS \
12766 archiver_list_spec \
1189412767 STRIP \
1189512768 RANLIB \
1189612769 CC \
1190012773 lt_cv_sys_global_symbol_to_cdecl \
1190112774 lt_cv_sys_global_symbol_to_c_name_address \
1190212775 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11903 SHELL \
11904 ECHO \
12776 nm_file_list_spec \
1190512777 lt_prog_compiler_no_builtin_flag \
12778 lt_prog_compiler_pic \
1190612779 lt_prog_compiler_wl \
11907 lt_prog_compiler_pic \
1190812780 lt_prog_compiler_static \
1190912781 lt_cv_prog_compiler_c_o \
1191012782 need_locks \
12783 MANIFEST_TOOL \
1191112784 DSYMUTIL \
1191212785 NMEDIT \
1191312786 LIPO \
1192112794 allow_undefined_flag \
1192212795 no_undefined_flag \
1192312796 hardcode_libdir_flag_spec \
11924 hardcode_libdir_flag_spec_ld \
1192512797 hardcode_libdir_separator \
11926 fix_srcfile_path \
1192712798 exclude_expsyms \
1192812799 include_expsyms \
1192912800 file_list_spec \
1193112802 libname_spec \
1193212803 library_names_spec \
1193312804 soname_spec \
12805 install_override_mode \
1193412806 finish_eval \
1193512807 old_striplib \
1193612808 striplib; do
11937 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12809 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1193812810 *[\\\\\\\`\\"\\\$]*)
11939 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1194012812 ;;
1194112813 *)
1194212814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1195812830 module_expsym_cmds \
1195912831 export_symbols_cmds \
1196012832 prelink_cmds \
12833 postlink_cmds \
1196112834 postinstall_cmds \
1196212835 postuninstall_cmds \
1196312836 finish_cmds \
1196412837 sys_lib_search_path_spec \
1196512838 sys_lib_dlsearch_path_spec; do
11966 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12839 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1196712840 *[\\\\\\\`\\"\\\$]*)
11968 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12841 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1196912842 ;;
1197012843 *)
1197112844 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1197212845 ;;
1197312846 esac
1197412847 done
11975
11976 # Fix-up fallback echo if it was mangled by the above quoting rules.
11977 case \$lt_ECHO in
11978 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11979 ;;
11980 esac
1198112848
1198212849 ac_aux_dir='$ac_aux_dir'
1198312850 xsi_shell='$xsi_shell'
1201512882 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
1201612883 "mtdev.pc") CONFIG_FILES="$CONFIG_FILES mtdev.pc" ;;
1201712884
12018 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12885 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1201912886 esac
1202012887 done
1202112888
1203812905 # after its creation but before its name has been assigned to `$tmp'.
1203912906 $debug ||
1204012907 {
12041 tmp=
12908 tmp= ac_tmp=
1204212909 trap 'exit_status=$?
12043 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12910 : "${ac_tmp:=$tmp}"
12911 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1204412912 ' 0
1204512913 trap 'as_fn_exit 1' 1 2 13 15
1204612914 }
1204812916
1204912917 {
1205012918 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12051 test -n "$tmp" && test -d "$tmp"
12919 test -d "$tmp"
1205212920 } ||
1205312921 {
1205412922 tmp=./conf$$-$RANDOM
1205512923 (umask 077 && mkdir "$tmp")
1205612924 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12925 ac_tmp=$tmp
1205712926
1205812927 # Set up the scripts for CONFIG_FILES section.
1205912928 # No need to generate them if there are no CONFIG_FILES.
1207512944 ac_cs_awk_cr=$ac_cr
1207612945 fi
1207712946
12078 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12947 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1207912948 _ACEOF
1208012949
1208112950
1210312972 rm -f conf$$subs.sh
1210412973
1210512974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12106 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12975 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1210712976 _ACEOF
1210812977 sed -n '
1210912978 h
1215113020 rm -f conf$$subs.awk
1215213021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1215313022 _ACAWK
12154 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13023 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1215513024 for (key in S) S_is_set[key] = 1
1215613025 FS = ""
1215713026
1218313052 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1218413053 else
1218513054 cat
12186 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13055 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1218713056 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1218813057 _ACEOF
1218913058
1221713086 # No need to generate them if there are no CONFIG_HEADERS.
1221813087 # This happens for instance with `./config.status Makefile'.
1221913088 if test -n "$CONFIG_HEADERS"; then
12220 cat >"$tmp/defines.awk" <<\_ACAWK ||
13089 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1222113090 BEGIN {
1222213091 _ACEOF
1222313092
1222913098 # handling of long lines.
1223013099 ac_delim='%!_!# '
1223113100 for ac_last_try in false false :; do
12232 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12233 if test -z "$ac_t"; then
13101 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13102 if test -z "$ac_tt"; then
1223413103 break
1223513104 elif $ac_last_try; then
1223613105 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1233113200 esac
1233213201 case $ac_mode$ac_tag in
1233313202 :[FHL]*:*);;
12334 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13203 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1233513204 :[FH]-) ac_tag=-:-;;
1233613205 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1233713206 esac
1235013219 for ac_f
1235113220 do
1235213221 case $ac_f in
12353 -) ac_f="$tmp/stdin";;
13222 -) ac_f="$ac_tmp/stdin";;
1235413223 *) # Look for the file first in the build tree, then in the source tree
1235513224 # (if the path is not absolute). The absolute path cannot be DOS-style,
1235613225 # because $ac_f cannot contain `:'.
1235913228 [\\/$]*) false;;
1236013229 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1236113230 esac ||
12362 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13231 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1236313232 esac
1236413233 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1236513234 as_fn_append ac_file_inputs " '$ac_f'"
1238513254 esac
1238613255
1238713256 case $ac_tag in
12388 *:-:* | *:-) cat >"$tmp/stdin" \
12389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13257 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1239013259 esac
1239113260 ;;
1239213261 esac
1252213391 s&@MKDIR_P@&$ac_MKDIR_P&;t t
1252313392 $ac_datarootdir_hack
1252413393 "
12525 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13394 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13395 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1252713396
1252813397 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12529 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12530 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13398 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13399 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13400 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1253113401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1253213402 which seems to be undefined. Please make sure it is defined" >&5
1253313403 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1253413404 which seems to be undefined. Please make sure it is defined" >&2;}
1253513405
12536 rm -f "$tmp/stdin"
13406 rm -f "$ac_tmp/stdin"
1253713407 case $ac_file in
12538 -) cat "$tmp/out" && rm -f "$tmp/out";;
12539 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13408 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13409 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1254013410 esac \
1254113411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1254213412 ;;
1254713417 if test x"$ac_file" != x-; then
1254813418 {
1254913419 $as_echo "/* $configure_input */" \
12550 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12551 } >"$tmp/config.h" \
13420 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13421 } >"$ac_tmp/config.h" \
1255213422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12553 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13423 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1255413424 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1255513425 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1255613426 else
1255713427 rm -f "$ac_file"
12558 mv "$tmp/config.h" "$ac_file" \
13428 mv "$ac_tmp/config.h" "$ac_file" \
1255913429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1256013430 fi
1256113431 else
1256213432 $as_echo "/* $configure_input */" \
12563 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13433 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1256413434 || as_fn_error $? "could not create -" "$LINENO" 5
1256513435 fi
1256613436 # Compute "$ac_file"'s index in $config_headers.
1272213592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1272313593 #
1272413594 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12725 # 2006, 2007, 2008 Free Software Foundation, Inc.
13595 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13596 # Foundation, Inc.
1272613597 # Written by Gordon Matzigkeit, 1996
1272713598 #
1272813599 # This file is part of GNU Libtool.
1277013641 # Whether or not to optimize for fast installation.
1277113642 fast_install=$enable_fast_install
1277213643
13644 # Shell to use when invoking shell scripts.
13645 SHELL=$lt_SHELL
13646
13647 # An echo program that protects backslashes.
13648 ECHO=$lt_ECHO
13649
13650 # The PATH separator for the build system.
13651 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13652
1277313653 # The host system.
1277413654 host_alias=$host_alias
1277513655 host=$host
1281913699 # turn newlines into spaces.
1282013700 NL2SP=$lt_lt_NL2SP
1282113701
12822 # How to create reloadable object files.
12823 reload_flag=$lt_reload_flag
12824 reload_cmds=$lt_reload_cmds
13702 # convert \$build file names to \$host format.
13703 to_host_file_cmd=$lt_cv_to_host_file_cmd
13704
13705 # convert \$build files to toolchain format.
13706 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1282513707
1282613708 # An object symbol dumper.
1282713709 OBJDUMP=$lt_OBJDUMP
1282913711 # Method to check whether dependent libraries are shared objects.
1283013712 deplibs_check_method=$lt_deplibs_check_method
1283113713
12832 # Command to use when deplibs_check_method == "file_magic".
13714 # Command to use when deplibs_check_method = "file_magic".
1283313715 file_magic_cmd=$lt_file_magic_cmd
13716
13717 # How to find potential files when deplibs_check_method = "file_magic".
13718 file_magic_glob=$lt_file_magic_glob
13719
13720 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13721 want_nocaseglob=$lt_want_nocaseglob
13722
13723 # DLL creation program.
13724 DLLTOOL=$lt_DLLTOOL
13725
13726 # Command to associate shared and link libraries.
13727 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1283413728
1283513729 # The archiver.
1283613730 AR=$lt_AR
13731
13732 # Flags to create an archive.
1283713733 AR_FLAGS=$lt_AR_FLAGS
13734
13735 # How to feed a file listing to the archiver.
13736 archiver_list_spec=$lt_archiver_list_spec
1283813737
1283913738 # A symbol stripping program.
1284013739 STRIP=$lt_STRIP
1284413743 old_postinstall_cmds=$lt_old_postinstall_cmds
1284513744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
1284613745
13746 # Whether to use a lock for old archive extraction.
13747 lock_old_archive_extraction=$lock_old_archive_extraction
13748
1284713749 # A C compiler.
1284813750 LTCC=$lt_CC
1284913751
1286213764 # Transform the output of nm in a C name address pair when lib prefix is needed.
1286313765 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1286413766
13767 # Specify filename containing input files for \$NM.
13768 nm_file_list_spec=$lt_nm_file_list_spec
13769
13770 # The root where to search for dependent libraries,and in which our libraries should be installed.
13771 lt_sysroot=$lt_sysroot
13772
1286513773 # The name of the directory that contains temporary libtool files.
1286613774 objdir=$objdir
1286713775
12868 # Shell to use when invoking shell scripts.
12869 SHELL=$lt_SHELL
12870
12871 # An echo program that does not interpret backslashes.
12872 ECHO=$lt_ECHO
12873
1287413776 # Used to examine libraries when file_magic_cmd begins with "file".
1287513777 MAGIC_CMD=$MAGIC_CMD
1287613778
1287713779 # Must we lock files when doing compilation?
1287813780 need_locks=$lt_need_locks
13781
13782 # Manifest tool.
13783 MANIFEST_TOOL=$lt_MANIFEST_TOOL
1287913784
1288013785 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1288113786 DSYMUTIL=$lt_DSYMUTIL
1293313838 # The coded name of the library, if different from the real name.
1293413839 soname_spec=$lt_soname_spec
1293513840
13841 # Permission mode override for installation of shared libraries.
13842 install_override_mode=$lt_install_override_mode
13843
1293613844 # Command to use after installation of a shared archive.
1293713845 postinstall_cmds=$lt_postinstall_cmds
1293813846
1297213880 # The linker used to build libraries.
1297313881 LD=$lt_LD
1297413882
13883 # How to create reloadable object files.
13884 reload_flag=$lt_reload_flag
13885 reload_cmds=$lt_reload_cmds
13886
1297513887 # Commands used to build an old-style archive.
1297613888 old_archive_cmds=$lt_old_archive_cmds
1297713889
1298413896 # Compiler flag to turn off builtin functions.
1298513897 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1298613898
13899 # Additional compiler flags for building library objects.
13900 pic_flag=$lt_lt_prog_compiler_pic
13901
1298713902 # How to pass a linker flag through the compiler.
1298813903 wl=$lt_lt_prog_compiler_wl
12989
12990 # Additional compiler flags for building library objects.
12991 pic_flag=$lt_lt_prog_compiler_pic
1299213904
1299313905 # Compiler flag to prevent dynamic linking.
1299413906 link_static_flag=$lt_lt_prog_compiler_static
1303813950 # Flag to hardcode \$libdir into a binary during linking.
1303913951 # This must work even if \$libdir does not exist
1304013952 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13041
13042 # If ld is used when linking, flag to hardcode \$libdir into a binary
13043 # during linking. This must work even if \$libdir does not exist.
13044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1304513953
1304613954 # Whether we need a single "-rpath" flag with a separated argument.
1304713955 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1307613984 # Whether libtool must link a program against all its dependency libraries.
1307713985 link_all_deplibs=$link_all_deplibs
1307813986
13079 # Fix the shell variable \$srcfile for the compiler.
13080 fix_srcfile_path=$lt_fix_srcfile_path
13081
1308213987 # Set to "yes" if exported symbols are required.
1308313988 always_export_symbols=$always_export_symbols
1308413989
1309313998
1309413999 # Commands necessary for linking programs (against libraries) with templates.
1309514000 prelink_cmds=$lt_prelink_cmds
14001
14002 # Commands necessary for finishing linking programs.
14003 postlink_cmds=$lt_postlink_cmds
1309614004
1309714005 # Specify filename containing input files.
1309814006 file_list_spec=$lt_file_list_spec
1312614034 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1312714035 # text mode, it properly converts lines to CR/LF. This bash problem
1312814036 # is reportedly fixed, but why not run on old versions too?
13129 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13130 || (rm -f "$cfgfile"; exit 1)
13131
13132 case $xsi_shell in
13133 yes)
13134 cat << \_LT_EOF >> "$cfgfile"
13135
13136 # func_dirname file append nondir_replacement
13137 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13138 # otherwise set result to NONDIR_REPLACEMENT.
13139 func_dirname ()
13140 {
13141 case ${1} in
13142 */*) func_dirname_result="${1%/*}${2}" ;;
13143 * ) func_dirname_result="${3}" ;;
13144 esac
13145 }
13146
13147 # func_basename file
13148 func_basename ()
13149 {
13150 func_basename_result="${1##*/}"
13151 }
13152
13153 # func_dirname_and_basename file append nondir_replacement
13154 # perform func_basename and func_dirname in a single function
13155 # call:
13156 # dirname: Compute the dirname of FILE. If nonempty,
13157 # add APPEND to the result, otherwise set result
13158 # to NONDIR_REPLACEMENT.
13159 # value returned in "$func_dirname_result"
13160 # basename: Compute filename of FILE.
13161 # value retuned in "$func_basename_result"
13162 # Implementation must be kept synchronized with func_dirname
13163 # and func_basename. For efficiency, we do not delegate to
13164 # those functions but instead duplicate the functionality here.
13165 func_dirname_and_basename ()
13166 {
13167 case ${1} in
13168 */*) func_dirname_result="${1%/*}${2}" ;;
13169 * ) func_dirname_result="${3}" ;;
13170 esac
13171 func_basename_result="${1##*/}"
13172 }
13173
13174 # func_stripname prefix suffix name
13175 # strip PREFIX and SUFFIX off of NAME.
13176 # PREFIX and SUFFIX must not contain globbing or regex special
13177 # characters, hashes, percent signs, but SUFFIX may contain a leading
13178 # dot (in which case that matches only a dot).
13179 func_stripname ()
13180 {
13181 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13182 # positional parameters, so assign one to ordinary parameter first.
13183 func_stripname_result=${3}
13184 func_stripname_result=${func_stripname_result#"${1}"}
13185 func_stripname_result=${func_stripname_result%"${2}"}
13186 }
13187
13188 # func_opt_split
13189 func_opt_split ()
13190 {
13191 func_opt_split_opt=${1%%=*}
13192 func_opt_split_arg=${1#*=}
13193 }
13194
13195 # func_lo2o object
13196 func_lo2o ()
13197 {
13198 case ${1} in
13199 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13200 *) func_lo2o_result=${1} ;;
13201 esac
13202 }
13203
13204 # func_xform libobj-or-source
13205 func_xform ()
13206 {
13207 func_xform_result=${1%.*}.lo
13208 }
13209
13210 # func_arith arithmetic-term...
13211 func_arith ()
13212 {
13213 func_arith_result=$(( $* ))
13214 }
13215
13216 # func_len string
13217 # STRING may not start with a hyphen.
13218 func_len ()
13219 {
13220 func_len_result=${#1}
13221 }
13222
13223 _LT_EOF
13224 ;;
13225 *) # Bourne compatible functions.
13226 cat << \_LT_EOF >> "$cfgfile"
13227
13228 # func_dirname file append nondir_replacement
13229 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13230 # otherwise set result to NONDIR_REPLACEMENT.
13231 func_dirname ()
13232 {
13233 # Extract subdirectory from the argument.
13234 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13235 if test "X$func_dirname_result" = "X${1}"; then
13236 func_dirname_result="${3}"
13237 else
13238 func_dirname_result="$func_dirname_result${2}"
13239 fi
13240 }
13241
13242 # func_basename file
13243 func_basename ()
13244 {
13245 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13246 }
13247
13248
13249 # func_stripname prefix suffix name
13250 # strip PREFIX and SUFFIX off of NAME.
13251 # PREFIX and SUFFIX must not contain globbing or regex special
13252 # characters, hashes, percent signs, but SUFFIX may contain a leading
13253 # dot (in which case that matches only a dot).
13254 # func_strip_suffix prefix name
13255 func_stripname ()
13256 {
13257 case ${2} in
13258 .*) func_stripname_result=`$ECHO "X${3}" \
13259 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13260 *) func_stripname_result=`$ECHO "X${3}" \
13261 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13262 esac
13263 }
13264
13265 # sed scripts:
13266 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13267 my_sed_long_arg='1s/^-[^=]*=//'
13268
13269 # func_opt_split
13270 func_opt_split ()
13271 {
13272 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13273 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13274 }
13275
13276 # func_lo2o object
13277 func_lo2o ()
13278 {
13279 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13280 }
13281
13282 # func_xform libobj-or-source
13283 func_xform ()
13284 {
13285 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13286 }
13287
13288 # func_arith arithmetic-term...
13289 func_arith ()
13290 {
13291 func_arith_result=`expr "$@"`
13292 }
13293
13294 # func_len string
13295 # STRING may not start with a hyphen.
13296 func_len ()
13297 {
13298 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13299 }
13300
13301 _LT_EOF
13302 esac
13303
13304 case $lt_shell_append in
13305 yes)
13306 cat << \_LT_EOF >> "$cfgfile"
13307
13308 # func_append var value
13309 # Append VALUE to the end of shell variable VAR.
13310 func_append ()
13311 {
13312 eval "$1+=\$2"
13313 }
13314 _LT_EOF
13315 ;;
13316 *)
13317 cat << \_LT_EOF >> "$cfgfile"
13318
13319 # func_append var value
13320 # Append VALUE to the end of shell variable VAR.
13321 func_append ()
13322 {
13323 eval "$1=\$$1\$2"
13324 }
13325
13326 _LT_EOF
13327 ;;
13328 esac
13329
13330
13331 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13332 || (rm -f "$cfgfile"; exit 1)
13333
13334 mv -f "$cfgfile" "$ofile" ||
14037 sed '$q' "$ltmain" >> "$cfgfile" \
14038 || (rm -f "$cfgfile"; exit 1)
14039
14040 if test x"$xsi_shell" = xyes; then
14041 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14042 func_dirname ()\
14043 {\
14044 \ case ${1} in\
14045 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14046 \ * ) func_dirname_result="${3}" ;;\
14047 \ esac\
14048 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14049 && mv -f "$cfgfile.tmp" "$cfgfile" \
14050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14051 test 0 -eq $? || _lt_function_replace_fail=:
14052
14053
14054 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14055 func_basename ()\
14056 {\
14057 \ func_basename_result="${1##*/}"\
14058 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14059 && mv -f "$cfgfile.tmp" "$cfgfile" \
14060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14061 test 0 -eq $? || _lt_function_replace_fail=:
14062
14063
14064 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14065 func_dirname_and_basename ()\
14066 {\
14067 \ case ${1} in\
14068 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14069 \ * ) func_dirname_result="${3}" ;;\
14070 \ esac\
14071 \ func_basename_result="${1##*/}"\
14072 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14073 && mv -f "$cfgfile.tmp" "$cfgfile" \
14074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14075 test 0 -eq $? || _lt_function_replace_fail=:
14076
14077
14078 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14079 func_stripname ()\
14080 {\
14081 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14082 \ # positional parameters, so assign one to ordinary parameter first.\
14083 \ func_stripname_result=${3}\
14084 \ func_stripname_result=${func_stripname_result#"${1}"}\
14085 \ func_stripname_result=${func_stripname_result%"${2}"}\
14086 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14087 && mv -f "$cfgfile.tmp" "$cfgfile" \
14088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14089 test 0 -eq $? || _lt_function_replace_fail=:
14090
14091
14092 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14093 func_split_long_opt ()\
14094 {\
14095 \ func_split_long_opt_name=${1%%=*}\
14096 \ func_split_long_opt_arg=${1#*=}\
14097 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14098 && mv -f "$cfgfile.tmp" "$cfgfile" \
14099 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14100 test 0 -eq $? || _lt_function_replace_fail=:
14101
14102
14103 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14104 func_split_short_opt ()\
14105 {\
14106 \ func_split_short_opt_arg=${1#??}\
14107 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14108 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14109 && mv -f "$cfgfile.tmp" "$cfgfile" \
14110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14111 test 0 -eq $? || _lt_function_replace_fail=:
14112
14113
14114 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14115 func_lo2o ()\
14116 {\
14117 \ case ${1} in\
14118 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14119 \ *) func_lo2o_result=${1} ;;\
14120 \ esac\
14121 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14122 && mv -f "$cfgfile.tmp" "$cfgfile" \
14123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14124 test 0 -eq $? || _lt_function_replace_fail=:
14125
14126
14127 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14128 func_xform ()\
14129 {\
14130 func_xform_result=${1%.*}.lo\
14131 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14132 && mv -f "$cfgfile.tmp" "$cfgfile" \
14133 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14134 test 0 -eq $? || _lt_function_replace_fail=:
14135
14136
14137 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14138 func_arith ()\
14139 {\
14140 func_arith_result=$(( $* ))\
14141 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14142 && mv -f "$cfgfile.tmp" "$cfgfile" \
14143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14144 test 0 -eq $? || _lt_function_replace_fail=:
14145
14146
14147 sed -e '/^func_len ()$/,/^} # func_len /c\
14148 func_len ()\
14149 {\
14150 func_len_result=${#1}\
14151 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14152 && mv -f "$cfgfile.tmp" "$cfgfile" \
14153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14154 test 0 -eq $? || _lt_function_replace_fail=:
14155
14156 fi
14157
14158 if test x"$lt_shell_append" = xyes; then
14159 sed -e '/^func_append ()$/,/^} # func_append /c\
14160 func_append ()\
14161 {\
14162 eval "${1}+=\\${2}"\
14163 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14164 && mv -f "$cfgfile.tmp" "$cfgfile" \
14165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14166 test 0 -eq $? || _lt_function_replace_fail=:
14167
14168
14169 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14170 func_append_quoted ()\
14171 {\
14172 \ func_quote_for_eval "${2}"\
14173 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14174 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14175 && mv -f "$cfgfile.tmp" "$cfgfile" \
14176 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14177 test 0 -eq $? || _lt_function_replace_fail=:
14178
14179
14180 # Save a `func_append' function call where possible by direct use of '+='
14181 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14182 && mv -f "$cfgfile.tmp" "$cfgfile" \
14183 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14184 test 0 -eq $? || _lt_function_replace_fail=:
14185 else
14186 # Save a `func_append' function call even when '+=' is not available
14187 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14188 && mv -f "$cfgfile.tmp" "$cfgfile" \
14189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14190 test 0 -eq $? || _lt_function_replace_fail=:
14191 fi
14192
14193 if test x"$_lt_function_replace_fail" = x":"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14195 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14196 fi
14197
14198
14199 mv -f "$cfgfile" "$ofile" ||
1333514200 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1333614201 chmod +x "$ofile"
1333714202
00 # Initialize Autoconf
11 AC_PREREQ([2.60])
22 AC_INIT([Multitouch Protocol Translation Library],
3 [1.1.0],
3 [1.1.2],
44 [],
55 [mtdev])
66 AC_CONFIG_SRCDIR([Makefile.am])
6767 #define ABS_MT_DISTANCE 0x3b /* Contact hover distance */
6868 #endif
6969
70 /* includes available in 3.4 */
71 #ifndef EVIOCGMTSLOTS
72 #define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len)
73 #endif
74
7075 #define MT_ID_NULL (-1)
7176 #define MT_ID_MIN 0
7277 #define MT_ID_MAX 65535
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
6666 am__base_list = \
6767 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
6868 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
69 am__uninstall_files_from_dir = { \
70 test -z "$$files" \
71 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
72 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
73 $(am__cd) "$$dir" && rm -f $$files; }; \
74 }
6975 am__installdirs = "$(DESTDIR)$(libdir)" \
7076 "$(DESTDIR)$(libmtdevincludedir)"
7177 LTLIBRARIES = $(lib_LTLIBRARIES)
110116 CYGPATH_W = @CYGPATH_W@
111117 DEFS = @DEFS@
112118 DEPDIR = @DEPDIR@
119 DLLTOOL = @DLLTOOL@
113120 DSYMUTIL = @DSYMUTIL@
114121 DUMPBIN = @DUMPBIN@
115122 ECHO_C = @ECHO_C@
135142 LTLIBOBJS = @LTLIBOBJS@
136143 MAINT = @MAINT@
137144 MAKEINFO = @MAKEINFO@
145 MANIFEST_TOOL = @MANIFEST_TOOL@
138146 MKDIR_P = @MKDIR_P@
139147 NM = @NM@
140148 NMEDIT = @NMEDIT@
160168 abs_srcdir = @abs_srcdir@
161169 abs_top_builddir = @abs_top_builddir@
162170 abs_top_srcdir = @abs_top_srcdir@
171 ac_ct_AR = @ac_ct_AR@
163172 ac_ct_CC = @ac_ct_CC@
164173 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
165174 am__include = @am__include@
192201 libexecdir = @libexecdir@
193202 localedir = @localedir@
194203 localstatedir = @localstatedir@
195 lt_ECHO = @lt_ECHO@
196204 mandir = @mandir@
197205 mkdir_p = @mkdir_p@
198206 oldincludedir = @oldincludedir@
297305 echo "rm -f \"$${dir}/so_locations\""; \
298306 rm -f "$${dir}/so_locations"; \
299307 done
300 libmtdev.la: $(libmtdev_la_OBJECTS) $(libmtdev_la_DEPENDENCIES)
308 libmtdev.la: $(libmtdev_la_OBJECTS) $(libmtdev_la_DEPENDENCIES) $(EXTRA_libmtdev_la_DEPENDENCIES)
301309 $(libmtdev_la_LINK) -rpath $(libdir) $(libmtdev_la_OBJECTS) $(libmtdev_la_LIBADD) $(LIBS)
302310
303311 mostlyclean-compile:
355363 @$(NORMAL_UNINSTALL)
356364 @list='$(libmtdevinclude_HEADERS)'; test -n "$(libmtdevincludedir)" || list=; \
357365 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
358 test -n "$$files" || exit 0; \
359 echo " ( cd '$(DESTDIR)$(libmtdevincludedir)' && rm -f" $$files ")"; \
360 cd "$(DESTDIR)$(libmtdevincludedir)" && rm -f $$files
366 dir='$(DESTDIR)$(libmtdevincludedir)'; $(am__uninstall_files_from_dir)
361367
362368 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
363369 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
458464
459465 installcheck: installcheck-am
460466 install-strip:
461 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
462 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
463 `test -z '$(STRIP)' || \
464 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
467 if test -z '$(STRIP)'; then \
468 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
469 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
470 install; \
471 else \
472 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
473 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
474 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
475 fi
465476 mostlyclean-generic:
466477
467478 clean-generic:
8181 abs->fuzz = (abs->maximum - abs->minimum) / sn;
8282 }
8383
84 int mtdev_set_slots(struct mtdev *dev, int fd)
85 {
86 struct { unsigned code; int values[DIM_FINGER]; } req;
87 struct mtdev_state *state = dev->state;
88 int rc, i, s, nslot;
89
90 nslot = mtdev_get_abs_maximum(dev, ABS_MT_SLOT) + 1;
91
92 for (i = 0; i < MT_ABS_SIZE; i++) {
93 req.code = mtdev_mt2abs(i);
94 if (!mtdev_has_mt_event(dev, req.code))
95 continue;
96 SYSCALL(rc = ioctl(fd, EVIOCGMTSLOTS(sizeof(req)), &req));
97 if (rc < 0)
98 return rc;
99 for (s = 0; s < DIM_FINGER && s < nslot; s++)
100 set_sval(&state->data[s], i, req.values[s]);
101 }
102
103 return 0;
104 }
105
84106 int mtdev_configure(struct mtdev *dev, int fd)
85107 {
86108 unsigned long absbits[nlongs(ABS_MAX)];
117139 default_fuzz(dev, ABS_MT_WIDTH_MINOR, SN_WIDTH);
118140 default_fuzz(dev, ABS_MT_ORIENTATION, SN_ORIENT);
119141
142 if (dev->has_slot)
143 mtdev_set_slots(dev, fd);
144
120145 return 0;
121146 }
122147
358358
359359 int mtdev_open(struct mtdev *dev, int fd)
360360 {
361 int ret;
361 int ret = -EINVAL;
362
363 if (!dev || fd < 0)
364 goto error;
362365 ret = mtdev_init(dev);
363366 if (ret)
364367 goto error;
365368 ret = mtdev_configure(dev, fd);
366369 if (ret)
367 goto mtdev;
370 goto error;
368371 return 0;
369 mtdev:
372
373 error:
370374 mtdev_close(dev);
371 error:
372375 return ret;
373376 }
374377
410413
411414 void mtdev_close(struct mtdev *dev)
412415 {
413 free(dev->state);
414 memset(dev, 0, sizeof(struct mtdev));
416 if (dev) {
417 free(dev->state);
418 memset(dev, 0, sizeof(struct mtdev));
419 }
415420 }
416421
417422 void mtdev_delete(struct mtdev *dev)
4747 int blob_id;
4848 int tracking_id;
4949 int pressure;
50 int distance;
5051 };
5152
5253 static inline int get_sval(const struct mtdev_slot *slot, int ix)
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
66 # This Makefile.in is free software; the Free Software Foundation
77 # gives unlimited permission to copy and/or distribute it,
88 # with or without modifications, as long as this notice is preserved.
104104 CYGPATH_W = @CYGPATH_W@
105105 DEFS = @DEFS@
106106 DEPDIR = @DEPDIR@
107 DLLTOOL = @DLLTOOL@
107108 DSYMUTIL = @DSYMUTIL@
108109 DUMPBIN = @DUMPBIN@
109110 ECHO_C = @ECHO_C@
129130 LTLIBOBJS = @LTLIBOBJS@
130131 MAINT = @MAINT@
131132 MAKEINFO = @MAKEINFO@
133 MANIFEST_TOOL = @MANIFEST_TOOL@
132134 MKDIR_P = @MKDIR_P@
133135 NM = @NM@
134136 NMEDIT = @NMEDIT@
154156 abs_srcdir = @abs_srcdir@
155157 abs_top_builddir = @abs_top_builddir@
156158 abs_top_srcdir = @abs_top_srcdir@
159 ac_ct_AR = @ac_ct_AR@
157160 ac_ct_CC = @ac_ct_CC@
158161 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
159162 am__include = @am__include@
186189 libexecdir = @libexecdir@
187190 localedir = @localedir@
188191 localstatedir = @localstatedir@
189 lt_ECHO = @lt_ECHO@
190192 mandir = @mandir@
191193 mkdir_p = @mkdir_p@
192194 oldincludedir = @oldincludedir@
296298 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
297299 echo " rm -f" $$list; \
298300 rm -f $$list
299 mtdev-kernel$(EXEEXT): $(mtdev_kernel_OBJECTS) $(mtdev_kernel_DEPENDENCIES)
301 mtdev-kernel$(EXEEXT): $(mtdev_kernel_OBJECTS) $(mtdev_kernel_DEPENDENCIES) $(EXTRA_mtdev_kernel_DEPENDENCIES)
300302 @rm -f mtdev-kernel$(EXEEXT)
301303 $(mtdev_kernel_LINK) $(mtdev_kernel_OBJECTS) $(mtdev_kernel_LDADD) $(LIBS)
302 mtdev-mapgen$(EXEEXT): $(mtdev_mapgen_OBJECTS) $(mtdev_mapgen_DEPENDENCIES)
304 mtdev-mapgen$(EXEEXT): $(mtdev_mapgen_OBJECTS) $(mtdev_mapgen_DEPENDENCIES) $(EXTRA_mtdev_mapgen_DEPENDENCIES)
303305 @rm -f mtdev-mapgen$(EXEEXT)
304306 $(LINK) $(mtdev_mapgen_OBJECTS) $(mtdev_mapgen_LDADD) $(LIBS)
305 mtdev-matching$(EXEEXT): $(mtdev_matching_OBJECTS) $(mtdev_matching_DEPENDENCIES)
307 mtdev-matching$(EXEEXT): $(mtdev_matching_OBJECTS) $(mtdev_matching_DEPENDENCIES) $(EXTRA_mtdev_matching_DEPENDENCIES)
306308 @rm -f mtdev-matching$(EXEEXT)
307309 $(mtdev_matching_LINK) $(mtdev_matching_OBJECTS) $(mtdev_matching_LDADD) $(LIBS)
308 mtdev-test$(EXEEXT): $(mtdev_test_OBJECTS) $(mtdev_test_DEPENDENCIES)
310 mtdev-test$(EXEEXT): $(mtdev_test_OBJECTS) $(mtdev_test_DEPENDENCIES) $(EXTRA_mtdev_test_DEPENDENCIES)
309311 @rm -f mtdev-test$(EXEEXT)
310312 $(mtdev_test_LINK) $(mtdev_test_OBJECTS) $(mtdev_test_LDADD) $(LIBS)
311313
446448
447449 installcheck: installcheck-am
448450 install-strip:
449 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
450 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
451 `test -z '$(STRIP)' || \
452 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
451 if test -z '$(STRIP)'; then \
452 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
453 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
454 install; \
455 else \
456 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
457 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
458 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
459 fi
453460 mostlyclean-generic:
454461
455462 clean-generic: