Imported Upstream version 1.1.2
Nobuhiro Iwamatsu
12 years ago
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 | ||
0 | 53 | commit 9e3daba37d1d15c99a41a2d838bf683934cc7077 |
1 | 54 | Author: Henrik Rydberg <rydberg@euromail.se> |
2 | 55 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | 3 | # 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. | |
6 | 6 | # This Makefile.in is free software; the Free Software Foundation |
7 | 7 | # gives unlimited permission to copy and/or distribute it, |
8 | 8 | # with or without modifications, as long as this notice is preserved. |
80 | 80 | am__base_list = \ |
81 | 81 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ |
82 | 82 | 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 | } | |
83 | 89 | am__installdirs = "$(DESTDIR)$(pkgconfigdir)" |
84 | 90 | DATA = $(pkgconfig_DATA) |
85 | 91 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
94 | 100 | distdir = $(PACKAGE)-$(VERSION) |
95 | 101 | top_distdir = $(distdir) |
96 | 102 | 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 | |
100 | 108 | am__relativize = \ |
101 | 109 | dir0=`pwd`; \ |
102 | 110 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
125 | 133 | DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 |
126 | 134 | GZIP_ENV = --best |
127 | 135 | distuninstallcheck_listfiles = find . -type f -print |
136 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | |
137 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' | |
128 | 138 | distcleancheck_listfiles = find . -type f -print |
129 | 139 | ACLOCAL = @ACLOCAL@ |
130 | 140 | AMTAR = @AMTAR@ |
141 | 151 | CYGPATH_W = @CYGPATH_W@ |
142 | 152 | DEFS = @DEFS@ |
143 | 153 | DEPDIR = @DEPDIR@ |
154 | DLLTOOL = @DLLTOOL@ | |
144 | 155 | DSYMUTIL = @DSYMUTIL@ |
145 | 156 | DUMPBIN = @DUMPBIN@ |
146 | 157 | ECHO_C = @ECHO_C@ |
166 | 177 | LTLIBOBJS = @LTLIBOBJS@ |
167 | 178 | MAINT = @MAINT@ |
168 | 179 | MAKEINFO = @MAKEINFO@ |
180 | MANIFEST_TOOL = @MANIFEST_TOOL@ | |
169 | 181 | MKDIR_P = @MKDIR_P@ |
170 | 182 | NM = @NM@ |
171 | 183 | NMEDIT = @NMEDIT@ |
191 | 203 | abs_srcdir = @abs_srcdir@ |
192 | 204 | abs_top_builddir = @abs_top_builddir@ |
193 | 205 | abs_top_srcdir = @abs_top_srcdir@ |
206 | ac_ct_AR = @ac_ct_AR@ | |
194 | 207 | ac_ct_CC = @ac_ct_CC@ |
195 | 208 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
196 | 209 | am__include = @am__include@ |
223 | 236 | libexecdir = @libexecdir@ |
224 | 237 | localedir = @localedir@ |
225 | 238 | localstatedir = @localstatedir@ |
226 | lt_ECHO = @lt_ECHO@ | |
227 | 239 | mandir = @mandir@ |
228 | 240 | mkdir_p = @mkdir_p@ |
229 | 241 | oldincludedir = @oldincludedir@ |
247 | 259 | $(MAKE) $(AM_MAKEFLAGS) all-recursive |
248 | 260 | |
249 | 261 | .SUFFIXES: |
250 | am--refresh: | |
262 | am--refresh: Makefile | |
251 | 263 | @: |
252 | 264 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) |
253 | 265 | @for dep in $?; do \ |
283 | 295 | $(am__aclocal_m4_deps): |
284 | 296 | |
285 | 297 | 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 | |
290 | 300 | |
291 | 301 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
292 | 302 | @rm -f stamp-h1 |
326 | 336 | @$(NORMAL_UNINSTALL) |
327 | 337 | @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ |
328 | 338 | 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) | |
332 | 340 | |
333 | 341 | # This directory's subdirectories are mostly independent; you can cd |
334 | 342 | # into them and run `make' without going through this Makefile. |
539 | 547 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
540 | 548 | $(am__remove_distdir) |
541 | 549 | 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 | |
543 | 555 | $(am__remove_distdir) |
544 | 556 | |
545 | 557 | dist-lzma: distdir |
547 | 559 | $(am__remove_distdir) |
548 | 560 | |
549 | 561 | 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 | |
551 | 563 | $(am__remove_distdir) |
552 | 564 | |
553 | 565 | dist-tarZ: distdir |
565 | 577 | |
566 | 578 | dist dist-all: distdir |
567 | 579 | 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 | |
569 | 581 | $(am__remove_distdir) |
570 | 582 | |
571 | 583 | # This target untars the dist file and tries a VPATH configuration. Then |
579 | 591 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
580 | 592 | *.tar.lzma*) \ |
581 | 593 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ |
594 | *.tar.lz*) \ | |
595 | lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ | |
582 | 596 | *.tar.xz*) \ |
583 | 597 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ |
584 | 598 | *.tar.Z*) \ |
598 | 612 | && am__cwd=`pwd` \ |
599 | 613 | && $(am__cd) $(distdir)/_build \ |
600 | 614 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
615 | $(AM_DISTCHECK_CONFIGURE_FLAGS) \ | |
601 | 616 | $(DISTCHECK_CONFIGURE_FLAGS) \ |
602 | 617 | && $(MAKE) $(AM_MAKEFLAGS) \ |
603 | 618 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
626 | 641 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
627 | 642 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
628 | 643 | 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 \ | |
631 | 654 | || { echo "ERROR: files left after uninstall:" ; \ |
632 | 655 | if test -n "$(DESTDIR)"; then \ |
633 | 656 | echo " (check DESTDIR support)"; \ |
661 | 684 | |
662 | 685 | installcheck: installcheck-recursive |
663 | 686 | 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 | |
668 | 696 | mostlyclean-generic: |
669 | 697 | |
670 | 698 | clean-generic: |
752 | 780 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
753 | 781 | all all-am am--refresh check check-am clean clean-generic \ |
754 | 782 | 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 \ | |
765 | 793 | maintainer-clean-generic mostlyclean mostlyclean-generic \ |
766 | 794 | mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ |
767 | 795 | uninstall uninstall-am uninstall-pkgconfigDATA |
0 | # generated automatically by aclocal 1.11.1 -*- Autoconf -*- | |
0 | # generated automatically by aclocal 1.11.3 -*- Autoconf -*- | |
1 | 1 | |
2 | 2 | # 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. | |
4 | 5 | # This file is free software; the Free Software Foundation |
5 | 6 | # gives unlimited permission to copy and/or distribute it, |
6 | 7 | # with or without modifications, as long as this notice is preserved. |
12 | 13 | |
13 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
14 | 15 | [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. | |
17 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
18 | 19 | If you have problems, you may need to regenerate the build system entirely. |
19 | 20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
21 | 22 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
22 | 23 | # |
23 | 24 | # 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. | |
25 | 27 | # Written by Gordon Matzigkeit, 1996 |
26 | 28 | # |
27 | 29 | # This file is free software; the Free Software Foundation gives |
30 | 32 | |
31 | 33 | m4_define([_LT_COPYING], [dnl |
32 | 34 | # 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. | |
34 | 37 | # Written by Gordon Matzigkeit, 1996 |
35 | 38 | # |
36 | 39 | # This file is part of GNU Libtool. |
57 | 60 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
58 | 61 | ]) |
59 | 62 | |
60 | # serial 56 LT_INIT | |
63 | # serial 57 LT_INIT | |
61 | 64 | |
62 | 65 | |
63 | 66 | # LT_PREREQ(VERSION) |
86 | 89 | # ------------------ |
87 | 90 | AC_DEFUN([LT_INIT], |
88 | 91 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
92 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
89 | 93 | AC_BEFORE([$0], [LT_LANG])dnl |
90 | 94 | AC_BEFORE([$0], [LT_OUTPUT])dnl |
91 | 95 | AC_BEFORE([$0], [LTDL_INIT])dnl |
101 | 105 | AC_REQUIRE([LTVERSION_VERSION])dnl |
102 | 106 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
103 | 107 | m4_require([_LT_PROG_LTMAIN])dnl |
108 | ||
109 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | |
104 | 110 | |
105 | 111 | dnl Parse OPTIONS |
106 | 112 | _LT_SET_OPTIONS([$0], [$1]) |
138 | 144 | *) break;; |
139 | 145 | esac |
140 | 146 | 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-%%"` | |
142 | 148 | ]) |
143 | 149 | |
144 | 150 | |
158 | 164 | m4_defun([_LT_SETUP], |
159 | 165 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
160 | 166 | 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 | |
161 | 172 | _LT_DECL([], [host_alias], [0], [The host system])dnl |
162 | 173 | _LT_DECL([], [host], [0])dnl |
163 | 174 | _LT_DECL([], [host_os], [0])dnl |
180 | 191 | dnl |
181 | 192 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
182 | 193 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
194 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | |
183 | 195 | m4_require([_LT_CMD_RELOAD])dnl |
184 | 196 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
197 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | |
185 | 198 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
186 | 199 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
200 | m4_require([_LT_WITH_SYSROOT])dnl | |
187 | 201 | |
188 | 202 | _LT_CONFIG_LIBTOOL_INIT([ |
189 | 203 | # See if we are running on zsh, and set the options which allow our |
199 | 213 | _LT_CHECK_OBJDIR |
200 | 214 | |
201 | 215 | m4_require([_LT_TAG_COMPILER])dnl |
202 | _LT_PROG_ECHO_BACKSLASH | |
203 | 216 | |
204 | 217 | case $host_os in |
205 | 218 | aix3*) |
213 | 226 | ;; |
214 | 227 | esac |
215 | 228 | |
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 | ||
233 | 229 | # Global variables: |
234 | 230 | ofile=libtool |
235 | 231 | can_build_shared=yes |
269 | 265 | _LT_CONFIG_COMMANDS |
270 | 266 | ])# _LT_SETUP |
271 | 267 | |
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 | ]) | |
272 | 290 | |
273 | 291 | # _LT_PROG_LTMAIN |
274 | 292 | # --------------- |
422 | 440 | # declaration there will have the same value as in `configure'. VARNAME |
423 | 441 | # must have a single quote delimited value for this to work. |
424 | 442 | 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"`']) | |
426 | 444 | |
427 | 445 | |
428 | 446 | # _LT_CONFIG_STATUS_DECLARATIONS |
432 | 450 | # embedded single quotes properly. In configure, this macro expands |
433 | 451 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
434 | 452 | # |
435 | # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | |
453 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | |
436 | 454 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
437 | 455 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
438 | 456 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
531 | 549 | LTCFLAGS='$LTCFLAGS' |
532 | 550 | compiler='$compiler_DEFAULT' |
533 | 551 | |
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 | ||
534 | 560 | # Quote evaled strings. |
535 | 561 | for var in lt_decl_all_varnames([[ \ |
536 | 562 | ]], lt_decl_quote_varnames); do |
537 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
563 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
538 | 564 | *[[\\\\\\\`\\"\\\$]]*) |
539 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
565 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
540 | 566 | ;; |
541 | 567 | *) |
542 | 568 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
547 | 573 | # Double-quote double-evaled strings. |
548 | 574 | for var in lt_decl_all_varnames([[ \ |
549 | 575 | ]], lt_decl_dquote_varnames); do |
550 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
576 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
551 | 577 | *[[\\\\\\\`\\"\\\$]]*) |
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\\"\\\`\\\\\\"" | |
553 | 579 | ;; |
554 | 580 | *) |
555 | 581 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
557 | 583 | esac |
558 | 584 | done |
559 | 585 | |
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 | ||
567 | 586 | _LT_OUTPUT_LIBTOOL_INIT |
568 | 587 | ]) |
569 | 588 | |
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 | |
570 | 618 | |
571 | 619 | # LT_OUTPUT |
572 | 620 | # --------- |
576 | 624 | AC_DEFUN([LT_OUTPUT], |
577 | 625 | [: ${CONFIG_LT=./config.lt} |
578 | 626 | 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 | |
584 | 631 | 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 | |
593 | 632 | exec AS_MESSAGE_LOG_FD>>config.log |
594 | 633 | { |
595 | 634 | echo |
615 | 654 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
616 | 655 | configured by $[0], generated by m4_PACKAGE_STRING. |
617 | 656 | |
618 | Copyright (C) 2008 Free Software Foundation, Inc. | |
657 | Copyright (C) 2011 Free Software Foundation, Inc. | |
619 | 658 | This config.lt script is free software; the Free Software Foundation |
620 | 659 | gives unlimited permision to copy, distribute and modify it." |
621 | 660 | |
660 | 699 | # appending to config.log, which fails on DOS, as config.log is still kept |
661 | 700 | # open by configure. Here we exec the FD to /dev/null, effectively closing |
662 | 701 | # 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) | |
672 | 709 | ])# LT_OUTPUT |
673 | 710 | |
674 | 711 | |
731 | 768 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
732 | 769 | # text mode, it properly converts lines to CR/LF. This bash problem |
733 | 770 | # 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" || | |
743 | 777 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
744 | 778 | chmod +x "$ofile" |
745 | 779 | ], |
784 | 818 | m4_case([$1], |
785 | 819 | [C], [_LT_LANG(C)], |
786 | 820 | [C++], [_LT_LANG(CXX)], |
821 | [Go], [_LT_LANG(GO)], | |
787 | 822 | [Java], [_LT_LANG(GCJ)], |
788 | 823 | [Fortran 77], [_LT_LANG(F77)], |
789 | 824 | [Fortran], [_LT_LANG(FC)], |
803 | 838 | m4_define([_LT_LANG_]$1[_enabled], [])dnl |
804 | 839 | _LT_LANG_$1_CONFIG($1)])dnl |
805 | 840 | ])# _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 | |
806 | 864 | |
807 | 865 | |
808 | 866 | # _LT_LANG_DEFAULT_CONFIG |
835 | 893 | m4_ifdef([LT_PROG_GCJ], |
836 | 894 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
837 | 895 | |
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 | ||
838 | 900 | AC_PROVIDE_IFELSE([LT_PROG_RC], |
839 | 901 | [LT_LANG(RC)], |
840 | 902 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
845 | 907 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
846 | 908 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
847 | 909 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
910 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | |
848 | 911 | dnl aclocal-1.4 backwards compatibility: |
849 | 912 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
850 | 913 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
851 | 914 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
852 | 915 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
916 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | |
853 | 917 | |
854 | 918 | |
855 | 919 | # _LT_TAG_COMPILER |
935 | 999 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
936 | 1000 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
937 | 1001 | _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 | |
939 | 1009 | lt_cv_apple_cc_single_mod=yes |
940 | 1010 | else |
941 | 1011 | cat conftest.err >&AS_MESSAGE_LOG_FD |
943 | 1013 | rm -rf libconftest.dylib* |
944 | 1014 | rm -f conftest.* |
945 | 1015 | fi]) |
1016 | ||
946 | 1017 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
947 | 1018 | [lt_cv_ld_exported_symbols_list], |
948 | 1019 | [lt_cv_ld_exported_symbols_list=no |
953 | 1024 | [lt_cv_ld_exported_symbols_list=yes], |
954 | 1025 | [lt_cv_ld_exported_symbols_list=no]) |
955 | 1026 | 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 | |
956 | 1055 | ]) |
957 | 1056 | case $host_os in |
958 | 1057 | rhapsody* | darwin1.[[012]]) |
981 | 1080 | else |
982 | 1081 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
983 | 1082 | fi |
984 | if test "$DSYMUTIL" != ":"; then | |
1083 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
985 | 1084 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
986 | 1085 | else |
987 | 1086 | _lt_dsymutil= |
991 | 1090 | ]) |
992 | 1091 | |
993 | 1092 | |
994 | # _LT_DARWIN_LINKER_FEATURES | |
995 | # -------------------------- | |
1093 | # _LT_DARWIN_LINKER_FEATURES([TAG]) | |
1094 | # --------------------------------- | |
996 | 1095 | # Checks for linker and compiler features on darwin |
997 | 1096 | m4_defun([_LT_DARWIN_LINKER_FEATURES], |
998 | 1097 | [ |
1001 | 1100 | _LT_TAGVAR(hardcode_direct, $1)=no |
1002 | 1101 | _LT_TAGVAR(hardcode_automatic, $1)=yes |
1003 | 1102 | _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 | |
1005 | 1110 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
1006 | 1111 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
1007 | 1112 | case $cc_basename in |
1009 | 1114 | *) _lt_dar_can_shared=$GCC ;; |
1010 | 1115 | esac |
1011 | 1116 | if test "$_lt_dar_can_shared" = "yes"; then |
1012 | output_verbose_link_cmd=echo | |
1117 | output_verbose_link_cmd=func_echo_all | |
1013 | 1118 | _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
1014 | 1119 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1015 | 1120 | _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
1025 | 1130 | fi |
1026 | 1131 | ]) |
1027 | 1132 | |
1028 | # _LT_SYS_MODULE_PATH_AIX | |
1029 | # ----------------------- | |
1133 | # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | |
1134 | # ---------------------------------- | |
1030 | 1135 | # Links a minimal program and checks the executable |
1031 | 1136 | # for the system default hardcoded library path. In most cases, |
1032 | 1137 | # this is /usr/lib:/lib, but when the MPI compilers are used |
1033 | 1138 | # the location of the communication and MPI libs are included too. |
1034 | 1139 | # If we don't find anything, use the default library path according |
1035 | 1140 | # 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. | |
1036 | 1143 | m4_defun([_LT_SYS_MODULE_PATH_AIX], |
1037 | 1144 | [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 | |
1052 | 1168 | ])# _LT_SYS_MODULE_PATH_AIX |
1053 | 1169 | |
1054 | 1170 | |
1055 | 1171 | # _LT_SHELL_INIT(ARG) |
1056 | 1172 | # ------------------- |
1057 | 1173 | 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 | ||
1064 | 1177 | |
1065 | 1178 | |
1066 | 1179 | # _LT_PROG_ECHO_BACKSLASH |
1067 | 1180 | # ----------------------- |
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). | |
1070 | 1185 | 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]) ;; | |
1080 | 1219 | esac |
1081 | 1220 | |
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 | ||
1219 | 1231 | _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]) | |
1222 | 1233 | ])# _LT_PROG_ECHO_BACKSLASH |
1223 | 1234 | |
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.])]) | |
1224 | 1268 | |
1225 | 1269 | # _LT_ENABLE_LOCK |
1226 | 1270 | # --------------- |
1250 | 1294 | ;; |
1251 | 1295 | *-*-irix6*) |
1252 | 1296 | # Find out which ABI we are using. |
1253 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
1297 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | |
1254 | 1298 | if AC_TRY_EVAL(ac_compile); then |
1255 | 1299 | if test "$lt_cv_prog_gnu_ld" = yes; then |
1256 | 1300 | case `/usr/bin/file conftest.$ac_objext` in |
1343 | 1387 | CFLAGS="$SAVE_CFLAGS" |
1344 | 1388 | fi |
1345 | 1389 | ;; |
1346 | sparc*-*solaris*) | |
1390 | *-*solaris*) | |
1347 | 1391 | # Find out which ABI we are using. |
1348 | 1392 | echo 'int i;' > conftest.$ac_ext |
1349 | 1393 | if AC_TRY_EVAL(ac_compile); then |
1350 | 1394 | case `/usr/bin/file conftest.o` in |
1351 | 1395 | *64-bit*) |
1352 | 1396 | 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 | ;; | |
1354 | 1411 | *) |
1355 | 1412 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
1356 | 1413 | LD="${LD-ld} -64" |
1368 | 1425 | ])# _LT_ENABLE_LOCK |
1369 | 1426 | |
1370 | 1427 | |
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 | ||
1371 | 1465 | # _LT_CMD_OLD_ARCHIVE |
1372 | 1466 | # ------------------- |
1373 | 1467 | 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 | |
1379 | 1469 | |
1380 | 1470 | AC_CHECK_TOOL(STRIP, strip, :) |
1381 | 1471 | test -z "$STRIP" && STRIP=: |
1394 | 1484 | if test -n "$RANLIB"; then |
1395 | 1485 | case $host_os in |
1396 | 1486 | openbsd*) |
1397 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
1487 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
1398 | 1488 | ;; |
1399 | 1489 | *) |
1400 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
1490 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
1401 | 1491 | ;; |
1402 | 1492 | esac |
1403 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
1493 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
1404 | 1494 | fi |
1495 | ||
1496 | case $host_os in | |
1497 | darwin*) | |
1498 | lock_old_archive_extraction=yes ;; | |
1499 | *) | |
1500 | lock_old_archive_extraction=no ;; | |
1501 | esac | |
1405 | 1502 | _LT_DECL([], [old_postinstall_cmds], [2]) |
1406 | 1503 | _LT_DECL([], [old_postuninstall_cmds], [2]) |
1407 | 1504 | _LT_TAGDECL([], [old_archive_cmds], [2], |
1408 | 1505 | [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]) | |
1409 | 1508 | ])# _LT_CMD_OLD_ARCHIVE |
1410 | 1509 | |
1411 | 1510 | |
1430 | 1529 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1431 | 1530 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1432 | 1531 | -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) | |
1434 | 1533 | (eval "$lt_compile" 2>conftest.err) |
1435 | 1534 | ac_status=$? |
1436 | 1535 | 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 | |
1438 | 1537 | if (exit $ac_status) && test -s "$ac_outfile"; then |
1439 | 1538 | # The compiler can only warn and ignore the option if not recognized |
1440 | 1539 | # 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 | |
1442 | 1541 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1443 | 1542 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
1444 | 1543 | $2=yes |
1478 | 1577 | if test -s conftest.err; then |
1479 | 1578 | # Append any errors to the config.log. |
1480 | 1579 | 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 | |
1482 | 1581 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1483 | 1582 | if diff conftest.exp conftest.er2 >/dev/null; then |
1484 | 1583 | $2=yes |
1538 | 1637 | # the test eventually succeeds (with a max line length of 256k). |
1539 | 1638 | # Instead, let's just punt: use the minimum linelength reported by |
1540 | 1639 | # 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. | |
1541 | 1645 | lt_cv_sys_max_cmd_len=8192; |
1542 | 1646 | ;; |
1543 | 1647 | |
1564 | 1668 | interix*) |
1565 | 1669 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
1566 | 1670 | 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 | |
1567 | 1676 | ;; |
1568 | 1677 | |
1569 | 1678 | osf*) |
1605 | 1714 | # If test is not a shell built-in, we'll probably end up computing a |
1606 | 1715 | # maximum length that is only half of the actual maximum length, but |
1607 | 1716 | # 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 && | |
1610 | 1719 | test $i != 17 # 1/2 MB should be enough |
1611 | 1720 | do |
1612 | 1721 | i=`expr $i + 1` |
1657 | 1766 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
1658 | 1767 | lt_status=$lt_dlunknown |
1659 | 1768 | cat > conftest.$ac_ext <<_LT_EOF |
1660 | [#line __oline__ "configure" | |
1769 | [#line $LINENO "configure" | |
1661 | 1770 | #include "confdefs.h" |
1662 | 1771 | |
1663 | 1772 | #if HAVE_DLFCN_H |
1698 | 1807 | # endif |
1699 | 1808 | #endif |
1700 | 1809 | |
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; } | |
1702 | 1817 | int main () |
1703 | 1818 | { |
1704 | 1819 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
1707 | 1822 | if (self) |
1708 | 1823 | { |
1709 | 1824 | 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 | } | |
1711 | 1830 | /* dlclose (self); */ |
1712 | 1831 | } |
1713 | 1832 | else |
1883 | 2002 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1884 | 2003 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1885 | 2004 | -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) | |
1887 | 2006 | (eval "$lt_compile" 2>out/conftest.err) |
1888 | 2007 | ac_status=$? |
1889 | 2008 | 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 | |
1891 | 2010 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
1892 | 2011 | then |
1893 | 2012 | # The compiler can only warn and ignore the option if not recognized |
1894 | 2013 | # 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 | |
1896 | 2015 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
1897 | 2016 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
1898 | 2017 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
2051 | 2170 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2052 | 2171 | m4_require([_LT_DECL_OBJDUMP])dnl |
2053 | 2172 | m4_require([_LT_DECL_SED])dnl |
2173 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
2054 | 2174 | AC_MSG_CHECKING([dynamic linker characteristics]) |
2055 | 2175 | m4_if([$1], |
2056 | 2176 | [], [ |
2059 | 2179 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2060 | 2180 | *) lt_awk_arg="/^libraries:/" ;; |
2061 | 2181 | 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 | *\;*) | |
2064 | 2189 | # if the path contains ";" then we assume it to be the separator |
2065 | 2190 | # otherwise default to the standard path separator (i.e. ":") - it is |
2066 | 2191 | # assumed that no part of a normal pathname contains ";" but that should |
2067 | 2192 | # 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 | |
2072 | 2199 | # Ok, now we have the path, separated by spaces, we can step through it |
2073 | 2200 | # and add multilib dir if necessary. |
2074 | 2201 | lt_tmp_lt_search_path_spec= |
2081 | 2208 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2082 | 2209 | fi |
2083 | 2210 | 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 ' | |
2085 | 2212 | BEGIN {RS=" "; FS="/|\n";} { |
2086 | 2213 | lt_foo=""; |
2087 | 2214 | lt_count=0; |
2101 | 2228 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2102 | 2229 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2103 | 2230 | }'` |
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` | |
2105 | 2238 | else |
2106 | 2239 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2107 | 2240 | fi]) |
2127 | 2260 | |
2128 | 2261 | case $host_os in |
2129 | 2262 | aix3*) |
2130 | version_type=linux | |
2263 | version_type=linux # correct to gnu/linux during the next big refactor | |
2131 | 2264 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2132 | 2265 | shlibpath_var=LIBPATH |
2133 | 2266 | |
2136 | 2269 | ;; |
2137 | 2270 | |
2138 | 2271 | aix[[4-9]]*) |
2139 | version_type=linux | |
2272 | version_type=linux # correct to gnu/linux during the next big refactor | |
2140 | 2273 | need_lib_prefix=no |
2141 | 2274 | need_version=no |
2142 | 2275 | hardcode_into_libs=yes |
2189 | 2322 | m68k) |
2190 | 2323 | library_names_spec='$libname.ixlibrary $libname.a' |
2191 | 2324 | # 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' | |
2193 | 2326 | ;; |
2194 | 2327 | esac |
2195 | 2328 | ;; |
2201 | 2334 | ;; |
2202 | 2335 | |
2203 | 2336 | bsdi[[45]]*) |
2204 | version_type=linux | |
2337 | version_type=linux # correct to gnu/linux during the next big refactor | |
2205 | 2338 | need_version=no |
2206 | 2339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2207 | 2340 | soname_spec='${libname}${release}${shared_ext}$major' |
2220 | 2353 | need_version=no |
2221 | 2354 | need_lib_prefix=no |
2222 | 2355 | |
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 | |
2225 | 2359 | library_names_spec='$libname.dll.a' |
2226 | 2360 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2227 | 2361 | postinstall_cmds='base_file=`basename \${file}`~ |
2242 | 2376 | cygwin*) |
2243 | 2377 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2244 | 2378 | 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"]) | |
2246 | 2381 | ;; |
2247 | 2382 | mingw* | cegcc*) |
2248 | 2383 | # MinGW DLLs use traditional 'lib' prefix |
2249 | 2384 | 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 | |
2262 | 2385 | ;; |
2263 | 2386 | pw32*) |
2264 | 2387 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
2265 | 2388 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2266 | 2389 | ;; |
2267 | 2390 | esac |
2391 | dynamic_linker='Win32 ld.exe' | |
2268 | 2392 | ;; |
2269 | 2393 | |
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 | ||
2270 | 2450 | *) |
2451 | # Assume MSVC wrapper | |
2271 | 2452 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
2453 | dynamic_linker='Win32 ld.exe' | |
2272 | 2454 | ;; |
2273 | 2455 | esac |
2274 | dynamic_linker='Win32 ld.exe' | |
2275 | 2456 | # FIXME: first we should search . and the directory the executable is in |
2276 | 2457 | shlibpath_var=PATH |
2277 | 2458 | ;; |
2292 | 2473 | ;; |
2293 | 2474 | |
2294 | 2475 | dgux*) |
2295 | version_type=linux | |
2476 | version_type=linux # correct to gnu/linux during the next big refactor | |
2296 | 2477 | need_lib_prefix=no |
2297 | 2478 | need_version=no |
2298 | 2479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
2299 | 2480 | soname_spec='${libname}${release}${shared_ext}$major' |
2300 | 2481 | shlibpath_var=LD_LIBRARY_PATH |
2301 | ;; | |
2302 | ||
2303 | freebsd1*) | |
2304 | dynamic_linker=no | |
2305 | 2482 | ;; |
2306 | 2483 | |
2307 | 2484 | freebsd* | dragonfly*) |
2311 | 2488 | objformat=`/usr/bin/objformat` |
2312 | 2489 | else |
2313 | 2490 | case $host_os in |
2314 | freebsd[[123]]*) objformat=aout ;; | |
2491 | freebsd[[23]].*) objformat=aout ;; | |
2315 | 2492 | *) objformat=elf ;; |
2316 | 2493 | esac |
2317 | 2494 | fi |
2329 | 2506 | esac |
2330 | 2507 | shlibpath_var=LD_LIBRARY_PATH |
2331 | 2508 | case $host_os in |
2332 | freebsd2*) | |
2509 | freebsd2.*) | |
2333 | 2510 | shlibpath_overrides_runpath=yes |
2334 | 2511 | ;; |
2335 | 2512 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
2349 | 2526 | ;; |
2350 | 2527 | |
2351 | 2528 | gnu*) |
2352 | version_type=linux | |
2529 | version_type=linux # correct to gnu/linux during the next big refactor | |
2353 | 2530 | need_lib_prefix=no |
2354 | 2531 | need_version=no |
2355 | 2532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2356 | 2533 | soname_spec='${libname}${release}${shared_ext}$major' |
2357 | 2534 | 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' | |
2358 | 2549 | hardcode_into_libs=yes |
2359 | 2550 | ;; |
2360 | 2551 | |
2400 | 2591 | soname_spec='${libname}${release}${shared_ext}$major' |
2401 | 2592 | ;; |
2402 | 2593 | 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, ... | |
2404 | 2595 | postinstall_cmds='chmod 555 $lib' |
2596 | # or fails outright, so override atomically: | |
2597 | install_override_mode=555 | |
2405 | 2598 | ;; |
2406 | 2599 | |
2407 | 2600 | interix[[3-9]]*) |
2408 | version_type=linux | |
2601 | version_type=linux # correct to gnu/linux during the next big refactor | |
2409 | 2602 | need_lib_prefix=no |
2410 | 2603 | need_version=no |
2411 | 2604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2421 | 2614 | nonstopux*) version_type=nonstopux ;; |
2422 | 2615 | *) |
2423 | 2616 | 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 | |
2425 | 2618 | else |
2426 | 2619 | version_type=irix |
2427 | 2620 | fi ;; |
2458 | 2651 | dynamic_linker=no |
2459 | 2652 | ;; |
2460 | 2653 | |
2461 | # This must be Linux ELF. | |
2654 | # This must be glibc/ELF. | |
2462 | 2655 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2463 | version_type=linux | |
2656 | version_type=linux # correct to gnu/linux during the next big refactor | |
2464 | 2657 | need_lib_prefix=no |
2465 | 2658 | need_version=no |
2466 | 2659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2468 | 2661 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
2469 | 2662 | shlibpath_var=LD_LIBRARY_PATH |
2470 | 2663 | shlibpath_overrides_runpath=no |
2664 | ||
2471 | 2665 | # 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 | |
2481 | 2679 | |
2482 | 2680 | # This implies no fast_install, which is unacceptable. |
2483 | 2681 | # Some rework will be needed to allow for fast_install |
2486 | 2684 | |
2487 | 2685 | # Append ld.so.conf contents to the search path |
2488 | 2686 | 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' ' '` | |
2490 | 2688 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
2491 | 2689 | fi |
2492 | 2690 | |
2497 | 2695 | # people can always --disable-shared, the test was removed, and we |
2498 | 2696 | # assume the GNU/Linux dynamic linker is in use. |
2499 | 2697 | 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' | |
2512 | 2698 | ;; |
2513 | 2699 | |
2514 | 2700 | netbsd*) |
2530 | 2716 | ;; |
2531 | 2717 | |
2532 | 2718 | newsos6) |
2533 | version_type=linux | |
2719 | version_type=linux # correct to gnu/linux during the next big refactor | |
2534 | 2720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2535 | 2721 | shlibpath_var=LD_LIBRARY_PATH |
2536 | 2722 | shlibpath_overrides_runpath=yes |
2599 | 2785 | ;; |
2600 | 2786 | |
2601 | 2787 | solaris*) |
2602 | version_type=linux | |
2788 | version_type=linux # correct to gnu/linux during the next big refactor | |
2603 | 2789 | need_lib_prefix=no |
2604 | 2790 | need_version=no |
2605 | 2791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2624 | 2810 | ;; |
2625 | 2811 | |
2626 | 2812 | sysv4 | sysv4.3*) |
2627 | version_type=linux | |
2813 | version_type=linux # correct to gnu/linux during the next big refactor | |
2628 | 2814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2629 | 2815 | soname_spec='${libname}${release}${shared_ext}$major' |
2630 | 2816 | shlibpath_var=LD_LIBRARY_PATH |
2648 | 2834 | |
2649 | 2835 | sysv4*MP*) |
2650 | 2836 | if test -d /usr/nec ;then |
2651 | version_type=linux | |
2837 | version_type=linux # correct to gnu/linux during the next big refactor | |
2652 | 2838 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
2653 | 2839 | soname_spec='$libname${shared_ext}.$major' |
2654 | 2840 | shlibpath_var=LD_LIBRARY_PATH |
2679 | 2865 | |
2680 | 2866 | tpf*) |
2681 | 2867 | # 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 | |
2683 | 2869 | need_lib_prefix=no |
2684 | 2870 | need_version=no |
2685 | 2871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2689 | 2875 | ;; |
2690 | 2876 | |
2691 | 2877 | uts4*) |
2692 | version_type=linux | |
2878 | version_type=linux # correct to gnu/linux during the next big refactor | |
2693 | 2879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2694 | 2880 | soname_spec='${libname}${release}${shared_ext}$major' |
2695 | 2881 | shlibpath_var=LD_LIBRARY_PATH |
2731 | 2917 | The last name is the one that the linker finds with -lNAME]]) |
2732 | 2918 | _LT_DECL([], [soname_spec], [1], |
2733 | 2919 | [[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]) | |
2734 | 2922 | _LT_DECL([], [postinstall_cmds], [2], |
2735 | 2923 | [Command to use after installation of a shared archive]) |
2736 | 2924 | _LT_DECL([], [postuninstall_cmds], [2], |
2843 | 3031 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2844 | 3032 | m4_require([_LT_DECL_SED])dnl |
2845 | 3033 | m4_require([_LT_DECL_EGREP])dnl |
3034 | m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | |
2846 | 3035 | |
2847 | 3036 | AC_ARG_WITH([gnu-ld], |
2848 | 3037 | [AS_HELP_STRING([--with-gnu-ld], |
2964 | 3153 | esac |
2965 | 3154 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
2966 | 3155 | case $host_os in |
3156 | cygwin* | mingw* | pw32* | cegcc*) | |
3157 | if test "$GCC" != yes; then | |
3158 | reload_cmds=false | |
3159 | fi | |
3160 | ;; | |
2967 | 3161 | darwin*) |
2968 | 3162 | if test "$GCC" = yes; then |
2969 | 3163 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
2972 | 3166 | fi |
2973 | 3167 | ;; |
2974 | 3168 | 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 | |
2977 | 3171 | ])# _LT_CMD_RELOAD |
2978 | 3172 | |
2979 | 3173 | |
3025 | 3219 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3026 | 3220 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3027 | 3221 | # 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 | |
3029 | 3224 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3030 | 3225 | lt_cv_file_magic_cmd='func_win32_libid' |
3031 | 3226 | 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)' | |
3033 | 3229 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3034 | 3230 | fi |
3035 | 3231 | ;; |
3036 | 3232 | |
3037 | cegcc) | |
3233 | cegcc*) | |
3038 | 3234 | # use the weaker test based on 'objdump'. See mingw*. |
3039 | 3235 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
3040 | 3236 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3064 | 3260 | lt_cv_deplibs_check_method=pass_all |
3065 | 3261 | ;; |
3066 | 3262 | |
3263 | haiku*) | |
3264 | lt_cv_deplibs_check_method=pass_all | |
3265 | ;; | |
3266 | ||
3067 | 3267 | hpux10.20* | hpux11*) |
3068 | 3268 | lt_cv_file_magic_cmd=/usr/bin/file |
3069 | 3269 | case $host_cpu in |
3072 | 3272 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3073 | 3273 | ;; |
3074 | 3274 | 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]'] | |
3076 | 3276 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3077 | 3277 | ;; |
3078 | 3278 | *) |
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' | |
3080 | 3280 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3081 | 3281 | ;; |
3082 | 3282 | esac |
3097 | 3297 | lt_cv_deplibs_check_method=pass_all |
3098 | 3298 | ;; |
3099 | 3299 | |
3100 | # This must be Linux ELF. | |
3300 | # This must be glibc/ELF. | |
3101 | 3301 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
3102 | 3302 | lt_cv_deplibs_check_method=pass_all |
3103 | 3303 | ;; |
3104 | 3304 | |
3105 | netbsd* | netbsdelf*-gnu) | |
3305 | netbsd*) | |
3106 | 3306 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3107 | 3307 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3108 | 3308 | else |
3176 | 3376 | ;; |
3177 | 3377 | esac |
3178 | 3378 | ]) |
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 | ||
3179 | 3394 | file_magic_cmd=$lt_cv_file_magic_cmd |
3180 | 3395 | deplibs_check_method=$lt_cv_deplibs_check_method |
3181 | 3396 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3183 | 3398 | _LT_DECL([], [deplibs_check_method], [1], |
3184 | 3399 | [Method to check whether dependent libraries are shared objects]) |
3185 | 3400 | _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"]) | |
3187 | 3406 | ])# _LT_CHECK_MAGIC_METHOD |
3188 | 3407 | |
3189 | 3408 | |
3240 | 3459 | NM="$lt_cv_path_NM" |
3241 | 3460 | else |
3242 | 3461 | # 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 | |
3244 | 3475 | AC_SUBST([DUMPBIN]) |
3245 | 3476 | if test "$DUMPBIN" != ":"; then |
3246 | 3477 | NM="$DUMPBIN" |
3253 | 3484 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
3254 | 3485 | [lt_cv_nm_interface="BSD nm" |
3255 | 3486 | 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) | |
3257 | 3488 | (eval "$ac_compile" 2>conftest.err) |
3258 | 3489 | 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) | |
3260 | 3491 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
3261 | 3492 | 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) | |
3263 | 3494 | cat conftest.out >&AS_MESSAGE_LOG_FD |
3264 | 3495 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
3265 | 3496 | lt_cv_nm_interface="MS dumpbin" |
3273 | 3504 | dnl aclocal-1.4 backwards compatibility: |
3274 | 3505 | dnl AC_DEFUN([AM_PROG_NM], []) |
3275 | 3506 | 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 | |
3276 | 3568 | |
3277 | 3569 | |
3278 | 3570 | # LT_LIB_M |
3282 | 3574 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3283 | 3575 | LIBM= |
3284 | 3576 | case $host in |
3285 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | |
3577 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
3286 | 3578 | # These system don't have libm, or don't need it |
3287 | 3579 | ;; |
3288 | 3580 | *-ncr-sysv4.3*) |
3310 | 3602 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
3311 | 3603 | |
3312 | 3604 | 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 | |
3314 | 3611 | |
3315 | 3612 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
3316 | 3613 | lt_cv_prog_compiler_rtti_exceptions, |
3327 | 3624 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
3328 | 3625 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3329 | 3626 | AC_REQUIRE([AC_PROG_CC])dnl |
3627 | AC_REQUIRE([AC_PROG_AWK])dnl | |
3330 | 3628 | AC_REQUIRE([LT_PATH_NM])dnl |
3331 | 3629 | AC_REQUIRE([LT_PATH_LD])dnl |
3332 | 3630 | m4_require([_LT_DECL_SED])dnl |
3394 | 3692 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
3395 | 3693 | |
3396 | 3694 | # 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'" | |
3399 | 3697 | |
3400 | 3698 | # Handle CRLF in mingw tool chain |
3401 | 3699 | opt_cr= |
3419 | 3717 | # which start with @ or ?. |
3420 | 3718 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
3421 | 3719 | " {last_section=section; section=\$ 3};"\ |
3720 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
3422 | 3721 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
3423 | 3722 | " \$ 0!~/External *\|/{next};"\ |
3424 | 3723 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
3431 | 3730 | else |
3432 | 3731 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
3433 | 3732 | fi |
3733 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
3434 | 3734 | |
3435 | 3735 | # Check to see that the pipe works correctly. |
3436 | 3736 | pipe_works=no |
3452 | 3752 | if AC_TRY_EVAL(ac_compile); then |
3453 | 3753 | # Now try to grab the symbols. |
3454 | 3754 | 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 | |
3456 | 3756 | # Try sorting and uniquifying the output. |
3457 | 3757 | if sort "$nlist" | uniq > "$nlist"T; then |
3458 | 3758 | mv -f "$nlist"T "$nlist" |
3464 | 3764 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
3465 | 3765 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
3466 | 3766 | 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 | ||
3467 | 3779 | #ifdef __cplusplus |
3468 | 3780 | extern "C" { |
3469 | 3781 | #endif |
3475 | 3787 | cat <<_LT_EOF >> conftest.$ac_ext |
3476 | 3788 | |
3477 | 3789 | /* The mapping between symbol names and symbols. */ |
3478 | const struct { | |
3790 | LT@&t@_DLSYM_CONST struct { | |
3479 | 3791 | const char *name; |
3480 | 3792 | void *address; |
3481 | 3793 | } |
3501 | 3813 | _LT_EOF |
3502 | 3814 | # Now try linking the two files. |
3503 | 3815 | 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 | |
3506 | 3818 | LIBS="conftstm.$ac_objext" |
3507 | 3819 | CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
3508 | 3820 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
3509 | 3821 | pipe_works=yes |
3510 | 3822 | fi |
3511 | LIBS="$lt_save_LIBS" | |
3512 | CFLAGS="$lt_save_CFLAGS" | |
3823 | LIBS=$lt_globsym_save_LIBS | |
3824 | CFLAGS=$lt_globsym_save_CFLAGS | |
3513 | 3825 | else |
3514 | 3826 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
3515 | 3827 | fi |
3542 | 3854 | AC_MSG_RESULT(ok) |
3543 | 3855 | fi |
3544 | 3856 | |
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 | ||
3545 | 3864 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
3546 | 3865 | [Take the output of nm and produce a listing of raw symbols and C names]) |
3547 | 3866 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
3552 | 3871 | _LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
3553 | 3872 | [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
3554 | 3873 | [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]) | |
3555 | 3876 | ]) # _LT_CMD_GLOBAL_SYMBOLS |
3556 | 3877 | |
3557 | 3878 | |
3563 | 3884 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3564 | 3885 | _LT_TAGVAR(lt_prog_compiler_static, $1)= |
3565 | 3886 | |
3566 | AC_MSG_CHECKING([for $compiler option to produce PIC]) | |
3567 | 3887 | m4_if([$1], [CXX], [ |
3568 | 3888 | # C++ specific cases for pic, static, wl, etc. |
3569 | 3889 | if test "$GXX" = yes; then |
3613 | 3933 | *djgpp*) |
3614 | 3934 | # DJGPP does not support shared libraries at all |
3615 | 3935 | _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)= | |
3616 | 3941 | ;; |
3617 | 3942 | interix[[3-9]]*) |
3618 | 3943 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
3662 | 3987 | # _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" |
3663 | 3988 | ;; |
3664 | 3989 | 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']) | |
3665 | 3996 | ;; |
3666 | 3997 | dgux*) |
3667 | 3998 | case $cc_basename in |
3752 | 4083 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3753 | 4084 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3754 | 4085 | ;; |
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 | |
3757 | 4088 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3758 | 4089 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
3759 | 4090 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
3783 | 4114 | ;; |
3784 | 4115 | esac |
3785 | 4116 | ;; |
3786 | netbsd* | netbsdelf*-gnu) | |
4117 | netbsd*) | |
3787 | 4118 | ;; |
3788 | 4119 | *qnx* | *nto*) |
3789 | 4120 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
3815 | 4146 | ;; |
3816 | 4147 | solaris*) |
3817 | 4148 | case $cc_basename in |
3818 | CC*) | |
4149 | CC* | sunCC*) | |
3819 | 4150 | # Sun C++ 4.2, 5.x and Centerline C++ |
3820 | 4151 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3821 | 4152 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3919 | 4250 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3920 | 4251 | ;; |
3921 | 4252 | |
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 | ||
3922 | 4259 | hpux*) |
3923 | 4260 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
3924 | 4261 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
3959 | 4296 | |
3960 | 4297 | *) |
3961 | 4298 | _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 | |
3962 | 4308 | ;; |
3963 | 4309 | esac |
3964 | 4310 | else |
4024 | 4370 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
4025 | 4371 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
4026 | 4372 | ;; |
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*) | |
4028 | 4380 | # Portland Group compilers (*not* the Pentium gcc compiler, |
4029 | 4381 | # which looks to be a dead project) |
4030 | 4382 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4036 | 4388 | # All Alpha code is PIC. |
4037 | 4389 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4038 | 4390 | ;; |
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 | |
4041 | 4393 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4042 | 4394 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4043 | 4395 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4044 | 4396 | ;; |
4045 | 4397 | *) |
4046 | 4398 | 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 | ;; | |
4047 | 4410 | *Sun\ C*) |
4048 | 4411 | # Sun C 5.9 |
4049 | 4412 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4050 | 4413 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4051 | 4414 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4052 | 4415 | ;; |
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' | |
4056 | 4424 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4057 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
4058 | 4425 | ;; |
4059 | 4426 | esac |
4060 | 4427 | ;; |
4086 | 4453 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4087 | 4454 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4088 | 4455 | case $cc_basename in |
4089 | f77* | f90* | f95*) | |
4456 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
4090 | 4457 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
4091 | 4458 | *) |
4092 | 4459 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
4143 | 4510 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
4144 | 4511 | ;; |
4145 | 4512 | 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) | |
4149 | 4518 | |
4150 | 4519 | # |
4151 | 4520 | # Check to make sure the PIC flag actually works. |
4164 | 4533 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
4165 | 4534 | [Additional compiler flags for building library objects]) |
4166 | 4535 | |
4536 | _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | |
4537 | [How to pass a linker flag through the compiler]) | |
4167 | 4538 | # |
4168 | 4539 | # Check to make sure the static flag actually works. |
4169 | 4540 | # |
4184 | 4555 | m4_defun([_LT_LINKER_SHLIBS], |
4185 | 4556 | [AC_REQUIRE([LT_PATH_LD])dnl |
4186 | 4557 | AC_REQUIRE([LT_PATH_NM])dnl |
4558 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
4187 | 4559 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4188 | 4560 | m4_require([_LT_DECL_EGREP])dnl |
4189 | 4561 | m4_require([_LT_DECL_SED])dnl |
4192 | 4564 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4193 | 4565 | m4_if([$1], [CXX], [ |
4194 | 4566 | _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]_.*'] | |
4195 | 4568 | case $host_os in |
4196 | 4569 | aix[[4-9]]*) |
4197 | 4570 | # If we're using GNU nm, then we don't want the "-C" option. |
4198 | 4571 | # -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". | |
4199 | 4574 | 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' | |
4201 | 4576 | else |
4202 | 4577 | _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' |
4203 | 4578 | fi |
4204 | 4579 | ;; |
4205 | 4580 | pw32*) |
4206 | 4581 | _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4207 | ;; | |
4582 | ;; | |
4208 | 4583 | 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 | ;; | |
4214 | 4594 | *) |
4215 | 4595 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4216 | ;; | |
4596 | ;; | |
4217 | 4597 | esac |
4218 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
4219 | 4598 | ], [ |
4220 | 4599 | runpath_var= |
4221 | 4600 | _LT_TAGVAR(allow_undefined_flag, $1)= |
4230 | 4609 | _LT_TAGVAR(hardcode_direct, $1)=no |
4231 | 4610 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
4232 | 4611 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4233 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
4234 | 4612 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4235 | 4613 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
4236 | 4614 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4275 | 4653 | openbsd*) |
4276 | 4654 | with_gnu_ld=no |
4277 | 4655 | ;; |
4278 | linux* | k*bsd*-gnu) | |
4279 | _LT_TAGVAR(link_all_deplibs, $1)=no | |
4280 | ;; | |
4281 | 4656 | esac |
4282 | 4657 | |
4283 | 4658 | _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 | |
4284 | 4663 | 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 | |
4285 | 4686 | # If archive_cmds runs LD, not CC, wlarc should be empty |
4286 | 4687 | wlarc='${wl}' |
4287 | 4688 | |
4315 | 4716 | _LT_TAGVAR(ld_shlibs, $1)=no |
4316 | 4717 | cat <<_LT_EOF 1>&2 |
4317 | 4718 | |
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 | |
4319 | 4720 | *** to be unable to reliably create shared libraries on AIX. |
4320 | 4721 | *** 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. | |
4323 | 4725 | |
4324 | 4726 | _LT_EOF |
4325 | 4727 | fi |
4355 | 4757 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
4356 | 4758 | # as there is no search path for DLLs. |
4357 | 4759 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4760 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
4358 | 4761 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4359 | 4762 | _LT_TAGVAR(always_export_symbols, $1)=no |
4360 | 4763 | _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'] | |
4362 | 4766 | |
4363 | 4767 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
4364 | 4768 | _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' |
4376 | 4780 | fi |
4377 | 4781 | ;; |
4378 | 4782 | |
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 | ||
4379 | 4788 | interix[[3-9]]*) |
4380 | 4789 | _LT_TAGVAR(hardcode_direct, $1)=no |
4381 | 4790 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4401 | 4810 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
4402 | 4811 | && test "$tmp_diet" = no |
4403 | 4812 | then |
4404 | tmp_addflag= | |
4813 | tmp_addflag=' $pic_flag' | |
4405 | 4814 | tmp_sharedflag='-shared' |
4406 | 4815 | case $cc_basename,$host_cpu in |
4407 | 4816 | 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' | |
4409 | 4818 | tmp_addflag=' $pic_flag' |
4410 | 4819 | ;; |
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' | |
4413 | 4823 | tmp_addflag=' $pic_flag -Mnomain' ;; |
4414 | 4824 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
4415 | 4825 | tmp_addflag=' -i_dynamic' ;; |
4420 | 4830 | lf95*) # Lahey Fortran 8.1 |
4421 | 4831 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4422 | 4832 | 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) | |
4424 | 4834 | tmp_sharedflag='-qmkshrobj' |
4425 | 4835 | 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 | ;; | |
4426 | 4840 | esac |
4427 | 4841 | case `$CC -V 2>&1 | sed 5q` in |
4428 | 4842 | *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' | |
4430 | 4844 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
4431 | 4845 | tmp_sharedflag='-G' ;; |
4432 | 4846 | *Sun\ F*) # Sun Fortran 8.3 |
4442 | 4856 | fi |
4443 | 4857 | |
4444 | 4858 | case $cc_basename in |
4445 | xlf*) | |
4859 | xlf* | bgf* | bgxlf* | mpixlf*) | |
4446 | 4860 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
4447 | 4861 | _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' | |
4451 | 4864 | if test "x$supports_anon_versioning" = xyes; then |
4452 | 4865 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
4453 | 4866 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
4454 | 4867 | 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' | |
4456 | 4869 | fi |
4457 | 4870 | ;; |
4458 | 4871 | esac |
4461 | 4874 | fi |
4462 | 4875 | ;; |
4463 | 4876 | |
4464 | netbsd* | netbsdelf*-gnu) | |
4877 | netbsd*) | |
4465 | 4878 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4466 | 4879 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
4467 | 4880 | wlarc= |
4468 | 4881 | 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' | |
4471 | 4884 | fi |
4472 | 4885 | ;; |
4473 | 4886 | |
4485 | 4898 | |
4486 | 4899 | _LT_EOF |
4487 | 4900 | 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' | |
4490 | 4903 | else |
4491 | 4904 | _LT_TAGVAR(ld_shlibs, $1)=no |
4492 | 4905 | fi |
4532 | 4945 | |
4533 | 4946 | *) |
4534 | 4947 | 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' | |
4537 | 4950 | else |
4538 | 4951 | _LT_TAGVAR(ld_shlibs, $1)=no |
4539 | 4952 | fi |
4573 | 4986 | else |
4574 | 4987 | # If we're using GNU nm, then we don't want the "-C" option. |
4575 | 4988 | # -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". | |
4576 | 4991 | 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' | |
4578 | 4993 | else |
4579 | 4994 | _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' |
4580 | 4995 | fi |
4636 | 5051 | if test "$aix_use_runtimelinking" = yes; then |
4637 | 5052 | shared_flag="$shared_flag "'${wl}-G' |
4638 | 5053 | fi |
4639 | _LT_TAGVAR(link_all_deplibs, $1)=no | |
4640 | 5054 | else |
4641 | 5055 | # not using gcc |
4642 | 5056 | if test "$host_cpu" = ia64; then |
4662 | 5076 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
4663 | 5077 | # Determine the default libpath from the value encoded in an |
4664 | 5078 | # empty executable. |
4665 | _LT_SYS_MODULE_PATH_AIX | |
5079 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
4666 | 5080 | _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" | |
4668 | 5082 | else |
4669 | 5083 | if test "$host_cpu" = ia64; then |
4670 | 5084 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4673 | 5087 | else |
4674 | 5088 | # Determine the default libpath from the value encoded in an |
4675 | 5089 | # empty executable. |
4676 | _LT_SYS_MODULE_PATH_AIX | |
5090 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
4677 | 5091 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4678 | 5092 | # Warning - without using the other run time loading flags, |
4679 | 5093 | # -berok will link without error, but may produce a broken library. |
4680 | 5094 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
4681 | 5095 | _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 | |
4684 | 5103 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
4685 | 5104 | # This is similar to how AIX traditionally builds its shared libraries. |
4686 | 5105 | _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' |
4712 | 5131 | # Microsoft Visual C++. |
4713 | 5132 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
4714 | 5133 | # 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 | |
4729 | 5192 | ;; |
4730 | 5193 | |
4731 | 5194 | darwin* | rhapsody*) |
4736 | 5199 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4737 | 5200 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4738 | 5201 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4739 | ;; | |
4740 | ||
4741 | freebsd1*) | |
4742 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4743 | 5202 | ;; |
4744 | 5203 | |
4745 | 5204 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
4754 | 5213 | ;; |
4755 | 5214 | |
4756 | 5215 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
4757 | freebsd2*) | |
5216 | freebsd2.*) | |
4758 | 5217 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
4759 | 5218 | _LT_TAGVAR(hardcode_direct, $1)=yes |
4760 | 5219 | _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4763 | 5222 | |
4764 | 5223 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
4765 | 5224 | 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' | |
4767 | 5226 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4768 | 5227 | _LT_TAGVAR(hardcode_direct, $1)=yes |
4769 | 5228 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4771 | 5230 | |
4772 | 5231 | hpux9*) |
4773 | 5232 | 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' | |
4775 | 5234 | else |
4776 | 5235 | _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' |
4777 | 5236 | fi |
4786 | 5245 | ;; |
4787 | 5246 | |
4788 | 5247 | 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' | |
4791 | 5250 | else |
4792 | 5251 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
4793 | 5252 | fi |
4794 | 5253 | if test "$with_gnu_ld" = no; then |
4795 | 5254 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4796 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
4797 | 5255 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4798 | 5256 | _LT_TAGVAR(hardcode_direct, $1)=yes |
4799 | 5257 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
4805 | 5263 | ;; |
4806 | 5264 | |
4807 | 5265 | hpux11*) |
4808 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
5266 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
4809 | 5267 | case $host_cpu in |
4810 | 5268 | hppa*64*) |
4811 | 5269 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4812 | 5270 | ;; |
4813 | 5271 | 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' | |
4815 | 5273 | ;; |
4816 | 5274 | *) |
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' | |
4818 | 5276 | ;; |
4819 | 5277 | esac |
4820 | 5278 | else |
4826 | 5284 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
4827 | 5285 | ;; |
4828 | 5286 | *) |
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']) | |
4830 | 5295 | ;; |
4831 | 5296 | esac |
4832 | 5297 | fi |
4854 | 5319 | |
4855 | 5320 | irix5* | irix6* | nonstopux*) |
4856 | 5321 | 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' | |
4858 | 5323 | # Try to use the -exported_symbol ld option, if it does not |
4859 | 5324 | # work, assume that -exports_file does not work either and |
4860 | 5325 | # 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 | |
4867 | 5347 | 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' | |
4870 | 5350 | fi |
4871 | 5351 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4872 | 5352 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4875 | 5355 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
4876 | 5356 | ;; |
4877 | 5357 | |
4878 | netbsd* | netbsdelf*-gnu) | |
5358 | netbsd*) | |
4879 | 5359 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4880 | 5360 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
4881 | 5361 | else |
4928 | 5408 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4929 | 5409 | _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4930 | 5410 | _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' | |
4932 | 5412 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
4933 | 5413 | ;; |
4934 | 5414 | |
4935 | 5415 | osf3*) |
4936 | 5416 | if test "$GCC" = yes; then |
4937 | 5417 | _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' | |
4939 | 5419 | else |
4940 | 5420 | _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' | |
4942 | 5422 | fi |
4943 | 5423 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4944 | 5424 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4948 | 5428 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
4949 | 5429 | if test "$GCC" = yes; then |
4950 | 5430 | _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' | |
4952 | 5432 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4953 | 5433 | else |
4954 | 5434 | _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' | |
4956 | 5436 | _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' | |
4958 | 5438 | |
4959 | 5439 | # Both c and cxx compiler support -rpath directly |
4960 | 5440 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4967 | 5447 | _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
4968 | 5448 | if test "$GCC" = yes; then |
4969 | 5449 | 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' | |
4971 | 5451 | _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' | |
4973 | 5453 | else |
4974 | 5454 | case `$CC -V 2>&1` in |
4975 | 5455 | *"Compilers 5.0"*) |
5145 | 5625 | # Test whether the compiler implicitly links with -lc since on some |
5146 | 5626 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
5147 | 5627 | # 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) | |
5178 | 5660 | ;; |
5179 | 5661 | esac |
5180 | 5662 | fi |
5211 | 5693 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
5212 | 5694 | [Flag to hardcode $libdir into a binary during linking. |
5213 | 5695 | 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]]) | |
5217 | 5696 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
5218 | 5697 | [Whether we need a single "-rpath" flag with a separated argument]) |
5219 | 5698 | _LT_TAGDECL([], [hardcode_direct], [0], |
5239 | 5718 | to runtime path list]) |
5240 | 5719 | _LT_TAGDECL([], [link_all_deplibs], [0], |
5241 | 5720 | [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]) | |
5244 | 5721 | _LT_TAGDECL([], [always_export_symbols], [0], |
5245 | 5722 | [Set to "yes" if exported symbols are required]) |
5246 | 5723 | _LT_TAGDECL([], [export_symbols_cmds], [2], |
5251 | 5728 | [Symbols that must always be exported]) |
5252 | 5729 | _LT_TAGDECL([], [prelink_cmds], [2], |
5253 | 5730 | [Commands necessary for linking programs (against libraries) with templates]) |
5731 | _LT_TAGDECL([], [postlink_cmds], [2], | |
5732 | [Commands necessary for finishing linking programs]) | |
5254 | 5733 | _LT_TAGDECL([], [file_list_spec], [1], |
5255 | 5734 | [Specify filename containing input files]) |
5256 | 5735 | dnl FIXME: Not yet implemented |
5340 | 5819 | ])# _LT_LANG_C_CONFIG |
5341 | 5820 | |
5342 | 5821 | |
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 | |
5351 | 5831 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5352 | 5832 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5353 | 5833 | (test "X$CXX" != "Xg++"))) ; then |
5355 | 5835 | else |
5356 | 5836 | _lt_caught_CXX_error=yes |
5357 | 5837 | 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 | |
5374 | 5838 | |
5375 | 5839 | AC_LANG_PUSH(C++) |
5376 | 5840 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
5382 | 5846 | _LT_TAGVAR(hardcode_direct, $1)=no |
5383 | 5847 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
5384 | 5848 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5385 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
5386 | 5849 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
5387 | 5850 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
5388 | 5851 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
5392 | 5855 | _LT_TAGVAR(module_expsym_cmds, $1)= |
5393 | 5856 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
5394 | 5857 | _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 | |
5395 | 5860 | _LT_TAGVAR(no_undefined_flag, $1)= |
5396 | 5861 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5397 | 5862 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
5423 | 5888 | |
5424 | 5889 | # Allow CC to be a program name with arguments. |
5425 | 5890 | lt_save_CC=$CC |
5891 | lt_save_CFLAGS=$CFLAGS | |
5426 | 5892 | lt_save_LD=$LD |
5427 | 5893 | lt_save_GCC=$GCC |
5428 | 5894 | GCC=$GXX |
5440 | 5906 | fi |
5441 | 5907 | test -z "${LDCXX+set}" || LD=$LDCXX |
5442 | 5908 | CC=${CXX-"c++"} |
5909 | CFLAGS=$CXXFLAGS | |
5443 | 5910 | compiler=$CC |
5444 | 5911 | _LT_TAGVAR(compiler, $1)=$CC |
5445 | 5912 | _LT_CC_BASENAME([$compiler]) |
5461 | 5928 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
5462 | 5929 | # archiving commands below assume that GNU ld is being used. |
5463 | 5930 | 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' | |
5466 | 5933 | |
5467 | 5934 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5468 | 5935 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5494 | 5961 | # Commands to make compiler produce verbose output that lists |
5495 | 5962 | # what "hidden" libraries, object files and flags are used when |
5496 | 5963 | # 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"' | |
5498 | 5965 | |
5499 | 5966 | else |
5500 | 5967 | GXX=no |
5603 | 6070 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
5604 | 6071 | # Determine the default libpath from the value encoded in an empty |
5605 | 6072 | # executable. |
5606 | _LT_SYS_MODULE_PATH_AIX | |
6073 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
5607 | 6074 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5608 | 6075 | |
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" | |
5610 | 6077 | else |
5611 | 6078 | if test "$host_cpu" = ia64; then |
5612 | 6079 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5615 | 6082 | else |
5616 | 6083 | # Determine the default libpath from the value encoded in an |
5617 | 6084 | # empty executable. |
5618 | _LT_SYS_MODULE_PATH_AIX | |
6085 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
5619 | 6086 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5620 | 6087 | # Warning - without using the other run time loading flags, |
5621 | 6088 | # -berok will link without error, but may produce a broken library. |
5622 | 6089 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5623 | 6090 | _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 | |
5626 | 6098 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5627 | 6099 | # This is similar to how AIX traditionally builds its shared |
5628 | 6100 | # libraries. |
5652 | 6124 | ;; |
5653 | 6125 | |
5654 | 6126 | 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 | ;; | |
5677 | 6196 | darwin* | rhapsody*) |
5678 | 6197 | _LT_DARWIN_LINKER_FEATURES($1) |
5679 | 6198 | ;; |
5696 | 6215 | esac |
5697 | 6216 | ;; |
5698 | 6217 | |
5699 | freebsd[[12]]*) | |
6218 | freebsd2.*) | |
5700 | 6219 | # C++ shared libraries reported to be fairly broken before |
5701 | 6220 | # switch to ELF |
5702 | 6221 | _LT_TAGVAR(ld_shlibs, $1)=no |
5713 | 6232 | ;; |
5714 | 6233 | |
5715 | 6234 | 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 | |
5716 | 6240 | ;; |
5717 | 6241 | |
5718 | 6242 | hpux9*) |
5739 | 6263 | # explicitly linking system object files so we need to strip them |
5740 | 6264 | # from the output so that they don't get included in the library |
5741 | 6265 | # 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"' | |
5743 | 6267 | ;; |
5744 | 6268 | *) |
5745 | 6269 | 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' | |
5747 | 6271 | else |
5748 | 6272 | # FIXME: insert proper C++ library support |
5749 | 6273 | _LT_TAGVAR(ld_shlibs, $1)=no |
5804 | 6328 | # explicitly linking system object files so we need to strip them |
5805 | 6329 | # from the output so that they don't get included in the library |
5806 | 6330 | # 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"' | |
5808 | 6332 | ;; |
5809 | 6333 | *) |
5810 | 6334 | if test "$GXX" = yes; then |
5814 | 6338 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
5815 | 6339 | ;; |
5816 | 6340 | 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' | |
5818 | 6342 | ;; |
5819 | 6343 | *) |
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' | |
5821 | 6345 | ;; |
5822 | 6346 | esac |
5823 | 6347 | fi |
5847 | 6371 | case $cc_basename in |
5848 | 6372 | CC*) |
5849 | 6373 | # 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' | |
5851 | 6375 | |
5852 | 6376 | # Archives containing C++ object files must be created using |
5853 | 6377 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
5858 | 6382 | *) |
5859 | 6383 | if test "$GXX" = yes; then |
5860 | 6384 | 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' | |
5862 | 6386 | 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' | |
5864 | 6388 | fi |
5865 | 6389 | fi |
5866 | 6390 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
5889 | 6413 | # explicitly linking system object files so we need to strip them |
5890 | 6414 | # from the output so that they don't get included in the library |
5891 | 6415 | # 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"' | |
5893 | 6417 | |
5894 | 6418 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
5895 | 6419 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5926 | 6450 | pgCC* | pgcpp*) |
5927 | 6451 | # Portland Group C++ compiler |
5928 | 6452 | case `$CC -V` in |
5929 | *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | |
6453 | *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) | |
5930 | 6454 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
5931 | 6455 | rm -rf $tpldir~ |
5932 | 6456 | $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`"' | |
5934 | 6458 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
5935 | 6459 | rm -rf $tpldir~ |
5936 | 6460 | $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`~ | |
5938 | 6462 | $RANLIB $oldlib' |
5939 | 6463 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
5940 | 6464 | rm -rf $tpldir~ |
5941 | 6465 | $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' | |
5943 | 6467 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
5944 | 6468 | rm -rf $tpldir~ |
5945 | 6469 | $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' | |
5947 | 6471 | ;; |
5948 | *) # Version 6 will use weak symbols | |
6472 | *) # Version 6 and above use weak symbols | |
5949 | 6473 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
5950 | 6474 | _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' |
5951 | 6475 | ;; |
5953 | 6477 | |
5954 | 6478 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
5955 | 6479 | _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' | |
5957 | 6481 | ;; |
5958 | 6482 | cxx*) |
5959 | 6483 | # Compaq C++ |
5972 | 6496 | # explicitly linking system object files so we need to strip them |
5973 | 6497 | # from the output so that they don't get included in the library |
5974 | 6498 | # 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' | |
5976 | 6500 | ;; |
5977 | xl*) | |
6501 | xl* | mpixl* | bgxl*) | |
5978 | 6502 | # IBM XL 8.0 on PPC, with GNU ld |
5979 | 6503 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5980 | 6504 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
5994 | 6518 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
5995 | 6519 | _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' |
5996 | 6520 | _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' | |
5998 | 6522 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
5999 | 6523 | |
6000 | 6524 | # Not sure whether something based on |
6001 | 6525 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
6002 | 6526 | # would be better. |
6003 | output_verbose_link_cmd='echo' | |
6527 | output_verbose_link_cmd='func_echo_all' | |
6004 | 6528 | |
6005 | 6529 | # Archives containing C++ object files must be created using |
6006 | 6530 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
6069 | 6593 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6070 | 6594 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6071 | 6595 | fi |
6072 | output_verbose_link_cmd=echo | |
6596 | output_verbose_link_cmd=func_echo_all | |
6073 | 6597 | else |
6074 | 6598 | _LT_TAGVAR(ld_shlibs, $1)=no |
6075 | 6599 | fi |
6104 | 6628 | case $host in |
6105 | 6629 | osf3*) |
6106 | 6630 | _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' | |
6108 | 6632 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6109 | 6633 | ;; |
6110 | 6634 | *) |
6111 | 6635 | _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' | |
6113 | 6637 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
6114 | 6638 | 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~ | |
6116 | 6640 | $RM $lib.exp' |
6117 | 6641 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6118 | 6642 | ;; |
6128 | 6652 | # explicitly linking system object files so we need to strip them |
6129 | 6653 | # from the output so that they don't get included in the library |
6130 | 6654 | # 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"' | |
6132 | 6656 | ;; |
6133 | 6657 | *) |
6134 | 6658 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
6135 | 6659 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6136 | 6660 | case $host in |
6137 | 6661 | 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' | |
6139 | 6663 | ;; |
6140 | 6664 | *) |
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' | |
6142 | 6666 | ;; |
6143 | 6667 | esac |
6144 | 6668 | |
6148 | 6672 | # Commands to make compiler produce verbose output that lists |
6149 | 6673 | # what "hidden" libraries, object files and flags are used when |
6150 | 6674 | # 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"' | |
6152 | 6676 | |
6153 | 6677 | else |
6154 | 6678 | # FIXME: insert proper C++ library support |
6184 | 6708 | |
6185 | 6709 | solaris*) |
6186 | 6710 | case $cc_basename in |
6187 | CC*) | |
6711 | CC* | sunCC*) | |
6188 | 6712 | # Sun C++ 4.2, 5.x and Centerline C++ |
6189 | 6713 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
6190 | 6714 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
6205 | 6729 | esac |
6206 | 6730 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
6207 | 6731 | |
6208 | output_verbose_link_cmd='echo' | |
6732 | output_verbose_link_cmd='func_echo_all' | |
6209 | 6733 | |
6210 | 6734 | # Archives containing C++ object files must be created using |
6211 | 6735 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
6225 | 6749 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
6226 | 6750 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
6227 | 6751 | 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' | |
6229 | 6753 | _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' | |
6231 | 6755 | |
6232 | 6756 | # Commands to make compiler produce verbose output that lists |
6233 | 6757 | # what "hidden" libraries, object files and flags are used when |
6234 | 6758 | # 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"' | |
6236 | 6760 | else |
6237 | 6761 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
6238 | 6762 | # platform. |
6243 | 6767 | # Commands to make compiler produce verbose output that lists |
6244 | 6768 | # what "hidden" libraries, object files and flags are used when |
6245 | 6769 | # 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"' | |
6247 | 6771 | fi |
6248 | 6772 | |
6249 | 6773 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
6297 | 6821 | CC*) |
6298 | 6822 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6299 | 6823 | _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)" | |
6300 | 6828 | ;; |
6301 | 6829 | *) |
6302 | 6830 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
6352 | 6880 | fi # test -n "$compiler" |
6353 | 6881 | |
6354 | 6882 | CC=$lt_save_CC |
6883 | CFLAGS=$lt_save_CFLAGS | |
6355 | 6884 | LDCXX=$LD |
6356 | 6885 | LD=$lt_save_LD |
6357 | 6886 | GCC=$lt_save_GCC |
6366 | 6895 | ])# _LT_LANG_CXX_CONFIG |
6367 | 6896 | |
6368 | 6897 | |
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 | ||
6369 | 6921 | # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
6370 | 6922 | # --------------------------------- |
6371 | 6923 | # Figure out "hidden" library dependencies from verbose |
6374 | 6926 | # objects, libraries and library flags. |
6375 | 6927 | m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
6376 | 6928 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
6929 | AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl | |
6377 | 6930 | # Dependencies to place before and after the object being linked: |
6378 | 6931 | _LT_TAGVAR(predep_objects, $1)= |
6379 | 6932 | _LT_TAGVAR(postdep_objects, $1)= |
6423 | 6976 | } |
6424 | 6977 | }; |
6425 | 6978 | _LT_EOF |
6979 | ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF | |
6980 | package foo | |
6981 | func foo() { | |
6982 | } | |
6983 | _LT_EOF | |
6426 | 6984 | ]) |
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 | ||
6427 | 6993 | dnl Parse the compiler output and extract the necessary |
6428 | 6994 | dnl objects, libraries and library flags. |
6429 | 6995 | if AC_TRY_EVAL(ac_compile); then |
6435 | 7001 | pre_test_object_deps_done=no |
6436 | 7002 | |
6437 | 7003 | for p in `eval "$output_verbose_link_cmd"`; do |
6438 | case $p in | |
7004 | case ${prev}${p} in | |
6439 | 7005 | |
6440 | 7006 | -L* | -R* | -l*) |
6441 | 7007 | # Some compilers place space between "-{L,R}" and the path. |
6444 | 7010 | test $p = "-R"; then |
6445 | 7011 | prev=$p |
6446 | 7012 | continue |
6447 | else | |
6448 | prev= | |
6449 | 7013 | fi |
6450 | 7014 | |
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 | |
6451 | 7026 | if test "$pre_test_object_deps_done" = no; then |
6452 | case $p in | |
6453 | -L* | -R*) | |
7027 | case ${prev} in | |
7028 | -L | -R) | |
6454 | 7029 | # Internal compiler library paths should come after those |
6455 | 7030 | # provided the user. The postdeps already come after the |
6456 | 7031 | # user supplied libs so there is no need to process them. |
6470 | 7045 | _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
6471 | 7046 | fi |
6472 | 7047 | fi |
7048 | prev= | |
6473 | 7049 | ;; |
6474 | 7050 | |
7051 | *.lto.$objext) ;; # Ignore GCC LTO objects | |
6475 | 7052 | *.$objext) |
6476 | 7053 | # This assumes that the test object file only shows up |
6477 | 7054 | # once in the compiler output. |
6507 | 7084 | fi |
6508 | 7085 | |
6509 | 7086 | $RM -f confest.$objext |
7087 | CFLAGS=$_lt_libdeps_save_CFLAGS | |
6510 | 7088 | |
6511 | 7089 | # PORTME: override above test on systems where it is broken |
6512 | 7090 | m4_if([$1], [CXX], |
6543 | 7121 | |
6544 | 7122 | solaris*) |
6545 | 7123 | case $cc_basename in |
6546 | CC*) | |
7124 | CC* | sunCC*) | |
6547 | 7125 | # The more standards-conforming stlport4 library is |
6548 | 7126 | # incompatible with the Cstd library. Avoid specifying |
6549 | 7127 | # it if it's in CXXFLAGS. Ignore libCrun as |
6587 | 7165 | ])# _LT_SYS_HIDDEN_LIBDEPS |
6588 | 7166 | |
6589 | 7167 | |
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 | ||
6608 | 7168 | # _LT_LANG_F77_CONFIG([TAG]) |
6609 | 7169 | # -------------------------- |
6610 | 7170 | # Ensure that the configuration variables for a Fortran 77 compiler are |
6611 | 7171 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
6612 | 7172 | # to write the compiler configuration to `libtool'. |
6613 | 7173 | 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 | |
6616 | 7178 | |
6617 | 7179 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6618 | 7180 | _LT_TAGVAR(allow_undefined_flag, $1)= |
6622 | 7184 | _LT_TAGVAR(hardcode_direct, $1)=no |
6623 | 7185 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
6624 | 7186 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
6625 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
6626 | 7187 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
6627 | 7188 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
6628 | 7189 | _LT_TAGVAR(hardcode_automatic, $1)=no |
6631 | 7192 | _LT_TAGVAR(module_expsym_cmds, $1)= |
6632 | 7193 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6633 | 7194 | _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 | |
6634 | 7197 | _LT_TAGVAR(no_undefined_flag, $1)= |
6635 | 7198 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6636 | 7199 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6670 | 7233 | # Allow CC to be a program name with arguments. |
6671 | 7234 | lt_save_CC="$CC" |
6672 | 7235 | lt_save_GCC=$GCC |
7236 | lt_save_CFLAGS=$CFLAGS | |
6673 | 7237 | CC=${F77-"f77"} |
7238 | CFLAGS=$FFLAGS | |
6674 | 7239 | compiler=$CC |
6675 | 7240 | _LT_TAGVAR(compiler, $1)=$CC |
6676 | 7241 | _LT_CC_BASENAME([$compiler]) |
6724 | 7289 | |
6725 | 7290 | GCC=$lt_save_GCC |
6726 | 7291 | CC="$lt_save_CC" |
7292 | CFLAGS="$lt_save_CFLAGS" | |
6727 | 7293 | fi # test "$_lt_disable_F77" != yes |
6728 | 7294 | |
6729 | 7295 | AC_LANG_POP |
6730 | 7296 | ])# _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], []) | |
6749 | 7297 | |
6750 | 7298 | |
6751 | 7299 | # _LT_LANG_FC_CONFIG([TAG]) |
6754 | 7302 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
6755 | 7303 | # to write the compiler configuration to `libtool'. |
6756 | 7304 | 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 | |
6759 | 7310 | |
6760 | 7311 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6761 | 7312 | _LT_TAGVAR(allow_undefined_flag, $1)= |
6765 | 7316 | _LT_TAGVAR(hardcode_direct, $1)=no |
6766 | 7317 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
6767 | 7318 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
6768 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
6769 | 7319 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
6770 | 7320 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
6771 | 7321 | _LT_TAGVAR(hardcode_automatic, $1)=no |
6774 | 7324 | _LT_TAGVAR(module_expsym_cmds, $1)= |
6775 | 7325 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6776 | 7326 | _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 | |
6777 | 7329 | _LT_TAGVAR(no_undefined_flag, $1)= |
6778 | 7330 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6779 | 7331 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6813 | 7365 | # Allow CC to be a program name with arguments. |
6814 | 7366 | lt_save_CC="$CC" |
6815 | 7367 | lt_save_GCC=$GCC |
7368 | lt_save_CFLAGS=$CFLAGS | |
6816 | 7369 | CC=${FC-"f95"} |
7370 | CFLAGS=$FCFLAGS | |
6817 | 7371 | compiler=$CC |
6818 | 7372 | GCC=$ac_cv_fc_compiler_gnu |
6819 | 7373 | |
6869 | 7423 | fi # test -n "$compiler" |
6870 | 7424 | |
6871 | 7425 | GCC=$lt_save_GCC |
6872 | CC="$lt_save_CC" | |
7426 | CC=$lt_save_CC | |
7427 | CFLAGS=$lt_save_CFLAGS | |
6873 | 7428 | fi # test "$_lt_disable_FC" != yes |
6874 | 7429 | |
6875 | 7430 | AC_LANG_POP |
6906 | 7461 | _LT_LINKER_BOILERPLATE |
6907 | 7462 | |
6908 | 7463 | # Allow CC to be a program name with arguments. |
6909 | lt_save_CC="$CC" | |
7464 | lt_save_CC=$CC | |
7465 | lt_save_CFLAGS=$CFLAGS | |
6910 | 7466 | lt_save_GCC=$GCC |
6911 | 7467 | GCC=yes |
6912 | 7468 | CC=${GCJ-"gcj"} |
7469 | CFLAGS=$GCJFLAGS | |
6913 | 7470 | compiler=$CC |
6914 | 7471 | _LT_TAGVAR(compiler, $1)=$CC |
6915 | 7472 | _LT_TAGVAR(LD, $1)="$LD" |
6919 | 7476 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6920 | 7477 | |
6921 | 7478 | _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 | |
6922 | 7481 | |
6923 | 7482 | if test -n "$compiler"; then |
6924 | 7483 | _LT_COMPILER_NO_RTTI($1) |
6934 | 7493 | AC_LANG_RESTORE |
6935 | 7494 | |
6936 | 7495 | GCC=$lt_save_GCC |
6937 | CC="$lt_save_CC" | |
7496 | CC=$lt_save_CC | |
7497 | CFLAGS=$lt_save_CFLAGS | |
6938 | 7498 | ])# _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 | |
6939 | 7566 | |
6940 | 7567 | |
6941 | 7568 | # _LT_LANG_RC_CONFIG([TAG]) |
6969 | 7596 | |
6970 | 7597 | # Allow CC to be a program name with arguments. |
6971 | 7598 | lt_save_CC="$CC" |
7599 | lt_save_CFLAGS=$CFLAGS | |
6972 | 7600 | lt_save_GCC=$GCC |
6973 | 7601 | GCC= |
6974 | 7602 | CC=${RC-"windres"} |
7603 | CFLAGS= | |
6975 | 7604 | compiler=$CC |
6976 | 7605 | _LT_TAGVAR(compiler, $1)=$CC |
6977 | 7606 | _LT_CC_BASENAME([$compiler]) |
6984 | 7613 | |
6985 | 7614 | GCC=$lt_save_GCC |
6986 | 7615 | AC_LANG_RESTORE |
6987 | CC="$lt_save_CC" | |
7616 | CC=$lt_save_CC | |
7617 | CFLAGS=$lt_save_CFLAGS | |
6988 | 7618 | ])# _LT_LANG_RC_CONFIG |
6989 | 7619 | |
6990 | 7620 | |
7002 | 7632 | AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) |
7003 | 7633 | dnl aclocal-1.4 backwards compatibility: |
7004 | 7634 | 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 | ]) | |
7005 | 7642 | |
7006 | 7643 | |
7007 | 7644 | # LT_PROG_RC |
7043 | 7680 | AC_SUBST([OBJDUMP]) |
7044 | 7681 | ]) |
7045 | 7682 | |
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 | ]) | |
7046 | 7692 | |
7047 | 7693 | # _LT_DECL_SED |
7048 | 7694 | # ------------ |
7134 | 7780 | # Try some XSI features |
7135 | 7781 | xsi_shell=no |
7136 | 7782 | ( _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, \ | |
7139 | 7785 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
7140 | 7786 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
7141 | 7787 | && xsi_shell=yes |
7174 | 7820 | ])# _LT_CHECK_SHELL_FEATURES |
7175 | 7821 | |
7176 | 7822 | |
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 | |
7273 | 7939 | ;; |
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 | ;; | |
7354 | 7956 | 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 | |
7367 | 7974 | ;; |
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 | |
7381 | 7976 | ]) |
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 | |
7382 | 7982 | |
7383 | 7983 | # Helper functions for option handling. -*- Autoconf -*- |
7384 | 7984 | # |
7385 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
7985 | # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | |
7986 | # Inc. | |
7386 | 7987 | # Written by Gary V. Vaughan, 2004 |
7387 | 7988 | # |
7388 | 7989 | # This file is free software; the Free Software Foundation gives |
7389 | 7990 | # unlimited permission to copy and/or distribute it, with or without |
7390 | 7991 | # modifications, as long as this notice is preserved. |
7391 | 7992 | |
7392 | # serial 6 ltoptions.m4 | |
7993 | # serial 7 ltoptions.m4 | |
7393 | 7994 | |
7394 | 7995 | # This is to help aclocal find these macros, as it can't see m4_define. |
7395 | 7996 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) |
7504 | 8105 | [enable_win32_dll=yes |
7505 | 8106 | |
7506 | 8107 | case $host in |
7507 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | |
8108 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
7508 | 8109 | AC_CHECK_TOOL(AS, as, false) |
7509 | 8110 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
7510 | 8111 | AC_CHECK_TOOL(OBJDUMP, objdump, false) |
7512 | 8113 | esac |
7513 | 8114 | |
7514 | 8115 | test -z "$AS" && AS=as |
7515 | _LT_DECL([], [AS], [0], [Assembler program])dnl | |
8116 | _LT_DECL([], [AS], [1], [Assembler program])dnl | |
7516 | 8117 | |
7517 | 8118 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7518 | _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl | |
8119 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl | |
7519 | 8120 | |
7520 | 8121 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7521 | _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl | |
8122 | _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl | |
7522 | 8123 | ])# win32-dll |
7523 | 8124 | |
7524 | 8125 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], |
7704 | 8305 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
7705 | 8306 | m4_define([_LT_WITH_PIC], |
7706 | 8307 | [AC_ARG_WITH([pic], |
7707 | [AS_HELP_STRING([--with-pic], | |
8308 | [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], | |
7708 | 8309 | [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], | |
7710 | 8326 | [pic_mode=default]) |
7711 | 8327 | |
7712 | 8328 | test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) |
7876 | 8492 | # unlimited permission to copy and/or distribute it, with or without |
7877 | 8493 | # modifications, as long as this notice is preserved. |
7878 | 8494 | |
7879 | # Generated from ltversion.in. | |
7880 | ||
7881 | # serial 3017 ltversion.m4 | |
8495 | # @configure_input@ | |
8496 | ||
8497 | # serial 3337 ltversion.m4 | |
7882 | 8498 | # This file is part of GNU Libtool |
7883 | 8499 | |
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]) | |
7886 | 8502 | |
7887 | 8503 | 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' | |
7890 | 8506 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
7891 | 8507 | _LT_DECL(, macro_revision, 0) |
7892 | 8508 | ]) |
7893 | 8509 | |
7894 | 8510 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- |
7895 | 8511 | # |
7896 | # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. | |
8512 | # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | |
7897 | 8513 | # Written by Scott James Remnant, 2004. |
7898 | 8514 | # |
7899 | 8515 | # This file is free software; the Free Software Foundation gives |
7900 | 8516 | # unlimited permission to copy and/or distribute it, with or without |
7901 | 8517 | # modifications, as long as this notice is preserved. |
7902 | 8518 | |
7903 | # serial 4 lt~obsolete.m4 | |
8519 | # serial 5 lt~obsolete.m4 | |
7904 | 8520 | |
7905 | 8521 | # These exist entirely to fool aclocal when bootstrapping libtool. |
7906 | 8522 | # |
7970 | 8586 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) |
7971 | 8587 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) |
7972 | 8588 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) |
7973 | m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) | |
7974 | 8589 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) |
7975 | 8590 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) |
7976 | 8591 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) |
7983 | 8598 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) |
7984 | 8599 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) |
7985 | 8600 | 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. | |
7988 | 8611 | # |
7989 | 8612 | # This file is free software; the Free Software Foundation |
7990 | 8613 | # gives unlimited permission to copy and/or distribute it, |
7991 | 8614 | # with or without modifications, as long as this notice is preserved. |
8615 | ||
8616 | # serial 1 | |
7992 | 8617 | |
7993 | 8618 | # AM_AUTOMAKE_VERSION(VERSION) |
7994 | 8619 | # ---------------------------- |
7999 | 8624 | [am__api_version='1.11' |
8000 | 8625 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
8001 | 8626 | 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], [], | |
8003 | 8628 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
8004 | 8629 | ]) |
8005 | 8630 | |
8015 | 8640 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
8016 | 8641 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
8017 | 8642 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
8018 | [AM_AUTOMAKE_VERSION([1.11.1])dnl | |
8643 | [AM_AUTOMAKE_VERSION([1.11.3])dnl | |
8019 | 8644 | m4_ifndef([AC_AUTOCONF_VERSION], |
8020 | 8645 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
8021 | 8646 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
8022 | 8647 | |
8023 | 8648 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
8024 | 8649 | |
8025 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
8650 | # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |
8026 | 8651 | # |
8027 | 8652 | # This file is free software; the Free Software Foundation |
8028 | 8653 | # gives unlimited permission to copy and/or distribute it, |
8029 | 8654 | # with or without modifications, as long as this notice is preserved. |
8655 | ||
8656 | # serial 1 | |
8030 | 8657 | |
8031 | 8658 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
8032 | 8659 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
8109 | 8736 | Usually this means the macro was only invoked conditionally.]]) |
8110 | 8737 | fi])]) |
8111 | 8738 | |
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. | |
8114 | 8741 | # |
8115 | 8742 | # This file is free software; the Free Software Foundation |
8116 | 8743 | # gives unlimited permission to copy and/or distribute it, |
8117 | 8744 | # with or without modifications, as long as this notice is preserved. |
8118 | 8745 | |
8119 | # serial 10 | |
8746 | # serial 12 | |
8120 | 8747 | |
8121 | 8748 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
8122 | 8749 | # written in clear, in which case automake, when reading aclocal.m4, |
8156 | 8783 | # instance it was reported that on HP-UX the gcc test will end up |
8157 | 8784 | # making a dummy file named `D' -- because `-MD' means `put the output |
8158 | 8785 | # in D'. |
8786 | rm -rf conftest.dir | |
8159 | 8787 | mkdir conftest.dir |
8160 | 8788 | # Copy depcomp to subdir because otherwise we won't find it if we're |
8161 | 8789 | # using a relative directory. |
8220 | 8848 | break |
8221 | 8849 | fi |
8222 | 8850 | ;; |
8223 | msvisualcpp | msvcmsys) | |
8851 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
8224 | 8852 | # This compiler won't grok `-c -o', but also, the minuso test has |
8225 | 8853 | # not run yet. These depmodes are late enough in the game, and |
8226 | 8854 | # so weak that their functioning should not be impacted. |
8285 | 8913 | if test "x$enable_dependency_tracking" != xno; then |
8286 | 8914 | am_depcomp="$ac_aux_dir/depcomp" |
8287 | 8915 | AMDEPBACKSLASH='\' |
8916 | am__nodep='_no' | |
8288 | 8917 | fi |
8289 | 8918 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
8290 | 8919 | AC_SUBST([AMDEPBACKSLASH])dnl |
8291 | 8920 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
8921 | AC_SUBST([am__nodep])dnl | |
8922 | _AM_SUBST_NOTMAKE([am__nodep])dnl | |
8292 | 8923 | ]) |
8293 | 8924 | |
8294 | 8925 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
8510 | 9141 | done |
8511 | 9142 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
8512 | 9143 | |
8513 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | |
9144 | # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, | |
9145 | # Inc. | |
8514 | 9146 | # |
8515 | 9147 | # This file is free software; the Free Software Foundation |
8516 | 9148 | # gives unlimited permission to copy and/or distribute it, |
8517 | 9149 | # with or without modifications, as long as this notice is preserved. |
9150 | ||
9151 | # serial 1 | |
8518 | 9152 | |
8519 | 9153 | # AM_PROG_INSTALL_SH |
8520 | 9154 | # ------------------ |
8555 | 9189 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
8556 | 9190 | # From Jim Meyering |
8557 | 9191 | |
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. | |
8560 | 9194 | # |
8561 | 9195 | # This file is free software; the Free Software Foundation |
8562 | 9196 | # gives unlimited permission to copy and/or distribute it, |
8576 | 9210 | [disable], [m4_define([am_maintainer_other], [enable])], |
8577 | 9211 | [m4_define([am_maintainer_other], [enable]) |
8578 | 9212 | 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]) | |
8580 | 9214 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
8581 | 9215 | AC_ARG_ENABLE([maintainer-mode], |
8582 | 9216 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful |
8687 | 9321 | fi |
8688 | 9322 | ]) |
8689 | 9323 | |
8690 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
9324 | # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, | |
9325 | # Inc. | |
8691 | 9326 | # |
8692 | 9327 | # This file is free software; the Free Software Foundation |
8693 | 9328 | # gives unlimited permission to copy and/or distribute it, |
8694 | 9329 | # with or without modifications, as long as this notice is preserved. |
9330 | ||
9331 | # serial 1 | |
8695 | 9332 | |
8696 | 9333 | # AM_PROG_MKDIR_P |
8697 | 9334 | # --------------- |
8715 | 9352 | |
8716 | 9353 | # Helper functions for option handling. -*- Autoconf -*- |
8717 | 9354 | |
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. | |
8719 | 9357 | # |
8720 | 9358 | # This file is free software; the Free Software Foundation |
8721 | 9359 | # gives unlimited permission to copy and/or distribute it, |
8722 | 9360 | # with or without modifications, as long as this notice is preserved. |
8723 | 9361 | |
8724 | # serial 4 | |
9362 | # serial 5 | |
8725 | 9363 | |
8726 | 9364 | # _AM_MANGLE_OPTION(NAME) |
8727 | 9365 | # ----------------------- |
8729 | 9367 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
8730 | 9368 | |
8731 | 9369 | # _AM_SET_OPTION(NAME) |
8732 | # ------------------------------ | |
9370 | # -------------------- | |
8733 | 9371 | # Set option NAME. Presently that only means defining a flag for this option. |
8734 | 9372 | AC_DEFUN([_AM_SET_OPTION], |
8735 | 9373 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
8736 | 9374 | |
8737 | 9375 | # _AM_SET_OPTIONS(OPTIONS) |
8738 | # ---------------------------------- | |
9376 | # ------------------------ | |
8739 | 9377 | # OPTIONS is a space-separated list of Automake options. |
8740 | 9378 | AC_DEFUN([_AM_SET_OPTIONS], |
8741 | 9379 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
8811 | 9449 | fi |
8812 | 9450 | AC_MSG_RESULT(yes)]) |
8813 | 9451 | |
8814 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
9452 | # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |
8815 | 9453 | # |
8816 | 9454 | # This file is free software; the Free Software Foundation |
8817 | 9455 | # gives unlimited permission to copy and/or distribute it, |
8818 | 9456 | # with or without modifications, as long as this notice is preserved. |
9457 | ||
9458 | # serial 1 | |
8819 | 9459 | |
8820 | 9460 | # AM_PROG_INSTALL_STRIP |
8821 | 9461 | # --------------------- |
8839 | 9479 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
8840 | 9480 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
8841 | 9481 | |
8842 | # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | |
9482 | # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. | |
8843 | 9483 | # |
8844 | 9484 | # This file is free software; the Free Software Foundation |
8845 | 9485 | # gives unlimited permission to copy and/or distribute it, |
8846 | 9486 | # with or without modifications, as long as this notice is preserved. |
8847 | 9487 | |
8848 | # serial 2 | |
9488 | # serial 3 | |
8849 | 9489 | |
8850 | 9490 | # _AM_SUBST_NOTMAKE(VARIABLE) |
8851 | 9491 | # --------------------------- |
8854 | 9494 | AC_DEFUN([_AM_SUBST_NOTMAKE]) |
8855 | 9495 | |
8856 | 9496 | # AM_SUBST_NOTMAKE(VARIABLE) |
8857 | # --------------------------- | |
9497 | # -------------------------- | |
8858 | 9498 | # Public sister of _AM_SUBST_NOTMAKE. |
8859 | 9499 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) |
8860 | 9500 | |
8861 | 9501 | # Check how to create a tarball. -*- Autoconf -*- |
8862 | 9502 | |
8863 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
9503 | # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. | |
8864 | 9504 | # |
8865 | 9505 | # This file is free software; the Free Software Foundation |
8866 | 9506 | # gives unlimited permission to copy and/or distribute it, |
8882 | 9522 | # a tarball read from stdin. |
8883 | 9523 | # $(am__untar) < result.tar |
8884 | 9524 | 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}']) | |
8887 | 9528 | 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 -'], | |
8889 | 9530 | [m4_case([$1], [ustar],, [pax],, |
8890 | 9531 | [m4_fatal([Unknown tar format])]) |
8891 | 9532 | AC_MSG_CHECKING([how to create a $1 tar archive]) |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | 2 | # 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' | |
7 | 7 | |
8 | 8 | # This file is free software; you can redistribute it and/or modify it |
9 | 9 | # under the terms of the GNU General Public License as published by |
56 | 56 | |
57 | 57 | Originally written by Per Bothner. |
58 | 58 | 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. | |
61 | 61 | |
62 | 62 | This is free software; see the source for copying conditions. There is NO |
63 | 63 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
144 | 144 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
145 | 145 | *:NetBSD:*:*) |
146 | 146 | # NetBSD (nbsd) targets should (where applicable) match one or |
147 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | |
147 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |
148 | 148 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
149 | 149 | # switched to ELF, *-*-netbsd* would select the old |
150 | 150 | # object file format. This provides both forward |
180 | 180 | fi |
181 | 181 | ;; |
182 | 182 | *) |
183 | os=netbsd | |
183 | os=netbsd | |
184 | 184 | ;; |
185 | 185 | esac |
186 | 186 | # The OS release |
223 | 223 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
224 | 224 | ;; |
225 | 225 | *5.*) |
226 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
226 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
227 | 227 | ;; |
228 | 228 | esac |
229 | 229 | # According to Compaq, /usr/sbin/psrinfo has been available on |
269 | 269 | # A Xn.n version is an unreleased experimental baselevel. |
270 | 270 | # 1.2 uses "1.2" for uname -r. |
271 | 271 | 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 ;; | |
273 | 276 | Alpha\ *:Windows_NT*:*) |
274 | 277 | # How do we know it's Interix rather than the generic POSIX subsystem? |
275 | 278 | # Should we change UNAME_MACHINE based on the output of uname instead |
295 | 298 | echo s390-ibm-zvmoe |
296 | 299 | exit ;; |
297 | 300 | *:OS400:*:*) |
298 | echo powerpc-ibm-os400 | |
301 | echo powerpc-ibm-os400 | |
299 | 302 | exit ;; |
300 | 303 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
301 | 304 | echo arm-acorn-riscix${UNAME_RELEASE} |
394 | 397 | # MiNT. But MiNT is downward compatible to TOS, so this should |
395 | 398 | # be no problem. |
396 | 399 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
397 | echo m68k-atari-mint${UNAME_RELEASE} | |
400 | echo m68k-atari-mint${UNAME_RELEASE} | |
398 | 401 | exit ;; |
399 | 402 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
400 | 403 | echo m68k-atari-mint${UNAME_RELEASE} |
401 | exit ;; | |
404 | exit ;; | |
402 | 405 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
403 | echo m68k-atari-mint${UNAME_RELEASE} | |
406 | echo m68k-atari-mint${UNAME_RELEASE} | |
404 | 407 | exit ;; |
405 | 408 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
406 | echo m68k-milan-mint${UNAME_RELEASE} | |
407 | exit ;; | |
409 | echo m68k-milan-mint${UNAME_RELEASE} | |
410 | exit ;; | |
408 | 411 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
409 | echo m68k-hades-mint${UNAME_RELEASE} | |
410 | exit ;; | |
412 | echo m68k-hades-mint${UNAME_RELEASE} | |
413 | exit ;; | |
411 | 414 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
412 | echo m68k-unknown-mint${UNAME_RELEASE} | |
413 | exit ;; | |
415 | echo m68k-unknown-mint${UNAME_RELEASE} | |
416 | exit ;; | |
414 | 417 | m68k:machten:*:*) |
415 | 418 | echo m68k-apple-machten${UNAME_RELEASE} |
416 | 419 | exit ;; |
480 | 483 | echo m88k-motorola-sysv3 |
481 | 484 | exit ;; |
482 | 485 | 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` | |
485 | 488 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
486 | 489 | then |
487 | 490 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
494 | 497 | else |
495 | 498 | echo i586-dg-dgux${UNAME_RELEASE} |
496 | 499 | fi |
497 | exit ;; | |
500 | exit ;; | |
498 | 501 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
499 | 502 | echo m88k-dolphin-sysv3 |
500 | 503 | exit ;; |
551 | 554 | echo rs6000-ibm-aix3.2 |
552 | 555 | fi |
553 | 556 | exit ;; |
554 | *:AIX:*:[456]) | |
557 | *:AIX:*:[4567]) | |
555 | 558 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
556 | 559 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
557 | 560 | IBM_ARCH=rs6000 |
594 | 597 | 9000/[678][0-9][0-9]) |
595 | 598 | if [ -x /usr/bin/getconf ]; then |
596 | 599 | 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" ;; | |
605 | 608 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
606 | esac ;; | |
607 | esac | |
609 | esac ;; | |
610 | esac | |
608 | 611 | fi |
609 | 612 | if [ "${HP_ARCH}" = "" ]; then |
610 | 613 | 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 | } | |
643 | 646 | EOF |
644 | 647 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
645 | 648 | test -z "$HP_ARCH" && HP_ARCH=hppa |
730 | 733 | exit ;; |
731 | 734 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
732 | 735 | echo c1-convex-bsd |
733 | exit ;; | |
736 | exit ;; | |
734 | 737 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
735 | 738 | if getsysinfo -f scalar_acc |
736 | 739 | then echo c32-convex-bsd |
737 | 740 | else echo c2-convex-bsd |
738 | 741 | fi |
739 | exit ;; | |
742 | exit ;; | |
740 | 743 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
741 | 744 | echo c34-convex-bsd |
742 | exit ;; | |
745 | exit ;; | |
743 | 746 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
744 | 747 | echo c38-convex-bsd |
745 | exit ;; | |
748 | exit ;; | |
746 | 749 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
747 | 750 | echo c4-convex-bsd |
748 | exit ;; | |
751 | exit ;; | |
749 | 752 | CRAY*Y-MP:*:*:*) |
750 | 753 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
751 | 754 | exit ;; |
769 | 772 | exit ;; |
770 | 773 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
771 | 774 | 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 ;; | |
776 | 779 | 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}" | |
780 | 783 | exit ;; |
781 | 784 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
782 | 785 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
788 | 791 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
789 | 792 | exit ;; |
790 | 793 | *: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 | |
794 | 796 | amd64) |
795 | 797 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
796 | 798 | *) |
797 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
799 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
798 | 800 | esac |
799 | 801 | exit ;; |
800 | 802 | i*:CYGWIN*:*) |
803 | 805 | *:MINGW*:*) |
804 | 806 | echo ${UNAME_MACHINE}-pc-mingw32 |
805 | 807 | exit ;; |
808 | i*:MSYS*:*) | |
809 | echo ${UNAME_MACHINE}-pc-msys | |
810 | exit ;; | |
806 | 811 | 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 | |
809 | 814 | exit ;; |
810 | 815 | i*:PW*:*) |
811 | 816 | echo ${UNAME_MACHINE}-pc-pw32 |
812 | 817 | exit ;; |
813 | 818 | *:Interix*:*) |
814 | case ${UNAME_MACHINE} in | |
819 | case ${UNAME_MACHINE} in | |
815 | 820 | x86) |
816 | 821 | echo i586-pc-interix${UNAME_RELEASE} |
817 | 822 | exit ;; |
866 | 871 | EV6) UNAME_MACHINE=alphaev6 ;; |
867 | 872 | EV67) UNAME_MACHINE=alphaev67 ;; |
868 | 873 | EV68*) UNAME_MACHINE=alphaev68 ;; |
869 | esac | |
874 | esac | |
870 | 875 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
871 | 876 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
872 | 877 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
878 | 883 | then |
879 | 884 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
880 | 885 | 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 | |
882 | 893 | fi |
883 | 894 | exit ;; |
884 | 895 | avr32*:Linux:*:*) |
885 | 896 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
886 | 897 | exit ;; |
887 | 898 | cris:Linux:*:*) |
888 | echo cris-axis-linux-gnu | |
899 | echo ${UNAME_MACHINE}-axis-linux-gnu | |
889 | 900 | exit ;; |
890 | 901 | crisv32:Linux:*:*) |
891 | echo crisv32-axis-linux-gnu | |
902 | echo ${UNAME_MACHINE}-axis-linux-gnu | |
892 | 903 | exit ;; |
893 | 904 | 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 | |
895 | 909 | exit ;; |
896 | 910 | i*86:Linux:*:*) |
897 | 911 | LIBC=gnu |
933 | 947 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
934 | 948 | ;; |
935 | 949 | or32:Linux:*:*) |
936 | echo or32-unknown-linux-gnu | |
950 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
937 | 951 | exit ;; |
938 | 952 | padre:Linux:*:*) |
939 | 953 | echo sparc-unknown-linux-gnu |
959 | 973 | echo ${UNAME_MACHINE}-ibm-linux |
960 | 974 | exit ;; |
961 | 975 | sh64*:Linux:*:*) |
962 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
976 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
963 | 977 | exit ;; |
964 | 978 | sh*:Linux:*:*) |
965 | 979 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
967 | 981 | sparc:Linux:*:* | sparc64:Linux:*:*) |
968 | 982 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
969 | 983 | exit ;; |
984 | tile*:Linux:*:*) | |
985 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
986 | exit ;; | |
970 | 987 | vax:Linux:*:*) |
971 | 988 | echo ${UNAME_MACHINE}-dec-linux-gnu |
972 | 989 | exit ;; |
973 | 990 | x86_64:Linux:*:*) |
974 | echo x86_64-unknown-linux-gnu | |
991 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
975 | 992 | exit ;; |
976 | 993 | xtensa*:Linux:*:*) |
977 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
994 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
978 | 995 | exit ;; |
979 | 996 | i*86:DYNIX/ptx:4*:*) |
980 | 997 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
983 | 1000 | echo i386-sequent-sysv4 |
984 | 1001 | exit ;; |
985 | 1002 | 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, | |
989 | 1006 | # I just have to hope. -- rms. |
990 | # Use sysv4.2uw... so that sysv4* matches it. | |
1007 | # Use sysv4.2uw... so that sysv4* matches it. | |
991 | 1008 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
992 | 1009 | exit ;; |
993 | 1010 | i*86:OS/2:*:*) |
1019 | 1036 | fi |
1020 | 1037 | exit ;; |
1021 | 1038 | i*86:*:5:[678]*) |
1022 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
1039 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
1023 | 1040 | case `/bin/uname -X | grep "^Machine"` in |
1024 | 1041 | *486*) UNAME_MACHINE=i486 ;; |
1025 | 1042 | *Pentium) UNAME_MACHINE=i586 ;; |
1047 | 1064 | exit ;; |
1048 | 1065 | pc:*:*:*) |
1049 | 1066 | # 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. | |
1052 | 1069 | # Note: whatever this is, it MUST be the same as what config.sub |
1053 | 1070 | # prints for the "djgpp" host, or else GDB configury will decide that |
1054 | 1071 | # this is a cross-build. |
1055 | 1072 | echo i586-pc-msdosdjgpp |
1056 | exit ;; | |
1073 | exit ;; | |
1057 | 1074 | Intel:Mach:3*:*) |
1058 | 1075 | echo i386-pc-mach3 |
1059 | 1076 | exit ;; |
1088 | 1105 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1089 | 1106 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1090 | 1107 | 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; } ;; | |
1093 | 1110 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
1094 | 1111 | OS_REL='.3' |
1095 | 1112 | test -r /etc/.relid \ |
1132 | 1149 | echo ns32k-sni-sysv |
1133 | 1150 | fi |
1134 | 1151 | 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 ;; | |
1139 | 1156 | *:UNIX_System_V:4*:FTX*) |
1140 | 1157 | # From Gerald Hewes <hewes@openmarket.com>. |
1141 | 1158 | # How about differentiating between stratus architectures? -djm |
1161 | 1178 | exit ;; |
1162 | 1179 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1163 | 1180 | if [ -d /usr/nec ]; then |
1164 | echo mips-nec-sysv${UNAME_RELEASE} | |
1181 | echo mips-nec-sysv${UNAME_RELEASE} | |
1165 | 1182 | else |
1166 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1167 | fi | |
1168 | exit ;; | |
1183 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1184 | fi | |
1185 | exit ;; | |
1169 | 1186 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1170 | 1187 | echo powerpc-be-beos |
1171 | 1188 | exit ;; |
1230 | 1247 | *:QNX:*:4*) |
1231 | 1248 | echo i386-pc-qnx |
1232 | 1249 | exit ;; |
1250 | NEO-?:NONSTOP_KERNEL:*:*) | |
1251 | echo neo-tandem-nsk${UNAME_RELEASE} | |
1252 | exit ;; | |
1233 | 1253 | NSE-?:NONSTOP_KERNEL:*:*) |
1234 | 1254 | echo nse-tandem-nsk${UNAME_RELEASE} |
1235 | 1255 | exit ;; |
1275 | 1295 | echo pdp10-unknown-its |
1276 | 1296 | exit ;; |
1277 | 1297 | SEI:*:*:SEIUX) |
1278 | echo mips-sei-seiux${UNAME_RELEASE} | |
1298 | echo mips-sei-seiux${UNAME_RELEASE} | |
1279 | 1299 | exit ;; |
1280 | 1300 | *:DragonFly:*:*) |
1281 | 1301 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1282 | 1302 | exit ;; |
1283 | 1303 | *:*VMS:*:*) |
1284 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1304 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1285 | 1305 | case "${UNAME_MACHINE}" in |
1286 | 1306 | A*) echo alpha-dec-vms ; exit ;; |
1287 | 1307 | I*) echo ia64-dec-vms ; exit ;; |
1321 | 1341 | #include <sys/param.h> |
1322 | 1342 | printf ("m68k-sony-newsos%s\n", |
1323 | 1343 | #ifdef NEWSOS4 |
1324 | "4" | |
1344 | "4" | |
1325 | 1345 | #else |
1326 | "" | |
1327 | #endif | |
1328 | ); exit (0); | |
1346 | "" | |
1347 | #endif | |
1348 | ); exit (0); | |
1329 | 1349 | #endif |
1330 | 1350 | #endif |
1331 | 1351 |
0 | 0 | #! /bin/sh |
1 | 1 | # Configuration validation subroutine script. |
2 | 2 | # 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' | |
7 | 7 | |
8 | 8 | # This file is (in principle) common to ALL GNU software. |
9 | 9 | # The presence of a machine in this file suggests that SOME GNU software |
75 | 75 | GNU config.sub ($timestamp) |
76 | 76 | |
77 | 77 | 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. | |
80 | 80 | |
81 | 81 | This is free software; see the source for copying conditions. There is NO |
82 | 82 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
123 | 123 | # Here we must recognize all the valid KERNEL-OS combinations. |
124 | 124 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
125 | 125 | 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* | \ | |
128 | 129 | kopensolaris*-gnu* | \ |
129 | 130 | storm-chaos* | os2-emx* | rtmk-nova*) |
130 | 131 | os=-$maybe_os |
156 | 157 | os= |
157 | 158 | basic_machine=$1 |
158 | 159 | ;; |
159 | -bluegene*) | |
160 | os=-cnk | |
160 | -bluegene*) | |
161 | os=-cnk | |
161 | 162 | ;; |
162 | 163 | -sim | -cisco | -oki | -wec | -winbond) |
163 | 164 | os= |
173 | 174 | os=-chorusos |
174 | 175 | basic_machine=$1 |
175 | 176 | ;; |
176 | -chorusrdb) | |
177 | os=-chorusrdb | |
177 | -chorusrdb) | |
178 | os=-chorusrdb | |
178 | 179 | basic_machine=$1 |
179 | ;; | |
180 | ;; | |
180 | 181 | -hiux*) |
181 | 182 | os=-hiuxwe2 |
182 | 183 | ;; |
249 | 250 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
250 | 251 | | am33_2.0 \ |
251 | 252 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
253 | | be32 | be64 \ | |
252 | 254 | | bfin \ |
253 | 255 | | c4x | clipper \ |
254 | 256 | | d10v | d30v | dlx | dsp16xx \ |
257 | | epiphany \ | |
255 | 258 | | fido | fr30 | frv \ |
256 | 259 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
260 | | hexagon \ | |
257 | 261 | | i370 | i860 | i960 | ia64 \ |
258 | 262 | | ip2k | iq2000 \ |
263 | | le32 | le64 \ | |
259 | 264 | | lm32 \ |
260 | 265 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
261 | 266 | | maxq | mb | microblaze | mcore | mep | metag \ |
281 | 286 | | moxie \ |
282 | 287 | | mt \ |
283 | 288 | | msp430 \ |
289 | | nds32 | nds32le | nds32be \ | |
284 | 290 | | nios | nios2 \ |
285 | 291 | | ns16k | ns32k \ |
292 | | open8 \ | |
286 | 293 | | or32 \ |
287 | 294 | | pdp10 | pdp11 | pj | pjl \ |
288 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | |
295 | | powerpc | powerpc64 | powerpc64le | powerpcle \ | |
289 | 296 | | pyramid \ |
290 | | rx \ | |
297 | | rl78 | rx \ | |
291 | 298 | | score \ |
292 | 299 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
293 | 300 | | sh64 | sh64le \ |
294 | 301 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
295 | 302 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
296 | | spu | strongarm \ | |
297 | | tahoe | thumb | tic4x | tic80 | tron \ | |
303 | | spu \ | |
304 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
298 | 305 | | ubicom32 \ |
299 | | v850 | v850e \ | |
306 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | |
300 | 307 | | we32k \ |
301 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | |
308 | | x86 | xc16x | xstormy16 | xtensa \ | |
302 | 309 | | z8k | z80) |
303 | 310 | basic_machine=$basic_machine-unknown |
304 | 311 | ;; |
312 | c54x) | |
313 | basic_machine=tic54x-unknown | |
314 | ;; | |
315 | c55x) | |
316 | basic_machine=tic55x-unknown | |
317 | ;; | |
318 | c6x) | |
319 | basic_machine=tic6x-unknown | |
320 | ;; | |
305 | 321 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
306 | # Motorola 68HC11/12. | |
307 | 322 | basic_machine=$basic_machine-unknown |
308 | 323 | os=-none |
309 | 324 | ;; |
311 | 326 | ;; |
312 | 327 | ms1) |
313 | 328 | 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 | |
314 | 341 | ;; |
315 | 342 | |
316 | 343 | # We use `pc' rather than `unknown' |
332 | 359 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
333 | 360 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
334 | 361 | | avr-* | avr32-* \ |
362 | | be32-* | be64-* \ | |
335 | 363 | | bfin-* | bs2000-* \ |
336 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | |
364 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | |
337 | 365 | | clipper-* | craynv-* | cydra-* \ |
338 | 366 | | d10v-* | d30v-* | dlx-* \ |
339 | 367 | | elxsi-* \ |
340 | 368 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
341 | 369 | | h8300-* | h8500-* \ |
342 | 370 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
371 | | hexagon-* \ | |
343 | 372 | | i*86-* | i860-* | i960-* | ia64-* \ |
344 | 373 | | ip2k-* | iq2000-* \ |
374 | | le32-* | le64-* \ | |
345 | 375 | | lm32-* \ |
346 | 376 | | m32c-* | m32r-* | m32rle-* \ |
347 | 377 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
367 | 397 | | mmix-* \ |
368 | 398 | | mt-* \ |
369 | 399 | | msp430-* \ |
400 | | nds32-* | nds32le-* | nds32be-* \ | |
370 | 401 | | nios-* | nios2-* \ |
371 | 402 | | none-* | np1-* | ns16k-* | ns32k-* \ |
403 | | open8-* \ | |
372 | 404 | | orion-* \ |
373 | 405 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
374 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | |
406 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | |
375 | 407 | | pyramid-* \ |
376 | | romp-* | rs6000-* | rx-* \ | |
408 | | rl78-* | romp-* | rs6000-* | rx-* \ | |
377 | 409 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
378 | 410 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
379 | 411 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
380 | 412 | | sparclite-* \ |
381 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | |
382 | | tahoe-* | thumb-* \ | |
413 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | |
414 | | tahoe-* \ | |
383 | 415 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
384 | | tile-* | tilegx-* \ | |
416 | | tile*-* \ | |
385 | 417 | | tron-* \ |
386 | 418 | | ubicom32-* \ |
387 | | v850-* | v850e-* | vax-* \ | |
419 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | |
420 | | vax-* \ | |
388 | 421 | | we32k-* \ |
389 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | |
422 | | x86-* | x86_64-* | xc16x-* | xps100-* \ | |
390 | 423 | | xstormy16-* | xtensa*-* \ |
391 | 424 | | ymp-* \ |
392 | 425 | | z8k-* | z80-*) |
411 | 444 | basic_machine=a29k-amd |
412 | 445 | os=-udi |
413 | 446 | ;; |
414 | abacus) | |
447 | abacus) | |
415 | 448 | basic_machine=abacus-unknown |
416 | 449 | ;; |
417 | 450 | adobe68k) |
481 | 514 | basic_machine=powerpc-ibm |
482 | 515 | os=-cnk |
483 | 516 | ;; |
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 | ;; | |
484 | 526 | c90) |
485 | 527 | basic_machine=c90-cray |
486 | 528 | os=-unicos |
487 | 529 | ;; |
488 | cegcc) | |
530 | cegcc) | |
489 | 531 | basic_machine=arm-unknown |
490 | 532 | os=-cegcc |
491 | 533 | ;; |
517 | 559 | basic_machine=craynv-cray |
518 | 560 | os=-unicosmp |
519 | 561 | ;; |
520 | cr16) | |
562 | cr16 | cr16-*) | |
521 | 563 | basic_machine=cr16-unknown |
522 | 564 | os=-elf |
523 | 565 | ;; |
675 | 717 | i370-ibm* | ibm*) |
676 | 718 | basic_machine=i370-ibm |
677 | 719 | ;; |
678 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
679 | 720 | i*86v32) |
680 | 721 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
681 | 722 | os=-sysv32 |
733 | 774 | basic_machine=ns32k-utek |
734 | 775 | os=-sysv |
735 | 776 | ;; |
736 | microblaze) | |
777 | microblaze) | |
737 | 778 | basic_machine=microblaze-xilinx |
738 | 779 | ;; |
739 | 780 | mingw32) |
772 | 813 | ms1-*) |
773 | 814 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
774 | 815 | ;; |
816 | msys) | |
817 | basic_machine=i386-pc | |
818 | os=-msys | |
819 | ;; | |
775 | 820 | mvs) |
776 | 821 | basic_machine=i370-ibm |
777 | 822 | os=-mvs |
823 | ;; | |
824 | nacl) | |
825 | basic_machine=le32-unknown | |
826 | os=-nacl | |
778 | 827 | ;; |
779 | 828 | ncr3000) |
780 | 829 | basic_machine=i486-ncr |
840 | 889 | np1) |
841 | 890 | basic_machine=np1-gould |
842 | 891 | ;; |
892 | neo-tandem) | |
893 | basic_machine=neo-tandem | |
894 | ;; | |
895 | nse-tandem) | |
896 | basic_machine=nse-tandem | |
897 | ;; | |
843 | 898 | nsr-tandem) |
844 | 899 | basic_machine=nsr-tandem |
845 | 900 | ;; |
922 | 977 | ;; |
923 | 978 | power) basic_machine=power-ibm |
924 | 979 | ;; |
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/^[^-]*-//'` | |
928 | 984 | ;; |
929 | 985 | ppcle | powerpclittle | ppc-le | powerpc-little) |
930 | 986 | basic_machine=powerpcle-unknown |
1018 | 1074 | basic_machine=i860-stratus |
1019 | 1075 | os=-sysv4 |
1020 | 1076 | ;; |
1077 | strongarm-* | thumb-*) | |
1078 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1079 | ;; | |
1021 | 1080 | sun2) |
1022 | 1081 | basic_machine=m68000-sun |
1023 | 1082 | ;; |
1074 | 1133 | basic_machine=t90-cray |
1075 | 1134 | os=-unicos |
1076 | 1135 | ;; |
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 | ;; | |
1094 | 1136 | tile*) |
1095 | basic_machine=tile-unknown | |
1137 | basic_machine=$basic_machine-unknown | |
1096 | 1138 | os=-linux-gnu |
1097 | 1139 | ;; |
1098 | 1140 | tx39) |
1161 | 1203 | ;; |
1162 | 1204 | xps | xps100) |
1163 | 1205 | basic_machine=xps100-honeywell |
1206 | ;; | |
1207 | xscale-* | xscalee[bl]-*) | |
1208 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
1164 | 1209 | ;; |
1165 | 1210 | ymp) |
1166 | 1211 | basic_machine=ymp-cray |
1259 | 1304 | if [ x"$os" != x"" ] |
1260 | 1305 | then |
1261 | 1306 | 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. | |
1264 | 1309 | # -solaris* is a basic system type, with this one exception. |
1265 | -auroraux) | |
1266 | os=-auroraux | |
1310 | -auroraux) | |
1311 | os=-auroraux | |
1267 | 1312 | ;; |
1268 | 1313 | -solaris1 | -solaris1.*) |
1269 | 1314 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1299 | 1344 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1300 | 1345 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1301 | 1346 | | -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* \ | |
1304 | 1350 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1305 | 1351 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1306 | 1352 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1347 | 1393 | -opened*) |
1348 | 1394 | os=-openedition |
1349 | 1395 | ;; |
1350 | -os400*) | |
1396 | -os400*) | |
1351 | 1397 | os=-os400 |
1352 | 1398 | ;; |
1353 | 1399 | -wince*) |
1396 | 1442 | -sinix*) |
1397 | 1443 | os=-sysv4 |
1398 | 1444 | ;; |
1399 | -tpf*) | |
1445 | -tpf*) | |
1400 | 1446 | os=-tpf |
1401 | 1447 | ;; |
1402 | 1448 | -triton*) |
1441 | 1487 | -dicos*) |
1442 | 1488 | os=-dicos |
1443 | 1489 | ;; |
1444 | -nacl*) | |
1445 | ;; | |
1490 | -nacl*) | |
1491 | ;; | |
1446 | 1492 | -none) |
1447 | 1493 | ;; |
1448 | 1494 | *) |
1465 | 1511 | # system, and we'll never get to this point. |
1466 | 1512 | |
1467 | 1513 | case $basic_machine in |
1468 | score-*) | |
1514 | score-*) | |
1469 | 1515 | os=-elf |
1470 | 1516 | ;; |
1471 | spu-*) | |
1517 | spu-*) | |
1472 | 1518 | os=-elf |
1473 | 1519 | ;; |
1474 | 1520 | *-acorn) |
1480 | 1526 | arm*-semi) |
1481 | 1527 | os=-aout |
1482 | 1528 | ;; |
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 | |
1485 | 1540 | ;; |
1486 | 1541 | # This must come before the *-dec entry. |
1487 | 1542 | pdp10-*) |
1501 | 1556 | ;; |
1502 | 1557 | m68000-sun) |
1503 | 1558 | os=-sunos3 |
1504 | # This also exists in the configure program, but was not the | |
1505 | # default. | |
1506 | # os=-sunos4 | |
1507 | 1559 | ;; |
1508 | 1560 | m68*-cisco) |
1509 | 1561 | os=-aout |
1510 | 1562 | ;; |
1511 | mep-*) | |
1563 | mep-*) | |
1512 | 1564 | os=-elf |
1513 | 1565 | ;; |
1514 | 1566 | mips*-cisco) |
1535 | 1587 | *-ibm) |
1536 | 1588 | os=-aix |
1537 | 1589 | ;; |
1538 | *-knuth) | |
1590 | *-knuth) | |
1539 | 1591 | os=-mmixware |
1540 | 1592 | ;; |
1541 | 1593 | *-wec) |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
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. | |
7 | 7 | |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
9 | 9 | # it under the terms of the GNU General Public License as published by |
43 | 43 | object Object file output by `PROGRAMS ARGS'. |
44 | 44 | DEPDIR directory where to store dependencies. |
45 | 45 | depfile Dependency file to output. |
46 | tmpdepfile Temporary file to use when outputing dependencies. | |
46 | tmpdepfile Temporary file to use when outputting dependencies. | |
47 | 47 | libtool Whether libtool is used (yes/no). |
48 | 48 | |
49 | 49 | Report bugs to <bug-automake@gnu.org>. |
89 | 89 | # This is just like msvisualcpp but w/o cygpath translation. |
90 | 90 | # Just convert the backslash-escaped backslashes to single forward |
91 | 91 | # slashes to satisfy depend.m4 |
92 | cygpath_u="sed s,\\\\\\\\,/,g" | |
92 | cygpath_u='sed s,\\\\,/,g' | |
93 | 93 | 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 | |
94 | 102 | fi |
95 | 103 | |
96 | 104 | case "$depmode" in |
157 | 165 | ' < "$tmpdepfile" | |
158 | 166 | ## Some versions of gcc put a space before the `:'. On the theory |
159 | 167 | ## 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. | |
161 | 170 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
162 | 171 | ## 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" | |
164 | 174 | rm -f "$tmpdepfile" |
165 | 175 | ;; |
166 | 176 | |
404 | 414 | rm -f "$tmpdepfile" |
405 | 415 | ;; |
406 | 416 | |
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 | ||
407 | 463 | #nosideeffect) |
408 | 464 | # This comment above is used by automake to tell side-effect |
409 | 465 | # dependency tracking mechanisms from slower ones. |
502 | 558 | touch "$tmpdepfile" |
503 | 559 | ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" |
504 | 560 | 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" | |
506 | 564 | sed '1,2d' "$tmpdepfile" | tr ' ' ' |
507 | 565 | ' | \ |
508 | 566 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
0 | 0 | #!/bin/sh |
1 | 1 | # install - install a program, script, or datafile |
2 | 2 | |
3 | scriptversion=2009-04-28.21; # UTC | |
3 | scriptversion=2011-01-19.21; # UTC | |
4 | 4 | |
5 | 5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
6 | 6 | # later released in X11R6 (xc/config/util/install.sh) with the |
155 | 155 | -s) stripcmd=$stripprog;; |
156 | 156 | |
157 | 157 | -t) dst_arg=$2 |
158 | # Protect names problematic for `test' and other utilities. | |
159 | case $dst_arg in | |
160 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
161 | esac | |
158 | 162 | shift;; |
159 | 163 | |
160 | 164 | -T) no_target_directory=true;; |
185 | 189 | fi |
186 | 190 | shift # arg |
187 | 191 | dst_arg=$arg |
192 | # Protect names problematic for `test' and other utilities. | |
193 | case $dst_arg in | |
194 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
195 | esac | |
188 | 196 | done |
189 | 197 | fi |
190 | 198 | |
199 | 207 | fi |
200 | 208 | |
201 | 209 | 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 | |
203 | 215 | |
204 | 216 | # Set umask so as not to create temps with too-generous modes. |
205 | 217 | # However, 'strip' requires both read and write access to temps. |
227 | 239 | |
228 | 240 | for src |
229 | 241 | do |
230 | # Protect names starting with `-'. | |
242 | # Protect names problematic for `test' and other utilities. | |
231 | 243 | case $src in |
232 | -*) src=./$src;; | |
244 | -* | [=\(\)!]) src=./$src;; | |
233 | 245 | esac |
234 | 246 | |
235 | 247 | if test -n "$dir_arg"; then |
251 | 263 | echo "$0: no destination specified." >&2 |
252 | 264 | exit 1 |
253 | 265 | fi |
254 | ||
255 | 266 | dst=$dst_arg |
256 | # Protect names starting with `-'. | |
257 | case $dst in | |
258 | -*) dst=./$dst;; | |
259 | esac | |
260 | 267 | |
261 | 268 | # If destination is a directory, append the input filename; won't work |
262 | 269 | # if double slashes aren't ignored. |
384 | 391 | |
385 | 392 | case $dstdir in |
386 | 393 | /*) prefix='/';; |
387 | -*) prefix='./';; | |
394 | [-=\(\)!]*) prefix='./';; | |
388 | 395 | *) prefix='';; |
389 | 396 | esac |
390 | 397 | |
402 | 409 | |
403 | 410 | for d |
404 | 411 | do |
405 | test -z "$d" && continue | |
412 | test X"$d" = X && continue | |
406 | 413 | |
407 | 414 | prefix=$prefix$d |
408 | 415 | 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 | |
3 | 2 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
4 | 3 | |
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. | |
6 | 6 | # This is free software; see the source for copying conditions. There is NO |
7 | 7 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
8 | 8 | |
31 | 31 | # |
32 | 32 | # Provide generalized library-building support services. |
33 | 33 | # |
34 | # --config show all configuration variables | |
35 | # --debug enable verbose shell tracing | |
36 | # -n, --dry-run display commands without modifying any files | |
37 | # --features display basic configuration information and exit | |
38 | # --mode=MODE use operation mode MODE | |
39 | # --preserve-dup-deps don't remove duplicate dependency libraries | |
40 | # --quiet, --silent don't print informational messages | |
41 | # --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 | |
45 | 49 | # |
46 | 50 | # MODE must be one of the following: |
47 | 51 | # |
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 | |
55 | 59 | # |
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. | |
57 | 62 | # Try `$progname --help --mode=MODE' for a more detailed description of MODE. |
58 | 63 | # |
59 | 64 | # When reporting a bug, please describe a test case to reproduce it and |
60 | 65 | # include the following information: |
61 | 66 | # |
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 | |
70 | 75 | # |
71 | 76 | # 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 | |
74 | 81 | PACKAGE=libtool |
75 | VERSION="2.2.6b Debian-2.2.6b-2ubuntu1" | |
82 | VERSION=2.4.2 | |
76 | 83 | TIMESTAMP="" |
77 | package_revision=1.3017 | |
84 | package_revision=1.3337 | |
78 | 85 | |
79 | 86 | # Be Bourne compatible |
80 | 87 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
90 | 97 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
91 | 98 | DUALCASE=1; export DUALCASE # for MKS sh |
92 | 99 | |
100 | # A function that is used when there is no print builtin or printf. | |
101 | func_fallback_echo () | |
102 | { | |
103 | eval 'cat <<_LTECHO_EOF | |
104 | $1 | |
105 | _LTECHO_EOF' | |
106 | } | |
107 | ||
93 | 108 | # 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). | |
97 | 109 | lt_user_locale= |
98 | 110 | lt_safe_locale= |
99 | 111 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES |
106 | 118 | lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" |
107 | 119 | fi" |
108 | 120 | done |
121 | LC_ALL=C | |
122 | LANGUAGE=C | |
123 | export LANGUAGE LC_ALL | |
109 | 124 | |
110 | 125 | $lt_unset CDPATH |
111 | 126 | |
112 | 127 | |
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" | |
113 | 134 | |
114 | 135 | |
115 | 136 | |
116 | 137 | : ${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'} | |
122 | 139 | : ${MAKE="make"} |
123 | 140 | : ${MKDIR="mkdir"} |
124 | 141 | : ${MV="mv -f"} |
125 | 142 | : ${RM="rm -f"} |
126 | : ${SED="/bin/sed"} | |
127 | 143 | : ${SHELL="${CONFIG_SHELL-/bin/sh}"} |
128 | 144 | : ${Xsed="$SED -e 1s/^X//"} |
129 | 145 | |
142 | 158 | |
143 | 159 | dirname="s,/[^/]*$,," |
144 | 160 | 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 | ||
145 | 182 | |
146 | 183 | # func_dirname_and_basename file append nondir_replacement |
147 | 184 | # perform func_basename and func_dirname in a single function |
157 | 194 | # those functions but instead duplicate the functionality here. |
158 | 195 | func_dirname_and_basename () |
159 | 196 | { |
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} | |
166 | 360 | 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 | } | |
178 | 370 | |
179 | 371 | # 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: | |
182 | 372 | func_dirname_and_basename "$progpath" |
183 | 373 | progname=$func_basename_result |
184 | case $progname in | |
185 | -*) progname=./$progname ;; | |
186 | esac | |
187 | 374 | |
188 | 375 | # Make sure we have an absolute path for reexecution: |
189 | 376 | case $progpath in |
195 | 382 | ;; |
196 | 383 | *) |
197 | 384 | save_IFS="$IFS" |
198 | IFS=: | |
385 | IFS=${PATH_SEPARATOR-:} | |
199 | 386 | for progdir in $PATH; do |
200 | 387 | IFS="$save_IFS" |
201 | 388 | test -x "$progdir/$progname" && break |
213 | 400 | |
214 | 401 | # Same as above, but do not quote variable references. |
215 | 402 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
403 | ||
404 | # Sed substitution that turns a string into a regex matching for the | |
405 | # string literally. | |
406 | sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' | |
407 | ||
408 | # Sed substitution that converts a w32 file name or path | |
409 | # which contains forward slashes, into one that contains | |
410 | # (escaped) backslashes. A very naive implementation. | |
411 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | |
216 | 412 | |
217 | 413 | # Re-`\' parameter expansions in output of double_quote_subst that were |
218 | 414 | # `\'-ed in input to the same. If an odd number of `\' preceded a '$' |
242 | 438 | # name if it has been set yet. |
243 | 439 | func_echo () |
244 | 440 | { |
245 | $ECHO "$progname${mode+: }$mode: $*" | |
441 | $ECHO "$progname: ${opt_mode+$opt_mode: }$*" | |
246 | 442 | } |
247 | 443 | |
248 | 444 | # func_verbose arg... |
257 | 453 | : |
258 | 454 | } |
259 | 455 | |
456 | # func_echo_all arg... | |
457 | # Invoke $ECHO with all args, space-separated. | |
458 | func_echo_all () | |
459 | { | |
460 | $ECHO "$*" | |
461 | } | |
462 | ||
260 | 463 | # func_error arg... |
261 | 464 | # Echo program name prefixed message to standard error. |
262 | 465 | func_error () |
263 | 466 | { |
264 | $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 | |
467 | $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 | |
265 | 468 | } |
266 | 469 | |
267 | 470 | # func_warning arg... |
268 | 471 | # Echo program name prefixed warning message to standard error. |
269 | 472 | func_warning () |
270 | 473 | { |
271 | $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 | |
474 | $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 | |
272 | 475 | |
273 | 476 | # bash bug again: |
274 | 477 | : |
325 | 528 | case $my_directory_path in */*) ;; *) break ;; esac |
326 | 529 | |
327 | 530 | # ...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"` | |
329 | 532 | done |
330 | my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` | |
533 | my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` | |
331 | 534 | |
332 | 535 | save_mkdir_p_IFS="$IFS"; IFS=':' |
333 | 536 | for my_dir in $my_dir_list; do |
377 | 580 | func_fatal_error "cannot create temporary directory \`$my_tmpdir'" |
378 | 581 | fi |
379 | 582 | |
380 | $ECHO "X$my_tmpdir" | $Xsed | |
583 | $ECHO "$my_tmpdir" | |
381 | 584 | } |
382 | 585 | |
383 | 586 | |
391 | 594 | { |
392 | 595 | case $1 in |
393 | 596 | *[\\\`\"\$]*) |
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"` ;; | |
395 | 598 | *) |
396 | 599 | func_quote_for_eval_unquoted_result="$1" ;; |
397 | 600 | esac |
418 | 621 | { |
419 | 622 | case $1 in |
420 | 623 | *[\\\`\"]*) |
421 | my_arg=`$ECHO "X$1" | $Xsed \ | |
624 | my_arg=`$ECHO "$1" | $SED \ | |
422 | 625 | -e "$double_quote_subst" -e "$sed_double_backslash"` ;; |
423 | 626 | *) |
424 | 627 | my_arg="$1" ;; |
487 | 690 | fi |
488 | 691 | } |
489 | 692 | |
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 | } | |
492 | 709 | |
493 | 710 | |
494 | 711 | # func_version |
495 | 712 | # Echo version message to standard output and exit. |
496 | 713 | func_version () |
497 | 714 | { |
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; / { | |
499 | 726 | s/^# // |
500 | 727 | s/^# *$// |
501 | 728 | s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ |
508 | 735 | # Echo short help message to standard output and exit. |
509 | 736 | func_usage () |
510 | 737 | { |
511 | $SED -n '/^# Usage:/,/# -h/ { | |
738 | $opt_debug | |
739 | ||
740 | $SED -n '/^# Usage:/,/^# *.*--help/ { | |
512 | 741 | s/^# // |
513 | 742 | s/^# *$// |
514 | 743 | s/\$progname/'$progname'/ |
515 | 744 | p |
516 | 745 | }' < "$progpath" |
517 | $ECHO | |
746 | echo | |
518 | 747 | $ECHO "run \`$progname --help | more' for full usage" |
519 | 748 | exit $? |
520 | 749 | } |
521 | 750 | |
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. | |
524 | 754 | func_help () |
525 | 755 | { |
756 | $opt_debug | |
757 | ||
526 | 758 | $SED -n '/^# Usage:/,/# Report bugs to/ { |
759 | ||
527 | 760 | s/^# // |
528 | 761 | s/^# *$// |
529 | 762 | s*\$progname*'$progname'* |
533 | 766 | s*\$LTCFLAGS*'"$LTCFLAGS"'* |
534 | 767 | s*\$LD*'"$LD"'* |
535 | 768 | 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`"'/ | |
538 | 771 | 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 | |
541 | 781 | } |
542 | 782 | |
543 | 783 | # func_missing_arg argname |
545 | 785 | # exit_cmd. |
546 | 786 | func_missing_arg () |
547 | 787 | { |
548 | func_error "missing argument for $1" | |
788 | $opt_debug | |
789 | ||
790 | func_error "missing argument for $1." | |
549 | 791 | exit_cmd=exit |
550 | 792 | } |
551 | 793 | |
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 | ||
552 | 820 | exit_cmd=: |
553 | 821 | |
554 | 822 | |
555 | 823 | |
556 | 824 | |
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 | |
581 | 825 | |
582 | 826 | magic="%%%MAGIC variable%%%" |
583 | 827 | magic_exe="%%%MAGIC EXE variable%%%" |
584 | 828 | |
585 | 829 | # Global variables. |
586 | # $mode is unset | |
587 | 830 | nonopt= |
588 | execute_dlfiles= | |
589 | 831 | preserve_args= |
590 | 832 | lo2o="s/\\.lo\$/.${objext}/" |
591 | 833 | o2lo="s/\\.${objext}\$/.lo/" |
592 | 834 | extracted_archives= |
593 | 835 | extracted_serial=0 |
594 | 836 | |
595 | opt_dry_run=false | |
596 | opt_duplicate_deps=false | |
597 | opt_silent=false | |
598 | opt_debug=: | |
599 | ||
600 | 837 | # If this variable is set in any of the actions, the command in it |
601 | 838 | # will be execed at the end. This prevents here-documents from being |
602 | 839 | # left over by shells. |
603 | 840 | exec_cmd= |
604 | 841 | |
842 | # func_append var value | |
843 | # Append VALUE to the end of shell variable VAR. | |
844 | func_append () | |
845 | { | |
846 | eval "${1}=\$${1}\${2}" | |
847 | } # func_append may be replaced by extended shell implementation | |
848 | ||
849 | # func_append_quoted var value | |
850 | # Quote VALUE and append to the end of shell variable VAR, separated | |
851 | # by a space. | |
852 | func_append_quoted () | |
853 | { | |
854 | func_quote_for_eval "${2}" | |
855 | eval "${1}=\$${1}\\ \$func_quote_for_eval_result" | |
856 | } # func_append_quoted may be replaced by extended shell implementation | |
857 | ||
858 | ||
859 | # func_arith arithmetic-term... | |
860 | func_arith () | |
861 | { | |
862 | func_arith_result=`expr "${@}"` | |
863 | } # func_arith may be replaced by extended shell implementation | |
864 | ||
865 | ||
866 | # func_len string | |
867 | # STRING may not start with a hyphen. | |
868 | func_len () | |
869 | { | |
870 | func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` | |
871 | } # func_len may be replaced by extended shell implementation | |
872 | ||
873 | ||
874 | # func_lo2o object | |
875 | func_lo2o () | |
876 | { | |
877 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
878 | } # func_lo2o may be replaced by extended shell implementation | |
879 | ||
880 | ||
881 | # func_xform libobj-or-source | |
882 | func_xform () | |
883 | { | |
884 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
885 | } # func_xform may be replaced by extended shell implementation | |
886 | ||
887 | ||
605 | 888 | # func_fatal_configuration arg... |
606 | 889 | # Echo program name prefixed message to standard error, followed by |
607 | 890 | # a configuration failure hint, and exit. |
635 | 918 | # Display the features supported by this script. |
636 | 919 | func_features () |
637 | 920 | { |
638 | $ECHO "host: $host" | |
921 | echo "host: $host" | |
639 | 922 | if test "$build_libtool_libs" = yes; then |
640 | $ECHO "enable shared libraries" | |
923 | echo "enable shared libraries" | |
641 | 924 | else |
642 | $ECHO "disable shared libraries" | |
925 | echo "disable shared libraries" | |
643 | 926 | fi |
644 | 927 | if test "$build_old_libs" = yes; then |
645 | $ECHO "enable static libraries" | |
928 | echo "enable static libraries" | |
646 | 929 | else |
647 | $ECHO "disable static libraries" | |
930 | echo "disable static libraries" | |
648 | 931 | fi |
649 | 932 | |
650 | 933 | exit $? |
689 | 972 | fi |
690 | 973 | ;; |
691 | 974 | 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 | |
819 | 975 | } |
820 | 976 | |
821 | 977 | # func_check_version_match |
854 | 1010 | } |
855 | 1011 | |
856 | 1012 | |
1013 | # Shorthand for --mode=foo, only valid as the first argument | |
1014 | case $1 in | |
1015 | clean|clea|cle|cl) | |
1016 | shift; set dummy --mode clean ${1+"$@"}; shift | |
1017 | ;; | |
1018 | compile|compil|compi|comp|com|co|c) | |
1019 | shift; set dummy --mode compile ${1+"$@"}; shift | |
1020 | ;; | |
1021 | execute|execut|execu|exec|exe|ex|e) | |
1022 | shift; set dummy --mode execute ${1+"$@"}; shift | |
1023 | ;; | |
1024 | finish|finis|fini|fin|fi|f) | |
1025 | shift; set dummy --mode finish ${1+"$@"}; shift | |
1026 | ;; | |
1027 | install|instal|insta|inst|ins|in|i) | |
1028 | shift; set dummy --mode install ${1+"$@"}; shift | |
1029 | ;; | |
1030 | link|lin|li|l) | |
1031 | shift; set dummy --mode link ${1+"$@"}; shift | |
1032 | ;; | |
1033 | uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | |
1034 | shift; set dummy --mode uninstall ${1+"$@"}; shift | |
1035 | ;; | |
1036 | esac | |
1037 | ||
1038 | ||
1039 | ||
1040 | # Option defaults: | |
1041 | opt_debug=: | |
1042 | opt_dry_run=false | |
1043 | opt_config=false | |
1044 | opt_preserve_dup_deps=false | |
1045 | opt_features=false | |
1046 | opt_finish=false | |
1047 | opt_help=false | |
1048 | opt_help_all=false | |
1049 | opt_silent=: | |
1050 | opt_warning=: | |
1051 | opt_verbose=: | |
1052 | opt_silent=false | |
1053 | opt_verbose=false | |
1054 | ||
1055 | ||
1056 | # Parse options once, thoroughly. This comes as soon as possible in the | |
1057 | # script to make things like `--version' happen as quickly as we can. | |
1058 | { | |
1059 | # this just eases exit handling | |
1060 | while test $# -gt 0; do | |
1061 | opt="$1" | |
1062 | shift | |
1063 | case $opt in | |
1064 | --debug|-x) opt_debug='set -x' | |
1065 | func_echo "enabling shell trace mode" | |
1066 | $opt_debug | |
1067 | ;; | |
1068 | --dry-run|--dryrun|-n) | |
1069 | opt_dry_run=: | |
1070 | ;; | |
1071 | --config) | |
1072 | opt_config=: | |
1073 | func_config | |
1074 | ;; | |
1075 | --dlopen|-dlopen) | |
1076 | optarg="$1" | |
1077 | opt_dlopen="${opt_dlopen+$opt_dlopen | |
1078 | }$optarg" | |
1079 | shift | |
1080 | ;; | |
1081 | --preserve-dup-deps) | |
1082 | opt_preserve_dup_deps=: | |
1083 | ;; | |
1084 | --features) | |
1085 | opt_features=: | |
1086 | func_features | |
1087 | ;; | |
1088 | --finish) | |
1089 | opt_finish=: | |
1090 | set dummy --mode finish ${1+"$@"}; shift | |
1091 | ;; | |
1092 | --help) | |
1093 | opt_help=: | |
1094 | ;; | |
1095 | --help-all) | |
1096 | opt_help_all=: | |
1097 | opt_help=': help-all' | |
1098 | ;; | |
1099 | --mode) | |
1100 | test $# = 0 && func_missing_arg $opt && break | |
1101 | optarg="$1" | |
1102 | opt_mode="$optarg" | |
1103 | case $optarg in | |
1104 | # Valid mode arguments: | |
1105 | clean|compile|execute|finish|install|link|relink|uninstall) ;; | |
1106 | ||
1107 | # Catch anything else as an error | |
1108 | *) func_error "invalid argument for $opt" | |
1109 | exit_cmd=exit | |
1110 | break | |
1111 | ;; | |
1112 | esac | |
1113 | shift | |
1114 | ;; | |
1115 | --no-silent|--no-quiet) | |
1116 | opt_silent=false | |
1117 | func_append preserve_args " $opt" | |
1118 | ;; | |
1119 | --no-warning|--no-warn) | |
1120 | opt_warning=false | |
1121 | func_append preserve_args " $opt" | |
1122 | ;; | |
1123 | --no-verbose) | |
1124 | opt_verbose=false | |
1125 | func_append preserve_args " $opt" | |
1126 | ;; | |
1127 | --silent|--quiet) | |
1128 | opt_silent=: | |
1129 | func_append preserve_args " $opt" | |
1130 | opt_verbose=false | |
1131 | ;; | |
1132 | --verbose|-v) | |
1133 | opt_verbose=: | |
1134 | func_append preserve_args " $opt" | |
1135 | opt_silent=false | |
1136 | ;; | |
1137 | --tag) | |
1138 | test $# = 0 && func_missing_arg $opt && break | |
1139 | optarg="$1" | |
1140 | opt_tag="$optarg" | |
1141 | func_append preserve_args " $opt $optarg" | |
1142 | func_enable_tag "$optarg" | |
1143 | shift | |
1144 | ;; | |
1145 | ||
1146 | -\?|-h) func_usage ;; | |
1147 | --help) func_help ;; | |
1148 | --version) func_version ;; | |
1149 | ||
1150 | # Separate optargs to long options: | |
1151 | --*=*) | |
1152 | func_split_long_opt "$opt" | |
1153 | set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} | |
1154 | shift | |
1155 | ;; | |
1156 | ||
1157 | # Separate non-argument short options: | |
1158 | -\?*|-h*|-n*|-v*) | |
1159 | func_split_short_opt "$opt" | |
1160 | set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} | |
1161 | shift | |
1162 | ;; | |
1163 | ||
1164 | --) break ;; | |
1165 | -*) func_fatal_help "unrecognized option \`$opt'" ;; | |
1166 | *) set dummy "$opt" ${1+"$@"}; shift; break ;; | |
1167 | esac | |
1168 | done | |
1169 | ||
1170 | # Validate options: | |
1171 | ||
1172 | # save first non-option argument | |
1173 | if test "$#" -gt 0; then | |
1174 | nonopt="$opt" | |
1175 | shift | |
1176 | fi | |
1177 | ||
1178 | # preserve --debug | |
1179 | test "$opt_debug" = : || func_append preserve_args " --debug" | |
1180 | ||
1181 | case $host in | |
1182 | *cygwin* | *mingw* | *pw32* | *cegcc*) | |
1183 | # don't eliminate duplications in $postdeps and $predeps | |
1184 | opt_duplicate_compiler_generated_deps=: | |
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 | ||
857 | 1222 | ## ----------- ## |
858 | 1223 | ## Main. ## |
859 | 1224 | ## ----------- ## |
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 | ||
888 | 1225 | |
889 | 1226 | # func_lalib_p file |
890 | 1227 | # True iff FILE is a libtool `.la' library or `.lo' object file. |
949 | 1286 | # temporary ltwrapper_script. |
950 | 1287 | func_ltwrapper_scriptname () |
951 | 1288 | { |
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" | |
958 | 1292 | } |
959 | 1293 | |
960 | 1294 | # func_ltwrapper_p file |
1000 | 1334 | } |
1001 | 1335 | |
1002 | 1336 | |
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 | ||
1003 | 1368 | # func_infer_tag arg |
1004 | 1369 | # Infer tagged configuration to use if any are available and |
1005 | 1370 | # if one wasn't chosen via the "--tag" command line option. |
1012 | 1377 | if test -n "$available_tags" && test -z "$tagname"; then |
1013 | 1378 | CC_quoted= |
1014 | 1379 | 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" | |
1017 | 1381 | done |
1382 | CC_expanded=`func_echo_all $CC` | |
1383 | CC_quoted_expanded=`func_echo_all $CC_quoted` | |
1018 | 1384 | case $@ in |
1019 | 1385 | # Blanks in the command may have been stripped by the calling shell, |
1020 | 1386 | # 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 "*) ;; | |
1022 | 1389 | # Blanks at the start of $base_compile will cause this to fail |
1023 | 1390 | # if we don't check for them as well. |
1024 | 1391 | *) |
1029 | 1396 | CC_quoted= |
1030 | 1397 | for arg in $CC; do |
1031 | 1398 | # 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" | |
1034 | 1400 | done |
1401 | CC_expanded=`func_echo_all $CC` | |
1402 | CC_quoted_expanded=`func_echo_all $CC_quoted` | |
1035 | 1403 | 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 "*) | |
1037 | 1406 | # The compiler in the base compile command matches |
1038 | 1407 | # the one in the tagged configuration. |
1039 | 1408 | # Assume this is the tagged configuration we want. |
1096 | 1465 | } |
1097 | 1466 | } |
1098 | 1467 | |
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 | ||
1099 | 1948 | # func_mode_compile arg... |
1100 | 1949 | func_mode_compile () |
1101 | 1950 | { |
1136 | 1985 | ;; |
1137 | 1986 | |
1138 | 1987 | -pie | -fpie | -fPIE) |
1139 | pie_flag="$pie_flag $arg" | |
1988 | func_append pie_flag " $arg" | |
1140 | 1989 | continue |
1141 | 1990 | ;; |
1142 | 1991 | |
1143 | 1992 | -shared | -static | -prefer-pic | -prefer-non-pic) |
1144 | later="$later $arg" | |
1993 | func_append later " $arg" | |
1145 | 1994 | continue |
1146 | 1995 | ;; |
1147 | 1996 | |
1162 | 2011 | save_ifs="$IFS"; IFS=',' |
1163 | 2012 | for arg in $args; do |
1164 | 2013 | IFS="$save_ifs" |
1165 | func_quote_for_eval "$arg" | |
1166 | lastarg="$lastarg $func_quote_for_eval_result" | |
2014 | func_append_quoted lastarg "$arg" | |
1167 | 2015 | done |
1168 | 2016 | IFS="$save_ifs" |
1169 | 2017 | func_stripname ' ' '' "$lastarg" |
1170 | 2018 | lastarg=$func_stripname_result |
1171 | 2019 | |
1172 | 2020 | # Add the arguments to base_compile. |
1173 | base_compile="$base_compile $lastarg" | |
2021 | func_append base_compile " $lastarg" | |
1174 | 2022 | continue |
1175 | 2023 | ;; |
1176 | 2024 | |
1186 | 2034 | esac # case $arg_mode |
1187 | 2035 | |
1188 | 2036 | # 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" | |
1191 | 2038 | done # for arg |
1192 | 2039 | |
1193 | 2040 | case $arg_mode in |
1212 | 2059 | *.[cCFSifmso] | \ |
1213 | 2060 | *.ada | *.adb | *.ads | *.asm | \ |
1214 | 2061 | *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ |
1215 | *.[fF][09]? | *.for | *.java | *.obj | *.sx) | |
2062 | *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) | |
1216 | 2063 | func_xform "$libobj" |
1217 | 2064 | libobj=$func_xform_result |
1218 | 2065 | ;; |
1287 | 2134 | # Calculate the filename of the output object if compiler does |
1288 | 2135 | # not support -o with -c |
1289 | 2136 | 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} | |
1291 | 2138 | lockfile="$output_obj.lock" |
1292 | 2139 | else |
1293 | 2140 | output_obj= |
1318 | 2165 | $opt_dry_run || $RM $removelist |
1319 | 2166 | exit $EXIT_FAILURE |
1320 | 2167 | fi |
1321 | removelist="$removelist $output_obj" | |
2168 | func_append removelist " $output_obj" | |
1322 | 2169 | $ECHO "$srcfile" > "$lockfile" |
1323 | 2170 | fi |
1324 | 2171 | |
1325 | 2172 | $opt_dry_run || $RM $removelist |
1326 | removelist="$removelist $lockfile" | |
2173 | func_append removelist " $lockfile" | |
1327 | 2174 | trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 |
1328 | 2175 | |
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 | |
1332 | 2178 | func_quote_for_eval "$srcfile" |
1333 | 2179 | qsrcfile=$func_quote_for_eval_result |
1334 | 2180 | |
1348 | 2194 | |
1349 | 2195 | if test -z "$output_obj"; then |
1350 | 2196 | # Place PIC objects in $objdir |
1351 | command="$command -o $lobj" | |
2197 | func_append command " -o $lobj" | |
1352 | 2198 | fi |
1353 | 2199 | |
1354 | 2200 | func_show_eval_locale "$command" \ |
1395 | 2241 | command="$base_compile $qsrcfile $pic_flag" |
1396 | 2242 | fi |
1397 | 2243 | if test "$compiler_c_o" = yes; then |
1398 | command="$command -o $obj" | |
2244 | func_append command " -o $obj" | |
1399 | 2245 | fi |
1400 | 2246 | |
1401 | 2247 | # Suppress compiler output if we already did a PIC compilation. |
1402 | command="$command$suppress_output" | |
2248 | func_append command "$suppress_output" | |
1403 | 2249 | func_show_eval_locale "$command" \ |
1404 | 2250 | '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' |
1405 | 2251 | |
1444 | 2290 | } |
1445 | 2291 | |
1446 | 2292 | $opt_help || { |
1447 | test "$mode" = compile && func_mode_compile ${1+"$@"} | |
2293 | test "$opt_mode" = compile && func_mode_compile ${1+"$@"} | |
1448 | 2294 | } |
1449 | 2295 | |
1450 | 2296 | func_mode_help () |
1451 | 2297 | { |
1452 | 2298 | # We need to display help for each of the modes. |
1453 | case $mode in | |
2299 | case $opt_mode in | |
1454 | 2300 | "") |
1455 | 2301 | # Generic help is extracted from the usage comments |
1456 | 2302 | # at the start of this file. |
1481 | 2327 | |
1482 | 2328 | -o OUTPUT-FILE set the output file name to OUTPUT-FILE |
1483 | 2329 | -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 | |
1486 | 2332 | -shared do not build a \`.o' file suitable for static linking |
1487 | 2333 | -static only build a \`.o' file suitable for static linking |
2334 | -Wc,FLAG pass FLAG directly to the compiler | |
1488 | 2335 | |
1489 | 2336 | COMPILE-COMMAND is a command to be used in creating a \`standard' object file |
1490 | 2337 | from the given SOURCEFILE. |
1537 | 2384 | |
1538 | 2385 | The following components of INSTALL-COMMAND are treated specially: |
1539 | 2386 | |
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 | |
1541 | 2388 | |
1542 | 2389 | The rest of the components are interpreted as arguments to that command (only |
1543 | 2390 | BSD-compatible install options are recognized)." |
1557 | 2404 | |
1558 | 2405 | -all-static do not do any dynamic linking at all |
1559 | 2406 | -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) | |
1560 | 2409 | -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime |
1561 | 2410 | -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols |
1562 | 2411 | -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) |
1585 | 2434 | -version-info CURRENT[:REVISION[:AGE]] |
1586 | 2435 | specify library version info [each variable defaults to 0] |
1587 | 2436 | -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) | |
1588 | 2442 | |
1589 | 2443 | All other options (arguments beginning with \`-') are ignored. |
1590 | 2444 | |
1618 | 2472 | ;; |
1619 | 2473 | |
1620 | 2474 | *) |
1621 | func_fatal_help "invalid operation mode \`$mode'" | |
2475 | func_fatal_help "invalid operation mode \`$opt_mode'" | |
1622 | 2476 | ;; |
1623 | 2477 | esac |
1624 | 2478 | |
1625 | $ECHO | |
2479 | echo | |
1626 | 2480 | $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 | |
1633 | 2513 | |
1634 | 2514 | |
1635 | 2515 | # func_mode_execute arg... |
1642 | 2522 | func_fatal_help "you must specify a COMMAND" |
1643 | 2523 | |
1644 | 2524 | # Handle -dlopen flags immediately. |
1645 | for file in $execute_dlfiles; do | |
2525 | for file in $opt_dlopen; do | |
1646 | 2526 | test -f "$file" \ |
1647 | 2527 | || func_fatal_help "\`$file' is not a file" |
1648 | 2528 | |
1649 | 2529 | dir= |
1650 | 2530 | case $file in |
1651 | 2531 | *.la) |
2532 | func_resolve_sysroot "$file" | |
2533 | file=$func_resolve_sysroot_result | |
2534 | ||
1652 | 2535 | # Check to see that this really is a libtool archive. |
1653 | 2536 | func_lalib_unsafe_p "$file" \ |
1654 | 2537 | || func_fatal_help "\`$lib' is not a valid libtool archive" |
1670 | 2553 | dir="$func_dirname_result" |
1671 | 2554 | |
1672 | 2555 | if test -f "$dir/$objdir/$dlname"; then |
1673 | dir="$dir/$objdir" | |
2556 | func_append dir "/$objdir" | |
1674 | 2557 | else |
1675 | 2558 | if test ! -f "$dir/$dlname"; then |
1676 | 2559 | func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" |
1711 | 2594 | for file |
1712 | 2595 | do |
1713 | 2596 | case $file in |
1714 | -*) ;; | |
2597 | -* | *.la | *.lo ) ;; | |
1715 | 2598 | *) |
1716 | 2599 | # Do a test to see if this is really a libtool program. |
1717 | 2600 | if func_ltwrapper_script_p "$file"; then |
1727 | 2610 | ;; |
1728 | 2611 | esac |
1729 | 2612 | # 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" | |
1732 | 2614 | done |
1733 | 2615 | |
1734 | 2616 | if test "X$opt_dry_run" = Xfalse; then |
1753 | 2635 | # Display what would be done. |
1754 | 2636 | if test -n "$shlibpath_var"; then |
1755 | 2637 | eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" |
1756 | $ECHO "export $shlibpath_var" | |
2638 | echo "export $shlibpath_var" | |
1757 | 2639 | fi |
1758 | 2640 | $ECHO "$cmd$args" |
1759 | 2641 | exit $EXIT_SUCCESS |
1760 | 2642 | fi |
1761 | 2643 | } |
1762 | 2644 | |
1763 | test "$mode" = execute && func_mode_execute ${1+"$@"} | |
2645 | test "$opt_mode" = execute && func_mode_execute ${1+"$@"} | |
1764 | 2646 | |
1765 | 2647 | |
1766 | 2648 | # func_mode_finish arg... |
1767 | 2649 | func_mode_finish () |
1768 | 2650 | { |
1769 | 2651 | $opt_debug |
1770 | libdirs="$nonopt" | |
2652 | libs= | |
2653 | libdirs= | |
1771 | 2654 | admincmds= |
1772 | 2655 | |
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 | ||
1773 | 2697 | if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then |
1774 | for dir | |
1775 | do | |
1776 | libdirs="$libdirs $dir" | |
1777 | done | |
1778 | ||
1779 | 2698 | for libdir in $libdirs; do |
1780 | 2699 | if test -n "$finish_cmds"; then |
1781 | 2700 | # Do each command in the finish commands. |
1785 | 2704 | if test -n "$finish_eval"; then |
1786 | 2705 | # Do the single finish_eval. |
1787 | 2706 | eval cmds=\"$finish_eval\" |
1788 | $opt_dry_run || eval "$cmds" || admincmds="$admincmds | |
2707 | $opt_dry_run || eval "$cmds" || func_append admincmds " | |
1789 | 2708 | $cmds" |
1790 | 2709 | fi |
1791 | 2710 | done |
1794 | 2713 | # Exit here if they wanted silent mode. |
1795 | 2714 | $opt_silent && exit $EXIT_SUCCESS |
1796 | 2715 | |
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 "----------------------------------------------------------------------" | |
1810 | 2760 | 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 | |
1840 | 2761 | exit $EXIT_SUCCESS |
1841 | 2762 | } |
1842 | 2763 | |
1843 | test "$mode" = finish && func_mode_finish ${1+"$@"} | |
2764 | test "$opt_mode" = finish && func_mode_finish ${1+"$@"} | |
1844 | 2765 | |
1845 | 2766 | |
1846 | 2767 | # func_mode_install arg... |
1851 | 2772 | # install_prog (especially on Windows NT). |
1852 | 2773 | if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || |
1853 | 2774 | # 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 | |
1855 | 2776 | # Aesthetically quote it. |
1856 | 2777 | func_quote_for_eval "$nonopt" |
1857 | 2778 | install_prog="$func_quote_for_eval_result " |
1865 | 2786 | # The real first argument should be the name of the installation program. |
1866 | 2787 | # Aesthetically quote it. |
1867 | 2788 | 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 | |
1869 | 2795 | |
1870 | 2796 | # We need to accept at least all the BSD install flags. |
1871 | 2797 | dest= |
1875 | 2801 | install_type= |
1876 | 2802 | isdir=no |
1877 | 2803 | stripme= |
2804 | no_mode=: | |
1878 | 2805 | for arg |
1879 | 2806 | do |
2807 | arg2= | |
1880 | 2808 | if test -n "$dest"; then |
1881 | files="$files $dest" | |
2809 | func_append files " $dest" | |
1882 | 2810 | dest=$arg |
1883 | 2811 | continue |
1884 | 2812 | fi |
1886 | 2814 | case $arg in |
1887 | 2815 | -d) isdir=yes ;; |
1888 | 2816 | -f) |
1889 | case " $install_prog " in | |
1890 | *[\\\ /]cp\ *) ;; | |
1891 | *) prev=$arg ;; | |
1892 | esac | |
2817 | if $install_cp; then :; else | |
2818 | prev=$arg | |
2819 | fi | |
1893 | 2820 | ;; |
1894 | 2821 | -g | -m | -o) |
1895 | 2822 | prev=$arg |
1903 | 2830 | *) |
1904 | 2831 | # If the previous option needed an argument, then skip it. |
1905 | 2832 | 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 | |
1906 | 2837 | prev= |
1907 | 2838 | else |
1908 | 2839 | dest=$arg |
1913 | 2844 | |
1914 | 2845 | # Aesthetically quote the argument. |
1915 | 2846 | 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" | |
1917 | 2852 | done |
1918 | 2853 | |
1919 | 2854 | test -z "$install_prog" && \ |
1921 | 2856 | |
1922 | 2857 | test -n "$prev" && \ |
1923 | 2858 | 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 | |
1924 | 2866 | |
1925 | 2867 | if test -z "$files"; then |
1926 | 2868 | if test -z "$dest"; then |
1976 | 2918 | case $file in |
1977 | 2919 | *.$libext) |
1978 | 2920 | # Do the static libraries later. |
1979 | staticlibs="$staticlibs $file" | |
2921 | func_append staticlibs " $file" | |
1980 | 2922 | ;; |
1981 | 2923 | |
1982 | 2924 | *.la) |
2925 | func_resolve_sysroot "$file" | |
2926 | file=$func_resolve_sysroot_result | |
2927 | ||
1983 | 2928 | # Check to see that this really is a libtool archive. |
1984 | 2929 | func_lalib_unsafe_p "$file" \ |
1985 | 2930 | || func_fatal_help "\`$file' is not a valid libtool archive" |
1993 | 2938 | if test "X$destdir" = "X$libdir"; then |
1994 | 2939 | case "$current_libdirs " in |
1995 | 2940 | *" $libdir "*) ;; |
1996 | *) current_libdirs="$current_libdirs $libdir" ;; | |
2941 | *) func_append current_libdirs " $libdir" ;; | |
1997 | 2942 | esac |
1998 | 2943 | else |
1999 | 2944 | # Note the libdir as a future libdir. |
2000 | 2945 | case "$future_libdirs " in |
2001 | 2946 | *" $libdir "*) ;; |
2002 | *) future_libdirs="$future_libdirs $libdir" ;; | |
2947 | *) func_append future_libdirs " $libdir" ;; | |
2003 | 2948 | esac |
2004 | 2949 | fi |
2005 | 2950 | |
2006 | 2951 | func_dirname "$file" "/" "" |
2007 | 2952 | dir="$func_dirname_result" |
2008 | dir="$dir$objdir" | |
2953 | func_append dir "$objdir" | |
2009 | 2954 | |
2010 | 2955 | if test -n "$relink_command"; then |
2011 | 2956 | # 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\$%%"` | |
2013 | 2958 | |
2014 | 2959 | # Don't allow the user to place us outside of our expected |
2015 | 2960 | # location b/c this prevents finding dependent libraries that |
2022 | 2967 | |
2023 | 2968 | if test -n "$inst_prefix_dir"; then |
2024 | 2969 | # 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%"` | |
2026 | 2971 | 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@%%"` | |
2028 | 2973 | fi |
2029 | 2974 | |
2030 | 2975 | func_warning "relinking \`$file'" |
2042 | 2987 | test -n "$relink_command" && srcname="$realname"T |
2043 | 2988 | |
2044 | 2989 | # 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" \ | |
2046 | 2991 | 'exit $?' |
2047 | 2992 | tstripme="$stripme" |
2048 | 2993 | case $host_os in |
2082 | 3027 | func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' |
2083 | 3028 | |
2084 | 3029 | # 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" | |
2086 | 3031 | ;; |
2087 | 3032 | |
2088 | 3033 | *.lo) |
2182 | 3127 | if test -f "$lib"; then |
2183 | 3128 | func_source "$lib" |
2184 | 3129 | 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 | |
2186 | 3131 | if test -n "$libdir" && test ! -f "$libfile"; then |
2187 | 3132 | func_warning "\`$lib' has not been installed in \`$libdir'" |
2188 | 3133 | finalize=no |
2201 | 3146 | file="$func_basename_result" |
2202 | 3147 | outputname="$tmpdir/$file" |
2203 | 3148 | # 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'` | |
2205 | 3150 | |
2206 | 3151 | $opt_silent || { |
2207 | 3152 | func_quote_for_expand "$relink_command" |
2220 | 3165 | } |
2221 | 3166 | else |
2222 | 3167 | # 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%"` | |
2224 | 3169 | fi |
2225 | 3170 | fi |
2226 | 3171 | |
2256 | 3201 | |
2257 | 3202 | # Set up the ranlib parameters. |
2258 | 3203 | oldlib="$destdir/$name" |
3204 | func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 | |
3205 | tool_oldlib=$func_to_tool_file_result | |
2259 | 3206 | |
2260 | 3207 | func_show_eval "$install_prog \$file \$oldlib" 'exit $?' |
2261 | 3208 | |
2262 | 3209 | 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 $?' | |
2264 | 3211 | fi |
2265 | 3212 | |
2266 | 3213 | # Do each command in the postinstall commands. |
2279 | 3226 | fi |
2280 | 3227 | } |
2281 | 3228 | |
2282 | test "$mode" = install && func_mode_install ${1+"$@"} | |
3229 | test "$opt_mode" = install && func_mode_install ${1+"$@"} | |
2283 | 3230 | |
2284 | 3231 | |
2285 | 3232 | # func_generate_dlsyms outputname originator pic_p |
2322 | 3269 | extern \"C\" { |
2323 | 3270 | #endif |
2324 | 3271 | |
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 | ||
2325 | 3288 | /* External symbol declarations for the compiler. */\ |
2326 | 3289 | " |
2327 | 3290 | |
2331 | 3294 | $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" |
2332 | 3295 | |
2333 | 3296 | # 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` | |
2335 | 3298 | 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'" | |
2338 | 3302 | done |
2339 | 3303 | |
2340 | 3304 | if test -n "$exclude_expsyms"; then |
2370 | 3334 | eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' |
2371 | 3335 | eval '$MV "$nlist"T "$nlist"' |
2372 | 3336 | case $host in |
2373 | *cygwin | *mingw* | *cegcc* ) | |
3337 | *cygwin* | *mingw* | *cegcc* ) | |
2374 | 3338 | eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' |
2375 | 3339 | eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' |
2376 | 3340 | ;; |
2383 | 3347 | func_verbose "extracting global C symbols from \`$dlprefile'" |
2384 | 3348 | func_basename "$dlprefile" |
2385 | 3349 | 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 | |
2390 | 3396 | done |
2391 | 3397 | |
2392 | 3398 | $opt_dry_run || { |
2414 | 3420 | if test -f "$nlist"S; then |
2415 | 3421 | eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' |
2416 | 3422 | else |
2417 | $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" | |
3423 | echo '/* NONE */' >> "$output_objdir/$my_dlsyms" | |
2418 | 3424 | fi |
2419 | 3425 | |
2420 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
3426 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2421 | 3427 | |
2422 | 3428 | /* The mapping between symbol names and symbols. */ |
2423 | 3429 | typedef struct { |
2424 | 3430 | const char *name; |
2425 | 3431 | void *address; |
2426 | 3432 | } 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 | |
2445 | 3434 | lt_${my_prefix}_LTX_preloaded_symbols[]; |
2446 | $lt_dlsym_const lt_dlsymlist | |
3435 | LT_DLSYM_CONST lt_dlsymlist | |
2447 | 3436 | lt_${my_prefix}_LTX_preloaded_symbols[] = |
2448 | 3437 | {\ |
2449 | 3438 | { \"$my_originator\", (void *) 0 }," |
2456 | 3445 | eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" |
2457 | 3446 | ;; |
2458 | 3447 | esac |
2459 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
3448 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2460 | 3449 | {0, (void *) 0} |
2461 | 3450 | }; |
2462 | 3451 | |
2483 | 3472 | # linked before any other PIC object. But we must not use |
2484 | 3473 | # pic_flag when linking with -static. The problem exists in |
2485 | 3474 | # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. |
2486 | *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) | |
3475 | *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) | |
2487 | 3476 | pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; |
2488 | 3477 | *-*-hpux*) |
2489 | 3478 | pic_flag_for_symtable=" $pic_flag" ;; |
2499 | 3488 | for arg in $LTCFLAGS; do |
2500 | 3489 | case $arg in |
2501 | 3490 | -pie | -fpie | -fPIE) ;; |
2502 | *) symtab_cflags="$symtab_cflags $arg" ;; | |
3491 | *) func_append symtab_cflags " $arg" ;; | |
2503 | 3492 | esac |
2504 | 3493 | done |
2505 | 3494 | |
2514 | 3503 | case $host in |
2515 | 3504 | *cygwin* | *mingw* | *cegcc* ) |
2516 | 3505 | 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%"` | |
2519 | 3508 | 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%"` | |
2522 | 3511 | fi |
2523 | 3512 | ;; |
2524 | 3513 | *) |
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%"` | |
2527 | 3516 | ;; |
2528 | 3517 | esac |
2529 | 3518 | ;; |
2537 | 3526 | # really was required. |
2538 | 3527 | |
2539 | 3528 | # 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@%%"` | |
2542 | 3531 | fi |
2543 | 3532 | } |
2544 | 3533 | |
2548 | 3537 | # Need a lot of goo to handle *both* DLLs and import libs |
2549 | 3538 | # Has to be a shell function in order to 'eat' the argument |
2550 | 3539 | # that is supplied when $file_magic_command is called. |
3540 | # Despite the name, also deal with 64 bit binaries. | |
2551 | 3541 | func_win32_libid () |
2552 | 3542 | { |
2553 | 3543 | $opt_debug |
2558 | 3548 | win32_libid_type="x86 archive import" |
2559 | 3549 | ;; |
2560 | 3550 | *ar\ archive*) # could be an import, or static |
3551 | # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. | |
2561 | 3552 | 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\" | | |
2564 | 3556 | $SED -n -e ' |
2565 | 3557 | 1,100{ |
2566 | 3558 | / I /{ |
2589 | 3581 | $ECHO "$win32_libid_type" |
2590 | 3582 | } |
2591 | 3583 | |
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 | ||
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 | } | |
2592 | 3709 | |
2593 | 3710 | |
2594 | 3711 | # func_extract_an_archive dir oldlib |
2597 | 3714 | $opt_debug |
2598 | 3715 | f_ex_an_ar_dir="$1"; shift |
2599 | 3716 | 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 | |
2601 | 3729 | if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then |
2602 | 3730 | : |
2603 | 3731 | else |
2668 | 3796 | darwin_file= |
2669 | 3797 | darwin_files= |
2670 | 3798 | 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` | |
2672 | 3800 | $LIPO -create -output "$darwin_file" $darwin_files |
2673 | 3801 | done # $darwin_filelist |
2674 | 3802 | $RM -rf unfat-$$ |
2683 | 3811 | func_extract_an_archive "$my_xdir" "$my_xabs" |
2684 | 3812 | ;; |
2685 | 3813 | 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` | |
2687 | 3815 | done |
2688 | 3816 | |
2689 | 3817 | func_extract_archives_result="$my_oldobjs" |
2690 | 3818 | } |
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 | |
2926 | 3819 | |
2927 | 3820 | |
2928 | 3821 | # func_emit_wrapper [arg=no] |
2941 | 3834 | # behavior. |
2942 | 3835 | func_emit_wrapper () |
2943 | 3836 | { |
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 | |
2957 | 3844 | # |
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. | |
2973 | 3847 | # |
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=. ;; | |
3024 | 4037 | esac |
3025 | 4038 | 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 | |
3123 | 4127 | fi |
3124 | } | |
3125 | # end: func_to_host_pathlist | |
4128 | fi\ | |
4129 | " | |
4130 | } | |
4131 | ||
3126 | 4132 | |
3127 | 4133 | # func_emit_cwrapperexe_src |
3128 | 4134 | # emit the source code for a wrapper executable on stdout |
3140 | 4146 | |
3141 | 4147 | This wrapper executable should never be moved out of the build directory. |
3142 | 4148 | 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. | |
3147 | 4149 | */ |
3148 | 4150 | EOF |
3149 | 4151 | cat <<"EOF" |
4152 | #ifdef _MSC_VER | |
4153 | # define _CRT_SECURE_NO_DEPRECATE 1 | |
4154 | #endif | |
3150 | 4155 | #include <stdio.h> |
3151 | 4156 | #include <stdlib.h> |
3152 | 4157 | #ifdef _MSC_VER |
3153 | 4158 | # include <direct.h> |
3154 | 4159 | # include <process.h> |
3155 | 4160 | # include <io.h> |
3156 | # define setmode _setmode | |
3157 | 4161 | #else |
3158 | 4162 | # include <unistd.h> |
3159 | 4163 | # include <stdint.h> |
3160 | 4164 | # ifdef __CYGWIN__ |
3161 | 4165 | # 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 | |
3168 | 4166 | # endif |
3169 | 4167 | #endif |
3170 | 4168 | #include <malloc.h> |
3176 | 4174 | #include <fcntl.h> |
3177 | 4175 | #include <sys/stat.h> |
3178 | 4176 | |
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 | ||
3179 | 4215 | #if defined(PATH_MAX) |
3180 | 4216 | # define LT_PATHMAX PATH_MAX |
3181 | 4217 | #elif defined(MAXPATHLEN) |
3191 | 4227 | # define S_IXGRP 0 |
3192 | 4228 | #endif |
3193 | 4229 | |
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 */ | |
3202 | 4231 | #ifndef DIR_SEPARATOR |
3203 | 4232 | # define DIR_SEPARATOR '/' |
3204 | 4233 | # define PATH_SEPARATOR ':' |
3229 | 4258 | # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) |
3230 | 4259 | #endif /* PATH_SEPARATOR_2 */ |
3231 | 4260 | |
3232 | #ifdef __CYGWIN__ | |
3233 | # define FOPEN_WB "wb" | |
3234 | #endif | |
3235 | ||
3236 | 4261 | #ifndef FOPEN_WB |
3237 | 4262 | # define FOPEN_WB "w" |
3238 | 4263 | #endif |
3245 | 4270 | if (stale) { free ((void *) stale); stale = 0; } \ |
3246 | 4271 | } while (0) |
3247 | 4272 | |
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; | |
3259 | 4275 | #else |
3260 | # define LTWRAPPER_DEBUGPRINTF(args) | |
4276 | static int lt_debug = 0; | |
3261 | 4277 | #endif |
3262 | 4278 | |
3263 | const char *program_name = NULL; | |
4279 | const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ | |
3264 | 4280 | |
3265 | 4281 | void *xmalloc (size_t num); |
3266 | 4282 | char *xstrdup (const char *string); |
3270 | 4286 | int make_executable (const char *path); |
3271 | 4287 | int check_executable (const char *path); |
3272 | 4288 | 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); | |
3274 | 4293 | void lt_setenv (const char *name, const char *value); |
3275 | 4294 | 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); | |
3280 | 4295 | void lt_update_exe_path (const char *name, const char *value); |
3281 | 4296 | 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); | |
3284 | 4299 | EOF |
3285 | 4300 | |
3286 | func_emit_wrapper_part1 yes | | |
3287 | $SED -e 's/\([\\"]\)/\\\1/g' \ | |
3288 | -e 's/^/ "/' -e 's/$/\\n"/' | |
3289 | echo ";" | |
3290 | 4301 | 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"; | |
3301 | 4303 | const char * LIB_PATH_VARNAME = "$shlibpath_var"; |
3302 | 4304 | EOF |
3303 | 4305 | |
3304 | 4306 | 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" | |
3306 | 4308 | cat <<EOF |
3307 | const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result"; | |
4309 | const char * LIB_PATH_VALUE = "$func_to_host_path_result"; | |
3308 | 4310 | EOF |
3309 | 4311 | else |
3310 | 4312 | cat <<"EOF" |
3313 | 4315 | fi |
3314 | 4316 | |
3315 | 4317 | if test -n "$dllsearchpath"; then |
3316 | func_to_host_pathlist "$dllsearchpath:" | |
4318 | func_to_host_path "$dllsearchpath:" | |
3317 | 4319 | cat <<EOF |
3318 | 4320 | 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"; | |
3320 | 4322 | EOF |
3321 | 4323 | else |
3322 | 4324 | cat <<"EOF" |
3339 | 4341 | cat <<"EOF" |
3340 | 4342 | |
3341 | 4343 | #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 | ||
3345 | 4345 | static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; |
3346 | ||
3347 | 4346 | 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"; | |
3360 | 4348 | |
3361 | 4349 | int |
3362 | 4350 | main (int argc, char *argv[]) |
3373 | 4361 | int i; |
3374 | 4362 | |
3375 | 4363 | 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; | |
3380 | 4371 | for (i = 1; i < argc; i++) |
3381 | 4372 | { |
3382 | 4373 | if (strcmp (argv[i], dumpscript_opt) == 0) |
3390 | 4381 | esac |
3391 | 4382 | |
3392 | 4383 | cat <<"EOF" |
3393 | printf ("%s", script_text_part1); | |
3394 | printf ("%s", script_text_part2); | |
4384 | lt_dump_script (stdout); | |
3395 | 4385 | return 0; |
3396 | 4386 | } |
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]); | |
3397 | 4409 | } |
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 | ||
3400 | 4421 | tmp_pathspec = find_executable (argv[0]); |
3401 | 4422 | 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); | |
3405 | 4427 | |
3406 | 4428 | 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); | |
3409 | 4432 | XFREE (tmp_pathspec); |
3410 | 4433 | |
3411 | actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path)); | |
4434 | actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path)); | |
3412 | 4435 | strendzap (actual_cwrapper_path, actual_cwrapper_name); |
3413 | 4436 | |
3414 | 4437 | /* wrapper name transforms */ |
3426 | 4449 | target_name = tmp_pathspec; |
3427 | 4450 | tmp_pathspec = 0; |
3428 | 4451 | |
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); | |
3431 | 4455 | EOF |
3432 | 4456 | |
3433 | 4457 | cat <<EOF |
3477 | 4501 | |
3478 | 4502 | lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ |
3479 | 4503 | 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); | |
3480 | 4509 | 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)); | |
3551 | 4513 | for (i = 0; i < newargc; i++) |
3552 | 4514 | { |
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])); | |
3554 | 4517 | } |
3555 | 4518 | |
3556 | 4519 | EOF |
3559 | 4522 | mingw*) |
3560 | 4523 | cat <<"EOF" |
3561 | 4524 | /* execv doesn't actually work on mingw as expected on unix */ |
4525 | newargz = prepare_spawn (newargz); | |
3562 | 4526 | rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); |
3563 | 4527 | if (rval == -1) |
3564 | 4528 | { |
3565 | 4529 | /* 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))); | |
3567 | 4533 | return 127; |
3568 | 4534 | } |
3569 | 4535 | return rval; |
3585 | 4551 | { |
3586 | 4552 | void *p = (void *) malloc (num); |
3587 | 4553 | if (!p) |
3588 | lt_fatal ("Memory exhausted"); | |
4554 | lt_fatal (__FILE__, __LINE__, "memory exhausted"); | |
3589 | 4555 | |
3590 | 4556 | return p; |
3591 | 4557 | } |
3619 | 4585 | { |
3620 | 4586 | struct stat st; |
3621 | 4587 | |
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)); | |
3624 | 4590 | if ((!path) || (!*path)) |
3625 | 4591 | return 0; |
3626 | 4592 | |
3637 | 4603 | int rval = 0; |
3638 | 4604 | struct stat st; |
3639 | 4605 | |
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)); | |
3642 | 4608 | if ((!path) || (!*path)) |
3643 | 4609 | return 0; |
3644 | 4610 | |
3664 | 4630 | int tmp_len; |
3665 | 4631 | char *concat_name; |
3666 | 4632 | |
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)); | |
3669 | 4635 | |
3670 | 4636 | if ((wrapper == NULL) || (*wrapper == '\0')) |
3671 | 4637 | return NULL; |
3718 | 4684 | { |
3719 | 4685 | /* empty path: current directory */ |
3720 | 4686 | if (getcwd (tmp, LT_PATHMAX) == NULL) |
3721 | lt_fatal ("getcwd failed"); | |
4687 | lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | |
4688 | nonnull (strerror (errno))); | |
3722 | 4689 | tmp_len = strlen (tmp); |
3723 | 4690 | concat_name = |
3724 | 4691 | XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); |
3743 | 4710 | } |
3744 | 4711 | /* Relative path | not found in path: prepend cwd */ |
3745 | 4712 | if (getcwd (tmp, LT_PATHMAX) == NULL) |
3746 | lt_fatal ("getcwd failed"); | |
4713 | lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | |
4714 | nonnull (strerror (errno))); | |
3747 | 4715 | tmp_len = strlen (tmp); |
3748 | 4716 | concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); |
3749 | 4717 | memcpy (concat_name, tmp, tmp_len); |
3769 | 4737 | int has_symlinks = 0; |
3770 | 4738 | while (strlen (tmp_pathspec) && !has_symlinks) |
3771 | 4739 | { |
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); | |
3774 | 4743 | if (lstat (tmp_pathspec, &s) == 0) |
3775 | 4744 | { |
3776 | 4745 | if (S_ISLNK (s.st_mode) != 0) |
3792 | 4761 | } |
3793 | 4762 | else |
3794 | 4763 | { |
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))); | |
3797 | 4767 | } |
3798 | 4768 | } |
3799 | 4769 | XFREE (tmp_pathspec); |
3806 | 4776 | tmp_pathspec = realpath (pathspec, buf); |
3807 | 4777 | if (tmp_pathspec == 0) |
3808 | 4778 | { |
3809 | lt_fatal ("Could not follow symlinks for %s", pathspec); | |
4779 | lt_fatal (__FILE__, __LINE__, | |
4780 | "could not follow symlinks for %s", pathspec); | |
3810 | 4781 | } |
3811 | 4782 | return xstrdup (tmp_pathspec); |
3812 | 4783 | #endif |
3832 | 4803 | return str; |
3833 | 4804 | } |
3834 | 4805 | |
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 | ||
3835 | 4819 | 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, | |
3837 | 4822 | const char *message, va_list ap) |
3838 | 4823 | { |
3839 | fprintf (stderr, "%s: %s: ", program_name, mode); | |
4824 | fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); | |
3840 | 4825 | vfprintf (stderr, message, ap); |
3841 | 4826 | fprintf (stderr, ".\n"); |
3842 | 4827 | |
3845 | 4830 | } |
3846 | 4831 | |
3847 | 4832 | void |
3848 | lt_fatal (const char *message, ...) | |
4833 | lt_fatal (const char *file, int line, const char *message, ...) | |
3849 | 4834 | { |
3850 | 4835 | va_list ap; |
3851 | 4836 | va_start (ap, message); |
3852 | lt_error_core (EXIT_FAILURE, "FATAL", message, ap); | |
4837 | lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); | |
3853 | 4838 | 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); | |
3854 | 4851 | } |
3855 | 4852 | |
3856 | 4853 | void |
3857 | 4854 | lt_setenv (const char *name, const char *value) |
3858 | 4855 | { |
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)); | |
3862 | 4859 | { |
3863 | 4860 | #ifdef HAVE_SETENV |
3864 | 4861 | /* always make a copy, for consistency with !HAVE_SETENV */ |
3903 | 4900 | return new_value; |
3904 | 4901 | } |
3905 | 4902 | |
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 | ||
3989 | 4903 | void |
3990 | 4904 | lt_update_exe_path (const char *name, const char *value) |
3991 | 4905 | { |
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)); | |
3995 | 4909 | |
3996 | 4910 | if (name && *name && value && *value) |
3997 | 4911 | { |
4010 | 4924 | void |
4011 | 4925 | lt_update_lib_path (const char *name, const char *value) |
4012 | 4926 | { |
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)); | |
4016 | 4930 | |
4017 | 4931 | if (name && *name && value && *value) |
4018 | 4932 | { |
4022 | 4936 | } |
4023 | 4937 | } |
4024 | 4938 | |
4025 | ||
4026 | 4939 | 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 | |
4027 | 5077 | } |
4028 | 5078 | # 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 | } | |
4029 | 5090 | |
4030 | 5091 | # func_mode_link arg... |
4031 | 5092 | func_mode_link () |
4071 | 5132 | new_inherited_linker_flags= |
4072 | 5133 | |
4073 | 5134 | avoid_version=no |
5135 | bindir= | |
4074 | 5136 | dlfiles= |
4075 | 5137 | dlprefiles= |
4076 | 5138 | dlself=no |
4163 | 5225 | esac |
4164 | 5226 | |
4165 | 5227 | case $prev in |
5228 | bindir) | |
5229 | bindir="$arg" | |
5230 | prev= | |
5231 | continue | |
5232 | ;; | |
4166 | 5233 | dlfiles|dlprefiles) |
4167 | 5234 | if test "$preload" = no; then |
4168 | 5235 | # Add the symbol object into the linking commands. |
4194 | 5261 | ;; |
4195 | 5262 | *) |
4196 | 5263 | if test "$prev" = dlfiles; then |
4197 | dlfiles="$dlfiles $arg" | |
5264 | func_append dlfiles " $arg" | |
4198 | 5265 | else |
4199 | dlprefiles="$dlprefiles $arg" | |
5266 | func_append dlprefiles " $arg" | |
4200 | 5267 | fi |
4201 | 5268 | prev= |
4202 | 5269 | continue |
4220 | 5287 | *-*-darwin*) |
4221 | 5288 | case "$deplibs " in |
4222 | 5289 | *" $qarg.ltframework "*) ;; |
4223 | *) deplibs="$deplibs $qarg.ltframework" # this is fixed later | |
5290 | *) func_append deplibs " $qarg.ltframework" # this is fixed later | |
4224 | 5291 | ;; |
4225 | 5292 | esac |
4226 | 5293 | ;; |
4239 | 5306 | moreargs= |
4240 | 5307 | for fil in `cat "$save_arg"` |
4241 | 5308 | do |
4242 | # moreargs="$moreargs $fil" | |
5309 | # func_append moreargs " $fil" | |
4243 | 5310 | arg=$fil |
4244 | 5311 | # A libtool-controlled object. |
4245 | 5312 | |
4268 | 5335 | |
4269 | 5336 | if test "$prev" = dlfiles; then |
4270 | 5337 | if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then |
4271 | dlfiles="$dlfiles $pic_object" | |
5338 | func_append dlfiles " $pic_object" | |
4272 | 5339 | prev= |
4273 | 5340 | continue |
4274 | 5341 | else |
4280 | 5347 | # CHECK ME: I think I busted this. -Ossama |
4281 | 5348 | if test "$prev" = dlprefiles; then |
4282 | 5349 | # Preload the old-style object. |
4283 | dlprefiles="$dlprefiles $pic_object" | |
5350 | func_append dlprefiles " $pic_object" | |
4284 | 5351 | prev= |
4285 | 5352 | fi |
4286 | 5353 | |
4350 | 5417 | if test "$prev" = rpath; then |
4351 | 5418 | case "$rpath " in |
4352 | 5419 | *" $arg "*) ;; |
4353 | *) rpath="$rpath $arg" ;; | |
5420 | *) func_append rpath " $arg" ;; | |
4354 | 5421 | esac |
4355 | 5422 | else |
4356 | 5423 | case "$xrpath " in |
4357 | 5424 | *" $arg "*) ;; |
4358 | *) xrpath="$xrpath $arg" ;; | |
5425 | *) func_append xrpath " $arg" ;; | |
4359 | 5426 | esac |
4360 | 5427 | fi |
4361 | 5428 | prev= |
4367 | 5434 | continue |
4368 | 5435 | ;; |
4369 | 5436 | weak) |
4370 | weak_libs="$weak_libs $arg" | |
5437 | func_append weak_libs " $arg" | |
4371 | 5438 | prev= |
4372 | 5439 | continue |
4373 | 5440 | ;; |
4374 | 5441 | 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" | |
4377 | 5444 | prev= |
4378 | 5445 | func_append compile_command " $qarg" |
4379 | 5446 | func_append finalize_command " $qarg" |
4380 | 5447 | continue |
4381 | 5448 | ;; |
4382 | 5449 | xcompiler) |
4383 | compiler_flags="$compiler_flags $qarg" | |
5450 | func_append compiler_flags " $qarg" | |
4384 | 5451 | prev= |
4385 | 5452 | func_append compile_command " $qarg" |
4386 | 5453 | func_append finalize_command " $qarg" |
4387 | 5454 | continue |
4388 | 5455 | ;; |
4389 | 5456 | 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" | |
4392 | 5459 | prev= |
4393 | 5460 | func_append compile_command " $wl$qarg" |
4394 | 5461 | func_append finalize_command " $wl$qarg" |
4424 | 5491 | continue |
4425 | 5492 | ;; |
4426 | 5493 | |
5494 | -bindir) | |
5495 | prev=bindir | |
5496 | continue | |
5497 | ;; | |
5498 | ||
4427 | 5499 | -dlopen) |
4428 | 5500 | prev=dlfiles |
4429 | 5501 | continue |
4474 | 5546 | ;; |
4475 | 5547 | |
4476 | 5548 | -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 | |
4480 | 5551 | if test "$#" -gt 0; then |
4481 | 5552 | func_fatal_error "require no space between \`-L' and \`$1'" |
4482 | 5553 | else |
4483 | 5554 | func_fatal_error "need path for \`-L' option" |
4484 | 5555 | fi |
4485 | 5556 | fi |
5557 | func_resolve_sysroot "$func_stripname_result" | |
5558 | dir=$func_resolve_sysroot_result | |
4486 | 5559 | # We need an absolute path. |
4487 | 5560 | case $dir in |
4488 | 5561 | [\\/]* | [A-Za-z]:[\\/]*) ;; |
4494 | 5567 | ;; |
4495 | 5568 | esac |
4496 | 5569 | case "$deplibs " in |
4497 | *" -L$dir "*) ;; | |
5570 | *" -L$dir "* | *" $arg "*) | |
5571 | # Will only happen for absolute or sysroot arguments | |
5572 | ;; | |
4498 | 5573 | *) |
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" | |
4501 | 5580 | ;; |
4502 | 5581 | esac |
4503 | 5582 | case $host in |
4504 | 5583 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) |
4505 | testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` | |
5584 | testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` | |
4506 | 5585 | case :$dllsearchpath: in |
4507 | 5586 | *":$dir:"*) ;; |
4508 | 5587 | ::) dllsearchpath=$dir;; |
4509 | *) dllsearchpath="$dllsearchpath:$dir";; | |
5588 | *) func_append dllsearchpath ":$dir";; | |
4510 | 5589 | esac |
4511 | 5590 | case :$dllsearchpath: in |
4512 | 5591 | *":$testbindir:"*) ;; |
4513 | 5592 | ::) dllsearchpath=$testbindir;; |
4514 | *) dllsearchpath="$dllsearchpath:$testbindir";; | |
5593 | *) func_append dllsearchpath ":$testbindir";; | |
4515 | 5594 | esac |
4516 | 5595 | ;; |
4517 | 5596 | esac |
4521 | 5600 | -l*) |
4522 | 5601 | if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then |
4523 | 5602 | case $host in |
4524 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) | |
5603 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) | |
4525 | 5604 | # These systems don't actually have a C or math library (as such) |
4526 | 5605 | continue |
4527 | 5606 | ;; |
4535 | 5614 | ;; |
4536 | 5615 | *-*-rhapsody* | *-*-darwin1.[012]) |
4537 | 5616 | # Rhapsody C and math libraries are in the System framework |
4538 | deplibs="$deplibs System.ltframework" | |
5617 | func_append deplibs " System.ltframework" | |
4539 | 5618 | continue |
4540 | 5619 | ;; |
4541 | 5620 | *-*-sco3.2v5* | *-*-sco5v6*) |
4555 | 5634 | ;; |
4556 | 5635 | esac |
4557 | 5636 | fi |
4558 | deplibs="$deplibs $arg" | |
5637 | func_append deplibs " $arg" | |
4559 | 5638 | continue |
4560 | 5639 | ;; |
4561 | 5640 | |
4567 | 5646 | # Tru64 UNIX uses -model [arg] to determine the layout of C++ |
4568 | 5647 | # classes, name mangling, and exception handling. |
4569 | 5648 | # 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" | |
4572 | 5651 | func_append compile_command " $arg" |
4573 | 5652 | func_append finalize_command " $arg" |
4574 | 5653 | prev=xcompiler |
4575 | 5654 | continue |
4576 | 5655 | ;; |
4577 | 5656 | |
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" | |
4580 | 5660 | func_append compile_command " $arg" |
4581 | 5661 | func_append finalize_command " $arg" |
4582 | 5662 | case "$new_inherited_linker_flags " in |
4583 | 5663 | *" $arg "*) ;; |
4584 | * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; | |
5664 | * ) func_append new_inherited_linker_flags " $arg" ;; | |
4585 | 5665 | esac |
4586 | 5666 | continue |
4587 | 5667 | ;; |
4648 | 5728 | # We need an absolute path. |
4649 | 5729 | case $dir in |
4650 | 5730 | [\\/]* | [A-Za-z]:[\\/]*) ;; |
5731 | =*) | |
5732 | func_stripname '=' '' "$dir" | |
5733 | dir=$lt_sysroot$func_stripname_result | |
5734 | ;; | |
4651 | 5735 | *) |
4652 | 5736 | func_fatal_error "only absolute run-paths are allowed" |
4653 | 5737 | ;; |
4654 | 5738 | esac |
4655 | 5739 | case "$xrpath " in |
4656 | 5740 | *" $dir "*) ;; |
4657 | *) xrpath="$xrpath $dir" ;; | |
5741 | *) func_append xrpath " $dir" ;; | |
4658 | 5742 | esac |
4659 | 5743 | continue |
4660 | 5744 | ;; |
4707 | 5791 | for flag in $args; do |
4708 | 5792 | IFS="$save_ifs" |
4709 | 5793 | 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" | |
4712 | 5796 | done |
4713 | 5797 | IFS="$save_ifs" |
4714 | 5798 | func_stripname ' ' '' "$arg" |
4723 | 5807 | for flag in $args; do |
4724 | 5808 | IFS="$save_ifs" |
4725 | 5809 | 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" | |
4729 | 5813 | done |
4730 | 5814 | IFS="$save_ifs" |
4731 | 5815 | func_stripname ' ' '' "$arg" |
4753 | 5837 | arg="$func_quote_for_eval_result" |
4754 | 5838 | ;; |
4755 | 5839 | |
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 | |
4766 | 5853 | -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) | |
4768 | 5856 | func_quote_for_eval "$arg" |
4769 | 5857 | arg="$func_quote_for_eval_result" |
4770 | 5858 | func_append compile_command " $arg" |
4771 | 5859 | func_append finalize_command " $arg" |
4772 | compiler_flags="$compiler_flags $arg" | |
5860 | func_append compiler_flags " $arg" | |
4773 | 5861 | continue |
4774 | 5862 | ;; |
4775 | 5863 | |
4781 | 5869 | |
4782 | 5870 | *.$objext) |
4783 | 5871 | # A standard object. |
4784 | objs="$objs $arg" | |
5872 | func_append objs " $arg" | |
4785 | 5873 | ;; |
4786 | 5874 | |
4787 | 5875 | *.lo) |
4812 | 5900 | |
4813 | 5901 | if test "$prev" = dlfiles; then |
4814 | 5902 | if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then |
4815 | dlfiles="$dlfiles $pic_object" | |
5903 | func_append dlfiles " $pic_object" | |
4816 | 5904 | prev= |
4817 | 5905 | continue |
4818 | 5906 | else |
4824 | 5912 | # CHECK ME: I think I busted this. -Ossama |
4825 | 5913 | if test "$prev" = dlprefiles; then |
4826 | 5914 | # Preload the old-style object. |
4827 | dlprefiles="$dlprefiles $pic_object" | |
5915 | func_append dlprefiles " $pic_object" | |
4828 | 5916 | prev= |
4829 | 5917 | fi |
4830 | 5918 | |
4869 | 5957 | |
4870 | 5958 | *.$libext) |
4871 | 5959 | # An archive. |
4872 | deplibs="$deplibs $arg" | |
4873 | old_deplibs="$old_deplibs $arg" | |
5960 | func_append deplibs " $arg" | |
5961 | func_append old_deplibs " $arg" | |
4874 | 5962 | continue |
4875 | 5963 | ;; |
4876 | 5964 | |
4877 | 5965 | *.la) |
4878 | 5966 | # A libtool-controlled library. |
4879 | 5967 | |
5968 | func_resolve_sysroot "$arg" | |
4880 | 5969 | if test "$prev" = dlfiles; then |
4881 | 5970 | # This library was specified with -dlopen. |
4882 | dlfiles="$dlfiles $arg" | |
5971 | func_append dlfiles " $func_resolve_sysroot_result" | |
4883 | 5972 | prev= |
4884 | 5973 | elif test "$prev" = dlprefiles; then |
4885 | 5974 | # The library was specified with -dlpreopen. |
4886 | dlprefiles="$dlprefiles $arg" | |
5975 | func_append dlprefiles " $func_resolve_sysroot_result" | |
4887 | 5976 | prev= |
4888 | 5977 | else |
4889 | deplibs="$deplibs $arg" | |
5978 | func_append deplibs " $func_resolve_sysroot_result" | |
4890 | 5979 | fi |
4891 | 5980 | continue |
4892 | 5981 | ;; |
4924 | 6013 | |
4925 | 6014 | if test -n "$shlibpath_var"; then |
4926 | 6015 | # 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\'\` | |
4928 | 6017 | else |
4929 | 6018 | shlib_search_path= |
4930 | 6019 | fi |
4933 | 6022 | |
4934 | 6023 | func_dirname "$output" "/" "" |
4935 | 6024 | output_objdir="$func_dirname_result$objdir" |
6025 | func_to_tool_file "$output_objdir/" | |
6026 | tool_output_objdir=$func_to_tool_file_result | |
4936 | 6027 | # Create the object directory. |
4937 | 6028 | func_mkdir_p "$output_objdir" |
4938 | 6029 | |
4953 | 6044 | # Find all interdependent deplibs by searching for libraries |
4954 | 6045 | # that are linked more than once (e.g. -la -lb -la) |
4955 | 6046 | for deplib in $deplibs; do |
4956 | if $opt_duplicate_deps ; then | |
6047 | if $opt_preserve_dup_deps ; then | |
4957 | 6048 | case "$libs " in |
4958 | *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | |
6049 | *" $deplib "*) func_append specialdeplibs " $deplib" ;; | |
4959 | 6050 | esac |
4960 | 6051 | fi |
4961 | libs="$libs $deplib" | |
6052 | func_append libs " $deplib" | |
4962 | 6053 | done |
4963 | 6054 | |
4964 | 6055 | if test "$linkmode" = lib; then |
4971 | 6062 | if $opt_duplicate_compiler_generated_deps; then |
4972 | 6063 | for pre_post_dep in $predeps $postdeps; do |
4973 | 6064 | case "$pre_post_deps " in |
4974 | *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; | |
6065 | *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; | |
4975 | 6066 | esac |
4976 | pre_post_deps="$pre_post_deps $pre_post_dep" | |
6067 | func_append pre_post_deps " $pre_post_dep" | |
4977 | 6068 | done |
4978 | 6069 | fi |
4979 | 6070 | pre_post_deps= |
5032 | 6123 | case $pass in |
5033 | 6124 | dlopen) libs="$dlfiles" ;; |
5034 | 6125 | 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" ;; | |
5039 | 6127 | esac |
5040 | 6128 | fi |
5041 | 6129 | if test "$linkmode,$pass" = "lib,dlpreopen"; then |
5043 | 6131 | for lib in $dlprefiles; do |
5044 | 6132 | # Ignore non-libtool-libs |
5045 | 6133 | dependency_libs= |
6134 | func_resolve_sysroot "$lib" | |
5046 | 6135 | case $lib in |
5047 | *.la) func_source "$lib" ;; | |
6136 | *.la) func_source "$func_resolve_sysroot_result" ;; | |
5048 | 6137 | esac |
5049 | 6138 | |
5050 | 6139 | # Collect preopened libtool deplibs, except any this library |
5051 | 6140 | # has declared as weak libs |
5052 | 6141 | 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 | |
5054 | 6144 | case " $weak_libs " in |
5055 | 6145 | *" $deplib_base "*) ;; |
5056 | *) deplibs="$deplibs $deplib" ;; | |
6146 | *) func_append deplibs " $deplib" ;; | |
5057 | 6147 | esac |
5058 | 6148 | done |
5059 | 6149 | done |
5069 | 6159 | lib= |
5070 | 6160 | found=no |
5071 | 6161 | 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=*) | |
5073 | 6164 | if test "$linkmode,$pass" = "prog,link"; then |
5074 | 6165 | compile_deplibs="$deplib $compile_deplibs" |
5075 | 6166 | finalize_deplibs="$deplib $finalize_deplibs" |
5076 | 6167 | else |
5077 | compiler_flags="$compiler_flags $deplib" | |
6168 | func_append compiler_flags " $deplib" | |
5078 | 6169 | if test "$linkmode" = lib ; then |
5079 | 6170 | case "$new_inherited_linker_flags " in |
5080 | 6171 | *" $deplib "*) ;; |
5081 | * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; | |
6172 | * ) func_append new_inherited_linker_flags " $deplib" ;; | |
5082 | 6173 | esac |
5083 | 6174 | fi |
5084 | 6175 | fi |
5163 | 6254 | if test "$linkmode" = lib ; then |
5164 | 6255 | case "$new_inherited_linker_flags " in |
5165 | 6256 | *" $deplib "*) ;; |
5166 | * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; | |
6257 | * ) func_append new_inherited_linker_flags " $deplib" ;; | |
5167 | 6258 | esac |
5168 | 6259 | fi |
5169 | 6260 | fi |
5176 | 6267 | test "$pass" = conv && continue |
5177 | 6268 | newdependency_libs="$deplib $newdependency_libs" |
5178 | 6269 | 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" | |
5180 | 6272 | ;; |
5181 | 6273 | prog) |
5182 | 6274 | if test "$pass" = conv; then |
5190 | 6282 | finalize_deplibs="$deplib $finalize_deplibs" |
5191 | 6283 | fi |
5192 | 6284 | 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" | |
5194 | 6287 | ;; |
5195 | 6288 | *) |
5196 | 6289 | func_warning "\`-L' is ignored for archives/objects" |
5201 | 6294 | -R*) |
5202 | 6295 | if test "$pass" = link; then |
5203 | 6296 | func_stripname '-R' '' "$deplib" |
5204 | dir=$func_stripname_result | |
6297 | func_resolve_sysroot "$func_stripname_result" | |
6298 | dir=$func_resolve_sysroot_result | |
5205 | 6299 | # Make sure the xrpath contains only unique directories. |
5206 | 6300 | case "$xrpath " in |
5207 | 6301 | *" $dir "*) ;; |
5208 | *) xrpath="$xrpath $dir" ;; | |
6302 | *) func_append xrpath " $dir" ;; | |
5209 | 6303 | esac |
5210 | 6304 | fi |
5211 | 6305 | deplibs="$deplib $deplibs" |
5212 | 6306 | continue |
5213 | 6307 | ;; |
5214 | *.la) lib="$deplib" ;; | |
6308 | *.la) | |
6309 | func_resolve_sysroot "$deplib" | |
6310 | lib=$func_resolve_sysroot_result | |
6311 | ;; | |
5215 | 6312 | *.$libext) |
5216 | 6313 | if test "$pass" = conv; then |
5217 | 6314 | deplibs="$deplib $deplibs" |
5229 | 6326 | match_pattern*) |
5230 | 6327 | set dummy $deplibs_check_method; shift |
5231 | 6328 | 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 \ | |
5233 | 6330 | | $EGREP "$match_pattern_regex" > /dev/null; then |
5234 | 6331 | valid_a_lib=yes |
5235 | 6332 | fi |
5239 | 6336 | ;; |
5240 | 6337 | esac |
5241 | 6338 | if test "$valid_a_lib" != yes; then |
5242 | $ECHO | |
6339 | echo | |
5243 | 6340 | $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." | |
5249 | 6346 | else |
5250 | $ECHO | |
6347 | echo | |
5251 | 6348 | $ECHO "*** Warning: Linking the shared library $output against the" |
5252 | 6349 | $ECHO "*** static library $deplib is not portable!" |
5253 | 6350 | deplibs="$deplib $deplibs" |
5274 | 6371 | if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then |
5275 | 6372 | # If there is no dlopen support or we're linking statically, |
5276 | 6373 | # we need to preload. |
5277 | newdlprefiles="$newdlprefiles $deplib" | |
6374 | func_append newdlprefiles " $deplib" | |
5278 | 6375 | compile_deplibs="$deplib $compile_deplibs" |
5279 | 6376 | finalize_deplibs="$deplib $finalize_deplibs" |
5280 | 6377 | else |
5281 | newdlfiles="$newdlfiles $deplib" | |
6378 | func_append newdlfiles " $deplib" | |
5282 | 6379 | fi |
5283 | 6380 | fi |
5284 | 6381 | continue |
5320 | 6417 | |
5321 | 6418 | # Convert "-framework foo" to "foo.ltframework" |
5322 | 6419 | 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'` | |
5324 | 6421 | for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do |
5325 | 6422 | case " $new_inherited_linker_flags " in |
5326 | 6423 | *" $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";; | |
5328 | 6425 | esac |
5329 | 6426 | done |
5330 | 6427 | 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'` | |
5332 | 6429 | if test "$linkmode,$pass" = "lib,link" || |
5333 | 6430 | test "$linkmode,$pass" = "prog,scan" || |
5334 | 6431 | { 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" | |
5337 | 6434 | fi |
5338 | 6435 | |
5339 | 6436 | if test "$pass" = conv; then |
5344 | 6441 | func_fatal_error "cannot find name of link library for \`$lib'" |
5345 | 6442 | fi |
5346 | 6443 | # 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" | |
5359 | 6446 | elif test "$linkmode" != prog && test "$linkmode" != lib; then |
5360 | 6447 | func_fatal_error "\`$lib' is not a convenience library" |
5361 | 6448 | 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 | |
5362 | 6459 | continue |
5363 | 6460 | fi # $pass = conv |
5364 | 6461 | |
5365 | 6462 | |
5366 | 6463 | # Get the name of the library we link against. |
5367 | 6464 | 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 | |
5371 | 6474 | if test -z "$linklib"; then |
5372 | 6475 | func_fatal_error "cannot find name of link library for \`$lib'" |
5373 | 6476 | fi |
5384 | 6487 | # statically, we need to preload. We also need to preload any |
5385 | 6488 | # dependent libraries so libltdl's deplib preloader doesn't |
5386 | 6489 | # bomb out in the load deplibs phase. |
5387 | dlprefiles="$dlprefiles $lib $dependency_libs" | |
6490 | func_append dlprefiles " $lib $dependency_libs" | |
5388 | 6491 | else |
5389 | newdlfiles="$newdlfiles $lib" | |
6492 | func_append newdlfiles " $lib" | |
5390 | 6493 | fi |
5391 | 6494 | continue |
5392 | 6495 | fi # $pass = dlopen |
5408 | 6511 | |
5409 | 6512 | # Find the relevant object directory and library name. |
5410 | 6513 | 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 | |
5412 | 6515 | func_warning "library \`$lib' was moved." |
5413 | 6516 | dir="$ladir" |
5414 | 6517 | absdir="$abs_ladir" |
5415 | 6518 | libdir="$abs_ladir" |
5416 | 6519 | else |
5417 | dir="$libdir" | |
5418 | absdir="$libdir" | |
6520 | dir="$lt_sysroot$libdir" | |
6521 | absdir="$lt_sysroot$libdir" | |
5419 | 6522 | fi |
5420 | 6523 | test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes |
5421 | 6524 | else |
5423 | 6526 | dir="$ladir" |
5424 | 6527 | absdir="$abs_ladir" |
5425 | 6528 | # Remove this search path later |
5426 | notinst_path="$notinst_path $abs_ladir" | |
6529 | func_append notinst_path " $abs_ladir" | |
5427 | 6530 | else |
5428 | 6531 | dir="$ladir/$objdir" |
5429 | 6532 | absdir="$abs_ladir/$objdir" |
5430 | 6533 | # Remove this search path later |
5431 | notinst_path="$notinst_path $abs_ladir" | |
6534 | func_append notinst_path " $abs_ladir" | |
5432 | 6535 | fi |
5433 | 6536 | fi # $installed = yes |
5434 | 6537 | func_stripname 'lib' '.la' "$laname" |
5439 | 6542 | if test -z "$libdir" && test "$linkmode" = prog; then |
5440 | 6543 | func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" |
5441 | 6544 | 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 | |
5456 | 6585 | fi # $pass = dlpreopen |
5457 | 6586 | |
5458 | 6587 | if test -z "$libdir"; then |
5470 | 6599 | |
5471 | 6600 | |
5472 | 6601 | if test "$linkmode" = prog && test "$pass" != link; then |
5473 | newlib_search_path="$newlib_search_path $ladir" | |
6602 | func_append newlib_search_path " $ladir" | |
5474 | 6603 | deplibs="$lib $deplibs" |
5475 | 6604 | |
5476 | 6605 | linkalldeplibs=no |
5483 | 6612 | for deplib in $dependency_libs; do |
5484 | 6613 | case $deplib in |
5485 | 6614 | -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" | |
5487 | 6617 | ;; |
5488 | 6618 | esac |
5489 | 6619 | # Need to link against all dependency_libs? |
5494 | 6624 | # or/and link against static libraries |
5495 | 6625 | newdependency_libs="$deplib $newdependency_libs" |
5496 | 6626 | fi |
5497 | if $opt_duplicate_deps ; then | |
6627 | if $opt_preserve_dup_deps ; then | |
5498 | 6628 | case "$tmp_libs " in |
5499 | *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | |
6629 | *" $deplib "*) func_append specialdeplibs " $deplib" ;; | |
5500 | 6630 | esac |
5501 | 6631 | fi |
5502 | tmp_libs="$tmp_libs $deplib" | |
6632 | func_append tmp_libs " $deplib" | |
5503 | 6633 | done # for deplib |
5504 | 6634 | continue |
5505 | 6635 | fi # $linkmode = prog... |
5514 | 6644 | # Make sure the rpath contains only unique directories. |
5515 | 6645 | case "$temp_rpath:" in |
5516 | 6646 | *"$absdir:"*) ;; |
5517 | *) temp_rpath="$temp_rpath$absdir:" ;; | |
6647 | *) func_append temp_rpath "$absdir:" ;; | |
5518 | 6648 | esac |
5519 | 6649 | fi |
5520 | 6650 | |
5526 | 6656 | *) |
5527 | 6657 | case "$compile_rpath " in |
5528 | 6658 | *" $absdir "*) ;; |
5529 | *) compile_rpath="$compile_rpath $absdir" | |
6659 | *) func_append compile_rpath " $absdir" ;; | |
5530 | 6660 | esac |
5531 | 6661 | ;; |
5532 | 6662 | esac |
5535 | 6665 | *) |
5536 | 6666 | case "$finalize_rpath " in |
5537 | 6667 | *" $libdir "*) ;; |
5538 | *) finalize_rpath="$finalize_rpath $libdir" | |
6668 | *) func_append finalize_rpath " $libdir" ;; | |
5539 | 6669 | esac |
5540 | 6670 | ;; |
5541 | 6671 | esac |
5560 | 6690 | case $host in |
5561 | 6691 | *cygwin* | *mingw* | *cegcc*) |
5562 | 6692 | # No point in relinking DLLs because paths are not encoded |
5563 | notinst_deplibs="$notinst_deplibs $lib" | |
6693 | func_append notinst_deplibs " $lib" | |
5564 | 6694 | need_relink=no |
5565 | 6695 | ;; |
5566 | 6696 | *) |
5567 | 6697 | if test "$installed" = no; then |
5568 | notinst_deplibs="$notinst_deplibs $lib" | |
6698 | func_append notinst_deplibs " $lib" | |
5569 | 6699 | need_relink=yes |
5570 | 6700 | fi |
5571 | 6701 | ;; |
5582 | 6712 | fi |
5583 | 6713 | done |
5584 | 6714 | if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then |
5585 | $ECHO | |
6715 | echo | |
5586 | 6716 | if test "$linkmode" = prog; then |
5587 | 6717 | $ECHO "*** Warning: Linking the executable $output against the loadable module" |
5588 | 6718 | else |
5600 | 6730 | *) |
5601 | 6731 | case "$compile_rpath " in |
5602 | 6732 | *" $absdir "*) ;; |
5603 | *) compile_rpath="$compile_rpath $absdir" | |
6733 | *) func_append compile_rpath " $absdir" ;; | |
5604 | 6734 | esac |
5605 | 6735 | ;; |
5606 | 6736 | esac |
5609 | 6739 | *) |
5610 | 6740 | case "$finalize_rpath " in |
5611 | 6741 | *" $libdir "*) ;; |
5612 | *) finalize_rpath="$finalize_rpath $libdir" | |
6742 | *) func_append finalize_rpath " $libdir" ;; | |
5613 | 6743 | esac |
5614 | 6744 | ;; |
5615 | 6745 | esac |
5663 | 6793 | linklib=$newlib |
5664 | 6794 | fi # test -n "$old_archive_from_expsyms_cmds" |
5665 | 6795 | |
5666 | if test "$linkmode" = prog || test "$mode" != relink; then | |
6796 | if test "$linkmode" = prog || test "$opt_mode" != relink; then | |
5667 | 6797 | add_shlibpath= |
5668 | 6798 | add_dir= |
5669 | 6799 | add= |
5685 | 6815 | if test "X$dlopenmodule" != "X$lib"; then |
5686 | 6816 | $ECHO "*** Warning: lib $linklib is a module, not a shared library" |
5687 | 6817 | 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" | |
5691 | 6821 | else |
5692 | 6822 | add="$dir/$old_library" |
5693 | 6823 | fi |
5714 | 6844 | test "$hardcode_direct_absolute" = no; then |
5715 | 6845 | add="$dir/$linklib" |
5716 | 6846 | elif test "$hardcode_minus_L" = yes; then |
5717 | add_dir="-L$dir" | |
6847 | add_dir="-L$absdir" | |
5718 | 6848 | # Try looking first in the location we're being installed to. |
5719 | 6849 | if test -n "$inst_prefix_dir"; then |
5720 | 6850 | case $libdir in |
5721 | 6851 | [\\/]*) |
5722 | add_dir="$add_dir -L$inst_prefix_dir$libdir" | |
6852 | func_append add_dir " -L$inst_prefix_dir$libdir" | |
5723 | 6853 | ;; |
5724 | 6854 | esac |
5725 | 6855 | fi |
5741 | 6871 | if test -n "$add_shlibpath"; then |
5742 | 6872 | case :$compile_shlibpath: in |
5743 | 6873 | *":$add_shlibpath:"*) ;; |
5744 | *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; | |
6874 | *) func_append compile_shlibpath "$add_shlibpath:" ;; | |
5745 | 6875 | esac |
5746 | 6876 | fi |
5747 | 6877 | if test "$linkmode" = prog; then |
5755 | 6885 | test "$hardcode_shlibpath_var" = yes; then |
5756 | 6886 | case :$finalize_shlibpath: in |
5757 | 6887 | *":$libdir:"*) ;; |
5758 | *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; | |
6888 | *) func_append finalize_shlibpath "$libdir:" ;; | |
5759 | 6889 | esac |
5760 | 6890 | fi |
5761 | 6891 | fi |
5762 | 6892 | fi |
5763 | 6893 | |
5764 | if test "$linkmode" = prog || test "$mode" = relink; then | |
6894 | if test "$linkmode" = prog || test "$opt_mode" = relink; then | |
5765 | 6895 | add_shlibpath= |
5766 | 6896 | add_dir= |
5767 | 6897 | add= |
5775 | 6905 | elif test "$hardcode_shlibpath_var" = yes; then |
5776 | 6906 | case :$finalize_shlibpath: in |
5777 | 6907 | *":$libdir:"*) ;; |
5778 | *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; | |
6908 | *) func_append finalize_shlibpath "$libdir:" ;; | |
5779 | 6909 | esac |
5780 | 6910 | add="-l$name" |
5781 | 6911 | elif test "$hardcode_automatic" = yes; then |
5792 | 6922 | if test -n "$inst_prefix_dir"; then |
5793 | 6923 | case $libdir in |
5794 | 6924 | [\\/]*) |
5795 | add_dir="$add_dir -L$inst_prefix_dir$libdir" | |
6925 | func_append add_dir " -L$inst_prefix_dir$libdir" | |
5796 | 6926 | ;; |
5797 | 6927 | esac |
5798 | 6928 | fi |
5827 | 6957 | |
5828 | 6958 | # Just print a warning and add the library to dependency_libs so |
5829 | 6959 | # that the program can be linked against the static library. |
5830 | $ECHO | |
6960 | echo | |
5831 | 6961 | $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." | |
5835 | 6965 | 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." | |
5839 | 6969 | 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." | |
5845 | 6975 | fi |
5846 | 6976 | if test "$build_old_libs" = no; then |
5847 | 6977 | build_libtool_libs=module |
5869 | 6999 | temp_xrpath=$func_stripname_result |
5870 | 7000 | case " $xrpath " in |
5871 | 7001 | *" $temp_xrpath "*) ;; |
5872 | *) xrpath="$xrpath $temp_xrpath";; | |
7002 | *) func_append xrpath " $temp_xrpath";; | |
5873 | 7003 | esac;; |
5874 | *) temp_deplibs="$temp_deplibs $libdir";; | |
7004 | *) func_append temp_deplibs " $libdir";; | |
5875 | 7005 | esac |
5876 | 7006 | done |
5877 | 7007 | dependency_libs="$temp_deplibs" |
5878 | 7008 | fi |
5879 | 7009 | |
5880 | newlib_search_path="$newlib_search_path $absdir" | |
7010 | func_append newlib_search_path " $absdir" | |
5881 | 7011 | # Link against this library |
5882 | 7012 | test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" |
5883 | 7013 | # ... and its dependency_libs |
5884 | 7014 | tmp_libs= |
5885 | 7015 | for deplib in $dependency_libs; do |
5886 | 7016 | 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 | |
5888 | 7023 | case "$tmp_libs " in |
5889 | *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | |
7024 | *" $func_resolve_sysroot_result "*) | |
7025 | func_append specialdeplibs " $func_resolve_sysroot_result" ;; | |
5890 | 7026 | esac |
5891 | 7027 | fi |
5892 | tmp_libs="$tmp_libs $deplib" | |
7028 | func_append tmp_libs " $func_resolve_sysroot_result" | |
5893 | 7029 | done |
5894 | 7030 | |
5895 | 7031 | if test "$link_all_deplibs" != no; then |
5899 | 7035 | case $deplib in |
5900 | 7036 | -L*) path="$deplib" ;; |
5901 | 7037 | *.la) |
7038 | func_resolve_sysroot "$deplib" | |
7039 | deplib=$func_resolve_sysroot_result | |
5902 | 7040 | func_dirname "$deplib" "" "." |
5903 | dir="$func_dirname_result" | |
7041 | dir=$func_dirname_result | |
5904 | 7042 | # We need an absolute path. |
5905 | 7043 | case $dir in |
5906 | 7044 | [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; |
5927 | 7065 | if test -z "$darwin_install_name"; then |
5928 | 7066 | darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` |
5929 | 7067 | 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}" | |
5932 | 7070 | path= |
5933 | 7071 | fi |
5934 | 7072 | fi |
5961 | 7099 | compile_deplibs="$new_inherited_linker_flags $compile_deplibs" |
5962 | 7100 | finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" |
5963 | 7101 | 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'` | |
5965 | 7103 | fi |
5966 | 7104 | fi |
5967 | 7105 | dependency_libs="$newdependency_libs" |
5978 | 7116 | for dir in $newlib_search_path; do |
5979 | 7117 | case "$lib_search_path " in |
5980 | 7118 | *" $dir "*) ;; |
5981 | *) lib_search_path="$lib_search_path $dir" ;; | |
7119 | *) func_append lib_search_path " $dir" ;; | |
5982 | 7120 | esac |
5983 | 7121 | done |
5984 | 7122 | newlib_search_path= |
6036 | 7174 | -L*) |
6037 | 7175 | case " $tmp_libs " in |
6038 | 7176 | *" $deplib "*) ;; |
6039 | *) tmp_libs="$tmp_libs $deplib" ;; | |
7177 | *) func_append tmp_libs " $deplib" ;; | |
6040 | 7178 | esac |
6041 | 7179 | ;; |
6042 | *) tmp_libs="$tmp_libs $deplib" ;; | |
7180 | *) func_append tmp_libs " $deplib" ;; | |
6043 | 7181 | esac |
6044 | 7182 | done |
6045 | 7183 | eval $var=\"$tmp_libs\" |
6055 | 7193 | ;; |
6056 | 7194 | esac |
6057 | 7195 | if test -n "$i" ; then |
6058 | tmp_libs="$tmp_libs $i" | |
7196 | func_append tmp_libs " $i" | |
6059 | 7197 | fi |
6060 | 7198 | done |
6061 | 7199 | dependency_libs=$tmp_libs |
6096 | 7234 | # Now set the variables for building old libraries. |
6097 | 7235 | build_libtool_libs=no |
6098 | 7236 | oldlibs="$output" |
6099 | objs="$objs$old_deplibs" | |
7237 | func_append objs "$old_deplibs" | |
6100 | 7238 | ;; |
6101 | 7239 | |
6102 | 7240 | lib) |
6129 | 7267 | if test "$deplibs_check_method" != pass_all; then |
6130 | 7268 | func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" |
6131 | 7269 | else |
6132 | $ECHO | |
7270 | echo | |
6133 | 7271 | $ECHO "*** Warning: Linking the shared library $output against the non-libtool" |
6134 | 7272 | $ECHO "*** objects $objs is not portable!" |
6135 | libobjs="$libobjs $objs" | |
7273 | func_append libobjs " $objs" | |
6136 | 7274 | fi |
6137 | 7275 | fi |
6138 | 7276 | |
6191 | 7329 | # which has an extra 1 added just for fun |
6192 | 7330 | # |
6193 | 7331 | case $version_type in |
7332 | # correct linux to gnu/linux during the next big refactor | |
6194 | 7333 | darwin|linux|osf|windows|none) |
6195 | 7334 | func_arith $number_major + $number_minor |
6196 | 7335 | current=$func_arith_result |
6197 | 7336 | age="$number_minor" |
6198 | 7337 | revision="$number_revision" |
6199 | 7338 | ;; |
6200 | freebsd-aout|freebsd-elf|sunos) | |
7339 | freebsd-aout|freebsd-elf|qnx|sunos) | |
6201 | 7340 | current="$number_major" |
6202 | 7341 | revision="$number_minor" |
6203 | 7342 | age="0" |
6208 | 7347 | age="$number_minor" |
6209 | 7348 | revision="$number_minor" |
6210 | 7349 | lt_irix_increment=no |
6211 | ;; | |
6212 | *) | |
6213 | func_fatal_configuration "$modename: unknown library version type \`$version_type'" | |
6214 | 7350 | ;; |
6215 | 7351 | esac |
6216 | 7352 | ;; |
6310 | 7446 | versuffix="$major.$revision" |
6311 | 7447 | ;; |
6312 | 7448 | |
6313 | linux) | |
7449 | linux) # correct to gnu/linux during the next big refactor | |
6314 | 7450 | func_arith $current - $age |
6315 | 7451 | major=.$func_arith_result |
6316 | 7452 | versuffix="$major.$age.$revision" |
6333 | 7469 | done |
6334 | 7470 | |
6335 | 7471 | # Make executables depend on our current version. |
6336 | verstring="$verstring:${current}.0" | |
7472 | func_append verstring ":${current}.0" | |
6337 | 7473 | ;; |
6338 | 7474 | |
6339 | 7475 | qnx) |
6401 | 7537 | fi |
6402 | 7538 | |
6403 | 7539 | func_generate_dlsyms "$libname" "$libname" "yes" |
6404 | libobjs="$libobjs $symfileobj" | |
7540 | func_append libobjs " $symfileobj" | |
6405 | 7541 | test "X$libobjs" = "X " && libobjs= |
6406 | 7542 | |
6407 | if test "$mode" != relink; then | |
7543 | if test "$opt_mode" != relink; then | |
6408 | 7544 | # Remove our outputs, but don't remove object files since they |
6409 | 7545 | # may have been created when compiling PIC objects. |
6410 | 7546 | removelist= |
6420 | 7556 | continue |
6421 | 7557 | fi |
6422 | 7558 | fi |
6423 | removelist="$removelist $p" | |
7559 | func_append removelist " $p" | |
6424 | 7560 | ;; |
6425 | 7561 | *) ;; |
6426 | 7562 | esac |
6431 | 7567 | |
6432 | 7568 | # Now set the variables for building old libraries. |
6433 | 7569 | 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" | |
6435 | 7571 | |
6436 | 7572 | # 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` | |
6438 | 7574 | fi |
6439 | 7575 | |
6440 | 7576 | # Eliminate all temporary directories. |
6441 | 7577 | #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"` | |
6445 | 7581 | #done |
6446 | 7582 | |
6447 | 7583 | if test -n "$xrpath"; then |
6448 | 7584 | # If the user specified any rpath flags, then add them. |
6449 | 7585 | temp_xrpath= |
6450 | 7586 | 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" | |
6452 | 7589 | case "$finalize_rpath " in |
6453 | 7590 | *" $libdir "*) ;; |
6454 | *) finalize_rpath="$finalize_rpath $libdir" ;; | |
7591 | *) func_append finalize_rpath " $libdir" ;; | |
6455 | 7592 | esac |
6456 | 7593 | done |
6457 | 7594 | if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then |
6465 | 7602 | for lib in $old_dlfiles; do |
6466 | 7603 | case " $dlprefiles $dlfiles " in |
6467 | 7604 | *" $lib "*) ;; |
6468 | *) dlfiles="$dlfiles $lib" ;; | |
7605 | *) func_append dlfiles " $lib" ;; | |
6469 | 7606 | esac |
6470 | 7607 | done |
6471 | 7608 | |
6475 | 7612 | for lib in $old_dlprefiles; do |
6476 | 7613 | case "$dlprefiles " in |
6477 | 7614 | *" $lib "*) ;; |
6478 | *) dlprefiles="$dlprefiles $lib" ;; | |
7615 | *) func_append dlprefiles " $lib" ;; | |
6479 | 7616 | esac |
6480 | 7617 | done |
6481 | 7618 | |
6482 | 7619 | if test "$build_libtool_libs" = yes; then |
6483 | 7620 | if test -n "$rpath"; then |
6484 | 7621 | case $host in |
6485 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) | |
7622 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) | |
6486 | 7623 | # these systems don't actually have a c library (as such)! |
6487 | 7624 | ;; |
6488 | 7625 | *-*-rhapsody* | *-*-darwin1.[012]) |
6489 | 7626 | # Rhapsody C library is in the System framework |
6490 | deplibs="$deplibs System.ltframework" | |
7627 | func_append deplibs " System.ltframework" | |
6491 | 7628 | ;; |
6492 | 7629 | *-*-netbsd*) |
6493 | 7630 | # Don't link with libc until the a.out ld.so is fixed. |
6504 | 7641 | *) |
6505 | 7642 | # Add libc to deplibs on all other systems if necessary. |
6506 | 7643 | if test "$build_libtool_need_lc" = "yes"; then |
6507 | deplibs="$deplibs -lc" | |
7644 | func_append deplibs " -lc" | |
6508 | 7645 | fi |
6509 | 7646 | ;; |
6510 | 7647 | esac |
6553 | 7690 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6554 | 7691 | case " $predeps $postdeps " in |
6555 | 7692 | *" $i "*) |
6556 | newdeplibs="$newdeplibs $i" | |
7693 | func_append newdeplibs " $i" | |
6557 | 7694 | i="" |
6558 | 7695 | ;; |
6559 | 7696 | esac |
6564 | 7701 | set dummy $deplib_matches; shift |
6565 | 7702 | deplib_match=$1 |
6566 | 7703 | if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then |
6567 | newdeplibs="$newdeplibs $i" | |
7704 | func_append newdeplibs " $i" | |
6568 | 7705 | else |
6569 | 7706 | droppeddeps=yes |
6570 | $ECHO | |
7707 | echo | |
6571 | 7708 | $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." | |
6577 | 7714 | fi |
6578 | 7715 | fi |
6579 | 7716 | ;; |
6580 | 7717 | *) |
6581 | newdeplibs="$newdeplibs $i" | |
7718 | func_append newdeplibs " $i" | |
6582 | 7719 | ;; |
6583 | 7720 | esac |
6584 | 7721 | done |
6596 | 7733 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6597 | 7734 | case " $predeps $postdeps " in |
6598 | 7735 | *" $i "*) |
6599 | newdeplibs="$newdeplibs $i" | |
7736 | func_append newdeplibs " $i" | |
6600 | 7737 | i="" |
6601 | 7738 | ;; |
6602 | 7739 | esac |
6607 | 7744 | set dummy $deplib_matches; shift |
6608 | 7745 | deplib_match=$1 |
6609 | 7746 | if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then |
6610 | newdeplibs="$newdeplibs $i" | |
7747 | func_append newdeplibs " $i" | |
6611 | 7748 | else |
6612 | 7749 | droppeddeps=yes |
6613 | $ECHO | |
7750 | echo | |
6614 | 7751 | $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." | |
6620 | 7757 | fi |
6621 | 7758 | fi |
6622 | 7759 | else |
6623 | 7760 | droppeddeps=yes |
6624 | $ECHO | |
7761 | echo | |
6625 | 7762 | $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." | |
6629 | 7766 | fi |
6630 | 7767 | ;; |
6631 | 7768 | *) |
6632 | newdeplibs="$newdeplibs $i" | |
7769 | func_append newdeplibs " $i" | |
6633 | 7770 | ;; |
6634 | 7771 | esac |
6635 | 7772 | done |
6646 | 7783 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6647 | 7784 | case " $predeps $postdeps " in |
6648 | 7785 | *" $a_deplib "*) |
6649 | newdeplibs="$newdeplibs $a_deplib" | |
7786 | func_append newdeplibs " $a_deplib" | |
6650 | 7787 | a_deplib="" |
6651 | 7788 | ;; |
6652 | 7789 | esac |
6653 | 7790 | fi |
6654 | 7791 | if test -n "$a_deplib" ; then |
6655 | 7792 | 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` | |
6656 | 7799 | 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 | |
6658 | 7807 | for potent_lib in $potential_libs; do |
6659 | 7808 | # Follow soft links. |
6660 | 7809 | if ls -lLd "$potent_lib" 2>/dev/null | |
6671 | 7820 | potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` |
6672 | 7821 | case $potliblink in |
6673 | 7822 | [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; |
6674 | *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; | |
7823 | *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; | |
6675 | 7824 | esac |
6676 | 7825 | done |
6677 | 7826 | if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | |
6678 | 7827 | $SED -e 10q | |
6679 | 7828 | $EGREP "$file_magic_regex" > /dev/null; then |
6680 | newdeplibs="$newdeplibs $a_deplib" | |
7829 | func_append newdeplibs " $a_deplib" | |
6681 | 7830 | a_deplib="" |
6682 | 7831 | break 2 |
6683 | 7832 | fi |
6686 | 7835 | fi |
6687 | 7836 | if test -n "$a_deplib" ; then |
6688 | 7837 | droppeddeps=yes |
6689 | $ECHO | |
7838 | echo | |
6690 | 7839 | $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" | |
6695 | 7844 | if test -z "$potlib" ; then |
6696 | 7845 | $ECHO "*** with $libname but no candidates were found. (...for file magic test)" |
6697 | 7846 | else |
6702 | 7851 | ;; |
6703 | 7852 | *) |
6704 | 7853 | # Add a -L argument. |
6705 | newdeplibs="$newdeplibs $a_deplib" | |
7854 | func_append newdeplibs " $a_deplib" | |
6706 | 7855 | ;; |
6707 | 7856 | esac |
6708 | 7857 | done # Gone through all deplibs. |
6718 | 7867 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6719 | 7868 | case " $predeps $postdeps " in |
6720 | 7869 | *" $a_deplib "*) |
6721 | newdeplibs="$newdeplibs $a_deplib" | |
7870 | func_append newdeplibs " $a_deplib" | |
6722 | 7871 | a_deplib="" |
6723 | 7872 | ;; |
6724 | 7873 | esac |
6729 | 7878 | potential_libs=`ls $i/$libname[.-]* 2>/dev/null` |
6730 | 7879 | for potent_lib in $potential_libs; do |
6731 | 7880 | 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 | \ | |
6733 | 7882 | $EGREP "$match_pattern_regex" > /dev/null; then |
6734 | newdeplibs="$newdeplibs $a_deplib" | |
7883 | func_append newdeplibs " $a_deplib" | |
6735 | 7884 | a_deplib="" |
6736 | 7885 | break 2 |
6737 | 7886 | fi |
6740 | 7889 | fi |
6741 | 7890 | if test -n "$a_deplib" ; then |
6742 | 7891 | droppeddeps=yes |
6743 | $ECHO | |
7892 | echo | |
6744 | 7893 | $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" | |
6749 | 7898 | if test -z "$potlib" ; then |
6750 | 7899 | $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" |
6751 | 7900 | else |
6756 | 7905 | ;; |
6757 | 7906 | *) |
6758 | 7907 | # Add a -L argument. |
6759 | newdeplibs="$newdeplibs $a_deplib" | |
7908 | func_append newdeplibs " $a_deplib" | |
6760 | 7909 | ;; |
6761 | 7910 | esac |
6762 | 7911 | done # Gone through all deplibs. |
6763 | 7912 | ;; |
6764 | 7913 | none | unknown | *) |
6765 | 7914 | 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'` | |
6768 | 7916 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6769 | 7917 | for i in $predeps $postdeps ; do |
6770 | 7918 | # 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,,"` | |
6772 | 7920 | done |
6773 | 7921 | 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 | |
6777 | 7925 | 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." | |
6779 | 7927 | 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." | |
6781 | 7929 | fi |
6782 | $ECHO "*** All declared inter-library dependencies are being dropped." | |
7930 | echo "*** All declared inter-library dependencies are being dropped." | |
6783 | 7931 | droppeddeps=yes |
6784 | fi | |
7932 | ;; | |
7933 | esac | |
6785 | 7934 | ;; |
6786 | 7935 | esac |
6787 | 7936 | versuffix=$versuffix_save |
6793 | 7942 | case $host in |
6794 | 7943 | *-*-rhapsody* | *-*-darwin1.[012]) |
6795 | 7944 | # 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 /'` | |
6797 | 7946 | ;; |
6798 | 7947 | esac |
6799 | 7948 | |
6800 | 7949 | if test "$droppeddeps" = yes; then |
6801 | 7950 | 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" | |
6804 | 7953 | $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." | |
6807 | 7956 | 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." | |
6813 | 7962 | fi |
6814 | 7963 | if test "$build_old_libs" = no; then |
6815 | 7964 | oldlibs="$output_objdir/$libname.$libext" |
6819 | 7968 | build_libtool_libs=no |
6820 | 7969 | fi |
6821 | 7970 | 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." | |
6825 | 7974 | |
6826 | 7975 | 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." | |
6832 | 7981 | if test "$build_old_libs" = no; then |
6833 | 7982 | oldlibs="$output_objdir/$libname.$libext" |
6834 | 7983 | build_libtool_libs=module |
6845 | 7994 | # Time to change all our "foo.ltframework" stuff back to "-framework foo" |
6846 | 7995 | case $host in |
6847 | 7996 | *-*-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'` | |
6851 | 8000 | ;; |
6852 | 8001 | esac |
6853 | 8002 | |
6860 | 8009 | *) |
6861 | 8010 | case " $deplibs " in |
6862 | 8011 | *" -L$path/$objdir "*) |
6863 | new_libs="$new_libs -L$path/$objdir" ;; | |
8012 | func_append new_libs " -L$path/$objdir" ;; | |
6864 | 8013 | esac |
6865 | 8014 | ;; |
6866 | 8015 | esac |
6870 | 8019 | -L*) |
6871 | 8020 | case " $new_libs " in |
6872 | 8021 | *" $deplib "*) ;; |
6873 | *) new_libs="$new_libs $deplib" ;; | |
8022 | *) func_append new_libs " $deplib" ;; | |
6874 | 8023 | esac |
6875 | 8024 | ;; |
6876 | *) new_libs="$new_libs $deplib" ;; | |
8025 | *) func_append new_libs " $deplib" ;; | |
6877 | 8026 | esac |
6878 | 8027 | done |
6879 | 8028 | deplibs="$new_libs" |
6885 | 8034 | |
6886 | 8035 | # Test again, we may have decided not to build it any more |
6887 | 8036 | 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 | |
6888 | 8042 | if test "$hardcode_into_libs" = yes; then |
6889 | 8043 | # Hardcode the library paths |
6890 | 8044 | hardcode_libdirs= |
6891 | 8045 | dep_rpath= |
6892 | 8046 | rpath="$finalize_rpath" |
6893 | test "$mode" != relink && rpath="$compile_rpath$rpath" | |
8047 | test "$opt_mode" != relink && rpath="$compile_rpath$rpath" | |
6894 | 8048 | for libdir in $rpath; do |
6895 | 8049 | if test -n "$hardcode_libdir_flag_spec"; then |
6896 | 8050 | if test -n "$hardcode_libdir_separator"; then |
8051 | func_replace_sysroot "$libdir" | |
8052 | libdir=$func_replace_sysroot_result | |
6897 | 8053 | if test -z "$hardcode_libdirs"; then |
6898 | 8054 | hardcode_libdirs="$libdir" |
6899 | 8055 | else |
6902 | 8058 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) |
6903 | 8059 | ;; |
6904 | 8060 | *) |
6905 | hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | |
8061 | func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | |
6906 | 8062 | ;; |
6907 | 8063 | esac |
6908 | 8064 | fi |
6909 | 8065 | else |
6910 | 8066 | eval flag=\"$hardcode_libdir_flag_spec\" |
6911 | dep_rpath="$dep_rpath $flag" | |
8067 | func_append dep_rpath " $flag" | |
6912 | 8068 | fi |
6913 | 8069 | elif test -n "$runpath_var"; then |
6914 | 8070 | case "$perm_rpath " in |
6915 | 8071 | *" $libdir "*) ;; |
6916 | *) perm_rpath="$perm_rpath $libdir" ;; | |
8072 | *) func_append perm_rpath " $libdir" ;; | |
6917 | 8073 | esac |
6918 | 8074 | fi |
6919 | 8075 | done |
6921 | 8077 | if test -n "$hardcode_libdir_separator" && |
6922 | 8078 | test -n "$hardcode_libdirs"; then |
6923 | 8079 | 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\"" | |
6929 | 8081 | fi |
6930 | 8082 | if test -n "$runpath_var" && test -n "$perm_rpath"; then |
6931 | 8083 | # We should set the runpath_var. |
6932 | 8084 | rpath= |
6933 | 8085 | for dir in $perm_rpath; do |
6934 | rpath="$rpath$dir:" | |
8086 | func_append rpath "$dir:" | |
6935 | 8087 | done |
6936 | 8088 | eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" |
6937 | 8089 | fi |
6939 | 8091 | fi |
6940 | 8092 | |
6941 | 8093 | shlibpath="$finalize_shlibpath" |
6942 | test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" | |
8094 | test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" | |
6943 | 8095 | if test -n "$shlibpath"; then |
6944 | 8096 | eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" |
6945 | 8097 | fi |
6965 | 8117 | linknames= |
6966 | 8118 | for link |
6967 | 8119 | do |
6968 | linknames="$linknames $link" | |
8120 | func_append linknames " $link" | |
6969 | 8121 | done |
6970 | 8122 | |
6971 | 8123 | # 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` | |
6973 | 8125 | test "X$libobjs" = "X " && libobjs= |
6974 | 8126 | |
6975 | 8127 | delfiles= |
6976 | 8128 | if test -n "$export_symbols" && test -n "$include_expsyms"; then |
6977 | 8129 | $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" |
6978 | 8130 | export_symbols="$output_objdir/$libname.uexp" |
6979 | delfiles="$delfiles $export_symbols" | |
8131 | func_append delfiles " $export_symbols" | |
6980 | 8132 | fi |
6981 | 8133 | |
6982 | 8134 | orig_export_symbols= |
7007 | 8159 | $opt_dry_run || $RM $export_symbols |
7008 | 8160 | cmds=$export_symbols_cmds |
7009 | 8161 | save_ifs="$IFS"; IFS='~' |
7010 | for cmd in $cmds; do | |
8162 | for cmd1 in $cmds; do | |
7011 | 8163 | 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 | |
7016 | 8181 | 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 | |
7017 | 8201 | skipped_export=false |
7018 | 8202 | else |
7019 | 8203 | # The command line is too long to execute in one step. |
7035 | 8219 | if test -n "$export_symbols" && test -n "$include_expsyms"; then |
7036 | 8220 | tmp_export_symbols="$export_symbols" |
7037 | 8221 | 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"' | |
7039 | 8223 | fi |
7040 | 8224 | |
7041 | 8225 | if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then |
7047 | 8231 | # global variables. join(1) would be nice here, but unfortunately |
7048 | 8232 | # isn't a blessed tool. |
7049 | 8233 | $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" | |
7051 | 8235 | export_symbols=$output_objdir/$libname.def |
7052 | 8236 | $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols |
7053 | 8237 | fi |
7057 | 8241 | case " $convenience " in |
7058 | 8242 | *" $test_deplib "*) ;; |
7059 | 8243 | *) |
7060 | tmp_deplibs="$tmp_deplibs $test_deplib" | |
8244 | func_append tmp_deplibs " $test_deplib" | |
7061 | 8245 | ;; |
7062 | 8246 | esac |
7063 | 8247 | done |
7077 | 8261 | test "X$libobjs" = "X " && libobjs= |
7078 | 8262 | else |
7079 | 8263 | gentop="$output_objdir/${outputname}x" |
7080 | generated="$generated $gentop" | |
8264 | func_append generated " $gentop" | |
7081 | 8265 | |
7082 | 8266 | func_extract_archives $gentop $convenience |
7083 | libobjs="$libobjs $func_extract_archives_result" | |
8267 | func_append libobjs " $func_extract_archives_result" | |
7084 | 8268 | test "X$libobjs" = "X " && libobjs= |
7085 | 8269 | fi |
7086 | 8270 | fi |
7087 | 8271 | |
7088 | 8272 | if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then |
7089 | 8273 | eval flag=\"$thread_safe_flag_spec\" |
7090 | linker_flags="$linker_flags $flag" | |
8274 | func_append linker_flags " $flag" | |
7091 | 8275 | fi |
7092 | 8276 | |
7093 | 8277 | # Make a backup of the uninstalled library when relinking |
7094 | if test "$mode" = relink; then | |
8278 | if test "$opt_mode" = relink; then | |
7095 | 8279 | $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? |
7096 | 8280 | fi |
7097 | 8281 | |
7136 | 8320 | save_libobjs=$libobjs |
7137 | 8321 | fi |
7138 | 8322 | save_output=$output |
7139 | output_la=`$ECHO "X$output" | $Xsed -e "$basename"` | |
8323 | func_basename "$output" | |
8324 | output_la=$func_basename_result | |
7140 | 8325 | |
7141 | 8326 | # Clear the reloadable object creation command queue and |
7142 | 8327 | # initialize k to one. |
7149 | 8334 | if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then |
7150 | 8335 | output=${output_objdir}/${output_la}.lnkscript |
7151 | 8336 | func_verbose "creating GNU ld script: $output" |
7152 | $ECHO 'INPUT (' > $output | |
8337 | echo 'INPUT (' > $output | |
7153 | 8338 | for obj in $save_libobjs |
7154 | 8339 | do |
7155 | $ECHO "$obj" >> $output | |
8340 | func_to_tool_file "$obj" | |
8341 | $ECHO "$func_to_tool_file_result" >> $output | |
7156 | 8342 | 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 | |
7159 | 8347 | elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then |
7160 | 8348 | output=${output_objdir}/${output_la}.lnk |
7161 | 8349 | func_verbose "creating linker input file list: $output" |
7169 | 8357 | fi |
7170 | 8358 | for obj |
7171 | 8359 | do |
7172 | $ECHO "$obj" >> $output | |
8360 | func_to_tool_file "$obj" | |
8361 | $ECHO "$func_to_tool_file_result" >> $output | |
7173 | 8362 | 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\" | |
7176 | 8366 | else |
7177 | 8367 | if test -n "$save_libobjs"; then |
7178 | 8368 | func_verbose "creating reloadable object files..." |
7196 | 8386 | # command to the queue. |
7197 | 8387 | if test "$k" -eq 1 ; then |
7198 | 8388 | # 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\" | |
7200 | 8391 | else |
7201 | 8392 | # All subsequent reloadable object files will link in |
7202 | 8393 | # 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\" | |
7204 | 8396 | fi |
7205 | 8397 | last_robj=$output_objdir/$output_la-${k}.$objext |
7206 | 8398 | func_arith $k + 1 |
7207 | 8399 | k=$func_arith_result |
7208 | 8400 | output=$output_objdir/$output_la-${k}.$objext |
7209 | objlist=$obj | |
8401 | objlist=" $obj" | |
7210 | 8402 | func_len " $last_robj" |
7211 | 8403 | func_arith $len0 + $func_len_result |
7212 | 8404 | len=$func_arith_result |
7216 | 8408 | # reloadable object file. All subsequent reloadable object |
7217 | 8409 | # files will link in the last one created. |
7218 | 8410 | 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\" | |
7220 | 8413 | if test -n "$last_robj"; then |
7221 | 8414 | eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" |
7222 | 8415 | fi |
7223 | delfiles="$delfiles $output" | |
8416 | func_append delfiles " $output" | |
7224 | 8417 | |
7225 | 8418 | else |
7226 | 8419 | output= |
7254 | 8447 | lt_exit=$? |
7255 | 8448 | |
7256 | 8449 | # Restore the uninstalled library and exit |
7257 | if test "$mode" = relink; then | |
8450 | if test "$opt_mode" = relink; then | |
7258 | 8451 | ( cd "$output_objdir" && \ |
7259 | 8452 | $RM "${realname}T" && \ |
7260 | 8453 | $MV "${realname}U" "$realname" ) |
7275 | 8468 | if test -n "$export_symbols" && test -n "$include_expsyms"; then |
7276 | 8469 | tmp_export_symbols="$export_symbols" |
7277 | 8470 | 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"' | |
7279 | 8472 | fi |
7280 | 8473 | |
7281 | 8474 | if test -n "$orig_export_symbols"; then |
7287 | 8480 | # global variables. join(1) would be nice here, but unfortunately |
7288 | 8481 | # isn't a blessed tool. |
7289 | 8482 | $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" | |
7291 | 8484 | export_symbols=$output_objdir/$libname.def |
7292 | 8485 | $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols |
7293 | 8486 | fi |
7328 | 8521 | # Add any objects from preloaded convenience libraries |
7329 | 8522 | if test -n "$dlprefiles"; then |
7330 | 8523 | gentop="$output_objdir/${outputname}x" |
7331 | generated="$generated $gentop" | |
8524 | func_append generated " $gentop" | |
7332 | 8525 | |
7333 | 8526 | func_extract_archives $gentop $dlprefiles |
7334 | libobjs="$libobjs $func_extract_archives_result" | |
8527 | func_append libobjs " $func_extract_archives_result" | |
7335 | 8528 | test "X$libobjs" = "X " && libobjs= |
7336 | 8529 | fi |
7337 | 8530 | |
7347 | 8540 | lt_exit=$? |
7348 | 8541 | |
7349 | 8542 | # Restore the uninstalled library and exit |
7350 | if test "$mode" = relink; then | |
8543 | if test "$opt_mode" = relink; then | |
7351 | 8544 | ( cd "$output_objdir" && \ |
7352 | 8545 | $RM "${realname}T" && \ |
7353 | 8546 | $MV "${realname}U" "$realname" ) |
7359 | 8552 | IFS="$save_ifs" |
7360 | 8553 | |
7361 | 8554 | # Restore the uninstalled library and exit |
7362 | if test "$mode" = relink; then | |
8555 | if test "$opt_mode" = relink; then | |
7363 | 8556 | $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? |
7364 | 8557 | |
7365 | 8558 | if test -n "$convenience"; then |
7440 | 8633 | if test -n "$convenience"; then |
7441 | 8634 | if test -n "$whole_archive_flag_spec"; then |
7442 | 8635 | 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'` | |
7444 | 8637 | else |
7445 | 8638 | gentop="$output_objdir/${obj}x" |
7446 | generated="$generated $gentop" | |
8639 | func_append generated " $gentop" | |
7447 | 8640 | |
7448 | 8641 | func_extract_archives $gentop $convenience |
7449 | 8642 | reload_conv_objs="$reload_objs $func_extract_archives_result" |
7450 | 8643 | fi |
7451 | 8644 | fi |
7452 | 8645 | |
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 | ||
7453 | 8649 | # 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 | |
7455 | 8651 | |
7456 | 8652 | output="$obj" |
7457 | 8653 | func_execute_cmds "$reload_cmds" 'exit $?' |
7511 | 8707 | case $host in |
7512 | 8708 | *-*-rhapsody* | *-*-darwin1.[012]) |
7513 | 8709 | # 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 /'` | |
7516 | 8712 | ;; |
7517 | 8713 | esac |
7518 | 8714 | |
7523 | 8719 | if test "$tagname" = CXX ; then |
7524 | 8720 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in |
7525 | 8721 | 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" | |
7528 | 8724 | ;; |
7529 | 8725 | esac |
7530 | 8726 | fi |
7531 | 8727 | # 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'` | |
7534 | 8730 | ;; |
7535 | 8731 | esac |
7536 | 8732 | |
7544 | 8740 | *) |
7545 | 8741 | case " $compile_deplibs " in |
7546 | 8742 | *" -L$path/$objdir "*) |
7547 | new_libs="$new_libs -L$path/$objdir" ;; | |
8743 | func_append new_libs " -L$path/$objdir" ;; | |
7548 | 8744 | esac |
7549 | 8745 | ;; |
7550 | 8746 | esac |
7554 | 8750 | -L*) |
7555 | 8751 | case " $new_libs " in |
7556 | 8752 | *" $deplib "*) ;; |
7557 | *) new_libs="$new_libs $deplib" ;; | |
8753 | *) func_append new_libs " $deplib" ;; | |
7558 | 8754 | esac |
7559 | 8755 | ;; |
7560 | *) new_libs="$new_libs $deplib" ;; | |
8756 | *) func_append new_libs " $deplib" ;; | |
7561 | 8757 | esac |
7562 | 8758 | done |
7563 | 8759 | compile_deplibs="$new_libs" |
7564 | 8760 | |
7565 | 8761 | |
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" | |
7568 | 8764 | |
7569 | 8765 | if test -n "$rpath$xrpath"; then |
7570 | 8766 | # If the user specified any rpath flags, then add them. |
7572 | 8768 | # This is the magic to use -rpath. |
7573 | 8769 | case "$finalize_rpath " in |
7574 | 8770 | *" $libdir "*) ;; |
7575 | *) finalize_rpath="$finalize_rpath $libdir" ;; | |
8771 | *) func_append finalize_rpath " $libdir" ;; | |
7576 | 8772 | esac |
7577 | 8773 | done |
7578 | 8774 | fi |
7591 | 8787 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) |
7592 | 8788 | ;; |
7593 | 8789 | *) |
7594 | hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | |
8790 | func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | |
7595 | 8791 | ;; |
7596 | 8792 | esac |
7597 | 8793 | fi |
7598 | 8794 | else |
7599 | 8795 | eval flag=\"$hardcode_libdir_flag_spec\" |
7600 | rpath="$rpath $flag" | |
8796 | func_append rpath " $flag" | |
7601 | 8797 | fi |
7602 | 8798 | elif test -n "$runpath_var"; then |
7603 | 8799 | case "$perm_rpath " in |
7604 | 8800 | *" $libdir "*) ;; |
7605 | *) perm_rpath="$perm_rpath $libdir" ;; | |
8801 | *) func_append perm_rpath " $libdir" ;; | |
7606 | 8802 | esac |
7607 | 8803 | fi |
7608 | 8804 | case $host in |
7611 | 8807 | case :$dllsearchpath: in |
7612 | 8808 | *":$libdir:"*) ;; |
7613 | 8809 | ::) dllsearchpath=$libdir;; |
7614 | *) dllsearchpath="$dllsearchpath:$libdir";; | |
8810 | *) func_append dllsearchpath ":$libdir";; | |
7615 | 8811 | esac |
7616 | 8812 | case :$dllsearchpath: in |
7617 | 8813 | *":$testbindir:"*) ;; |
7618 | 8814 | ::) dllsearchpath=$testbindir;; |
7619 | *) dllsearchpath="$dllsearchpath:$testbindir";; | |
8815 | *) func_append dllsearchpath ":$testbindir";; | |
7620 | 8816 | esac |
7621 | 8817 | ;; |
7622 | 8818 | esac |
7642 | 8838 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) |
7643 | 8839 | ;; |
7644 | 8840 | *) |
7645 | hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | |
8841 | func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | |
7646 | 8842 | ;; |
7647 | 8843 | esac |
7648 | 8844 | fi |
7649 | 8845 | else |
7650 | 8846 | eval flag=\"$hardcode_libdir_flag_spec\" |
7651 | rpath="$rpath $flag" | |
8847 | func_append rpath " $flag" | |
7652 | 8848 | fi |
7653 | 8849 | elif test -n "$runpath_var"; then |
7654 | 8850 | case "$finalize_perm_rpath " in |
7655 | 8851 | *" $libdir "*) ;; |
7656 | *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; | |
8852 | *) func_append finalize_perm_rpath " $libdir" ;; | |
7657 | 8853 | esac |
7658 | 8854 | fi |
7659 | 8855 | done |
7667 | 8863 | |
7668 | 8864 | if test -n "$libobjs" && test "$build_old_libs" = yes; then |
7669 | 8865 | # 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` | |
7672 | 8868 | fi |
7673 | 8869 | |
7674 | 8870 | func_generate_dlsyms "$outputname" "@PROGRAM@" "no" |
7680 | 8876 | |
7681 | 8877 | wrappers_required=yes |
7682 | 8878 | case $host in |
8879 | *cegcc* | *mingw32ce*) | |
8880 | # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. | |
8881 | wrappers_required=no | |
8882 | ;; | |
7683 | 8883 | *cygwin* | *mingw* ) |
7684 | 8884 | if test "$build_libtool_libs" != yes; then |
7685 | 8885 | wrappers_required=no |
7686 | 8886 | fi |
7687 | ;; | |
7688 | *cegcc) | |
7689 | # Disable wrappers for cegcc, we are cross compiling anyway. | |
7690 | wrappers_required=no | |
7691 | 8887 | ;; |
7692 | 8888 | *) |
7693 | 8889 | if test "$need_relink" = no || test "$build_libtool_libs" != yes; then |
7697 | 8893 | esac |
7698 | 8894 | if test "$wrappers_required" = no; then |
7699 | 8895 | # 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'` | |
7701 | 8897 | link_command="$compile_command$compile_rpath" |
7702 | 8898 | |
7703 | 8899 | # We have no uninstalled library dependencies, so finalize right now. |
7704 | 8900 | exit_status=0 |
7705 | 8901 | 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 | |
7706 | 8908 | |
7707 | 8909 | # Delete the generated files. |
7708 | 8910 | if test -f "$output_objdir/${outputname}S.${objext}"; then |
7726 | 8928 | # We should set the runpath_var. |
7727 | 8929 | rpath= |
7728 | 8930 | for dir in $perm_rpath; do |
7729 | rpath="$rpath$dir:" | |
8931 | func_append rpath "$dir:" | |
7730 | 8932 | done |
7731 | 8933 | compile_var="$runpath_var=\"$rpath\$$runpath_var\" " |
7732 | 8934 | fi |
7734 | 8936 | # We should set the runpath_var. |
7735 | 8937 | rpath= |
7736 | 8938 | for dir in $finalize_perm_rpath; do |
7737 | rpath="$rpath$dir:" | |
8939 | func_append rpath "$dir:" | |
7738 | 8940 | done |
7739 | 8941 | finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " |
7740 | 8942 | fi |
7744 | 8946 | # We don't need to create a wrapper script. |
7745 | 8947 | link_command="$compile_var$compile_command$compile_rpath" |
7746 | 8948 | # 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'` | |
7748 | 8950 | # Delete the old output file. |
7749 | 8951 | $opt_dry_run || $RM $output |
7750 | 8952 | # Link the executable and exit |
7751 | 8953 | 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 | ||
7752 | 8961 | exit $EXIT_SUCCESS |
7753 | 8962 | fi |
7754 | 8963 | |
7763 | 8972 | if test "$fast_install" != no; then |
7764 | 8973 | link_command="$finalize_var$compile_command$finalize_rpath" |
7765 | 8974 | 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'` | |
7767 | 8976 | else |
7768 | 8977 | # fast_install is set to needless |
7769 | 8978 | relink_command= |
7775 | 8984 | fi |
7776 | 8985 | |
7777 | 8986 | # 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'` | |
7779 | 8988 | |
7780 | 8989 | # Delete the old output files. |
7781 | 8990 | $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname |
7782 | 8991 | |
7783 | 8992 | 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 | |
7784 | 8999 | |
7785 | 9000 | # Now create the wrapper script. |
7786 | 9001 | func_verbose "creating $output" |
7799 | 9014 | fi |
7800 | 9015 | done |
7801 | 9016 | 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"` | |
7814 | 9018 | fi |
7815 | 9019 | |
7816 | 9020 | # Only actually do things if not in dry run mode. |
7890 | 9094 | else |
7891 | 9095 | oldobjs="$old_deplibs $non_pic_objects" |
7892 | 9096 | if test "$preload" = yes && test -f "$symfileobj"; then |
7893 | oldobjs="$oldobjs $symfileobj" | |
9097 | func_append oldobjs " $symfileobj" | |
7894 | 9098 | fi |
7895 | 9099 | fi |
7896 | 9100 | addlibs="$old_convenience" |
7898 | 9102 | |
7899 | 9103 | if test -n "$addlibs"; then |
7900 | 9104 | gentop="$output_objdir/${outputname}x" |
7901 | generated="$generated $gentop" | |
9105 | func_append generated " $gentop" | |
7902 | 9106 | |
7903 | 9107 | func_extract_archives $gentop $addlibs |
7904 | oldobjs="$oldobjs $func_extract_archives_result" | |
9108 | func_append oldobjs " $func_extract_archives_result" | |
7905 | 9109 | fi |
7906 | 9110 | |
7907 | 9111 | # Do each command in the archive commands. |
7912 | 9116 | # Add any objects from preloaded convenience libraries |
7913 | 9117 | if test -n "$dlprefiles"; then |
7914 | 9118 | gentop="$output_objdir/${outputname}x" |
7915 | generated="$generated $gentop" | |
9119 | func_append generated " $gentop" | |
7916 | 9120 | |
7917 | 9121 | func_extract_archives $gentop $dlprefiles |
7918 | oldobjs="$oldobjs $func_extract_archives_result" | |
9122 | func_append oldobjs " $func_extract_archives_result" | |
7919 | 9123 | fi |
7920 | 9124 | |
7921 | 9125 | # POSIX demands no paths to be encoded in archives. We have |
7931 | 9135 | done | sort | sort -uc >/dev/null 2>&1); then |
7932 | 9136 | : |
7933 | 9137 | else |
7934 | $ECHO "copying selected object files to avoid basename conflicts..." | |
9138 | echo "copying selected object files to avoid basename conflicts..." | |
7935 | 9139 | gentop="$output_objdir/${outputname}x" |
7936 | generated="$generated $gentop" | |
9140 | func_append generated " $gentop" | |
7937 | 9141 | func_mkdir_p "$gentop" |
7938 | 9142 | save_oldobjs=$oldobjs |
7939 | 9143 | oldobjs= |
7957 | 9161 | esac |
7958 | 9162 | done |
7959 | 9163 | func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" |
7960 | oldobjs="$oldobjs $gentop/$newobj" | |
9164 | func_append oldobjs " $gentop/$newobj" | |
7961 | 9165 | ;; |
7962 | *) oldobjs="$oldobjs $obj" ;; | |
9166 | *) func_append oldobjs " $obj" ;; | |
7963 | 9167 | esac |
7964 | 9168 | done |
7965 | 9169 | fi |
9170 | func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 | |
9171 | tool_oldlib=$func_to_tool_file_result | |
7966 | 9172 | eval cmds=\"$old_archive_cmds\" |
7967 | 9173 | |
7968 | 9174 | func_len " $cmds" |
7969 | 9175 | len=$func_len_result |
7970 | 9176 | 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" | |
7971 | 9187 | cmds=$old_archive_cmds |
7972 | 9188 | else |
7973 | 9189 | # the command line is too long to link in one step, link in parts |
8042 | 9258 | done |
8043 | 9259 | # Quote the link command for shipping. |
8044 | 9260 | 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"` | |
8046 | 9262 | if test "$hardcode_automatic" = yes ; then |
8047 | 9263 | relink_command= |
8048 | 9264 | fi |
8062 | 9278 | *.la) |
8063 | 9279 | func_basename "$deplib" |
8064 | 9280 | 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` | |
8066 | 9283 | test -z "$libdir" && \ |
8067 | 9284 | 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" | |
8069 | 9286 | ;; |
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" ;; | |
8071 | 9298 | esac |
8072 | 9299 | done |
8073 | 9300 | dependency_libs="$newdependency_libs" |
8081 | 9308 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` |
8082 | 9309 | test -z "$libdir" && \ |
8083 | 9310 | func_fatal_error "\`$lib' is not a valid libtool archive" |
8084 | newdlfiles="$newdlfiles $libdir/$name" | |
9311 | func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" | |
8085 | 9312 | ;; |
8086 | *) newdlfiles="$newdlfiles $lib" ;; | |
9313 | *) func_append newdlfiles " $lib" ;; | |
8087 | 9314 | esac |
8088 | 9315 | done |
8089 | 9316 | dlfiles="$newdlfiles" |
8100 | 9327 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` |
8101 | 9328 | test -z "$libdir" && \ |
8102 | 9329 | func_fatal_error "\`$lib' is not a valid libtool archive" |
8103 | newdlprefiles="$newdlprefiles $libdir/$name" | |
9330 | func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" | |
8104 | 9331 | ;; |
8105 | 9332 | esac |
8106 | 9333 | done |
8112 | 9339 | [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; |
8113 | 9340 | *) abs=`pwd`"/$lib" ;; |
8114 | 9341 | esac |
8115 | newdlfiles="$newdlfiles $abs" | |
9342 | func_append newdlfiles " $abs" | |
8116 | 9343 | done |
8117 | 9344 | dlfiles="$newdlfiles" |
8118 | 9345 | newdlprefiles= |
8121 | 9348 | [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; |
8122 | 9349 | *) abs=`pwd`"/$lib" ;; |
8123 | 9350 | esac |
8124 | newdlprefiles="$newdlprefiles $abs" | |
9351 | func_append newdlprefiles " $abs" | |
8125 | 9352 | done |
8126 | 9353 | dlprefiles="$newdlprefiles" |
8127 | 9354 | fi |
8128 | 9355 | $RM $output |
8129 | 9356 | # 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. | |
8130 | 9365 | tdlname=$dlname |
8131 | 9366 | 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 | ;; | |
8133 | 9378 | esac |
8134 | 9379 | $ECHO > $output "\ |
8135 | 9380 | # $outputname - a libtool library file |
8188 | 9433 | exit $EXIT_SUCCESS |
8189 | 9434 | } |
8190 | 9435 | |
8191 | { test "$mode" = link || test "$mode" = relink; } && | |
9436 | { test "$opt_mode" = link || test "$opt_mode" = relink; } && | |
8192 | 9437 | func_mode_link ${1+"$@"} |
8193 | 9438 | |
8194 | 9439 | |
8208 | 9453 | for arg |
8209 | 9454 | do |
8210 | 9455 | 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" ;; | |
8214 | 9459 | esac |
8215 | 9460 | done |
8216 | 9461 | |
8219 | 9464 | |
8220 | 9465 | rmdirs= |
8221 | 9466 | |
8222 | origobjdir="$objdir" | |
8223 | 9467 | for file in $files; do |
8224 | 9468 | func_dirname "$file" "" "." |
8225 | 9469 | dir="$func_dirname_result" |
8226 | 9470 | if test "X$dir" = X.; then |
8227 | objdir="$origobjdir" | |
9471 | odir="$objdir" | |
8228 | 9472 | else |
8229 | objdir="$dir/$origobjdir" | |
9473 | odir="$dir/$objdir" | |
8230 | 9474 | fi |
8231 | 9475 | func_basename "$file" |
8232 | 9476 | 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 | |
8237 | 9481 | case " $rmdirs " in |
8238 | *" $objdir "*) ;; | |
8239 | *) rmdirs="$rmdirs $objdir" ;; | |
9482 | *" $odir "*) ;; | |
9483 | *) func_append rmdirs " $odir" ;; | |
8240 | 9484 | esac |
8241 | 9485 | fi |
8242 | 9486 | |
8262 | 9506 | |
8263 | 9507 | # Delete the libtool libraries and symlinks. |
8264 | 9508 | for n in $library_names; do |
8265 | rmfiles="$rmfiles $objdir/$n" | |
9509 | func_append rmfiles " $odir/$n" | |
8266 | 9510 | 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 | |
8270 | 9514 | clean) |
8271 | case " $library_names " in | |
8272 | # " " in the beginning catches empty $dlname | |
9515 | case " $library_names " in | |
8273 | 9516 | *" $dlname "*) ;; |
8274 | *) rmfiles="$rmfiles $objdir/$dlname" ;; | |
9517 | *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; | |
8275 | 9518 | esac |
8276 | test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" | |
9519 | test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" | |
8277 | 9520 | ;; |
8278 | 9521 | uninstall) |
8279 | 9522 | if test -n "$library_names"; then |
8301 | 9544 | # Add PIC object to the list of files to remove. |
8302 | 9545 | if test -n "$pic_object" && |
8303 | 9546 | test "$pic_object" != none; then |
8304 | rmfiles="$rmfiles $dir/$pic_object" | |
9547 | func_append rmfiles " $dir/$pic_object" | |
8305 | 9548 | fi |
8306 | 9549 | |
8307 | 9550 | # Add non-PIC object to the list of files to remove. |
8308 | 9551 | if test -n "$non_pic_object" && |
8309 | 9552 | test "$non_pic_object" != none; then |
8310 | rmfiles="$rmfiles $dir/$non_pic_object" | |
9553 | func_append rmfiles " $dir/$non_pic_object" | |
8311 | 9554 | fi |
8312 | 9555 | fi |
8313 | 9556 | ;; |
8314 | 9557 | |
8315 | 9558 | *) |
8316 | if test "$mode" = clean ; then | |
9559 | if test "$opt_mode" = clean ; then | |
8317 | 9560 | noexename=$name |
8318 | 9561 | case $file in |
8319 | 9562 | *.exe) |
8323 | 9566 | noexename=$func_stripname_result |
8324 | 9567 | # $file with .exe has already been added to rmfiles, |
8325 | 9568 | # add $file without .exe |
8326 | rmfiles="$rmfiles $file" | |
9569 | func_append rmfiles " $file" | |
8327 | 9570 | ;; |
8328 | 9571 | esac |
8329 | 9572 | # Do a test to see if this is a libtool program. |
8332 | 9575 | func_ltwrapper_scriptname "$file" |
8333 | 9576 | relink_command= |
8334 | 9577 | func_source $func_ltwrapper_scriptname_result |
8335 | rmfiles="$rmfiles $func_ltwrapper_scriptname_result" | |
9578 | func_append rmfiles " $func_ltwrapper_scriptname_result" | |
8336 | 9579 | else |
8337 | 9580 | relink_command= |
8338 | 9581 | func_source $dir/$noexename |
8340 | 9583 | |
8341 | 9584 | # note $name still contains .exe if it was in $file originally |
8342 | 9585 | # 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}" | |
8344 | 9587 | if test "$fast_install" = yes && test -n "$relink_command"; then |
8345 | rmfiles="$rmfiles $objdir/lt-$name" | |
9588 | func_append rmfiles " $odir/lt-$name" | |
8346 | 9589 | fi |
8347 | 9590 | if test "X$noexename" != "X$name" ; then |
8348 | rmfiles="$rmfiles $objdir/lt-${noexename}.c" | |
9591 | func_append rmfiles " $odir/lt-${noexename}.c" | |
8349 | 9592 | fi |
8350 | 9593 | fi |
8351 | 9594 | fi |
8353 | 9596 | esac |
8354 | 9597 | func_show_eval "$RM $rmfiles" 'exit_status=1' |
8355 | 9598 | done |
8356 | objdir="$origobjdir" | |
8357 | 9599 | |
8358 | 9600 | # Try to remove the ${objdir}s in the directories where we deleted files |
8359 | 9601 | for dir in $rmdirs; do |
8365 | 9607 | exit $exit_status |
8366 | 9608 | } |
8367 | 9609 | |
8368 | { test "$mode" = uninstall || test "$mode" = clean; } && | |
9610 | { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && | |
8369 | 9611 | func_mode_uninstall ${1+"$@"} |
8370 | 9612 | |
8371 | test -z "$mode" && { | |
9613 | test -z "$opt_mode" && { | |
8372 | 9614 | help="$generic_help" |
8373 | 9615 | func_fatal_help "you must specify a MODE" |
8374 | 9616 | } |
8375 | 9617 | |
8376 | 9618 | test -z "$exec_cmd" && \ |
8377 | func_fatal_help "invalid operation mode \`$mode'" | |
9619 | func_fatal_help "invalid operation mode \`$opt_mode'" | |
8378 | 9620 | |
8379 | 9621 | if test -n "$exec_cmd"; then |
8380 | 9622 | eval exec "$exec_cmd" |
0 | 0 | #! /bin/sh |
1 | 1 | # Common stub for a few missing GNU programs while installing. |
2 | 2 | |
3 | scriptversion=2009-04-28.21; # UTC | |
3 | scriptversion=2012-01-06.13; # UTC | |
4 | 4 | |
5 | 5 | # 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. | |
7 | 7 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. |
8 | 8 | |
9 | 9 | # This program is free software; you can redistribute it and/or modify |
83 | 83 | help2man touch the output file |
84 | 84 | lex create \`lex.yy.c', if possible, from existing .c |
85 | 85 | makeinfo touch the output file |
86 | tar try tar, gnutar, gtar, then tar without non-portable flags | |
87 | 86 | yacc create \`y.tab.[ch]', if possible, from existing .[ch] |
88 | 87 | |
89 | 88 | Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and |
119 | 118 | case $1 in |
120 | 119 | lex*|yacc*) |
121 | 120 | # 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 | |
131 | 121 | ;; |
132 | 122 | |
133 | 123 | *) |
225 | 215 | \`Bison' from any GNU archive site." |
226 | 216 | rm -f y.tab.c y.tab.h |
227 | 217 | if test $# -ne 1; then |
228 | eval LASTARG="\${$#}" | |
218 | eval LASTARG=\${$#} | |
229 | 219 | case $LASTARG in |
230 | 220 | *.y) |
231 | 221 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` |
255 | 245 | \`Flex' from any GNU archive site." |
256 | 246 | rm -f lex.yy.c |
257 | 247 | if test $# -ne 1; then |
258 | eval LASTARG="\${$#}" | |
248 | eval LASTARG=\${$#} | |
259 | 249 | case $LASTARG in |
260 | 250 | *.l) |
261 | 251 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` |
317 | 307 | touch $file |
318 | 308 | ;; |
319 | 309 | |
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 | ||
355 | 310 | *) |
356 | 311 | echo 1>&2 "\ |
357 | 312 | WARNING: \`$1' is needed, and is $msg. |
0 | 0 | #! /bin/sh |
1 | 1 | # 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. | |
3 | 3 | # |
4 | 4 | # |
5 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
88 | 88 | IFS=" "" $as_nl" |
89 | 89 | |
90 | 90 | # Find who we are. Look in the path if we contain no directory separator. |
91 | as_myself= | |
91 | 92 | case $0 in #(( |
92 | 93 | *[\\/]* ) as_myself=$0 ;; |
93 | 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
170 | 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
171 | 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
172 | 173 | 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 | |
173 | 182 | test \$(( 1 + 1 )) = 2 || exit 1" |
174 | 183 | if (eval "$as_required") 2>/dev/null; then : |
175 | 184 | as_have_required=yes |
213 | 222 | # We cannot yet assume a decent shell, so we have to provide a |
214 | 223 | # neutralization value for shells without unset; and this also |
215 | 224 | # works around shells that cannot unset nonexistent variables. |
225 | # Preserve -v and -x to the replacement shell. | |
216 | 226 | BASH_ENV=/dev/null |
217 | 227 | ENV=/dev/null |
218 | 228 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
219 | 229 | 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+"$@"} | |
221 | 237 | fi |
222 | 238 | |
223 | 239 | if test x$as_have_required = xno; then : |
524 | 540 | # Sed expression to map a string onto a valid variable name. |
525 | 541 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
526 | 542 | |
527 | ||
528 | ||
529 | # Check that we are running under the correct shell. | |
530 | 543 | 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 | ||
675 | 544 | |
676 | 545 | |
677 | 546 | test -n "$DJDIR" || exec 7<&0 </dev/null |
697 | 566 | # Identity of this package. |
698 | 567 | PACKAGE_NAME='Multitouch Protocol Translation Library' |
699 | 568 | 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' | |
702 | 571 | PACKAGE_BUGREPORT='' |
703 | 572 | PACKAGE_URL='' |
704 | 573 | |
749 | 618 | LIPO |
750 | 619 | NMEDIT |
751 | 620 | DSYMUTIL |
752 | lt_ECHO | |
621 | MANIFEST_TOOL | |
753 | 622 | RANLIB |
623 | ac_ct_AR | |
754 | 624 | AR |
625 | DLLTOOL | |
755 | 626 | OBJDUMP |
756 | 627 | LN_S |
757 | 628 | NM |
765 | 636 | am__fastdepCC_FALSE |
766 | 637 | am__fastdepCC_TRUE |
767 | 638 | CCDEPMODE |
639 | am__nodep | |
768 | 640 | AMDEPBACKSLASH |
769 | 641 | AMDEP_FALSE |
770 | 642 | AMDEP_TRUE |
862 | 734 | enable_fast_install |
863 | 735 | enable_dependency_tracking |
864 | 736 | with_gnu_ld |
737 | with_sysroot | |
865 | 738 | enable_libtool_lock |
866 | 739 | ' |
867 | 740 | ac_precious_vars='build_alias |
1277 | 1150 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1278 | 1151 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1279 | 1152 | $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}" | |
1281 | 1154 | ;; |
1282 | 1155 | |
1283 | 1156 | esac |
1415 | 1288 | # Omit some internal or obsolete options to make the list less imposing. |
1416 | 1289 | # This message is too long to be a string in the A/UX 3.1 sh. |
1417 | 1290 | 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. | |
1419 | 1292 | |
1420 | 1293 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1421 | 1294 | |
1485 | 1358 | |
1486 | 1359 | if test -n "$ac_init_help"; then |
1487 | 1360 | 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:";; | |
1489 | 1362 | esac |
1490 | 1363 | cat <<\_ACEOF |
1491 | 1364 | |
1506 | 1379 | Optional Packages: |
1507 | 1380 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1508 | 1381 | --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 | |
1510 | 1383 | both] |
1511 | 1384 | --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). | |
1512 | 1387 | |
1513 | 1388 | Some influential environment variables: |
1514 | 1389 | CC C compiler command |
1586 | 1461 | test -n "$ac_init_help" && exit $ac_status |
1587 | 1462 | if $ac_init_version; then |
1588 | 1463 | 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 | |
1591 | 1466 | |
1592 | 1467 | Copyright (C) 2010 Free Software Foundation, Inc. |
1593 | 1468 | This configure script is free software; the Free Software Foundation |
1633 | 1508 | |
1634 | 1509 | ac_retval=1 |
1635 | 1510 | 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 | |
1637 | 1512 | as_fn_set_status $ac_retval |
1638 | 1513 | |
1639 | 1514 | } # ac_fn_c_try_compile |
1679 | 1554 | # interfere with the next link command; also delete a directory that is |
1680 | 1555 | # left behind by Apple's compiler. We do this before executing the actions. |
1681 | 1556 | 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 | |
1683 | 1558 | as_fn_set_status $ac_retval |
1684 | 1559 | |
1685 | 1560 | } # ac_fn_c_try_link |
1693 | 1568 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1694 | 1569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1695 | 1570 | $as_echo_n "checking for $2... " >&6; } |
1696 | if eval "test \"\${$3+set}\"" = set; then : | |
1571 | if eval \${$3+:} false; then : | |
1697 | 1572 | $as_echo_n "(cached) " >&6 |
1698 | 1573 | else |
1699 | 1574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1711 | 1586 | eval ac_res=\$$3 |
1712 | 1587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1713 | 1588 | $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 | |
1715 | 1590 | |
1716 | 1591 | } # ac_fn_c_check_header_compile |
1717 | 1592 | |
1747 | 1622 | |
1748 | 1623 | ac_retval=1 |
1749 | 1624 | 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 | |
1751 | 1626 | as_fn_set_status $ac_retval |
1752 | 1627 | |
1753 | 1628 | } # ac_fn_c_try_cpp |
1789 | 1664 | ac_retval=$ac_status |
1790 | 1665 | fi |
1791 | 1666 | 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 | |
1793 | 1668 | as_fn_set_status $ac_retval |
1794 | 1669 | |
1795 | 1670 | } # ac_fn_c_try_run |
1802 | 1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1803 | 1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1804 | 1679 | $as_echo_n "checking for $2... " >&6; } |
1805 | if eval "test \"\${$3+set}\"" = set; then : | |
1680 | if eval \${$3+:} false; then : | |
1806 | 1681 | $as_echo_n "(cached) " >&6 |
1807 | 1682 | else |
1808 | 1683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1857 | 1732 | eval ac_res=\$$3 |
1858 | 1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1859 | 1734 | $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 | |
1861 | 1736 | |
1862 | 1737 | } # ac_fn_c_check_func |
1863 | 1738 | cat >config.log <<_ACEOF |
1864 | 1739 | This file contains any messages produced by compilers while |
1865 | 1740 | running configure, to aid debugging if configure makes a mistake. |
1866 | 1741 | |
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 | |
1869 | 1744 | |
1870 | 1745 | $ $0 $@ |
1871 | 1746 | |
2123 | 1998 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2124 | 1999 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2125 | 2000 | 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; } | |
2127 | 2002 | fi |
2128 | 2003 | done |
2129 | 2004 | |
2265 | 2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2266 | 2141 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2267 | 2142 | if test -z "$INSTALL"; then |
2268 | if test "${ac_cv_path_install+set}" = set; then : | |
2143 | if ${ac_cv_path_install+:} false; then : | |
2269 | 2144 | $as_echo_n "(cached) " >&6 |
2270 | 2145 | else |
2271 | 2146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2352 | 2227 | ' |
2353 | 2228 | case `pwd` in |
2354 | 2229 | *[\\\"\#\$\&\'\`$am_lf]*) |
2355 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | |
2230 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2356 | 2231 | esac |
2357 | 2232 | case $srcdir in |
2358 | 2233 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2359 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | |
2234 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2360 | 2235 | esac |
2361 | 2236 | |
2362 | 2237 | # Do `set' in a subshell so we don't clobber the current shell's |
2442 | 2317 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2443 | 2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2444 | 2319 | $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 : | |
2446 | 2321 | $as_echo_n "(cached) " >&6 |
2447 | 2322 | else |
2448 | 2323 | if test -n "$STRIP"; then |
2482 | 2357 | set dummy strip; ac_word=$2 |
2483 | 2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2484 | 2359 | $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 : | |
2486 | 2361 | $as_echo_n "(cached) " >&6 |
2487 | 2362 | else |
2488 | 2363 | if test -n "$ac_ct_STRIP"; then |
2535 | 2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2536 | 2411 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2537 | 2412 | if test -z "$MKDIR_P"; then |
2538 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
2413 | if ${ac_cv_path_mkdir+:} false; then : | |
2539 | 2414 | $as_echo_n "(cached) " >&6 |
2540 | 2415 | else |
2541 | 2416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2586 | 2461 | set dummy $ac_prog; ac_word=$2 |
2587 | 2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2588 | 2463 | $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 : | |
2590 | 2465 | $as_echo_n "(cached) " >&6 |
2591 | 2466 | else |
2592 | 2467 | if test -n "$AWK"; then |
2626 | 2501 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2627 | 2502 | set x ${MAKE-make} |
2628 | 2503 | 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 : | |
2630 | 2505 | $as_echo_n "(cached) " >&6 |
2631 | 2506 | else |
2632 | 2507 | cat >conftest.make <<\_ACEOF |
2684 | 2559 | |
2685 | 2560 | # Define the identity of the package. |
2686 | 2561 | PACKAGE='mtdev' |
2687 | VERSION='1.1.0' | |
2562 | VERSION='1.1.2' | |
2688 | 2563 | |
2689 | 2564 | |
2690 | 2565 | cat >>confdefs.h <<_ACEOF |
2714 | 2589 | |
2715 | 2590 | # We need awk for the "check" target. The system "awk" is bad on |
2716 | 2591 | # 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 -' | |
2722 | 2597 | |
2723 | 2598 | |
2724 | 2599 | |
2760 | 2635 | |
2761 | 2636 | |
2762 | 2637 | |
2763 | macro_version='2.2.6b' | |
2764 | macro_revision='1.3017' | |
2638 | macro_version='2.4.2' | |
2639 | macro_revision='1.3337' | |
2765 | 2640 | |
2766 | 2641 | |
2767 | 2642 | |
2783 | 2658 | |
2784 | 2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2785 | 2660 | $as_echo_n "checking build system type... " >&6; } |
2786 | if test "${ac_cv_build+set}" = set; then : | |
2661 | if ${ac_cv_build+:} false; then : | |
2787 | 2662 | $as_echo_n "(cached) " >&6 |
2788 | 2663 | else |
2789 | 2664 | ac_build_alias=$build_alias |
2799 | 2674 | $as_echo "$ac_cv_build" >&6; } |
2800 | 2675 | case $ac_cv_build in |
2801 | 2676 | *-*-*) ;; |
2802 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; | |
2677 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2803 | 2678 | esac |
2804 | 2679 | build=$ac_cv_build |
2805 | 2680 | ac_save_IFS=$IFS; IFS='-' |
2817 | 2692 | |
2818 | 2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2819 | 2694 | $as_echo_n "checking host system type... " >&6; } |
2820 | if test "${ac_cv_host+set}" = set; then : | |
2695 | if ${ac_cv_host+:} false; then : | |
2821 | 2696 | $as_echo_n "(cached) " >&6 |
2822 | 2697 | else |
2823 | 2698 | if test "x$host_alias" = x; then |
2832 | 2707 | $as_echo "$ac_cv_host" >&6; } |
2833 | 2708 | case $ac_cv_host in |
2834 | 2709 | *-*-*) ;; |
2835 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; | |
2710 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2836 | 2711 | esac |
2837 | 2712 | host=$ac_cv_host |
2838 | 2713 | ac_save_IFS=$IFS; IFS='-' |
2846 | 2721 | host_os=$* |
2847 | 2722 | IFS=$ac_save_IFS |
2848 | 2723 | 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 | ||
2849 | 2793 | |
2850 | 2794 | |
2851 | 2795 | DEPDIR="${am__leading_dot}deps" |
2900 | 2844 | if test "x$enable_dependency_tracking" != xno; then |
2901 | 2845 | am_depcomp="$ac_aux_dir/depcomp" |
2902 | 2846 | AMDEPBACKSLASH='\' |
2847 | am__nodep='_no' | |
2903 | 2848 | fi |
2904 | 2849 | if test "x$enable_dependency_tracking" != xno; then |
2905 | 2850 | AMDEP_TRUE= |
2920 | 2865 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2921 | 2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2922 | 2867 | $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 : | |
2924 | 2869 | $as_echo_n "(cached) " >&6 |
2925 | 2870 | else |
2926 | 2871 | if test -n "$CC"; then |
2960 | 2905 | set dummy gcc; ac_word=$2 |
2961 | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2962 | 2907 | $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 : | |
2964 | 2909 | $as_echo_n "(cached) " >&6 |
2965 | 2910 | else |
2966 | 2911 | if test -n "$ac_ct_CC"; then |
3013 | 2958 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3014 | 2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3015 | 2960 | $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 : | |
3017 | 2962 | $as_echo_n "(cached) " >&6 |
3018 | 2963 | else |
3019 | 2964 | if test -n "$CC"; then |
3053 | 2998 | set dummy cc; ac_word=$2 |
3054 | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3055 | 3000 | $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 : | |
3057 | 3002 | $as_echo_n "(cached) " >&6 |
3058 | 3003 | else |
3059 | 3004 | if test -n "$CC"; then |
3112 | 3057 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3113 | 3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3114 | 3059 | $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 : | |
3116 | 3061 | $as_echo_n "(cached) " >&6 |
3117 | 3062 | else |
3118 | 3063 | if test -n "$CC"; then |
3156 | 3101 | set dummy $ac_prog; ac_word=$2 |
3157 | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3158 | 3103 | $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 : | |
3160 | 3105 | $as_echo_n "(cached) " >&6 |
3161 | 3106 | else |
3162 | 3107 | if test -n "$ac_ct_CC"; then |
3211 | 3156 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3212 | 3157 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3213 | 3158 | 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; } | |
3215 | 3160 | |
3216 | 3161 | # Provide some information about the compiler. |
3217 | 3162 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3326 | 3271 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3327 | 3272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3328 | 3273 | 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; } | |
3330 | 3275 | else |
3331 | 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3332 | 3277 | $as_echo "yes" >&6; } |
3369 | 3314 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3370 | 3315 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3371 | 3316 | 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; } | |
3373 | 3318 | fi |
3374 | 3319 | rm -f conftest conftest$ac_cv_exeext |
3375 | 3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3428 | 3373 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3429 | 3374 | as_fn_error $? "cannot run C compiled programs. |
3430 | 3375 | 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; } | |
3432 | 3377 | fi |
3433 | 3378 | fi |
3434 | 3379 | fi |
3439 | 3384 | ac_clean_files=$ac_clean_files_save |
3440 | 3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3441 | 3386 | $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 : | |
3443 | 3388 | $as_echo_n "(cached) " >&6 |
3444 | 3389 | else |
3445 | 3390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3480 | 3425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3481 | 3426 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3482 | 3427 | 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; } | |
3484 | 3429 | fi |
3485 | 3430 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3486 | 3431 | fi |
3490 | 3435 | ac_objext=$OBJEXT |
3491 | 3436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3492 | 3437 | $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 : | |
3494 | 3439 | $as_echo_n "(cached) " >&6 |
3495 | 3440 | else |
3496 | 3441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3527 | 3472 | ac_save_CFLAGS=$CFLAGS |
3528 | 3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3529 | 3474 | $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 : | |
3531 | 3476 | $as_echo_n "(cached) " >&6 |
3532 | 3477 | else |
3533 | 3478 | ac_save_c_werror_flag=$ac_c_werror_flag |
3605 | 3550 | fi |
3606 | 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3607 | 3552 | $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 : | |
3609 | 3554 | $as_echo_n "(cached) " >&6 |
3610 | 3555 | else |
3611 | 3556 | ac_cv_prog_cc_c89=no |
3704 | 3649 | |
3705 | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3706 | 3651 | $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 : | |
3708 | 3653 | $as_echo_n "(cached) " >&6 |
3709 | 3654 | else |
3710 | 3655 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3713 | 3658 | # instance it was reported that on HP-UX the gcc test will end up |
3714 | 3659 | # making a dummy file named `D' -- because `-MD' means `put the output |
3715 | 3660 | # in D'. |
3661 | rm -rf conftest.dir | |
3716 | 3662 | mkdir conftest.dir |
3717 | 3663 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3718 | 3664 | # using a relative directory. |
3772 | 3718 | break |
3773 | 3719 | fi |
3774 | 3720 | ;; |
3775 | msvisualcpp | msvcmsys) | |
3721 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
3776 | 3722 | # This compiler won't grok `-c -o', but also, the minuso test has |
3777 | 3723 | # not run yet. These depmodes are late enough in the game, and |
3778 | 3724 | # so weak that their functioning should not be impacted. |
3829 | 3775 | |
3830 | 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3831 | 3777 | $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 : | |
3833 | 3779 | $as_echo_n "(cached) " >&6 |
3834 | 3780 | else |
3835 | 3781 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3911 | 3857 | |
3912 | 3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3913 | 3859 | $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 : | |
3915 | 3861 | $as_echo_n "(cached) " >&6 |
3916 | 3862 | else |
3917 | 3863 | if test -z "$GREP"; then |
3974 | 3920 | |
3975 | 3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3976 | 3922 | $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 : | |
3978 | 3924 | $as_echo_n "(cached) " >&6 |
3979 | 3925 | else |
3980 | 3926 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4041 | 3987 | |
4042 | 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4043 | 3989 | $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 : | |
4045 | 3991 | $as_echo_n "(cached) " >&6 |
4046 | 3992 | else |
4047 | 3993 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4172 | 4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4173 | 4119 | $as_echo_n "checking for non-GNU ld... " >&6; } |
4174 | 4120 | fi |
4175 | if test "${lt_cv_path_LD+set}" = set; then : | |
4121 | if ${lt_cv_path_LD+:} false; then : | |
4176 | 4122 | $as_echo_n "(cached) " >&6 |
4177 | 4123 | else |
4178 | 4124 | if test -z "$LD"; then |
4212 | 4158 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4213 | 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4214 | 4160 | $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 : | |
4216 | 4162 | $as_echo_n "(cached) " >&6 |
4217 | 4163 | else |
4218 | 4164 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4239 | 4185 | |
4240 | 4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4241 | 4187 | $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 : | |
4243 | 4189 | $as_echo_n "(cached) " >&6 |
4244 | 4190 | else |
4245 | 4191 | if test -n "$NM"; then |
4292 | 4238 | NM="$lt_cv_path_NM" |
4293 | 4239 | else |
4294 | 4240 | # 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" | |
4297 | 4246 | do |
4298 | 4247 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4299 | 4248 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4300 | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4301 | 4250 | $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 : | |
4303 | 4252 | $as_echo_n "(cached) " >&6 |
4304 | 4253 | else |
4305 | 4254 | if test -n "$DUMPBIN"; then |
4337 | 4286 | fi |
4338 | 4287 | if test -z "$DUMPBIN"; then |
4339 | 4288 | ac_ct_DUMPBIN=$DUMPBIN |
4340 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4289 | for ac_prog in dumpbin "link -dump" | |
4341 | 4290 | do |
4342 | 4291 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4343 | 4292 | set dummy $ac_prog; ac_word=$2 |
4344 | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4345 | 4294 | $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 : | |
4347 | 4296 | $as_echo_n "(cached) " >&6 |
4348 | 4297 | else |
4349 | 4298 | if test -n "$ac_ct_DUMPBIN"; then |
4392 | 4341 | fi |
4393 | 4342 | fi |
4394 | 4343 | |
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 | |
4395 | 4353 | |
4396 | 4354 | if test "$DUMPBIN" != ":"; then |
4397 | 4355 | NM="$DUMPBIN" |
4406 | 4364 | |
4407 | 4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
4408 | 4366 | $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 : | |
4410 | 4368 | $as_echo_n "(cached) " >&6 |
4411 | 4369 | else |
4412 | 4370 | lt_cv_nm_interface="BSD nm" |
4413 | 4371 | 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) | |
4415 | 4373 | (eval "$ac_compile" 2>conftest.err) |
4416 | 4374 | 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) | |
4418 | 4376 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4419 | 4377 | cat conftest.err >&5 |
4420 | (eval echo "\"\$as_me:4421: output\"" >&5) | |
4378 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
4421 | 4379 | cat conftest.out >&5 |
4422 | 4380 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
4423 | 4381 | lt_cv_nm_interface="MS dumpbin" |
4441 | 4399 | # find the maximum length of command line arguments |
4442 | 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
4443 | 4401 | $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 : | |
4445 | 4403 | $as_echo_n "(cached) " >&6 |
4446 | 4404 | else |
4447 | 4405 | i=0 |
4471 | 4429 | # the test eventually succeeds (with a max line length of 256k). |
4472 | 4430 | # Instead, let's just punt: use the minimum linelength reported by |
4473 | 4431 | # 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. | |
4474 | 4437 | lt_cv_sys_max_cmd_len=8192; |
4475 | 4438 | ;; |
4476 | 4439 | |
4497 | 4460 | interix*) |
4498 | 4461 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
4499 | 4462 | 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 | |
4500 | 4468 | ;; |
4501 | 4469 | |
4502 | 4470 | osf*) |
4538 | 4506 | # If test is not a shell built-in, we'll probably end up computing a |
4539 | 4507 | # maximum length that is only half of the actual maximum length, but |
4540 | 4508 | # 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 && | |
4543 | 4511 | test $i != 17 # 1/2 MB should be enough |
4544 | 4512 | do |
4545 | 4513 | i=`expr $i + 1` |
4581 | 4549 | # Try some XSI features |
4582 | 4550 | xsi_shell=no |
4583 | 4551 | ( _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, \ | |
4586 | 4554 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
4587 | 4555 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
4588 | 4556 | && xsi_shell=yes |
4631 | 4599 | |
4632 | 4600 | |
4633 | 4601 | |
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 | ||
4634 | 4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
4635 | 4677 | $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 : | |
4637 | 4679 | $as_echo_n "(cached) " >&6 |
4638 | 4680 | else |
4639 | 4681 | lt_cv_ld_reload_flag='-r' |
4647 | 4689 | esac |
4648 | 4690 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4649 | 4691 | case $host_os in |
4692 | cygwin* | mingw* | pw32* | cegcc*) | |
4693 | if test "$GCC" != yes; then | |
4694 | reload_cmds=false | |
4695 | fi | |
4696 | ;; | |
4650 | 4697 | darwin*) |
4651 | 4698 | if test "$GCC" = yes; then |
4652 | 4699 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4669 | 4716 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
4670 | 4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4671 | 4718 | $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 : | |
4673 | 4720 | $as_echo_n "(cached) " >&6 |
4674 | 4721 | else |
4675 | 4722 | if test -n "$OBJDUMP"; then |
4709 | 4756 | set dummy objdump; ac_word=$2 |
4710 | 4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4711 | 4758 | $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 : | |
4713 | 4760 | $as_echo_n "(cached) " >&6 |
4714 | 4761 | else |
4715 | 4762 | if test -n "$ac_ct_OBJDUMP"; then |
4768 | 4815 | |
4769 | 4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4770 | 4817 | $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 : | |
4772 | 4819 | $as_echo_n "(cached) " >&6 |
4773 | 4820 | else |
4774 | 4821 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4810 | 4857 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4811 | 4858 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4812 | 4859 | # 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 | |
4814 | 4862 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4815 | 4863 | lt_cv_file_magic_cmd='func_win32_libid' |
4816 | 4864 | 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)' | |
4818 | 4867 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4819 | 4868 | fi |
4820 | 4869 | ;; |
4821 | 4870 | |
4822 | cegcc) | |
4871 | cegcc*) | |
4823 | 4872 | # use the weaker test based on 'objdump'. See mingw*. |
4824 | 4873 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
4825 | 4874 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4849 | 4898 | lt_cv_deplibs_check_method=pass_all |
4850 | 4899 | ;; |
4851 | 4900 | |
4901 | haiku*) | |
4902 | lt_cv_deplibs_check_method=pass_all | |
4903 | ;; | |
4904 | ||
4852 | 4905 | hpux10.20* | hpux11*) |
4853 | 4906 | lt_cv_file_magic_cmd=/usr/bin/file |
4854 | 4907 | case $host_cpu in |
4857 | 4910 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4858 | 4911 | ;; |
4859 | 4912 | 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]' | |
4861 | 4914 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4862 | 4915 | ;; |
4863 | 4916 | *) |
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' | |
4865 | 4918 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4866 | 4919 | ;; |
4867 | 4920 | esac |
4882 | 4935 | lt_cv_deplibs_check_method=pass_all |
4883 | 4936 | ;; |
4884 | 4937 | |
4885 | # This must be Linux ELF. | |
4938 | # This must be glibc/ELF. | |
4886 | 4939 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
4887 | 4940 | lt_cv_deplibs_check_method=pass_all |
4888 | 4941 | ;; |
4889 | 4942 | |
4890 | netbsd* | netbsdelf*-gnu) | |
4943 | netbsd*) | |
4891 | 4944 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
4892 | 4945 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4893 | 4946 | else |
4964 | 5017 | fi |
4965 | 5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4966 | 5019 | $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 | ||
4967 | 5035 | file_magic_cmd=$lt_cv_file_magic_cmd |
4968 | 5036 | deplibs_check_method=$lt_cv_deplibs_check_method |
4969 | 5037 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4979 | 5047 | |
4980 | 5048 | |
4981 | 5049 | |
5050 | ||
5051 | ||
5052 | ||
5053 | ||
5054 | ||
5055 | ||
5056 | ||
5057 | ||
5058 | ||
5059 | ||
4982 | 5060 | 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 | |
4985 | 5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4986 | 5064 | $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 : | |
4988 | 5066 | $as_echo_n "(cached) " >&6 |
4989 | 5067 | 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. | |
4992 | 5070 | else |
4993 | 5071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4994 | 5072 | for as_dir in $PATH |
4997 | 5075 | test -z "$as_dir" && as_dir=. |
4998 | 5076 | for ac_exec_ext in '' $ac_executable_extensions; do |
4999 | 5077 | 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" | |
5001 | 5079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5002 | 5080 | break 2 |
5003 | 5081 | fi |
5007 | 5085 | |
5008 | 5086 | fi |
5009 | 5087 | 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; } | |
5014 | 5092 | else |
5015 | 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5016 | 5094 | $as_echo "no" >&6; } |
5018 | 5096 | |
5019 | 5097 | |
5020 | 5098 | 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 | |
5025 | 5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5026 | 5104 | $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 : | |
5028 | 5106 | $as_echo_n "(cached) " >&6 |
5029 | 5107 | 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. | |
5032 | 5110 | else |
5033 | 5111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5034 | 5112 | for as_dir in $PATH |
5037 | 5115 | test -z "$as_dir" && as_dir=. |
5038 | 5116 | for ac_exec_ext in '' $ac_executable_extensions; do |
5039 | 5117 | 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" | |
5041 | 5267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5042 | 5268 | break 2 |
5043 | 5269 | fi |
5055 | 5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5056 | 5282 | $as_echo "no" >&6; } |
5057 | 5283 | fi |
5284 | ||
5285 | ||
5286 | test -n "$ac_ct_AR" && break | |
5287 | done | |
5058 | 5288 | |
5059 | 5289 | if test "x$ac_ct_AR" = x; then |
5060 | 5290 | AR="false" |
5067 | 5297 | esac |
5068 | 5298 | AR=$ac_ct_AR |
5069 | 5299 | 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 | |
5080 | 5366 | |
5081 | 5367 | |
5082 | 5368 | |
5089 | 5375 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5090 | 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5091 | 5377 | $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 : | |
5093 | 5379 | $as_echo_n "(cached) " >&6 |
5094 | 5380 | else |
5095 | 5381 | if test -n "$STRIP"; then |
5129 | 5415 | set dummy strip; ac_word=$2 |
5130 | 5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5131 | 5417 | $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 : | |
5133 | 5419 | $as_echo_n "(cached) " >&6 |
5134 | 5420 | else |
5135 | 5421 | if test -n "$ac_ct_STRIP"; then |
5188 | 5474 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5189 | 5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5190 | 5476 | $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 : | |
5192 | 5478 | $as_echo_n "(cached) " >&6 |
5193 | 5479 | else |
5194 | 5480 | if test -n "$RANLIB"; then |
5228 | 5514 | set dummy ranlib; ac_word=$2 |
5229 | 5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5230 | 5516 | $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 : | |
5232 | 5518 | $as_echo_n "(cached) " >&6 |
5233 | 5519 | else |
5234 | 5520 | if test -n "$ac_ct_RANLIB"; then |
5290 | 5576 | if test -n "$RANLIB"; then |
5291 | 5577 | case $host_os in |
5292 | 5578 | openbsd*) |
5293 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5579 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
5294 | 5580 | ;; |
5295 | 5581 | *) |
5296 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5582 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
5297 | 5583 | ;; |
5298 | 5584 | 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 | ||
5301 | 5599 | |
5302 | 5600 | |
5303 | 5601 | |
5345 | 5643 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5346 | 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
5347 | 5645 | $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 : | |
5349 | 5647 | $as_echo_n "(cached) " >&6 |
5350 | 5648 | else |
5351 | 5649 | |
5406 | 5704 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5407 | 5705 | |
5408 | 5706 | # 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'" | |
5411 | 5709 | |
5412 | 5710 | # Handle CRLF in mingw tool chain |
5413 | 5711 | opt_cr= |
5431 | 5729 | # which start with @ or ?. |
5432 | 5730 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
5433 | 5731 | " {last_section=section; section=\$ 3};"\ |
5732 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
5434 | 5733 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
5435 | 5734 | " \$ 0!~/External *\|/{next};"\ |
5436 | 5735 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
5443 | 5742 | else |
5444 | 5743 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5445 | 5744 | fi |
5745 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
5446 | 5746 | |
5447 | 5747 | # Check to see that the pipe works correctly. |
5448 | 5748 | pipe_works=no |
5468 | 5768 | test $ac_status = 0; }; then |
5469 | 5769 | # Now try to grab the symbols. |
5470 | 5770 | 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 | |
5473 | 5773 | ac_status=$? |
5474 | 5774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5475 | 5775 | test $ac_status = 0; } && test -s "$nlist"; then |
5484 | 5784 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
5485 | 5785 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
5486 | 5786 | 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 | ||
5487 | 5799 | #ifdef __cplusplus |
5488 | 5800 | extern "C" { |
5489 | 5801 | #endif |
5495 | 5807 | cat <<_LT_EOF >> conftest.$ac_ext |
5496 | 5808 | |
5497 | 5809 | /* The mapping between symbol names and symbols. */ |
5498 | const struct { | |
5810 | LT_DLSYM_CONST struct { | |
5499 | 5811 | const char *name; |
5500 | 5812 | void *address; |
5501 | 5813 | } |
5521 | 5833 | _LT_EOF |
5522 | 5834 | # Now try linking the two files. |
5523 | 5835 | 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 | |
5526 | 5838 | LIBS="conftstm.$ac_objext" |
5527 | 5839 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5528 | 5840 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
5532 | 5844 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
5533 | 5845 | pipe_works=yes |
5534 | 5846 | fi |
5535 | LIBS="$lt_save_LIBS" | |
5536 | CFLAGS="$lt_save_CFLAGS" | |
5847 | LIBS=$lt_globsym_save_LIBS | |
5848 | CFLAGS=$lt_globsym_save_CFLAGS | |
5537 | 5849 | else |
5538 | 5850 | echo "cannot find nm_test_func in $nlist" >&5 |
5539 | 5851 | fi |
5570 | 5882 | $as_echo "ok" >&6; } |
5571 | 5883 | fi |
5572 | 5884 | |
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; } | |
5590 | 5950 | |
5591 | 5951 | |
5592 | 5952 | |
5623 | 5983 | ;; |
5624 | 5984 | *-*-irix6*) |
5625 | 5985 | # Find out which ABI we are using. |
5626 | echo '#line 5627 "configure"' > conftest.$ac_ext | |
5986 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
5627 | 5987 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5628 | 5988 | (eval $ac_compile) 2>&5 |
5629 | 5989 | ac_status=$? |
5717 | 6077 | CFLAGS="$CFLAGS -belf" |
5718 | 6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
5719 | 6079 | $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 : | |
5721 | 6081 | $as_echo_n "(cached) " >&6 |
5722 | 6082 | else |
5723 | 6083 | ac_ext=c |
5758 | 6118 | CFLAGS="$SAVE_CFLAGS" |
5759 | 6119 | fi |
5760 | 6120 | ;; |
5761 | sparc*-*solaris*) | |
6121 | *-*solaris*) | |
5762 | 6122 | # Find out which ABI we are using. |
5763 | 6123 | echo 'int i;' > conftest.$ac_ext |
5764 | 6124 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5769 | 6129 | case `/usr/bin/file conftest.o` in |
5770 | 6130 | *64-bit*) |
5771 | 6131 | 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 | ;; | |
5773 | 6146 | *) |
5774 | 6147 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
5775 | 6148 | LD="${LD-ld} -64" |
5785 | 6158 | |
5786 | 6159 | need_locks="$enable_libtool_lock" |
5787 | 6160 | |
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 | ||
5788 | 6278 | |
5789 | 6279 | case $host_os in |
5790 | 6280 | rhapsody* | darwin*) |
5793 | 6283 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
5794 | 6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5795 | 6285 | $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 : | |
5797 | 6287 | $as_echo_n "(cached) " >&6 |
5798 | 6288 | else |
5799 | 6289 | if test -n "$DSYMUTIL"; then |
5833 | 6323 | set dummy dsymutil; ac_word=$2 |
5834 | 6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5835 | 6325 | $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 : | |
5837 | 6327 | $as_echo_n "(cached) " >&6 |
5838 | 6328 | else |
5839 | 6329 | if test -n "$ac_ct_DSYMUTIL"; then |
5885 | 6375 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
5886 | 6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5887 | 6377 | $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 : | |
5889 | 6379 | $as_echo_n "(cached) " >&6 |
5890 | 6380 | else |
5891 | 6381 | if test -n "$NMEDIT"; then |
5925 | 6415 | set dummy nmedit; ac_word=$2 |
5926 | 6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5927 | 6417 | $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 : | |
5929 | 6419 | $as_echo_n "(cached) " >&6 |
5930 | 6420 | else |
5931 | 6421 | if test -n "$ac_ct_NMEDIT"; then |
5977 | 6467 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
5978 | 6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5979 | 6469 | $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 : | |
5981 | 6471 | $as_echo_n "(cached) " >&6 |
5982 | 6472 | else |
5983 | 6473 | if test -n "$LIPO"; then |
6017 | 6507 | set dummy lipo; ac_word=$2 |
6018 | 6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6019 | 6509 | $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 : | |
6021 | 6511 | $as_echo_n "(cached) " >&6 |
6022 | 6512 | else |
6023 | 6513 | if test -n "$ac_ct_LIPO"; then |
6069 | 6559 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
6070 | 6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6071 | 6561 | $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 : | |
6073 | 6563 | $as_echo_n "(cached) " >&6 |
6074 | 6564 | else |
6075 | 6565 | if test -n "$OTOOL"; then |
6109 | 6599 | set dummy otool; ac_word=$2 |
6110 | 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6111 | 6601 | $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 : | |
6113 | 6603 | $as_echo_n "(cached) " >&6 |
6114 | 6604 | else |
6115 | 6605 | if test -n "$ac_ct_OTOOL"; then |
6161 | 6651 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
6162 | 6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6163 | 6653 | $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 : | |
6165 | 6655 | $as_echo_n "(cached) " >&6 |
6166 | 6656 | else |
6167 | 6657 | if test -n "$OTOOL64"; then |
6201 | 6691 | set dummy otool64; ac_word=$2 |
6202 | 6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6203 | 6693 | $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 : | |
6205 | 6695 | $as_echo_n "(cached) " >&6 |
6206 | 6696 | else |
6207 | 6697 | if test -n "$ac_ct_OTOOL64"; then |
6276 | 6766 | |
6277 | 6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
6278 | 6768 | $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 : | |
6280 | 6770 | $as_echo_n "(cached) " >&6 |
6281 | 6771 | else |
6282 | 6772 | lt_cv_apple_cc_single_mod=no |
6292 | 6782 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
6293 | 6783 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
6294 | 6784 | _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 | |
6296 | 6792 | lt_cv_apple_cc_single_mod=yes |
6297 | 6793 | else |
6298 | 6794 | cat conftest.err >&5 |
6303 | 6799 | fi |
6304 | 6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
6305 | 6801 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
6802 | ||
6306 | 6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
6307 | 6804 | $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 : | |
6309 | 6806 | $as_echo_n "(cached) " >&6 |
6310 | 6807 | else |
6311 | 6808 | lt_cv_ld_exported_symbols_list=no |
6335 | 6832 | fi |
6336 | 6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
6337 | 6834 | $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; } | |
6338 | 6870 | case $host_os in |
6339 | 6871 | rhapsody* | darwin1.[012]) |
6340 | 6872 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
6362 | 6894 | else |
6363 | 6895 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
6364 | 6896 | fi |
6365 | if test "$DSYMUTIL" != ":"; then | |
6897 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
6366 | 6898 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
6367 | 6899 | else |
6368 | 6900 | _lt_dsymutil= |
6382 | 6914 | CPP= |
6383 | 6915 | fi |
6384 | 6916 | if test -z "$CPP"; then |
6385 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6917 | if ${ac_cv_prog_CPP+:} false; then : | |
6386 | 6918 | $as_echo_n "(cached) " >&6 |
6387 | 6919 | else |
6388 | 6920 | # Double quotes because CPP needs to be expanded |
6498 | 7030 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
6499 | 7031 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
6500 | 7032 | 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; } | |
6502 | 7034 | fi |
6503 | 7035 | |
6504 | 7036 | ac_ext=c |
6510 | 7042 | |
6511 | 7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
6512 | 7044 | $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 : | |
6514 | 7046 | $as_echo_n "(cached) " >&6 |
6515 | 7047 | else |
6516 | 7048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6641 | 7173 | do : |
6642 | 7174 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
6643 | 7175 | " |
6644 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7176 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
6645 | 7177 | cat >>confdefs.h <<_ACEOF |
6646 | 7178 | #define HAVE_DLFCN_H 1 |
6647 | 7179 | _ACEOF |
6649 | 7181 | fi |
6650 | 7182 | |
6651 | 7183 | done |
7184 | ||
7185 | ||
6652 | 7186 | |
6653 | 7187 | |
6654 | 7188 | |
6727 | 7261 | |
6728 | 7262 | # Check whether --with-pic was given. |
6729 | 7263 | 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 | |
6731 | 7280 | else |
6732 | 7281 | pic_mode=default |
6733 | 7282 | fi |
6804 | 7353 | |
6805 | 7354 | |
6806 | 7355 | |
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7360 | ||
6807 | 7361 | test -z "$LN_S" && LN_S="ln -s" |
6808 | 7362 | |
6809 | 7363 | |
6825 | 7379 | |
6826 | 7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
6827 | 7381 | $as_echo_n "checking for objdir... " >&6; } |
6828 | if test "${lt_cv_objdir+set}" = set; then : | |
7382 | if ${lt_cv_objdir+:} false; then : | |
6829 | 7383 | $as_echo_n "(cached) " >&6 |
6830 | 7384 | else |
6831 | 7385 | rm -f .libs 2>/dev/null |
6849 | 7403 | cat >>confdefs.h <<_ACEOF |
6850 | 7404 | #define LT_OBJDIR "$lt_cv_objdir/" |
6851 | 7405 | _ACEOF |
6852 | ||
6853 | ||
6854 | ||
6855 | ||
6856 | ||
6857 | ||
6858 | ||
6859 | ||
6860 | ||
6861 | ||
6862 | ||
6863 | ||
6864 | ||
6865 | 7406 | |
6866 | 7407 | |
6867 | 7408 | |
6878 | 7419 | ;; |
6879 | 7420 | esac |
6880 | 7421 | |
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 | ||
6898 | 7422 | # Global variables: |
6899 | 7423 | ofile=libtool |
6900 | 7424 | can_build_shared=yes |
6923 | 7447 | *) break;; |
6924 | 7448 | esac |
6925 | 7449 | 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-%%"` | |
6927 | 7451 | |
6928 | 7452 | |
6929 | 7453 | # Only perform the check for file, if the check method requires it |
6933 | 7457 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6934 | 7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
6935 | 7459 | $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 : | |
6937 | 7461 | $as_echo_n "(cached) " >&6 |
6938 | 7462 | else |
6939 | 7463 | case $MAGIC_CMD in |
6999 | 7523 | if test -n "$ac_tool_prefix"; then |
7000 | 7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7001 | 7525 | $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 : | |
7003 | 7527 | $as_echo_n "(cached) " >&6 |
7004 | 7528 | else |
7005 | 7529 | case $MAGIC_CMD in |
7128 | 7652 | lt_prog_compiler_no_builtin_flag= |
7129 | 7653 | |
7130 | 7654 | 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 | |
7132 | 7661 | |
7133 | 7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7134 | 7663 | $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 : | |
7136 | 7665 | $as_echo_n "(cached) " >&6 |
7137 | 7666 | else |
7138 | 7667 | lt_cv_prog_compiler_rtti_exceptions=no |
7148 | 7677 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7149 | 7678 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7150 | 7679 | -e 's:$: $lt_compiler_flag:'` |
7151 | (eval echo "\"\$as_me:7152: $lt_compile\"" >&5) | |
7680 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
7152 | 7681 | (eval "$lt_compile" 2>conftest.err) |
7153 | 7682 | ac_status=$? |
7154 | 7683 | cat conftest.err >&5 |
7155 | echo "$as_me:7156: \$? = $ac_status" >&5 | |
7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7156 | 7685 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7157 | 7686 | # The compiler can only warn and ignore the option if not recognized |
7158 | 7687 | # 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 | |
7160 | 7689 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7161 | 7690 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7162 | 7691 | lt_cv_prog_compiler_rtti_exceptions=yes |
7185 | 7714 | lt_prog_compiler_pic= |
7186 | 7715 | lt_prog_compiler_static= |
7187 | 7716 | |
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; } | |
7190 | 7717 | |
7191 | 7718 | if test "$GCC" = yes; then |
7192 | 7719 | lt_prog_compiler_wl='-Wl,' |
7234 | 7761 | lt_prog_compiler_pic='-fno-common' |
7235 | 7762 | ;; |
7236 | 7763 | |
7764 | haiku*) | |
7765 | # PIC is the default for Haiku. | |
7766 | # The "-static" flag exists, but is broken. | |
7767 | lt_prog_compiler_static= | |
7768 | ;; | |
7769 | ||
7237 | 7770 | hpux*) |
7238 | 7771 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
7239 | 7772 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
7274 | 7807 | |
7275 | 7808 | *) |
7276 | 7809 | 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 | |
7277 | 7819 | ;; |
7278 | 7820 | esac |
7279 | 7821 | else |
7338 | 7880 | lt_prog_compiler_pic='--shared' |
7339 | 7881 | lt_prog_compiler_static='--static' |
7340 | 7882 | ;; |
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*) | |
7342 | 7890 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7343 | 7891 | # which looks to be a dead project) |
7344 | 7892 | lt_prog_compiler_wl='-Wl,' |
7350 | 7898 | # All Alpha code is PIC. |
7351 | 7899 | lt_prog_compiler_static='-non_shared' |
7352 | 7900 | ;; |
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 | |
7355 | 7903 | lt_prog_compiler_wl='-Wl,' |
7356 | 7904 | lt_prog_compiler_pic='-qpic' |
7357 | 7905 | lt_prog_compiler_static='-qstaticlink' |
7358 | 7906 | ;; |
7359 | 7907 | *) |
7360 | 7908 | 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 | ;; | |
7361 | 7920 | *Sun\ C*) |
7362 | 7921 | # Sun C 5.9 |
7363 | 7922 | lt_prog_compiler_pic='-KPIC' |
7364 | 7923 | lt_prog_compiler_static='-Bstatic' |
7365 | 7924 | lt_prog_compiler_wl='-Wl,' |
7366 | 7925 | ;; |
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' | |
7370 | 7934 | lt_prog_compiler_static='-Bstatic' |
7371 | lt_prog_compiler_wl='' | |
7372 | 7935 | ;; |
7373 | 7936 | esac |
7374 | 7937 | ;; |
7400 | 7963 | lt_prog_compiler_pic='-KPIC' |
7401 | 7964 | lt_prog_compiler_static='-Bstatic' |
7402 | 7965 | case $cc_basename in |
7403 | f77* | f90* | f95*) | |
7966 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
7404 | 7967 | lt_prog_compiler_wl='-Qoption ld ';; |
7405 | 7968 | *) |
7406 | 7969 | lt_prog_compiler_wl='-Wl,';; |
7457 | 8020 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7458 | 8021 | ;; |
7459 | 8022 | 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 | |
7467 | 8034 | |
7468 | 8035 | # |
7469 | 8036 | # Check to make sure the PIC flag actually works. |
7471 | 8038 | if test -n "$lt_prog_compiler_pic"; then |
7472 | 8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7473 | 8040 | $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 : | |
7475 | 8042 | $as_echo_n "(cached) " >&6 |
7476 | 8043 | else |
7477 | 8044 | lt_cv_prog_compiler_pic_works=no |
7487 | 8054 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7488 | 8055 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7489 | 8056 | -e 's:$: $lt_compiler_flag:'` |
7490 | (eval echo "\"\$as_me:7491: $lt_compile\"" >&5) | |
8057 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
7491 | 8058 | (eval "$lt_compile" 2>conftest.err) |
7492 | 8059 | ac_status=$? |
7493 | 8060 | cat conftest.err >&5 |
7494 | echo "$as_me:7495: \$? = $ac_status" >&5 | |
8061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7495 | 8062 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7496 | 8063 | # The compiler can only warn and ignore the option if not recognized |
7497 | 8064 | # 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 | |
7499 | 8066 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7500 | 8067 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7501 | 8068 | lt_cv_prog_compiler_pic_works=yes |
7524 | 8091 | |
7525 | 8092 | |
7526 | 8093 | |
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
7527 | 8099 | # |
7528 | 8100 | # Check to make sure the static flag actually works. |
7529 | 8101 | # |
7530 | 8102 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
7531 | 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7532 | 8104 | $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 : | |
7534 | 8106 | $as_echo_n "(cached) " >&6 |
7535 | 8107 | else |
7536 | 8108 | lt_cv_prog_compiler_static_works=no |
7543 | 8115 | if test -s conftest.err; then |
7544 | 8116 | # Append any errors to the config.log. |
7545 | 8117 | 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 | |
7547 | 8119 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7548 | 8120 | if diff conftest.exp conftest.er2 >/dev/null; then |
7549 | 8121 | lt_cv_prog_compiler_static_works=yes |
7573 | 8145 | |
7574 | 8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7575 | 8147 | $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 : | |
7577 | 8149 | $as_echo_n "(cached) " >&6 |
7578 | 8150 | else |
7579 | 8151 | lt_cv_prog_compiler_c_o=no |
7592 | 8164 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7593 | 8165 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7594 | 8166 | -e 's:$: $lt_compiler_flag:'` |
7595 | (eval echo "\"\$as_me:7596: $lt_compile\"" >&5) | |
8167 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
7596 | 8168 | (eval "$lt_compile" 2>out/conftest.err) |
7597 | 8169 | ac_status=$? |
7598 | 8170 | cat out/conftest.err >&5 |
7599 | echo "$as_me:7600: \$? = $ac_status" >&5 | |
8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7600 | 8172 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7601 | 8173 | then |
7602 | 8174 | # The compiler can only warn and ignore the option if not recognized |
7603 | 8175 | # 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 | |
7605 | 8177 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7606 | 8178 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7607 | 8179 | lt_cv_prog_compiler_c_o=yes |
7628 | 8200 | |
7629 | 8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7630 | 8202 | $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 : | |
7632 | 8204 | $as_echo_n "(cached) " >&6 |
7633 | 8205 | else |
7634 | 8206 | lt_cv_prog_compiler_c_o=no |
7647 | 8219 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7648 | 8220 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7649 | 8221 | -e 's:$: $lt_compiler_flag:'` |
7650 | (eval echo "\"\$as_me:7651: $lt_compile\"" >&5) | |
8222 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
7651 | 8223 | (eval "$lt_compile" 2>out/conftest.err) |
7652 | 8224 | ac_status=$? |
7653 | 8225 | cat out/conftest.err >&5 |
7654 | echo "$as_me:7655: \$? = $ac_status" >&5 | |
8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7655 | 8227 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7656 | 8228 | then |
7657 | 8229 | # The compiler can only warn and ignore the option if not recognized |
7658 | 8230 | # 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 | |
7660 | 8232 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7661 | 8233 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7662 | 8234 | lt_cv_prog_compiler_c_o=yes |
7722 | 8294 | hardcode_direct=no |
7723 | 8295 | hardcode_direct_absolute=no |
7724 | 8296 | hardcode_libdir_flag_spec= |
7725 | hardcode_libdir_flag_spec_ld= | |
7726 | 8297 | hardcode_libdir_separator= |
7727 | 8298 | hardcode_minus_L=no |
7728 | 8299 | hardcode_shlibpath_var=unsupported |
7766 | 8337 | openbsd*) |
7767 | 8338 | with_gnu_ld=no |
7768 | 8339 | ;; |
7769 | linux* | k*bsd*-gnu) | |
7770 | link_all_deplibs=no | |
7771 | ;; | |
7772 | 8340 | esac |
7773 | 8341 | |
7774 | 8342 | 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 | |
7775 | 8347 | 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 | |
7776 | 8370 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7777 | 8371 | wlarc='${wl}' |
7778 | 8372 | |
7806 | 8400 | ld_shlibs=no |
7807 | 8401 | cat <<_LT_EOF 1>&2 |
7808 | 8402 | |
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 | |
7810 | 8404 | *** to be unable to reliably create shared libraries on AIX. |
7811 | 8405 | *** 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. | |
7814 | 8409 | |
7815 | 8410 | _LT_EOF |
7816 | 8411 | fi |
7846 | 8441 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7847 | 8442 | # as there is no search path for DLLs. |
7848 | 8443 | hardcode_libdir_flag_spec='-L$libdir' |
8444 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
7849 | 8445 | allow_undefined_flag=unsupported |
7850 | 8446 | always_export_symbols=no |
7851 | 8447 | 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' | |
7853 | 8450 | |
7854 | 8451 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
7855 | 8452 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7867 | 8464 | fi |
7868 | 8465 | ;; |
7869 | 8466 | |
8467 | haiku*) | |
8468 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8469 | link_all_deplibs=yes | |
8470 | ;; | |
8471 | ||
7870 | 8472 | interix[3-9]*) |
7871 | 8473 | hardcode_direct=no |
7872 | 8474 | hardcode_shlibpath_var=no |
7892 | 8494 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
7893 | 8495 | && test "$tmp_diet" = no |
7894 | 8496 | then |
7895 | tmp_addflag= | |
8497 | tmp_addflag=' $pic_flag' | |
7896 | 8498 | tmp_sharedflag='-shared' |
7897 | 8499 | case $cc_basename,$host_cpu in |
7898 | 8500 | 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' | |
7900 | 8502 | tmp_addflag=' $pic_flag' |
7901 | 8503 | ;; |
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' | |
7904 | 8507 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7905 | 8508 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7906 | 8509 | tmp_addflag=' -i_dynamic' ;; |
7911 | 8514 | lf95*) # Lahey Fortran 8.1 |
7912 | 8515 | whole_archive_flag_spec= |
7913 | 8516 | 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) | |
7915 | 8518 | tmp_sharedflag='-qmkshrobj' |
7916 | 8519 | 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 | ;; | |
7917 | 8524 | esac |
7918 | 8525 | case `$CC -V 2>&1 | sed 5q` in |
7919 | 8526 | *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' | |
7921 | 8528 | compiler_needs_object=yes |
7922 | 8529 | tmp_sharedflag='-G' ;; |
7923 | 8530 | *Sun\ F*) # Sun Fortran 8.3 |
7933 | 8540 | fi |
7934 | 8541 | |
7935 | 8542 | case $cc_basename in |
7936 | xlf*) | |
8543 | xlf* | bgf* | bgxlf* | mpixlf*) | |
7937 | 8544 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
7938 | 8545 | 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' | |
7942 | 8548 | if test "x$supports_anon_versioning" = xyes; then |
7943 | 8549 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
7944 | 8550 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7945 | 8551 | 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' | |
7947 | 8553 | fi |
7948 | 8554 | ;; |
7949 | 8555 | esac |
7952 | 8558 | fi |
7953 | 8559 | ;; |
7954 | 8560 | |
7955 | netbsd* | netbsdelf*-gnu) | |
8561 | netbsd*) | |
7956 | 8562 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
7957 | 8563 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7958 | 8564 | wlarc= |
7959 | 8565 | 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' | |
7962 | 8568 | fi |
7963 | 8569 | ;; |
7964 | 8570 | |
7976 | 8582 | |
7977 | 8583 | _LT_EOF |
7978 | 8584 | 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' | |
7981 | 8587 | else |
7982 | 8588 | ld_shlibs=no |
7983 | 8589 | fi |
8023 | 8629 | |
8024 | 8630 | *) |
8025 | 8631 | 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' | |
8028 | 8634 | else |
8029 | 8635 | ld_shlibs=no |
8030 | 8636 | fi |
8064 | 8670 | else |
8065 | 8671 | # If we're using GNU nm, then we don't want the "-C" option. |
8066 | 8672 | # -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". | |
8067 | 8675 | 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' | |
8069 | 8677 | else |
8070 | 8678 | 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' |
8071 | 8679 | fi |
8127 | 8735 | if test "$aix_use_runtimelinking" = yes; then |
8128 | 8736 | shared_flag="$shared_flag "'${wl}-G' |
8129 | 8737 | fi |
8130 | link_all_deplibs=no | |
8131 | 8738 | else |
8132 | 8739 | # not using gcc |
8133 | 8740 | if test "$host_cpu" = ia64; then |
8153 | 8760 | allow_undefined_flag='-berok' |
8154 | 8761 | # Determine the default libpath from the value encoded in an |
8155 | 8762 | # 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 | |
8157 | 8770 | /* end confdefs.h. */ |
8158 | 8771 | |
8159 | 8772 | int |
8166 | 8779 | _ACEOF |
8167 | 8780 | if ac_fn_c_try_link "$LINENO"; then : |
8168 | 8781 | |
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 | |
8181 | 8794 | fi |
8182 | 8795 | rm -f core conftest.err conftest.$ac_objext \ |
8183 | 8796 | 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 | |
8185 | 8805 | |
8186 | 8806 | 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" | |
8188 | 8808 | else |
8189 | 8809 | if test "$host_cpu" = ia64; then |
8190 | 8810 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8193 | 8813 | else |
8194 | 8814 | # Determine the default libpath from the value encoded in an |
8195 | 8815 | # 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 | |
8197 | 8823 | /* end confdefs.h. */ |
8198 | 8824 | |
8199 | 8825 | int |
8206 | 8832 | _ACEOF |
8207 | 8833 | if ac_fn_c_try_link "$LINENO"; then : |
8208 | 8834 | |
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 | |
8221 | 8847 | fi |
8222 | 8848 | rm -f core conftest.err conftest.$ac_objext \ |
8223 | 8849 | 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 | |
8225 | 8858 | |
8226 | 8859 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8227 | 8860 | # Warning - without using the other run time loading flags, |
8228 | 8861 | # -berok will link without error, but may produce a broken library. |
8229 | 8862 | no_undefined_flag=' ${wl}-bernotok' |
8230 | 8863 | 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 | |
8233 | 8871 | archive_cmds_need_lc=yes |
8234 | 8872 | # This is similar to how AIX traditionally builds its shared libraries. |
8235 | 8873 | 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' |
8261 | 8899 | # Microsoft Visual C++. |
8262 | 8900 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8263 | 8901 | # 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 | |
8278 | 8960 | ;; |
8279 | 8961 | |
8280 | 8962 | darwin* | rhapsody*) |
8284 | 8966 | hardcode_direct=no |
8285 | 8967 | hardcode_automatic=yes |
8286 | 8968 | 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 | |
8288 | 8975 | link_all_deplibs=yes |
8289 | 8976 | allow_undefined_flag="$_lt_dar_allow_undefined" |
8290 | 8977 | case $cc_basename in |
8292 | 8979 | *) _lt_dar_can_shared=$GCC ;; |
8293 | 8980 | esac |
8294 | 8981 | if test "$_lt_dar_can_shared" = "yes"; then |
8295 | output_verbose_link_cmd=echo | |
8982 | output_verbose_link_cmd=func_echo_all | |
8296 | 8983 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
8297 | 8984 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
8298 | 8985 | 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}" |
8308 | 8995 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8309 | 8996 | hardcode_libdir_flag_spec='-L$libdir' |
8310 | 8997 | hardcode_shlibpath_var=no |
8311 | ;; | |
8312 | ||
8313 | freebsd1*) | |
8314 | ld_shlibs=no | |
8315 | 8998 | ;; |
8316 | 8999 | |
8317 | 9000 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8326 | 9009 | ;; |
8327 | 9010 | |
8328 | 9011 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8329 | freebsd2*) | |
9012 | freebsd2.*) | |
8330 | 9013 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8331 | 9014 | hardcode_direct=yes |
8332 | 9015 | hardcode_minus_L=yes |
8335 | 9018 | |
8336 | 9019 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8337 | 9020 | 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' | |
8339 | 9022 | hardcode_libdir_flag_spec='-R$libdir' |
8340 | 9023 | hardcode_direct=yes |
8341 | 9024 | hardcode_shlibpath_var=no |
8343 | 9026 | |
8344 | 9027 | hpux9*) |
8345 | 9028 | 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' | |
8347 | 9030 | else |
8348 | 9031 | 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' |
8349 | 9032 | fi |
8358 | 9041 | ;; |
8359 | 9042 | |
8360 | 9043 | 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' | |
8363 | 9046 | else |
8364 | 9047 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8365 | 9048 | fi |
8366 | 9049 | if test "$with_gnu_ld" = no; then |
8367 | 9050 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8368 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8369 | 9051 | hardcode_libdir_separator=: |
8370 | 9052 | hardcode_direct=yes |
8371 | 9053 | hardcode_direct_absolute=yes |
8377 | 9059 | ;; |
8378 | 9060 | |
8379 | 9061 | hpux11*) |
8380 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9062 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
8381 | 9063 | case $host_cpu in |
8382 | 9064 | hppa*64*) |
8383 | 9065 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8384 | 9066 | ;; |
8385 | 9067 | 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' | |
8387 | 9069 | ;; |
8388 | 9070 | *) |
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' | |
8390 | 9072 | ;; |
8391 | 9073 | esac |
8392 | 9074 | else |
8398 | 9080 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8399 | 9081 | ;; |
8400 | 9082 | *) |
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 | ||
8402 | 9123 | ;; |
8403 | 9124 | esac |
8404 | 9125 | fi |
8426 | 9147 | |
8427 | 9148 | irix5* | irix6* | nonstopux*) |
8428 | 9149 | 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' | |
8430 | 9151 | # Try to use the -exported_symbol ld option, if it does not |
8431 | 9152 | # work, assume that -exports_file does not work either and |
8432 | 9153 | # 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 | |
8436 | 9163 | /* end confdefs.h. */ |
8437 | int foo(void) {} | |
9164 | int foo (void) { return 0; } | |
8438 | 9165 | _ACEOF |
8439 | 9166 | 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 | |
8442 | 9170 | fi |
8443 | 9171 | rm -f core conftest.err conftest.$ac_objext \ |
8444 | 9172 | 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 | |
8446 | 9180 | 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' | |
8449 | 9183 | fi |
8450 | 9184 | archive_cmds_need_lc='no' |
8451 | 9185 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8454 | 9188 | link_all_deplibs=yes |
8455 | 9189 | ;; |
8456 | 9190 | |
8457 | netbsd* | netbsdelf*-gnu) | |
9191 | netbsd*) | |
8458 | 9192 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8459 | 9193 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8460 | 9194 | else |
8507 | 9241 | hardcode_libdir_flag_spec='-L$libdir' |
8508 | 9242 | hardcode_minus_L=yes |
8509 | 9243 | 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' | |
8511 | 9245 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8512 | 9246 | ;; |
8513 | 9247 | |
8514 | 9248 | osf3*) |
8515 | 9249 | if test "$GCC" = yes; then |
8516 | 9250 | 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' | |
8518 | 9252 | else |
8519 | 9253 | 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' | |
8521 | 9255 | fi |
8522 | 9256 | archive_cmds_need_lc='no' |
8523 | 9257 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8527 | 9261 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8528 | 9262 | if test "$GCC" = yes; then |
8529 | 9263 | 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' | |
8531 | 9265 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8532 | 9266 | else |
8533 | 9267 | 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' | |
8535 | 9269 | 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' | |
8537 | 9271 | |
8538 | 9272 | # Both c and cxx compiler support -rpath directly |
8539 | 9273 | hardcode_libdir_flag_spec='-rpath $libdir' |
8546 | 9280 | no_undefined_flag=' -z defs' |
8547 | 9281 | if test "$GCC" = yes; then |
8548 | 9282 | 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' | |
8550 | 9284 | 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' | |
8552 | 9286 | else |
8553 | 9287 | case `$CC -V 2>&1` in |
8554 | 9288 | *"Compilers 5.0"*) |
8736 | 9470 | # to ld, don't add -lc before -lgcc. |
8737 | 9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8738 | 9472 | $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 | |
8743 | 9480 | (eval $ac_compile) 2>&5 |
8744 | 9481 | ac_status=$? |
8745 | 9482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8746 | 9483 | 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 | |
8761 | 9498 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8762 | 9499 | ac_status=$? |
8763 | 9500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8764 | 9501 | 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 | |
8777 | 9517 | ;; |
8778 | 9518 | esac |
8779 | 9519 | fi |
8780 | 9520 | ;; |
8781 | 9521 | esac |
8782 | ||
8783 | ||
8784 | ||
8785 | ||
8786 | ||
8787 | 9522 | |
8788 | 9523 | |
8789 | 9524 | |
8944 | 9679 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
8945 | 9680 | *) lt_awk_arg="/^libraries:/" ;; |
8946 | 9681 | 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 | *\;*) | |
8949 | 9689 | # if the path contains ";" then we assume it to be the separator |
8950 | 9690 | # otherwise default to the standard path separator (i.e. ":") - it is |
8951 | 9691 | # assumed that no part of a normal pathname contains ";" but that should |
8952 | 9692 | # 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 | |
8957 | 9699 | # Ok, now we have the path, separated by spaces, we can step through it |
8958 | 9700 | # and add multilib dir if necessary. |
8959 | 9701 | lt_tmp_lt_search_path_spec= |
8966 | 9708 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
8967 | 9709 | fi |
8968 | 9710 | 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 ' | |
8970 | 9712 | BEGIN {RS=" "; FS="/|\n";} { |
8971 | 9713 | lt_foo=""; |
8972 | 9714 | lt_count=0; |
8986 | 9728 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
8987 | 9729 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
8988 | 9730 | }'` |
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` | |
8990 | 9738 | else |
8991 | 9739 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8992 | 9740 | fi |
9012 | 9760 | |
9013 | 9761 | case $host_os in |
9014 | 9762 | aix3*) |
9015 | version_type=linux | |
9763 | version_type=linux # correct to gnu/linux during the next big refactor | |
9016 | 9764 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
9017 | 9765 | shlibpath_var=LIBPATH |
9018 | 9766 | |
9021 | 9769 | ;; |
9022 | 9770 | |
9023 | 9771 | aix[4-9]*) |
9024 | version_type=linux | |
9772 | version_type=linux # correct to gnu/linux during the next big refactor | |
9025 | 9773 | need_lib_prefix=no |
9026 | 9774 | need_version=no |
9027 | 9775 | hardcode_into_libs=yes |
9074 | 9822 | m68k) |
9075 | 9823 | library_names_spec='$libname.ixlibrary $libname.a' |
9076 | 9824 | # 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' | |
9078 | 9826 | ;; |
9079 | 9827 | esac |
9080 | 9828 | ;; |
9086 | 9834 | ;; |
9087 | 9835 | |
9088 | 9836 | bsdi[45]*) |
9089 | version_type=linux | |
9837 | version_type=linux # correct to gnu/linux during the next big refactor | |
9090 | 9838 | need_version=no |
9091 | 9839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9092 | 9840 | soname_spec='${libname}${release}${shared_ext}$major' |
9105 | 9853 | need_version=no |
9106 | 9854 | need_lib_prefix=no |
9107 | 9855 | |
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 | |
9110 | 9859 | library_names_spec='$libname.dll.a' |
9111 | 9860 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
9112 | 9861 | postinstall_cmds='base_file=`basename \${file}`~ |
9127 | 9876 | cygwin*) |
9128 | 9877 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
9129 | 9878 | 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" | |
9131 | 9881 | ;; |
9132 | 9882 | mingw* | cegcc*) |
9133 | 9883 | # MinGW DLLs use traditional 'lib' prefix |
9134 | 9884 | 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 | |
9147 | 9885 | ;; |
9148 | 9886 | pw32*) |
9149 | 9887 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
9150 | 9888 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9151 | 9889 | ;; |
9152 | 9890 | esac |
9891 | dynamic_linker='Win32 ld.exe' | |
9153 | 9892 | ;; |
9154 | 9893 | |
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 | ||
9155 | 9950 | *) |
9951 | # Assume MSVC wrapper | |
9156 | 9952 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
9953 | dynamic_linker='Win32 ld.exe' | |
9157 | 9954 | ;; |
9158 | 9955 | esac |
9159 | dynamic_linker='Win32 ld.exe' | |
9160 | 9956 | # FIXME: first we should search . and the directory the executable is in |
9161 | 9957 | shlibpath_var=PATH |
9162 | 9958 | ;; |
9177 | 9973 | ;; |
9178 | 9974 | |
9179 | 9975 | dgux*) |
9180 | version_type=linux | |
9976 | version_type=linux # correct to gnu/linux during the next big refactor | |
9181 | 9977 | need_lib_prefix=no |
9182 | 9978 | need_version=no |
9183 | 9979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
9184 | 9980 | soname_spec='${libname}${release}${shared_ext}$major' |
9185 | 9981 | shlibpath_var=LD_LIBRARY_PATH |
9186 | ;; | |
9187 | ||
9188 | freebsd1*) | |
9189 | dynamic_linker=no | |
9190 | 9982 | ;; |
9191 | 9983 | |
9192 | 9984 | freebsd* | dragonfly*) |
9196 | 9988 | objformat=`/usr/bin/objformat` |
9197 | 9989 | else |
9198 | 9990 | case $host_os in |
9199 | freebsd[123]*) objformat=aout ;; | |
9991 | freebsd[23].*) objformat=aout ;; | |
9200 | 9992 | *) objformat=elf ;; |
9201 | 9993 | esac |
9202 | 9994 | fi |
9214 | 10006 | esac |
9215 | 10007 | shlibpath_var=LD_LIBRARY_PATH |
9216 | 10008 | case $host_os in |
9217 | freebsd2*) | |
10009 | freebsd2.*) | |
9218 | 10010 | shlibpath_overrides_runpath=yes |
9219 | 10011 | ;; |
9220 | 10012 | freebsd3.[01]* | freebsdelf3.[01]*) |
9234 | 10026 | ;; |
9235 | 10027 | |
9236 | 10028 | gnu*) |
9237 | version_type=linux | |
10029 | version_type=linux # correct to gnu/linux during the next big refactor | |
9238 | 10030 | need_lib_prefix=no |
9239 | 10031 | need_version=no |
9240 | 10032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
9241 | 10033 | soname_spec='${libname}${release}${shared_ext}$major' |
9242 | 10034 | 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' | |
9243 | 10049 | hardcode_into_libs=yes |
9244 | 10050 | ;; |
9245 | 10051 | |
9285 | 10091 | soname_spec='${libname}${release}${shared_ext}$major' |
9286 | 10092 | ;; |
9287 | 10093 | 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, ... | |
9289 | 10095 | postinstall_cmds='chmod 555 $lib' |
10096 | # or fails outright, so override atomically: | |
10097 | install_override_mode=555 | |
9290 | 10098 | ;; |
9291 | 10099 | |
9292 | 10100 | interix[3-9]*) |
9293 | version_type=linux | |
10101 | version_type=linux # correct to gnu/linux during the next big refactor | |
9294 | 10102 | need_lib_prefix=no |
9295 | 10103 | need_version=no |
9296 | 10104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9306 | 10114 | nonstopux*) version_type=nonstopux ;; |
9307 | 10115 | *) |
9308 | 10116 | 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 | |
9310 | 10118 | else |
9311 | 10119 | version_type=irix |
9312 | 10120 | fi ;; |
9343 | 10151 | dynamic_linker=no |
9344 | 10152 | ;; |
9345 | 10153 | |
9346 | # This must be Linux ELF. | |
10154 | # This must be glibc/ELF. | |
9347 | 10155 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9348 | version_type=linux | |
10156 | version_type=linux # correct to gnu/linux during the next big refactor | |
9349 | 10157 | need_lib_prefix=no |
9350 | 10158 | need_version=no |
9351 | 10159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9353 | 10161 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9354 | 10162 | shlibpath_var=LD_LIBRARY_PATH |
9355 | 10163 | shlibpath_overrides_runpath=no |
10164 | ||
9356 | 10165 | # 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 | |
9362 | 10175 | /* end confdefs.h. */ |
9363 | 10176 | |
9364 | 10177 | int |
9371 | 10184 | _ACEOF |
9372 | 10185 | if ac_fn_c_try_link "$LINENO"; then : |
9373 | 10186 | 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 | |
9375 | 10188 | fi |
9376 | 10189 | fi |
9377 | 10190 | rm -f core conftest.err conftest.$ac_objext \ |
9378 | 10191 | 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 | |
9381 | 10198 | |
9382 | 10199 | # This implies no fast_install, which is unacceptable. |
9383 | 10200 | # Some rework will be needed to allow for fast_install |
9386 | 10203 | |
9387 | 10204 | # Append ld.so.conf contents to the search path |
9388 | 10205 | 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' ' '` | |
9390 | 10207 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
9391 | 10208 | fi |
9392 | 10209 | |
9397 | 10214 | # people can always --disable-shared, the test was removed, and we |
9398 | 10215 | # assume the GNU/Linux dynamic linker is in use. |
9399 | 10216 | 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' | |
9412 | 10217 | ;; |
9413 | 10218 | |
9414 | 10219 | netbsd*) |
9430 | 10235 | ;; |
9431 | 10236 | |
9432 | 10237 | newsos6) |
9433 | version_type=linux | |
10238 | version_type=linux # correct to gnu/linux during the next big refactor | |
9434 | 10239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9435 | 10240 | shlibpath_var=LD_LIBRARY_PATH |
9436 | 10241 | shlibpath_overrides_runpath=yes |
9499 | 10304 | ;; |
9500 | 10305 | |
9501 | 10306 | solaris*) |
9502 | version_type=linux | |
10307 | version_type=linux # correct to gnu/linux during the next big refactor | |
9503 | 10308 | need_lib_prefix=no |
9504 | 10309 | need_version=no |
9505 | 10310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9524 | 10329 | ;; |
9525 | 10330 | |
9526 | 10331 | sysv4 | sysv4.3*) |
9527 | version_type=linux | |
10332 | version_type=linux # correct to gnu/linux during the next big refactor | |
9528 | 10333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9529 | 10334 | soname_spec='${libname}${release}${shared_ext}$major' |
9530 | 10335 | shlibpath_var=LD_LIBRARY_PATH |
9548 | 10353 | |
9549 | 10354 | sysv4*MP*) |
9550 | 10355 | if test -d /usr/nec ;then |
9551 | version_type=linux | |
10356 | version_type=linux # correct to gnu/linux during the next big refactor | |
9552 | 10357 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9553 | 10358 | soname_spec='$libname${shared_ext}.$major' |
9554 | 10359 | shlibpath_var=LD_LIBRARY_PATH |
9579 | 10384 | |
9580 | 10385 | tpf*) |
9581 | 10386 | # 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 | |
9583 | 10388 | need_lib_prefix=no |
9584 | 10389 | need_version=no |
9585 | 10390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9589 | 10394 | ;; |
9590 | 10395 | |
9591 | 10396 | uts4*) |
9592 | version_type=linux | |
10397 | version_type=linux # correct to gnu/linux during the next big refactor | |
9593 | 10398 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9594 | 10399 | soname_spec='${libname}${release}${shared_ext}$major' |
9595 | 10400 | shlibpath_var=LD_LIBRARY_PATH |
9614 | 10419 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
9615 | 10420 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
9616 | 10421 | fi |
10422 | ||
10423 | ||
10424 | ||
10425 | ||
10426 | ||
9617 | 10427 | |
9618 | 10428 | |
9619 | 10429 | |
9773 | 10583 | # if libdl is installed we need to link against it |
9774 | 10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
9775 | 10585 | $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 : | |
9777 | 10587 | $as_echo_n "(cached) " >&6 |
9778 | 10588 | else |
9779 | 10589 | ac_check_lib_save_LIBS=$LIBS |
9807 | 10617 | fi |
9808 | 10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
9809 | 10619 | $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 : | |
9811 | 10621 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9812 | 10622 | else |
9813 | 10623 | |
9821 | 10631 | |
9822 | 10632 | *) |
9823 | 10633 | 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 : | |
9825 | 10635 | lt_cv_dlopen="shl_load" |
9826 | 10636 | else |
9827 | 10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
9828 | 10638 | $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 : | |
9830 | 10640 | $as_echo_n "(cached) " >&6 |
9831 | 10641 | else |
9832 | 10642 | ac_check_lib_save_LIBS=$LIBS |
9860 | 10670 | fi |
9861 | 10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
9862 | 10672 | $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 : | |
9864 | 10674 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
9865 | 10675 | else |
9866 | 10676 | 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 : | |
9868 | 10678 | lt_cv_dlopen="dlopen" |
9869 | 10679 | else |
9870 | 10680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
9871 | 10681 | $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 : | |
9873 | 10683 | $as_echo_n "(cached) " >&6 |
9874 | 10684 | else |
9875 | 10685 | ac_check_lib_save_LIBS=$LIBS |
9903 | 10713 | fi |
9904 | 10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
9905 | 10715 | $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 : | |
9907 | 10717 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9908 | 10718 | else |
9909 | 10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
9910 | 10720 | $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 : | |
9912 | 10722 | $as_echo_n "(cached) " >&6 |
9913 | 10723 | else |
9914 | 10724 | ac_check_lib_save_LIBS=$LIBS |
9942 | 10752 | fi |
9943 | 10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
9944 | 10754 | $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 : | |
9946 | 10756 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9947 | 10757 | else |
9948 | 10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
9949 | 10759 | $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 : | |
9951 | 10761 | $as_echo_n "(cached) " >&6 |
9952 | 10762 | else |
9953 | 10763 | ac_check_lib_save_LIBS=$LIBS |
9981 | 10791 | fi |
9982 | 10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
9983 | 10793 | $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 : | |
9985 | 10795 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
9986 | 10796 | fi |
9987 | 10797 | |
10022 | 10832 | |
10023 | 10833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10024 | 10834 | $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 : | |
10026 | 10836 | $as_echo_n "(cached) " >&6 |
10027 | 10837 | else |
10028 | 10838 | if test "$cross_compiling" = yes; then : |
10031 | 10841 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10032 | 10842 | lt_status=$lt_dlunknown |
10033 | 10843 | cat > conftest.$ac_ext <<_LT_EOF |
10034 | #line 10035 "configure" | |
10844 | #line $LINENO "configure" | |
10035 | 10845 | #include "confdefs.h" |
10036 | 10846 | |
10037 | 10847 | #if HAVE_DLFCN_H |
10072 | 10882 | # endif |
10073 | 10883 | #endif |
10074 | 10884 | |
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; } | |
10076 | 10892 | int main () |
10077 | 10893 | { |
10078 | 10894 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10081 | 10897 | if (self) |
10082 | 10898 | { |
10083 | 10899 | 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 | } | |
10085 | 10905 | /* dlclose (self); */ |
10086 | 10906 | } |
10087 | 10907 | else |
10118 | 10938 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
10119 | 10939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
10120 | 10940 | $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 : | |
10122 | 10942 | $as_echo_n "(cached) " >&6 |
10123 | 10943 | else |
10124 | 10944 | if test "$cross_compiling" = yes; then : |
10127 | 10947 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10128 | 10948 | lt_status=$lt_dlunknown |
10129 | 10949 | cat > conftest.$ac_ext <<_LT_EOF |
10130 | #line 10131 "configure" | |
10950 | #line $LINENO "configure" | |
10131 | 10951 | #include "confdefs.h" |
10132 | 10952 | |
10133 | 10953 | #if HAVE_DLFCN_H |
10168 | 10988 | # endif |
10169 | 10989 | #endif |
10170 | 10990 | |
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; } | |
10172 | 10998 | int main () |
10173 | 10999 | { |
10174 | 11000 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10177 | 11003 | if (self) |
10178 | 11004 | { |
10179 | 11005 | 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 | } | |
10181 | 11011 | /* dlclose (self); */ |
10182 | 11012 | } |
10183 | 11013 | else |
10346 | 11176 | |
10347 | 11177 | |
10348 | 11178 | |
11179 | ||
11180 | ||
10349 | 11181 | ac_config_commands="$ac_config_commands libtool" |
10350 | 11182 | |
10351 | 11183 | |
10366 | 11198 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
10367 | 11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10368 | 11200 | $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 : | |
10370 | 11202 | $as_echo_n "(cached) " >&6 |
10371 | 11203 | else |
10372 | 11204 | if test -n "$CC"; then |
10406 | 11238 | set dummy gcc; ac_word=$2 |
10407 | 11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10408 | 11240 | $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 : | |
10410 | 11242 | $as_echo_n "(cached) " >&6 |
10411 | 11243 | else |
10412 | 11244 | if test -n "$ac_ct_CC"; then |
10459 | 11291 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
10460 | 11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10461 | 11293 | $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 : | |
10463 | 11295 | $as_echo_n "(cached) " >&6 |
10464 | 11296 | else |
10465 | 11297 | if test -n "$CC"; then |
10499 | 11331 | set dummy cc; ac_word=$2 |
10500 | 11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10501 | 11333 | $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 : | |
10503 | 11335 | $as_echo_n "(cached) " >&6 |
10504 | 11336 | else |
10505 | 11337 | if test -n "$CC"; then |
10558 | 11390 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
10559 | 11391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10560 | 11392 | $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 : | |
10562 | 11394 | $as_echo_n "(cached) " >&6 |
10563 | 11395 | else |
10564 | 11396 | if test -n "$CC"; then |
10602 | 11434 | set dummy $ac_prog; ac_word=$2 |
10603 | 11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10604 | 11436 | $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 : | |
10606 | 11438 | $as_echo_n "(cached) " >&6 |
10607 | 11439 | else |
10608 | 11440 | if test -n "$ac_ct_CC"; then |
10657 | 11489 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
10658 | 11490 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
10659 | 11491 | 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; } | |
10661 | 11493 | |
10662 | 11494 | # Provide some information about the compiler. |
10663 | 11495 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
10686 | 11518 | |
10687 | 11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
10688 | 11520 | $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 : | |
10690 | 11522 | $as_echo_n "(cached) " >&6 |
10691 | 11523 | else |
10692 | 11524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10723 | 11555 | ac_save_CFLAGS=$CFLAGS |
10724 | 11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
10725 | 11557 | $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 : | |
10727 | 11559 | $as_echo_n "(cached) " >&6 |
10728 | 11560 | else |
10729 | 11561 | ac_save_c_werror_flag=$ac_c_werror_flag |
10801 | 11633 | fi |
10802 | 11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
10803 | 11635 | $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 : | |
10805 | 11637 | $as_echo_n "(cached) " >&6 |
10806 | 11638 | else |
10807 | 11639 | ac_cv_prog_cc_c89=no |
10900 | 11732 | |
10901 | 11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
10902 | 11734 | $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 : | |
10904 | 11736 | $as_echo_n "(cached) " >&6 |
10905 | 11737 | else |
10906 | 11738 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
10909 | 11741 | # instance it was reported that on HP-UX the gcc test will end up |
10910 | 11742 | # making a dummy file named `D' -- because `-MD' means `put the output |
10911 | 11743 | # in D'. |
11744 | rm -rf conftest.dir | |
10912 | 11745 | mkdir conftest.dir |
10913 | 11746 | # Copy depcomp to subdir because otherwise we won't find it if we're |
10914 | 11747 | # using a relative directory. |
10968 | 11801 | break |
10969 | 11802 | fi |
10970 | 11803 | ;; |
10971 | msvisualcpp | msvcmsys) | |
11804 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
10972 | 11805 | # This compiler won't grok `-c -o', but also, the minuso test has |
10973 | 11806 | # not run yet. These depmodes are late enough in the game, and |
10974 | 11807 | # so weak that their functioning should not be impacted. |
11091 | 11924 | :end' >>confcache |
11092 | 11925 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
11093 | 11926 | if test -w "$cache_file"; then |
11094 | test "x$cache_file" != "x/dev/null" && | |
11927 | if test "x$cache_file" != "x/dev/null"; then | |
11095 | 11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
11096 | 11929 | $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 | |
11098 | 11942 | else |
11099 | 11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
11100 | 11944 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
11150 | 11994 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11151 | 11995 | fi |
11152 | 11996 | |
11153 | : ${CONFIG_STATUS=./config.status} | |
11997 | : "${CONFIG_STATUS=./config.status}" | |
11154 | 11998 | ac_write_fail=0 |
11155 | 11999 | ac_clean_files_save=$ac_clean_files |
11156 | 12000 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
11251 | 12095 | IFS=" "" $as_nl" |
11252 | 12096 | |
11253 | 12097 | # Find who we are. Look in the path if we contain no directory separator. |
12098 | as_myself= | |
11254 | 12099 | case $0 in #(( |
11255 | 12100 | *[\\/]* ) as_myself=$0 ;; |
11256 | 12101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11557 | 12402 | # report actual input values of CONFIG_FILES etc. instead of their |
11558 | 12403 | # values after options handling. |
11559 | 12404 | 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 | |
11562 | 12407 | |
11563 | 12408 | CONFIG_FILES = $CONFIG_FILES |
11564 | 12409 | CONFIG_HEADERS = $CONFIG_HEADERS |
11623 | 12468 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11624 | 12469 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
11625 | 12470 | 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, | |
11628 | 12473 | with options \\"\$ac_cs_config\\" |
11629 | 12474 | |
11630 | 12475 | Copyright (C) 2010 Free Software Foundation, Inc. |
11752 | 12597 | sed_quote_subst='$sed_quote_subst' |
11753 | 12598 | double_quote_subst='$double_quote_subst' |
11754 | 12599 | 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"`' | |
11873 | 12730 | |
11874 | 12731 | LTCC='$LTCC' |
11875 | 12732 | LTCFLAGS='$LTCFLAGS' |
11876 | 12733 | compiler='$compiler_DEFAULT' |
11877 | 12734 | |
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 | ||
11878 | 12743 | # Quote evaled strings. |
11879 | for var in SED \ | |
12744 | for var in SHELL \ | |
12745 | ECHO \ | |
12746 | PATH_SEPARATOR \ | |
12747 | SED \ | |
11880 | 12748 | GREP \ |
11881 | 12749 | EGREP \ |
11882 | 12750 | FGREP \ |
11889 | 12757 | OBJDUMP \ |
11890 | 12758 | deplibs_check_method \ |
11891 | 12759 | file_magic_cmd \ |
12760 | file_magic_glob \ | |
12761 | want_nocaseglob \ | |
12762 | DLLTOOL \ | |
12763 | sharedlib_from_linklib_cmd \ | |
11892 | 12764 | AR \ |
11893 | 12765 | AR_FLAGS \ |
12766 | archiver_list_spec \ | |
11894 | 12767 | STRIP \ |
11895 | 12768 | RANLIB \ |
11896 | 12769 | CC \ |
11900 | 12773 | lt_cv_sys_global_symbol_to_cdecl \ |
11901 | 12774 | lt_cv_sys_global_symbol_to_c_name_address \ |
11902 | 12775 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
11903 | SHELL \ | |
11904 | ECHO \ | |
12776 | nm_file_list_spec \ | |
11905 | 12777 | lt_prog_compiler_no_builtin_flag \ |
12778 | lt_prog_compiler_pic \ | |
11906 | 12779 | lt_prog_compiler_wl \ |
11907 | lt_prog_compiler_pic \ | |
11908 | 12780 | lt_prog_compiler_static \ |
11909 | 12781 | lt_cv_prog_compiler_c_o \ |
11910 | 12782 | need_locks \ |
12783 | MANIFEST_TOOL \ | |
11911 | 12784 | DSYMUTIL \ |
11912 | 12785 | NMEDIT \ |
11913 | 12786 | LIPO \ |
11921 | 12794 | allow_undefined_flag \ |
11922 | 12795 | no_undefined_flag \ |
11923 | 12796 | hardcode_libdir_flag_spec \ |
11924 | hardcode_libdir_flag_spec_ld \ | |
11925 | 12797 | hardcode_libdir_separator \ |
11926 | fix_srcfile_path \ | |
11927 | 12798 | exclude_expsyms \ |
11928 | 12799 | include_expsyms \ |
11929 | 12800 | file_list_spec \ |
11931 | 12802 | libname_spec \ |
11932 | 12803 | library_names_spec \ |
11933 | 12804 | soname_spec \ |
12805 | install_override_mode \ | |
11934 | 12806 | finish_eval \ |
11935 | 12807 | old_striplib \ |
11936 | 12808 | striplib; do |
11937 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12809 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
11938 | 12810 | *[\\\\\\\`\\"\\\$]*) |
11939 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12811 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
11940 | 12812 | ;; |
11941 | 12813 | *) |
11942 | 12814 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
11958 | 12830 | module_expsym_cmds \ |
11959 | 12831 | export_symbols_cmds \ |
11960 | 12832 | prelink_cmds \ |
12833 | postlink_cmds \ | |
11961 | 12834 | postinstall_cmds \ |
11962 | 12835 | postuninstall_cmds \ |
11963 | 12836 | finish_cmds \ |
11964 | 12837 | sys_lib_search_path_spec \ |
11965 | 12838 | sys_lib_dlsearch_path_spec; do |
11966 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
12839 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
11967 | 12840 | *[\\\\\\\`\\"\\\$]*) |
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\\"\\\`\\\\\\"" | |
11969 | 12842 | ;; |
11970 | 12843 | *) |
11971 | 12844 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
11972 | 12845 | ;; |
11973 | 12846 | esac |
11974 | 12847 | 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 | |
11981 | 12848 | |
11982 | 12849 | ac_aux_dir='$ac_aux_dir' |
11983 | 12850 | xsi_shell='$xsi_shell' |
12015 | 12882 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
12016 | 12883 | "mtdev.pc") CONFIG_FILES="$CONFIG_FILES mtdev.pc" ;; |
12017 | 12884 | |
12018 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | |
12885 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
12019 | 12886 | esac |
12020 | 12887 | done |
12021 | 12888 | |
12038 | 12905 | # after its creation but before its name has been assigned to `$tmp'. |
12039 | 12906 | $debug || |
12040 | 12907 | { |
12041 | tmp= | |
12908 | tmp= ac_tmp= | |
12042 | 12909 | 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 | |
12044 | 12912 | ' 0 |
12045 | 12913 | trap 'as_fn_exit 1' 1 2 13 15 |
12046 | 12914 | } |
12048 | 12916 | |
12049 | 12917 | { |
12050 | 12918 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
12051 | test -n "$tmp" && test -d "$tmp" | |
12919 | test -d "$tmp" | |
12052 | 12920 | } || |
12053 | 12921 | { |
12054 | 12922 | tmp=./conf$$-$RANDOM |
12055 | 12923 | (umask 077 && mkdir "$tmp") |
12056 | 12924 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
12925 | ac_tmp=$tmp | |
12057 | 12926 | |
12058 | 12927 | # Set up the scripts for CONFIG_FILES section. |
12059 | 12928 | # No need to generate them if there are no CONFIG_FILES. |
12075 | 12944 | ac_cs_awk_cr=$ac_cr |
12076 | 12945 | fi |
12077 | 12946 | |
12078 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
12947 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
12079 | 12948 | _ACEOF |
12080 | 12949 | |
12081 | 12950 | |
12103 | 12972 | rm -f conf$$subs.sh |
12104 | 12973 | |
12105 | 12974 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12106 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
12975 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
12107 | 12976 | _ACEOF |
12108 | 12977 | sed -n ' |
12109 | 12978 | h |
12151 | 13020 | rm -f conf$$subs.awk |
12152 | 13021 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12153 | 13022 | _ACAWK |
12154 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13023 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
12155 | 13024 | for (key in S) S_is_set[key] = 1 |
12156 | 13025 | FS = "" |
12157 | 13026 | |
12183 | 13052 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
12184 | 13053 | else |
12185 | 13054 | cat |
12186 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13055 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
12187 | 13056 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
12188 | 13057 | _ACEOF |
12189 | 13058 | |
12217 | 13086 | # No need to generate them if there are no CONFIG_HEADERS. |
12218 | 13087 | # This happens for instance with `./config.status Makefile'. |
12219 | 13088 | if test -n "$CONFIG_HEADERS"; then |
12220 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13089 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
12221 | 13090 | BEGIN { |
12222 | 13091 | _ACEOF |
12223 | 13092 | |
12229 | 13098 | # handling of long lines. |
12230 | 13099 | ac_delim='%!_!# ' |
12231 | 13100 | 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 | |
12234 | 13103 | break |
12235 | 13104 | elif $ac_last_try; then |
12236 | 13105 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
12331 | 13200 | esac |
12332 | 13201 | case $ac_mode$ac_tag in |
12333 | 13202 | :[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;; | |
12335 | 13204 | :[FH]-) ac_tag=-:-;; |
12336 | 13205 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
12337 | 13206 | esac |
12350 | 13219 | for ac_f |
12351 | 13220 | do |
12352 | 13221 | case $ac_f in |
12353 | -) ac_f="$tmp/stdin";; | |
13222 | -) ac_f="$ac_tmp/stdin";; | |
12354 | 13223 | *) # Look for the file first in the build tree, then in the source tree |
12355 | 13224 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
12356 | 13225 | # because $ac_f cannot contain `:'. |
12359 | 13228 | [\\/$]*) false;; |
12360 | 13229 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
12361 | 13230 | 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;; | |
12363 | 13232 | esac |
12364 | 13233 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
12365 | 13234 | as_fn_append ac_file_inputs " '$ac_f'" |
12385 | 13254 | esac |
12386 | 13255 | |
12387 | 13256 | 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 ;; | |
12390 | 13259 | esac |
12391 | 13260 | ;; |
12392 | 13261 | esac |
12522 | 13391 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
12523 | 13392 | $ac_datarootdir_hack |
12524 | 13393 | " |
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 | |
12527 | 13396 | |
12528 | 13397 | 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"; } && | |
12531 | 13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12532 | 13402 | which seems to be undefined. Please make sure it is defined" >&5 |
12533 | 13403 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12534 | 13404 | which seems to be undefined. Please make sure it is defined" >&2;} |
12535 | 13405 | |
12536 | rm -f "$tmp/stdin" | |
13406 | rm -f "$ac_tmp/stdin" | |
12537 | 13407 | 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";; | |
12540 | 13410 | esac \ |
12541 | 13411 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
12542 | 13412 | ;; |
12547 | 13417 | if test x"$ac_file" != x-; then |
12548 | 13418 | { |
12549 | 13419 | $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" \ | |
12552 | 13422 | || 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 | |
12554 | 13424 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
12555 | 13425 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
12556 | 13426 | else |
12557 | 13427 | rm -f "$ac_file" |
12558 | mv "$tmp/config.h" "$ac_file" \ | |
13428 | mv "$ac_tmp/config.h" "$ac_file" \ | |
12559 | 13429 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
12560 | 13430 | fi |
12561 | 13431 | else |
12562 | 13432 | $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" \ | |
12564 | 13434 | || as_fn_error $? "could not create -" "$LINENO" 5 |
12565 | 13435 | fi |
12566 | 13436 | # Compute "$ac_file"'s index in $config_headers. |
12722 | 13592 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
12723 | 13593 | # |
12724 | 13594 | # 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. | |
12726 | 13597 | # Written by Gordon Matzigkeit, 1996 |
12727 | 13598 | # |
12728 | 13599 | # This file is part of GNU Libtool. |
12770 | 13641 | # Whether or not to optimize for fast installation. |
12771 | 13642 | fast_install=$enable_fast_install |
12772 | 13643 | |
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 | ||
12773 | 13653 | # The host system. |
12774 | 13654 | host_alias=$host_alias |
12775 | 13655 | host=$host |
12819 | 13699 | # turn newlines into spaces. |
12820 | 13700 | NL2SP=$lt_lt_NL2SP |
12821 | 13701 | |
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 | |
12825 | 13707 | |
12826 | 13708 | # An object symbol dumper. |
12827 | 13709 | OBJDUMP=$lt_OBJDUMP |
12829 | 13711 | # Method to check whether dependent libraries are shared objects. |
12830 | 13712 | deplibs_check_method=$lt_deplibs_check_method |
12831 | 13713 | |
12832 | # Command to use when deplibs_check_method == "file_magic". | |
13714 | # Command to use when deplibs_check_method = "file_magic". | |
12833 | 13715 | 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 | |
12834 | 13728 | |
12835 | 13729 | # The archiver. |
12836 | 13730 | AR=$lt_AR |
13731 | ||
13732 | # Flags to create an archive. | |
12837 | 13733 | AR_FLAGS=$lt_AR_FLAGS |
13734 | ||
13735 | # How to feed a file listing to the archiver. | |
13736 | archiver_list_spec=$lt_archiver_list_spec | |
12838 | 13737 | |
12839 | 13738 | # A symbol stripping program. |
12840 | 13739 | STRIP=$lt_STRIP |
12844 | 13743 | old_postinstall_cmds=$lt_old_postinstall_cmds |
12845 | 13744 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
12846 | 13745 | |
13746 | # Whether to use a lock for old archive extraction. | |
13747 | lock_old_archive_extraction=$lock_old_archive_extraction | |
13748 | ||
12847 | 13749 | # A C compiler. |
12848 | 13750 | LTCC=$lt_CC |
12849 | 13751 | |
12862 | 13764 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
12863 | 13765 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
12864 | 13766 | |
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 | ||
12865 | 13773 | # The name of the directory that contains temporary libtool files. |
12866 | 13774 | objdir=$objdir |
12867 | 13775 | |
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 | ||
12874 | 13776 | # Used to examine libraries when file_magic_cmd begins with "file". |
12875 | 13777 | MAGIC_CMD=$MAGIC_CMD |
12876 | 13778 | |
12877 | 13779 | # Must we lock files when doing compilation? |
12878 | 13780 | need_locks=$lt_need_locks |
13781 | ||
13782 | # Manifest tool. | |
13783 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
12879 | 13784 | |
12880 | 13785 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
12881 | 13786 | DSYMUTIL=$lt_DSYMUTIL |
12933 | 13838 | # The coded name of the library, if different from the real name. |
12934 | 13839 | soname_spec=$lt_soname_spec |
12935 | 13840 | |
13841 | # Permission mode override for installation of shared libraries. | |
13842 | install_override_mode=$lt_install_override_mode | |
13843 | ||
12936 | 13844 | # Command to use after installation of a shared archive. |
12937 | 13845 | postinstall_cmds=$lt_postinstall_cmds |
12938 | 13846 | |
12972 | 13880 | # The linker used to build libraries. |
12973 | 13881 | LD=$lt_LD |
12974 | 13882 | |
13883 | # How to create reloadable object files. | |
13884 | reload_flag=$lt_reload_flag | |
13885 | reload_cmds=$lt_reload_cmds | |
13886 | ||
12975 | 13887 | # Commands used to build an old-style archive. |
12976 | 13888 | old_archive_cmds=$lt_old_archive_cmds |
12977 | 13889 | |
12984 | 13896 | # Compiler flag to turn off builtin functions. |
12985 | 13897 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
12986 | 13898 | |
13899 | # Additional compiler flags for building library objects. | |
13900 | pic_flag=$lt_lt_prog_compiler_pic | |
13901 | ||
12987 | 13902 | # How to pass a linker flag through the compiler. |
12988 | 13903 | wl=$lt_lt_prog_compiler_wl |
12989 | ||
12990 | # Additional compiler flags for building library objects. | |
12991 | pic_flag=$lt_lt_prog_compiler_pic | |
12992 | 13904 | |
12993 | 13905 | # Compiler flag to prevent dynamic linking. |
12994 | 13906 | link_static_flag=$lt_lt_prog_compiler_static |
13038 | 13950 | # Flag to hardcode \$libdir into a binary during linking. |
13039 | 13951 | # This must work even if \$libdir does not exist |
13040 | 13952 | 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 | |
13045 | 13953 | |
13046 | 13954 | # Whether we need a single "-rpath" flag with a separated argument. |
13047 | 13955 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
13076 | 13984 | # Whether libtool must link a program against all its dependency libraries. |
13077 | 13985 | link_all_deplibs=$link_all_deplibs |
13078 | 13986 | |
13079 | # Fix the shell variable \$srcfile for the compiler. | |
13080 | fix_srcfile_path=$lt_fix_srcfile_path | |
13081 | ||
13082 | 13987 | # Set to "yes" if exported symbols are required. |
13083 | 13988 | always_export_symbols=$always_export_symbols |
13084 | 13989 | |
13093 | 13998 | |
13094 | 13999 | # Commands necessary for linking programs (against libraries) with templates. |
13095 | 14000 | prelink_cmds=$lt_prelink_cmds |
14001 | ||
14002 | # Commands necessary for finishing linking programs. | |
14003 | postlink_cmds=$lt_postlink_cmds | |
13096 | 14004 | |
13097 | 14005 | # Specify filename containing input files. |
13098 | 14006 | file_list_spec=$lt_file_list_spec |
13126 | 14034 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
13127 | 14035 | # text mode, it properly converts lines to CR/LF. This bash problem |
13128 | 14036 | # 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" || | |
13335 | 14200 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
13336 | 14201 | chmod +x "$ofile" |
13337 | 14202 |
0 | 0 | # Initialize Autoconf |
1 | 1 | AC_PREREQ([2.60]) |
2 | 2 | AC_INIT([Multitouch Protocol Translation Library], |
3 | [1.1.0], | |
3 | [1.1.2], | |
4 | 4 | [], |
5 | 5 | [mtdev]) |
6 | 6 | AC_CONFIG_SRCDIR([Makefile.am]) |
67 | 67 | #define ABS_MT_DISTANCE 0x3b /* Contact hover distance */ |
68 | 68 | #endif |
69 | 69 | |
70 | /* includes available in 3.4 */ | |
71 | #ifndef EVIOCGMTSLOTS | |
72 | #define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len) | |
73 | #endif | |
74 | ||
70 | 75 | #define MT_ID_NULL (-1) |
71 | 76 | #define MT_ID_MIN 0 |
72 | 77 | #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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | 3 | # 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. | |
6 | 6 | # This Makefile.in is free software; the Free Software Foundation |
7 | 7 | # gives unlimited permission to copy and/or distribute it, |
8 | 8 | # with or without modifications, as long as this notice is preserved. |
66 | 66 | am__base_list = \ |
67 | 67 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ |
68 | 68 | 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 | } | |
69 | 75 | am__installdirs = "$(DESTDIR)$(libdir)" \ |
70 | 76 | "$(DESTDIR)$(libmtdevincludedir)" |
71 | 77 | LTLIBRARIES = $(lib_LTLIBRARIES) |
110 | 116 | CYGPATH_W = @CYGPATH_W@ |
111 | 117 | DEFS = @DEFS@ |
112 | 118 | DEPDIR = @DEPDIR@ |
119 | DLLTOOL = @DLLTOOL@ | |
113 | 120 | DSYMUTIL = @DSYMUTIL@ |
114 | 121 | DUMPBIN = @DUMPBIN@ |
115 | 122 | ECHO_C = @ECHO_C@ |
135 | 142 | LTLIBOBJS = @LTLIBOBJS@ |
136 | 143 | MAINT = @MAINT@ |
137 | 144 | MAKEINFO = @MAKEINFO@ |
145 | MANIFEST_TOOL = @MANIFEST_TOOL@ | |
138 | 146 | MKDIR_P = @MKDIR_P@ |
139 | 147 | NM = @NM@ |
140 | 148 | NMEDIT = @NMEDIT@ |
160 | 168 | abs_srcdir = @abs_srcdir@ |
161 | 169 | abs_top_builddir = @abs_top_builddir@ |
162 | 170 | abs_top_srcdir = @abs_top_srcdir@ |
171 | ac_ct_AR = @ac_ct_AR@ | |
163 | 172 | ac_ct_CC = @ac_ct_CC@ |
164 | 173 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
165 | 174 | am__include = @am__include@ |
192 | 201 | libexecdir = @libexecdir@ |
193 | 202 | localedir = @localedir@ |
194 | 203 | localstatedir = @localstatedir@ |
195 | lt_ECHO = @lt_ECHO@ | |
196 | 204 | mandir = @mandir@ |
197 | 205 | mkdir_p = @mkdir_p@ |
198 | 206 | oldincludedir = @oldincludedir@ |
297 | 305 | echo "rm -f \"$${dir}/so_locations\""; \ |
298 | 306 | rm -f "$${dir}/so_locations"; \ |
299 | 307 | done |
300 | libmtdev.la: $(libmtdev_la_OBJECTS) $(libmtdev_la_DEPENDENCIES) | |
308 | libmtdev.la: $(libmtdev_la_OBJECTS) $(libmtdev_la_DEPENDENCIES) $(EXTRA_libmtdev_la_DEPENDENCIES) | |
301 | 309 | $(libmtdev_la_LINK) -rpath $(libdir) $(libmtdev_la_OBJECTS) $(libmtdev_la_LIBADD) $(LIBS) |
302 | 310 | |
303 | 311 | mostlyclean-compile: |
355 | 363 | @$(NORMAL_UNINSTALL) |
356 | 364 | @list='$(libmtdevinclude_HEADERS)'; test -n "$(libmtdevincludedir)" || list=; \ |
357 | 365 | 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) | |
361 | 367 | |
362 | 368 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
363 | 369 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
458 | 464 | |
459 | 465 | installcheck: installcheck-am |
460 | 466 | 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 | |
465 | 476 | mostlyclean-generic: |
466 | 477 | |
467 | 478 | clean-generic: |
81 | 81 | abs->fuzz = (abs->maximum - abs->minimum) / sn; |
82 | 82 | } |
83 | 83 | |
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 | ||
84 | 106 | int mtdev_configure(struct mtdev *dev, int fd) |
85 | 107 | { |
86 | 108 | unsigned long absbits[nlongs(ABS_MAX)]; |
117 | 139 | default_fuzz(dev, ABS_MT_WIDTH_MINOR, SN_WIDTH); |
118 | 140 | default_fuzz(dev, ABS_MT_ORIENTATION, SN_ORIENT); |
119 | 141 | |
142 | if (dev->has_slot) | |
143 | mtdev_set_slots(dev, fd); | |
144 | ||
120 | 145 | return 0; |
121 | 146 | } |
122 | 147 |
358 | 358 | |
359 | 359 | int mtdev_open(struct mtdev *dev, int fd) |
360 | 360 | { |
361 | int ret; | |
361 | int ret = -EINVAL; | |
362 | ||
363 | if (!dev || fd < 0) | |
364 | goto error; | |
362 | 365 | ret = mtdev_init(dev); |
363 | 366 | if (ret) |
364 | 367 | goto error; |
365 | 368 | ret = mtdev_configure(dev, fd); |
366 | 369 | if (ret) |
367 | goto mtdev; | |
370 | goto error; | |
368 | 371 | return 0; |
369 | mtdev: | |
372 | ||
373 | error: | |
370 | 374 | mtdev_close(dev); |
371 | error: | |
372 | 375 | return ret; |
373 | 376 | } |
374 | 377 | |
410 | 413 | |
411 | 414 | void mtdev_close(struct mtdev *dev) |
412 | 415 | { |
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 | } | |
415 | 420 | } |
416 | 421 | |
417 | 422 | void mtdev_delete(struct mtdev *dev) |
47 | 47 | int blob_id; |
48 | 48 | int tracking_id; |
49 | 49 | int pressure; |
50 | int distance; | |
50 | 51 | }; |
51 | 52 | |
52 | 53 | 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. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | 3 | # 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. | |
6 | 6 | # This Makefile.in is free software; the Free Software Foundation |
7 | 7 | # gives unlimited permission to copy and/or distribute it, |
8 | 8 | # with or without modifications, as long as this notice is preserved. |
104 | 104 | CYGPATH_W = @CYGPATH_W@ |
105 | 105 | DEFS = @DEFS@ |
106 | 106 | DEPDIR = @DEPDIR@ |
107 | DLLTOOL = @DLLTOOL@ | |
107 | 108 | DSYMUTIL = @DSYMUTIL@ |
108 | 109 | DUMPBIN = @DUMPBIN@ |
109 | 110 | ECHO_C = @ECHO_C@ |
129 | 130 | LTLIBOBJS = @LTLIBOBJS@ |
130 | 131 | MAINT = @MAINT@ |
131 | 132 | MAKEINFO = @MAKEINFO@ |
133 | MANIFEST_TOOL = @MANIFEST_TOOL@ | |
132 | 134 | MKDIR_P = @MKDIR_P@ |
133 | 135 | NM = @NM@ |
134 | 136 | NMEDIT = @NMEDIT@ |
154 | 156 | abs_srcdir = @abs_srcdir@ |
155 | 157 | abs_top_builddir = @abs_top_builddir@ |
156 | 158 | abs_top_srcdir = @abs_top_srcdir@ |
159 | ac_ct_AR = @ac_ct_AR@ | |
157 | 160 | ac_ct_CC = @ac_ct_CC@ |
158 | 161 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
159 | 162 | am__include = @am__include@ |
186 | 189 | libexecdir = @libexecdir@ |
187 | 190 | localedir = @localedir@ |
188 | 191 | localstatedir = @localstatedir@ |
189 | lt_ECHO = @lt_ECHO@ | |
190 | 192 | mandir = @mandir@ |
191 | 193 | mkdir_p = @mkdir_p@ |
192 | 194 | oldincludedir = @oldincludedir@ |
296 | 298 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
297 | 299 | echo " rm -f" $$list; \ |
298 | 300 | 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) | |
300 | 302 | @rm -f mtdev-kernel$(EXEEXT) |
301 | 303 | $(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) | |
303 | 305 | @rm -f mtdev-mapgen$(EXEEXT) |
304 | 306 | $(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) | |
306 | 308 | @rm -f mtdev-matching$(EXEEXT) |
307 | 309 | $(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) | |
309 | 311 | @rm -f mtdev-test$(EXEEXT) |
310 | 312 | $(mtdev_test_LINK) $(mtdev_test_OBJECTS) $(mtdev_test_LDADD) $(LIBS) |
311 | 313 | |
446 | 448 | |
447 | 449 | installcheck: installcheck-am |
448 | 450 | 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 | |
453 | 460 | mostlyclean-generic: |
454 | 461 | |
455 | 462 | clean-generic: |