Merge lp:~indicator-applet-developers/ubuntu/precise/indicator-application/upstream into lp:~ubuntu-desktop/indicator-application/ubuntu

Proposed by Charles Kerr
Status: Merged
Merged at revision: 291
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-application/upstream
Merge into: lp:~ubuntu-desktop/indicator-application/ubuntu
Diff against target: 18972 lines (+9251/-8897)
25 files modified
ChangeLog (+24/-0)
INSTALL (+7/-2)
Makefile.am (+1/-34)
Makefile.am.coverage (+48/-0)
Makefile.in (+50/-41)
aclocal.m4 (+5/-8606)
compile (+183/-16)
config.guess (+31/-18)
config.sub (+39/-26)
configure (+104/-65)
configure.ac (+5/-5)
data/Makefile.in (+5/-2)
debian/changelog (+8/-0)
depcomp (+66/-8)
install-sh (+18/-11)
m4/gcov.m4 (+13/-10)
m4/libtool.m4 (+8001/-0)
m4/ltoptions.m4 (+384/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+98/-0)
missing (+4/-49)
src/Makefile.in (+5/-2)
src/indicator-application.c (+1/-0)
tests/Makefile.in (+5/-2)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-application/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+101612@code.launchpad.net

Description of the change

indicator-application 0.5.0

 * Fix parent pointer object for unity-panel-service
 * Improved gcov rules in our Automake files

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2012-03-21 22:13:03 +0000
3+++ ChangeLog 2012-04-11 17:27:20 +0000
4@@ -1,5 +1,29 @@
5 # Generated by Makefile. Do not edit.
6
7+2012-04-11 Charles Kerr <charles.kerr@canonical.com>
8+
9+ 0.5.0
10+
11+2012-04-11 Charles Kerr <charles.kerr@canonical.com>
12+
13+ merge lp:~allanlesage/indicator-application/TDD to improve our automake gcov rules
14+
15+2012-03-27 Allan LeSage <allanlesage@gmail.com>
16+
17+ Pedantic name change for gcovr xml coverage results.
18+
19+2012-03-27 Allan LeSage <allanlesage@gmail.com>
20+
21+ Removed gcovr dependency, moved coverage targets to own makefile, cleaning up *.gcno.
22+
23+2012-04-10 Charles Kerr <charles.kerr@canonical.com>
24+
25+ merge lp:~ted/indicator-application/parent-pointer to add in the parent object pointer for unity-panel-service.
26+
27+2012-04-09 Ted Gould <ted@gould.cx>
28+
29+ Set the parent object pointer to help unity-panel-service
30+
31 2012-03-21 Ted Gould <ted@gould.cx>
32
33 0.4.94
34
35=== modified file 'INSTALL'
36--- INSTALL 2012-03-21 22:13:03 +0000
37+++ INSTALL 2012-04-11 17:27:20 +0000
38@@ -1,8 +1,8 @@
39 Installation Instructions
40 *************************
41
42-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
43-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
44+Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
45+Inc.
46
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright
49@@ -226,6 +226,11 @@
50
51 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
52
53+ HP-UX `make' updates targets which have the same time stamps as
54+their prerequisites, which makes it generally unusable when shipped
55+generated files such as `configure' are involved. Use GNU `make'
56+instead.
57+
58 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
59 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
60 a workaround. If GNU CC is not installed, it is therefore recommended
61
62=== modified file 'Makefile.am'
63--- Makefile.am 2011-12-06 21:49:39 +0000
64+++ Makefile.am 2012-04-11 17:27:20 +0000
65@@ -34,37 +34,4 @@
66 fi
67
68
69-# Coverage targets
70-
71-.PHONY: clean-gcda
72-clean-gcda:
73- @echo Removing old coverage results
74- -find -name '*.gcda' -print | xargs -r rm
75-
76-.PHONY: coverage-html generate-coverage-html clean-coverage-html
77-coverage-html: clean-gcda
78- -$(MAKE) $(AM_MAKEFLAGS) -k check
79- $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
80-
81-generate-coverage-html:
82- @echo Collecting coverage data
83- $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
84- LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
85-
86-clean-coverage-html: clean-gcda
87- -$(LCOV) --directory $(top_builddir) -z
88- -rm -rf coverage.info coveragereport
89-
90-.PHONY: coverage-xml generate-coverage-xml clean-coverage-xml
91-coverage-xml: clean-gcda
92- -$(MAKE) $(AM_MAKEFLAGS) -k check
93- $(MAKE) $(AM_MAKEFLAGS) generate-coverage-xml
94-
95-generate-coverage-xml:
96- @echo Generating coverage XML report
97- $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
98-
99-clean-coverage-xml: clean-gcda
100- -rm -rf $(top_builddir)/coverage.xml
101-
102-clean-local: clean-coverage-html clean-coverage-xml
103+include $(top_srcdir)/Makefile.am.coverage
104
105=== added file 'Makefile.am.coverage'
106--- Makefile.am.coverage 1970-01-01 00:00:00 +0000
107+++ Makefile.am.coverage 2012-04-11 17:27:20 +0000
108@@ -0,0 +1,48 @@
109+
110+# Coverage targets
111+
112+.PHONY: clean-gcno clean-gcda \
113+ coverage-html generate-coverage-html clean-coverage-html \
114+ coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr
115+
116+clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr
117+
118+if HAVE_GCOV
119+
120+clean-gcno:
121+ @echo Removing old coverage instrumentation
122+ -find -name '*.gcno' -print | xargs -r rm
123+
124+clean-gcda:
125+ @echo Removing old coverage results
126+ -find -name '*.gcda' -print | xargs -r rm
127+
128+coverage-html: clean-gcda
129+ -$(MAKE) $(AM_MAKEFLAGS) -k check
130+ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
131+
132+generate-coverage-html:
133+ @echo Collecting coverage data
134+ $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
135+ LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
136+
137+clean-coverage-html: clean-gcda
138+ -$(LCOV) --directory $(top_builddir) -z
139+ -rm -rf coverage.info coveragereport
140+
141+if HAVE_GCOVR
142+
143+coverage-gcovr: clean-gcda
144+ -$(MAKE) $(AM_MAKEFLAGS) -k check
145+ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr
146+
147+generate-coverage-gcovr:
148+ @echo Generating coverage GCOVR report
149+ $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
150+
151+clean-coverage-gcovr: clean-gcda
152+ -rm -rf $(top_builddir)/coverage.xml
153+
154+endif # HAVE_GCOVR
155+
156+endif # HAVE_GCOV
157
158=== modified file 'Makefile.in'
159--- Makefile.in 2012-03-21 22:13:03 +0000
160+++ Makefile.in 2012-04-11 17:27:20 +0000
161@@ -14,6 +14,8 @@
162 # PARTICULAR PURPOSE.
163
164 @SET_MAKE@
165+
166+# Coverage targets
167 VPATH = @srcdir@
168 pkgdatadir = $(datadir)/@PACKAGE@
169 pkgincludedir = $(includedir)/@PACKAGE@
170@@ -33,15 +35,18 @@
171 POST_UNINSTALL = :
172 build_triplet = @build@
173 host_triplet = @host@
174-subdir = .
175 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
176 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
177- $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
178- compile config.guess config.sub depcomp install-sh ltmain.sh \
179- missing
180+ $(top_srcdir)/Makefile.am.coverage $(top_srcdir)/configure \
181+ AUTHORS COPYING ChangeLog INSTALL NEWS compile config.guess \
182+ config.sub depcomp install-sh ltmain.sh missing
183+subdir = .
184 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
185-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
186- $(top_srcdir)/m4/gcov.m4 $(top_srcdir)/configure.ac
187+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
188+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
189+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
190+ $(top_srcdir)/acinclude.m4 $(top_srcdir)/m4/gcov.m4 \
191+ $(top_srcdir)/configure.ac
192 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
193 $(ACLOCAL_M4)
194 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
195@@ -261,7 +266,7 @@
196 .SUFFIXES:
197 am--refresh: Makefile
198 @:
199-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
200+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.coverage $(am__configure_deps)
201 @for dep in $?; do \
202 case '$(am__configure_deps)' in \
203 *$$dep*) \
204@@ -284,6 +289,7 @@
205 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
206 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
207 esac;
208+$(top_srcdir)/Makefile.am.coverage:
209
210 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
211 $(SHELL) ./config.status --recheck
212@@ -798,40 +804,43 @@
213 echo Failed to generate AUTHORS: not a branch >&2; \
214 fi
215
216-# Coverage targets
217-
218-.PHONY: clean-gcda
219-clean-gcda:
220- @echo Removing old coverage results
221- -find -name '*.gcda' -print | xargs -r rm
222-
223-.PHONY: coverage-html generate-coverage-html clean-coverage-html
224-coverage-html: clean-gcda
225- -$(MAKE) $(AM_MAKEFLAGS) -k check
226- $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
227-
228-generate-coverage-html:
229- @echo Collecting coverage data
230- $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
231- LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
232-
233-clean-coverage-html: clean-gcda
234- -$(LCOV) --directory $(top_builddir) -z
235- -rm -rf coverage.info coveragereport
236-
237-.PHONY: coverage-xml generate-coverage-xml clean-coverage-xml
238-coverage-xml: clean-gcda
239- -$(MAKE) $(AM_MAKEFLAGS) -k check
240- $(MAKE) $(AM_MAKEFLAGS) generate-coverage-xml
241-
242-generate-coverage-xml:
243- @echo Generating coverage XML report
244- $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
245-
246-clean-coverage-xml: clean-gcda
247- -rm -rf $(top_builddir)/coverage.xml
248-
249-clean-local: clean-coverage-html clean-coverage-xml
250+.PHONY: clean-gcno clean-gcda \
251+ coverage-html generate-coverage-html clean-coverage-html \
252+ coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr
253+
254+clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr
255+
256+@HAVE_GCOV_TRUE@clean-gcno:
257+@HAVE_GCOV_TRUE@ @echo Removing old coverage instrumentation
258+@HAVE_GCOV_TRUE@ -find -name '*.gcno' -print | xargs -r rm
259+
260+@HAVE_GCOV_TRUE@clean-gcda:
261+@HAVE_GCOV_TRUE@ @echo Removing old coverage results
262+@HAVE_GCOV_TRUE@ -find -name '*.gcda' -print | xargs -r rm
263+
264+@HAVE_GCOV_TRUE@coverage-html: clean-gcda
265+@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
266+@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
267+
268+@HAVE_GCOV_TRUE@generate-coverage-html:
269+@HAVE_GCOV_TRUE@ @echo Collecting coverage data
270+@HAVE_GCOV_TRUE@ $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
271+@HAVE_GCOV_TRUE@ LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
272+
273+@HAVE_GCOV_TRUE@clean-coverage-html: clean-gcda
274+@HAVE_GCOV_TRUE@ -$(LCOV) --directory $(top_builddir) -z
275+@HAVE_GCOV_TRUE@ -rm -rf coverage.info coveragereport
276+
277+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@coverage-gcovr: clean-gcda
278+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
279+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr
280+
281+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@generate-coverage-gcovr:
282+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ @echo Generating coverage GCOVR report
283+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
284+
285+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@clean-coverage-gcovr: clean-gcda
286+@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -rm -rf $(top_builddir)/coverage.xml
287
288 # Tell versions [3.59,3.63) of GNU make to not export all variables.
289 # Otherwise a system limit (for SysV at least) may be exceeded.
290
291=== modified file 'aclocal.m4'
292--- aclocal.m4 2012-03-21 22:13:03 +0000
293+++ aclocal.m4 2012-04-11 17:27:20 +0000
294@@ -20,8612 +20,6 @@
295 If you have problems, you may need to regenerate the build system entirely.
296 To do so, use the procedure documented by the package, typically `autoreconf'.])])
297
298-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
299-#
300-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
301-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
302-# Foundation, Inc.
303-# Written by Gordon Matzigkeit, 1996
304-#
305-# This file is free software; the Free Software Foundation gives
306-# unlimited permission to copy and/or distribute it, with or without
307-# modifications, as long as this notice is preserved.
308-
309-m4_define([_LT_COPYING], [dnl
310-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
311-# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
312-# Foundation, Inc.
313-# Written by Gordon Matzigkeit, 1996
314-#
315-# This file is part of GNU Libtool.
316-#
317-# GNU Libtool is free software; you can redistribute it and/or
318-# modify it under the terms of the GNU General Public License as
319-# published by the Free Software Foundation; either version 2 of
320-# the License, or (at your option) any later version.
321-#
322-# As a special exception to the GNU General Public License,
323-# if you distribute this file as part of a program or library that
324-# is built using GNU Libtool, you may include this file under the
325-# same distribution terms that you use for the rest of that program.
326-#
327-# GNU Libtool is distributed in the hope that it will be useful,
328-# but WITHOUT ANY WARRANTY; without even the implied warranty of
329-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
330-# GNU General Public License for more details.
331-#
332-# You should have received a copy of the GNU General Public License
333-# along with GNU Libtool; see the file COPYING. If not, a copy
334-# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
335-# obtained by writing to the Free Software Foundation, Inc.,
336-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
337-])
338-
339-# serial 57 LT_INIT
340-
341-
342-# LT_PREREQ(VERSION)
343-# ------------------
344-# Complain and exit if this libtool version is less that VERSION.
345-m4_defun([LT_PREREQ],
346-[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
347- [m4_default([$3],
348- [m4_fatal([Libtool version $1 or higher is required],
349- 63)])],
350- [$2])])
351-
352-
353-# _LT_CHECK_BUILDDIR
354-# ------------------
355-# Complain if the absolute build directory name contains unusual characters
356-m4_defun([_LT_CHECK_BUILDDIR],
357-[case `pwd` in
358- *\ * | *\ *)
359- AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
360-esac
361-])
362-
363-
364-# LT_INIT([OPTIONS])
365-# ------------------
366-AC_DEFUN([LT_INIT],
367-[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
368-AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
369-AC_BEFORE([$0], [LT_LANG])dnl
370-AC_BEFORE([$0], [LT_OUTPUT])dnl
371-AC_BEFORE([$0], [LTDL_INIT])dnl
372-m4_require([_LT_CHECK_BUILDDIR])dnl
373-
374-dnl Autoconf doesn't catch unexpanded LT_ macros by default:
375-m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
376-m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
377-dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
378-dnl unless we require an AC_DEFUNed macro:
379-AC_REQUIRE([LTOPTIONS_VERSION])dnl
380-AC_REQUIRE([LTSUGAR_VERSION])dnl
381-AC_REQUIRE([LTVERSION_VERSION])dnl
382-AC_REQUIRE([LTOBSOLETE_VERSION])dnl
383-m4_require([_LT_PROG_LTMAIN])dnl
384-
385-_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
386-
387-dnl Parse OPTIONS
388-_LT_SET_OPTIONS([$0], [$1])
389-
390-# This can be used to rebuild libtool when needed
391-LIBTOOL_DEPS="$ltmain"
392-
393-# Always use our own libtool.
394-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
395-AC_SUBST(LIBTOOL)dnl
396-
397-_LT_SETUP
398-
399-# Only expand once:
400-m4_define([LT_INIT])
401-])# LT_INIT
402-
403-# Old names:
404-AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
405-AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
406-dnl aclocal-1.4 backwards compatibility:
407-dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
408-dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
409-
410-
411-# _LT_CC_BASENAME(CC)
412-# -------------------
413-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
414-m4_defun([_LT_CC_BASENAME],
415-[for cc_temp in $1""; do
416- case $cc_temp in
417- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
418- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
419- \-*) ;;
420- *) break;;
421- esac
422-done
423-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
424-])
425-
426-
427-# _LT_FILEUTILS_DEFAULTS
428-# ----------------------
429-# It is okay to use these file commands and assume they have been set
430-# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
431-m4_defun([_LT_FILEUTILS_DEFAULTS],
432-[: ${CP="cp -f"}
433-: ${MV="mv -f"}
434-: ${RM="rm -f"}
435-])# _LT_FILEUTILS_DEFAULTS
436-
437-
438-# _LT_SETUP
439-# ---------
440-m4_defun([_LT_SETUP],
441-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
442-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
443-AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
444-AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
445-
446-_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
447-dnl
448-_LT_DECL([], [host_alias], [0], [The host system])dnl
449-_LT_DECL([], [host], [0])dnl
450-_LT_DECL([], [host_os], [0])dnl
451-dnl
452-_LT_DECL([], [build_alias], [0], [The build system])dnl
453-_LT_DECL([], [build], [0])dnl
454-_LT_DECL([], [build_os], [0])dnl
455-dnl
456-AC_REQUIRE([AC_PROG_CC])dnl
457-AC_REQUIRE([LT_PATH_LD])dnl
458-AC_REQUIRE([LT_PATH_NM])dnl
459-dnl
460-AC_REQUIRE([AC_PROG_LN_S])dnl
461-test -z "$LN_S" && LN_S="ln -s"
462-_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
463-dnl
464-AC_REQUIRE([LT_CMD_MAX_LEN])dnl
465-_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
466-_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
467-dnl
468-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
469-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
470-m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
471-m4_require([_LT_CMD_RELOAD])dnl
472-m4_require([_LT_CHECK_MAGIC_METHOD])dnl
473-m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
474-m4_require([_LT_CMD_OLD_ARCHIVE])dnl
475-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
476-m4_require([_LT_WITH_SYSROOT])dnl
477-
478-_LT_CONFIG_LIBTOOL_INIT([
479-# See if we are running on zsh, and set the options which allow our
480-# commands through without removal of \ escapes INIT.
481-if test -n "\${ZSH_VERSION+set}" ; then
482- setopt NO_GLOB_SUBST
483-fi
484-])
485-if test -n "${ZSH_VERSION+set}" ; then
486- setopt NO_GLOB_SUBST
487-fi
488-
489-_LT_CHECK_OBJDIR
490-
491-m4_require([_LT_TAG_COMPILER])dnl
492-
493-case $host_os in
494-aix3*)
495- # AIX sometimes has problems with the GCC collect2 program. For some
496- # reason, if we set the COLLECT_NAMES environment variable, the problems
497- # vanish in a puff of smoke.
498- if test "X${COLLECT_NAMES+set}" != Xset; then
499- COLLECT_NAMES=
500- export COLLECT_NAMES
501- fi
502- ;;
503-esac
504-
505-# Global variables:
506-ofile=libtool
507-can_build_shared=yes
508-
509-# All known linkers require a `.a' archive for static linking (except MSVC,
510-# which needs '.lib').
511-libext=a
512-
513-with_gnu_ld="$lt_cv_prog_gnu_ld"
514-
515-old_CC="$CC"
516-old_CFLAGS="$CFLAGS"
517-
518-# Set sane defaults for various variables
519-test -z "$CC" && CC=cc
520-test -z "$LTCC" && LTCC=$CC
521-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
522-test -z "$LD" && LD=ld
523-test -z "$ac_objext" && ac_objext=o
524-
525-_LT_CC_BASENAME([$compiler])
526-
527-# Only perform the check for file, if the check method requires it
528-test -z "$MAGIC_CMD" && MAGIC_CMD=file
529-case $deplibs_check_method in
530-file_magic*)
531- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
532- _LT_PATH_MAGIC
533- fi
534- ;;
535-esac
536-
537-# Use C for the default configuration in the libtool script
538-LT_SUPPORTED_TAG([CC])
539-_LT_LANG_C_CONFIG
540-_LT_LANG_DEFAULT_CONFIG
541-_LT_CONFIG_COMMANDS
542-])# _LT_SETUP
543-
544-
545-# _LT_PREPARE_SED_QUOTE_VARS
546-# --------------------------
547-# Define a few sed substitution that help us do robust quoting.
548-m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
549-[# Backslashify metacharacters that are still active within
550-# double-quoted strings.
551-sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
552-
553-# Same as above, but do not quote variable references.
554-double_quote_subst='s/\([["`\\]]\)/\\\1/g'
555-
556-# Sed substitution to delay expansion of an escaped shell variable in a
557-# double_quote_subst'ed string.
558-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
559-
560-# Sed substitution to delay expansion of an escaped single quote.
561-delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
562-
563-# Sed substitution to avoid accidental globbing in evaled expressions
564-no_glob_subst='s/\*/\\\*/g'
565-])
566-
567-# _LT_PROG_LTMAIN
568-# ---------------
569-# Note that this code is called both from `configure', and `config.status'
570-# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
571-# `config.status' has no value for ac_aux_dir unless we are using Automake,
572-# so we pass a copy along to make sure it has a sensible value anyway.
573-m4_defun([_LT_PROG_LTMAIN],
574-[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
575-_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
576-ltmain="$ac_aux_dir/ltmain.sh"
577-])# _LT_PROG_LTMAIN
578-
579-
580-
581-# So that we can recreate a full libtool script including additional
582-# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
583-# in macros and then make a single call at the end using the `libtool'
584-# label.
585-
586-
587-# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
588-# ----------------------------------------
589-# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
590-m4_define([_LT_CONFIG_LIBTOOL_INIT],
591-[m4_ifval([$1],
592- [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
593- [$1
594-])])])
595-
596-# Initialize.
597-m4_define([_LT_OUTPUT_LIBTOOL_INIT])
598-
599-
600-# _LT_CONFIG_LIBTOOL([COMMANDS])
601-# ------------------------------
602-# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
603-m4_define([_LT_CONFIG_LIBTOOL],
604-[m4_ifval([$1],
605- [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
606- [$1
607-])])])
608-
609-# Initialize.
610-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
611-
612-
613-# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
614-# -----------------------------------------------------
615-m4_defun([_LT_CONFIG_SAVE_COMMANDS],
616-[_LT_CONFIG_LIBTOOL([$1])
617-_LT_CONFIG_LIBTOOL_INIT([$2])
618-])
619-
620-
621-# _LT_FORMAT_COMMENT([COMMENT])
622-# -----------------------------
623-# Add leading comment marks to the start of each line, and a trailing
624-# full-stop to the whole comment if one is not present already.
625-m4_define([_LT_FORMAT_COMMENT],
626-[m4_ifval([$1], [
627-m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
628- [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
629-)])
630-
631-
632-
633-
634-
635-# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
636-# -------------------------------------------------------------------
637-# CONFIGNAME is the name given to the value in the libtool script.
638-# VARNAME is the (base) name used in the configure script.
639-# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
640-# VARNAME. Any other value will be used directly.
641-m4_define([_LT_DECL],
642-[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
643- [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
644- [m4_ifval([$1], [$1], [$2])])
645- lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
646- m4_ifval([$4],
647- [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
648- lt_dict_add_subkey([lt_decl_dict], [$2],
649- [tagged?], [m4_ifval([$5], [yes], [no])])])
650-])
651-
652-
653-# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
654-# --------------------------------------------------------
655-m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
656-
657-
658-# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
659-# ------------------------------------------------
660-m4_define([lt_decl_tag_varnames],
661-[_lt_decl_filter([tagged?], [yes], $@)])
662-
663-
664-# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
665-# ---------------------------------------------------------
666-m4_define([_lt_decl_filter],
667-[m4_case([$#],
668- [0], [m4_fatal([$0: too few arguments: $#])],
669- [1], [m4_fatal([$0: too few arguments: $#: $1])],
670- [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
671- [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
672- [lt_dict_filter([lt_decl_dict], $@)])[]dnl
673-])
674-
675-
676-# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
677-# --------------------------------------------------
678-m4_define([lt_decl_quote_varnames],
679-[_lt_decl_filter([value], [1], $@)])
680-
681-
682-# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
683-# ---------------------------------------------------
684-m4_define([lt_decl_dquote_varnames],
685-[_lt_decl_filter([value], [2], $@)])
686-
687-
688-# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
689-# ---------------------------------------------------
690-m4_define([lt_decl_varnames_tagged],
691-[m4_assert([$# <= 2])dnl
692-_$0(m4_quote(m4_default([$1], [[, ]])),
693- m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
694- m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
695-m4_define([_lt_decl_varnames_tagged],
696-[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
697-
698-
699-# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
700-# ------------------------------------------------
701-m4_define([lt_decl_all_varnames],
702-[_$0(m4_quote(m4_default([$1], [[, ]])),
703- m4_if([$2], [],
704- m4_quote(lt_decl_varnames),
705- m4_quote(m4_shift($@))))[]dnl
706-])
707-m4_define([_lt_decl_all_varnames],
708-[lt_join($@, lt_decl_varnames_tagged([$1],
709- lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
710-])
711-
712-
713-# _LT_CONFIG_STATUS_DECLARE([VARNAME])
714-# ------------------------------------
715-# Quote a variable value, and forward it to `config.status' so that its
716-# declaration there will have the same value as in `configure'. VARNAME
717-# must have a single quote delimited value for this to work.
718-m4_define([_LT_CONFIG_STATUS_DECLARE],
719-[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
720-
721-
722-# _LT_CONFIG_STATUS_DECLARATIONS
723-# ------------------------------
724-# We delimit libtool config variables with single quotes, so when
725-# we write them to config.status, we have to be sure to quote all
726-# embedded single quotes properly. In configure, this macro expands
727-# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
728-#
729-# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
730-m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
731-[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
732- [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
733-
734-
735-# _LT_LIBTOOL_TAGS
736-# ----------------
737-# Output comment and list of tags supported by the script
738-m4_defun([_LT_LIBTOOL_TAGS],
739-[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
740-available_tags="_LT_TAGS"dnl
741-])
742-
743-
744-# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
745-# -----------------------------------
746-# Extract the dictionary values for VARNAME (optionally with TAG) and
747-# expand to a commented shell variable setting:
748-#
749-# # Some comment about what VAR is for.
750-# visible_name=$lt_internal_name
751-m4_define([_LT_LIBTOOL_DECLARE],
752-[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
753- [description])))[]dnl
754-m4_pushdef([_libtool_name],
755- m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
756-m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
757- [0], [_libtool_name=[$]$1],
758- [1], [_libtool_name=$lt_[]$1],
759- [2], [_libtool_name=$lt_[]$1],
760- [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
761-m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
762-])
763-
764-
765-# _LT_LIBTOOL_CONFIG_VARS
766-# -----------------------
767-# Produce commented declarations of non-tagged libtool config variables
768-# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
769-# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
770-# section) are produced by _LT_LIBTOOL_TAG_VARS.
771-m4_defun([_LT_LIBTOOL_CONFIG_VARS],
772-[m4_foreach([_lt_var],
773- m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
774- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
775-
776-
777-# _LT_LIBTOOL_TAG_VARS(TAG)
778-# -------------------------
779-m4_define([_LT_LIBTOOL_TAG_VARS],
780-[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
781- [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
782-
783-
784-# _LT_TAGVAR(VARNAME, [TAGNAME])
785-# ------------------------------
786-m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
787-
788-
789-# _LT_CONFIG_COMMANDS
790-# -------------------
791-# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
792-# variables for single and double quote escaping we saved from calls
793-# to _LT_DECL, we can put quote escaped variables declarations
794-# into `config.status', and then the shell code to quote escape them in
795-# for loops in `config.status'. Finally, any additional code accumulated
796-# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
797-m4_defun([_LT_CONFIG_COMMANDS],
798-[AC_PROVIDE_IFELSE([LT_OUTPUT],
799- dnl If the libtool generation code has been placed in $CONFIG_LT,
800- dnl instead of duplicating it all over again into config.status,
801- dnl then we will have config.status run $CONFIG_LT later, so it
802- dnl needs to know what name is stored there:
803- [AC_CONFIG_COMMANDS([libtool],
804- [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
805- dnl If the libtool generation code is destined for config.status,
806- dnl expand the accumulated commands and init code now:
807- [AC_CONFIG_COMMANDS([libtool],
808- [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
809-])#_LT_CONFIG_COMMANDS
810-
811-
812-# Initialize.
813-m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
814-[
815-
816-# The HP-UX ksh and POSIX shell print the target directory to stdout
817-# if CDPATH is set.
818-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
819-
820-sed_quote_subst='$sed_quote_subst'
821-double_quote_subst='$double_quote_subst'
822-delay_variable_subst='$delay_variable_subst'
823-_LT_CONFIG_STATUS_DECLARATIONS
824-LTCC='$LTCC'
825-LTCFLAGS='$LTCFLAGS'
826-compiler='$compiler_DEFAULT'
827-
828-# A function that is used when there is no print builtin or printf.
829-func_fallback_echo ()
830-{
831- eval 'cat <<_LTECHO_EOF
832-\$[]1
833-_LTECHO_EOF'
834-}
835-
836-# Quote evaled strings.
837-for var in lt_decl_all_varnames([[ \
838-]], lt_decl_quote_varnames); do
839- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
840- *[[\\\\\\\`\\"\\\$]]*)
841- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
842- ;;
843- *)
844- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
845- ;;
846- esac
847-done
848-
849-# Double-quote double-evaled strings.
850-for var in lt_decl_all_varnames([[ \
851-]], lt_decl_dquote_varnames); do
852- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
853- *[[\\\\\\\`\\"\\\$]]*)
854- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
855- ;;
856- *)
857- eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
858- ;;
859- esac
860-done
861-
862-_LT_OUTPUT_LIBTOOL_INIT
863-])
864-
865-# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
866-# ------------------------------------
867-# Generate a child script FILE with all initialization necessary to
868-# reuse the environment learned by the parent script, and make the
869-# file executable. If COMMENT is supplied, it is inserted after the
870-# `#!' sequence but before initialization text begins. After this
871-# macro, additional text can be appended to FILE to form the body of
872-# the child script. The macro ends with non-zero status if the
873-# file could not be fully written (such as if the disk is full).
874-m4_ifdef([AS_INIT_GENERATED],
875-[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
876-[m4_defun([_LT_GENERATED_FILE_INIT],
877-[m4_require([AS_PREPARE])]dnl
878-[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
879-[lt_write_fail=0
880-cat >$1 <<_ASEOF || lt_write_fail=1
881-#! $SHELL
882-# Generated by $as_me.
883-$2
884-SHELL=\${CONFIG_SHELL-$SHELL}
885-export SHELL
886-_ASEOF
887-cat >>$1 <<\_ASEOF || lt_write_fail=1
888-AS_SHELL_SANITIZE
889-_AS_PREPARE
890-exec AS_MESSAGE_FD>&1
891-_ASEOF
892-test $lt_write_fail = 0 && chmod +x $1[]dnl
893-m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
894-
895-# LT_OUTPUT
896-# ---------
897-# This macro allows early generation of the libtool script (before
898-# AC_OUTPUT is called), incase it is used in configure for compilation
899-# tests.
900-AC_DEFUN([LT_OUTPUT],
901-[: ${CONFIG_LT=./config.lt}
902-AC_MSG_NOTICE([creating $CONFIG_LT])
903-_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
904-[# Run this file to recreate a libtool stub with the current configuration.])
905-
906-cat >>"$CONFIG_LT" <<\_LTEOF
907-lt_cl_silent=false
908-exec AS_MESSAGE_LOG_FD>>config.log
909-{
910- echo
911- AS_BOX([Running $as_me.])
912-} >&AS_MESSAGE_LOG_FD
913-
914-lt_cl_help="\
915-\`$as_me' creates a local libtool stub from the current configuration,
916-for use in further configure time tests before the real libtool is
917-generated.
918-
919-Usage: $[0] [[OPTIONS]]
920-
921- -h, --help print this help, then exit
922- -V, --version print version number, then exit
923- -q, --quiet do not print progress messages
924- -d, --debug don't remove temporary files
925-
926-Report bugs to <bug-libtool@gnu.org>."
927-
928-lt_cl_version="\
929-m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
930-m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
931-configured by $[0], generated by m4_PACKAGE_STRING.
932-
933-Copyright (C) 2011 Free Software Foundation, Inc.
934-This config.lt script is free software; the Free Software Foundation
935-gives unlimited permision to copy, distribute and modify it."
936-
937-while test $[#] != 0
938-do
939- case $[1] in
940- --version | --v* | -V )
941- echo "$lt_cl_version"; exit 0 ;;
942- --help | --h* | -h )
943- echo "$lt_cl_help"; exit 0 ;;
944- --debug | --d* | -d )
945- debug=: ;;
946- --quiet | --q* | --silent | --s* | -q )
947- lt_cl_silent=: ;;
948-
949- -*) AC_MSG_ERROR([unrecognized option: $[1]
950-Try \`$[0] --help' for more information.]) ;;
951-
952- *) AC_MSG_ERROR([unrecognized argument: $[1]
953-Try \`$[0] --help' for more information.]) ;;
954- esac
955- shift
956-done
957-
958-if $lt_cl_silent; then
959- exec AS_MESSAGE_FD>/dev/null
960-fi
961-_LTEOF
962-
963-cat >>"$CONFIG_LT" <<_LTEOF
964-_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
965-_LTEOF
966-
967-cat >>"$CONFIG_LT" <<\_LTEOF
968-AC_MSG_NOTICE([creating $ofile])
969-_LT_OUTPUT_LIBTOOL_COMMANDS
970-AS_EXIT(0)
971-_LTEOF
972-chmod +x "$CONFIG_LT"
973-
974-# configure is writing to config.log, but config.lt does its own redirection,
975-# appending to config.log, which fails on DOS, as config.log is still kept
976-# open by configure. Here we exec the FD to /dev/null, effectively closing
977-# config.log, so it can be properly (re)opened and appended to by config.lt.
978-lt_cl_success=:
979-test "$silent" = yes &&
980- lt_config_lt_args="$lt_config_lt_args --quiet"
981-exec AS_MESSAGE_LOG_FD>/dev/null
982-$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
983-exec AS_MESSAGE_LOG_FD>>config.log
984-$lt_cl_success || AS_EXIT(1)
985-])# LT_OUTPUT
986-
987-
988-# _LT_CONFIG(TAG)
989-# ---------------
990-# If TAG is the built-in tag, create an initial libtool script with a
991-# default configuration from the untagged config vars. Otherwise add code
992-# to config.status for appending the configuration named by TAG from the
993-# matching tagged config vars.
994-m4_defun([_LT_CONFIG],
995-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
996-_LT_CONFIG_SAVE_COMMANDS([
997- m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
998- m4_if(_LT_TAG, [C], [
999- # See if we are running on zsh, and set the options which allow our
1000- # commands through without removal of \ escapes.
1001- if test -n "${ZSH_VERSION+set}" ; then
1002- setopt NO_GLOB_SUBST
1003- fi
1004-
1005- cfgfile="${ofile}T"
1006- trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1007- $RM "$cfgfile"
1008-
1009- cat <<_LT_EOF >> "$cfgfile"
1010-#! $SHELL
1011-
1012-# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1013-# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1014-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1015-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1016-#
1017-_LT_COPYING
1018-_LT_LIBTOOL_TAGS
1019-
1020-# ### BEGIN LIBTOOL CONFIG
1021-_LT_LIBTOOL_CONFIG_VARS
1022-_LT_LIBTOOL_TAG_VARS
1023-# ### END LIBTOOL CONFIG
1024-
1025-_LT_EOF
1026-
1027- case $host_os in
1028- aix3*)
1029- cat <<\_LT_EOF >> "$cfgfile"
1030-# AIX sometimes has problems with the GCC collect2 program. For some
1031-# reason, if we set the COLLECT_NAMES environment variable, the problems
1032-# vanish in a puff of smoke.
1033-if test "X${COLLECT_NAMES+set}" != Xset; then
1034- COLLECT_NAMES=
1035- export COLLECT_NAMES
1036-fi
1037-_LT_EOF
1038- ;;
1039- esac
1040-
1041- _LT_PROG_LTMAIN
1042-
1043- # We use sed instead of cat because bash on DJGPP gets confused if
1044- # if finds mixed CR/LF and LF-only lines. Since sed operates in
1045- # text mode, it properly converts lines to CR/LF. This bash problem
1046- # is reportedly fixed, but why not run on old versions too?
1047- sed '$q' "$ltmain" >> "$cfgfile" \
1048- || (rm -f "$cfgfile"; exit 1)
1049-
1050- _LT_PROG_REPLACE_SHELLFNS
1051-
1052- mv -f "$cfgfile" "$ofile" ||
1053- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1054- chmod +x "$ofile"
1055-],
1056-[cat <<_LT_EOF >> "$ofile"
1057-
1058-dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1059-dnl in a comment (ie after a #).
1060-# ### BEGIN LIBTOOL TAG CONFIG: $1
1061-_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1062-# ### END LIBTOOL TAG CONFIG: $1
1063-_LT_EOF
1064-])dnl /m4_if
1065-],
1066-[m4_if([$1], [], [
1067- PACKAGE='$PACKAGE'
1068- VERSION='$VERSION'
1069- TIMESTAMP='$TIMESTAMP'
1070- RM='$RM'
1071- ofile='$ofile'], [])
1072-])dnl /_LT_CONFIG_SAVE_COMMANDS
1073-])# _LT_CONFIG
1074-
1075-
1076-# LT_SUPPORTED_TAG(TAG)
1077-# ---------------------
1078-# Trace this macro to discover what tags are supported by the libtool
1079-# --tag option, using:
1080-# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1081-AC_DEFUN([LT_SUPPORTED_TAG], [])
1082-
1083-
1084-# C support is built-in for now
1085-m4_define([_LT_LANG_C_enabled], [])
1086-m4_define([_LT_TAGS], [])
1087-
1088-
1089-# LT_LANG(LANG)
1090-# -------------
1091-# Enable libtool support for the given language if not already enabled.
1092-AC_DEFUN([LT_LANG],
1093-[AC_BEFORE([$0], [LT_OUTPUT])dnl
1094-m4_case([$1],
1095- [C], [_LT_LANG(C)],
1096- [C++], [_LT_LANG(CXX)],
1097- [Go], [_LT_LANG(GO)],
1098- [Java], [_LT_LANG(GCJ)],
1099- [Fortran 77], [_LT_LANG(F77)],
1100- [Fortran], [_LT_LANG(FC)],
1101- [Windows Resource], [_LT_LANG(RC)],
1102- [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1103- [_LT_LANG($1)],
1104- [m4_fatal([$0: unsupported language: "$1"])])])dnl
1105-])# LT_LANG
1106-
1107-
1108-# _LT_LANG(LANGNAME)
1109-# ------------------
1110-m4_defun([_LT_LANG],
1111-[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1112- [LT_SUPPORTED_TAG([$1])dnl
1113- m4_append([_LT_TAGS], [$1 ])dnl
1114- m4_define([_LT_LANG_]$1[_enabled], [])dnl
1115- _LT_LANG_$1_CONFIG($1)])dnl
1116-])# _LT_LANG
1117-
1118-
1119-m4_ifndef([AC_PROG_GO], [
1120-# NOTE: This macro has been submitted for inclusion into #
1121-# GNU Autoconf as AC_PROG_GO. When it is available in #
1122-# a released version of Autoconf we should remove this #
1123-# macro and use it instead. #
1124-m4_defun([AC_PROG_GO],
1125-[AC_LANG_PUSH(Go)dnl
1126-AC_ARG_VAR([GOC], [Go compiler command])dnl
1127-AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1128-_AC_ARG_VAR_LDFLAGS()dnl
1129-AC_CHECK_TOOL(GOC, gccgo)
1130-if test -z "$GOC"; then
1131- if test -n "$ac_tool_prefix"; then
1132- AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1133- fi
1134-fi
1135-if test -z "$GOC"; then
1136- AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1137-fi
1138-])#m4_defun
1139-])#m4_ifndef
1140-
1141-
1142-# _LT_LANG_DEFAULT_CONFIG
1143-# -----------------------
1144-m4_defun([_LT_LANG_DEFAULT_CONFIG],
1145-[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1146- [LT_LANG(CXX)],
1147- [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1148-
1149-AC_PROVIDE_IFELSE([AC_PROG_F77],
1150- [LT_LANG(F77)],
1151- [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1152-
1153-AC_PROVIDE_IFELSE([AC_PROG_FC],
1154- [LT_LANG(FC)],
1155- [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1156-
1157-dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1158-dnl pulling things in needlessly.
1159-AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1160- [LT_LANG(GCJ)],
1161- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1162- [LT_LANG(GCJ)],
1163- [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1164- [LT_LANG(GCJ)],
1165- [m4_ifdef([AC_PROG_GCJ],
1166- [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1167- m4_ifdef([A][M_PROG_GCJ],
1168- [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1169- m4_ifdef([LT_PROG_GCJ],
1170- [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1171-
1172-AC_PROVIDE_IFELSE([AC_PROG_GO],
1173- [LT_LANG(GO)],
1174- [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1175-
1176-AC_PROVIDE_IFELSE([LT_PROG_RC],
1177- [LT_LANG(RC)],
1178- [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1179-])# _LT_LANG_DEFAULT_CONFIG
1180-
1181-# Obsolete macros:
1182-AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1183-AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1184-AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1185-AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1186-AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1187-dnl aclocal-1.4 backwards compatibility:
1188-dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1189-dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1190-dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1191-dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1192-dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1193-
1194-
1195-# _LT_TAG_COMPILER
1196-# ----------------
1197-m4_defun([_LT_TAG_COMPILER],
1198-[AC_REQUIRE([AC_PROG_CC])dnl
1199-
1200-_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1201-_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1202-_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1203-_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1204-
1205-# If no C compiler was specified, use CC.
1206-LTCC=${LTCC-"$CC"}
1207-
1208-# If no C compiler flags were specified, use CFLAGS.
1209-LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1210-
1211-# Allow CC to be a program name with arguments.
1212-compiler=$CC
1213-])# _LT_TAG_COMPILER
1214-
1215-
1216-# _LT_COMPILER_BOILERPLATE
1217-# ------------------------
1218-# Check for compiler boilerplate output or warnings with
1219-# the simple compiler test code.
1220-m4_defun([_LT_COMPILER_BOILERPLATE],
1221-[m4_require([_LT_DECL_SED])dnl
1222-ac_outfile=conftest.$ac_objext
1223-echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1224-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1225-_lt_compiler_boilerplate=`cat conftest.err`
1226-$RM conftest*
1227-])# _LT_COMPILER_BOILERPLATE
1228-
1229-
1230-# _LT_LINKER_BOILERPLATE
1231-# ----------------------
1232-# Check for linker boilerplate output or warnings with
1233-# the simple link test code.
1234-m4_defun([_LT_LINKER_BOILERPLATE],
1235-[m4_require([_LT_DECL_SED])dnl
1236-ac_outfile=conftest.$ac_objext
1237-echo "$lt_simple_link_test_code" >conftest.$ac_ext
1238-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1239-_lt_linker_boilerplate=`cat conftest.err`
1240-$RM -r conftest*
1241-])# _LT_LINKER_BOILERPLATE
1242-
1243-# _LT_REQUIRED_DARWIN_CHECKS
1244-# -------------------------
1245-m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1246- case $host_os in
1247- rhapsody* | darwin*)
1248- AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1249- AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1250- AC_CHECK_TOOL([LIPO], [lipo], [:])
1251- AC_CHECK_TOOL([OTOOL], [otool], [:])
1252- AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1253- _LT_DECL([], [DSYMUTIL], [1],
1254- [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1255- _LT_DECL([], [NMEDIT], [1],
1256- [Tool to change global to local symbols on Mac OS X])
1257- _LT_DECL([], [LIPO], [1],
1258- [Tool to manipulate fat objects and archives on Mac OS X])
1259- _LT_DECL([], [OTOOL], [1],
1260- [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1261- _LT_DECL([], [OTOOL64], [1],
1262- [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1263-
1264- AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1265- [lt_cv_apple_cc_single_mod=no
1266- if test -z "${LT_MULTI_MODULE}"; then
1267- # By default we will add the -single_module flag. You can override
1268- # by either setting the environment variable LT_MULTI_MODULE
1269- # non-empty at configure time, or by adding -multi_module to the
1270- # link flags.
1271- rm -rf libconftest.dylib*
1272- echo "int foo(void){return 1;}" > conftest.c
1273- echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1274--dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1275- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1276- -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1277- _lt_result=$?
1278- # If there is a non-empty error log, and "single_module"
1279- # appears in it, assume the flag caused a linker warning
1280- if test -s conftest.err && $GREP single_module conftest.err; then
1281- cat conftest.err >&AS_MESSAGE_LOG_FD
1282- # Otherwise, if the output was created with a 0 exit code from
1283- # the compiler, it worked.
1284- elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1285- lt_cv_apple_cc_single_mod=yes
1286- else
1287- cat conftest.err >&AS_MESSAGE_LOG_FD
1288- fi
1289- rm -rf libconftest.dylib*
1290- rm -f conftest.*
1291- fi])
1292-
1293- AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1294- [lt_cv_ld_exported_symbols_list],
1295- [lt_cv_ld_exported_symbols_list=no
1296- save_LDFLAGS=$LDFLAGS
1297- echo "_main" > conftest.sym
1298- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1299- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1300- [lt_cv_ld_exported_symbols_list=yes],
1301- [lt_cv_ld_exported_symbols_list=no])
1302- LDFLAGS="$save_LDFLAGS"
1303- ])
1304-
1305- AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1306- [lt_cv_ld_force_load=no
1307- cat > conftest.c << _LT_EOF
1308-int forced_loaded() { return 2;}
1309-_LT_EOF
1310- echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1311- $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1312- echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1313- $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1314- echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1315- $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1316- cat > conftest.c << _LT_EOF
1317-int main() { return 0;}
1318-_LT_EOF
1319- echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1320- $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1321- _lt_result=$?
1322- if test -s conftest.err && $GREP force_load conftest.err; then
1323- cat conftest.err >&AS_MESSAGE_LOG_FD
1324- elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1325- lt_cv_ld_force_load=yes
1326- else
1327- cat conftest.err >&AS_MESSAGE_LOG_FD
1328- fi
1329- rm -f conftest.err libconftest.a conftest conftest.c
1330- rm -rf conftest.dSYM
1331- ])
1332- case $host_os in
1333- rhapsody* | darwin1.[[012]])
1334- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1335- darwin1.*)
1336- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1337- darwin*) # darwin 5.x on
1338- # if running on 10.5 or later, the deployment target defaults
1339- # to the OS version, if on x86, and 10.4, the deployment
1340- # target defaults to 10.4. Don't you love it?
1341- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1342- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1343- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1344- 10.[[012]]*)
1345- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1346- 10.*)
1347- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1348- esac
1349- ;;
1350- esac
1351- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1352- _lt_dar_single_mod='$single_module'
1353- fi
1354- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1355- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1356- else
1357- _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1358- fi
1359- if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1360- _lt_dsymutil='~$DSYMUTIL $lib || :'
1361- else
1362- _lt_dsymutil=
1363- fi
1364- ;;
1365- esac
1366-])
1367-
1368-
1369-# _LT_DARWIN_LINKER_FEATURES([TAG])
1370-# ---------------------------------
1371-# Checks for linker and compiler features on darwin
1372-m4_defun([_LT_DARWIN_LINKER_FEATURES],
1373-[
1374- m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1375- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1376- _LT_TAGVAR(hardcode_direct, $1)=no
1377- _LT_TAGVAR(hardcode_automatic, $1)=yes
1378- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1379- if test "$lt_cv_ld_force_load" = "yes"; then
1380- _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\"`'
1381- m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1382- [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1383- else
1384- _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1385- fi
1386- _LT_TAGVAR(link_all_deplibs, $1)=yes
1387- _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1388- case $cc_basename in
1389- ifort*) _lt_dar_can_shared=yes ;;
1390- *) _lt_dar_can_shared=$GCC ;;
1391- esac
1392- if test "$_lt_dar_can_shared" = "yes"; then
1393- output_verbose_link_cmd=func_echo_all
1394- _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}"
1395- _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1396- _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}"
1397- _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1398- m4_if([$1], [CXX],
1399-[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1400- _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1401- _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1402- fi
1403-],[])
1404- else
1405- _LT_TAGVAR(ld_shlibs, $1)=no
1406- fi
1407-])
1408-
1409-# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1410-# ----------------------------------
1411-# Links a minimal program and checks the executable
1412-# for the system default hardcoded library path. In most cases,
1413-# this is /usr/lib:/lib, but when the MPI compilers are used
1414-# the location of the communication and MPI libs are included too.
1415-# If we don't find anything, use the default library path according
1416-# to the aix ld manual.
1417-# Store the results from the different compilers for each TAGNAME.
1418-# Allow to override them for all tags through lt_cv_aix_libpath.
1419-m4_defun([_LT_SYS_MODULE_PATH_AIX],
1420-[m4_require([_LT_DECL_SED])dnl
1421-if test "${lt_cv_aix_libpath+set}" = set; then
1422- aix_libpath=$lt_cv_aix_libpath
1423-else
1424- AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1425- [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1426- lt_aix_libpath_sed='[
1427- /Import File Strings/,/^$/ {
1428- /^0/ {
1429- s/^0 *\([^ ]*\) *$/\1/
1430- p
1431- }
1432- }]'
1433- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1434- # Check for a 64-bit object if we didn't find anything.
1435- if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1436- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1437- fi],[])
1438- if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1439- _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1440- fi
1441- ])
1442- aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1443-fi
1444-])# _LT_SYS_MODULE_PATH_AIX
1445-
1446-
1447-# _LT_SHELL_INIT(ARG)
1448-# -------------------
1449-m4_define([_LT_SHELL_INIT],
1450-[m4_divert_text([M4SH-INIT], [$1
1451-])])# _LT_SHELL_INIT
1452-
1453-
1454-
1455-# _LT_PROG_ECHO_BACKSLASH
1456-# -----------------------
1457-# Find how we can fake an echo command that does not interpret backslash.
1458-# In particular, with Autoconf 2.60 or later we add some code to the start
1459-# of the generated configure script which will find a shell with a builtin
1460-# printf (which we can use as an echo command).
1461-m4_defun([_LT_PROG_ECHO_BACKSLASH],
1462-[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1463-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1464-ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1465-
1466-AC_MSG_CHECKING([how to print strings])
1467-# Test print first, because it will be a builtin if present.
1468-if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1469- test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1470- ECHO='print -r --'
1471-elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1472- ECHO='printf %s\n'
1473-else
1474- # Use this function as a fallback that always works.
1475- func_fallback_echo ()
1476- {
1477- eval 'cat <<_LTECHO_EOF
1478-$[]1
1479-_LTECHO_EOF'
1480- }
1481- ECHO='func_fallback_echo'
1482-fi
1483-
1484-# func_echo_all arg...
1485-# Invoke $ECHO with all args, space-separated.
1486-func_echo_all ()
1487-{
1488- $ECHO "$*"
1489-}
1490-
1491-case "$ECHO" in
1492- printf*) AC_MSG_RESULT([printf]) ;;
1493- print*) AC_MSG_RESULT([print -r]) ;;
1494- *) AC_MSG_RESULT([cat]) ;;
1495-esac
1496-
1497-m4_ifdef([_AS_DETECT_SUGGESTED],
1498-[_AS_DETECT_SUGGESTED([
1499- test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1500- ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1501- ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1502- ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1503- PATH=/empty FPATH=/empty; export PATH FPATH
1504- test "X`printf %s $ECHO`" = "X$ECHO" \
1505- || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1506-
1507-_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1508-_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1509-])# _LT_PROG_ECHO_BACKSLASH
1510-
1511-
1512-# _LT_WITH_SYSROOT
1513-# ----------------
1514-AC_DEFUN([_LT_WITH_SYSROOT],
1515-[AC_MSG_CHECKING([for sysroot])
1516-AC_ARG_WITH([sysroot],
1517-[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1518- (or the compiler's sysroot if not specified).],
1519-[], [with_sysroot=no])
1520-
1521-dnl lt_sysroot will always be passed unquoted. We quote it here
1522-dnl in case the user passed a directory name.
1523-lt_sysroot=
1524-case ${with_sysroot} in #(
1525- yes)
1526- if test "$GCC" = yes; then
1527- lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1528- fi
1529- ;; #(
1530- /*)
1531- lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1532- ;; #(
1533- no|'')
1534- ;; #(
1535- *)
1536- AC_MSG_RESULT([${with_sysroot}])
1537- AC_MSG_ERROR([The sysroot must be an absolute path.])
1538- ;;
1539-esac
1540-
1541- AC_MSG_RESULT([${lt_sysroot:-no}])
1542-_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1543-[dependent libraries, and in which our libraries should be installed.])])
1544-
1545-# _LT_ENABLE_LOCK
1546-# ---------------
1547-m4_defun([_LT_ENABLE_LOCK],
1548-[AC_ARG_ENABLE([libtool-lock],
1549- [AS_HELP_STRING([--disable-libtool-lock],
1550- [avoid locking (might break parallel builds)])])
1551-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1552-
1553-# Some flags need to be propagated to the compiler or linker for good
1554-# libtool support.
1555-case $host in
1556-ia64-*-hpux*)
1557- # Find out which ABI we are using.
1558- echo 'int i;' > conftest.$ac_ext
1559- if AC_TRY_EVAL(ac_compile); then
1560- case `/usr/bin/file conftest.$ac_objext` in
1561- *ELF-32*)
1562- HPUX_IA64_MODE="32"
1563- ;;
1564- *ELF-64*)
1565- HPUX_IA64_MODE="64"
1566- ;;
1567- esac
1568- fi
1569- rm -rf conftest*
1570- ;;
1571-*-*-irix6*)
1572- # Find out which ABI we are using.
1573- echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1574- if AC_TRY_EVAL(ac_compile); then
1575- if test "$lt_cv_prog_gnu_ld" = yes; then
1576- case `/usr/bin/file conftest.$ac_objext` in
1577- *32-bit*)
1578- LD="${LD-ld} -melf32bsmip"
1579- ;;
1580- *N32*)
1581- LD="${LD-ld} -melf32bmipn32"
1582- ;;
1583- *64-bit*)
1584- LD="${LD-ld} -melf64bmip"
1585- ;;
1586- esac
1587- else
1588- case `/usr/bin/file conftest.$ac_objext` in
1589- *32-bit*)
1590- LD="${LD-ld} -32"
1591- ;;
1592- *N32*)
1593- LD="${LD-ld} -n32"
1594- ;;
1595- *64-bit*)
1596- LD="${LD-ld} -64"
1597- ;;
1598- esac
1599- fi
1600- fi
1601- rm -rf conftest*
1602- ;;
1603-
1604-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1605-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1606- # Find out which ABI we are using.
1607- echo 'int i;' > conftest.$ac_ext
1608- if AC_TRY_EVAL(ac_compile); then
1609- case `/usr/bin/file conftest.o` in
1610- *32-bit*)
1611- case $host in
1612- x86_64-*kfreebsd*-gnu)
1613- LD="${LD-ld} -m elf_i386_fbsd"
1614- ;;
1615- x86_64-*linux*)
1616- LD="${LD-ld} -m elf_i386"
1617- ;;
1618- ppc64-*linux*|powerpc64-*linux*)
1619- LD="${LD-ld} -m elf32ppclinux"
1620- ;;
1621- s390x-*linux*)
1622- LD="${LD-ld} -m elf_s390"
1623- ;;
1624- sparc64-*linux*)
1625- LD="${LD-ld} -m elf32_sparc"
1626- ;;
1627- esac
1628- ;;
1629- *64-bit*)
1630- case $host in
1631- x86_64-*kfreebsd*-gnu)
1632- LD="${LD-ld} -m elf_x86_64_fbsd"
1633- ;;
1634- x86_64-*linux*)
1635- LD="${LD-ld} -m elf_x86_64"
1636- ;;
1637- ppc*-*linux*|powerpc*-*linux*)
1638- LD="${LD-ld} -m elf64ppc"
1639- ;;
1640- s390*-*linux*|s390*-*tpf*)
1641- LD="${LD-ld} -m elf64_s390"
1642- ;;
1643- sparc*-*linux*)
1644- LD="${LD-ld} -m elf64_sparc"
1645- ;;
1646- esac
1647- ;;
1648- esac
1649- fi
1650- rm -rf conftest*
1651- ;;
1652-
1653-*-*-sco3.2v5*)
1654- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1655- SAVE_CFLAGS="$CFLAGS"
1656- CFLAGS="$CFLAGS -belf"
1657- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1658- [AC_LANG_PUSH(C)
1659- AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1660- AC_LANG_POP])
1661- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1662- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1663- CFLAGS="$SAVE_CFLAGS"
1664- fi
1665- ;;
1666-*-*solaris*)
1667- # Find out which ABI we are using.
1668- echo 'int i;' > conftest.$ac_ext
1669- if AC_TRY_EVAL(ac_compile); then
1670- case `/usr/bin/file conftest.o` in
1671- *64-bit*)
1672- case $lt_cv_prog_gnu_ld in
1673- yes*)
1674- case $host in
1675- i?86-*-solaris*)
1676- LD="${LD-ld} -m elf_x86_64"
1677- ;;
1678- sparc*-*-solaris*)
1679- LD="${LD-ld} -m elf64_sparc"
1680- ;;
1681- esac
1682- # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1683- if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1684- LD="${LD-ld}_sol2"
1685- fi
1686- ;;
1687- *)
1688- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1689- LD="${LD-ld} -64"
1690- fi
1691- ;;
1692- esac
1693- ;;
1694- esac
1695- fi
1696- rm -rf conftest*
1697- ;;
1698-esac
1699-
1700-need_locks="$enable_libtool_lock"
1701-])# _LT_ENABLE_LOCK
1702-
1703-
1704-# _LT_PROG_AR
1705-# -----------
1706-m4_defun([_LT_PROG_AR],
1707-[AC_CHECK_TOOLS(AR, [ar], false)
1708-: ${AR=ar}
1709-: ${AR_FLAGS=cru}
1710-_LT_DECL([], [AR], [1], [The archiver])
1711-_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1712-
1713-AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1714- [lt_cv_ar_at_file=no
1715- AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1716- [echo conftest.$ac_objext > conftest.lst
1717- lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1718- AC_TRY_EVAL([lt_ar_try])
1719- if test "$ac_status" -eq 0; then
1720- # Ensure the archiver fails upon bogus file names.
1721- rm -f conftest.$ac_objext libconftest.a
1722- AC_TRY_EVAL([lt_ar_try])
1723- if test "$ac_status" -ne 0; then
1724- lt_cv_ar_at_file=@
1725- fi
1726- fi
1727- rm -f conftest.* libconftest.a
1728- ])
1729- ])
1730-
1731-if test "x$lt_cv_ar_at_file" = xno; then
1732- archiver_list_spec=
1733-else
1734- archiver_list_spec=$lt_cv_ar_at_file
1735-fi
1736-_LT_DECL([], [archiver_list_spec], [1],
1737- [How to feed a file listing to the archiver])
1738-])# _LT_PROG_AR
1739-
1740-
1741-# _LT_CMD_OLD_ARCHIVE
1742-# -------------------
1743-m4_defun([_LT_CMD_OLD_ARCHIVE],
1744-[_LT_PROG_AR
1745-
1746-AC_CHECK_TOOL(STRIP, strip, :)
1747-test -z "$STRIP" && STRIP=:
1748-_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1749-
1750-AC_CHECK_TOOL(RANLIB, ranlib, :)
1751-test -z "$RANLIB" && RANLIB=:
1752-_LT_DECL([], [RANLIB], [1],
1753- [Commands used to install an old-style archive])
1754-
1755-# Determine commands to create old-style static archives.
1756-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1757-old_postinstall_cmds='chmod 644 $oldlib'
1758-old_postuninstall_cmds=
1759-
1760-if test -n "$RANLIB"; then
1761- case $host_os in
1762- openbsd*)
1763- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1764- ;;
1765- *)
1766- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1767- ;;
1768- esac
1769- old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1770-fi
1771-
1772-case $host_os in
1773- darwin*)
1774- lock_old_archive_extraction=yes ;;
1775- *)
1776- lock_old_archive_extraction=no ;;
1777-esac
1778-_LT_DECL([], [old_postinstall_cmds], [2])
1779-_LT_DECL([], [old_postuninstall_cmds], [2])
1780-_LT_TAGDECL([], [old_archive_cmds], [2],
1781- [Commands used to build an old-style archive])
1782-_LT_DECL([], [lock_old_archive_extraction], [0],
1783- [Whether to use a lock for old archive extraction])
1784-])# _LT_CMD_OLD_ARCHIVE
1785-
1786-
1787-# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1788-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1789-# ----------------------------------------------------------------
1790-# Check whether the given compiler option works
1791-AC_DEFUN([_LT_COMPILER_OPTION],
1792-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1793-m4_require([_LT_DECL_SED])dnl
1794-AC_CACHE_CHECK([$1], [$2],
1795- [$2=no
1796- m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1797- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1798- lt_compiler_flag="$3"
1799- # Insert the option either (1) after the last *FLAGS variable, or
1800- # (2) before a word containing "conftest.", or (3) at the end.
1801- # Note that $ac_compile itself does not contain backslashes and begins
1802- # with a dollar sign (not a hyphen), so the echo should work correctly.
1803- # The option is referenced via a variable to avoid confusing sed.
1804- lt_compile=`echo "$ac_compile" | $SED \
1805- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1806- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1807- -e 's:$: $lt_compiler_flag:'`
1808- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1809- (eval "$lt_compile" 2>conftest.err)
1810- ac_status=$?
1811- cat conftest.err >&AS_MESSAGE_LOG_FD
1812- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1813- if (exit $ac_status) && test -s "$ac_outfile"; then
1814- # The compiler can only warn and ignore the option if not recognized
1815- # So say no if there are warnings other than the usual output.
1816- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1817- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1818- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1819- $2=yes
1820- fi
1821- fi
1822- $RM conftest*
1823-])
1824-
1825-if test x"[$]$2" = xyes; then
1826- m4_if([$5], , :, [$5])
1827-else
1828- m4_if([$6], , :, [$6])
1829-fi
1830-])# _LT_COMPILER_OPTION
1831-
1832-# Old name:
1833-AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1834-dnl aclocal-1.4 backwards compatibility:
1835-dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1836-
1837-
1838-# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1839-# [ACTION-SUCCESS], [ACTION-FAILURE])
1840-# ----------------------------------------------------
1841-# Check whether the given linker option works
1842-AC_DEFUN([_LT_LINKER_OPTION],
1843-[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1844-m4_require([_LT_DECL_SED])dnl
1845-AC_CACHE_CHECK([$1], [$2],
1846- [$2=no
1847- save_LDFLAGS="$LDFLAGS"
1848- LDFLAGS="$LDFLAGS $3"
1849- echo "$lt_simple_link_test_code" > conftest.$ac_ext
1850- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1851- # The linker can only warn and ignore the option if not recognized
1852- # So say no if there are warnings
1853- if test -s conftest.err; then
1854- # Append any errors to the config.log.
1855- cat conftest.err 1>&AS_MESSAGE_LOG_FD
1856- $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1857- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1858- if diff conftest.exp conftest.er2 >/dev/null; then
1859- $2=yes
1860- fi
1861- else
1862- $2=yes
1863- fi
1864- fi
1865- $RM -r conftest*
1866- LDFLAGS="$save_LDFLAGS"
1867-])
1868-
1869-if test x"[$]$2" = xyes; then
1870- m4_if([$4], , :, [$4])
1871-else
1872- m4_if([$5], , :, [$5])
1873-fi
1874-])# _LT_LINKER_OPTION
1875-
1876-# Old name:
1877-AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1878-dnl aclocal-1.4 backwards compatibility:
1879-dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1880-
1881-
1882-# LT_CMD_MAX_LEN
1883-#---------------
1884-AC_DEFUN([LT_CMD_MAX_LEN],
1885-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1886-# find the maximum length of command line arguments
1887-AC_MSG_CHECKING([the maximum length of command line arguments])
1888-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1889- i=0
1890- teststring="ABCD"
1891-
1892- case $build_os in
1893- msdosdjgpp*)
1894- # On DJGPP, this test can blow up pretty badly due to problems in libc
1895- # (any single argument exceeding 2000 bytes causes a buffer overrun
1896- # during glob expansion). Even if it were fixed, the result of this
1897- # check would be larger than it should be.
1898- lt_cv_sys_max_cmd_len=12288; # 12K is about right
1899- ;;
1900-
1901- gnu*)
1902- # Under GNU Hurd, this test is not required because there is
1903- # no limit to the length of command line arguments.
1904- # Libtool will interpret -1 as no limit whatsoever
1905- lt_cv_sys_max_cmd_len=-1;
1906- ;;
1907-
1908- cygwin* | mingw* | cegcc*)
1909- # On Win9x/ME, this test blows up -- it succeeds, but takes
1910- # about 5 minutes as the teststring grows exponentially.
1911- # Worse, since 9x/ME are not pre-emptively multitasking,
1912- # you end up with a "frozen" computer, even though with patience
1913- # the test eventually succeeds (with a max line length of 256k).
1914- # Instead, let's just punt: use the minimum linelength reported by
1915- # all of the supported platforms: 8192 (on NT/2K/XP).
1916- lt_cv_sys_max_cmd_len=8192;
1917- ;;
1918-
1919- mint*)
1920- # On MiNT this can take a long time and run out of memory.
1921- lt_cv_sys_max_cmd_len=8192;
1922- ;;
1923-
1924- amigaos*)
1925- # On AmigaOS with pdksh, this test takes hours, literally.
1926- # So we just punt and use a minimum line length of 8192.
1927- lt_cv_sys_max_cmd_len=8192;
1928- ;;
1929-
1930- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1931- # This has been around since 386BSD, at least. Likely further.
1932- if test -x /sbin/sysctl; then
1933- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1934- elif test -x /usr/sbin/sysctl; then
1935- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1936- else
1937- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1938- fi
1939- # And add a safety zone
1940- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1941- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1942- ;;
1943-
1944- interix*)
1945- # We know the value 262144 and hardcode it with a safety zone (like BSD)
1946- lt_cv_sys_max_cmd_len=196608
1947- ;;
1948-
1949- os2*)
1950- # The test takes a long time on OS/2.
1951- lt_cv_sys_max_cmd_len=8192
1952- ;;
1953-
1954- osf*)
1955- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1956- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1957- # nice to cause kernel panics so lets avoid the loop below.
1958- # First set a reasonable default.
1959- lt_cv_sys_max_cmd_len=16384
1960- #
1961- if test -x /sbin/sysconfig; then
1962- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1963- *1*) lt_cv_sys_max_cmd_len=-1 ;;
1964- esac
1965- fi
1966- ;;
1967- sco3.2v5*)
1968- lt_cv_sys_max_cmd_len=102400
1969- ;;
1970- sysv5* | sco5v6* | sysv4.2uw2*)
1971- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1972- if test -n "$kargmax"; then
1973- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1974- else
1975- lt_cv_sys_max_cmd_len=32768
1976- fi
1977- ;;
1978- *)
1979- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1980- if test -n "$lt_cv_sys_max_cmd_len"; then
1981- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1982- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1983- else
1984- # Make teststring a little bigger before we do anything with it.
1985- # a 1K string should be a reasonable start.
1986- for i in 1 2 3 4 5 6 7 8 ; do
1987- teststring=$teststring$teststring
1988- done
1989- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1990- # If test is not a shell built-in, we'll probably end up computing a
1991- # maximum length that is only half of the actual maximum length, but
1992- # we can't tell.
1993- while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1994- = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1995- test $i != 17 # 1/2 MB should be enough
1996- do
1997- i=`expr $i + 1`
1998- teststring=$teststring$teststring
1999- done
2000- # Only check the string length outside the loop.
2001- lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2002- teststring=
2003- # Add a significant safety factor because C++ compilers can tack on
2004- # massive amounts of additional arguments before passing them to the
2005- # linker. It appears as though 1/2 is a usable value.
2006- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2007- fi
2008- ;;
2009- esac
2010-])
2011-if test -n $lt_cv_sys_max_cmd_len ; then
2012- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2013-else
2014- AC_MSG_RESULT(none)
2015-fi
2016-max_cmd_len=$lt_cv_sys_max_cmd_len
2017-_LT_DECL([], [max_cmd_len], [0],
2018- [What is the maximum length of a command?])
2019-])# LT_CMD_MAX_LEN
2020-
2021-# Old name:
2022-AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2023-dnl aclocal-1.4 backwards compatibility:
2024-dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2025-
2026-
2027-# _LT_HEADER_DLFCN
2028-# ----------------
2029-m4_defun([_LT_HEADER_DLFCN],
2030-[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2031-])# _LT_HEADER_DLFCN
2032-
2033-
2034-# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2035-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2036-# ----------------------------------------------------------------
2037-m4_defun([_LT_TRY_DLOPEN_SELF],
2038-[m4_require([_LT_HEADER_DLFCN])dnl
2039-if test "$cross_compiling" = yes; then :
2040- [$4]
2041-else
2042- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2043- lt_status=$lt_dlunknown
2044- cat > conftest.$ac_ext <<_LT_EOF
2045-[#line $LINENO "configure"
2046-#include "confdefs.h"
2047-
2048-#if HAVE_DLFCN_H
2049-#include <dlfcn.h>
2050-#endif
2051-
2052-#include <stdio.h>
2053-
2054-#ifdef RTLD_GLOBAL
2055-# define LT_DLGLOBAL RTLD_GLOBAL
2056-#else
2057-# ifdef DL_GLOBAL
2058-# define LT_DLGLOBAL DL_GLOBAL
2059-# else
2060-# define LT_DLGLOBAL 0
2061-# endif
2062-#endif
2063-
2064-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2065- find out it does not work in some platform. */
2066-#ifndef LT_DLLAZY_OR_NOW
2067-# ifdef RTLD_LAZY
2068-# define LT_DLLAZY_OR_NOW RTLD_LAZY
2069-# else
2070-# ifdef DL_LAZY
2071-# define LT_DLLAZY_OR_NOW DL_LAZY
2072-# else
2073-# ifdef RTLD_NOW
2074-# define LT_DLLAZY_OR_NOW RTLD_NOW
2075-# else
2076-# ifdef DL_NOW
2077-# define LT_DLLAZY_OR_NOW DL_NOW
2078-# else
2079-# define LT_DLLAZY_OR_NOW 0
2080-# endif
2081-# endif
2082-# endif
2083-# endif
2084-#endif
2085-
2086-/* When -fvisbility=hidden is used, assume the code has been annotated
2087- correspondingly for the symbols needed. */
2088-#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2089-int fnord () __attribute__((visibility("default")));
2090-#endif
2091-
2092-int fnord () { return 42; }
2093-int main ()
2094-{
2095- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2096- int status = $lt_dlunknown;
2097-
2098- if (self)
2099- {
2100- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2101- else
2102- {
2103- if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2104- else puts (dlerror ());
2105- }
2106- /* dlclose (self); */
2107- }
2108- else
2109- puts (dlerror ());
2110-
2111- return status;
2112-}]
2113-_LT_EOF
2114- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2115- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2116- lt_status=$?
2117- case x$lt_status in
2118- x$lt_dlno_uscore) $1 ;;
2119- x$lt_dlneed_uscore) $2 ;;
2120- x$lt_dlunknown|x*) $3 ;;
2121- esac
2122- else :
2123- # compilation failed
2124- $3
2125- fi
2126-fi
2127-rm -fr conftest*
2128-])# _LT_TRY_DLOPEN_SELF
2129-
2130-
2131-# LT_SYS_DLOPEN_SELF
2132-# ------------------
2133-AC_DEFUN([LT_SYS_DLOPEN_SELF],
2134-[m4_require([_LT_HEADER_DLFCN])dnl
2135-if test "x$enable_dlopen" != xyes; then
2136- enable_dlopen=unknown
2137- enable_dlopen_self=unknown
2138- enable_dlopen_self_static=unknown
2139-else
2140- lt_cv_dlopen=no
2141- lt_cv_dlopen_libs=
2142-
2143- case $host_os in
2144- beos*)
2145- lt_cv_dlopen="load_add_on"
2146- lt_cv_dlopen_libs=
2147- lt_cv_dlopen_self=yes
2148- ;;
2149-
2150- mingw* | pw32* | cegcc*)
2151- lt_cv_dlopen="LoadLibrary"
2152- lt_cv_dlopen_libs=
2153- ;;
2154-
2155- cygwin*)
2156- lt_cv_dlopen="dlopen"
2157- lt_cv_dlopen_libs=
2158- ;;
2159-
2160- darwin*)
2161- # if libdl is installed we need to link against it
2162- AC_CHECK_LIB([dl], [dlopen],
2163- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2164- lt_cv_dlopen="dyld"
2165- lt_cv_dlopen_libs=
2166- lt_cv_dlopen_self=yes
2167- ])
2168- ;;
2169-
2170- *)
2171- AC_CHECK_FUNC([shl_load],
2172- [lt_cv_dlopen="shl_load"],
2173- [AC_CHECK_LIB([dld], [shl_load],
2174- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2175- [AC_CHECK_FUNC([dlopen],
2176- [lt_cv_dlopen="dlopen"],
2177- [AC_CHECK_LIB([dl], [dlopen],
2178- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2179- [AC_CHECK_LIB([svld], [dlopen],
2180- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2181- [AC_CHECK_LIB([dld], [dld_link],
2182- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2183- ])
2184- ])
2185- ])
2186- ])
2187- ])
2188- ;;
2189- esac
2190-
2191- if test "x$lt_cv_dlopen" != xno; then
2192- enable_dlopen=yes
2193- else
2194- enable_dlopen=no
2195- fi
2196-
2197- case $lt_cv_dlopen in
2198- dlopen)
2199- save_CPPFLAGS="$CPPFLAGS"
2200- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2201-
2202- save_LDFLAGS="$LDFLAGS"
2203- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2204-
2205- save_LIBS="$LIBS"
2206- LIBS="$lt_cv_dlopen_libs $LIBS"
2207-
2208- AC_CACHE_CHECK([whether a program can dlopen itself],
2209- lt_cv_dlopen_self, [dnl
2210- _LT_TRY_DLOPEN_SELF(
2211- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2212- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2213- ])
2214-
2215- if test "x$lt_cv_dlopen_self" = xyes; then
2216- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2217- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2218- lt_cv_dlopen_self_static, [dnl
2219- _LT_TRY_DLOPEN_SELF(
2220- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2221- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2222- ])
2223- fi
2224-
2225- CPPFLAGS="$save_CPPFLAGS"
2226- LDFLAGS="$save_LDFLAGS"
2227- LIBS="$save_LIBS"
2228- ;;
2229- esac
2230-
2231- case $lt_cv_dlopen_self in
2232- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2233- *) enable_dlopen_self=unknown ;;
2234- esac
2235-
2236- case $lt_cv_dlopen_self_static in
2237- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2238- *) enable_dlopen_self_static=unknown ;;
2239- esac
2240-fi
2241-_LT_DECL([dlopen_support], [enable_dlopen], [0],
2242- [Whether dlopen is supported])
2243-_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2244- [Whether dlopen of programs is supported])
2245-_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2246- [Whether dlopen of statically linked programs is supported])
2247-])# LT_SYS_DLOPEN_SELF
2248-
2249-# Old name:
2250-AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2251-dnl aclocal-1.4 backwards compatibility:
2252-dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2253-
2254-
2255-# _LT_COMPILER_C_O([TAGNAME])
2256-# ---------------------------
2257-# Check to see if options -c and -o are simultaneously supported by compiler.
2258-# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2259-m4_defun([_LT_COMPILER_C_O],
2260-[m4_require([_LT_DECL_SED])dnl
2261-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2262-m4_require([_LT_TAG_COMPILER])dnl
2263-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2264- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2265- [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2266- $RM -r conftest 2>/dev/null
2267- mkdir conftest
2268- cd conftest
2269- mkdir out
2270- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2271-
2272- lt_compiler_flag="-o out/conftest2.$ac_objext"
2273- # Insert the option either (1) after the last *FLAGS variable, or
2274- # (2) before a word containing "conftest.", or (3) at the end.
2275- # Note that $ac_compile itself does not contain backslashes and begins
2276- # with a dollar sign (not a hyphen), so the echo should work correctly.
2277- lt_compile=`echo "$ac_compile" | $SED \
2278- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2279- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2280- -e 's:$: $lt_compiler_flag:'`
2281- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2282- (eval "$lt_compile" 2>out/conftest.err)
2283- ac_status=$?
2284- cat out/conftest.err >&AS_MESSAGE_LOG_FD
2285- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2286- if (exit $ac_status) && test -s out/conftest2.$ac_objext
2287- then
2288- # The compiler can only warn and ignore the option if not recognized
2289- # So say no if there are warnings
2290- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2291- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2292- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2293- _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2294- fi
2295- fi
2296- chmod u+w . 2>&AS_MESSAGE_LOG_FD
2297- $RM conftest*
2298- # SGI C++ compiler will create directory out/ii_files/ for
2299- # template instantiation
2300- test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2301- $RM out/* && rmdir out
2302- cd ..
2303- $RM -r conftest
2304- $RM conftest*
2305-])
2306-_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2307- [Does compiler simultaneously support -c and -o options?])
2308-])# _LT_COMPILER_C_O
2309-
2310-
2311-# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2312-# ----------------------------------
2313-# Check to see if we can do hard links to lock some files if needed
2314-m4_defun([_LT_COMPILER_FILE_LOCKS],
2315-[m4_require([_LT_ENABLE_LOCK])dnl
2316-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2317-_LT_COMPILER_C_O([$1])
2318-
2319-hard_links="nottested"
2320-if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2321- # do not overwrite the value of need_locks provided by the user
2322- AC_MSG_CHECKING([if we can lock with hard links])
2323- hard_links=yes
2324- $RM conftest*
2325- ln conftest.a conftest.b 2>/dev/null && hard_links=no
2326- touch conftest.a
2327- ln conftest.a conftest.b 2>&5 || hard_links=no
2328- ln conftest.a conftest.b 2>/dev/null && hard_links=no
2329- AC_MSG_RESULT([$hard_links])
2330- if test "$hard_links" = no; then
2331- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2332- need_locks=warn
2333- fi
2334-else
2335- need_locks=no
2336-fi
2337-_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2338-])# _LT_COMPILER_FILE_LOCKS
2339-
2340-
2341-# _LT_CHECK_OBJDIR
2342-# ----------------
2343-m4_defun([_LT_CHECK_OBJDIR],
2344-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2345-[rm -f .libs 2>/dev/null
2346-mkdir .libs 2>/dev/null
2347-if test -d .libs; then
2348- lt_cv_objdir=.libs
2349-else
2350- # MS-DOS does not allow filenames that begin with a dot.
2351- lt_cv_objdir=_libs
2352-fi
2353-rmdir .libs 2>/dev/null])
2354-objdir=$lt_cv_objdir
2355-_LT_DECL([], [objdir], [0],
2356- [The name of the directory that contains temporary libtool files])dnl
2357-m4_pattern_allow([LT_OBJDIR])dnl
2358-AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2359- [Define to the sub-directory in which libtool stores uninstalled libraries.])
2360-])# _LT_CHECK_OBJDIR
2361-
2362-
2363-# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2364-# --------------------------------------
2365-# Check hardcoding attributes.
2366-m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2367-[AC_MSG_CHECKING([how to hardcode library paths into programs])
2368-_LT_TAGVAR(hardcode_action, $1)=
2369-if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2370- test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2371- test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2372-
2373- # We can hardcode non-existent directories.
2374- if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2375- # If the only mechanism to avoid hardcoding is shlibpath_var, we
2376- # have to relink, otherwise we might link with an installed library
2377- # when we should be linking with a yet-to-be-installed one
2378- ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2379- test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2380- # Linking always hardcodes the temporary library directory.
2381- _LT_TAGVAR(hardcode_action, $1)=relink
2382- else
2383- # We can link without hardcoding, and we can hardcode nonexisting dirs.
2384- _LT_TAGVAR(hardcode_action, $1)=immediate
2385- fi
2386-else
2387- # We cannot hardcode anything, or else we can only hardcode existing
2388- # directories.
2389- _LT_TAGVAR(hardcode_action, $1)=unsupported
2390-fi
2391-AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2392-
2393-if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2394- test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2395- # Fast installation is not supported
2396- enable_fast_install=no
2397-elif test "$shlibpath_overrides_runpath" = yes ||
2398- test "$enable_shared" = no; then
2399- # Fast installation is not necessary
2400- enable_fast_install=needless
2401-fi
2402-_LT_TAGDECL([], [hardcode_action], [0],
2403- [How to hardcode a shared library path into an executable])
2404-])# _LT_LINKER_HARDCODE_LIBPATH
2405-
2406-
2407-# _LT_CMD_STRIPLIB
2408-# ----------------
2409-m4_defun([_LT_CMD_STRIPLIB],
2410-[m4_require([_LT_DECL_EGREP])
2411-striplib=
2412-old_striplib=
2413-AC_MSG_CHECKING([whether stripping libraries is possible])
2414-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2415- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2416- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2417- AC_MSG_RESULT([yes])
2418-else
2419-# FIXME - insert some real tests, host_os isn't really good enough
2420- case $host_os in
2421- darwin*)
2422- if test -n "$STRIP" ; then
2423- striplib="$STRIP -x"
2424- old_striplib="$STRIP -S"
2425- AC_MSG_RESULT([yes])
2426- else
2427- AC_MSG_RESULT([no])
2428- fi
2429- ;;
2430- *)
2431- AC_MSG_RESULT([no])
2432- ;;
2433- esac
2434-fi
2435-_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2436-_LT_DECL([], [striplib], [1])
2437-])# _LT_CMD_STRIPLIB
2438-
2439-
2440-# _LT_SYS_DYNAMIC_LINKER([TAG])
2441-# -----------------------------
2442-# PORTME Fill in your ld.so characteristics
2443-m4_defun([_LT_SYS_DYNAMIC_LINKER],
2444-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2445-m4_require([_LT_DECL_EGREP])dnl
2446-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2447-m4_require([_LT_DECL_OBJDUMP])dnl
2448-m4_require([_LT_DECL_SED])dnl
2449-m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2450-AC_MSG_CHECKING([dynamic linker characteristics])
2451-m4_if([$1],
2452- [], [
2453-if test "$GCC" = yes; then
2454- case $host_os in
2455- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2456- *) lt_awk_arg="/^libraries:/" ;;
2457- esac
2458- case $host_os in
2459- mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2460- *) lt_sed_strip_eq="s,=/,/,g" ;;
2461- esac
2462- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2463- case $lt_search_path_spec in
2464- *\;*)
2465- # if the path contains ";" then we assume it to be the separator
2466- # otherwise default to the standard path separator (i.e. ":") - it is
2467- # assumed that no part of a normal pathname contains ";" but that should
2468- # okay in the real world where ";" in dirpaths is itself problematic.
2469- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2470- ;;
2471- *)
2472- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2473- ;;
2474- esac
2475- # Ok, now we have the path, separated by spaces, we can step through it
2476- # and add multilib dir if necessary.
2477- lt_tmp_lt_search_path_spec=
2478- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2479- for lt_sys_path in $lt_search_path_spec; do
2480- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2481- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2482- else
2483- test -d "$lt_sys_path" && \
2484- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2485- fi
2486- done
2487- lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2488-BEGIN {RS=" "; FS="/|\n";} {
2489- lt_foo="";
2490- lt_count=0;
2491- for (lt_i = NF; lt_i > 0; lt_i--) {
2492- if ($lt_i != "" && $lt_i != ".") {
2493- if ($lt_i == "..") {
2494- lt_count++;
2495- } else {
2496- if (lt_count == 0) {
2497- lt_foo="/" $lt_i lt_foo;
2498- } else {
2499- lt_count--;
2500- }
2501- }
2502- }
2503- }
2504- if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2505- if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2506-}'`
2507- # AWK program above erroneously prepends '/' to C:/dos/paths
2508- # for these hosts.
2509- case $host_os in
2510- mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2511- $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2512- esac
2513- sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2514-else
2515- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2516-fi])
2517-library_names_spec=
2518-libname_spec='lib$name'
2519-soname_spec=
2520-shrext_cmds=".so"
2521-postinstall_cmds=
2522-postuninstall_cmds=
2523-finish_cmds=
2524-finish_eval=
2525-shlibpath_var=
2526-shlibpath_overrides_runpath=unknown
2527-version_type=none
2528-dynamic_linker="$host_os ld.so"
2529-sys_lib_dlsearch_path_spec="/lib /usr/lib"
2530-need_lib_prefix=unknown
2531-hardcode_into_libs=no
2532-
2533-# when you set need_version to no, make sure it does not cause -set_version
2534-# flags to be left without arguments
2535-need_version=unknown
2536-
2537-case $host_os in
2538-aix3*)
2539- version_type=linux # correct to gnu/linux during the next big refactor
2540- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2541- shlibpath_var=LIBPATH
2542-
2543- # AIX 3 has no versioning support, so we append a major version to the name.
2544- soname_spec='${libname}${release}${shared_ext}$major'
2545- ;;
2546-
2547-aix[[4-9]]*)
2548- version_type=linux # correct to gnu/linux during the next big refactor
2549- need_lib_prefix=no
2550- need_version=no
2551- hardcode_into_libs=yes
2552- if test "$host_cpu" = ia64; then
2553- # AIX 5 supports IA64
2554- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2555- shlibpath_var=LD_LIBRARY_PATH
2556- else
2557- # With GCC up to 2.95.x, collect2 would create an import file
2558- # for dependence libraries. The import file would start with
2559- # the line `#! .'. This would cause the generated library to
2560- # depend on `.', always an invalid library. This was fixed in
2561- # development snapshots of GCC prior to 3.0.
2562- case $host_os in
2563- aix4 | aix4.[[01]] | aix4.[[01]].*)
2564- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2565- echo ' yes '
2566- echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2567- :
2568- else
2569- can_build_shared=no
2570- fi
2571- ;;
2572- esac
2573- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2574- # soname into executable. Probably we can add versioning support to
2575- # collect2, so additional links can be useful in future.
2576- if test "$aix_use_runtimelinking" = yes; then
2577- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2578- # instead of lib<name>.a to let people know that these are not
2579- # typical AIX shared libraries.
2580- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2581- else
2582- # We preserve .a as extension for shared libraries through AIX4.2
2583- # and later when we are not doing run time linking.
2584- library_names_spec='${libname}${release}.a $libname.a'
2585- soname_spec='${libname}${release}${shared_ext}$major'
2586- fi
2587- shlibpath_var=LIBPATH
2588- fi
2589- ;;
2590-
2591-amigaos*)
2592- case $host_cpu in
2593- powerpc)
2594- # Since July 2007 AmigaOS4 officially supports .so libraries.
2595- # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2596- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2597- ;;
2598- m68k)
2599- library_names_spec='$libname.ixlibrary $libname.a'
2600- # Create ${libname}_ixlibrary.a entries in /sys/libs.
2601- 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'
2602- ;;
2603- esac
2604- ;;
2605-
2606-beos*)
2607- library_names_spec='${libname}${shared_ext}'
2608- dynamic_linker="$host_os ld.so"
2609- shlibpath_var=LIBRARY_PATH
2610- ;;
2611-
2612-bsdi[[45]]*)
2613- version_type=linux # correct to gnu/linux during the next big refactor
2614- need_version=no
2615- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2616- soname_spec='${libname}${release}${shared_ext}$major'
2617- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2618- shlibpath_var=LD_LIBRARY_PATH
2619- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2620- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2621- # the default ld.so.conf also contains /usr/contrib/lib and
2622- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2623- # libtool to hard-code these into programs
2624- ;;
2625-
2626-cygwin* | mingw* | pw32* | cegcc*)
2627- version_type=windows
2628- shrext_cmds=".dll"
2629- need_version=no
2630- need_lib_prefix=no
2631-
2632- case $GCC,$cc_basename in
2633- yes,*)
2634- # gcc
2635- library_names_spec='$libname.dll.a'
2636- # DLL is installed to $(libdir)/../bin by postinstall_cmds
2637- postinstall_cmds='base_file=`basename \${file}`~
2638- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2639- dldir=$destdir/`dirname \$dlpath`~
2640- test -d \$dldir || mkdir -p \$dldir~
2641- $install_prog $dir/$dlname \$dldir/$dlname~
2642- chmod a+x \$dldir/$dlname~
2643- if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2644- eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2645- fi'
2646- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2647- dlpath=$dir/\$dldll~
2648- $RM \$dlpath'
2649- shlibpath_overrides_runpath=yes
2650-
2651- case $host_os in
2652- cygwin*)
2653- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2654- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2655-m4_if([$1], [],[
2656- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2657- ;;
2658- mingw* | cegcc*)
2659- # MinGW DLLs use traditional 'lib' prefix
2660- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2661- ;;
2662- pw32*)
2663- # pw32 DLLs use 'pw' prefix rather than 'lib'
2664- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2665- ;;
2666- esac
2667- dynamic_linker='Win32 ld.exe'
2668- ;;
2669-
2670- *,cl*)
2671- # Native MSVC
2672- libname_spec='$name'
2673- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2674- library_names_spec='${libname}.dll.lib'
2675-
2676- case $build_os in
2677- mingw*)
2678- sys_lib_search_path_spec=
2679- lt_save_ifs=$IFS
2680- IFS=';'
2681- for lt_path in $LIB
2682- do
2683- IFS=$lt_save_ifs
2684- # Let DOS variable expansion print the short 8.3 style file name.
2685- lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2686- sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2687- done
2688- IFS=$lt_save_ifs
2689- # Convert to MSYS style.
2690- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2691- ;;
2692- cygwin*)
2693- # Convert to unix form, then to dos form, then back to unix form
2694- # but this time dos style (no spaces!) so that the unix form looks
2695- # like /cygdrive/c/PROGRA~1:/cygdr...
2696- sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2697- sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2698- sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2699- ;;
2700- *)
2701- sys_lib_search_path_spec="$LIB"
2702- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2703- # It is most probably a Windows format PATH.
2704- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2705- else
2706- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2707- fi
2708- # FIXME: find the short name or the path components, as spaces are
2709- # common. (e.g. "Program Files" -> "PROGRA~1")
2710- ;;
2711- esac
2712-
2713- # DLL is installed to $(libdir)/../bin by postinstall_cmds
2714- postinstall_cmds='base_file=`basename \${file}`~
2715- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2716- dldir=$destdir/`dirname \$dlpath`~
2717- test -d \$dldir || mkdir -p \$dldir~
2718- $install_prog $dir/$dlname \$dldir/$dlname'
2719- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2720- dlpath=$dir/\$dldll~
2721- $RM \$dlpath'
2722- shlibpath_overrides_runpath=yes
2723- dynamic_linker='Win32 link.exe'
2724- ;;
2725-
2726- *)
2727- # Assume MSVC wrapper
2728- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2729- dynamic_linker='Win32 ld.exe'
2730- ;;
2731- esac
2732- # FIXME: first we should search . and the directory the executable is in
2733- shlibpath_var=PATH
2734- ;;
2735-
2736-darwin* | rhapsody*)
2737- dynamic_linker="$host_os dyld"
2738- version_type=darwin
2739- need_lib_prefix=no
2740- need_version=no
2741- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2742- soname_spec='${libname}${release}${major}$shared_ext'
2743- shlibpath_overrides_runpath=yes
2744- shlibpath_var=DYLD_LIBRARY_PATH
2745- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2746-m4_if([$1], [],[
2747- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2748- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2749- ;;
2750-
2751-dgux*)
2752- version_type=linux # correct to gnu/linux during the next big refactor
2753- need_lib_prefix=no
2754- need_version=no
2755- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2756- soname_spec='${libname}${release}${shared_ext}$major'
2757- shlibpath_var=LD_LIBRARY_PATH
2758- ;;
2759-
2760-freebsd* | dragonfly*)
2761- # DragonFly does not have aout. When/if they implement a new
2762- # versioning mechanism, adjust this.
2763- if test -x /usr/bin/objformat; then
2764- objformat=`/usr/bin/objformat`
2765- else
2766- case $host_os in
2767- freebsd[[23]].*) objformat=aout ;;
2768- *) objformat=elf ;;
2769- esac
2770- fi
2771- version_type=freebsd-$objformat
2772- case $version_type in
2773- freebsd-elf*)
2774- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2775- need_version=no
2776- need_lib_prefix=no
2777- ;;
2778- freebsd-*)
2779- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2780- need_version=yes
2781- ;;
2782- esac
2783- shlibpath_var=LD_LIBRARY_PATH
2784- case $host_os in
2785- freebsd2.*)
2786- shlibpath_overrides_runpath=yes
2787- ;;
2788- freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2789- shlibpath_overrides_runpath=yes
2790- hardcode_into_libs=yes
2791- ;;
2792- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2793- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2794- shlibpath_overrides_runpath=no
2795- hardcode_into_libs=yes
2796- ;;
2797- *) # from 4.6 on, and DragonFly
2798- shlibpath_overrides_runpath=yes
2799- hardcode_into_libs=yes
2800- ;;
2801- esac
2802- ;;
2803-
2804-gnu*)
2805- version_type=linux # correct to gnu/linux during the next big refactor
2806- need_lib_prefix=no
2807- need_version=no
2808- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2809- soname_spec='${libname}${release}${shared_ext}$major'
2810- shlibpath_var=LD_LIBRARY_PATH
2811- shlibpath_overrides_runpath=no
2812- hardcode_into_libs=yes
2813- ;;
2814-
2815-haiku*)
2816- version_type=linux # correct to gnu/linux during the next big refactor
2817- need_lib_prefix=no
2818- need_version=no
2819- dynamic_linker="$host_os runtime_loader"
2820- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2821- soname_spec='${libname}${release}${shared_ext}$major'
2822- shlibpath_var=LIBRARY_PATH
2823- shlibpath_overrides_runpath=yes
2824- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2825- hardcode_into_libs=yes
2826- ;;
2827-
2828-hpux9* | hpux10* | hpux11*)
2829- # Give a soname corresponding to the major version so that dld.sl refuses to
2830- # link against other versions.
2831- version_type=sunos
2832- need_lib_prefix=no
2833- need_version=no
2834- case $host_cpu in
2835- ia64*)
2836- shrext_cmds='.so'
2837- hardcode_into_libs=yes
2838- dynamic_linker="$host_os dld.so"
2839- shlibpath_var=LD_LIBRARY_PATH
2840- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2841- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2842- soname_spec='${libname}${release}${shared_ext}$major'
2843- if test "X$HPUX_IA64_MODE" = X32; then
2844- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2845- else
2846- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2847- fi
2848- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2849- ;;
2850- hppa*64*)
2851- shrext_cmds='.sl'
2852- hardcode_into_libs=yes
2853- dynamic_linker="$host_os dld.sl"
2854- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2855- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2856- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2857- soname_spec='${libname}${release}${shared_ext}$major'
2858- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2859- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2860- ;;
2861- *)
2862- shrext_cmds='.sl'
2863- dynamic_linker="$host_os dld.sl"
2864- shlibpath_var=SHLIB_PATH
2865- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2866- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2867- soname_spec='${libname}${release}${shared_ext}$major'
2868- ;;
2869- esac
2870- # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2871- postinstall_cmds='chmod 555 $lib'
2872- # or fails outright, so override atomically:
2873- install_override_mode=555
2874- ;;
2875-
2876-interix[[3-9]]*)
2877- version_type=linux # correct to gnu/linux during the next big refactor
2878- need_lib_prefix=no
2879- need_version=no
2880- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2881- soname_spec='${libname}${release}${shared_ext}$major'
2882- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2883- shlibpath_var=LD_LIBRARY_PATH
2884- shlibpath_overrides_runpath=no
2885- hardcode_into_libs=yes
2886- ;;
2887-
2888-irix5* | irix6* | nonstopux*)
2889- case $host_os in
2890- nonstopux*) version_type=nonstopux ;;
2891- *)
2892- if test "$lt_cv_prog_gnu_ld" = yes; then
2893- version_type=linux # correct to gnu/linux during the next big refactor
2894- else
2895- version_type=irix
2896- fi ;;
2897- esac
2898- need_lib_prefix=no
2899- need_version=no
2900- soname_spec='${libname}${release}${shared_ext}$major'
2901- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2902- case $host_os in
2903- irix5* | nonstopux*)
2904- libsuff= shlibsuff=
2905- ;;
2906- *)
2907- case $LD in # libtool.m4 will add one of these switches to LD
2908- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2909- libsuff= shlibsuff= libmagic=32-bit;;
2910- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2911- libsuff=32 shlibsuff=N32 libmagic=N32;;
2912- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2913- libsuff=64 shlibsuff=64 libmagic=64-bit;;
2914- *) libsuff= shlibsuff= libmagic=never-match;;
2915- esac
2916- ;;
2917- esac
2918- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2919- shlibpath_overrides_runpath=no
2920- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2921- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2922- hardcode_into_libs=yes
2923- ;;
2924-
2925-# No shared lib support for Linux oldld, aout, or coff.
2926-linux*oldld* | linux*aout* | linux*coff*)
2927- dynamic_linker=no
2928- ;;
2929-
2930-# This must be glibc/ELF.
2931-linux* | k*bsd*-gnu | kopensolaris*-gnu)
2932- version_type=linux # correct to gnu/linux during the next big refactor
2933- need_lib_prefix=no
2934- need_version=no
2935- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2936- soname_spec='${libname}${release}${shared_ext}$major'
2937- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2938- shlibpath_var=LD_LIBRARY_PATH
2939- shlibpath_overrides_runpath=no
2940-
2941- # Some binutils ld are patched to set DT_RUNPATH
2942- AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2943- [lt_cv_shlibpath_overrides_runpath=no
2944- save_LDFLAGS=$LDFLAGS
2945- save_libdir=$libdir
2946- eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2947- LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2948- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2949- [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2950- [lt_cv_shlibpath_overrides_runpath=yes])])
2951- LDFLAGS=$save_LDFLAGS
2952- libdir=$save_libdir
2953- ])
2954- shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2955-
2956- # This implies no fast_install, which is unacceptable.
2957- # Some rework will be needed to allow for fast_install
2958- # before this can be enabled.
2959- hardcode_into_libs=yes
2960-
2961- # Append ld.so.conf contents to the search path
2962- if test -f /etc/ld.so.conf; then
2963- 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' ' '`
2964- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2965- fi
2966-
2967- # We used to test for /lib/ld.so.1 and disable shared libraries on
2968- # powerpc, because MkLinux only supported shared libraries with the
2969- # GNU dynamic linker. Since this was broken with cross compilers,
2970- # most powerpc-linux boxes support dynamic linking these days and
2971- # people can always --disable-shared, the test was removed, and we
2972- # assume the GNU/Linux dynamic linker is in use.
2973- dynamic_linker='GNU/Linux ld.so'
2974- ;;
2975-
2976-netbsdelf*-gnu)
2977- version_type=linux
2978- need_lib_prefix=no
2979- need_version=no
2980- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2981- soname_spec='${libname}${release}${shared_ext}$major'
2982- shlibpath_var=LD_LIBRARY_PATH
2983- shlibpath_overrides_runpath=no
2984- hardcode_into_libs=yes
2985- dynamic_linker='NetBSD ld.elf_so'
2986- ;;
2987-
2988-netbsd*)
2989- version_type=sunos
2990- need_lib_prefix=no
2991- need_version=no
2992- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2993- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2994- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2995- dynamic_linker='NetBSD (a.out) ld.so'
2996- else
2997- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2998- soname_spec='${libname}${release}${shared_ext}$major'
2999- dynamic_linker='NetBSD ld.elf_so'
3000- fi
3001- shlibpath_var=LD_LIBRARY_PATH
3002- shlibpath_overrides_runpath=yes
3003- hardcode_into_libs=yes
3004- ;;
3005-
3006-newsos6)
3007- version_type=linux # correct to gnu/linux during the next big refactor
3008- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3009- shlibpath_var=LD_LIBRARY_PATH
3010- shlibpath_overrides_runpath=yes
3011- ;;
3012-
3013-*nto* | *qnx*)
3014- version_type=qnx
3015- need_lib_prefix=no
3016- need_version=no
3017- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3018- soname_spec='${libname}${release}${shared_ext}$major'
3019- shlibpath_var=LD_LIBRARY_PATH
3020- shlibpath_overrides_runpath=no
3021- hardcode_into_libs=yes
3022- dynamic_linker='ldqnx.so'
3023- ;;
3024-
3025-openbsd*)
3026- version_type=sunos
3027- sys_lib_dlsearch_path_spec="/usr/lib"
3028- need_lib_prefix=no
3029- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3030- case $host_os in
3031- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3032- *) need_version=no ;;
3033- esac
3034- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3035- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3036- shlibpath_var=LD_LIBRARY_PATH
3037- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3038- case $host_os in
3039- openbsd2.[[89]] | openbsd2.[[89]].*)
3040- shlibpath_overrides_runpath=no
3041- ;;
3042- *)
3043- shlibpath_overrides_runpath=yes
3044- ;;
3045- esac
3046- else
3047- shlibpath_overrides_runpath=yes
3048- fi
3049- ;;
3050-
3051-os2*)
3052- libname_spec='$name'
3053- shrext_cmds=".dll"
3054- need_lib_prefix=no
3055- library_names_spec='$libname${shared_ext} $libname.a'
3056- dynamic_linker='OS/2 ld.exe'
3057- shlibpath_var=LIBPATH
3058- ;;
3059-
3060-osf3* | osf4* | osf5*)
3061- version_type=osf
3062- need_lib_prefix=no
3063- need_version=no
3064- soname_spec='${libname}${release}${shared_ext}$major'
3065- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3066- shlibpath_var=LD_LIBRARY_PATH
3067- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3068- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3069- ;;
3070-
3071-rdos*)
3072- dynamic_linker=no
3073- ;;
3074-
3075-solaris*)
3076- version_type=linux # correct to gnu/linux during the next big refactor
3077- need_lib_prefix=no
3078- need_version=no
3079- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3080- soname_spec='${libname}${release}${shared_ext}$major'
3081- shlibpath_var=LD_LIBRARY_PATH
3082- shlibpath_overrides_runpath=yes
3083- hardcode_into_libs=yes
3084- # ldd complains unless libraries are executable
3085- postinstall_cmds='chmod +x $lib'
3086- ;;
3087-
3088-sunos4*)
3089- version_type=sunos
3090- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3091- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3092- shlibpath_var=LD_LIBRARY_PATH
3093- shlibpath_overrides_runpath=yes
3094- if test "$with_gnu_ld" = yes; then
3095- need_lib_prefix=no
3096- fi
3097- need_version=yes
3098- ;;
3099-
3100-sysv4 | sysv4.3*)
3101- version_type=linux # correct to gnu/linux during the next big refactor
3102- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3103- soname_spec='${libname}${release}${shared_ext}$major'
3104- shlibpath_var=LD_LIBRARY_PATH
3105- case $host_vendor in
3106- sni)
3107- shlibpath_overrides_runpath=no
3108- need_lib_prefix=no
3109- runpath_var=LD_RUN_PATH
3110- ;;
3111- siemens)
3112- need_lib_prefix=no
3113- ;;
3114- motorola)
3115- need_lib_prefix=no
3116- need_version=no
3117- shlibpath_overrides_runpath=no
3118- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3119- ;;
3120- esac
3121- ;;
3122-
3123-sysv4*MP*)
3124- if test -d /usr/nec ;then
3125- version_type=linux # correct to gnu/linux during the next big refactor
3126- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3127- soname_spec='$libname${shared_ext}.$major'
3128- shlibpath_var=LD_LIBRARY_PATH
3129- fi
3130- ;;
3131-
3132-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3133- version_type=freebsd-elf
3134- need_lib_prefix=no
3135- need_version=no
3136- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3137- soname_spec='${libname}${release}${shared_ext}$major'
3138- shlibpath_var=LD_LIBRARY_PATH
3139- shlibpath_overrides_runpath=yes
3140- hardcode_into_libs=yes
3141- if test "$with_gnu_ld" = yes; then
3142- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3143- else
3144- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3145- case $host_os in
3146- sco3.2v5*)
3147- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3148- ;;
3149- esac
3150- fi
3151- sys_lib_dlsearch_path_spec='/usr/lib'
3152- ;;
3153-
3154-tpf*)
3155- # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3156- version_type=linux # correct to gnu/linux during the next big refactor
3157- need_lib_prefix=no
3158- need_version=no
3159- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3160- shlibpath_var=LD_LIBRARY_PATH
3161- shlibpath_overrides_runpath=no
3162- hardcode_into_libs=yes
3163- ;;
3164-
3165-uts4*)
3166- version_type=linux # correct to gnu/linux during the next big refactor
3167- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3168- soname_spec='${libname}${release}${shared_ext}$major'
3169- shlibpath_var=LD_LIBRARY_PATH
3170- ;;
3171-
3172-*)
3173- dynamic_linker=no
3174- ;;
3175-esac
3176-AC_MSG_RESULT([$dynamic_linker])
3177-test "$dynamic_linker" = no && can_build_shared=no
3178-
3179-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3180-if test "$GCC" = yes; then
3181- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3182-fi
3183-
3184-if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3185- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3186-fi
3187-if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3188- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3189-fi
3190-
3191-_LT_DECL([], [variables_saved_for_relink], [1],
3192- [Variables whose values should be saved in libtool wrapper scripts and
3193- restored at link time])
3194-_LT_DECL([], [need_lib_prefix], [0],
3195- [Do we need the "lib" prefix for modules?])
3196-_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3197-_LT_DECL([], [version_type], [0], [Library versioning type])
3198-_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3199-_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3200-_LT_DECL([], [shlibpath_overrides_runpath], [0],
3201- [Is shlibpath searched before the hard-coded library search path?])
3202-_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3203-_LT_DECL([], [library_names_spec], [1],
3204- [[List of archive names. First name is the real one, the rest are links.
3205- The last name is the one that the linker finds with -lNAME]])
3206-_LT_DECL([], [soname_spec], [1],
3207- [[The coded name of the library, if different from the real name]])
3208-_LT_DECL([], [install_override_mode], [1],
3209- [Permission mode override for installation of shared libraries])
3210-_LT_DECL([], [postinstall_cmds], [2],
3211- [Command to use after installation of a shared archive])
3212-_LT_DECL([], [postuninstall_cmds], [2],
3213- [Command to use after uninstallation of a shared archive])
3214-_LT_DECL([], [finish_cmds], [2],
3215- [Commands used to finish a libtool library installation in a directory])
3216-_LT_DECL([], [finish_eval], [1],
3217- [[As "finish_cmds", except a single script fragment to be evaled but
3218- not shown]])
3219-_LT_DECL([], [hardcode_into_libs], [0],
3220- [Whether we should hardcode library paths into libraries])
3221-_LT_DECL([], [sys_lib_search_path_spec], [2],
3222- [Compile-time system search path for libraries])
3223-_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3224- [Run-time system search path for libraries])
3225-])# _LT_SYS_DYNAMIC_LINKER
3226-
3227-
3228-# _LT_PATH_TOOL_PREFIX(TOOL)
3229-# --------------------------
3230-# find a file program which can recognize shared library
3231-AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3232-[m4_require([_LT_DECL_EGREP])dnl
3233-AC_MSG_CHECKING([for $1])
3234-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3235-[case $MAGIC_CMD in
3236-[[\\/*] | ?:[\\/]*])
3237- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3238- ;;
3239-*)
3240- lt_save_MAGIC_CMD="$MAGIC_CMD"
3241- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3242-dnl $ac_dummy forces splitting on constant user-supplied paths.
3243-dnl POSIX.2 word splitting is done only on the output of word expansions,
3244-dnl not every word. This closes a longstanding sh security hole.
3245- ac_dummy="m4_if([$2], , $PATH, [$2])"
3246- for ac_dir in $ac_dummy; do
3247- IFS="$lt_save_ifs"
3248- test -z "$ac_dir" && ac_dir=.
3249- if test -f $ac_dir/$1; then
3250- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3251- if test -n "$file_magic_test_file"; then
3252- case $deplibs_check_method in
3253- "file_magic "*)
3254- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3255- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3256- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3257- $EGREP "$file_magic_regex" > /dev/null; then
3258- :
3259- else
3260- cat <<_LT_EOF 1>&2
3261-
3262-*** Warning: the command libtool uses to detect shared libraries,
3263-*** $file_magic_cmd, produces output that libtool cannot recognize.
3264-*** The result is that libtool may fail to recognize shared libraries
3265-*** as such. This will affect the creation of libtool libraries that
3266-*** depend on shared libraries, but programs linked with such libtool
3267-*** libraries will work regardless of this problem. Nevertheless, you
3268-*** may want to report the problem to your system manager and/or to
3269-*** bug-libtool@gnu.org
3270-
3271-_LT_EOF
3272- fi ;;
3273- esac
3274- fi
3275- break
3276- fi
3277- done
3278- IFS="$lt_save_ifs"
3279- MAGIC_CMD="$lt_save_MAGIC_CMD"
3280- ;;
3281-esac])
3282-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3283-if test -n "$MAGIC_CMD"; then
3284- AC_MSG_RESULT($MAGIC_CMD)
3285-else
3286- AC_MSG_RESULT(no)
3287-fi
3288-_LT_DECL([], [MAGIC_CMD], [0],
3289- [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3290-])# _LT_PATH_TOOL_PREFIX
3291-
3292-# Old name:
3293-AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3294-dnl aclocal-1.4 backwards compatibility:
3295-dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3296-
3297-
3298-# _LT_PATH_MAGIC
3299-# --------------
3300-# find a file program which can recognize a shared library
3301-m4_defun([_LT_PATH_MAGIC],
3302-[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3303-if test -z "$lt_cv_path_MAGIC_CMD"; then
3304- if test -n "$ac_tool_prefix"; then
3305- _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3306- else
3307- MAGIC_CMD=:
3308- fi
3309-fi
3310-])# _LT_PATH_MAGIC
3311-
3312-
3313-# LT_PATH_LD
3314-# ----------
3315-# find the pathname to the GNU or non-GNU linker
3316-AC_DEFUN([LT_PATH_LD],
3317-[AC_REQUIRE([AC_PROG_CC])dnl
3318-AC_REQUIRE([AC_CANONICAL_HOST])dnl
3319-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3320-m4_require([_LT_DECL_SED])dnl
3321-m4_require([_LT_DECL_EGREP])dnl
3322-m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3323-
3324-AC_ARG_WITH([gnu-ld],
3325- [AS_HELP_STRING([--with-gnu-ld],
3326- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3327- [test "$withval" = no || with_gnu_ld=yes],
3328- [with_gnu_ld=no])dnl
3329-
3330-ac_prog=ld
3331-if test "$GCC" = yes; then
3332- # Check if gcc -print-prog-name=ld gives a path.
3333- AC_MSG_CHECKING([for ld used by $CC])
3334- case $host in
3335- *-*-mingw*)
3336- # gcc leaves a trailing carriage return which upsets mingw
3337- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3338- *)
3339- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3340- esac
3341- case $ac_prog in
3342- # Accept absolute paths.
3343- [[\\/]]* | ?:[[\\/]]*)
3344- re_direlt='/[[^/]][[^/]]*/\.\./'
3345- # Canonicalize the pathname of ld
3346- ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3347- while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3348- ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3349- done
3350- test -z "$LD" && LD="$ac_prog"
3351- ;;
3352- "")
3353- # If it fails, then pretend we aren't using GCC.
3354- ac_prog=ld
3355- ;;
3356- *)
3357- # If it is relative, then search for the first ld in PATH.
3358- with_gnu_ld=unknown
3359- ;;
3360- esac
3361-elif test "$with_gnu_ld" = yes; then
3362- AC_MSG_CHECKING([for GNU ld])
3363-else
3364- AC_MSG_CHECKING([for non-GNU ld])
3365-fi
3366-AC_CACHE_VAL(lt_cv_path_LD,
3367-[if test -z "$LD"; then
3368- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3369- for ac_dir in $PATH; do
3370- IFS="$lt_save_ifs"
3371- test -z "$ac_dir" && ac_dir=.
3372- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3373- lt_cv_path_LD="$ac_dir/$ac_prog"
3374- # Check to see if the program is GNU ld. I'd rather use --version,
3375- # but apparently some variants of GNU ld only accept -v.
3376- # Break only if it was the GNU/non-GNU ld that we prefer.
3377- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3378- *GNU* | *'with BFD'*)
3379- test "$with_gnu_ld" != no && break
3380- ;;
3381- *)
3382- test "$with_gnu_ld" != yes && break
3383- ;;
3384- esac
3385- fi
3386- done
3387- IFS="$lt_save_ifs"
3388-else
3389- lt_cv_path_LD="$LD" # Let the user override the test with a path.
3390-fi])
3391-LD="$lt_cv_path_LD"
3392-if test -n "$LD"; then
3393- AC_MSG_RESULT($LD)
3394-else
3395- AC_MSG_RESULT(no)
3396-fi
3397-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3398-_LT_PATH_LD_GNU
3399-AC_SUBST([LD])
3400-
3401-_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3402-])# LT_PATH_LD
3403-
3404-# Old names:
3405-AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3406-AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3407-dnl aclocal-1.4 backwards compatibility:
3408-dnl AC_DEFUN([AM_PROG_LD], [])
3409-dnl AC_DEFUN([AC_PROG_LD], [])
3410-
3411-
3412-# _LT_PATH_LD_GNU
3413-#- --------------
3414-m4_defun([_LT_PATH_LD_GNU],
3415-[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3416-[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3417-case `$LD -v 2>&1 </dev/null` in
3418-*GNU* | *'with BFD'*)
3419- lt_cv_prog_gnu_ld=yes
3420- ;;
3421-*)
3422- lt_cv_prog_gnu_ld=no
3423- ;;
3424-esac])
3425-with_gnu_ld=$lt_cv_prog_gnu_ld
3426-])# _LT_PATH_LD_GNU
3427-
3428-
3429-# _LT_CMD_RELOAD
3430-# --------------
3431-# find reload flag for linker
3432-# -- PORTME Some linkers may need a different reload flag.
3433-m4_defun([_LT_CMD_RELOAD],
3434-[AC_CACHE_CHECK([for $LD option to reload object files],
3435- lt_cv_ld_reload_flag,
3436- [lt_cv_ld_reload_flag='-r'])
3437-reload_flag=$lt_cv_ld_reload_flag
3438-case $reload_flag in
3439-"" | " "*) ;;
3440-*) reload_flag=" $reload_flag" ;;
3441-esac
3442-reload_cmds='$LD$reload_flag -o $output$reload_objs'
3443-case $host_os in
3444- cygwin* | mingw* | pw32* | cegcc*)
3445- if test "$GCC" != yes; then
3446- reload_cmds=false
3447- fi
3448- ;;
3449- darwin*)
3450- if test "$GCC" = yes; then
3451- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3452- else
3453- reload_cmds='$LD$reload_flag -o $output$reload_objs'
3454- fi
3455- ;;
3456-esac
3457-_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3458-_LT_TAGDECL([], [reload_cmds], [2])dnl
3459-])# _LT_CMD_RELOAD
3460-
3461-
3462-# _LT_CHECK_MAGIC_METHOD
3463-# ----------------------
3464-# how to check for library dependencies
3465-# -- PORTME fill in with the dynamic library characteristics
3466-m4_defun([_LT_CHECK_MAGIC_METHOD],
3467-[m4_require([_LT_DECL_EGREP])
3468-m4_require([_LT_DECL_OBJDUMP])
3469-AC_CACHE_CHECK([how to recognize dependent libraries],
3470-lt_cv_deplibs_check_method,
3471-[lt_cv_file_magic_cmd='$MAGIC_CMD'
3472-lt_cv_file_magic_test_file=
3473-lt_cv_deplibs_check_method='unknown'
3474-# Need to set the preceding variable on all platforms that support
3475-# interlibrary dependencies.
3476-# 'none' -- dependencies not supported.
3477-# `unknown' -- same as none, but documents that we really don't know.
3478-# 'pass_all' -- all dependencies passed with no checks.
3479-# 'test_compile' -- check by making test program.
3480-# 'file_magic [[regex]]' -- check by looking for files in library path
3481-# which responds to the $file_magic_cmd with a given extended regex.
3482-# If you have `file' or equivalent on your system and you're not sure
3483-# whether `pass_all' will *always* work, you probably want this one.
3484-
3485-case $host_os in
3486-aix[[4-9]]*)
3487- lt_cv_deplibs_check_method=pass_all
3488- ;;
3489-
3490-beos*)
3491- lt_cv_deplibs_check_method=pass_all
3492- ;;
3493-
3494-bsdi[[45]]*)
3495- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3496- lt_cv_file_magic_cmd='/usr/bin/file -L'
3497- lt_cv_file_magic_test_file=/shlib/libc.so
3498- ;;
3499-
3500-cygwin*)
3501- # func_win32_libid is a shell function defined in ltmain.sh
3502- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3503- lt_cv_file_magic_cmd='func_win32_libid'
3504- ;;
3505-
3506-mingw* | pw32*)
3507- # Base MSYS/MinGW do not provide the 'file' command needed by
3508- # func_win32_libid shell function, so use a weaker test based on 'objdump',
3509- # unless we find 'file', for example because we are cross-compiling.
3510- # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3511- if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3512- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3513- lt_cv_file_magic_cmd='func_win32_libid'
3514- else
3515- # Keep this pattern in sync with the one in func_win32_libid.
3516- lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3517- lt_cv_file_magic_cmd='$OBJDUMP -f'
3518- fi
3519- ;;
3520-
3521-cegcc*)
3522- # use the weaker test based on 'objdump'. See mingw*.
3523- lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3524- lt_cv_file_magic_cmd='$OBJDUMP -f'
3525- ;;
3526-
3527-darwin* | rhapsody*)
3528- lt_cv_deplibs_check_method=pass_all
3529- ;;
3530-
3531-freebsd* | dragonfly*)
3532- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3533- case $host_cpu in
3534- i*86 )
3535- # Not sure whether the presence of OpenBSD here was a mistake.
3536- # Let's accept both of them until this is cleared up.
3537- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3538- lt_cv_file_magic_cmd=/usr/bin/file
3539- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3540- ;;
3541- esac
3542- else
3543- lt_cv_deplibs_check_method=pass_all
3544- fi
3545- ;;
3546-
3547-gnu*)
3548- lt_cv_deplibs_check_method=pass_all
3549- ;;
3550-
3551-haiku*)
3552- lt_cv_deplibs_check_method=pass_all
3553- ;;
3554-
3555-hpux10.20* | hpux11*)
3556- lt_cv_file_magic_cmd=/usr/bin/file
3557- case $host_cpu in
3558- ia64*)
3559- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3560- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3561- ;;
3562- hppa*64*)
3563- [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]']
3564- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3565- ;;
3566- *)
3567- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3568- lt_cv_file_magic_test_file=/usr/lib/libc.sl
3569- ;;
3570- esac
3571- ;;
3572-
3573-interix[[3-9]]*)
3574- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3575- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3576- ;;
3577-
3578-irix5* | irix6* | nonstopux*)
3579- case $LD in
3580- *-32|*"-32 ") libmagic=32-bit;;
3581- *-n32|*"-n32 ") libmagic=N32;;
3582- *-64|*"-64 ") libmagic=64-bit;;
3583- *) libmagic=never-match;;
3584- esac
3585- lt_cv_deplibs_check_method=pass_all
3586- ;;
3587-
3588-# This must be glibc/ELF.
3589-linux* | k*bsd*-gnu | kopensolaris*-gnu)
3590- lt_cv_deplibs_check_method=pass_all
3591- ;;
3592-
3593-netbsd* | netbsdelf*-gnu)
3594- if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3595- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3596- else
3597- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3598- fi
3599- ;;
3600-
3601-newos6*)
3602- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3603- lt_cv_file_magic_cmd=/usr/bin/file
3604- lt_cv_file_magic_test_file=/usr/lib/libnls.so
3605- ;;
3606-
3607-*nto* | *qnx*)
3608- lt_cv_deplibs_check_method=pass_all
3609- ;;
3610-
3611-openbsd*)
3612- if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3613- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3614- else
3615- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3616- fi
3617- ;;
3618-
3619-osf3* | osf4* | osf5*)
3620- lt_cv_deplibs_check_method=pass_all
3621- ;;
3622-
3623-rdos*)
3624- lt_cv_deplibs_check_method=pass_all
3625- ;;
3626-
3627-solaris*)
3628- lt_cv_deplibs_check_method=pass_all
3629- ;;
3630-
3631-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3632- lt_cv_deplibs_check_method=pass_all
3633- ;;
3634-
3635-sysv4 | sysv4.3*)
3636- case $host_vendor in
3637- motorola)
3638- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3639- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3640- ;;
3641- ncr)
3642- lt_cv_deplibs_check_method=pass_all
3643- ;;
3644- sequent)
3645- lt_cv_file_magic_cmd='/bin/file'
3646- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3647- ;;
3648- sni)
3649- lt_cv_file_magic_cmd='/bin/file'
3650- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3651- lt_cv_file_magic_test_file=/lib/libc.so
3652- ;;
3653- siemens)
3654- lt_cv_deplibs_check_method=pass_all
3655- ;;
3656- pc)
3657- lt_cv_deplibs_check_method=pass_all
3658- ;;
3659- esac
3660- ;;
3661-
3662-tpf*)
3663- lt_cv_deplibs_check_method=pass_all
3664- ;;
3665-esac
3666-])
3667-
3668-file_magic_glob=
3669-want_nocaseglob=no
3670-if test "$build" = "$host"; then
3671- case $host_os in
3672- mingw* | pw32*)
3673- if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3674- want_nocaseglob=yes
3675- else
3676- file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3677- fi
3678- ;;
3679- esac
3680-fi
3681-
3682-file_magic_cmd=$lt_cv_file_magic_cmd
3683-deplibs_check_method=$lt_cv_deplibs_check_method
3684-test -z "$deplibs_check_method" && deplibs_check_method=unknown
3685-
3686-_LT_DECL([], [deplibs_check_method], [1],
3687- [Method to check whether dependent libraries are shared objects])
3688-_LT_DECL([], [file_magic_cmd], [1],
3689- [Command to use when deplibs_check_method = "file_magic"])
3690-_LT_DECL([], [file_magic_glob], [1],
3691- [How to find potential files when deplibs_check_method = "file_magic"])
3692-_LT_DECL([], [want_nocaseglob], [1],
3693- [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3694-])# _LT_CHECK_MAGIC_METHOD
3695-
3696-
3697-# LT_PATH_NM
3698-# ----------
3699-# find the pathname to a BSD- or MS-compatible name lister
3700-AC_DEFUN([LT_PATH_NM],
3701-[AC_REQUIRE([AC_PROG_CC])dnl
3702-AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3703-[if test -n "$NM"; then
3704- # Let the user override the test.
3705- lt_cv_path_NM="$NM"
3706-else
3707- lt_nm_to_check="${ac_tool_prefix}nm"
3708- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3709- lt_nm_to_check="$lt_nm_to_check nm"
3710- fi
3711- for lt_tmp_nm in $lt_nm_to_check; do
3712- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3713- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3714- IFS="$lt_save_ifs"
3715- test -z "$ac_dir" && ac_dir=.
3716- tmp_nm="$ac_dir/$lt_tmp_nm"
3717- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3718- # Check to see if the nm accepts a BSD-compat flag.
3719- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3720- # nm: unknown option "B" ignored
3721- # Tru64's nm complains that /dev/null is an invalid object file
3722- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3723- */dev/null* | *'Invalid file or object type'*)
3724- lt_cv_path_NM="$tmp_nm -B"
3725- break
3726- ;;
3727- *)
3728- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3729- */dev/null*)
3730- lt_cv_path_NM="$tmp_nm -p"
3731- break
3732- ;;
3733- *)
3734- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3735- continue # so that we can try to find one that supports BSD flags
3736- ;;
3737- esac
3738- ;;
3739- esac
3740- fi
3741- done
3742- IFS="$lt_save_ifs"
3743- done
3744- : ${lt_cv_path_NM=no}
3745-fi])
3746-if test "$lt_cv_path_NM" != "no"; then
3747- NM="$lt_cv_path_NM"
3748-else
3749- # Didn't find any BSD compatible name lister, look for dumpbin.
3750- if test -n "$DUMPBIN"; then :
3751- # Let the user override the test.
3752- else
3753- AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3754- case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3755- *COFF*)
3756- DUMPBIN="$DUMPBIN -symbols"
3757- ;;
3758- *)
3759- DUMPBIN=:
3760- ;;
3761- esac
3762- fi
3763- AC_SUBST([DUMPBIN])
3764- if test "$DUMPBIN" != ":"; then
3765- NM="$DUMPBIN"
3766- fi
3767-fi
3768-test -z "$NM" && NM=nm
3769-AC_SUBST([NM])
3770-_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3771-
3772-AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3773- [lt_cv_nm_interface="BSD nm"
3774- echo "int some_variable = 0;" > conftest.$ac_ext
3775- (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3776- (eval "$ac_compile" 2>conftest.err)
3777- cat conftest.err >&AS_MESSAGE_LOG_FD
3778- (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3779- (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3780- cat conftest.err >&AS_MESSAGE_LOG_FD
3781- (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3782- cat conftest.out >&AS_MESSAGE_LOG_FD
3783- if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3784- lt_cv_nm_interface="MS dumpbin"
3785- fi
3786- rm -f conftest*])
3787-])# LT_PATH_NM
3788-
3789-# Old names:
3790-AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3791-AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3792-dnl aclocal-1.4 backwards compatibility:
3793-dnl AC_DEFUN([AM_PROG_NM], [])
3794-dnl AC_DEFUN([AC_PROG_NM], [])
3795-
3796-# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3797-# --------------------------------
3798-# how to determine the name of the shared library
3799-# associated with a specific link library.
3800-# -- PORTME fill in with the dynamic library characteristics
3801-m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3802-[m4_require([_LT_DECL_EGREP])
3803-m4_require([_LT_DECL_OBJDUMP])
3804-m4_require([_LT_DECL_DLLTOOL])
3805-AC_CACHE_CHECK([how to associate runtime and link libraries],
3806-lt_cv_sharedlib_from_linklib_cmd,
3807-[lt_cv_sharedlib_from_linklib_cmd='unknown'
3808-
3809-case $host_os in
3810-cygwin* | mingw* | pw32* | cegcc*)
3811- # two different shell functions defined in ltmain.sh
3812- # decide which to use based on capabilities of $DLLTOOL
3813- case `$DLLTOOL --help 2>&1` in
3814- *--identify-strict*)
3815- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3816- ;;
3817- *)
3818- lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3819- ;;
3820- esac
3821- ;;
3822-*)
3823- # fallback: assume linklib IS sharedlib
3824- lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3825- ;;
3826-esac
3827-])
3828-sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3829-test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3830-
3831-_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3832- [Command to associate shared and link libraries])
3833-])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3834-
3835-
3836-# _LT_PATH_MANIFEST_TOOL
3837-# ----------------------
3838-# locate the manifest tool
3839-m4_defun([_LT_PATH_MANIFEST_TOOL],
3840-[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3841-test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3842-AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3843- [lt_cv_path_mainfest_tool=no
3844- echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3845- $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3846- cat conftest.err >&AS_MESSAGE_LOG_FD
3847- if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3848- lt_cv_path_mainfest_tool=yes
3849- fi
3850- rm -f conftest*])
3851-if test "x$lt_cv_path_mainfest_tool" != xyes; then
3852- MANIFEST_TOOL=:
3853-fi
3854-_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3855-])# _LT_PATH_MANIFEST_TOOL
3856-
3857-
3858-# LT_LIB_M
3859-# --------
3860-# check for math library
3861-AC_DEFUN([LT_LIB_M],
3862-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3863-LIBM=
3864-case $host in
3865-*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3866- # These system don't have libm, or don't need it
3867- ;;
3868-*-ncr-sysv4.3*)
3869- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3870- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3871- ;;
3872-*)
3873- AC_CHECK_LIB(m, cos, LIBM="-lm")
3874- ;;
3875-esac
3876-AC_SUBST([LIBM])
3877-])# LT_LIB_M
3878-
3879-# Old name:
3880-AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3881-dnl aclocal-1.4 backwards compatibility:
3882-dnl AC_DEFUN([AC_CHECK_LIBM], [])
3883-
3884-
3885-# _LT_COMPILER_NO_RTTI([TAGNAME])
3886-# -------------------------------
3887-m4_defun([_LT_COMPILER_NO_RTTI],
3888-[m4_require([_LT_TAG_COMPILER])dnl
3889-
3890-_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3891-
3892-if test "$GCC" = yes; then
3893- case $cc_basename in
3894- nvcc*)
3895- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3896- *)
3897- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3898- esac
3899-
3900- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3901- lt_cv_prog_compiler_rtti_exceptions,
3902- [-fno-rtti -fno-exceptions], [],
3903- [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3904-fi
3905-_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3906- [Compiler flag to turn off builtin functions])
3907-])# _LT_COMPILER_NO_RTTI
3908-
3909-
3910-# _LT_CMD_GLOBAL_SYMBOLS
3911-# ----------------------
3912-m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3913-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3914-AC_REQUIRE([AC_PROG_CC])dnl
3915-AC_REQUIRE([AC_PROG_AWK])dnl
3916-AC_REQUIRE([LT_PATH_NM])dnl
3917-AC_REQUIRE([LT_PATH_LD])dnl
3918-m4_require([_LT_DECL_SED])dnl
3919-m4_require([_LT_DECL_EGREP])dnl
3920-m4_require([_LT_TAG_COMPILER])dnl
3921-
3922-# Check for command to grab the raw symbol name followed by C symbol from nm.
3923-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3924-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3925-[
3926-# These are sane defaults that work on at least a few old systems.
3927-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3928-
3929-# Character class describing NM global symbol codes.
3930-symcode='[[BCDEGRST]]'
3931-
3932-# Regexp to match symbols that can be accessed directly from C.
3933-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3934-
3935-# Define system-specific variables.
3936-case $host_os in
3937-aix*)
3938- symcode='[[BCDT]]'
3939- ;;
3940-cygwin* | mingw* | pw32* | cegcc*)
3941- symcode='[[ABCDGISTW]]'
3942- ;;
3943-hpux*)
3944- if test "$host_cpu" = ia64; then
3945- symcode='[[ABCDEGRST]]'
3946- fi
3947- ;;
3948-irix* | nonstopux*)
3949- symcode='[[BCDEGRST]]'
3950- ;;
3951-osf*)
3952- symcode='[[BCDEGQRST]]'
3953- ;;
3954-solaris*)
3955- symcode='[[BDRT]]'
3956- ;;
3957-sco3.2v5*)
3958- symcode='[[DT]]'
3959- ;;
3960-sysv4.2uw2*)
3961- symcode='[[DT]]'
3962- ;;
3963-sysv5* | sco5v6* | unixware* | OpenUNIX*)
3964- symcode='[[ABDT]]'
3965- ;;
3966-sysv4)
3967- symcode='[[DFNSTU]]'
3968- ;;
3969-esac
3970-
3971-# If we're using GNU nm, then use its standard symbol codes.
3972-case `$NM -V 2>&1` in
3973-*GNU* | *'with BFD'*)
3974- symcode='[[ABCDGIRSTW]]' ;;
3975-esac
3976-
3977-# Transform an extracted symbol line into a proper C declaration.
3978-# Some systems (esp. on ia64) link data and code symbols differently,
3979-# so use this general approach.
3980-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3981-
3982-# Transform an extracted symbol line into symbol name and symbol address
3983-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3984-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'"
3985-
3986-# Handle CRLF in mingw tool chain
3987-opt_cr=
3988-case $build_os in
3989-mingw*)
3990- opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3991- ;;
3992-esac
3993-
3994-# Try without a prefix underscore, then with it.
3995-for ac_symprfx in "" "_"; do
3996-
3997- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3998- symxfrm="\\1 $ac_symprfx\\2 \\2"
3999-
4000- # Write the raw and C identifiers.
4001- if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4002- # Fake it for dumpbin and say T for any non-static function
4003- # and D for any global variable.
4004- # Also find C++ and __fastcall symbols from MSVC++,
4005- # which start with @ or ?.
4006- lt_cv_sys_global_symbol_pipe="$AWK ['"\
4007-" {last_section=section; section=\$ 3};"\
4008-" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4009-" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4010-" \$ 0!~/External *\|/{next};"\
4011-" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4012-" {if(hide[section]) next};"\
4013-" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4014-" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4015-" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4016-" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4017-" ' prfx=^$ac_symprfx]"
4018- else
4019- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4020- fi
4021- lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4022-
4023- # Check to see that the pipe works correctly.
4024- pipe_works=no
4025-
4026- rm -f conftest*
4027- cat > conftest.$ac_ext <<_LT_EOF
4028-#ifdef __cplusplus
4029-extern "C" {
4030-#endif
4031-char nm_test_var;
4032-void nm_test_func(void);
4033-void nm_test_func(void){}
4034-#ifdef __cplusplus
4035-}
4036-#endif
4037-int main(){nm_test_var='a';nm_test_func();return(0);}
4038-_LT_EOF
4039-
4040- if AC_TRY_EVAL(ac_compile); then
4041- # Now try to grab the symbols.
4042- nlist=conftest.nm
4043- if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4044- # Try sorting and uniquifying the output.
4045- if sort "$nlist" | uniq > "$nlist"T; then
4046- mv -f "$nlist"T "$nlist"
4047- else
4048- rm -f "$nlist"T
4049- fi
4050-
4051- # Make sure that we snagged all the symbols we need.
4052- if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4053- if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4054- cat <<_LT_EOF > conftest.$ac_ext
4055-/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4056-#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4057-/* DATA imports from DLLs on WIN32 con't be const, because runtime
4058- relocations are performed -- see ld's documentation on pseudo-relocs. */
4059-# define LT@&t@_DLSYM_CONST
4060-#elif defined(__osf__)
4061-/* This system does not cope well with relocations in const data. */
4062-# define LT@&t@_DLSYM_CONST
4063-#else
4064-# define LT@&t@_DLSYM_CONST const
4065-#endif
4066-
4067-#ifdef __cplusplus
4068-extern "C" {
4069-#endif
4070-
4071-_LT_EOF
4072- # Now generate the symbol file.
4073- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4074-
4075- cat <<_LT_EOF >> conftest.$ac_ext
4076-
4077-/* The mapping between symbol names and symbols. */
4078-LT@&t@_DLSYM_CONST struct {
4079- const char *name;
4080- void *address;
4081-}
4082-lt__PROGRAM__LTX_preloaded_symbols[[]] =
4083-{
4084- { "@PROGRAM@", (void *) 0 },
4085-_LT_EOF
4086- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4087- cat <<\_LT_EOF >> conftest.$ac_ext
4088- {0, (void *) 0}
4089-};
4090-
4091-/* This works around a problem in FreeBSD linker */
4092-#ifdef FREEBSD_WORKAROUND
4093-static const void *lt_preloaded_setup() {
4094- return lt__PROGRAM__LTX_preloaded_symbols;
4095-}
4096-#endif
4097-
4098-#ifdef __cplusplus
4099-}
4100-#endif
4101-_LT_EOF
4102- # Now try linking the two files.
4103- mv conftest.$ac_objext conftstm.$ac_objext
4104- lt_globsym_save_LIBS=$LIBS
4105- lt_globsym_save_CFLAGS=$CFLAGS
4106- LIBS="conftstm.$ac_objext"
4107- CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4108- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4109- pipe_works=yes
4110- fi
4111- LIBS=$lt_globsym_save_LIBS
4112- CFLAGS=$lt_globsym_save_CFLAGS
4113- else
4114- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4115- fi
4116- else
4117- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4118- fi
4119- else
4120- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4121- fi
4122- else
4123- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4124- cat conftest.$ac_ext >&5
4125- fi
4126- rm -rf conftest* conftst*
4127-
4128- # Do not use the global_symbol_pipe unless it works.
4129- if test "$pipe_works" = yes; then
4130- break
4131- else
4132- lt_cv_sys_global_symbol_pipe=
4133- fi
4134-done
4135-])
4136-if test -z "$lt_cv_sys_global_symbol_pipe"; then
4137- lt_cv_sys_global_symbol_to_cdecl=
4138-fi
4139-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4140- AC_MSG_RESULT(failed)
4141-else
4142- AC_MSG_RESULT(ok)
4143-fi
4144-
4145-# Response file support.
4146-if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4147- nm_file_list_spec='@'
4148-elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4149- nm_file_list_spec='@'
4150-fi
4151-
4152-_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4153- [Take the output of nm and produce a listing of raw symbols and C names])
4154-_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4155- [Transform the output of nm in a proper C declaration])
4156-_LT_DECL([global_symbol_to_c_name_address],
4157- [lt_cv_sys_global_symbol_to_c_name_address], [1],
4158- [Transform the output of nm in a C name address pair])
4159-_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4160- [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4161- [Transform the output of nm in a C name address pair when lib prefix is needed])
4162-_LT_DECL([], [nm_file_list_spec], [1],
4163- [Specify filename containing input files for $NM])
4164-]) # _LT_CMD_GLOBAL_SYMBOLS
4165-
4166-
4167-# _LT_COMPILER_PIC([TAGNAME])
4168-# ---------------------------
4169-m4_defun([_LT_COMPILER_PIC],
4170-[m4_require([_LT_TAG_COMPILER])dnl
4171-_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4172-_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4173-_LT_TAGVAR(lt_prog_compiler_static, $1)=
4174-
4175-m4_if([$1], [CXX], [
4176- # C++ specific cases for pic, static, wl, etc.
4177- if test "$GXX" = yes; then
4178- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4179- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4180-
4181- case $host_os in
4182- aix*)
4183- # All AIX code is PIC.
4184- if test "$host_cpu" = ia64; then
4185- # AIX 5 now supports IA64 processor
4186- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4187- fi
4188- ;;
4189-
4190- amigaos*)
4191- case $host_cpu in
4192- powerpc)
4193- # see comment about AmigaOS4 .so support
4194- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4195- ;;
4196- m68k)
4197- # FIXME: we need at least 68020 code to build shared libraries, but
4198- # adding the `-m68020' flag to GCC prevents building anything better,
4199- # like `-m68040'.
4200- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4201- ;;
4202- esac
4203- ;;
4204-
4205- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4206- # PIC is the default for these OSes.
4207- ;;
4208- mingw* | cygwin* | os2* | pw32* | cegcc*)
4209- # This hack is so that the source file can tell whether it is being
4210- # built for inclusion in a dll (and should export symbols for example).
4211- # Although the cygwin gcc ignores -fPIC, still need this for old-style
4212- # (--disable-auto-import) libraries
4213- m4_if([$1], [GCJ], [],
4214- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4215- ;;
4216- darwin* | rhapsody*)
4217- # PIC is the default on this platform
4218- # Common symbols not allowed in MH_DYLIB files
4219- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4220- ;;
4221- *djgpp*)
4222- # DJGPP does not support shared libraries at all
4223- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4224- ;;
4225- haiku*)
4226- # PIC is the default for Haiku.
4227- # The "-static" flag exists, but is broken.
4228- _LT_TAGVAR(lt_prog_compiler_static, $1)=
4229- ;;
4230- interix[[3-9]]*)
4231- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4232- # Instead, we relocate shared libraries at runtime.
4233- ;;
4234- sysv4*MP*)
4235- if test -d /usr/nec; then
4236- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4237- fi
4238- ;;
4239- hpux*)
4240- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4241- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4242- # sets the default TLS model and affects inlining.
4243- case $host_cpu in
4244- hppa*64*)
4245- ;;
4246- *)
4247- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4248- ;;
4249- esac
4250- ;;
4251- *qnx* | *nto*)
4252- # QNX uses GNU C++, but need to define -shared option too, otherwise
4253- # it will coredump.
4254- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4255- ;;
4256- *)
4257- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4258- ;;
4259- esac
4260- else
4261- case $host_os in
4262- aix[[4-9]]*)
4263- # All AIX code is PIC.
4264- if test "$host_cpu" = ia64; then
4265- # AIX 5 now supports IA64 processor
4266- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4267- else
4268- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4269- fi
4270- ;;
4271- chorus*)
4272- case $cc_basename in
4273- cxch68*)
4274- # Green Hills C++ Compiler
4275- # _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"
4276- ;;
4277- esac
4278- ;;
4279- mingw* | cygwin* | os2* | pw32* | cegcc*)
4280- # This hack is so that the source file can tell whether it is being
4281- # built for inclusion in a dll (and should export symbols for example).
4282- m4_if([$1], [GCJ], [],
4283- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4284- ;;
4285- dgux*)
4286- case $cc_basename in
4287- ec++*)
4288- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4289- ;;
4290- ghcx*)
4291- # Green Hills C++ Compiler
4292- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4293- ;;
4294- *)
4295- ;;
4296- esac
4297- ;;
4298- freebsd* | dragonfly*)
4299- # FreeBSD uses GNU C++
4300- ;;
4301- hpux9* | hpux10* | hpux11*)
4302- case $cc_basename in
4303- CC*)
4304- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4305- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4306- if test "$host_cpu" != ia64; then
4307- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4308- fi
4309- ;;
4310- aCC*)
4311- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4312- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4313- case $host_cpu in
4314- hppa*64*|ia64*)
4315- # +Z the default
4316- ;;
4317- *)
4318- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4319- ;;
4320- esac
4321- ;;
4322- *)
4323- ;;
4324- esac
4325- ;;
4326- interix*)
4327- # This is c89, which is MS Visual C++ (no shared libs)
4328- # Anyone wants to do a port?
4329- ;;
4330- irix5* | irix6* | nonstopux*)
4331- case $cc_basename in
4332- CC*)
4333- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4334- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4335- # CC pic flag -KPIC is the default.
4336- ;;
4337- *)
4338- ;;
4339- esac
4340- ;;
4341- linux* | k*bsd*-gnu | kopensolaris*-gnu)
4342- case $cc_basename in
4343- KCC*)
4344- # KAI C++ Compiler
4345- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4346- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4347- ;;
4348- ecpc* )
4349- # old Intel C++ for x86_64 which still supported -KPIC.
4350- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4351- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4352- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4353- ;;
4354- icpc* )
4355- # Intel C++, used to be incompatible with GCC.
4356- # ICC 10 doesn't accept -KPIC any more.
4357- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4358- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4359- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4360- ;;
4361- pgCC* | pgcpp*)
4362- # Portland Group C++ compiler
4363- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4364- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4365- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4366- ;;
4367- cxx*)
4368- # Compaq C++
4369- # Make sure the PIC flag is empty. It appears that all Alpha
4370- # Linux and Compaq Tru64 Unix objects are PIC.
4371- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4372- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4373- ;;
4374- xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4375- # IBM XL 8.0, 9.0 on PPC and BlueGene
4376- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4377- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4378- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4379- ;;
4380- *)
4381- case `$CC -V 2>&1 | sed 5q` in
4382- *Sun\ C*)
4383- # Sun C++ 5.9
4384- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4385- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4386- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4387- ;;
4388- esac
4389- ;;
4390- esac
4391- ;;
4392- lynxos*)
4393- ;;
4394- m88k*)
4395- ;;
4396- mvs*)
4397- case $cc_basename in
4398- cxx*)
4399- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4400- ;;
4401- *)
4402- ;;
4403- esac
4404- ;;
4405- netbsd* | netbsdelf*-gnu)
4406- ;;
4407- *qnx* | *nto*)
4408- # QNX uses GNU C++, but need to define -shared option too, otherwise
4409- # it will coredump.
4410- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4411- ;;
4412- osf3* | osf4* | osf5*)
4413- case $cc_basename in
4414- KCC*)
4415- _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4416- ;;
4417- RCC*)
4418- # Rational C++ 2.4.1
4419- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4420- ;;
4421- cxx*)
4422- # Digital/Compaq C++
4423- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4424- # Make sure the PIC flag is empty. It appears that all Alpha
4425- # Linux and Compaq Tru64 Unix objects are PIC.
4426- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4427- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4428- ;;
4429- *)
4430- ;;
4431- esac
4432- ;;
4433- psos*)
4434- ;;
4435- solaris*)
4436- case $cc_basename in
4437- CC* | sunCC*)
4438- # Sun C++ 4.2, 5.x and Centerline C++
4439- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4440- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4441- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4442- ;;
4443- gcx*)
4444- # Green Hills C++ Compiler
4445- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4446- ;;
4447- *)
4448- ;;
4449- esac
4450- ;;
4451- sunos4*)
4452- case $cc_basename in
4453- CC*)
4454- # Sun C++ 4.x
4455- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4456- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4457- ;;
4458- lcc*)
4459- # Lucid
4460- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4461- ;;
4462- *)
4463- ;;
4464- esac
4465- ;;
4466- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4467- case $cc_basename in
4468- CC*)
4469- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4470- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4471- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4472- ;;
4473- esac
4474- ;;
4475- tandem*)
4476- case $cc_basename in
4477- NCC*)
4478- # NonStop-UX NCC 3.20
4479- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4480- ;;
4481- *)
4482- ;;
4483- esac
4484- ;;
4485- vxworks*)
4486- ;;
4487- *)
4488- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4489- ;;
4490- esac
4491- fi
4492-],
4493-[
4494- if test "$GCC" = yes; then
4495- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4496- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4497-
4498- case $host_os in
4499- aix*)
4500- # All AIX code is PIC.
4501- if test "$host_cpu" = ia64; then
4502- # AIX 5 now supports IA64 processor
4503- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4504- fi
4505- ;;
4506-
4507- amigaos*)
4508- case $host_cpu in
4509- powerpc)
4510- # see comment about AmigaOS4 .so support
4511- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4512- ;;
4513- m68k)
4514- # FIXME: we need at least 68020 code to build shared libraries, but
4515- # adding the `-m68020' flag to GCC prevents building anything better,
4516- # like `-m68040'.
4517- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4518- ;;
4519- esac
4520- ;;
4521-
4522- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4523- # PIC is the default for these OSes.
4524- ;;
4525-
4526- mingw* | cygwin* | pw32* | os2* | cegcc*)
4527- # This hack is so that the source file can tell whether it is being
4528- # built for inclusion in a dll (and should export symbols for example).
4529- # Although the cygwin gcc ignores -fPIC, still need this for old-style
4530- # (--disable-auto-import) libraries
4531- m4_if([$1], [GCJ], [],
4532- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4533- ;;
4534-
4535- darwin* | rhapsody*)
4536- # PIC is the default on this platform
4537- # Common symbols not allowed in MH_DYLIB files
4538- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4539- ;;
4540-
4541- haiku*)
4542- # PIC is the default for Haiku.
4543- # The "-static" flag exists, but is broken.
4544- _LT_TAGVAR(lt_prog_compiler_static, $1)=
4545- ;;
4546-
4547- hpux*)
4548- # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4549- # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4550- # sets the default TLS model and affects inlining.
4551- case $host_cpu in
4552- hppa*64*)
4553- # +Z the default
4554- ;;
4555- *)
4556- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4557- ;;
4558- esac
4559- ;;
4560-
4561- interix[[3-9]]*)
4562- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4563- # Instead, we relocate shared libraries at runtime.
4564- ;;
4565-
4566- msdosdjgpp*)
4567- # Just because we use GCC doesn't mean we suddenly get shared libraries
4568- # on systems that don't support them.
4569- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4570- enable_shared=no
4571- ;;
4572-
4573- *nto* | *qnx*)
4574- # QNX uses GNU C++, but need to define -shared option too, otherwise
4575- # it will coredump.
4576- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4577- ;;
4578-
4579- sysv4*MP*)
4580- if test -d /usr/nec; then
4581- _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4582- fi
4583- ;;
4584-
4585- *)
4586- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4587- ;;
4588- esac
4589-
4590- case $cc_basename in
4591- nvcc*) # Cuda Compiler Driver 2.2
4592- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4593- if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4594- _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4595- fi
4596- ;;
4597- esac
4598- else
4599- # PORTME Check for flag to pass linker flags through the system compiler.
4600- case $host_os in
4601- aix*)
4602- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4603- if test "$host_cpu" = ia64; then
4604- # AIX 5 now supports IA64 processor
4605- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4606- else
4607- _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4608- fi
4609- ;;
4610-
4611- mingw* | cygwin* | pw32* | os2* | cegcc*)
4612- # This hack is so that the source file can tell whether it is being
4613- # built for inclusion in a dll (and should export symbols for example).
4614- m4_if([$1], [GCJ], [],
4615- [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4616- ;;
4617-
4618- hpux9* | hpux10* | hpux11*)
4619- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4620- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4621- # not for PA HP-UX.
4622- case $host_cpu in
4623- hppa*64*|ia64*)
4624- # +Z the default
4625- ;;
4626- *)
4627- _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4628- ;;
4629- esac
4630- # Is there a better lt_prog_compiler_static that works with the bundled CC?
4631- _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4632- ;;
4633-
4634- irix5* | irix6* | nonstopux*)
4635- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4636- # PIC (with -KPIC) is the default.
4637- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4638- ;;
4639-
4640- linux* | k*bsd*-gnu | kopensolaris*-gnu)
4641- case $cc_basename in
4642- # old Intel for x86_64 which still supported -KPIC.
4643- ecc*)
4644- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4645- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4646- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4647- ;;
4648- # icc used to be incompatible with GCC.
4649- # ICC 10 doesn't accept -KPIC any more.
4650- icc* | ifort*)
4651- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4652- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4653- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4654- ;;
4655- # Lahey Fortran 8.1.
4656- lf95*)
4657- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4658- _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4659- _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4660- ;;
4661- nagfor*)
4662- # NAG Fortran compiler
4663- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4664- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4665- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4666- ;;
4667- pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4668- # Portland Group compilers (*not* the Pentium gcc compiler,
4669- # which looks to be a dead project)
4670- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4671- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4672- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4673- ;;
4674- ccc*)
4675- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4676- # All Alpha code is PIC.
4677- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4678- ;;
4679- xl* | bgxl* | bgf* | mpixl*)
4680- # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4681- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4682- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4683- _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4684- ;;
4685- *)
4686- case `$CC -V 2>&1 | sed 5q` in
4687- *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4688- # Sun Fortran 8.3 passes all unrecognized flags to the linker
4689- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4690- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4691- _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4692- ;;
4693- *Sun\ F* | *Sun*Fortran*)
4694- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4695- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4696- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4697- ;;
4698- *Sun\ C*)
4699- # Sun C 5.9
4700- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4701- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4702- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4703- ;;
4704- *Intel*\ [[CF]]*Compiler*)
4705- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4706- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4707- _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4708- ;;
4709- *Portland\ Group*)
4710- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4711- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4712- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4713- ;;
4714- esac
4715- ;;
4716- esac
4717- ;;
4718-
4719- newsos6)
4720- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4721- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4722- ;;
4723-
4724- *nto* | *qnx*)
4725- # QNX uses GNU C++, but need to define -shared option too, otherwise
4726- # it will coredump.
4727- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4728- ;;
4729-
4730- osf3* | osf4* | osf5*)
4731- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4732- # All OSF/1 code is PIC.
4733- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4734- ;;
4735-
4736- rdos*)
4737- _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4738- ;;
4739-
4740- solaris*)
4741- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4742- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4743- case $cc_basename in
4744- f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4745- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4746- *)
4747- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4748- esac
4749- ;;
4750-
4751- sunos4*)
4752- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4753- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4754- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4755- ;;
4756-
4757- sysv4 | sysv4.2uw2* | sysv4.3*)
4758- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4759- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4760- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4761- ;;
4762-
4763- sysv4*MP*)
4764- if test -d /usr/nec ;then
4765- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4766- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4767- fi
4768- ;;
4769-
4770- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4771- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4772- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4773- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4774- ;;
4775-
4776- unicos*)
4777- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4778- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4779- ;;
4780-
4781- uts4*)
4782- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4783- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4784- ;;
4785-
4786- *)
4787- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4788- ;;
4789- esac
4790- fi
4791-])
4792-case $host_os in
4793- # For platforms which do not support PIC, -DPIC is meaningless:
4794- *djgpp*)
4795- _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4796- ;;
4797- *)
4798- _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4799- ;;
4800-esac
4801-
4802-AC_CACHE_CHECK([for $compiler option to produce PIC],
4803- [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4804- [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4805-_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4806-
4807-#
4808-# Check to make sure the PIC flag actually works.
4809-#
4810-if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4811- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4812- [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4813- [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4814- [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4815- "" | " "*) ;;
4816- *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4817- esac],
4818- [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4819- _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4820-fi
4821-_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4822- [Additional compiler flags for building library objects])
4823-
4824-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4825- [How to pass a linker flag through the compiler])
4826-#
4827-# Check to make sure the static flag actually works.
4828-#
4829-wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4830-_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4831- _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4832- $lt_tmp_static_flag,
4833- [],
4834- [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4835-_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4836- [Compiler flag to prevent dynamic linking])
4837-])# _LT_COMPILER_PIC
4838-
4839-
4840-# _LT_LINKER_SHLIBS([TAGNAME])
4841-# ----------------------------
4842-# See if the linker supports building shared libraries.
4843-m4_defun([_LT_LINKER_SHLIBS],
4844-[AC_REQUIRE([LT_PATH_LD])dnl
4845-AC_REQUIRE([LT_PATH_NM])dnl
4846-m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4847-m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4848-m4_require([_LT_DECL_EGREP])dnl
4849-m4_require([_LT_DECL_SED])dnl
4850-m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4851-m4_require([_LT_TAG_COMPILER])dnl
4852-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4853-m4_if([$1], [CXX], [
4854- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4855- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4856- case $host_os in
4857- aix[[4-9]]*)
4858- # If we're using GNU nm, then we don't want the "-C" option.
4859- # -C means demangle to AIX nm, but means don't demangle with GNU nm
4860- # Also, AIX nm treats weak defined symbols like other global defined
4861- # symbols, whereas GNU nm marks them as "W".
4862- if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4863- _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'
4864- else
4865- _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'
4866- fi
4867- ;;
4868- pw32*)
4869- _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4870- ;;
4871- cygwin* | mingw* | cegcc*)
4872- case $cc_basename in
4873- cl*)
4874- _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4875- ;;
4876- *)
4877- _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'
4878- _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4879- ;;
4880- esac
4881- ;;
4882- linux* | k*bsd*-gnu | gnu*)
4883- _LT_TAGVAR(link_all_deplibs, $1)=no
4884- ;;
4885- *)
4886- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4887- ;;
4888- esac
4889-], [
4890- runpath_var=
4891- _LT_TAGVAR(allow_undefined_flag, $1)=
4892- _LT_TAGVAR(always_export_symbols, $1)=no
4893- _LT_TAGVAR(archive_cmds, $1)=
4894- _LT_TAGVAR(archive_expsym_cmds, $1)=
4895- _LT_TAGVAR(compiler_needs_object, $1)=no
4896- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4897- _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4898- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4899- _LT_TAGVAR(hardcode_automatic, $1)=no
4900- _LT_TAGVAR(hardcode_direct, $1)=no
4901- _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4902- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4903- _LT_TAGVAR(hardcode_libdir_separator, $1)=
4904- _LT_TAGVAR(hardcode_minus_L, $1)=no
4905- _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4906- _LT_TAGVAR(inherit_rpath, $1)=no
4907- _LT_TAGVAR(link_all_deplibs, $1)=unknown
4908- _LT_TAGVAR(module_cmds, $1)=
4909- _LT_TAGVAR(module_expsym_cmds, $1)=
4910- _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4911- _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4912- _LT_TAGVAR(thread_safe_flag_spec, $1)=
4913- _LT_TAGVAR(whole_archive_flag_spec, $1)=
4914- # include_expsyms should be a list of space-separated symbols to be *always*
4915- # included in the symbol list
4916- _LT_TAGVAR(include_expsyms, $1)=
4917- # exclude_expsyms can be an extended regexp of symbols to exclude
4918- # it will be wrapped by ` (' and `)$', so one must not match beginning or
4919- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4920- # as well as any symbol that contains `d'.
4921- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4922- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4923- # platforms (ab)use it in PIC code, but their linkers get confused if
4924- # the symbol is explicitly referenced. Since portable code cannot
4925- # rely on this symbol name, it's probably fine to never include it in
4926- # preloaded symbol tables.
4927- # Exclude shared library initialization/finalization symbols.
4928-dnl Note also adjust exclude_expsyms for C++ above.
4929- extract_expsyms_cmds=
4930-
4931- case $host_os in
4932- cygwin* | mingw* | pw32* | cegcc*)
4933- # FIXME: the MSVC++ port hasn't been tested in a loooong time
4934- # When not using gcc, we currently assume that we are using
4935- # Microsoft Visual C++.
4936- if test "$GCC" != yes; then
4937- with_gnu_ld=no
4938- fi
4939- ;;
4940- interix*)
4941- # we just hope/assume this is gcc and not c89 (= MSVC++)
4942- with_gnu_ld=yes
4943- ;;
4944- openbsd*)
4945- with_gnu_ld=no
4946- ;;
4947- linux* | k*bsd*-gnu | gnu*)
4948- _LT_TAGVAR(link_all_deplibs, $1)=no
4949- ;;
4950- esac
4951-
4952- _LT_TAGVAR(ld_shlibs, $1)=yes
4953-
4954- # On some targets, GNU ld is compatible enough with the native linker
4955- # that we're better off using the native interface for both.
4956- lt_use_gnu_ld_interface=no
4957- if test "$with_gnu_ld" = yes; then
4958- case $host_os in
4959- aix*)
4960- # The AIX port of GNU ld has always aspired to compatibility
4961- # with the native linker. However, as the warning in the GNU ld
4962- # block says, versions before 2.19.5* couldn't really create working
4963- # shared libraries, regardless of the interface used.
4964- case `$LD -v 2>&1` in
4965- *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4966- *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4967- *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4968- *)
4969- lt_use_gnu_ld_interface=yes
4970- ;;
4971- esac
4972- ;;
4973- *)
4974- lt_use_gnu_ld_interface=yes
4975- ;;
4976- esac
4977- fi
4978-
4979- if test "$lt_use_gnu_ld_interface" = yes; then
4980- # If archive_cmds runs LD, not CC, wlarc should be empty
4981- wlarc='${wl}'
4982-
4983- # Set some defaults for GNU ld with shared library support. These
4984- # are reset later if shared libraries are not supported. Putting them
4985- # here allows them to be overridden if necessary.
4986- runpath_var=LD_RUN_PATH
4987- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4988- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4989- # ancient GNU ld didn't support --whole-archive et. al.
4990- if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4991- _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4992- else
4993- _LT_TAGVAR(whole_archive_flag_spec, $1)=
4994- fi
4995- supports_anon_versioning=no
4996- case `$LD -v 2>&1` in
4997- *GNU\ gold*) supports_anon_versioning=yes ;;
4998- *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4999- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5000- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches