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: 280
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-application/upstream
Merge into: lp:~ubuntu-desktop/indicator-application/ubuntu
Diff against target: 18686 lines (+8957/-8875)
16 files modified
AUTHORS (+1/-0)
ChangeLog (+12/-0)
Makefile.in (+60/-41)
aclocal.m4 (+8685/-34)
configure (+50/-21)
configure.ac (+2/-2)
data/Makefile.in (+26/-22)
debian/changelog (+7/-0)
m4/libtool.m4 (+0/-8001)
m4/ltoptions.m4 (+0/-384)
m4/ltsugar.m4 (+0/-123)
m4/ltversion.m4 (+0/-23)
m4/lt~obsolete.m4 (+0/-98)
src/Makefile.in (+67/-75)
src/application-service-appstore.c (+1/-1)
tests/Makefile.in (+46/-50)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-application/upstream
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+93267@code.launchpad.net

Description of the change

0.4.91

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

Subscribers

People subscribed via source and target branches