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

Proposed by Ted Gould
Status: Merged
Merged at revision: 269
Proposed branch: lp:~indicator-applet-developers/libindicator/ubuntu
Merge into: lp:~ubuntu-desktop/libindicator/ubuntu
Diff against target: 16827 lines (+8255/-8088)
18 files modified
INSTALL (+80/-17)
Makefile.in (+4/-1)
aclocal.m4 (+5/-7966)
configure (+24/-20)
configure.ac (+2/-2)
debian/changelog (+39/-1)
debian/control (+8/-6)
debian/copyright (+16/-32)
libindicator/Makefile.in (+4/-1)
libindicator/indicator-image-helper.c (+0/-12)
libindicator/indicator-service.c (+82/-28)
m4/libtool.m4 (+7377/-0)
m4/ltoptions.m4 (+368/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+92/-0)
tests/Makefile.in (+4/-1)
tools/Makefile.in (+4/-1)
To merge this branch: bzr merge lp:~indicator-applet-developers/libindicator/ubuntu
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Review via email: mp+29500@code.launchpad.net

Description of the change

0.3.9

To post a comment you must log in.

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: