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

Proposed by Ted Gould
Status: Merged
Merged at revision: 288
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-applet/upstream
Merge into: lp:~ubuntu-desktop/indicator-applet/ubuntu
Diff against target: 32534 lines (+14575/-11564)
30 files modified
AUTHORS (+1/-0)
ChangeLog (+88/-0)
Makefile.in (+8/-2)
aclocal.m4 (+18/-8166)
config.guess (+120/-105)
config.sub (+101/-55)
configure (+1965/-1071)
configure.ac (+13/-8)
data/Makefile.am (+1/-1)
data/Makefile.in (+9/-3)
debian/changelog (+9/-0)
debian/control (+3/-4)
debian/indicator-applet-appmenu.install (+1/-1)
debian/indicator-applet-complete.install (+1/-1)
debian/indicator-applet-session.install (+1/-1)
debian/indicator-applet.install (+1/-1)
ltmain.sh (+2657/-1409)
m4/intltool.m4 (+216/-0)
m4/libtool.m4 (+8001/-0)
m4/ltoptions.m4 (+384/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+98/-0)
po/Makefile.in.in (+2/-2)
src/Makefile.am (+8/-0)
src/Makefile.in (+16/-2)
src/applet-main.c (+694/-718)
src/eggaccelerators.c (+9/-9)
src/eggaccelerators.h (+1/-1)
src/tomboykeybinder.c (+3/-4)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-applet/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+91931@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

I merged and made a couple minor changes. I dropped recommends for indicator-me and removed quilt

review: Approve

Preview Diff

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

Subscribers

People subscribed via source and target branches