Merge lp:~dbusmenu-team/libdbusmenu/ubuntu into lp:~ubuntu-desktop/libdbusmenu/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 78
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 23699 lines (+22485/-84)
88 files modified
INSTALL (+94/-20)
Makefile.am (+2/-2)
Makefile.in (+10/-6)
aclocal.m4 (+8374/-7)
configure (+425/-30)
configure.ac (+16/-2)
debian/changelog (+26/-0)
docs/Makefile.am (+1/-0)
docs/Makefile.in (+608/-0)
docs/libdbusmenu-glib/Makefile.am (+1/-0)
docs/libdbusmenu-glib/Makefile.in (+608/-0)
docs/libdbusmenu-glib/reference/Makefile.am (+92/-0)
docs/libdbusmenu-glib/reference/Makefile.in (+684/-0)
docs/libdbusmenu-glib/reference/html/annotation-glossary.html (+62/-0)
docs/libdbusmenu-glib/reference/html/api-index-full.html (+414/-0)
docs/libdbusmenu-glib/reference/html/ch01.html (+48/-0)
docs/libdbusmenu-glib/reference/html/index.html (+46/-0)
docs/libdbusmenu-glib/reference/html/index.sgml (+121/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+474/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClientMenuitem.html (+115/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+1463/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+137/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+263/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp (+111/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp2 (+111/-0)
docs/libdbusmenu-glib/reference/html/object-tree.html (+32/-0)
docs/libdbusmenu-glib/reference/html/style.css (+257/-0)
docs/libdbusmenu-glib/reference/libdbusmenu-glib-docs.sgml (+33/-0)
docs/libdbusmenu-glib/reference/libdbusmenu-glib-sections.txt (+157/-0)
docs/libdbusmenu-glib/reference/tmpl/client-menuitem.sgml (+55/-0)
docs/libdbusmenu-glib/reference/tmpl/client.sgml (+165/-0)
docs/libdbusmenu-glib/reference/tmpl/menuitem-proxy.sgml (+56/-0)
docs/libdbusmenu-glib/reference/tmpl/menuitem.sgml (+534/-0)
docs/libdbusmenu-glib/reference/tmpl/server.sgml (+112/-0)
docs/libdbusmenu-glib/reference/version.xml (+1/-0)
docs/libdbusmenu-glib/reference/version.xml.in (+1/-0)
docs/libdbusmenu-glib/reference/xml/annotation-glossary.xml (+54/-0)
docs/libdbusmenu-glib/reference/xml/api-index-deprecated.xml (+8/-0)
docs/libdbusmenu-glib/reference/xml/api-index-full.xml (+107/-0)
docs/libdbusmenu-glib/reference/xml/client-menuitem.xml (+82/-0)
docs/libdbusmenu-glib/reference/xml/client.xml (+353/-0)
docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+93/-0)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+1028/-0)
docs/libdbusmenu-glib/reference/xml/server.xml (+200/-0)
docs/libdbusmenu-gtk/Makefile.am (+1/-0)
docs/libdbusmenu-gtk/Makefile.in (+608/-0)
docs/libdbusmenu-gtk/reference/Makefile.am (+87/-0)
docs/libdbusmenu-gtk/reference/Makefile.in (+678/-0)
docs/libdbusmenu-gtk/reference/html/Genericmenuitem.html (+360/-0)
docs/libdbusmenu-gtk/reference/html/api-index-full.html (+172/-0)
docs/libdbusmenu-gtk/reference/html/ch01.html (+44/-0)
docs/libdbusmenu-gtk/reference/html/index.html (+42/-0)
docs/libdbusmenu-gtk/reference/html/index.sgml (+47/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+273/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+166/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+133/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+45/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+45/-0)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+42/-0)
docs/libdbusmenu-gtk/reference/html/style.css (+257/-0)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-docs.sgml (+30/-0)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-sections.txt (+62/-0)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk.types (+3/-0)
docs/libdbusmenu-gtk/reference/tmpl/client.sgml (+91/-0)
docs/libdbusmenu-gtk/reference/tmpl/genericmenuitem.sgml (+153/-0)
docs/libdbusmenu-gtk/reference/tmpl/menu.sgml (+61/-0)
docs/libdbusmenu-gtk/reference/tmpl/menuitem.sgml (+45/-0)
docs/libdbusmenu-gtk/reference/version.xml (+1/-0)
docs/libdbusmenu-gtk/reference/version.xml.in (+1/-0)
docs/libdbusmenu-gtk/reference/xml/api-index-deprecated.xml (+8/-0)
docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+53/-0)
docs/libdbusmenu-gtk/reference/xml/client.xml (+191/-0)
docs/libdbusmenu-gtk/reference/xml/genericmenuitem.xml (+256/-0)
docs/libdbusmenu-gtk/reference/xml/menu.xml (+115/-0)
docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+89/-0)
gtk-doc.local.make (+194/-0)
libdbusmenu-glib/Makefile.in (+8/-0)
libdbusmenu-glib/dbus-menu.xml (+14/-0)
libdbusmenu-glib/menuitem.c (+20/-0)
libdbusmenu-glib/menuitem.h (+3/-0)
libdbusmenu-gtk/Makefile.in (+8/-0)
tests/Makefile.am (+35/-0)
tests/Makefile.in (+110/-7)
tests/test-glib-submenu-client.c (+119/-0)
tests/test-glib-submenu-server.c (+109/-0)
tests/test-glib-submenu.h (+54/-0)
tools/Makefile.in (+9/-5)
tools/testapp/Makefile.in (+9/-5)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+27301@code.launchpad.net

Description of the change

0.3.2

To post a comment you must log in.
lp:~dbusmenu-team/libdbusmenu/ubuntu updated
78. By Ken VanDine

* debian/control
  - added doc packages
  - added build dep for gtk-doc-tools
* debian/libdbusmenu-glib-doc.install added
* debian/libdbusmenu-gtk-doc.install added
* debian/rules
  - enabled gtk-doc for configure
* New upstream release.
  * Set the 'child-display' property on menuitems that
    have child menuitems.
  * gtk-doc support
  * Document the 'shortcut' property
* New upstream release.
  * Add function to get submenu of GTK-ified items
  * Fix signal prototype of ID update
  * Fixing up VAPI files to build them correctly
 * Fixing the version string in the GIR file
  * Fix documentation title page
  * Reject text nodes early (warnings with Qt integration)
* debian/libdbusmenu-glib-dev.install: Updating gir and vapi file
  names for package list.
* debian/gir1.0-dbusmenu-glib-0.2.install: Changing the name of the
  typelib file.

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: