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

Proposed by Ted Gould
Status: Merged
Merged at revision: 278
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-application/upstream
Merge into: lp:~ubuntu-desktop/indicator-application/ubuntu
Diff against target: 19610 lines (+9587/-8648)
27 files modified
AUTHORS (+2/-0)
ChangeLog (+108/-0)
Makefile.am (+36/-0)
Makefile.in (+61/-15)
aclocal.m4 (+5/-8447)
configure (+390/-70)
configure.ac (+13/-3)
data/Makefile.in (+11/-1)
debian/changelog (+12/-0)
debian/control (+3/-3)
ltmain.sh (+57/-38)
m4/gcov.m4 (+83/-0)
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)
src/Makefile.am (+7/-1)
src/Makefile.in (+20/-3)
src/application-service-appstore.c (+64/-26)
src/application-service-marshal.c (+1/-1)
src/application-service.c (+1/-1)
src/application-service.xml (+6/-1)
src/dbus-shared.h (+1/-0)
src/gen-application-service.xml.c (+6/-1)
src/indicator-application.c (+60/-36)
tests/Makefile.in (+11/-1)
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+92099@code.launchpad.net

Description of the change

0.4.90

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

Subscribers

People subscribed via source and target branches