1# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
2
3# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15m4_ifndef([AC_AUTOCONF_VERSION],
16  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
19You have another version of autoconf.  It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23# Portability macros for glibc argz.                    -*- Autoconf -*-
24#
25#   Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
26#   Written by Gary V. Vaughan <gary@gnu.org>
27#
28# This file is free software; the Free Software Foundation gives
29# unlimited permission to copy and/or distribute it, with or without
30# modifications, as long as this notice is preserved.
31
32# serial 5 argz.m4
33
34AC_DEFUN([gl_FUNC_ARGZ],
35[gl_PREREQ_ARGZ
36
37AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT])
38
39AC_CHECK_TYPES([error_t],
40  [],
41  [AC_DEFINE([error_t], [int],
42   [Define to a type to use for `error_t' if it is not otherwise available.])
43   AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
44    does not typedef error_t.])],
45  [#if defined(HAVE_ARGZ_H)
46#  include <argz.h>
47#endif])
48
49ARGZ_H=
50AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \
51	argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])])
52
53dnl if have system argz functions, allow forced use of
54dnl libltdl-supplied implementation (and default to do so
55dnl on "known bad" systems). Could use a runtime check, but
56dnl (a) detecting malloc issues is notoriously unreliable
57dnl (b) only known system that declares argz functions,
58dnl     provides them, yet they are broken, is cygwin
59dnl     releases prior to 16-Mar-2007 (1.5.24 and earlier)
60dnl So, it's more straightforward simply to special case
61dnl this for known bad systems.
62AS_IF([test -z "$ARGZ_H"],
63    [AC_CACHE_CHECK(
64        [if argz actually works],
65        [lt_cv_sys_argz_works],
66        [[case $host_os in #(
67	 *cygwin*)
68	   lt_cv_sys_argz_works=no
69	   if test "$cross_compiling" != no; then
70	     lt_cv_sys_argz_works="guessing no"
71	   else
72	     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
73	     save_IFS=$IFS
74	     IFS=-.
75	     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
76	     IFS=$save_IFS
77	     lt_os_major=${2-0}
78	     lt_os_minor=${3-0}
79	     lt_os_micro=${4-0}
80	     if test "$lt_os_major" -gt 1 \
81		|| { test "$lt_os_major" -eq 1 \
82		  && { test "$lt_os_minor" -gt 5 \
83		    || { test "$lt_os_minor" -eq 5 \
84		      && test "$lt_os_micro" -gt 24; }; }; }; then
85	       lt_cv_sys_argz_works=yes
86	     fi
87	   fi
88	   ;; #(
89	 *) lt_cv_sys_argz_works=yes ;;
90	 esac]])
91     AS_IF([test "$lt_cv_sys_argz_works" = yes],
92        [AC_DEFINE([HAVE_WORKING_ARGZ], 1,
93                   [This value is set to 1 to indicate that the system argz facility works])],
94        [ARGZ_H=argz.h
95        AC_LIBOBJ([argz])])])
96
97AC_SUBST([ARGZ_H])
98])
99
100# Prerequisites of lib/argz.c.
101AC_DEFUN([gl_PREREQ_ARGZ], [:])
102
103# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
104#
105#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
106#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
107#                 Foundation, Inc.
108#   Written by Gordon Matzigkeit, 1996
109#
110# This file is free software; the Free Software Foundation gives
111# unlimited permission to copy and/or distribute it, with or without
112# modifications, as long as this notice is preserved.
113
114m4_define([_LT_COPYING], [dnl
115#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
116#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
117#                 Foundation, Inc.
118#   Written by Gordon Matzigkeit, 1996
119#
120#   This file is part of GNU Libtool.
121#
122# GNU Libtool is free software; you can redistribute it and/or
123# modify it under the terms of the GNU General Public License as
124# published by the Free Software Foundation; either version 2 of
125# the License, or (at your option) any later version.
126#
127# As a special exception to the GNU General Public License,
128# if you distribute this file as part of a program or library that
129# is built using GNU Libtool, you may include this file under the
130# same distribution terms that you use for the rest of that program.
131#
132# GNU Libtool is distributed in the hope that it will be useful,
133# but WITHOUT ANY WARRANTY; without even the implied warranty of
134# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
135# GNU General Public License for more details.
136#
137# You should have received a copy of the GNU General Public License
138# along with GNU Libtool; see the file COPYING.  If not, a copy
139# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
140# obtained by writing to the Free Software Foundation, Inc.,
141# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
142])
143
144# serial 57 LT_INIT
145
146
147# LT_PREREQ(VERSION)
148# ------------------
149# Complain and exit if this libtool version is less that VERSION.
150m4_defun([LT_PREREQ],
151[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
152       [m4_default([$3],
153		   [m4_fatal([Libtool version $1 or higher is required],
154		             63)])],
155       [$2])])
156
157
158# _LT_CHECK_BUILDDIR
159# ------------------
160# Complain if the absolute build directory name contains unusual characters
161m4_defun([_LT_CHECK_BUILDDIR],
162[case `pwd` in
163  *\ * | *\	*)
164    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
165esac
166])
167
168
169# LT_INIT([OPTIONS])
170# ------------------
171AC_DEFUN([LT_INIT],
172[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
173AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
174AC_BEFORE([$0], [LT_LANG])dnl
175AC_BEFORE([$0], [LT_OUTPUT])dnl
176AC_BEFORE([$0], [LTDL_INIT])dnl
177m4_require([_LT_CHECK_BUILDDIR])dnl
178
179dnl Autoconf doesn't catch unexpanded LT_ macros by default:
180m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
181m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
182dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
183dnl unless we require an AC_DEFUNed macro:
184AC_REQUIRE([LTOPTIONS_VERSION])dnl
185AC_REQUIRE([LTSUGAR_VERSION])dnl
186AC_REQUIRE([LTVERSION_VERSION])dnl
187AC_REQUIRE([LTOBSOLETE_VERSION])dnl
188m4_require([_LT_PROG_LTMAIN])dnl
189
190_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
191
192dnl Parse OPTIONS
193_LT_SET_OPTIONS([$0], [$1])
194
195# This can be used to rebuild libtool when needed
196LIBTOOL_DEPS="$ltmain"
197
198# Always use our own libtool.
199LIBTOOL='$(SHELL) $(top_builddir)/libtool'
200AC_SUBST(LIBTOOL)dnl
201
202_LT_SETUP
203
204# Only expand once:
205m4_define([LT_INIT])
206])# LT_INIT
207
208# Old names:
209AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
210AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
211dnl aclocal-1.4 backwards compatibility:
212dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
213dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
214
215
216# _LT_CC_BASENAME(CC)
217# -------------------
218# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
219m4_defun([_LT_CC_BASENAME],
220[for cc_temp in $1""; do
221  case $cc_temp in
222    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
223    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
224    \-*) ;;
225    *) break;;
226  esac
227done
228cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
229])
230
231
232# _LT_FILEUTILS_DEFAULTS
233# ----------------------
234# It is okay to use these file commands and assume they have been set
235# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
236m4_defun([_LT_FILEUTILS_DEFAULTS],
237[: ${CP="cp -f"}
238: ${MV="mv -f"}
239: ${RM="rm -f"}
240])# _LT_FILEUTILS_DEFAULTS
241
242
243# _LT_SETUP
244# ---------
245m4_defun([_LT_SETUP],
246[AC_REQUIRE([AC_CANONICAL_HOST])dnl
247AC_REQUIRE([AC_CANONICAL_BUILD])dnl
248AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
249AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
250
251_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
252dnl
253_LT_DECL([], [host_alias], [0], [The host system])dnl
254_LT_DECL([], [host], [0])dnl
255_LT_DECL([], [host_os], [0])dnl
256dnl
257_LT_DECL([], [build_alias], [0], [The build system])dnl
258_LT_DECL([], [build], [0])dnl
259_LT_DECL([], [build_os], [0])dnl
260dnl
261AC_REQUIRE([AC_PROG_CC])dnl
262AC_REQUIRE([LT_PATH_LD])dnl
263AC_REQUIRE([LT_PATH_NM])dnl
264dnl
265AC_REQUIRE([AC_PROG_LN_S])dnl
266test -z "$LN_S" && LN_S="ln -s"
267_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
268dnl
269AC_REQUIRE([LT_CMD_MAX_LEN])dnl
270_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
271_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
272dnl
273m4_require([_LT_FILEUTILS_DEFAULTS])dnl
274m4_require([_LT_CHECK_SHELL_FEATURES])dnl
275m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
276m4_require([_LT_CMD_RELOAD])dnl
277m4_require([_LT_CHECK_MAGIC_METHOD])dnl
278m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
279m4_require([_LT_CMD_OLD_ARCHIVE])dnl
280m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
281m4_require([_LT_WITH_SYSROOT])dnl
282
283_LT_CONFIG_LIBTOOL_INIT([
284# See if we are running on zsh, and set the options which allow our
285# commands through without removal of \ escapes INIT.
286if test -n "\${ZSH_VERSION+set}" ; then
287   setopt NO_GLOB_SUBST
288fi
289])
290if test -n "${ZSH_VERSION+set}" ; then
291   setopt NO_GLOB_SUBST
292fi
293
294_LT_CHECK_OBJDIR
295
296m4_require([_LT_TAG_COMPILER])dnl
297
298case $host_os in
299aix3*)
300  # AIX sometimes has problems with the GCC collect2 program.  For some
301  # reason, if we set the COLLECT_NAMES environment variable, the problems
302  # vanish in a puff of smoke.
303  if test "X${COLLECT_NAMES+set}" != Xset; then
304    COLLECT_NAMES=
305    export COLLECT_NAMES
306  fi
307  ;;
308esac
309
310# Global variables:
311ofile=libtool
312can_build_shared=yes
313
314# All known linkers require a `.a' archive for static linking (except MSVC,
315# which needs '.lib').
316libext=a
317
318with_gnu_ld="$lt_cv_prog_gnu_ld"
319
320old_CC="$CC"
321old_CFLAGS="$CFLAGS"
322
323# Set sane defaults for various variables
324test -z "$CC" && CC=cc
325test -z "$LTCC" && LTCC=$CC
326test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
327test -z "$LD" && LD=ld
328test -z "$ac_objext" && ac_objext=o
329
330_LT_CC_BASENAME([$compiler])
331
332# Only perform the check for file, if the check method requires it
333test -z "$MAGIC_CMD" && MAGIC_CMD=file
334case $deplibs_check_method in
335file_magic*)
336  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
337    _LT_PATH_MAGIC
338  fi
339  ;;
340esac
341
342# Use C for the default configuration in the libtool script
343LT_SUPPORTED_TAG([CC])
344_LT_LANG_C_CONFIG
345_LT_LANG_DEFAULT_CONFIG
346_LT_CONFIG_COMMANDS
347])# _LT_SETUP
348
349
350# _LT_PREPARE_SED_QUOTE_VARS
351# --------------------------
352# Define a few sed substitution that help us do robust quoting.
353m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
354[# Backslashify metacharacters that are still active within
355# double-quoted strings.
356sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
357
358# Same as above, but do not quote variable references.
359double_quote_subst='s/\([["`\\]]\)/\\\1/g'
360
361# Sed substitution to delay expansion of an escaped shell variable in a
362# double_quote_subst'ed string.
363delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
364
365# Sed substitution to delay expansion of an escaped single quote.
366delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
367
368# Sed substitution to avoid accidental globbing in evaled expressions
369no_glob_subst='s/\*/\\\*/g'
370])
371
372# _LT_PROG_LTMAIN
373# ---------------
374# Note that this code is called both from `configure', and `config.status'
375# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
376# `config.status' has no value for ac_aux_dir unless we are using Automake,
377# so we pass a copy along to make sure it has a sensible value anyway.
378m4_defun([_LT_PROG_LTMAIN],
379[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
380_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
381ltmain="$ac_aux_dir/ltmain.sh"
382])# _LT_PROG_LTMAIN
383
384
385
386# So that we can recreate a full libtool script including additional
387# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
388# in macros and then make a single call at the end using the `libtool'
389# label.
390
391
392# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
393# ----------------------------------------
394# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
395m4_define([_LT_CONFIG_LIBTOOL_INIT],
396[m4_ifval([$1],
397          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
398                     [$1
399])])])
400
401# Initialize.
402m4_define([_LT_OUTPUT_LIBTOOL_INIT])
403
404
405# _LT_CONFIG_LIBTOOL([COMMANDS])
406# ------------------------------
407# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
408m4_define([_LT_CONFIG_LIBTOOL],
409[m4_ifval([$1],
410          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
411                     [$1
412])])])
413
414# Initialize.
415m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
416
417
418# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
419# -----------------------------------------------------
420m4_defun([_LT_CONFIG_SAVE_COMMANDS],
421[_LT_CONFIG_LIBTOOL([$1])
422_LT_CONFIG_LIBTOOL_INIT([$2])
423])
424
425
426# _LT_FORMAT_COMMENT([COMMENT])
427# -----------------------------
428# Add leading comment marks to the start of each line, and a trailing
429# full-stop to the whole comment if one is not present already.
430m4_define([_LT_FORMAT_COMMENT],
431[m4_ifval([$1], [
432m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
433              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
434)])
435
436
437
438
439
440# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
441# -------------------------------------------------------------------
442# CONFIGNAME is the name given to the value in the libtool script.
443# VARNAME is the (base) name used in the configure script.
444# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
445# VARNAME.  Any other value will be used directly.
446m4_define([_LT_DECL],
447[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
448    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
449	[m4_ifval([$1], [$1], [$2])])
450    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
451    m4_ifval([$4],
452	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
453    lt_dict_add_subkey([lt_decl_dict], [$2],
454	[tagged?], [m4_ifval([$5], [yes], [no])])])
455])
456
457
458# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
459# --------------------------------------------------------
460m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
461
462
463# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
464# ------------------------------------------------
465m4_define([lt_decl_tag_varnames],
466[_lt_decl_filter([tagged?], [yes], $@)])
467
468
469# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
470# ---------------------------------------------------------
471m4_define([_lt_decl_filter],
472[m4_case([$#],
473  [0], [m4_fatal([$0: too few arguments: $#])],
474  [1], [m4_fatal([$0: too few arguments: $#: $1])],
475  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
476  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
477  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
478])
479
480
481# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
482# --------------------------------------------------
483m4_define([lt_decl_quote_varnames],
484[_lt_decl_filter([value], [1], $@)])
485
486
487# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
488# ---------------------------------------------------
489m4_define([lt_decl_dquote_varnames],
490[_lt_decl_filter([value], [2], $@)])
491
492
493# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
494# ---------------------------------------------------
495m4_define([lt_decl_varnames_tagged],
496[m4_assert([$# <= 2])dnl
497_$0(m4_quote(m4_default([$1], [[, ]])),
498    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
499    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
500m4_define([_lt_decl_varnames_tagged],
501[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
502
503
504# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
505# ------------------------------------------------
506m4_define([lt_decl_all_varnames],
507[_$0(m4_quote(m4_default([$1], [[, ]])),
508     m4_if([$2], [],
509	   m4_quote(lt_decl_varnames),
510	m4_quote(m4_shift($@))))[]dnl
511])
512m4_define([_lt_decl_all_varnames],
513[lt_join($@, lt_decl_varnames_tagged([$1],
514			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
515])
516
517
518# _LT_CONFIG_STATUS_DECLARE([VARNAME])
519# ------------------------------------
520# Quote a variable value, and forward it to `config.status' so that its
521# declaration there will have the same value as in `configure'.  VARNAME
522# must have a single quote delimited value for this to work.
523m4_define([_LT_CONFIG_STATUS_DECLARE],
524[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
525
526
527# _LT_CONFIG_STATUS_DECLARATIONS
528# ------------------------------
529# We delimit libtool config variables with single quotes, so when
530# we write them to config.status, we have to be sure to quote all
531# embedded single quotes properly.  In configure, this macro expands
532# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
533#
534#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
535m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
536[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
537    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
538
539
540# _LT_LIBTOOL_TAGS
541# ----------------
542# Output comment and list of tags supported by the script
543m4_defun([_LT_LIBTOOL_TAGS],
544[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
545available_tags="_LT_TAGS"dnl
546])
547
548
549# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
550# -----------------------------------
551# Extract the dictionary values for VARNAME (optionally with TAG) and
552# expand to a commented shell variable setting:
553#
554#    # Some comment about what VAR is for.
555#    visible_name=$lt_internal_name
556m4_define([_LT_LIBTOOL_DECLARE],
557[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
558					   [description])))[]dnl
559m4_pushdef([_libtool_name],
560    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
561m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
562    [0], [_libtool_name=[$]$1],
563    [1], [_libtool_name=$lt_[]$1],
564    [2], [_libtool_name=$lt_[]$1],
565    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
566m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
567])
568
569
570# _LT_LIBTOOL_CONFIG_VARS
571# -----------------------
572# Produce commented declarations of non-tagged libtool config variables
573# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
574# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
575# section) are produced by _LT_LIBTOOL_TAG_VARS.
576m4_defun([_LT_LIBTOOL_CONFIG_VARS],
577[m4_foreach([_lt_var],
578    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
579    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
580
581
582# _LT_LIBTOOL_TAG_VARS(TAG)
583# -------------------------
584m4_define([_LT_LIBTOOL_TAG_VARS],
585[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
586    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
587
588
589# _LT_TAGVAR(VARNAME, [TAGNAME])
590# ------------------------------
591m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
592
593
594# _LT_CONFIG_COMMANDS
595# -------------------
596# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
597# variables for single and double quote escaping we saved from calls
598# to _LT_DECL, we can put quote escaped variables declarations
599# into `config.status', and then the shell code to quote escape them in
600# for loops in `config.status'.  Finally, any additional code accumulated
601# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
602m4_defun([_LT_CONFIG_COMMANDS],
603[AC_PROVIDE_IFELSE([LT_OUTPUT],
604	dnl If the libtool generation code has been placed in $CONFIG_LT,
605	dnl instead of duplicating it all over again into config.status,
606	dnl then we will have config.status run $CONFIG_LT later, so it
607	dnl needs to know what name is stored there:
608        [AC_CONFIG_COMMANDS([libtool],
609            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
610    dnl If the libtool generation code is destined for config.status,
611    dnl expand the accumulated commands and init code now:
612    [AC_CONFIG_COMMANDS([libtool],
613        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
614])#_LT_CONFIG_COMMANDS
615
616
617# Initialize.
618m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
619[
620
621# The HP-UX ksh and POSIX shell print the target directory to stdout
622# if CDPATH is set.
623(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
624
625sed_quote_subst='$sed_quote_subst'
626double_quote_subst='$double_quote_subst'
627delay_variable_subst='$delay_variable_subst'
628_LT_CONFIG_STATUS_DECLARATIONS
629LTCC='$LTCC'
630LTCFLAGS='$LTCFLAGS'
631compiler='$compiler_DEFAULT'
632
633# A function that is used when there is no print builtin or printf.
634func_fallback_echo ()
635{
636  eval 'cat <<_LTECHO_EOF
637\$[]1
638_LTECHO_EOF'
639}
640
641# Quote evaled strings.
642for var in lt_decl_all_varnames([[ \
643]], lt_decl_quote_varnames); do
644    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
645    *[[\\\\\\\`\\"\\\$]]*)
646      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
647      ;;
648    *)
649      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
650      ;;
651    esac
652done
653
654# Double-quote double-evaled strings.
655for var in lt_decl_all_varnames([[ \
656]], lt_decl_dquote_varnames); do
657    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
658    *[[\\\\\\\`\\"\\\$]]*)
659      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
660      ;;
661    *)
662      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
663      ;;
664    esac
665done
666
667_LT_OUTPUT_LIBTOOL_INIT
668])
669
670# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
671# ------------------------------------
672# Generate a child script FILE with all initialization necessary to
673# reuse the environment learned by the parent script, and make the
674# file executable.  If COMMENT is supplied, it is inserted after the
675# `#!' sequence but before initialization text begins.  After this
676# macro, additional text can be appended to FILE to form the body of
677# the child script.  The macro ends with non-zero status if the
678# file could not be fully written (such as if the disk is full).
679m4_ifdef([AS_INIT_GENERATED],
680[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
681[m4_defun([_LT_GENERATED_FILE_INIT],
682[m4_require([AS_PREPARE])]dnl
683[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
684[lt_write_fail=0
685cat >$1 <<_ASEOF || lt_write_fail=1
686#! $SHELL
687# Generated by $as_me.
688$2
689SHELL=\${CONFIG_SHELL-$SHELL}
690export SHELL
691_ASEOF
692cat >>$1 <<\_ASEOF || lt_write_fail=1
693AS_SHELL_SANITIZE
694_AS_PREPARE
695exec AS_MESSAGE_FD>&1
696_ASEOF
697test $lt_write_fail = 0 && chmod +x $1[]dnl
698m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
699
700# LT_OUTPUT
701# ---------
702# This macro allows early generation of the libtool script (before
703# AC_OUTPUT is called), incase it is used in configure for compilation
704# tests.
705AC_DEFUN([LT_OUTPUT],
706[: ${CONFIG_LT=./config.lt}
707AC_MSG_NOTICE([creating $CONFIG_LT])
708_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
709[# Run this file to recreate a libtool stub with the current configuration.])
710
711cat >>"$CONFIG_LT" <<\_LTEOF
712lt_cl_silent=false
713exec AS_MESSAGE_LOG_FD>>config.log
714{
715  echo
716  AS_BOX([Running $as_me.])
717} >&AS_MESSAGE_LOG_FD
718
719lt_cl_help="\
720\`$as_me' creates a local libtool stub from the current configuration,
721for use in further configure time tests before the real libtool is
722generated.
723
724Usage: $[0] [[OPTIONS]]
725
726  -h, --help      print this help, then exit
727  -V, --version   print version number, then exit
728  -q, --quiet     do not print progress messages
729  -d, --debug     don't remove temporary files
730
731Report bugs to <bug-libtool@gnu.org>."
732
733lt_cl_version="\
734m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
735m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
736configured by $[0], generated by m4_PACKAGE_STRING.
737
738Copyright (C) 2011 Free Software Foundation, Inc.
739This config.lt script is free software; the Free Software Foundation
740gives unlimited permision to copy, distribute and modify it."
741
742while test $[#] != 0
743do
744  case $[1] in
745    --version | --v* | -V )
746      echo "$lt_cl_version"; exit 0 ;;
747    --help | --h* | -h )
748      echo "$lt_cl_help"; exit 0 ;;
749    --debug | --d* | -d )
750      debug=: ;;
751    --quiet | --q* | --silent | --s* | -q )
752      lt_cl_silent=: ;;
753
754    -*) AC_MSG_ERROR([unrecognized option: $[1]
755Try \`$[0] --help' for more information.]) ;;
756
757    *) AC_MSG_ERROR([unrecognized argument: $[1]
758Try \`$[0] --help' for more information.]) ;;
759  esac
760  shift
761done
762
763if $lt_cl_silent; then
764  exec AS_MESSAGE_FD>/dev/null
765fi
766_LTEOF
767
768cat >>"$CONFIG_LT" <<_LTEOF
769_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
770_LTEOF
771
772cat >>"$CONFIG_LT" <<\_LTEOF
773AC_MSG_NOTICE([creating $ofile])
774_LT_OUTPUT_LIBTOOL_COMMANDS
775AS_EXIT(0)
776_LTEOF
777chmod +x "$CONFIG_LT"
778
779# configure is writing to config.log, but config.lt does its own redirection,
780# appending to config.log, which fails on DOS, as config.log is still kept
781# open by configure.  Here we exec the FD to /dev/null, effectively closing
782# config.log, so it can be properly (re)opened and appended to by config.lt.
783lt_cl_success=:
784test "$silent" = yes &&
785  lt_config_lt_args="$lt_config_lt_args --quiet"
786exec AS_MESSAGE_LOG_FD>/dev/null
787$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
788exec AS_MESSAGE_LOG_FD>>config.log
789$lt_cl_success || AS_EXIT(1)
790])# LT_OUTPUT
791
792
793# _LT_CONFIG(TAG)
794# ---------------
795# If TAG is the built-in tag, create an initial libtool script with a
796# default configuration from the untagged config vars.  Otherwise add code
797# to config.status for appending the configuration named by TAG from the
798# matching tagged config vars.
799m4_defun([_LT_CONFIG],
800[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
801_LT_CONFIG_SAVE_COMMANDS([
802  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
803  m4_if(_LT_TAG, [C], [
804    # See if we are running on zsh, and set the options which allow our
805    # commands through without removal of \ escapes.
806    if test -n "${ZSH_VERSION+set}" ; then
807      setopt NO_GLOB_SUBST
808    fi
809
810    cfgfile="${ofile}T"
811    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
812    $RM "$cfgfile"
813
814    cat <<_LT_EOF >> "$cfgfile"
815#! $SHELL
816
817# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
818# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
819# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
820# NOTE: Changes made to this file will be lost: look at ltmain.sh.
821#
822_LT_COPYING
823_LT_LIBTOOL_TAGS
824
825# ### BEGIN LIBTOOL CONFIG
826_LT_LIBTOOL_CONFIG_VARS
827_LT_LIBTOOL_TAG_VARS
828# ### END LIBTOOL CONFIG
829
830_LT_EOF
831
832  case $host_os in
833  aix3*)
834    cat <<\_LT_EOF >> "$cfgfile"
835# AIX sometimes has problems with the GCC collect2 program.  For some
836# reason, if we set the COLLECT_NAMES environment variable, the problems
837# vanish in a puff of smoke.
838if test "X${COLLECT_NAMES+set}" != Xset; then
839  COLLECT_NAMES=
840  export COLLECT_NAMES
841fi
842_LT_EOF
843    ;;
844  esac
845
846  _LT_PROG_LTMAIN
847
848  # We use sed instead of cat because bash on DJGPP gets confused if
849  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
850  # text mode, it properly converts lines to CR/LF.  This bash problem
851  # is reportedly fixed, but why not run on old versions too?
852  sed '$q' "$ltmain" >> "$cfgfile" \
853     || (rm -f "$cfgfile"; exit 1)
854
855  _LT_PROG_REPLACE_SHELLFNS
856
857   mv -f "$cfgfile" "$ofile" ||
858    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
859  chmod +x "$ofile"
860],
861[cat <<_LT_EOF >> "$ofile"
862
863dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
864dnl in a comment (ie after a #).
865# ### BEGIN LIBTOOL TAG CONFIG: $1
866_LT_LIBTOOL_TAG_VARS(_LT_TAG)
867# ### END LIBTOOL TAG CONFIG: $1
868_LT_EOF
869])dnl /m4_if
870],
871[m4_if([$1], [], [
872    PACKAGE='$PACKAGE'
873    VERSION='$VERSION'
874    TIMESTAMP='$TIMESTAMP'
875    RM='$RM'
876    ofile='$ofile'], [])
877])dnl /_LT_CONFIG_SAVE_COMMANDS
878])# _LT_CONFIG
879
880
881# LT_SUPPORTED_TAG(TAG)
882# ---------------------
883# Trace this macro to discover what tags are supported by the libtool
884# --tag option, using:
885#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
886AC_DEFUN([LT_SUPPORTED_TAG], [])
887
888
889# C support is built-in for now
890m4_define([_LT_LANG_C_enabled], [])
891m4_define([_LT_TAGS], [])
892
893
894# LT_LANG(LANG)
895# -------------
896# Enable libtool support for the given language if not already enabled.
897AC_DEFUN([LT_LANG],
898[AC_BEFORE([$0], [LT_OUTPUT])dnl
899m4_case([$1],
900  [C],			[_LT_LANG(C)],
901  [C++],		[_LT_LANG(CXX)],
902  [Go],			[_LT_LANG(GO)],
903  [Java],		[_LT_LANG(GCJ)],
904  [Fortran 77],		[_LT_LANG(F77)],
905  [Fortran],		[_LT_LANG(FC)],
906  [Windows Resource],	[_LT_LANG(RC)],
907  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
908    [_LT_LANG($1)],
909    [m4_fatal([$0: unsupported language: "$1"])])])dnl
910])# LT_LANG
911
912
913# _LT_LANG(LANGNAME)
914# ------------------
915m4_defun([_LT_LANG],
916[m4_ifdef([_LT_LANG_]$1[_enabled], [],
917  [LT_SUPPORTED_TAG([$1])dnl
918  m4_append([_LT_TAGS], [$1 ])dnl
919  m4_define([_LT_LANG_]$1[_enabled], [])dnl
920  _LT_LANG_$1_CONFIG($1)])dnl
921])# _LT_LANG
922
923
924m4_ifndef([AC_PROG_GO], [
925# NOTE: This macro has been submitted for inclusion into   #
926#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
927#  a released version of Autoconf we should remove this    #
928#  macro and use it instead.                               #
929m4_defun([AC_PROG_GO],
930[AC_LANG_PUSH(Go)dnl
931AC_ARG_VAR([GOC],     [Go compiler command])dnl
932AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
933_AC_ARG_VAR_LDFLAGS()dnl
934AC_CHECK_TOOL(GOC, gccgo)
935if test -z "$GOC"; then
936  if test -n "$ac_tool_prefix"; then
937    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
938  fi
939fi
940if test -z "$GOC"; then
941  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
942fi
943])#m4_defun
944])#m4_ifndef
945
946
947# _LT_LANG_DEFAULT_CONFIG
948# -----------------------
949m4_defun([_LT_LANG_DEFAULT_CONFIG],
950[AC_PROVIDE_IFELSE([AC_PROG_CXX],
951  [LT_LANG(CXX)],
952  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
953
954AC_PROVIDE_IFELSE([AC_PROG_F77],
955  [LT_LANG(F77)],
956  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
957
958AC_PROVIDE_IFELSE([AC_PROG_FC],
959  [LT_LANG(FC)],
960  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
961
962dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
963dnl pulling things in needlessly.
964AC_PROVIDE_IFELSE([AC_PROG_GCJ],
965  [LT_LANG(GCJ)],
966  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
967    [LT_LANG(GCJ)],
968    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
969      [LT_LANG(GCJ)],
970      [m4_ifdef([AC_PROG_GCJ],
971	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
972       m4_ifdef([A][M_PROG_GCJ],
973	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
974       m4_ifdef([LT_PROG_GCJ],
975	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
976
977AC_PROVIDE_IFELSE([AC_PROG_GO],
978  [LT_LANG(GO)],
979  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
980
981AC_PROVIDE_IFELSE([LT_PROG_RC],
982  [LT_LANG(RC)],
983  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
984])# _LT_LANG_DEFAULT_CONFIG
985
986# Obsolete macros:
987AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
988AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
989AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
990AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
991AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
992dnl aclocal-1.4 backwards compatibility:
993dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
994dnl AC_DEFUN([AC_LIBTOOL_F77], [])
995dnl AC_DEFUN([AC_LIBTOOL_FC], [])
996dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
997dnl AC_DEFUN([AC_LIBTOOL_RC], [])
998
999
1000# _LT_TAG_COMPILER
1001# ----------------
1002m4_defun([_LT_TAG_COMPILER],
1003[AC_REQUIRE([AC_PROG_CC])dnl
1004
1005_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1006_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1007_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1008_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1009
1010# If no C compiler was specified, use CC.
1011LTCC=${LTCC-"$CC"}
1012
1013# If no C compiler flags were specified, use CFLAGS.
1014LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1015
1016# Allow CC to be a program name with arguments.
1017compiler=$CC
1018])# _LT_TAG_COMPILER
1019
1020
1021# _LT_COMPILER_BOILERPLATE
1022# ------------------------
1023# Check for compiler boilerplate output or warnings with
1024# the simple compiler test code.
1025m4_defun([_LT_COMPILER_BOILERPLATE],
1026[m4_require([_LT_DECL_SED])dnl
1027ac_outfile=conftest.$ac_objext
1028echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1029eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1030_lt_compiler_boilerplate=`cat conftest.err`
1031$RM conftest*
1032])# _LT_COMPILER_BOILERPLATE
1033
1034
1035# _LT_LINKER_BOILERPLATE
1036# ----------------------
1037# Check for linker boilerplate output or warnings with
1038# the simple link test code.
1039m4_defun([_LT_LINKER_BOILERPLATE],
1040[m4_require([_LT_DECL_SED])dnl
1041ac_outfile=conftest.$ac_objext
1042echo "$lt_simple_link_test_code" >conftest.$ac_ext
1043eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1044_lt_linker_boilerplate=`cat conftest.err`
1045$RM -r conftest*
1046])# _LT_LINKER_BOILERPLATE
1047
1048# _LT_REQUIRED_DARWIN_CHECKS
1049# -------------------------
1050m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1051  case $host_os in
1052    rhapsody* | darwin*)
1053    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1054    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1055    AC_CHECK_TOOL([LIPO], [lipo], [:])
1056    AC_CHECK_TOOL([OTOOL], [otool], [:])
1057    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1058    _LT_DECL([], [DSYMUTIL], [1],
1059      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1060    _LT_DECL([], [NMEDIT], [1],
1061      [Tool to change global to local symbols on Mac OS X])
1062    _LT_DECL([], [LIPO], [1],
1063      [Tool to manipulate fat objects and archives on Mac OS X])
1064    _LT_DECL([], [OTOOL], [1],
1065      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1066    _LT_DECL([], [OTOOL64], [1],
1067      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1068
1069    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1070      [lt_cv_apple_cc_single_mod=no
1071      if test -z "${LT_MULTI_MODULE}"; then
1072	# By default we will add the -single_module flag. You can override
1073	# by either setting the environment variable LT_MULTI_MODULE
1074	# non-empty at configure time, or by adding -multi_module to the
1075	# link flags.
1076	rm -rf libconftest.dylib*
1077	echo "int foo(void){return 1;}" > conftest.c
1078	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1079-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1080	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1081	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1082        _lt_result=$?
1083	# If there is a non-empty error log, and "single_module"
1084	# appears in it, assume the flag caused a linker warning
1085        if test -s conftest.err && $GREP single_module conftest.err; then
1086	  cat conftest.err >&AS_MESSAGE_LOG_FD
1087	# Otherwise, if the output was created with a 0 exit code from
1088	# the compiler, it worked.
1089	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1090	  lt_cv_apple_cc_single_mod=yes
1091	else
1092	  cat conftest.err >&AS_MESSAGE_LOG_FD
1093	fi
1094	rm -rf libconftest.dylib*
1095	rm -f conftest.*
1096      fi])
1097
1098    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1099      [lt_cv_ld_exported_symbols_list],
1100      [lt_cv_ld_exported_symbols_list=no
1101      save_LDFLAGS=$LDFLAGS
1102      echo "_main" > conftest.sym
1103      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1104      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1105	[lt_cv_ld_exported_symbols_list=yes],
1106	[lt_cv_ld_exported_symbols_list=no])
1107	LDFLAGS="$save_LDFLAGS"
1108    ])
1109
1110    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1111      [lt_cv_ld_force_load=no
1112      cat > conftest.c << _LT_EOF
1113int forced_loaded() { return 2;}
1114_LT_EOF
1115      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1116      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1117      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1118      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1119      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1120      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1121      cat > conftest.c << _LT_EOF
1122int main() { return 0;}
1123_LT_EOF
1124      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1125      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1126      _lt_result=$?
1127      if test -s conftest.err && $GREP force_load conftest.err; then
1128	cat conftest.err >&AS_MESSAGE_LOG_FD
1129      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1130	lt_cv_ld_force_load=yes
1131      else
1132	cat conftest.err >&AS_MESSAGE_LOG_FD
1133      fi
1134        rm -f conftest.err libconftest.a conftest conftest.c
1135        rm -rf conftest.dSYM
1136    ])
1137    case $host_os in
1138    rhapsody* | darwin1.[[012]])
1139      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1140    darwin1.*)
1141      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1142    darwin*) # darwin 5.x on
1143      # if running on 10.5 or later, the deployment target defaults
1144      # to the OS version, if on x86, and 10.4, the deployment
1145      # target defaults to 10.4. Don't you love it?
1146      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1147	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1148	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1149	10.[[012]]*)
1150	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1151	10.*)
1152	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1153      esac
1154    ;;
1155  esac
1156    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1157      _lt_dar_single_mod='$single_module'
1158    fi
1159    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1160      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1161    else
1162      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1163    fi
1164    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1165      _lt_dsymutil='~$DSYMUTIL $lib || :'
1166    else
1167      _lt_dsymutil=
1168    fi
1169    ;;
1170  esac
1171])
1172
1173
1174# _LT_DARWIN_LINKER_FEATURES([TAG])
1175# ---------------------------------
1176# Checks for linker and compiler features on darwin
1177m4_defun([_LT_DARWIN_LINKER_FEATURES],
1178[
1179  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1180  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1181  _LT_TAGVAR(hardcode_direct, $1)=no
1182  _LT_TAGVAR(hardcode_automatic, $1)=yes
1183  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1184  if test "$lt_cv_ld_force_load" = "yes"; then
1185    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1186    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1187                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1188  else
1189    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1190  fi
1191  _LT_TAGVAR(link_all_deplibs, $1)=yes
1192  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1193  case $cc_basename in
1194     ifort*) _lt_dar_can_shared=yes ;;
1195     *) _lt_dar_can_shared=$GCC ;;
1196  esac
1197  if test "$_lt_dar_can_shared" = "yes"; then
1198    output_verbose_link_cmd=func_echo_all
1199    _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}"
1200    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1201    _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}"
1202    _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}"
1203    m4_if([$1], [CXX],
1204[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1205      _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}"
1206      _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}"
1207    fi
1208],[])
1209  else
1210  _LT_TAGVAR(ld_shlibs, $1)=no
1211  fi
1212])
1213
1214# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1215# ----------------------------------
1216# Links a minimal program and checks the executable
1217# for the system default hardcoded library path. In most cases,
1218# this is /usr/lib:/lib, but when the MPI compilers are used
1219# the location of the communication and MPI libs are included too.
1220# If we don't find anything, use the default library path according
1221# to the aix ld manual.
1222# Store the results from the different compilers for each TAGNAME.
1223# Allow to override them for all tags through lt_cv_aix_libpath.
1224m4_defun([_LT_SYS_MODULE_PATH_AIX],
1225[m4_require([_LT_DECL_SED])dnl
1226if test "${lt_cv_aix_libpath+set}" = set; then
1227  aix_libpath=$lt_cv_aix_libpath
1228else
1229  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1230  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1231  lt_aix_libpath_sed='[
1232      /Import File Strings/,/^$/ {
1233	  /^0/ {
1234	      s/^0  *\([^ ]*\) *$/\1/
1235	      p
1236	  }
1237      }]'
1238  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1239  # Check for a 64-bit object if we didn't find anything.
1240  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1241    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1242  fi],[])
1243  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1244    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1245  fi
1246  ])
1247  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1248fi
1249])# _LT_SYS_MODULE_PATH_AIX
1250
1251
1252# _LT_SHELL_INIT(ARG)
1253# -------------------
1254m4_define([_LT_SHELL_INIT],
1255[m4_divert_text([M4SH-INIT], [$1
1256])])# _LT_SHELL_INIT
1257
1258
1259
1260# _LT_PROG_ECHO_BACKSLASH
1261# -----------------------
1262# Find how we can fake an echo command that does not interpret backslash.
1263# In particular, with Autoconf 2.60 or later we add some code to the start
1264# of the generated configure script which will find a shell with a builtin
1265# printf (which we can use as an echo command).
1266m4_defun([_LT_PROG_ECHO_BACKSLASH],
1267[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1268ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1269ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1270
1271AC_MSG_CHECKING([how to print strings])
1272# Test print first, because it will be a builtin if present.
1273if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1274   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1275  ECHO='print -r --'
1276elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1277  ECHO='printf %s\n'
1278else
1279  # Use this function as a fallback that always works.
1280  func_fallback_echo ()
1281  {
1282    eval 'cat <<_LTECHO_EOF
1283$[]1
1284_LTECHO_EOF'
1285  }
1286  ECHO='func_fallback_echo'
1287fi
1288
1289# func_echo_all arg...
1290# Invoke $ECHO with all args, space-separated.
1291func_echo_all ()
1292{
1293    $ECHO "$*"
1294}
1295
1296case "$ECHO" in
1297  printf*) AC_MSG_RESULT([printf]) ;;
1298  print*) AC_MSG_RESULT([print -r]) ;;
1299  *) AC_MSG_RESULT([cat]) ;;
1300esac
1301
1302m4_ifdef([_AS_DETECT_SUGGESTED],
1303[_AS_DETECT_SUGGESTED([
1304  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1305    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1306    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1307    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1308    PATH=/empty FPATH=/empty; export PATH FPATH
1309    test "X`printf %s $ECHO`" = "X$ECHO" \
1310      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1311
1312_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1313_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1314])# _LT_PROG_ECHO_BACKSLASH
1315
1316
1317# _LT_WITH_SYSROOT
1318# ----------------
1319AC_DEFUN([_LT_WITH_SYSROOT],
1320[AC_MSG_CHECKING([for sysroot])
1321AC_ARG_WITH([sysroot],
1322[  --with-sysroot[=DIR] Search for dependent libraries within DIR
1323                        (or the compiler's sysroot if not specified).],
1324[], [with_sysroot=no])
1325
1326dnl lt_sysroot will always be passed unquoted.  We quote it here
1327dnl in case the user passed a directory name.
1328lt_sysroot=
1329case ${with_sysroot} in #(
1330 yes)
1331   if test "$GCC" = yes; then
1332     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1333   fi
1334   ;; #(
1335 /*)
1336   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1337   ;; #(
1338 no|'')
1339   ;; #(
1340 *)
1341   AC_MSG_RESULT([${with_sysroot}])
1342   AC_MSG_ERROR([The sysroot must be an absolute path.])
1343   ;;
1344esac
1345
1346 AC_MSG_RESULT([${lt_sysroot:-no}])
1347_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1348[dependent libraries, and in which our libraries should be installed.])])
1349
1350# _LT_ENABLE_LOCK
1351# ---------------
1352m4_defun([_LT_ENABLE_LOCK],
1353[AC_ARG_ENABLE([libtool-lock],
1354  [AS_HELP_STRING([--disable-libtool-lock],
1355    [avoid locking (might break parallel builds)])])
1356test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1357
1358# Some flags need to be propagated to the compiler or linker for good
1359# libtool support.
1360case $host in
1361ia64-*-hpux*)
1362  # Find out which ABI we are using.
1363  echo 'int i;' > conftest.$ac_ext
1364  if AC_TRY_EVAL(ac_compile); then
1365    case `/usr/bin/file conftest.$ac_objext` in
1366      *ELF-32*)
1367	HPUX_IA64_MODE="32"
1368	;;
1369      *ELF-64*)
1370	HPUX_IA64_MODE="64"
1371	;;
1372    esac
1373  fi
1374  rm -rf conftest*
1375  ;;
1376*-*-irix6*)
1377  # Find out which ABI we are using.
1378  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1379  if AC_TRY_EVAL(ac_compile); then
1380    if test "$lt_cv_prog_gnu_ld" = yes; then
1381      case `/usr/bin/file conftest.$ac_objext` in
1382	*32-bit*)
1383	  LD="${LD-ld} -melf32bsmip"
1384	  ;;
1385	*N32*)
1386	  LD="${LD-ld} -melf32bmipn32"
1387	  ;;
1388	*64-bit*)
1389	  LD="${LD-ld} -melf64bmip"
1390	;;
1391      esac
1392    else
1393      case `/usr/bin/file conftest.$ac_objext` in
1394	*32-bit*)
1395	  LD="${LD-ld} -32"
1396	  ;;
1397	*N32*)
1398	  LD="${LD-ld} -n32"
1399	  ;;
1400	*64-bit*)
1401	  LD="${LD-ld} -64"
1402	  ;;
1403      esac
1404    fi
1405  fi
1406  rm -rf conftest*
1407  ;;
1408
1409x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1410s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1411  # Find out which ABI we are using.
1412  echo 'int i;' > conftest.$ac_ext
1413  if AC_TRY_EVAL(ac_compile); then
1414    case `/usr/bin/file conftest.o` in
1415      *32-bit*)
1416	case $host in
1417	  x86_64-*kfreebsd*-gnu)
1418	    LD="${LD-ld} -m elf_i386_fbsd"
1419	    ;;
1420	  x86_64-*linux*)
1421	    case `/usr/bin/file conftest.o` in
1422	      *x86-64*)
1423		LD="${LD-ld} -m elf32_x86_64"
1424		;;
1425	      *)
1426		LD="${LD-ld} -m elf_i386"
1427		;;
1428	    esac
1429	    ;;
1430	  powerpc64le-*)
1431	    LD="${LD-ld} -m elf32lppclinux"
1432	    ;;
1433	  powerpc64-*)
1434	    LD="${LD-ld} -m elf32ppclinux"
1435	    ;;
1436	  s390x-*linux*)
1437	    LD="${LD-ld} -m elf_s390"
1438	    ;;
1439	  sparc64-*linux*)
1440	    LD="${LD-ld} -m elf32_sparc"
1441	    ;;
1442	esac
1443	;;
1444      *64-bit*)
1445	case $host in
1446	  x86_64-*kfreebsd*-gnu)
1447	    LD="${LD-ld} -m elf_x86_64_fbsd"
1448	    ;;
1449	  x86_64-*linux*)
1450	    LD="${LD-ld} -m elf_x86_64"
1451	    ;;
1452	  powerpcle-*)
1453	    LD="${LD-ld} -m elf64lppc"
1454	    ;;
1455	  powerpc-*)
1456	    LD="${LD-ld} -m elf64ppc"
1457	    ;;
1458	  s390*-*linux*|s390*-*tpf*)
1459	    LD="${LD-ld} -m elf64_s390"
1460	    ;;
1461	  sparc*-*linux*)
1462	    LD="${LD-ld} -m elf64_sparc"
1463	    ;;
1464	esac
1465	;;
1466    esac
1467  fi
1468  rm -rf conftest*
1469  ;;
1470
1471*-*-sco3.2v5*)
1472  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1473  SAVE_CFLAGS="$CFLAGS"
1474  CFLAGS="$CFLAGS -belf"
1475  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1476    [AC_LANG_PUSH(C)
1477     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1478     AC_LANG_POP])
1479  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1480    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1481    CFLAGS="$SAVE_CFLAGS"
1482  fi
1483  ;;
1484*-*solaris*)
1485  # Find out which ABI we are using.
1486  echo 'int i;' > conftest.$ac_ext
1487  if AC_TRY_EVAL(ac_compile); then
1488    case `/usr/bin/file conftest.o` in
1489    *64-bit*)
1490      case $lt_cv_prog_gnu_ld in
1491      yes*)
1492        case $host in
1493        i?86-*-solaris*)
1494          LD="${LD-ld} -m elf_x86_64"
1495          ;;
1496        sparc*-*-solaris*)
1497          LD="${LD-ld} -m elf64_sparc"
1498          ;;
1499        esac
1500        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
1501        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1502          LD="${LD-ld}_sol2"
1503        fi
1504        ;;
1505      *)
1506	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1507	  LD="${LD-ld} -64"
1508	fi
1509	;;
1510      esac
1511      ;;
1512    esac
1513  fi
1514  rm -rf conftest*
1515  ;;
1516esac
1517
1518need_locks="$enable_libtool_lock"
1519])# _LT_ENABLE_LOCK
1520
1521
1522# _LT_PROG_AR
1523# -----------
1524m4_defun([_LT_PROG_AR],
1525[AC_CHECK_TOOLS(AR, [ar], false)
1526: ${AR=ar}
1527: ${AR_FLAGS=cru}
1528_LT_DECL([], [AR], [1], [The archiver])
1529_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1530
1531AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1532  [lt_cv_ar_at_file=no
1533   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1534     [echo conftest.$ac_objext > conftest.lst
1535      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1536      AC_TRY_EVAL([lt_ar_try])
1537      if test "$ac_status" -eq 0; then
1538	# Ensure the archiver fails upon bogus file names.
1539	rm -f conftest.$ac_objext libconftest.a
1540	AC_TRY_EVAL([lt_ar_try])
1541	if test "$ac_status" -ne 0; then
1542          lt_cv_ar_at_file=@
1543        fi
1544      fi
1545      rm -f conftest.* libconftest.a
1546     ])
1547  ])
1548
1549if test "x$lt_cv_ar_at_file" = xno; then
1550  archiver_list_spec=
1551else
1552  archiver_list_spec=$lt_cv_ar_at_file
1553fi
1554_LT_DECL([], [archiver_list_spec], [1],
1555  [How to feed a file listing to the archiver])
1556])# _LT_PROG_AR
1557
1558
1559# _LT_CMD_OLD_ARCHIVE
1560# -------------------
1561m4_defun([_LT_CMD_OLD_ARCHIVE],
1562[_LT_PROG_AR
1563
1564AC_CHECK_TOOL(STRIP, strip, :)
1565test -z "$STRIP" && STRIP=:
1566_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1567
1568AC_CHECK_TOOL(RANLIB, ranlib, :)
1569test -z "$RANLIB" && RANLIB=:
1570_LT_DECL([], [RANLIB], [1],
1571    [Commands used to install an old-style archive])
1572
1573# Determine commands to create old-style static archives.
1574old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1575old_postinstall_cmds='chmod 644 $oldlib'
1576old_postuninstall_cmds=
1577
1578if test -n "$RANLIB"; then
1579  case $host_os in
1580  openbsd*)
1581    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1582    ;;
1583  *)
1584    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1585    ;;
1586  esac
1587  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1588fi
1589
1590case $host_os in
1591  darwin*)
1592    lock_old_archive_extraction=yes ;;
1593  *)
1594    lock_old_archive_extraction=no ;;
1595esac
1596_LT_DECL([], [old_postinstall_cmds], [2])
1597_LT_DECL([], [old_postuninstall_cmds], [2])
1598_LT_TAGDECL([], [old_archive_cmds], [2],
1599    [Commands used to build an old-style archive])
1600_LT_DECL([], [lock_old_archive_extraction], [0],
1601    [Whether to use a lock for old archive extraction])
1602])# _LT_CMD_OLD_ARCHIVE
1603
1604
1605# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1606#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1607# ----------------------------------------------------------------
1608# Check whether the given compiler option works
1609AC_DEFUN([_LT_COMPILER_OPTION],
1610[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1611m4_require([_LT_DECL_SED])dnl
1612AC_CACHE_CHECK([$1], [$2],
1613  [$2=no
1614   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1615   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1616   lt_compiler_flag="$3"
1617   # Insert the option either (1) after the last *FLAGS variable, or
1618   # (2) before a word containing "conftest.", or (3) at the end.
1619   # Note that $ac_compile itself does not contain backslashes and begins
1620   # with a dollar sign (not a hyphen), so the echo should work correctly.
1621   # The option is referenced via a variable to avoid confusing sed.
1622   lt_compile=`echo "$ac_compile" | $SED \
1623   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1624   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1625   -e 's:$: $lt_compiler_flag:'`
1626   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1627   (eval "$lt_compile" 2>conftest.err)
1628   ac_status=$?
1629   cat conftest.err >&AS_MESSAGE_LOG_FD
1630   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1631   if (exit $ac_status) && test -s "$ac_outfile"; then
1632     # The compiler can only warn and ignore the option if not recognized
1633     # So say no if there are warnings other than the usual output.
1634     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1635     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1636     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1637       $2=yes
1638     fi
1639   fi
1640   $RM conftest*
1641])
1642
1643if test x"[$]$2" = xyes; then
1644    m4_if([$5], , :, [$5])
1645else
1646    m4_if([$6], , :, [$6])
1647fi
1648])# _LT_COMPILER_OPTION
1649
1650# Old name:
1651AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1652dnl aclocal-1.4 backwards compatibility:
1653dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1654
1655
1656# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1657#                  [ACTION-SUCCESS], [ACTION-FAILURE])
1658# ----------------------------------------------------
1659# Check whether the given linker option works
1660AC_DEFUN([_LT_LINKER_OPTION],
1661[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1662m4_require([_LT_DECL_SED])dnl
1663AC_CACHE_CHECK([$1], [$2],
1664  [$2=no
1665   save_LDFLAGS="$LDFLAGS"
1666   LDFLAGS="$LDFLAGS $3"
1667   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1668   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1669     # The linker can only warn and ignore the option if not recognized
1670     # So say no if there are warnings
1671     if test -s conftest.err; then
1672       # Append any errors to the config.log.
1673       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1674       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1675       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1676       if diff conftest.exp conftest.er2 >/dev/null; then
1677         $2=yes
1678       fi
1679     else
1680       $2=yes
1681     fi
1682   fi
1683   $RM -r conftest*
1684   LDFLAGS="$save_LDFLAGS"
1685])
1686
1687if test x"[$]$2" = xyes; then
1688    m4_if([$4], , :, [$4])
1689else
1690    m4_if([$5], , :, [$5])
1691fi
1692])# _LT_LINKER_OPTION
1693
1694# Old name:
1695AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1696dnl aclocal-1.4 backwards compatibility:
1697dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1698
1699
1700# LT_CMD_MAX_LEN
1701#---------------
1702AC_DEFUN([LT_CMD_MAX_LEN],
1703[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1704# find the maximum length of command line arguments
1705AC_MSG_CHECKING([the maximum length of command line arguments])
1706AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1707  i=0
1708  teststring="ABCD"
1709
1710  case $build_os in
1711  msdosdjgpp*)
1712    # On DJGPP, this test can blow up pretty badly due to problems in libc
1713    # (any single argument exceeding 2000 bytes causes a buffer overrun
1714    # during glob expansion).  Even if it were fixed, the result of this
1715    # check would be larger than it should be.
1716    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1717    ;;
1718
1719  gnu*)
1720    # Under GNU Hurd, this test is not required because there is
1721    # no limit to the length of command line arguments.
1722    # Libtool will interpret -1 as no limit whatsoever
1723    lt_cv_sys_max_cmd_len=-1;
1724    ;;
1725
1726  cygwin* | mingw* | cegcc*)
1727    # On Win9x/ME, this test blows up -- it succeeds, but takes
1728    # about 5 minutes as the teststring grows exponentially.
1729    # Worse, since 9x/ME are not pre-emptively multitasking,
1730    # you end up with a "frozen" computer, even though with patience
1731    # the test eventually succeeds (with a max line length of 256k).
1732    # Instead, let's just punt: use the minimum linelength reported by
1733    # all of the supported platforms: 8192 (on NT/2K/XP).
1734    lt_cv_sys_max_cmd_len=8192;
1735    ;;
1736
1737  mint*)
1738    # On MiNT this can take a long time and run out of memory.
1739    lt_cv_sys_max_cmd_len=8192;
1740    ;;
1741
1742  amigaos*)
1743    # On AmigaOS with pdksh, this test takes hours, literally.
1744    # So we just punt and use a minimum line length of 8192.
1745    lt_cv_sys_max_cmd_len=8192;
1746    ;;
1747
1748  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1749    # This has been around since 386BSD, at least.  Likely further.
1750    if test -x /sbin/sysctl; then
1751      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1752    elif test -x /usr/sbin/sysctl; then
1753      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1754    else
1755      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
1756    fi
1757    # And add a safety zone
1758    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1759    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1760    ;;
1761
1762  interix*)
1763    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1764    lt_cv_sys_max_cmd_len=196608
1765    ;;
1766
1767  os2*)
1768    # The test takes a long time on OS/2.
1769    lt_cv_sys_max_cmd_len=8192
1770    ;;
1771
1772  osf*)
1773    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1774    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1775    # nice to cause kernel panics so lets avoid the loop below.
1776    # First set a reasonable default.
1777    lt_cv_sys_max_cmd_len=16384
1778    #
1779    if test -x /sbin/sysconfig; then
1780      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1781        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1782      esac
1783    fi
1784    ;;
1785  sco3.2v5*)
1786    lt_cv_sys_max_cmd_len=102400
1787    ;;
1788  sysv5* | sco5v6* | sysv4.2uw2*)
1789    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1790    if test -n "$kargmax"; then
1791      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
1792    else
1793      lt_cv_sys_max_cmd_len=32768
1794    fi
1795    ;;
1796  *)
1797    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1798    if test -n "$lt_cv_sys_max_cmd_len" && \
1799	test undefined != "$lt_cv_sys_max_cmd_len"; then
1800      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1801      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1802    else
1803      # Make teststring a little bigger before we do anything with it.
1804      # a 1K string should be a reasonable start.
1805      for i in 1 2 3 4 5 6 7 8 ; do
1806        teststring=$teststring$teststring
1807      done
1808      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1809      # If test is not a shell built-in, we'll probably end up computing a
1810      # maximum length that is only half of the actual maximum length, but
1811      # we can't tell.
1812      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1813	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1814	      test $i != 17 # 1/2 MB should be enough
1815      do
1816        i=`expr $i + 1`
1817        teststring=$teststring$teststring
1818      done
1819      # Only check the string length outside the loop.
1820      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1821      teststring=
1822      # Add a significant safety factor because C++ compilers can tack on
1823      # massive amounts of additional arguments before passing them to the
1824      # linker.  It appears as though 1/2 is a usable value.
1825      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1826    fi
1827    ;;
1828  esac
1829])
1830if test -n $lt_cv_sys_max_cmd_len ; then
1831  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1832else
1833  AC_MSG_RESULT(none)
1834fi
1835max_cmd_len=$lt_cv_sys_max_cmd_len
1836_LT_DECL([], [max_cmd_len], [0],
1837    [What is the maximum length of a command?])
1838])# LT_CMD_MAX_LEN
1839
1840# Old name:
1841AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1842dnl aclocal-1.4 backwards compatibility:
1843dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1844
1845
1846# _LT_HEADER_DLFCN
1847# ----------------
1848m4_defun([_LT_HEADER_DLFCN],
1849[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1850])# _LT_HEADER_DLFCN
1851
1852
1853# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1854#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1855# ----------------------------------------------------------------
1856m4_defun([_LT_TRY_DLOPEN_SELF],
1857[m4_require([_LT_HEADER_DLFCN])dnl
1858if test "$cross_compiling" = yes; then :
1859  [$4]
1860else
1861  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1862  lt_status=$lt_dlunknown
1863  cat > conftest.$ac_ext <<_LT_EOF
1864[#line $LINENO "configure"
1865#include "confdefs.h"
1866
1867#if HAVE_DLFCN_H
1868#include <dlfcn.h>
1869#endif
1870
1871#include <stdio.h>
1872
1873#ifdef RTLD_GLOBAL
1874#  define LT_DLGLOBAL		RTLD_GLOBAL
1875#else
1876#  ifdef DL_GLOBAL
1877#    define LT_DLGLOBAL		DL_GLOBAL
1878#  else
1879#    define LT_DLGLOBAL		0
1880#  endif
1881#endif
1882
1883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1884   find out it does not work in some platform. */
1885#ifndef LT_DLLAZY_OR_NOW
1886#  ifdef RTLD_LAZY
1887#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1888#  else
1889#    ifdef DL_LAZY
1890#      define LT_DLLAZY_OR_NOW		DL_LAZY
1891#    else
1892#      ifdef RTLD_NOW
1893#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1894#      else
1895#        ifdef DL_NOW
1896#          define LT_DLLAZY_OR_NOW	DL_NOW
1897#        else
1898#          define LT_DLLAZY_OR_NOW	0
1899#        endif
1900#      endif
1901#    endif
1902#  endif
1903#endif
1904
1905/* When -fvisbility=hidden is used, assume the code has been annotated
1906   correspondingly for the symbols needed.  */
1907#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1908int fnord () __attribute__((visibility("default")));
1909#endif
1910
1911int fnord () { return 42; }
1912int main ()
1913{
1914  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1915  int status = $lt_dlunknown;
1916
1917  if (self)
1918    {
1919      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1920      else
1921        {
1922	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
1923          else puts (dlerror ());
1924	}
1925      /* dlclose (self); */
1926    }
1927  else
1928    puts (dlerror ());
1929
1930  return status;
1931}]
1932_LT_EOF
1933  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1934    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1935    lt_status=$?
1936    case x$lt_status in
1937      x$lt_dlno_uscore) $1 ;;
1938      x$lt_dlneed_uscore) $2 ;;
1939      x$lt_dlunknown|x*) $3 ;;
1940    esac
1941  else :
1942    # compilation failed
1943    $3
1944  fi
1945fi
1946rm -fr conftest*
1947])# _LT_TRY_DLOPEN_SELF
1948
1949
1950# LT_SYS_DLOPEN_SELF
1951# ------------------
1952AC_DEFUN([LT_SYS_DLOPEN_SELF],
1953[m4_require([_LT_HEADER_DLFCN])dnl
1954if test "x$enable_dlopen" != xyes; then
1955  enable_dlopen=unknown
1956  enable_dlopen_self=unknown
1957  enable_dlopen_self_static=unknown
1958else
1959  lt_cv_dlopen=no
1960  lt_cv_dlopen_libs=
1961
1962  case $host_os in
1963  beos*)
1964    lt_cv_dlopen="load_add_on"
1965    lt_cv_dlopen_libs=
1966    lt_cv_dlopen_self=yes
1967    ;;
1968
1969  mingw* | pw32* | cegcc*)
1970    lt_cv_dlopen="LoadLibrary"
1971    lt_cv_dlopen_libs=
1972    ;;
1973
1974  cygwin*)
1975    lt_cv_dlopen="dlopen"
1976    lt_cv_dlopen_libs=
1977    ;;
1978
1979  darwin*)
1980  # if libdl is installed we need to link against it
1981    AC_CHECK_LIB([dl], [dlopen],
1982		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1983    lt_cv_dlopen="dyld"
1984    lt_cv_dlopen_libs=
1985    lt_cv_dlopen_self=yes
1986    ])
1987    ;;
1988
1989  *)
1990    AC_CHECK_FUNC([shl_load],
1991	  [lt_cv_dlopen="shl_load"],
1992      [AC_CHECK_LIB([dld], [shl_load],
1993	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1994	[AC_CHECK_FUNC([dlopen],
1995	      [lt_cv_dlopen="dlopen"],
1996	  [AC_CHECK_LIB([dl], [dlopen],
1997		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1998	    [AC_CHECK_LIB([svld], [dlopen],
1999		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2000	      [AC_CHECK_LIB([dld], [dld_link],
2001		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2002	      ])
2003	    ])
2004	  ])
2005	])
2006      ])
2007    ;;
2008  esac
2009
2010  if test "x$lt_cv_dlopen" != xno; then
2011    enable_dlopen=yes
2012  else
2013    enable_dlopen=no
2014  fi
2015
2016  case $lt_cv_dlopen in
2017  dlopen)
2018    save_CPPFLAGS="$CPPFLAGS"
2019    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2020
2021    save_LDFLAGS="$LDFLAGS"
2022    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2023
2024    save_LIBS="$LIBS"
2025    LIBS="$lt_cv_dlopen_libs $LIBS"
2026
2027    AC_CACHE_CHECK([whether a program can dlopen itself],
2028	  lt_cv_dlopen_self, [dnl
2029	  _LT_TRY_DLOPEN_SELF(
2030	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2031	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2032    ])
2033
2034    if test "x$lt_cv_dlopen_self" = xyes; then
2035      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2036      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2037	  lt_cv_dlopen_self_static, [dnl
2038	  _LT_TRY_DLOPEN_SELF(
2039	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2040	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2041      ])
2042    fi
2043
2044    CPPFLAGS="$save_CPPFLAGS"
2045    LDFLAGS="$save_LDFLAGS"
2046    LIBS="$save_LIBS"
2047    ;;
2048  esac
2049
2050  case $lt_cv_dlopen_self in
2051  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2052  *) enable_dlopen_self=unknown ;;
2053  esac
2054
2055  case $lt_cv_dlopen_self_static in
2056  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2057  *) enable_dlopen_self_static=unknown ;;
2058  esac
2059fi
2060_LT_DECL([dlopen_support], [enable_dlopen], [0],
2061	 [Whether dlopen is supported])
2062_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2063	 [Whether dlopen of programs is supported])
2064_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2065	 [Whether dlopen of statically linked programs is supported])
2066])# LT_SYS_DLOPEN_SELF
2067
2068# Old name:
2069AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2070dnl aclocal-1.4 backwards compatibility:
2071dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2072
2073
2074# _LT_COMPILER_C_O([TAGNAME])
2075# ---------------------------
2076# Check to see if options -c and -o are simultaneously supported by compiler.
2077# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2078m4_defun([_LT_COMPILER_C_O],
2079[m4_require([_LT_DECL_SED])dnl
2080m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2081m4_require([_LT_TAG_COMPILER])dnl
2082AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2083  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2084  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2085   $RM -r conftest 2>/dev/null
2086   mkdir conftest
2087   cd conftest
2088   mkdir out
2089   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2090
2091   lt_compiler_flag="-o out/conftest2.$ac_objext"
2092   # Insert the option either (1) after the last *FLAGS variable, or
2093   # (2) before a word containing "conftest.", or (3) at the end.
2094   # Note that $ac_compile itself does not contain backslashes and begins
2095   # with a dollar sign (not a hyphen), so the echo should work correctly.
2096   lt_compile=`echo "$ac_compile" | $SED \
2097   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2098   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2099   -e 's:$: $lt_compiler_flag:'`
2100   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2101   (eval "$lt_compile" 2>out/conftest.err)
2102   ac_status=$?
2103   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2105   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2106   then
2107     # The compiler can only warn and ignore the option if not recognized
2108     # So say no if there are warnings
2109     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2110     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2111     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2112       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2113     fi
2114   fi
2115   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2116   $RM conftest*
2117   # SGI C++ compiler will create directory out/ii_files/ for
2118   # template instantiation
2119   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2120   $RM out/* && rmdir out
2121   cd ..
2122   $RM -r conftest
2123   $RM conftest*
2124])
2125_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2126	[Does compiler simultaneously support -c and -o options?])
2127])# _LT_COMPILER_C_O
2128
2129
2130# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2131# ----------------------------------
2132# Check to see if we can do hard links to lock some files if needed
2133m4_defun([_LT_COMPILER_FILE_LOCKS],
2134[m4_require([_LT_ENABLE_LOCK])dnl
2135m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2136_LT_COMPILER_C_O([$1])
2137
2138hard_links="nottested"
2139if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2140  # do not overwrite the value of need_locks provided by the user
2141  AC_MSG_CHECKING([if we can lock with hard links])
2142  hard_links=yes
2143  $RM conftest*
2144  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2145  touch conftest.a
2146  ln conftest.a conftest.b 2>&5 || hard_links=no
2147  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2148  AC_MSG_RESULT([$hard_links])
2149  if test "$hard_links" = no; then
2150    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2151    need_locks=warn
2152  fi
2153else
2154  need_locks=no
2155fi
2156_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2157])# _LT_COMPILER_FILE_LOCKS
2158
2159
2160# _LT_CHECK_OBJDIR
2161# ----------------
2162m4_defun([_LT_CHECK_OBJDIR],
2163[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2164[rm -f .libs 2>/dev/null
2165mkdir .libs 2>/dev/null
2166if test -d .libs; then
2167  lt_cv_objdir=.libs
2168else
2169  # MS-DOS does not allow filenames that begin with a dot.
2170  lt_cv_objdir=_libs
2171fi
2172rmdir .libs 2>/dev/null])
2173objdir=$lt_cv_objdir
2174_LT_DECL([], [objdir], [0],
2175         [The name of the directory that contains temporary libtool files])dnl
2176m4_pattern_allow([LT_OBJDIR])dnl
2177AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2178  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2179])# _LT_CHECK_OBJDIR
2180
2181
2182# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2183# --------------------------------------
2184# Check hardcoding attributes.
2185m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2186[AC_MSG_CHECKING([how to hardcode library paths into programs])
2187_LT_TAGVAR(hardcode_action, $1)=
2188if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2189   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2190   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2191
2192  # We can hardcode non-existent directories.
2193  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2194     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2195     # have to relink, otherwise we might link with an installed library
2196     # when we should be linking with a yet-to-be-installed one
2197     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2198     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2199    # Linking always hardcodes the temporary library directory.
2200    _LT_TAGVAR(hardcode_action, $1)=relink
2201  else
2202    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2203    _LT_TAGVAR(hardcode_action, $1)=immediate
2204  fi
2205else
2206  # We cannot hardcode anything, or else we can only hardcode existing
2207  # directories.
2208  _LT_TAGVAR(hardcode_action, $1)=unsupported
2209fi
2210AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2211
2212if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2213   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2214  # Fast installation is not supported
2215  enable_fast_install=no
2216elif test "$shlibpath_overrides_runpath" = yes ||
2217     test "$enable_shared" = no; then
2218  # Fast installation is not necessary
2219  enable_fast_install=needless
2220fi
2221_LT_TAGDECL([], [hardcode_action], [0],
2222    [How to hardcode a shared library path into an executable])
2223])# _LT_LINKER_HARDCODE_LIBPATH
2224
2225
2226# _LT_CMD_STRIPLIB
2227# ----------------
2228m4_defun([_LT_CMD_STRIPLIB],
2229[m4_require([_LT_DECL_EGREP])
2230striplib=
2231old_striplib=
2232AC_MSG_CHECKING([whether stripping libraries is possible])
2233if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2234  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2235  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2236  AC_MSG_RESULT([yes])
2237else
2238# FIXME - insert some real tests, host_os isn't really good enough
2239  case $host_os in
2240  darwin*)
2241    if test -n "$STRIP" ; then
2242      striplib="$STRIP -x"
2243      old_striplib="$STRIP -S"
2244      AC_MSG_RESULT([yes])
2245    else
2246      AC_MSG_RESULT([no])
2247    fi
2248    ;;
2249  *)
2250    AC_MSG_RESULT([no])
2251    ;;
2252  esac
2253fi
2254_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2255_LT_DECL([], [striplib], [1])
2256])# _LT_CMD_STRIPLIB
2257
2258
2259# _LT_SYS_DYNAMIC_LINKER([TAG])
2260# -----------------------------
2261# PORTME Fill in your ld.so characteristics
2262m4_defun([_LT_SYS_DYNAMIC_LINKER],
2263[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2264m4_require([_LT_DECL_EGREP])dnl
2265m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2266m4_require([_LT_DECL_OBJDUMP])dnl
2267m4_require([_LT_DECL_SED])dnl
2268m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2269AC_MSG_CHECKING([dynamic linker characteristics])
2270m4_if([$1],
2271	[], [
2272if test "$GCC" = yes; then
2273  case $host_os in
2274    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2275    *) lt_awk_arg="/^libraries:/" ;;
2276  esac
2277  case $host_os in
2278    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2279    *) lt_sed_strip_eq="s,=/,/,g" ;;
2280  esac
2281  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2282  case $lt_search_path_spec in
2283  *\;*)
2284    # if the path contains ";" then we assume it to be the separator
2285    # otherwise default to the standard path separator (i.e. ":") - it is
2286    # assumed that no part of a normal pathname contains ";" but that should
2287    # okay in the real world where ";" in dirpaths is itself problematic.
2288    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2289    ;;
2290  *)
2291    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2292    ;;
2293  esac
2294  # Ok, now we have the path, separated by spaces, we can step through it
2295  # and add multilib dir if necessary.
2296  lt_tmp_lt_search_path_spec=
2297  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2298  for lt_sys_path in $lt_search_path_spec; do
2299    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2300      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2301    else
2302      test -d "$lt_sys_path" && \
2303	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2304    fi
2305  done
2306  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2307BEGIN {RS=" "; FS="/|\n";} {
2308  lt_foo="";
2309  lt_count=0;
2310  for (lt_i = NF; lt_i > 0; lt_i--) {
2311    if ($lt_i != "" && $lt_i != ".") {
2312      if ($lt_i == "..") {
2313        lt_count++;
2314      } else {
2315        if (lt_count == 0) {
2316          lt_foo="/" $lt_i lt_foo;
2317        } else {
2318          lt_count--;
2319        }
2320      }
2321    }
2322  }
2323  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2324  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2325}'`
2326  # AWK program above erroneously prepends '/' to C:/dos/paths
2327  # for these hosts.
2328  case $host_os in
2329    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2330      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2331  esac
2332  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2333else
2334  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2335fi])
2336library_names_spec=
2337libname_spec='lib$name'
2338soname_spec=
2339shrext_cmds=".so"
2340postinstall_cmds=
2341postuninstall_cmds=
2342finish_cmds=
2343finish_eval=
2344shlibpath_var=
2345shlibpath_overrides_runpath=unknown
2346version_type=none
2347dynamic_linker="$host_os ld.so"
2348sys_lib_dlsearch_path_spec="/lib /usr/lib"
2349need_lib_prefix=unknown
2350hardcode_into_libs=no
2351
2352# when you set need_version to no, make sure it does not cause -set_version
2353# flags to be left without arguments
2354need_version=unknown
2355
2356case $host_os in
2357aix3*)
2358  version_type=linux # correct to gnu/linux during the next big refactor
2359  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2360  shlibpath_var=LIBPATH
2361
2362  # AIX 3 has no versioning support, so we append a major version to the name.
2363  soname_spec='${libname}${release}${shared_ext}$major'
2364  ;;
2365
2366aix[[4-9]]*)
2367  version_type=linux # correct to gnu/linux during the next big refactor
2368  need_lib_prefix=no
2369  need_version=no
2370  hardcode_into_libs=yes
2371  if test "$host_cpu" = ia64; then
2372    # AIX 5 supports IA64
2373    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2374    shlibpath_var=LD_LIBRARY_PATH
2375  else
2376    # With GCC up to 2.95.x, collect2 would create an import file
2377    # for dependence libraries.  The import file would start with
2378    # the line `#! .'.  This would cause the generated library to
2379    # depend on `.', always an invalid library.  This was fixed in
2380    # development snapshots of GCC prior to 3.0.
2381    case $host_os in
2382      aix4 | aix4.[[01]] | aix4.[[01]].*)
2383      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2384	   echo ' yes '
2385	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2386	:
2387      else
2388	can_build_shared=no
2389      fi
2390      ;;
2391    esac
2392    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2393    # soname into executable. Probably we can add versioning support to
2394    # collect2, so additional links can be useful in future.
2395    if test "$aix_use_runtimelinking" = yes; then
2396      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2397      # instead of lib<name>.a to let people know that these are not
2398      # typical AIX shared libraries.
2399      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2400    else
2401      # We preserve .a as extension for shared libraries through AIX4.2
2402      # and later when we are not doing run time linking.
2403      library_names_spec='${libname}${release}.a $libname.a'
2404      soname_spec='${libname}${release}${shared_ext}$major'
2405    fi
2406    shlibpath_var=LIBPATH
2407  fi
2408  ;;
2409
2410amigaos*)
2411  case $host_cpu in
2412  powerpc)
2413    # Since July 2007 AmigaOS4 officially supports .so libraries.
2414    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2416    ;;
2417  m68k)
2418    library_names_spec='$libname.ixlibrary $libname.a'
2419    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2420    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2421    ;;
2422  esac
2423  ;;
2424
2425beos*)
2426  library_names_spec='${libname}${shared_ext}'
2427  dynamic_linker="$host_os ld.so"
2428  shlibpath_var=LIBRARY_PATH
2429  ;;
2430
2431bsdi[[45]]*)
2432  version_type=linux # correct to gnu/linux during the next big refactor
2433  need_version=no
2434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2435  soname_spec='${libname}${release}${shared_ext}$major'
2436  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2437  shlibpath_var=LD_LIBRARY_PATH
2438  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2439  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2440  # the default ld.so.conf also contains /usr/contrib/lib and
2441  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2442  # libtool to hard-code these into programs
2443  ;;
2444
2445cygwin* | mingw* | pw32* | cegcc*)
2446  version_type=windows
2447  shrext_cmds=".dll"
2448  need_version=no
2449  need_lib_prefix=no
2450
2451  case $GCC,$cc_basename in
2452  yes,*)
2453    # gcc
2454    library_names_spec='$libname.dll.a'
2455    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2456    postinstall_cmds='base_file=`basename \${file}`~
2457      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2458      dldir=$destdir/`dirname \$dlpath`~
2459      test -d \$dldir || mkdir -p \$dldir~
2460      $install_prog $dir/$dlname \$dldir/$dlname~
2461      chmod a+x \$dldir/$dlname~
2462      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2463        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2464      fi'
2465    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2466      dlpath=$dir/\$dldll~
2467       $RM \$dlpath'
2468    shlibpath_overrides_runpath=yes
2469
2470    case $host_os in
2471    cygwin*)
2472      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2473      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2474m4_if([$1], [],[
2475      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2476      ;;
2477    mingw* | cegcc*)
2478      # MinGW DLLs use traditional 'lib' prefix
2479      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2480      ;;
2481    pw32*)
2482      # pw32 DLLs use 'pw' prefix rather than 'lib'
2483      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2484      ;;
2485    esac
2486    dynamic_linker='Win32 ld.exe'
2487    ;;
2488
2489  *,cl*)
2490    # Native MSVC
2491    libname_spec='$name'
2492    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2493    library_names_spec='${libname}.dll.lib'
2494
2495    case $build_os in
2496    mingw*)
2497      sys_lib_search_path_spec=
2498      lt_save_ifs=$IFS
2499      IFS=';'
2500      for lt_path in $LIB
2501      do
2502        IFS=$lt_save_ifs
2503        # Let DOS variable expansion print the short 8.3 style file name.
2504        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2505        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2506      done
2507      IFS=$lt_save_ifs
2508      # Convert to MSYS style.
2509      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2510      ;;
2511    cygwin*)
2512      # Convert to unix form, then to dos form, then back to unix form
2513      # but this time dos style (no spaces!) so that the unix form looks
2514      # like /cygdrive/c/PROGRA~1:/cygdr...
2515      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2516      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2517      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2518      ;;
2519    *)
2520      sys_lib_search_path_spec="$LIB"
2521      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2522        # It is most probably a Windows format PATH.
2523        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2524      else
2525        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2526      fi
2527      # FIXME: find the short name or the path components, as spaces are
2528      # common. (e.g. "Program Files" -> "PROGRA~1")
2529      ;;
2530    esac
2531
2532    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2533    postinstall_cmds='base_file=`basename \${file}`~
2534      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2535      dldir=$destdir/`dirname \$dlpath`~
2536      test -d \$dldir || mkdir -p \$dldir~
2537      $install_prog $dir/$dlname \$dldir/$dlname'
2538    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2539      dlpath=$dir/\$dldll~
2540       $RM \$dlpath'
2541    shlibpath_overrides_runpath=yes
2542    dynamic_linker='Win32 link.exe'
2543    ;;
2544
2545  *)
2546    # Assume MSVC wrapper
2547    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2548    dynamic_linker='Win32 ld.exe'
2549    ;;
2550  esac
2551  # FIXME: first we should search . and the directory the executable is in
2552  shlibpath_var=PATH
2553  ;;
2554
2555darwin* | rhapsody*)
2556  dynamic_linker="$host_os dyld"
2557  version_type=darwin
2558  need_lib_prefix=no
2559  need_version=no
2560  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2561  soname_spec='${libname}${release}${major}$shared_ext'
2562  shlibpath_overrides_runpath=yes
2563  shlibpath_var=DYLD_LIBRARY_PATH
2564  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2565m4_if([$1], [],[
2566  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2567  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2568  ;;
2569
2570dgux*)
2571  version_type=linux # correct to gnu/linux during the next big refactor
2572  need_lib_prefix=no
2573  need_version=no
2574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2575  soname_spec='${libname}${release}${shared_ext}$major'
2576  shlibpath_var=LD_LIBRARY_PATH
2577  ;;
2578
2579freebsd* | dragonfly*)
2580  # DragonFly does not have aout.  When/if they implement a new
2581  # versioning mechanism, adjust this.
2582  if test -x /usr/bin/objformat; then
2583    objformat=`/usr/bin/objformat`
2584  else
2585    case $host_os in
2586    freebsd[[23]].*) objformat=aout ;;
2587    *) objformat=elf ;;
2588    esac
2589  fi
2590  version_type=freebsd-$objformat
2591  case $version_type in
2592    freebsd-elf*)
2593      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2594      need_version=no
2595      need_lib_prefix=no
2596      ;;
2597    freebsd-*)
2598      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2599      need_version=yes
2600      ;;
2601  esac
2602  shlibpath_var=LD_LIBRARY_PATH
2603  case $host_os in
2604  freebsd2.*)
2605    shlibpath_overrides_runpath=yes
2606    ;;
2607  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2608    shlibpath_overrides_runpath=yes
2609    hardcode_into_libs=yes
2610    ;;
2611  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2612  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2613    shlibpath_overrides_runpath=no
2614    hardcode_into_libs=yes
2615    ;;
2616  *) # from 4.6 on, and DragonFly
2617    shlibpath_overrides_runpath=yes
2618    hardcode_into_libs=yes
2619    ;;
2620  esac
2621  ;;
2622
2623haiku*)
2624  version_type=linux # correct to gnu/linux during the next big refactor
2625  need_lib_prefix=no
2626  need_version=no
2627  dynamic_linker="$host_os runtime_loader"
2628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2629  soname_spec='${libname}${release}${shared_ext}$major'
2630  shlibpath_var=LIBRARY_PATH
2631  shlibpath_overrides_runpath=yes
2632  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2633  hardcode_into_libs=yes
2634  ;;
2635
2636hpux9* | hpux10* | hpux11*)
2637  # Give a soname corresponding to the major version so that dld.sl refuses to
2638  # link against other versions.
2639  version_type=sunos
2640  need_lib_prefix=no
2641  need_version=no
2642  case $host_cpu in
2643  ia64*)
2644    shrext_cmds='.so'
2645    hardcode_into_libs=yes
2646    dynamic_linker="$host_os dld.so"
2647    shlibpath_var=LD_LIBRARY_PATH
2648    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2649    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2650    soname_spec='${libname}${release}${shared_ext}$major'
2651    if test "X$HPUX_IA64_MODE" = X32; then
2652      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2653    else
2654      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2655    fi
2656    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2657    ;;
2658  hppa*64*)
2659    shrext_cmds='.sl'
2660    hardcode_into_libs=yes
2661    dynamic_linker="$host_os dld.sl"
2662    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2663    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2664    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2665    soname_spec='${libname}${release}${shared_ext}$major'
2666    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2667    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2668    ;;
2669  *)
2670    shrext_cmds='.sl'
2671    dynamic_linker="$host_os dld.sl"
2672    shlibpath_var=SHLIB_PATH
2673    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2675    soname_spec='${libname}${release}${shared_ext}$major'
2676    ;;
2677  esac
2678  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2679  postinstall_cmds='chmod 555 $lib'
2680  # or fails outright, so override atomically:
2681  install_override_mode=555
2682  ;;
2683
2684interix[[3-9]]*)
2685  version_type=linux # correct to gnu/linux during the next big refactor
2686  need_lib_prefix=no
2687  need_version=no
2688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2689  soname_spec='${libname}${release}${shared_ext}$major'
2690  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2691  shlibpath_var=LD_LIBRARY_PATH
2692  shlibpath_overrides_runpath=no
2693  hardcode_into_libs=yes
2694  ;;
2695
2696irix5* | irix6* | nonstopux*)
2697  case $host_os in
2698    nonstopux*) version_type=nonstopux ;;
2699    *)
2700	if test "$lt_cv_prog_gnu_ld" = yes; then
2701		version_type=linux # correct to gnu/linux during the next big refactor
2702	else
2703		version_type=irix
2704	fi ;;
2705  esac
2706  need_lib_prefix=no
2707  need_version=no
2708  soname_spec='${libname}${release}${shared_ext}$major'
2709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2710  case $host_os in
2711  irix5* | nonstopux*)
2712    libsuff= shlibsuff=
2713    ;;
2714  *)
2715    case $LD in # libtool.m4 will add one of these switches to LD
2716    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2717      libsuff= shlibsuff= libmagic=32-bit;;
2718    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2719      libsuff=32 shlibsuff=N32 libmagic=N32;;
2720    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2721      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2722    *) libsuff= shlibsuff= libmagic=never-match;;
2723    esac
2724    ;;
2725  esac
2726  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2727  shlibpath_overrides_runpath=no
2728  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2729  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2730  hardcode_into_libs=yes
2731  ;;
2732
2733# No shared lib support for Linux oldld, aout, or coff.
2734linux*oldld* | linux*aout* | linux*coff*)
2735  dynamic_linker=no
2736  ;;
2737
2738# This must be glibc/ELF.
2739linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2740  version_type=linux # correct to gnu/linux during the next big refactor
2741  need_lib_prefix=no
2742  need_version=no
2743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2744  soname_spec='${libname}${release}${shared_ext}$major'
2745  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2746  shlibpath_var=LD_LIBRARY_PATH
2747  shlibpath_overrides_runpath=no
2748
2749  # Some binutils ld are patched to set DT_RUNPATH
2750  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2751    [lt_cv_shlibpath_overrides_runpath=no
2752    save_LDFLAGS=$LDFLAGS
2753    save_libdir=$libdir
2754    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2755	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2756    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2757      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2758	 [lt_cv_shlibpath_overrides_runpath=yes])])
2759    LDFLAGS=$save_LDFLAGS
2760    libdir=$save_libdir
2761    ])
2762  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2763
2764  # This implies no fast_install, which is unacceptable.
2765  # Some rework will be needed to allow for fast_install
2766  # before this can be enabled.
2767  hardcode_into_libs=yes
2768
2769  # Append ld.so.conf contents to the search path
2770  if test -f /etc/ld.so.conf; then
2771    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2772    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2773  fi
2774
2775  # We used to test for /lib/ld.so.1 and disable shared libraries on
2776  # powerpc, because MkLinux only supported shared libraries with the
2777  # GNU dynamic linker.  Since this was broken with cross compilers,
2778  # most powerpc-linux boxes support dynamic linking these days and
2779  # people can always --disable-shared, the test was removed, and we
2780  # assume the GNU/Linux dynamic linker is in use.
2781  dynamic_linker='GNU/Linux ld.so'
2782  ;;
2783
2784netbsdelf*-gnu)
2785  version_type=linux
2786  need_lib_prefix=no
2787  need_version=no
2788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2789  soname_spec='${libname}${release}${shared_ext}$major'
2790  shlibpath_var=LD_LIBRARY_PATH
2791  shlibpath_overrides_runpath=no
2792  hardcode_into_libs=yes
2793  dynamic_linker='NetBSD ld.elf_so'
2794  ;;
2795
2796netbsd*)
2797  version_type=sunos
2798  need_lib_prefix=no
2799  need_version=no
2800  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2801    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2802    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2803    dynamic_linker='NetBSD (a.out) ld.so'
2804  else
2805    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2806    soname_spec='${libname}${release}${shared_ext}$major'
2807    dynamic_linker='NetBSD ld.elf_so'
2808  fi
2809  shlibpath_var=LD_LIBRARY_PATH
2810  shlibpath_overrides_runpath=yes
2811  hardcode_into_libs=yes
2812  ;;
2813
2814newsos6)
2815  version_type=linux # correct to gnu/linux during the next big refactor
2816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2817  shlibpath_var=LD_LIBRARY_PATH
2818  shlibpath_overrides_runpath=yes
2819  ;;
2820
2821*nto* | *qnx*)
2822  version_type=qnx
2823  need_lib_prefix=no
2824  need_version=no
2825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2826  soname_spec='${libname}${release}${shared_ext}$major'
2827  shlibpath_var=LD_LIBRARY_PATH
2828  shlibpath_overrides_runpath=no
2829  hardcode_into_libs=yes
2830  dynamic_linker='ldqnx.so'
2831  ;;
2832
2833openbsd*)
2834  version_type=sunos
2835  sys_lib_dlsearch_path_spec="/usr/lib"
2836  need_lib_prefix=no
2837  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2838  case $host_os in
2839    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
2840    *)				need_version=no  ;;
2841  esac
2842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2844  shlibpath_var=LD_LIBRARY_PATH
2845  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2846    case $host_os in
2847      openbsd2.[[89]] | openbsd2.[[89]].*)
2848	shlibpath_overrides_runpath=no
2849	;;
2850      *)
2851	shlibpath_overrides_runpath=yes
2852	;;
2853      esac
2854  else
2855    shlibpath_overrides_runpath=yes
2856  fi
2857  ;;
2858
2859os2*)
2860  libname_spec='$name'
2861  shrext_cmds=".dll"
2862  need_lib_prefix=no
2863  library_names_spec='$libname${shared_ext} $libname.a'
2864  dynamic_linker='OS/2 ld.exe'
2865  shlibpath_var=LIBPATH
2866  ;;
2867
2868osf3* | osf4* | osf5*)
2869  version_type=osf
2870  need_lib_prefix=no
2871  need_version=no
2872  soname_spec='${libname}${release}${shared_ext}$major'
2873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2874  shlibpath_var=LD_LIBRARY_PATH
2875  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2876  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2877  ;;
2878
2879rdos*)
2880  dynamic_linker=no
2881  ;;
2882
2883solaris*)
2884  version_type=linux # correct to gnu/linux during the next big refactor
2885  need_lib_prefix=no
2886  need_version=no
2887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2888  soname_spec='${libname}${release}${shared_ext}$major'
2889  shlibpath_var=LD_LIBRARY_PATH
2890  shlibpath_overrides_runpath=yes
2891  hardcode_into_libs=yes
2892  # ldd complains unless libraries are executable
2893  postinstall_cmds='chmod +x $lib'
2894  ;;
2895
2896sunos4*)
2897  version_type=sunos
2898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2899  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2900  shlibpath_var=LD_LIBRARY_PATH
2901  shlibpath_overrides_runpath=yes
2902  if test "$with_gnu_ld" = yes; then
2903    need_lib_prefix=no
2904  fi
2905  need_version=yes
2906  ;;
2907
2908sysv4 | sysv4.3*)
2909  version_type=linux # correct to gnu/linux during the next big refactor
2910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2911  soname_spec='${libname}${release}${shared_ext}$major'
2912  shlibpath_var=LD_LIBRARY_PATH
2913  case $host_vendor in
2914    sni)
2915      shlibpath_overrides_runpath=no
2916      need_lib_prefix=no
2917      runpath_var=LD_RUN_PATH
2918      ;;
2919    siemens)
2920      need_lib_prefix=no
2921      ;;
2922    motorola)
2923      need_lib_prefix=no
2924      need_version=no
2925      shlibpath_overrides_runpath=no
2926      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2927      ;;
2928  esac
2929  ;;
2930
2931sysv4*MP*)
2932  if test -d /usr/nec ;then
2933    version_type=linux # correct to gnu/linux during the next big refactor
2934    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2935    soname_spec='$libname${shared_ext}.$major'
2936    shlibpath_var=LD_LIBRARY_PATH
2937  fi
2938  ;;
2939
2940sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2941  version_type=freebsd-elf
2942  need_lib_prefix=no
2943  need_version=no
2944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2945  soname_spec='${libname}${release}${shared_ext}$major'
2946  shlibpath_var=LD_LIBRARY_PATH
2947  shlibpath_overrides_runpath=yes
2948  hardcode_into_libs=yes
2949  if test "$with_gnu_ld" = yes; then
2950    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2951  else
2952    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2953    case $host_os in
2954      sco3.2v5*)
2955        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2956	;;
2957    esac
2958  fi
2959  sys_lib_dlsearch_path_spec='/usr/lib'
2960  ;;
2961
2962tpf*)
2963  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2964  version_type=linux # correct to gnu/linux during the next big refactor
2965  need_lib_prefix=no
2966  need_version=no
2967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2968  shlibpath_var=LD_LIBRARY_PATH
2969  shlibpath_overrides_runpath=no
2970  hardcode_into_libs=yes
2971  ;;
2972
2973uts4*)
2974  version_type=linux # correct to gnu/linux during the next big refactor
2975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2976  soname_spec='${libname}${release}${shared_ext}$major'
2977  shlibpath_var=LD_LIBRARY_PATH
2978  ;;
2979
2980*)
2981  dynamic_linker=no
2982  ;;
2983esac
2984AC_MSG_RESULT([$dynamic_linker])
2985test "$dynamic_linker" = no && can_build_shared=no
2986
2987variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2988if test "$GCC" = yes; then
2989  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2990fi
2991
2992if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2993  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2994fi
2995if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2996  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2997fi
2998
2999_LT_DECL([], [variables_saved_for_relink], [1],
3000    [Variables whose values should be saved in libtool wrapper scripts and
3001    restored at link time])
3002_LT_DECL([], [need_lib_prefix], [0],
3003    [Do we need the "lib" prefix for modules?])
3004_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3005_LT_DECL([], [version_type], [0], [Library versioning type])
3006_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3007_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3008_LT_DECL([], [shlibpath_overrides_runpath], [0],
3009    [Is shlibpath searched before the hard-coded library search path?])
3010_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3011_LT_DECL([], [library_names_spec], [1],
3012    [[List of archive names.  First name is the real one, the rest are links.
3013    The last name is the one that the linker finds with -lNAME]])
3014_LT_DECL([], [soname_spec], [1],
3015    [[The coded name of the library, if different from the real name]])
3016_LT_DECL([], [install_override_mode], [1],
3017    [Permission mode override for installation of shared libraries])
3018_LT_DECL([], [postinstall_cmds], [2],
3019    [Command to use after installation of a shared archive])
3020_LT_DECL([], [postuninstall_cmds], [2],
3021    [Command to use after uninstallation of a shared archive])
3022_LT_DECL([], [finish_cmds], [2],
3023    [Commands used to finish a libtool library installation in a directory])
3024_LT_DECL([], [finish_eval], [1],
3025    [[As "finish_cmds", except a single script fragment to be evaled but
3026    not shown]])
3027_LT_DECL([], [hardcode_into_libs], [0],
3028    [Whether we should hardcode library paths into libraries])
3029_LT_DECL([], [sys_lib_search_path_spec], [2],
3030    [Compile-time system search path for libraries])
3031_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3032    [Run-time system search path for libraries])
3033])# _LT_SYS_DYNAMIC_LINKER
3034
3035
3036# _LT_PATH_TOOL_PREFIX(TOOL)
3037# --------------------------
3038# find a file program which can recognize shared library
3039AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3040[m4_require([_LT_DECL_EGREP])dnl
3041AC_MSG_CHECKING([for $1])
3042AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3043[case $MAGIC_CMD in
3044[[\\/*] |  ?:[\\/]*])
3045  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3046  ;;
3047*)
3048  lt_save_MAGIC_CMD="$MAGIC_CMD"
3049  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3050dnl $ac_dummy forces splitting on constant user-supplied paths.
3051dnl POSIX.2 word splitting is done only on the output of word expansions,
3052dnl not every word.  This closes a longstanding sh security hole.
3053  ac_dummy="m4_if([$2], , $PATH, [$2])"
3054  for ac_dir in $ac_dummy; do
3055    IFS="$lt_save_ifs"
3056    test -z "$ac_dir" && ac_dir=.
3057    if test -f $ac_dir/$1; then
3058      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3059      if test -n "$file_magic_test_file"; then
3060	case $deplibs_check_method in
3061	"file_magic "*)
3062	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3063	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3064	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3065	    $EGREP "$file_magic_regex" > /dev/null; then
3066	    :
3067	  else
3068	    cat <<_LT_EOF 1>&2
3069
3070*** Warning: the command libtool uses to detect shared libraries,
3071*** $file_magic_cmd, produces output that libtool cannot recognize.
3072*** The result is that libtool may fail to recognize shared libraries
3073*** as such.  This will affect the creation of libtool libraries that
3074*** depend on shared libraries, but programs linked with such libtool
3075*** libraries will work regardless of this problem.  Nevertheless, you
3076*** may want to report the problem to your system manager and/or to
3077*** bug-libtool@gnu.org
3078
3079_LT_EOF
3080	  fi ;;
3081	esac
3082      fi
3083      break
3084    fi
3085  done
3086  IFS="$lt_save_ifs"
3087  MAGIC_CMD="$lt_save_MAGIC_CMD"
3088  ;;
3089esac])
3090MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3091if test -n "$MAGIC_CMD"; then
3092  AC_MSG_RESULT($MAGIC_CMD)
3093else
3094  AC_MSG_RESULT(no)
3095fi
3096_LT_DECL([], [MAGIC_CMD], [0],
3097	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3098])# _LT_PATH_TOOL_PREFIX
3099
3100# Old name:
3101AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3102dnl aclocal-1.4 backwards compatibility:
3103dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3104
3105
3106# _LT_PATH_MAGIC
3107# --------------
3108# find a file program which can recognize a shared library
3109m4_defun([_LT_PATH_MAGIC],
3110[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3111if test -z "$lt_cv_path_MAGIC_CMD"; then
3112  if test -n "$ac_tool_prefix"; then
3113    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3114  else
3115    MAGIC_CMD=:
3116  fi
3117fi
3118])# _LT_PATH_MAGIC
3119
3120
3121# LT_PATH_LD
3122# ----------
3123# find the pathname to the GNU or non-GNU linker
3124AC_DEFUN([LT_PATH_LD],
3125[AC_REQUIRE([AC_PROG_CC])dnl
3126AC_REQUIRE([AC_CANONICAL_HOST])dnl
3127AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3128m4_require([_LT_DECL_SED])dnl
3129m4_require([_LT_DECL_EGREP])dnl
3130m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3131
3132AC_ARG_WITH([gnu-ld],
3133    [AS_HELP_STRING([--with-gnu-ld],
3134	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3135    [test "$withval" = no || with_gnu_ld=yes],
3136    [with_gnu_ld=no])dnl
3137
3138ac_prog=ld
3139if test "$GCC" = yes; then
3140  # Check if gcc -print-prog-name=ld gives a path.
3141  AC_MSG_CHECKING([for ld used by $CC])
3142  case $host in
3143  *-*-mingw*)
3144    # gcc leaves a trailing carriage return which upsets mingw
3145    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3146  *)
3147    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3148  esac
3149  case $ac_prog in
3150    # Accept absolute paths.
3151    [[\\/]]* | ?:[[\\/]]*)
3152      re_direlt='/[[^/]][[^/]]*/\.\./'
3153      # Canonicalize the pathname of ld
3154      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3155      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3156	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3157      done
3158      test -z "$LD" && LD="$ac_prog"
3159      ;;
3160  "")
3161    # If it fails, then pretend we aren't using GCC.
3162    ac_prog=ld
3163    ;;
3164  *)
3165    # If it is relative, then search for the first ld in PATH.
3166    with_gnu_ld=unknown
3167    ;;
3168  esac
3169elif test "$with_gnu_ld" = yes; then
3170  AC_MSG_CHECKING([for GNU ld])
3171else
3172  AC_MSG_CHECKING([for non-GNU ld])
3173fi
3174AC_CACHE_VAL(lt_cv_path_LD,
3175[if test -z "$LD"; then
3176  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3177  for ac_dir in $PATH; do
3178    IFS="$lt_save_ifs"
3179    test -z "$ac_dir" && ac_dir=.
3180    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3181      lt_cv_path_LD="$ac_dir/$ac_prog"
3182      # Check to see if the program is GNU ld.  I'd rather use --version,
3183      # but apparently some variants of GNU ld only accept -v.
3184      # Break only if it was the GNU/non-GNU ld that we prefer.
3185      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3186      *GNU* | *'with BFD'*)
3187	test "$with_gnu_ld" != no && break
3188	;;
3189      *)
3190	test "$with_gnu_ld" != yes && break
3191	;;
3192      esac
3193    fi
3194  done
3195  IFS="$lt_save_ifs"
3196else
3197  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3198fi])
3199LD="$lt_cv_path_LD"
3200if test -n "$LD"; then
3201  AC_MSG_RESULT($LD)
3202else
3203  AC_MSG_RESULT(no)
3204fi
3205test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3206_LT_PATH_LD_GNU
3207AC_SUBST([LD])
3208
3209_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3210])# LT_PATH_LD
3211
3212# Old names:
3213AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3214AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3215dnl aclocal-1.4 backwards compatibility:
3216dnl AC_DEFUN([AM_PROG_LD], [])
3217dnl AC_DEFUN([AC_PROG_LD], [])
3218
3219
3220# _LT_PATH_LD_GNU
3221#- --------------
3222m4_defun([_LT_PATH_LD_GNU],
3223[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3224[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3225case `$LD -v 2>&1 </dev/null` in
3226*GNU* | *'with BFD'*)
3227  lt_cv_prog_gnu_ld=yes
3228  ;;
3229*)
3230  lt_cv_prog_gnu_ld=no
3231  ;;
3232esac])
3233with_gnu_ld=$lt_cv_prog_gnu_ld
3234])# _LT_PATH_LD_GNU
3235
3236
3237# _LT_CMD_RELOAD
3238# --------------
3239# find reload flag for linker
3240#   -- PORTME Some linkers may need a different reload flag.
3241m4_defun([_LT_CMD_RELOAD],
3242[AC_CACHE_CHECK([for $LD option to reload object files],
3243  lt_cv_ld_reload_flag,
3244  [lt_cv_ld_reload_flag='-r'])
3245reload_flag=$lt_cv_ld_reload_flag
3246case $reload_flag in
3247"" | " "*) ;;
3248*) reload_flag=" $reload_flag" ;;
3249esac
3250reload_cmds='$LD$reload_flag -o $output$reload_objs'
3251case $host_os in
3252  cygwin* | mingw* | pw32* | cegcc*)
3253    if test "$GCC" != yes; then
3254      reload_cmds=false
3255    fi
3256    ;;
3257  darwin*)
3258    if test "$GCC" = yes; then
3259      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3260    else
3261      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3262    fi
3263    ;;
3264esac
3265_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3266_LT_TAGDECL([], [reload_cmds], [2])dnl
3267])# _LT_CMD_RELOAD
3268
3269
3270# _LT_CHECK_MAGIC_METHOD
3271# ----------------------
3272# how to check for library dependencies
3273#  -- PORTME fill in with the dynamic library characteristics
3274m4_defun([_LT_CHECK_MAGIC_METHOD],
3275[m4_require([_LT_DECL_EGREP])
3276m4_require([_LT_DECL_OBJDUMP])
3277AC_CACHE_CHECK([how to recognize dependent libraries],
3278lt_cv_deplibs_check_method,
3279[lt_cv_file_magic_cmd='$MAGIC_CMD'
3280lt_cv_file_magic_test_file=
3281lt_cv_deplibs_check_method='unknown'
3282# Need to set the preceding variable on all platforms that support
3283# interlibrary dependencies.
3284# 'none' -- dependencies not supported.
3285# `unknown' -- same as none, but documents that we really don't know.
3286# 'pass_all' -- all dependencies passed with no checks.
3287# 'test_compile' -- check by making test program.
3288# 'file_magic [[regex]]' -- check by looking for files in library path
3289# which responds to the $file_magic_cmd with a given extended regex.
3290# If you have `file' or equivalent on your system and you're not sure
3291# whether `pass_all' will *always* work, you probably want this one.
3292
3293case $host_os in
3294aix[[4-9]]*)
3295  lt_cv_deplibs_check_method=pass_all
3296  ;;
3297
3298beos*)
3299  lt_cv_deplibs_check_method=pass_all
3300  ;;
3301
3302bsdi[[45]]*)
3303  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3304  lt_cv_file_magic_cmd='/usr/bin/file -L'
3305  lt_cv_file_magic_test_file=/shlib/libc.so
3306  ;;
3307
3308cygwin*)
3309  # func_win32_libid is a shell function defined in ltmain.sh
3310  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3311  lt_cv_file_magic_cmd='func_win32_libid'
3312  ;;
3313
3314mingw* | pw32*)
3315  # Base MSYS/MinGW do not provide the 'file' command needed by
3316  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3317  # unless we find 'file', for example because we are cross-compiling.
3318  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3319  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3320    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3321    lt_cv_file_magic_cmd='func_win32_libid'
3322  else
3323    # Keep this pattern in sync with the one in func_win32_libid.
3324    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3325    lt_cv_file_magic_cmd='$OBJDUMP -f'
3326  fi
3327  ;;
3328
3329cegcc*)
3330  # use the weaker test based on 'objdump'. See mingw*.
3331  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3332  lt_cv_file_magic_cmd='$OBJDUMP -f'
3333  ;;
3334
3335darwin* | rhapsody*)
3336  lt_cv_deplibs_check_method=pass_all
3337  ;;
3338
3339freebsd* | dragonfly*)
3340  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3341    case $host_cpu in
3342    i*86 )
3343      # Not sure whether the presence of OpenBSD here was a mistake.
3344      # Let's accept both of them until this is cleared up.
3345      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3346      lt_cv_file_magic_cmd=/usr/bin/file
3347      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3348      ;;
3349    esac
3350  else
3351    lt_cv_deplibs_check_method=pass_all
3352  fi
3353  ;;
3354
3355haiku*)
3356  lt_cv_deplibs_check_method=pass_all
3357  ;;
3358
3359hpux10.20* | hpux11*)
3360  lt_cv_file_magic_cmd=/usr/bin/file
3361  case $host_cpu in
3362  ia64*)
3363    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3364    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3365    ;;
3366  hppa*64*)
3367    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3368    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3369    ;;
3370  *)
3371    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3372    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3373    ;;
3374  esac
3375  ;;
3376
3377interix[[3-9]]*)
3378  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3379  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3380  ;;
3381
3382irix5* | irix6* | nonstopux*)
3383  case $LD in
3384  *-32|*"-32 ") libmagic=32-bit;;
3385  *-n32|*"-n32 ") libmagic=N32;;
3386  *-64|*"-64 ") libmagic=64-bit;;
3387  *) libmagic=never-match;;
3388  esac
3389  lt_cv_deplibs_check_method=pass_all
3390  ;;
3391
3392# This must be glibc/ELF.
3393linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3394  lt_cv_deplibs_check_method=pass_all
3395  ;;
3396
3397netbsd* | netbsdelf*-gnu)
3398  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3399    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3400  else
3401    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3402  fi
3403  ;;
3404
3405newos6*)
3406  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3407  lt_cv_file_magic_cmd=/usr/bin/file
3408  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3409  ;;
3410
3411*nto* | *qnx*)
3412  lt_cv_deplibs_check_method=pass_all
3413  ;;
3414
3415openbsd*)
3416  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3417    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3418  else
3419    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3420  fi
3421  ;;
3422
3423osf3* | osf4* | osf5*)
3424  lt_cv_deplibs_check_method=pass_all
3425  ;;
3426
3427rdos*)
3428  lt_cv_deplibs_check_method=pass_all
3429  ;;
3430
3431solaris*)
3432  lt_cv_deplibs_check_method=pass_all
3433  ;;
3434
3435sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3436  lt_cv_deplibs_check_method=pass_all
3437  ;;
3438
3439sysv4 | sysv4.3*)
3440  case $host_vendor in
3441  motorola)
3442    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]]'
3443    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3444    ;;
3445  ncr)
3446    lt_cv_deplibs_check_method=pass_all
3447    ;;
3448  sequent)
3449    lt_cv_file_magic_cmd='/bin/file'
3450    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3451    ;;
3452  sni)
3453    lt_cv_file_magic_cmd='/bin/file'
3454    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3455    lt_cv_file_magic_test_file=/lib/libc.so
3456    ;;
3457  siemens)
3458    lt_cv_deplibs_check_method=pass_all
3459    ;;
3460  pc)
3461    lt_cv_deplibs_check_method=pass_all
3462    ;;
3463  esac
3464  ;;
3465
3466tpf*)
3467  lt_cv_deplibs_check_method=pass_all
3468  ;;
3469esac
3470])
3471
3472file_magic_glob=
3473want_nocaseglob=no
3474if test "$build" = "$host"; then
3475  case $host_os in
3476  mingw* | pw32*)
3477    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3478      want_nocaseglob=yes
3479    else
3480      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3481    fi
3482    ;;
3483  esac
3484fi
3485
3486file_magic_cmd=$lt_cv_file_magic_cmd
3487deplibs_check_method=$lt_cv_deplibs_check_method
3488test -z "$deplibs_check_method" && deplibs_check_method=unknown
3489
3490_LT_DECL([], [deplibs_check_method], [1],
3491    [Method to check whether dependent libraries are shared objects])
3492_LT_DECL([], [file_magic_cmd], [1],
3493    [Command to use when deplibs_check_method = "file_magic"])
3494_LT_DECL([], [file_magic_glob], [1],
3495    [How to find potential files when deplibs_check_method = "file_magic"])
3496_LT_DECL([], [want_nocaseglob], [1],
3497    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3498])# _LT_CHECK_MAGIC_METHOD
3499
3500
3501# LT_PATH_NM
3502# ----------
3503# find the pathname to a BSD- or MS-compatible name lister
3504AC_DEFUN([LT_PATH_NM],
3505[AC_REQUIRE([AC_PROG_CC])dnl
3506AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3507[if test -n "$NM"; then
3508  # Let the user override the test.
3509  lt_cv_path_NM="$NM"
3510else
3511  lt_nm_to_check="${ac_tool_prefix}nm"
3512  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3513    lt_nm_to_check="$lt_nm_to_check nm"
3514  fi
3515  for lt_tmp_nm in $lt_nm_to_check; do
3516    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3517    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3518      IFS="$lt_save_ifs"
3519      test -z "$ac_dir" && ac_dir=.
3520      tmp_nm="$ac_dir/$lt_tmp_nm"
3521      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3522	# Check to see if the nm accepts a BSD-compat flag.
3523	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3524	#   nm: unknown option "B" ignored
3525	# Tru64's nm complains that /dev/null is an invalid object file
3526	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3527	*/dev/null* | *'Invalid file or object type'*)
3528	  lt_cv_path_NM="$tmp_nm -B"
3529	  break
3530	  ;;
3531	*)
3532	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3533	  */dev/null*)
3534	    lt_cv_path_NM="$tmp_nm -p"
3535	    break
3536	    ;;
3537	  *)
3538	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3539	    continue # so that we can try to find one that supports BSD flags
3540	    ;;
3541	  esac
3542	  ;;
3543	esac
3544      fi
3545    done
3546    IFS="$lt_save_ifs"
3547  done
3548  : ${lt_cv_path_NM=no}
3549fi])
3550if test "$lt_cv_path_NM" != "no"; then
3551  NM="$lt_cv_path_NM"
3552else
3553  # Didn't find any BSD compatible name lister, look for dumpbin.
3554  if test -n "$DUMPBIN"; then :
3555    # Let the user override the test.
3556  else
3557    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3558    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3559    *COFF*)
3560      DUMPBIN="$DUMPBIN -symbols"
3561      ;;
3562    *)
3563      DUMPBIN=:
3564      ;;
3565    esac
3566  fi
3567  AC_SUBST([DUMPBIN])
3568  if test "$DUMPBIN" != ":"; then
3569    NM="$DUMPBIN"
3570  fi
3571fi
3572test -z "$NM" && NM=nm
3573AC_SUBST([NM])
3574_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3575
3576AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3577  [lt_cv_nm_interface="BSD nm"
3578  echo "int some_variable = 0;" > conftest.$ac_ext
3579  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3580  (eval "$ac_compile" 2>conftest.err)
3581  cat conftest.err >&AS_MESSAGE_LOG_FD
3582  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3583  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3584  cat conftest.err >&AS_MESSAGE_LOG_FD
3585  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3586  cat conftest.out >&AS_MESSAGE_LOG_FD
3587  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3588    lt_cv_nm_interface="MS dumpbin"
3589  fi
3590  rm -f conftest*])
3591])# LT_PATH_NM
3592
3593# Old names:
3594AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3595AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3596dnl aclocal-1.4 backwards compatibility:
3597dnl AC_DEFUN([AM_PROG_NM], [])
3598dnl AC_DEFUN([AC_PROG_NM], [])
3599
3600# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3601# --------------------------------
3602# how to determine the name of the shared library
3603# associated with a specific link library.
3604#  -- PORTME fill in with the dynamic library characteristics
3605m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3606[m4_require([_LT_DECL_EGREP])
3607m4_require([_LT_DECL_OBJDUMP])
3608m4_require([_LT_DECL_DLLTOOL])
3609AC_CACHE_CHECK([how to associate runtime and link libraries],
3610lt_cv_sharedlib_from_linklib_cmd,
3611[lt_cv_sharedlib_from_linklib_cmd='unknown'
3612
3613case $host_os in
3614cygwin* | mingw* | pw32* | cegcc*)
3615  # two different shell functions defined in ltmain.sh
3616  # decide which to use based on capabilities of $DLLTOOL
3617  case `$DLLTOOL --help 2>&1` in
3618  *--identify-strict*)
3619    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3620    ;;
3621  *)
3622    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3623    ;;
3624  esac
3625  ;;
3626*)
3627  # fallback: assume linklib IS sharedlib
3628  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3629  ;;
3630esac
3631])
3632sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3633test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3634
3635_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3636    [Command to associate shared and link libraries])
3637])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3638
3639
3640# _LT_PATH_MANIFEST_TOOL
3641# ----------------------
3642# locate the manifest tool
3643m4_defun([_LT_PATH_MANIFEST_TOOL],
3644[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3645test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3646AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3647  [lt_cv_path_mainfest_tool=no
3648  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3649  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3650  cat conftest.err >&AS_MESSAGE_LOG_FD
3651  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3652    lt_cv_path_mainfest_tool=yes
3653  fi
3654  rm -f conftest*])
3655if test "x$lt_cv_path_mainfest_tool" != xyes; then
3656  MANIFEST_TOOL=:
3657fi
3658_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3659])# _LT_PATH_MANIFEST_TOOL
3660
3661
3662# LT_LIB_M
3663# --------
3664# check for math library
3665AC_DEFUN([LT_LIB_M],
3666[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3667LIBM=
3668case $host in
3669*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3670  # These system don't have libm, or don't need it
3671  ;;
3672*-ncr-sysv4.3*)
3673  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3674  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3675  ;;
3676*)
3677  AC_CHECK_LIB(m, cos, LIBM="-lm")
3678  ;;
3679esac
3680AC_SUBST([LIBM])
3681])# LT_LIB_M
3682
3683# Old name:
3684AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3685dnl aclocal-1.4 backwards compatibility:
3686dnl AC_DEFUN([AC_CHECK_LIBM], [])
3687
3688
3689# _LT_COMPILER_NO_RTTI([TAGNAME])
3690# -------------------------------
3691m4_defun([_LT_COMPILER_NO_RTTI],
3692[m4_require([_LT_TAG_COMPILER])dnl
3693
3694_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3695
3696if test "$GCC" = yes; then
3697  case $cc_basename in
3698  nvcc*)
3699    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3700  *)
3701    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3702  esac
3703
3704  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3705    lt_cv_prog_compiler_rtti_exceptions,
3706    [-fno-rtti -fno-exceptions], [],
3707    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3708fi
3709_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3710	[Compiler flag to turn off builtin functions])
3711])# _LT_COMPILER_NO_RTTI
3712
3713
3714# _LT_CMD_GLOBAL_SYMBOLS
3715# ----------------------
3716m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3717[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3718AC_REQUIRE([AC_PROG_CC])dnl
3719AC_REQUIRE([AC_PROG_AWK])dnl
3720AC_REQUIRE([LT_PATH_NM])dnl
3721AC_REQUIRE([LT_PATH_LD])dnl
3722m4_require([_LT_DECL_SED])dnl
3723m4_require([_LT_DECL_EGREP])dnl
3724m4_require([_LT_TAG_COMPILER])dnl
3725
3726# Check for command to grab the raw symbol name followed by C symbol from nm.
3727AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3728AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3729[
3730# These are sane defaults that work on at least a few old systems.
3731# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3732
3733# Character class describing NM global symbol codes.
3734symcode='[[BCDEGRST]]'
3735
3736# Regexp to match symbols that can be accessed directly from C.
3737sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3738
3739# Define system-specific variables.
3740case $host_os in
3741aix*)
3742  symcode='[[BCDT]]'
3743  ;;
3744cygwin* | mingw* | pw32* | cegcc*)
3745  symcode='[[ABCDGISTW]]'
3746  ;;
3747hpux*)
3748  if test "$host_cpu" = ia64; then
3749    symcode='[[ABCDEGRST]]'
3750  fi
3751  ;;
3752irix* | nonstopux*)
3753  symcode='[[BCDEGRST]]'
3754  ;;
3755osf*)
3756  symcode='[[BCDEGQRST]]'
3757  ;;
3758solaris*)
3759  symcode='[[BDRT]]'
3760  ;;
3761sco3.2v5*)
3762  symcode='[[DT]]'
3763  ;;
3764sysv4.2uw2*)
3765  symcode='[[DT]]'
3766  ;;
3767sysv5* | sco5v6* | unixware* | OpenUNIX*)
3768  symcode='[[ABDT]]'
3769  ;;
3770sysv4)
3771  symcode='[[DFNSTU]]'
3772  ;;
3773esac
3774
3775# If we're using GNU nm, then use its standard symbol codes.
3776case `$NM -V 2>&1` in
3777*GNU* | *'with BFD'*)
3778  symcode='[[ABCDGIRSTW]]' ;;
3779esac
3780
3781# Transform an extracted symbol line into a proper C declaration.
3782# Some systems (esp. on ia64) link data and code symbols differently,
3783# so use this general approach.
3784lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3785
3786# Transform an extracted symbol line into symbol name and symbol address
3787lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3788lt_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'"
3789
3790# Handle CRLF in mingw tool chain
3791opt_cr=
3792case $build_os in
3793mingw*)
3794  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3795  ;;
3796esac
3797
3798# Try without a prefix underscore, then with it.
3799for ac_symprfx in "" "_"; do
3800
3801  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3802  symxfrm="\\1 $ac_symprfx\\2 \\2"
3803
3804  # Write the raw and C identifiers.
3805  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3806    # Fake it for dumpbin and say T for any non-static function
3807    # and D for any global variable.
3808    # Also find C++ and __fastcall symbols from MSVC++,
3809    # which start with @ or ?.
3810    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3811"     {last_section=section; section=\$ 3};"\
3812"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3813"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3814"     \$ 0!~/External *\|/{next};"\
3815"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3816"     {if(hide[section]) next};"\
3817"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3818"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3819"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
3820"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3821"     ' prfx=^$ac_symprfx]"
3822  else
3823    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3824  fi
3825  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3826
3827  # Check to see that the pipe works correctly.
3828  pipe_works=no
3829
3830  rm -f conftest*
3831  cat > conftest.$ac_ext <<_LT_EOF
3832#ifdef __cplusplus
3833extern "C" {
3834#endif
3835char nm_test_var;
3836void nm_test_func(void);
3837void nm_test_func(void){}
3838#ifdef __cplusplus
3839}
3840#endif
3841int main(){nm_test_var='a';nm_test_func();return(0);}
3842_LT_EOF
3843
3844  if AC_TRY_EVAL(ac_compile); then
3845    # Now try to grab the symbols.
3846    nlist=conftest.nm
3847    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3848      # Try sorting and uniquifying the output.
3849      if sort "$nlist" | uniq > "$nlist"T; then
3850	mv -f "$nlist"T "$nlist"
3851      else
3852	rm -f "$nlist"T
3853      fi
3854
3855      # Make sure that we snagged all the symbols we need.
3856      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3857	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3858	  cat <<_LT_EOF > conftest.$ac_ext
3859/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
3860#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3861/* DATA imports from DLLs on WIN32 con't be const, because runtime
3862   relocations are performed -- see ld's documentation on pseudo-relocs.  */
3863# define LT@&t@_DLSYM_CONST
3864#elif defined(__osf__)
3865/* This system does not cope well with relocations in const data.  */
3866# define LT@&t@_DLSYM_CONST
3867#else
3868# define LT@&t@_DLSYM_CONST const
3869#endif
3870
3871#ifdef __cplusplus
3872extern "C" {
3873#endif
3874
3875_LT_EOF
3876	  # Now generate the symbol file.
3877	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3878
3879	  cat <<_LT_EOF >> conftest.$ac_ext
3880
3881/* The mapping between symbol names and symbols.  */
3882LT@&t@_DLSYM_CONST struct {
3883  const char *name;
3884  void       *address;
3885}
3886lt__PROGRAM__LTX_preloaded_symbols[[]] =
3887{
3888  { "@PROGRAM@", (void *) 0 },
3889_LT_EOF
3890	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3891	  cat <<\_LT_EOF >> conftest.$ac_ext
3892  {0, (void *) 0}
3893};
3894
3895/* This works around a problem in FreeBSD linker */
3896#ifdef FREEBSD_WORKAROUND
3897static const void *lt_preloaded_setup() {
3898  return lt__PROGRAM__LTX_preloaded_symbols;
3899}
3900#endif
3901
3902#ifdef __cplusplus
3903}
3904#endif
3905_LT_EOF
3906	  # Now try linking the two files.
3907	  mv conftest.$ac_objext conftstm.$ac_objext
3908	  lt_globsym_save_LIBS=$LIBS
3909	  lt_globsym_save_CFLAGS=$CFLAGS
3910	  LIBS="conftstm.$ac_objext"
3911	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3912	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3913	    pipe_works=yes
3914	  fi
3915	  LIBS=$lt_globsym_save_LIBS
3916	  CFLAGS=$lt_globsym_save_CFLAGS
3917	else
3918	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3919	fi
3920      else
3921	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3922      fi
3923    else
3924      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3925    fi
3926  else
3927    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3928    cat conftest.$ac_ext >&5
3929  fi
3930  rm -rf conftest* conftst*
3931
3932  # Do not use the global_symbol_pipe unless it works.
3933  if test "$pipe_works" = yes; then
3934    break
3935  else
3936    lt_cv_sys_global_symbol_pipe=
3937  fi
3938done
3939])
3940if test -z "$lt_cv_sys_global_symbol_pipe"; then
3941  lt_cv_sys_global_symbol_to_cdecl=
3942fi
3943if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3944  AC_MSG_RESULT(failed)
3945else
3946  AC_MSG_RESULT(ok)
3947fi
3948
3949# Response file support.
3950if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3951  nm_file_list_spec='@'
3952elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3953  nm_file_list_spec='@'
3954fi
3955
3956_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3957    [Take the output of nm and produce a listing of raw symbols and C names])
3958_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3959    [Transform the output of nm in a proper C declaration])
3960_LT_DECL([global_symbol_to_c_name_address],
3961    [lt_cv_sys_global_symbol_to_c_name_address], [1],
3962    [Transform the output of nm in a C name address pair])
3963_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3964    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3965    [Transform the output of nm in a C name address pair when lib prefix is needed])
3966_LT_DECL([], [nm_file_list_spec], [1],
3967    [Specify filename containing input files for $NM])
3968]) # _LT_CMD_GLOBAL_SYMBOLS
3969
3970
3971# _LT_COMPILER_PIC([TAGNAME])
3972# ---------------------------
3973m4_defun([_LT_COMPILER_PIC],
3974[m4_require([_LT_TAG_COMPILER])dnl
3975_LT_TAGVAR(lt_prog_compiler_wl, $1)=
3976_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3977_LT_TAGVAR(lt_prog_compiler_static, $1)=
3978
3979m4_if([$1], [CXX], [
3980  # C++ specific cases for pic, static, wl, etc.
3981  if test "$GXX" = yes; then
3982    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3983    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3984
3985    case $host_os in
3986    aix*)
3987      # All AIX code is PIC.
3988      if test "$host_cpu" = ia64; then
3989	# AIX 5 now supports IA64 processor
3990	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3991      fi
3992      ;;
3993
3994    amigaos*)
3995      case $host_cpu in
3996      powerpc)
3997            # see comment about AmigaOS4 .so support
3998            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3999        ;;
4000      m68k)
4001            # FIXME: we need at least 68020 code to build shared libraries, but
4002            # adding the `-m68020' flag to GCC prevents building anything better,
4003            # like `-m68040'.
4004            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4005        ;;
4006      esac
4007      ;;
4008
4009    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4010      # PIC is the default for these OSes.
4011      ;;
4012    mingw* | cygwin* | os2* | pw32* | cegcc*)
4013      # This hack is so that the source file can tell whether it is being
4014      # built for inclusion in a dll (and should export symbols for example).
4015      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4016      # (--disable-auto-import) libraries
4017      m4_if([$1], [GCJ], [],
4018	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4019      ;;
4020    darwin* | rhapsody*)
4021      # PIC is the default on this platform
4022      # Common symbols not allowed in MH_DYLIB files
4023      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4024      ;;
4025    *djgpp*)
4026      # DJGPP does not support shared libraries at all
4027      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4028      ;;
4029    haiku*)
4030      # PIC is the default for Haiku.
4031      # The "-static" flag exists, but is broken.
4032      _LT_TAGVAR(lt_prog_compiler_static, $1)=
4033      ;;
4034    interix[[3-9]]*)
4035      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4036      # Instead, we relocate shared libraries at runtime.
4037      ;;
4038    sysv4*MP*)
4039      if test -d /usr/nec; then
4040	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4041      fi
4042      ;;
4043    hpux*)
4044      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4045      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4046      # sets the default TLS model and affects inlining.
4047      case $host_cpu in
4048      hppa*64*)
4049	;;
4050      *)
4051	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4052	;;
4053      esac
4054      ;;
4055    *qnx* | *nto*)
4056      # QNX uses GNU C++, but need to define -shared option too, otherwise
4057      # it will coredump.
4058      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4059      ;;
4060    *)
4061      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4062      ;;
4063    esac
4064  else
4065    case $host_os in
4066      aix[[4-9]]*)
4067	# All AIX code is PIC.
4068	if test "$host_cpu" = ia64; then
4069	  # AIX 5 now supports IA64 processor
4070	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4071	else
4072	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4073	fi
4074	;;
4075      chorus*)
4076	case $cc_basename in
4077	cxch68*)
4078	  # Green Hills C++ Compiler
4079	  # _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"
4080	  ;;
4081	esac
4082	;;
4083      mingw* | cygwin* | os2* | pw32* | cegcc*)
4084	# This hack is so that the source file can tell whether it is being
4085	# built for inclusion in a dll (and should export symbols for example).
4086	m4_if([$1], [GCJ], [],
4087	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4088	;;
4089      dgux*)
4090	case $cc_basename in
4091	  ec++*)
4092	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4093	    ;;
4094	  ghcx*)
4095	    # Green Hills C++ Compiler
4096	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4097	    ;;
4098	  *)
4099	    ;;
4100	esac
4101	;;
4102      freebsd* | dragonfly*)
4103	# FreeBSD uses GNU C++
4104	;;
4105      hpux9* | hpux10* | hpux11*)
4106	case $cc_basename in
4107	  CC*)
4108	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4109	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4110	    if test "$host_cpu" != ia64; then
4111	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4112	    fi
4113	    ;;
4114	  aCC*)
4115	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4116	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4117	    case $host_cpu in
4118	    hppa*64*|ia64*)
4119	      # +Z the default
4120	      ;;
4121	    *)
4122	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4123	      ;;
4124	    esac
4125	    ;;
4126	  *)
4127	    ;;
4128	esac
4129	;;
4130      interix*)
4131	# This is c89, which is MS Visual C++ (no shared libs)
4132	# Anyone wants to do a port?
4133	;;
4134      irix5* | irix6* | nonstopux*)
4135	case $cc_basename in
4136	  CC*)
4137	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4138	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4139	    # CC pic flag -KPIC is the default.
4140	    ;;
4141	  *)
4142	    ;;
4143	esac
4144	;;
4145      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4146	case $cc_basename in
4147	  KCC*)
4148	    # KAI C++ Compiler
4149	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4150	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4151	    ;;
4152	  ecpc* )
4153	    # old Intel C++ for x86_64 which still supported -KPIC.
4154	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4155	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4156	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4157	    ;;
4158	  icpc* )
4159	    # Intel C++, used to be incompatible with GCC.
4160	    # ICC 10 doesn't accept -KPIC any more.
4161	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4162	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4163	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4164	    ;;
4165	  pgCC* | pgcpp*)
4166	    # Portland Group C++ compiler
4167	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4168	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4169	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4170	    ;;
4171	  cxx*)
4172	    # Compaq C++
4173	    # Make sure the PIC flag is empty.  It appears that all Alpha
4174	    # Linux and Compaq Tru64 Unix objects are PIC.
4175	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4176	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4177	    ;;
4178	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4179	    # IBM XL 8.0, 9.0 on PPC and BlueGene
4180	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4181	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4182	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4183	    ;;
4184	  *)
4185	    case `$CC -V 2>&1 | sed 5q` in
4186	    *Sun\ C*)
4187	      # Sun C++ 5.9
4188	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4189	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4190	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4191	      ;;
4192	    esac
4193	    ;;
4194	esac
4195	;;
4196      lynxos*)
4197	;;
4198      m88k*)
4199	;;
4200      mvs*)
4201	case $cc_basename in
4202	  cxx*)
4203	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4204	    ;;
4205	  *)
4206	    ;;
4207	esac
4208	;;
4209      netbsd* | netbsdelf*-gnu)
4210	;;
4211      *qnx* | *nto*)
4212        # QNX uses GNU C++, but need to define -shared option too, otherwise
4213        # it will coredump.
4214        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4215        ;;
4216      osf3* | osf4* | osf5*)
4217	case $cc_basename in
4218	  KCC*)
4219	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4220	    ;;
4221	  RCC*)
4222	    # Rational C++ 2.4.1
4223	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4224	    ;;
4225	  cxx*)
4226	    # Digital/Compaq C++
4227	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4228	    # Make sure the PIC flag is empty.  It appears that all Alpha
4229	    # Linux and Compaq Tru64 Unix objects are PIC.
4230	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4231	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4232	    ;;
4233	  *)
4234	    ;;
4235	esac
4236	;;
4237      psos*)
4238	;;
4239      solaris*)
4240	case $cc_basename in
4241	  CC* | sunCC*)
4242	    # Sun C++ 4.2, 5.x and Centerline C++
4243	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4244	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4245	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4246	    ;;
4247	  gcx*)
4248	    # Green Hills C++ Compiler
4249	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4250	    ;;
4251	  *)
4252	    ;;
4253	esac
4254	;;
4255      sunos4*)
4256	case $cc_basename in
4257	  CC*)
4258	    # Sun C++ 4.x
4259	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4260	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4261	    ;;
4262	  lcc*)
4263	    # Lucid
4264	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4265	    ;;
4266	  *)
4267	    ;;
4268	esac
4269	;;
4270      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4271	case $cc_basename in
4272	  CC*)
4273	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4274	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4275	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4276	    ;;
4277	esac
4278	;;
4279      tandem*)
4280	case $cc_basename in
4281	  NCC*)
4282	    # NonStop-UX NCC 3.20
4283	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4284	    ;;
4285	  *)
4286	    ;;
4287	esac
4288	;;
4289      vxworks*)
4290	;;
4291      *)
4292	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4293	;;
4294    esac
4295  fi
4296],
4297[
4298  if test "$GCC" = yes; then
4299    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4300    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4301
4302    case $host_os in
4303      aix*)
4304      # All AIX code is PIC.
4305      if test "$host_cpu" = ia64; then
4306	# AIX 5 now supports IA64 processor
4307	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4308      fi
4309      ;;
4310
4311    amigaos*)
4312      case $host_cpu in
4313      powerpc)
4314            # see comment about AmigaOS4 .so support
4315            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4316        ;;
4317      m68k)
4318            # FIXME: we need at least 68020 code to build shared libraries, but
4319            # adding the `-m68020' flag to GCC prevents building anything better,
4320            # like `-m68040'.
4321            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4322        ;;
4323      esac
4324      ;;
4325
4326    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4327      # PIC is the default for these OSes.
4328      ;;
4329
4330    mingw* | cygwin* | pw32* | os2* | cegcc*)
4331      # This hack is so that the source file can tell whether it is being
4332      # built for inclusion in a dll (and should export symbols for example).
4333      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4334      # (--disable-auto-import) libraries
4335      m4_if([$1], [GCJ], [],
4336	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4337      ;;
4338
4339    darwin* | rhapsody*)
4340      # PIC is the default on this platform
4341      # Common symbols not allowed in MH_DYLIB files
4342      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4343      ;;
4344
4345    haiku*)
4346      # PIC is the default for Haiku.
4347      # The "-static" flag exists, but is broken.
4348      _LT_TAGVAR(lt_prog_compiler_static, $1)=
4349      ;;
4350
4351    hpux*)
4352      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4353      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4354      # sets the default TLS model and affects inlining.
4355      case $host_cpu in
4356      hppa*64*)
4357	# +Z the default
4358	;;
4359      *)
4360	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4361	;;
4362      esac
4363      ;;
4364
4365    interix[[3-9]]*)
4366      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4367      # Instead, we relocate shared libraries at runtime.
4368      ;;
4369
4370    msdosdjgpp*)
4371      # Just because we use GCC doesn't mean we suddenly get shared libraries
4372      # on systems that don't support them.
4373      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4374      enable_shared=no
4375      ;;
4376
4377    *nto* | *qnx*)
4378      # QNX uses GNU C++, but need to define -shared option too, otherwise
4379      # it will coredump.
4380      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4381      ;;
4382
4383    sysv4*MP*)
4384      if test -d /usr/nec; then
4385	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4386      fi
4387      ;;
4388
4389    *)
4390      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4391      ;;
4392    esac
4393
4394    case $cc_basename in
4395    nvcc*) # Cuda Compiler Driver 2.2
4396      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4397      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4398        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4399      fi
4400      ;;
4401    esac
4402  else
4403    # PORTME Check for flag to pass linker flags through the system compiler.
4404    case $host_os in
4405    aix*)
4406      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4407      if test "$host_cpu" = ia64; then
4408	# AIX 5 now supports IA64 processor
4409	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4410      else
4411	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4412      fi
4413      ;;
4414
4415    mingw* | cygwin* | pw32* | os2* | cegcc*)
4416      # This hack is so that the source file can tell whether it is being
4417      # built for inclusion in a dll (and should export symbols for example).
4418      m4_if([$1], [GCJ], [],
4419	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4420      ;;
4421
4422    hpux9* | hpux10* | hpux11*)
4423      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4424      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4425      # not for PA HP-UX.
4426      case $host_cpu in
4427      hppa*64*|ia64*)
4428	# +Z the default
4429	;;
4430      *)
4431	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4432	;;
4433      esac
4434      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4435      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4436      ;;
4437
4438    irix5* | irix6* | nonstopux*)
4439      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4440      # PIC (with -KPIC) is the default.
4441      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4442      ;;
4443
4444    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4445      case $cc_basename in
4446      # old Intel for x86_64 which still supported -KPIC.
4447      ecc*)
4448	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4449	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4450	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4451        ;;
4452      # icc used to be incompatible with GCC.
4453      # ICC 10 doesn't accept -KPIC any more.
4454      icc* | ifort*)
4455	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4456	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4457	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4458        ;;
4459      # Lahey Fortran 8.1.
4460      lf95*)
4461	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4462	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4463	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4464	;;
4465      nagfor*)
4466	# NAG Fortran compiler
4467	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4468	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4469	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4470	;;
4471      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4472        # Portland Group compilers (*not* the Pentium gcc compiler,
4473	# which looks to be a dead project)
4474	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4475	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4476	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4477        ;;
4478      ccc*)
4479        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4480        # All Alpha code is PIC.
4481        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4482        ;;
4483      xl* | bgxl* | bgf* | mpixl*)
4484	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4485	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4486	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4487	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4488	;;
4489      *)
4490	case `$CC -V 2>&1 | sed 5q` in
4491	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4492	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
4493	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4494	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4495	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4496	  ;;
4497	*Sun\ F* | *Sun*Fortran*)
4498	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4499	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4500	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4501	  ;;
4502	*Sun\ C*)
4503	  # Sun C 5.9
4504	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4505	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4506	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4507	  ;;
4508        *Intel*\ [[CF]]*Compiler*)
4509	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4510	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4511	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4512	  ;;
4513	*Portland\ Group*)
4514	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4515	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4516	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4517	  ;;
4518	esac
4519	;;
4520      esac
4521      ;;
4522
4523    newsos6)
4524      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4525      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4526      ;;
4527
4528    *nto* | *qnx*)
4529      # QNX uses GNU C++, but need to define -shared option too, otherwise
4530      # it will coredump.
4531      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4532      ;;
4533
4534    osf3* | osf4* | osf5*)
4535      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4536      # All OSF/1 code is PIC.
4537      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4538      ;;
4539
4540    rdos*)
4541      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4542      ;;
4543
4544    solaris*)
4545      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4546      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4547      case $cc_basename in
4548      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4549	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4550      *)
4551	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4552      esac
4553      ;;
4554
4555    sunos4*)
4556      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4557      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4558      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4559      ;;
4560
4561    sysv4 | sysv4.2uw2* | sysv4.3*)
4562      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4563      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4564      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4565      ;;
4566
4567    sysv4*MP*)
4568      if test -d /usr/nec ;then
4569	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4570	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4571      fi
4572      ;;
4573
4574    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4575      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4576      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4577      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4578      ;;
4579
4580    unicos*)
4581      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4582      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4583      ;;
4584
4585    uts4*)
4586      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4587      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4588      ;;
4589
4590    *)
4591      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4592      ;;
4593    esac
4594  fi
4595])
4596case $host_os in
4597  # For platforms which do not support PIC, -DPIC is meaningless:
4598  *djgpp*)
4599    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4600    ;;
4601  *)
4602    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4603    ;;
4604esac
4605
4606AC_CACHE_CHECK([for $compiler option to produce PIC],
4607  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4608  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4609_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4610
4611#
4612# Check to make sure the PIC flag actually works.
4613#
4614if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4615  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4616    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4617    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4618    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4619     "" | " "*) ;;
4620     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4621     esac],
4622    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4623     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4624fi
4625_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4626	[Additional compiler flags for building library objects])
4627
4628_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4629	[How to pass a linker flag through the compiler])
4630#
4631# Check to make sure the static flag actually works.
4632#
4633wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4634_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4635  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4636  $lt_tmp_static_flag,
4637  [],
4638  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4639_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4640	[Compiler flag to prevent dynamic linking])
4641])# _LT_COMPILER_PIC
4642
4643
4644# _LT_LINKER_SHLIBS([TAGNAME])
4645# ----------------------------
4646# See if the linker supports building shared libraries.
4647m4_defun([_LT_LINKER_SHLIBS],
4648[AC_REQUIRE([LT_PATH_LD])dnl
4649AC_REQUIRE([LT_PATH_NM])dnl
4650m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4651m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4652m4_require([_LT_DECL_EGREP])dnl
4653m4_require([_LT_DECL_SED])dnl
4654m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4655m4_require([_LT_TAG_COMPILER])dnl
4656AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4657m4_if([$1], [CXX], [
4658  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4659  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4660  case $host_os in
4661  aix[[4-9]]*)
4662    # If we're using GNU nm, then we don't want the "-C" option.
4663    # -C means demangle to AIX nm, but means don't demangle with GNU nm
4664    # Also, AIX nm treats weak defined symbols like other global defined
4665    # symbols, whereas GNU nm marks them as "W".
4666    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4667      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4668    else
4669      _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'
4670    fi
4671    ;;
4672  pw32*)
4673    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4674    ;;
4675  cygwin* | mingw* | cegcc*)
4676    case $cc_basename in
4677    cl*)
4678      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4679      ;;
4680    *)
4681      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4682      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4683      ;;
4684    esac
4685    ;;
4686  linux* | k*bsd*-gnu | gnu*)
4687    _LT_TAGVAR(link_all_deplibs, $1)=no
4688    ;;
4689  *)
4690    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4691    ;;
4692  esac
4693], [
4694  runpath_var=
4695  _LT_TAGVAR(allow_undefined_flag, $1)=
4696  _LT_TAGVAR(always_export_symbols, $1)=no
4697  _LT_TAGVAR(archive_cmds, $1)=
4698  _LT_TAGVAR(archive_expsym_cmds, $1)=
4699  _LT_TAGVAR(compiler_needs_object, $1)=no
4700  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4701  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4702  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4703  _LT_TAGVAR(hardcode_automatic, $1)=no
4704  _LT_TAGVAR(hardcode_direct, $1)=no
4705  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4706  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4707  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4708  _LT_TAGVAR(hardcode_minus_L, $1)=no
4709  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4710  _LT_TAGVAR(inherit_rpath, $1)=no
4711  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4712  _LT_TAGVAR(module_cmds, $1)=
4713  _LT_TAGVAR(module_expsym_cmds, $1)=
4714  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4715  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4716  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4717  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4718  # include_expsyms should be a list of space-separated symbols to be *always*
4719  # included in the symbol list
4720  _LT_TAGVAR(include_expsyms, $1)=
4721  # exclude_expsyms can be an extended regexp of symbols to exclude
4722  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4723  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4724  # as well as any symbol that contains `d'.
4725  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4726  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4727  # platforms (ab)use it in PIC code, but their linkers get confused if
4728  # the symbol is explicitly referenced.  Since portable code cannot
4729  # rely on this symbol name, it's probably fine to never include it in
4730  # preloaded symbol tables.
4731  # Exclude shared library initialization/finalization symbols.
4732dnl Note also adjust exclude_expsyms for C++ above.
4733  extract_expsyms_cmds=
4734
4735  case $host_os in
4736  cygwin* | mingw* | pw32* | cegcc*)
4737    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4738    # When not using gcc, we currently assume that we are using
4739    # Microsoft Visual C++.
4740    if test "$GCC" != yes; then
4741      with_gnu_ld=no
4742    fi
4743    ;;
4744  interix*)
4745    # we just hope/assume this is gcc and not c89 (= MSVC++)
4746    with_gnu_ld=yes
4747    ;;
4748  openbsd*)
4749    with_gnu_ld=no
4750    ;;
4751  linux* | k*bsd*-gnu | gnu*)
4752    _LT_TAGVAR(link_all_deplibs, $1)=no
4753    ;;
4754  esac
4755
4756  _LT_TAGVAR(ld_shlibs, $1)=yes
4757
4758  # On some targets, GNU ld is compatible enough with the native linker
4759  # that we're better off using the native interface for both.
4760  lt_use_gnu_ld_interface=no
4761  if test "$with_gnu_ld" = yes; then
4762    case $host_os in
4763      aix*)
4764	# The AIX port of GNU ld has always aspired to compatibility
4765	# with the native linker.  However, as the warning in the GNU ld
4766	# block says, versions before 2.19.5* couldn't really create working
4767	# shared libraries, regardless of the interface used.
4768	case `$LD -v 2>&1` in
4769	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4770	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4771	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4772	  *)
4773	    lt_use_gnu_ld_interface=yes
4774	    ;;
4775	esac
4776	;;
4777      *)
4778	lt_use_gnu_ld_interface=yes
4779	;;
4780    esac
4781  fi
4782
4783  if test "$lt_use_gnu_ld_interface" = yes; then
4784    # If archive_cmds runs LD, not CC, wlarc should be empty
4785    wlarc='${wl}'
4786
4787    # Set some defaults for GNU ld with shared library support. These
4788    # are reset later if shared libraries are not supported. Putting them
4789    # here allows them to be overridden if necessary.
4790    runpath_var=LD_RUN_PATH
4791    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4792    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4793    # ancient GNU ld didn't support --whole-archive et. al.
4794    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4795      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4796    else
4797      _LT_TAGVAR(whole_archive_flag_spec, $1)=
4798    fi
4799    supports_anon_versioning=no
4800    case `$LD -v 2>&1` in
4801      *GNU\ gold*) supports_anon_versioning=yes ;;
4802      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4803      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4804      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4805      *\ 2.11.*) ;; # other 2.11 versions
4806      *) supports_anon_versioning=yes ;;
4807    esac
4808
4809    # See if GNU ld supports shared libraries.
4810    case $host_os in
4811    aix[[3-9]]*)
4812      # On AIX/PPC, the GNU linker is very broken
4813      if test "$host_cpu" != ia64; then
4814	_LT_TAGVAR(ld_shlibs, $1)=no
4815	cat <<_LT_EOF 1>&2
4816
4817*** Warning: the GNU linker, at least up to release 2.19, is reported
4818*** to be unable to reliably create shared libraries on AIX.
4819*** Therefore, libtool is disabling shared libraries support.  If you
4820*** really care for shared libraries, you may want to install binutils
4821*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4822*** You will then need to restart the configuration process.
4823
4824_LT_EOF
4825      fi
4826      ;;
4827
4828    amigaos*)
4829      case $host_cpu in
4830      powerpc)
4831            # see comment about AmigaOS4 .so support
4832            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4833            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4834        ;;
4835      m68k)
4836            _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)'
4837            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4838            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4839        ;;
4840      esac
4841      ;;
4842
4843    beos*)
4844      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4845	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4846	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4847	# support --undefined.  This deserves some investigation.  FIXME
4848	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4849      else
4850	_LT_TAGVAR(ld_shlibs, $1)=no
4851      fi
4852      ;;
4853
4854    cygwin* | mingw* | pw32* | cegcc*)
4855      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4856      # as there is no search path for DLLs.
4857      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4858      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4859      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4860      _LT_TAGVAR(always_export_symbols, $1)=no
4861      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4862      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4863      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4864
4865      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4866        _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'
4867	# If the export-symbols file already is a .def file (1st line
4868	# is EXPORTS), use it as is; otherwise, prepend...
4869	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4870	  cp $export_symbols $output_objdir/$soname.def;
4871	else
4872	  echo EXPORTS > $output_objdir/$soname.def;
4873	  cat $export_symbols >> $output_objdir/$soname.def;
4874	fi~
4875	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4876      else
4877	_LT_TAGVAR(ld_shlibs, $1)=no
4878      fi
4879      ;;
4880
4881    haiku*)
4882      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4883      _LT_TAGVAR(link_all_deplibs, $1)=yes
4884      ;;
4885
4886    interix[[3-9]]*)
4887      _LT_TAGVAR(hardcode_direct, $1)=no
4888      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4889      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4890      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4891      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4892      # Instead, shared libraries are loaded at an image base (0x10000000 by
4893      # default) and relocated if they conflict, which is a slow very memory
4894      # consuming and fragmenting process.  To avoid this, we pick a random,
4895      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4896      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4897      _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'
4898      _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'
4899      ;;
4900
4901    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4902      tmp_diet=no
4903      if test "$host_os" = linux-dietlibc; then
4904	case $cc_basename in
4905	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
4906	esac
4907      fi
4908      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4909	 && test "$tmp_diet" = no
4910      then
4911	tmp_addflag=' $pic_flag'
4912	tmp_sharedflag='-shared'
4913	case $cc_basename,$host_cpu in
4914        pgcc*)				# Portland Group C compiler
4915	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4916	  tmp_addflag=' $pic_flag'
4917	  ;;
4918	pgf77* | pgf90* | pgf95* | pgfortran*)
4919					# Portland Group f77 and f90 compilers
4920	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4921	  tmp_addflag=' $pic_flag -Mnomain' ;;
4922	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
4923	  tmp_addflag=' -i_dynamic' ;;
4924	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
4925	  tmp_addflag=' -i_dynamic -nofor_main' ;;
4926	ifc* | ifort*)			# Intel Fortran compiler
4927	  tmp_addflag=' -nofor_main' ;;
4928	lf95*)				# Lahey Fortran 8.1
4929	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4930	  tmp_sharedflag='--shared' ;;
4931	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4932	  tmp_sharedflag='-qmkshrobj'
4933	  tmp_addflag= ;;
4934	nvcc*)	# Cuda Compiler Driver 2.2
4935	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4936	  _LT_TAGVAR(compiler_needs_object, $1)=yes
4937	  ;;
4938	esac
4939	case `$CC -V 2>&1 | sed 5q` in
4940	*Sun\ C*)			# Sun C 5.9
4941	  _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4942	  _LT_TAGVAR(compiler_needs_object, $1)=yes
4943	  tmp_sharedflag='-G' ;;
4944	*Sun\ F*)			# Sun Fortran 8.3
4945	  tmp_sharedflag='-G' ;;
4946	esac
4947	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4948
4949        if test "x$supports_anon_versioning" = xyes; then
4950          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4951	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4952	    echo "local: *; };" >> $output_objdir/$libname.ver~
4953	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4954        fi
4955
4956	case $cc_basename in
4957	xlf* | bgf* | bgxlf* | mpixlf*)
4958	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4959	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4960	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4961	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4962	  if test "x$supports_anon_versioning" = xyes; then
4963	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4964	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4965	      echo "local: *; };" >> $output_objdir/$libname.ver~
4966	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4967	  fi
4968	  ;;
4969	esac
4970      else
4971        _LT_TAGVAR(ld_shlibs, $1)=no
4972      fi
4973      ;;
4974
4975    netbsd* | netbsdelf*-gnu)
4976      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4977	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4978	wlarc=
4979      else
4980	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4981	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4982      fi
4983      ;;
4984
4985    solaris*)
4986      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4987	_LT_TAGVAR(ld_shlibs, $1)=no
4988	cat <<_LT_EOF 1>&2
4989
4990*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4991*** create shared libraries on Solaris systems.  Therefore, libtool
4992*** is disabling shared libraries support.  We urge you to upgrade GNU
4993*** binutils to release 2.9.1 or newer.  Another option is to modify
4994*** your PATH or compiler configuration so that the native linker is
4995*** used, and then restart.
4996
4997_LT_EOF
4998      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4999	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5000	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5001      else
5002	_LT_TAGVAR(ld_shlibs, $1)=no
5003      fi
5004      ;;
5005
5006    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5007      case `$LD -v 2>&1` in
5008        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5009	_LT_TAGVAR(ld_shlibs, $1)=no
5010	cat <<_LT_EOF 1>&2
5011
5012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5013*** reliably create shared libraries on SCO systems.  Therefore, libtool
5014*** is disabling shared libraries support.  We urge you to upgrade GNU
5015*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
5016*** your PATH or compiler configuration so that the native linker is
5017*** used, and then restart.
5018
5019_LT_EOF
5020	;;
5021	*)
5022	  # For security reasons, it is highly recommended that you always
5023	  # use absolute paths for naming shared libraries, and exclude the
5024	  # DT_RUNPATH tag from executables and libraries.  But doing so
5025	  # requires that you compile everything twice, which is a pain.
5026	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5027	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5028	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5029	    _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'
5030	  else
5031	    _LT_TAGVAR(ld_shlibs, $1)=no
5032	  fi
5033	;;
5034      esac
5035      ;;
5036
5037    sunos4*)
5038      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5039      wlarc=
5040      _LT_TAGVAR(hardcode_direct, $1)=yes
5041      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5042      ;;
5043
5044    *)
5045      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5046	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5047	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5048      else
5049	_LT_TAGVAR(ld_shlibs, $1)=no
5050      fi
5051      ;;
5052    esac
5053
5054    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5055      runpath_var=
5056      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5057      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5058      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5059    fi
5060  else
5061    # PORTME fill in a description of your system's linker (not GNU ld)
5062    case $host_os in
5063    aix3*)
5064      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5065      _LT_TAGVAR(always_export_symbols, $1)=yes
5066      _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'
5067      # Note: this linker hardcodes the directories in LIBPATH if there
5068      # are no directories specified by -L.
5069      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5070      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5071	# Neither direct hardcoding nor static linking is supported with a
5072	# broken collect2.
5073	_LT_TAGVAR(hardcode_direct, $1)=unsupported
5074      fi
5075      ;;
5076
5077    aix[[4-9]]*)
5078      if test "$host_cpu" = ia64; then
5079	# On IA64, the linker does run time linking by default, so we don't
5080	# have to do anything special.
5081	aix_use_runtimelinking=no
5082	exp_sym_flag='-Bexport'
5083	no_entry_flag=""
5084      else
5085	# If we're using GNU nm, then we don't want the "-C" option.
5086	# -C means demangle to AIX nm, but means don't demangle with GNU nm
5087	# Also, AIX nm treats weak defined symbols like other global
5088	# defined symbols, whereas GNU nm marks them as "W".
5089	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5090	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5091	else
5092	  _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'
5093	fi
5094	aix_use_runtimelinking=no
5095
5096	# Test if we are trying to use run time linking or normal
5097	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5098	# need to do runtime linking.
5099	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5100	  for ld_flag in $LDFLAGS; do
5101	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5102	    aix_use_runtimelinking=yes
5103	    break
5104	  fi
5105	  done
5106	  ;;
5107	esac
5108
5109	exp_sym_flag='-bexport'
5110	no_entry_flag='-bnoentry'
5111      fi
5112
5113      # When large executables or shared objects are built, AIX ld can
5114      # have problems creating the table of contents.  If linking a library
5115      # or program results in "error TOC overflow" add -mminimal-toc to
5116      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5117      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5118
5119      _LT_TAGVAR(archive_cmds, $1)=''
5120      _LT_TAGVAR(hardcode_direct, $1)=yes
5121      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5122      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5123      _LT_TAGVAR(link_all_deplibs, $1)=yes
5124      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5125
5126      if test "$GCC" = yes; then
5127	case $host_os in aix4.[[012]]|aix4.[[012]].*)
5128	# We only want to do this on AIX 4.2 and lower, the check
5129	# below for broken collect2 doesn't work under 4.3+
5130	  collect2name=`${CC} -print-prog-name=collect2`
5131	  if test -f "$collect2name" &&
5132	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5133	  then
5134	  # We have reworked collect2
5135	  :
5136	  else
5137	  # We have old collect2
5138	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
5139	  # It fails to find uninstalled libraries when the uninstalled
5140	  # path is not listed in the libpath.  Setting hardcode_minus_L
5141	  # to unsupported forces relinking
5142	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5143	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5144	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5145	  fi
5146	  ;;
5147	esac
5148	shared_flag='-shared'
5149	if test "$aix_use_runtimelinking" = yes; then
5150	  shared_flag="$shared_flag "'${wl}-G'
5151	fi
5152	_LT_TAGVAR(link_all_deplibs, $1)=no
5153      else
5154	# not using gcc
5155	if test "$host_cpu" = ia64; then
5156	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5157	# chokes on -Wl,-G. The following line is correct:
5158	  shared_flag='-G'
5159	else
5160	  if test "$aix_use_runtimelinking" = yes; then
5161	    shared_flag='${wl}-G'
5162	  else
5163	    shared_flag='${wl}-bM:SRE'
5164	  fi
5165	fi
5166      fi
5167
5168      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5169      # It seems that -bexpall does not export symbols beginning with
5170      # underscore (_), so it is better to generate a list of symbols to export.
5171      _LT_TAGVAR(always_export_symbols, $1)=yes
5172      if test "$aix_use_runtimelinking" = yes; then
5173	# Warning - without using the other runtime loading flags (-brtl),
5174	# -berok will link without error, but may produce a broken library.
5175	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5176        # Determine the default libpath from the value encoded in an
5177        # empty executable.
5178        _LT_SYS_MODULE_PATH_AIX([$1])
5179        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5180        _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5181      else
5182	if test "$host_cpu" = ia64; then
5183	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5184	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5185	  _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"
5186	else
5187	 # Determine the default libpath from the value encoded in an
5188	 # empty executable.
5189	 _LT_SYS_MODULE_PATH_AIX([$1])
5190	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5191	  # Warning - without using the other run time loading flags,
5192	  # -berok will link without error, but may produce a broken library.
5193	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5194	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5195	  if test "$with_gnu_ld" = yes; then
5196	    # We only use this code for GNU lds that support --whole-archive.
5197	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5198	  else
5199	    # Exported symbols can be pulled into shared objects from archives
5200	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5201	  fi
5202	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5203	  # This is similar to how AIX traditionally builds its shared libraries.
5204	  _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'
5205	fi
5206      fi
5207      ;;
5208
5209    amigaos*)
5210      case $host_cpu in
5211      powerpc)
5212            # see comment about AmigaOS4 .so support
5213            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5214            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5215        ;;
5216      m68k)
5217            _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)'
5218            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5219            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5220        ;;
5221      esac
5222      ;;
5223
5224    bsdi[[45]]*)
5225      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5226      ;;
5227
5228    cygwin* | mingw* | pw32* | cegcc*)
5229      # When not using gcc, we currently assume that we are using
5230      # Microsoft Visual C++.
5231      # hardcode_libdir_flag_spec is actually meaningless, as there is
5232      # no search path for DLLs.
5233      case $cc_basename in
5234      cl*)
5235	# Native MSVC
5236	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5237	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5238	_LT_TAGVAR(always_export_symbols, $1)=yes
5239	_LT_TAGVAR(file_list_spec, $1)='@'
5240	# Tell ltmain to make .lib files, not .a files.
5241	libext=lib
5242	# Tell ltmain to make .dll files, not .so files.
5243	shrext_cmds=".dll"
5244	# FIXME: Setting linknames here is a bad hack.
5245	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5246	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5247	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5248	  else
5249	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5250	  fi~
5251	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5252	  linknames='
5253	# The linker will not automatically build a static lib if we build a DLL.
5254	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5255	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5256	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5257	_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'
5258	# Don't use ranlib
5259	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5260	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5261	  lt_tool_outputfile="@TOOL_OUTPUT@"~
5262	  case $lt_outputfile in
5263	    *.exe|*.EXE) ;;
5264	    *)
5265	      lt_outputfile="$lt_outputfile.exe"
5266	      lt_tool_outputfile="$lt_tool_outputfile.exe"
5267	      ;;
5268	  esac~
5269	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5270	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5271	    $RM "$lt_outputfile.manifest";
5272	  fi'
5273	;;
5274      *)
5275	# Assume MSVC wrapper
5276	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5277	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5278	# Tell ltmain to make .lib files, not .a files.
5279	libext=lib
5280	# Tell ltmain to make .dll files, not .so files.
5281	shrext_cmds=".dll"
5282	# FIXME: Setting linknames here is a bad hack.
5283	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5284	# The linker will automatically build a .lib file if we build a DLL.
5285	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5286	# FIXME: Should let the user specify the lib program.
5287	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5288	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5289	;;
5290      esac
5291      ;;
5292
5293    darwin* | rhapsody*)
5294      _LT_DARWIN_LINKER_FEATURES($1)
5295      ;;
5296
5297    dgux*)
5298      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5299      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5300      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5301      ;;
5302
5303    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5304    # support.  Future versions do this automatically, but an explicit c++rt0.o
5305    # does not break anything, and helps significantly (at the cost of a little
5306    # extra space).
5307    freebsd2.2*)
5308      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5309      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5310      _LT_TAGVAR(hardcode_direct, $1)=yes
5311      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5312      ;;
5313
5314    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5315    freebsd2.*)
5316      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5317      _LT_TAGVAR(hardcode_direct, $1)=yes
5318      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5319      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5320      ;;
5321
5322    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5323    freebsd* | dragonfly*)
5324      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5325      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5326      _LT_TAGVAR(hardcode_direct, $1)=yes
5327      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5328      ;;
5329
5330    hpux9*)
5331      if test "$GCC" = yes; then
5332	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5333      else
5334	_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'
5335      fi
5336      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5337      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5338      _LT_TAGVAR(hardcode_direct, $1)=yes
5339
5340      # hardcode_minus_L: Not really in the search PATH,
5341      # but as the default location of the library.
5342      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5343      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5344      ;;
5345
5346    hpux10*)
5347      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5348	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5349      else
5350	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5351      fi
5352      if test "$with_gnu_ld" = no; then
5353	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5354	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5355	_LT_TAGVAR(hardcode_direct, $1)=yes
5356	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5357	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5358	# hardcode_minus_L: Not really in the search PATH,
5359	# but as the default location of the library.
5360	_LT_TAGVAR(hardcode_minus_L, $1)=yes
5361      fi
5362      ;;
5363
5364    hpux11*)
5365      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5366	case $host_cpu in
5367	hppa*64*)
5368	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5369	  ;;
5370	ia64*)
5371	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5372	  ;;
5373	*)
5374	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5375	  ;;
5376	esac
5377      else
5378	case $host_cpu in
5379	hppa*64*)
5380	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5381	  ;;
5382	ia64*)
5383	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5384	  ;;
5385	*)
5386	m4_if($1, [], [
5387	  # Older versions of the 11.00 compiler do not understand -b yet
5388	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5389	  _LT_LINKER_OPTION([if $CC understands -b],
5390	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5391	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5392	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5393	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5394	  ;;
5395	esac
5396      fi
5397      if test "$with_gnu_ld" = no; then
5398	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5399	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5400
5401	case $host_cpu in
5402	hppa*64*|ia64*)
5403	  _LT_TAGVAR(hardcode_direct, $1)=no
5404	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5405	  ;;
5406	*)
5407	  _LT_TAGVAR(hardcode_direct, $1)=yes
5408	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5409	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5410
5411	  # hardcode_minus_L: Not really in the search PATH,
5412	  # but as the default location of the library.
5413	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5414	  ;;
5415	esac
5416      fi
5417      ;;
5418
5419    irix5* | irix6* | nonstopux*)
5420      if test "$GCC" = yes; then
5421	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5422	# Try to use the -exported_symbol ld option, if it does not
5423	# work, assume that -exports_file does not work either and
5424	# implicitly export all symbols.
5425	# This should be the same for all languages, so no per-tag cache variable.
5426	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5427	  [lt_cv_irix_exported_symbol],
5428	  [save_LDFLAGS="$LDFLAGS"
5429	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5430	   AC_LINK_IFELSE(
5431	     [AC_LANG_SOURCE(
5432	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5433			      [C++], [[int foo (void) { return 0; }]],
5434			      [Fortran 77], [[
5435      subroutine foo
5436      end]],
5437			      [Fortran], [[
5438      subroutine foo
5439      end]])])],
5440	      [lt_cv_irix_exported_symbol=yes],
5441	      [lt_cv_irix_exported_symbol=no])
5442           LDFLAGS="$save_LDFLAGS"])
5443	if test "$lt_cv_irix_exported_symbol" = yes; then
5444          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5445	fi
5446      else
5447	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5448	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5449      fi
5450      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5451      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5452      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5453      _LT_TAGVAR(inherit_rpath, $1)=yes
5454      _LT_TAGVAR(link_all_deplibs, $1)=yes
5455      ;;
5456
5457    netbsd* | netbsdelf*-gnu)
5458      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5459	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5460      else
5461	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5462      fi
5463      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5464      _LT_TAGVAR(hardcode_direct, $1)=yes
5465      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5466      ;;
5467
5468    newsos6)
5469      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5470      _LT_TAGVAR(hardcode_direct, $1)=yes
5471      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5472      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5473      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5474      ;;
5475
5476    *nto* | *qnx*)
5477      ;;
5478
5479    openbsd*)
5480      if test -f /usr/libexec/ld.so; then
5481	_LT_TAGVAR(hardcode_direct, $1)=yes
5482	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5483	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5484	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5485	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5486	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5487	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5488	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5489	else
5490	  case $host_os in
5491	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5492	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5493	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5494	     ;;
5495	   *)
5496	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5497	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5498	     ;;
5499	  esac
5500	fi
5501      else
5502	_LT_TAGVAR(ld_shlibs, $1)=no
5503      fi
5504      ;;
5505
5506    os2*)
5507      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5508      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5509      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5510      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5511      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5512      ;;
5513
5514    osf3*)
5515      if test "$GCC" = yes; then
5516	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5517	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5518      else
5519	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5520	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5521      fi
5522      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5523      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5524      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5525      ;;
5526
5527    osf4* | osf5*)	# as osf3* with the addition of -msym flag
5528      if test "$GCC" = yes; then
5529	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5530	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5531	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5532      else
5533	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5534	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5535	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5536	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5537
5538	# Both c and cxx compiler support -rpath directly
5539	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5540      fi
5541      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5542      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5543      ;;
5544
5545    solaris*)
5546      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5547      if test "$GCC" = yes; then
5548	wlarc='${wl}'
5549	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5550	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5551	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5552      else
5553	case `$CC -V 2>&1` in
5554	*"Compilers 5.0"*)
5555	  wlarc=''
5556	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5557	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5558	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5559	  ;;
5560	*)
5561	  wlarc='${wl}'
5562	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5563	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5564	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5565	  ;;
5566	esac
5567      fi
5568      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5569      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5570      case $host_os in
5571      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5572      *)
5573	# The compiler driver will combine and reorder linker options,
5574	# but understands `-z linker_flag'.  GCC discards it without `$wl',
5575	# but is careful enough not to reorder.
5576	# Supported since Solaris 2.6 (maybe 2.5.1?)
5577	if test "$GCC" = yes; then
5578	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5579	else
5580	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5581	fi
5582	;;
5583      esac
5584      _LT_TAGVAR(link_all_deplibs, $1)=yes
5585      ;;
5586
5587    sunos4*)
5588      if test "x$host_vendor" = xsequent; then
5589	# Use $CC to link under sequent, because it throws in some extra .o
5590	# files that make .init and .fini sections work.
5591	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5592      else
5593	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5594      fi
5595      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5596      _LT_TAGVAR(hardcode_direct, $1)=yes
5597      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5598      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5599      ;;
5600
5601    sysv4)
5602      case $host_vendor in
5603	sni)
5604	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5605	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5606	;;
5607	siemens)
5608	  ## LD is ld it makes a PLAMLIB
5609	  ## CC just makes a GrossModule.
5610	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5611	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5612	  _LT_TAGVAR(hardcode_direct, $1)=no
5613        ;;
5614	motorola)
5615	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5616	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5617	;;
5618      esac
5619      runpath_var='LD_RUN_PATH'
5620      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5621      ;;
5622
5623    sysv4.3*)
5624      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5625      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5626      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5627      ;;
5628
5629    sysv4*MP*)
5630      if test -d /usr/nec; then
5631	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5632	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5633	runpath_var=LD_RUN_PATH
5634	hardcode_runpath_var=yes
5635	_LT_TAGVAR(ld_shlibs, $1)=yes
5636      fi
5637      ;;
5638
5639    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5640      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5641      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5642      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5643      runpath_var='LD_RUN_PATH'
5644
5645      if test "$GCC" = yes; then
5646	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5647	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5648      else
5649	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5650	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5651      fi
5652      ;;
5653
5654    sysv5* | sco3.2v5* | sco5v6*)
5655      # Note: We can NOT use -z defs as we might desire, because we do not
5656      # link with -lc, and that would cause any symbols used from libc to
5657      # always be unresolved, which means just about no library would
5658      # ever link correctly.  If we're not using GNU ld we use -z text
5659      # though, which does catch some bad symbols but isn't as heavy-handed
5660      # as -z defs.
5661      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5662      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5663      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5664      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5665      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5666      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5667      _LT_TAGVAR(link_all_deplibs, $1)=yes
5668      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5669      runpath_var='LD_RUN_PATH'
5670
5671      if test "$GCC" = yes; then
5672	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5673	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5674      else
5675	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5676	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5677      fi
5678      ;;
5679
5680    uts4*)
5681      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5682      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5683      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5684      ;;
5685
5686    *)
5687      _LT_TAGVAR(ld_shlibs, $1)=no
5688      ;;
5689    esac
5690
5691    if test x$host_vendor = xsni; then
5692      case $host in
5693      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5694	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5695	;;
5696      esac
5697    fi
5698  fi
5699])
5700AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5701test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5702
5703_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5704
5705_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5706_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5707_LT_DECL([], [extract_expsyms_cmds], [2],
5708    [The commands to extract the exported symbol list from a shared archive])
5709
5710#
5711# Do we need to explicitly link libc?
5712#
5713case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5714x|xyes)
5715  # Assume -lc should be added
5716  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5717
5718  if test "$enable_shared" = yes && test "$GCC" = yes; then
5719    case $_LT_TAGVAR(archive_cmds, $1) in
5720    *'~'*)
5721      # FIXME: we may have to deal with multi-command sequences.
5722      ;;
5723    '$CC '*)
5724      # Test whether the compiler implicitly links with -lc since on some
5725      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5726      # to ld, don't add -lc before -lgcc.
5727      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5728	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5729	[$RM conftest*
5730	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5731
5732	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5733	  soname=conftest
5734	  lib=conftest
5735	  libobjs=conftest.$ac_objext
5736	  deplibs=
5737	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5738	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5739	  compiler_flags=-v
5740	  linker_flags=-v
5741	  verstring=
5742	  output_objdir=.
5743	  libname=conftest
5744	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5745	  _LT_TAGVAR(allow_undefined_flag, $1)=
5746	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5747	  then
5748	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5749	  else
5750	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5751	  fi
5752	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5753	else
5754	  cat conftest.err 1>&5
5755	fi
5756	$RM conftest*
5757	])
5758      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5759      ;;
5760    esac
5761  fi
5762  ;;
5763esac
5764
5765_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5766    [Whether or not to add -lc for building shared libraries])
5767_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5768    [enable_shared_with_static_runtimes], [0],
5769    [Whether or not to disallow shared libs when runtime libs are static])
5770_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5771    [Compiler flag to allow reflexive dlopens])
5772_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5773    [Compiler flag to generate shared objects directly from archives])
5774_LT_TAGDECL([], [compiler_needs_object], [1],
5775    [Whether the compiler copes with passing no objects directly])
5776_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5777    [Create an old-style archive from a shared archive])
5778_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5779    [Create a temporary old-style archive to link instead of a shared archive])
5780_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5781_LT_TAGDECL([], [archive_expsym_cmds], [2])
5782_LT_TAGDECL([], [module_cmds], [2],
5783    [Commands used to build a loadable module if different from building
5784    a shared archive.])
5785_LT_TAGDECL([], [module_expsym_cmds], [2])
5786_LT_TAGDECL([], [with_gnu_ld], [1],
5787    [Whether we are building with GNU ld or not])
5788_LT_TAGDECL([], [allow_undefined_flag], [1],
5789    [Flag that allows shared libraries with undefined symbols to be built])
5790_LT_TAGDECL([], [no_undefined_flag], [1],
5791    [Flag that enforces no undefined symbols])
5792_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5793    [Flag to hardcode $libdir into a binary during linking.
5794    This must work even if $libdir does not exist])
5795_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5796    [Whether we need a single "-rpath" flag with a separated argument])
5797_LT_TAGDECL([], [hardcode_direct], [0],
5798    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5799    DIR into the resulting binary])
5800_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5801    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5802    DIR into the resulting binary and the resulting library dependency is
5803    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5804    library is relocated])
5805_LT_TAGDECL([], [hardcode_minus_L], [0],
5806    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5807    into the resulting binary])
5808_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5809    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5810    into the resulting binary])
5811_LT_TAGDECL([], [hardcode_automatic], [0],
5812    [Set to "yes" if building a shared library automatically hardcodes DIR
5813    into the library and all subsequent libraries and executables linked
5814    against it])
5815_LT_TAGDECL([], [inherit_rpath], [0],
5816    [Set to yes if linker adds runtime paths of dependent libraries
5817    to runtime path list])
5818_LT_TAGDECL([], [link_all_deplibs], [0],
5819    [Whether libtool must link a program against all its dependency libraries])
5820_LT_TAGDECL([], [always_export_symbols], [0],
5821    [Set to "yes" if exported symbols are required])
5822_LT_TAGDECL([], [export_symbols_cmds], [2],
5823    [The commands to list exported symbols])
5824_LT_TAGDECL([], [exclude_expsyms], [1],
5825    [Symbols that should not be listed in the preloaded symbols])
5826_LT_TAGDECL([], [include_expsyms], [1],
5827    [Symbols that must always be exported])
5828_LT_TAGDECL([], [prelink_cmds], [2],
5829    [Commands necessary for linking programs (against libraries) with templates])
5830_LT_TAGDECL([], [postlink_cmds], [2],
5831    [Commands necessary for finishing linking programs])
5832_LT_TAGDECL([], [file_list_spec], [1],
5833    [Specify filename containing input files])
5834dnl FIXME: Not yet implemented
5835dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5836dnl    [Compiler flag to generate thread safe objects])
5837])# _LT_LINKER_SHLIBS
5838
5839
5840# _LT_LANG_C_CONFIG([TAG])
5841# ------------------------
5842# Ensure that the configuration variables for a C compiler are suitably
5843# defined.  These variables are subsequently used by _LT_CONFIG to write
5844# the compiler configuration to `libtool'.
5845m4_defun([_LT_LANG_C_CONFIG],
5846[m4_require([_LT_DECL_EGREP])dnl
5847lt_save_CC="$CC"
5848AC_LANG_PUSH(C)
5849
5850# Source file extension for C test sources.
5851ac_ext=c
5852
5853# Object file extension for compiled C test sources.
5854objext=o
5855_LT_TAGVAR(objext, $1)=$objext
5856
5857# Code to be used in simple compile tests
5858lt_simple_compile_test_code="int some_variable = 0;"
5859
5860# Code to be used in simple link tests
5861lt_simple_link_test_code='int main(){return(0);}'
5862
5863_LT_TAG_COMPILER
5864# Save the default compiler, since it gets overwritten when the other
5865# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5866compiler_DEFAULT=$CC
5867
5868# save warnings/boilerplate of simple test code
5869_LT_COMPILER_BOILERPLATE
5870_LT_LINKER_BOILERPLATE
5871
5872if test -n "$compiler"; then
5873  _LT_COMPILER_NO_RTTI($1)
5874  _LT_COMPILER_PIC($1)
5875  _LT_COMPILER_C_O($1)
5876  _LT_COMPILER_FILE_LOCKS($1)
5877  _LT_LINKER_SHLIBS($1)
5878  _LT_SYS_DYNAMIC_LINKER($1)
5879  _LT_LINKER_HARDCODE_LIBPATH($1)
5880  LT_SYS_DLOPEN_SELF
5881  _LT_CMD_STRIPLIB
5882
5883  # Report which library types will actually be built
5884  AC_MSG_CHECKING([if libtool supports shared libraries])
5885  AC_MSG_RESULT([$can_build_shared])
5886
5887  AC_MSG_CHECKING([whether to build shared libraries])
5888  test "$can_build_shared" = "no" && enable_shared=no
5889
5890  # On AIX, shared libraries and static libraries use the same namespace, and
5891  # are all built from PIC.
5892  case $host_os in
5893  aix3*)
5894    test "$enable_shared" = yes && enable_static=no
5895    if test -n "$RANLIB"; then
5896      archive_cmds="$archive_cmds~\$RANLIB \$lib"
5897      postinstall_cmds='$RANLIB $lib'
5898    fi
5899    ;;
5900
5901  aix[[4-9]]*)
5902    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5903      test "$enable_shared" = yes && enable_static=no
5904    fi
5905    ;;
5906  esac
5907  AC_MSG_RESULT([$enable_shared])
5908
5909  AC_MSG_CHECKING([whether to build static libraries])
5910  # Make sure either enable_shared or enable_static is yes.
5911  test "$enable_shared" = yes || enable_static=yes
5912  AC_MSG_RESULT([$enable_static])
5913
5914  _LT_CONFIG($1)
5915fi
5916AC_LANG_POP
5917CC="$lt_save_CC"
5918])# _LT_LANG_C_CONFIG
5919
5920
5921# _LT_LANG_CXX_CONFIG([TAG])
5922# --------------------------
5923# Ensure that the configuration variables for a C++ compiler are suitably
5924# defined.  These variables are subsequently used by _LT_CONFIG to write
5925# the compiler configuration to `libtool'.
5926m4_defun([_LT_LANG_CXX_CONFIG],
5927[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5928m4_require([_LT_DECL_EGREP])dnl
5929m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5930if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5931    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5932    (test "X$CXX" != "Xg++"))) ; then
5933  AC_PROG_CXXCPP
5934else
5935  _lt_caught_CXX_error=yes
5936fi
5937
5938AC_LANG_PUSH(C++)
5939_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5940_LT_TAGVAR(allow_undefined_flag, $1)=
5941_LT_TAGVAR(always_export_symbols, $1)=no
5942_LT_TAGVAR(archive_expsym_cmds, $1)=
5943_LT_TAGVAR(compiler_needs_object, $1)=no
5944_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5945_LT_TAGVAR(hardcode_direct, $1)=no
5946_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5947_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5948_LT_TAGVAR(hardcode_libdir_separator, $1)=
5949_LT_TAGVAR(hardcode_minus_L, $1)=no
5950_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5951_LT_TAGVAR(hardcode_automatic, $1)=no
5952_LT_TAGVAR(inherit_rpath, $1)=no
5953_LT_TAGVAR(module_cmds, $1)=
5954_LT_TAGVAR(module_expsym_cmds, $1)=
5955_LT_TAGVAR(link_all_deplibs, $1)=unknown
5956_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5957_LT_TAGVAR(reload_flag, $1)=$reload_flag
5958_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5959_LT_TAGVAR(no_undefined_flag, $1)=
5960_LT_TAGVAR(whole_archive_flag_spec, $1)=
5961_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5962
5963# Source file extension for C++ test sources.
5964ac_ext=cpp
5965
5966# Object file extension for compiled C++ test sources.
5967objext=o
5968_LT_TAGVAR(objext, $1)=$objext
5969
5970# No sense in running all these tests if we already determined that
5971# the CXX compiler isn't working.  Some variables (like enable_shared)
5972# are currently assumed to apply to all compilers on this platform,
5973# and will be corrupted by setting them based on a non-working compiler.
5974if test "$_lt_caught_CXX_error" != yes; then
5975  # Code to be used in simple compile tests
5976  lt_simple_compile_test_code="int some_variable = 0;"
5977
5978  # Code to be used in simple link tests
5979  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5980
5981  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5982  _LT_TAG_COMPILER
5983
5984  # save warnings/boilerplate of simple test code
5985  _LT_COMPILER_BOILERPLATE
5986  _LT_LINKER_BOILERPLATE
5987
5988  # Allow CC to be a program name with arguments.
5989  lt_save_CC=$CC
5990  lt_save_CFLAGS=$CFLAGS
5991  lt_save_LD=$LD
5992  lt_save_GCC=$GCC
5993  GCC=$GXX
5994  lt_save_with_gnu_ld=$with_gnu_ld
5995  lt_save_path_LD=$lt_cv_path_LD
5996  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5997    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5998  else
5999    $as_unset lt_cv_prog_gnu_ld
6000  fi
6001  if test -n "${lt_cv_path_LDCXX+set}"; then
6002    lt_cv_path_LD=$lt_cv_path_LDCXX
6003  else
6004    $as_unset lt_cv_path_LD
6005  fi
6006  test -z "${LDCXX+set}" || LD=$LDCXX
6007  CC=${CXX-"c++"}
6008  CFLAGS=$CXXFLAGS
6009  compiler=$CC
6010  _LT_TAGVAR(compiler, $1)=$CC
6011  _LT_CC_BASENAME([$compiler])
6012
6013  if test -n "$compiler"; then
6014    # We don't want -fno-exception when compiling C++ code, so set the
6015    # no_builtin_flag separately
6016    if test "$GXX" = yes; then
6017      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6018    else
6019      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6020    fi
6021
6022    if test "$GXX" = yes; then
6023      # Set up default GNU C++ configuration
6024
6025      LT_PATH_LD
6026
6027      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6028      # archiving commands below assume that GNU ld is being used.
6029      if test "$with_gnu_ld" = yes; then
6030        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6031        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6032
6033        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6034        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6035
6036        # If archive_cmds runs LD, not CC, wlarc should be empty
6037        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6038        #     investigate it a little bit more. (MM)
6039        wlarc='${wl}'
6040
6041        # ancient GNU ld didn't support --whole-archive et. al.
6042        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6043	  $GREP 'no-whole-archive' > /dev/null; then
6044          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6045        else
6046          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6047        fi
6048      else
6049        with_gnu_ld=no
6050        wlarc=
6051
6052        # A generic and very simple default shared library creation
6053        # command for GNU C++ for the case where it uses the native
6054        # linker, instead of GNU ld.  If possible, this setting should
6055        # overridden to take advantage of the native linker features on
6056        # the platform it is being used on.
6057        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6058      fi
6059
6060      # Commands to make compiler produce verbose output that lists
6061      # what "hidden" libraries, object files and flags are used when
6062      # linking a shared library.
6063      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6064
6065    else
6066      GXX=no
6067      with_gnu_ld=no
6068      wlarc=
6069    fi
6070
6071    # PORTME: fill in a description of your system's C++ link characteristics
6072    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6073    _LT_TAGVAR(ld_shlibs, $1)=yes
6074    case $host_os in
6075      aix3*)
6076        # FIXME: insert proper C++ library support
6077        _LT_TAGVAR(ld_shlibs, $1)=no
6078        ;;
6079      aix[[4-9]]*)
6080        if test "$host_cpu" = ia64; then
6081          # On IA64, the linker does run time linking by default, so we don't
6082          # have to do anything special.
6083          aix_use_runtimelinking=no
6084          exp_sym_flag='-Bexport'
6085          no_entry_flag=""
6086        else
6087          aix_use_runtimelinking=no
6088
6089          # Test if we are trying to use run time linking or normal
6090          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6091          # need to do runtime linking.
6092          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6093	    for ld_flag in $LDFLAGS; do
6094	      case $ld_flag in
6095	      *-brtl*)
6096	        aix_use_runtimelinking=yes
6097	        break
6098	        ;;
6099	      esac
6100	    done
6101	    ;;
6102          esac
6103
6104          exp_sym_flag='-bexport'
6105          no_entry_flag='-bnoentry'
6106        fi
6107
6108        # When large executables or shared objects are built, AIX ld can
6109        # have problems creating the table of contents.  If linking a library
6110        # or program results in "error TOC overflow" add -mminimal-toc to
6111        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6112        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6113
6114        _LT_TAGVAR(archive_cmds, $1)=''
6115        _LT_TAGVAR(hardcode_direct, $1)=yes
6116        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6117        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6118        _LT_TAGVAR(link_all_deplibs, $1)=yes
6119        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6120
6121        if test "$GXX" = yes; then
6122          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6123          # We only want to do this on AIX 4.2 and lower, the check
6124          # below for broken collect2 doesn't work under 4.3+
6125	  collect2name=`${CC} -print-prog-name=collect2`
6126	  if test -f "$collect2name" &&
6127	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6128	  then
6129	    # We have reworked collect2
6130	    :
6131	  else
6132	    # We have old collect2
6133	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
6134	    # It fails to find uninstalled libraries when the uninstalled
6135	    # path is not listed in the libpath.  Setting hardcode_minus_L
6136	    # to unsupported forces relinking
6137	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
6138	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6139	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
6140	  fi
6141          esac
6142          shared_flag='-shared'
6143	  if test "$aix_use_runtimelinking" = yes; then
6144	    shared_flag="$shared_flag "'${wl}-G'
6145	  fi
6146        else
6147          # not using gcc
6148          if test "$host_cpu" = ia64; then
6149	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6150	  # chokes on -Wl,-G. The following line is correct:
6151	  shared_flag='-G'
6152          else
6153	    if test "$aix_use_runtimelinking" = yes; then
6154	      shared_flag='${wl}-G'
6155	    else
6156	      shared_flag='${wl}-bM:SRE'
6157	    fi
6158          fi
6159        fi
6160
6161        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6162        # It seems that -bexpall does not export symbols beginning with
6163        # underscore (_), so it is better to generate a list of symbols to
6164	# export.
6165        _LT_TAGVAR(always_export_symbols, $1)=yes
6166        if test "$aix_use_runtimelinking" = yes; then
6167          # Warning - without using the other runtime loading flags (-brtl),
6168          # -berok will link without error, but may produce a broken library.
6169          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6170          # Determine the default libpath from the value encoded in an empty
6171          # executable.
6172          _LT_SYS_MODULE_PATH_AIX([$1])
6173          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6174
6175          _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6176        else
6177          if test "$host_cpu" = ia64; then
6178	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6179	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6180	    _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"
6181          else
6182	    # Determine the default libpath from the value encoded in an
6183	    # empty executable.
6184	    _LT_SYS_MODULE_PATH_AIX([$1])
6185	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6186	    # Warning - without using the other run time loading flags,
6187	    # -berok will link without error, but may produce a broken library.
6188	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6189	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6190	    if test "$with_gnu_ld" = yes; then
6191	      # We only use this code for GNU lds that support --whole-archive.
6192	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6193	    else
6194	      # Exported symbols can be pulled into shared objects from archives
6195	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6196	    fi
6197	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6198	    # This is similar to how AIX traditionally builds its shared
6199	    # libraries.
6200	    _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'
6201          fi
6202        fi
6203        ;;
6204
6205      beos*)
6206	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6207	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6208	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6209	  # support --undefined.  This deserves some investigation.  FIXME
6210	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6211	else
6212	  _LT_TAGVAR(ld_shlibs, $1)=no
6213	fi
6214	;;
6215
6216      chorus*)
6217        case $cc_basename in
6218          *)
6219	  # FIXME: insert proper C++ library support
6220	  _LT_TAGVAR(ld_shlibs, $1)=no
6221	  ;;
6222        esac
6223        ;;
6224
6225      cygwin* | mingw* | pw32* | cegcc*)
6226	case $GXX,$cc_basename in
6227	,cl* | no,cl*)
6228	  # Native MSVC
6229	  # hardcode_libdir_flag_spec is actually meaningless, as there is
6230	  # no search path for DLLs.
6231	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6232	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6233	  _LT_TAGVAR(always_export_symbols, $1)=yes
6234	  _LT_TAGVAR(file_list_spec, $1)='@'
6235	  # Tell ltmain to make .lib files, not .a files.
6236	  libext=lib
6237	  # Tell ltmain to make .dll files, not .so files.
6238	  shrext_cmds=".dll"
6239	  # FIXME: Setting linknames here is a bad hack.
6240	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6241	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6242	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6243	    else
6244	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6245	    fi~
6246	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6247	    linknames='
6248	  # The linker will not automatically build a static lib if we build a DLL.
6249	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6250	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6251	  # Don't use ranlib
6252	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6253	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6254	    lt_tool_outputfile="@TOOL_OUTPUT@"~
6255	    case $lt_outputfile in
6256	      *.exe|*.EXE) ;;
6257	      *)
6258		lt_outputfile="$lt_outputfile.exe"
6259		lt_tool_outputfile="$lt_tool_outputfile.exe"
6260		;;
6261	    esac~
6262	    func_to_tool_file "$lt_outputfile"~
6263	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6264	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6265	      $RM "$lt_outputfile.manifest";
6266	    fi'
6267	  ;;
6268	*)
6269	  # g++
6270	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6271	  # as there is no search path for DLLs.
6272	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6273	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6274	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6275	  _LT_TAGVAR(always_export_symbols, $1)=no
6276	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6277
6278	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6279	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6280	    # If the export-symbols file already is a .def file (1st line
6281	    # is EXPORTS), use it as is; otherwise, prepend...
6282	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6283	      cp $export_symbols $output_objdir/$soname.def;
6284	    else
6285	      echo EXPORTS > $output_objdir/$soname.def;
6286	      cat $export_symbols >> $output_objdir/$soname.def;
6287	    fi~
6288	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6289	  else
6290	    _LT_TAGVAR(ld_shlibs, $1)=no
6291	  fi
6292	  ;;
6293	esac
6294	;;
6295      darwin* | rhapsody*)
6296        _LT_DARWIN_LINKER_FEATURES($1)
6297	;;
6298
6299      dgux*)
6300        case $cc_basename in
6301          ec++*)
6302	    # FIXME: insert proper C++ library support
6303	    _LT_TAGVAR(ld_shlibs, $1)=no
6304	    ;;
6305          ghcx*)
6306	    # Green Hills C++ Compiler
6307	    # FIXME: insert proper C++ library support
6308	    _LT_TAGVAR(ld_shlibs, $1)=no
6309	    ;;
6310          *)
6311	    # FIXME: insert proper C++ library support
6312	    _LT_TAGVAR(ld_shlibs, $1)=no
6313	    ;;
6314        esac
6315        ;;
6316
6317      freebsd2.*)
6318        # C++ shared libraries reported to be fairly broken before
6319	# switch to ELF
6320        _LT_TAGVAR(ld_shlibs, $1)=no
6321        ;;
6322
6323      freebsd-elf*)
6324        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6325        ;;
6326
6327      freebsd* | dragonfly*)
6328        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6329        # conventions
6330        _LT_TAGVAR(ld_shlibs, $1)=yes
6331        ;;
6332
6333      haiku*)
6334        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6335        _LT_TAGVAR(link_all_deplibs, $1)=yes
6336        ;;
6337
6338      hpux9*)
6339        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6340        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6341        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6342        _LT_TAGVAR(hardcode_direct, $1)=yes
6343        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6344				             # but as the default
6345				             # location of the library.
6346
6347        case $cc_basename in
6348          CC*)
6349            # FIXME: insert proper C++ library support
6350            _LT_TAGVAR(ld_shlibs, $1)=no
6351            ;;
6352          aCC*)
6353            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6354            # Commands to make compiler produce verbose output that lists
6355            # what "hidden" libraries, object files and flags are used when
6356            # linking a shared library.
6357            #
6358            # There doesn't appear to be a way to prevent this compiler from
6359            # explicitly linking system object files so we need to strip them
6360            # from the output so that they don't get included in the library
6361            # dependencies.
6362            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6363            ;;
6364          *)
6365            if test "$GXX" = yes; then
6366              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6367            else
6368              # FIXME: insert proper C++ library support
6369              _LT_TAGVAR(ld_shlibs, $1)=no
6370            fi
6371            ;;
6372        esac
6373        ;;
6374
6375      hpux10*|hpux11*)
6376        if test $with_gnu_ld = no; then
6377	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6378	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6379
6380          case $host_cpu in
6381            hppa*64*|ia64*)
6382              ;;
6383            *)
6384	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6385              ;;
6386          esac
6387        fi
6388        case $host_cpu in
6389          hppa*64*|ia64*)
6390            _LT_TAGVAR(hardcode_direct, $1)=no
6391            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6392            ;;
6393          *)
6394            _LT_TAGVAR(hardcode_direct, $1)=yes
6395            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6396            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6397					         # but as the default
6398					         # location of the library.
6399            ;;
6400        esac
6401
6402        case $cc_basename in
6403          CC*)
6404	    # FIXME: insert proper C++ library support
6405	    _LT_TAGVAR(ld_shlibs, $1)=no
6406	    ;;
6407          aCC*)
6408	    case $host_cpu in
6409	      hppa*64*)
6410	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6411	        ;;
6412	      ia64*)
6413	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6414	        ;;
6415	      *)
6416	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6417	        ;;
6418	    esac
6419	    # Commands to make compiler produce verbose output that lists
6420	    # what "hidden" libraries, object files and flags are used when
6421	    # linking a shared library.
6422	    #
6423	    # There doesn't appear to be a way to prevent this compiler from
6424	    # explicitly linking system object files so we need to strip them
6425	    # from the output so that they don't get included in the library
6426	    # dependencies.
6427	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6428	    ;;
6429          *)
6430	    if test "$GXX" = yes; then
6431	      if test $with_gnu_ld = no; then
6432	        case $host_cpu in
6433	          hppa*64*)
6434	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6435	            ;;
6436	          ia64*)
6437	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6438	            ;;
6439	          *)
6440	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6441	            ;;
6442	        esac
6443	      fi
6444	    else
6445	      # FIXME: insert proper C++ library support
6446	      _LT_TAGVAR(ld_shlibs, $1)=no
6447	    fi
6448	    ;;
6449        esac
6450        ;;
6451
6452      interix[[3-9]]*)
6453	_LT_TAGVAR(hardcode_direct, $1)=no
6454	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6455	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6456	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6457	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6458	# Instead, shared libraries are loaded at an image base (0x10000000 by
6459	# default) and relocated if they conflict, which is a slow very memory
6460	# consuming and fragmenting process.  To avoid this, we pick a random,
6461	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6462	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6463	_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'
6464	_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'
6465	;;
6466      irix5* | irix6*)
6467        case $cc_basename in
6468          CC*)
6469	    # SGI C++
6470	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6471
6472	    # Archives containing C++ object files must be created using
6473	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6474	    # necessary to make sure instantiated templates are included
6475	    # in the archive.
6476	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6477	    ;;
6478          *)
6479	    if test "$GXX" = yes; then
6480	      if test "$with_gnu_ld" = no; then
6481	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6482	      else
6483	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6484	      fi
6485	    fi
6486	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6487	    ;;
6488        esac
6489        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6490        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6491        _LT_TAGVAR(inherit_rpath, $1)=yes
6492        ;;
6493
6494      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6495        case $cc_basename in
6496          KCC*)
6497	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6498
6499	    # KCC will only create a shared library if the output file
6500	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6501	    # to its proper name (with version) after linking.
6502	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6503	    _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6504	    # Commands to make compiler produce verbose output that lists
6505	    # what "hidden" libraries, object files and flags are used when
6506	    # linking a shared library.
6507	    #
6508	    # There doesn't appear to be a way to prevent this compiler from
6509	    # explicitly linking system object files so we need to strip them
6510	    # from the output so that they don't get included in the library
6511	    # dependencies.
6512	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6513
6514	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6515	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6516
6517	    # Archives containing C++ object files must be created using
6518	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6519	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6520	    ;;
6521	  icpc* | ecpc* )
6522	    # Intel C++
6523	    with_gnu_ld=yes
6524	    # version 8.0 and above of icpc choke on multiply defined symbols
6525	    # if we add $predep_objects and $postdep_objects, however 7.1 and
6526	    # earlier do not add the objects themselves.
6527	    case `$CC -V 2>&1` in
6528	      *"Version 7."*)
6529	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6530		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6531		;;
6532	      *)  # Version 8.0 or newer
6533	        tmp_idyn=
6534	        case $host_cpu in
6535		  ia64*) tmp_idyn=' -i_dynamic';;
6536		esac
6537	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6538		_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6539		;;
6540	    esac
6541	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6542	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6543	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6544	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6545	    ;;
6546          pgCC* | pgcpp*)
6547            # Portland Group C++ compiler
6548	    case `$CC -V` in
6549	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6550	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6551		rm -rf $tpldir~
6552		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6553		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6554	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6555		rm -rf $tpldir~
6556		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6557		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6558		$RANLIB $oldlib'
6559	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6560		rm -rf $tpldir~
6561		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6562		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6563	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6564		rm -rf $tpldir~
6565		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6566		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6567	      ;;
6568	    *) # Version 6 and above use weak symbols
6569	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6570	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6571	      ;;
6572	    esac
6573
6574	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6575	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6576	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6577            ;;
6578	  cxx*)
6579	    # Compaq C++
6580	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6581	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6582
6583	    runpath_var=LD_RUN_PATH
6584	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6585	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6586
6587	    # Commands to make compiler produce verbose output that lists
6588	    # what "hidden" libraries, object files and flags are used when
6589	    # linking a shared library.
6590	    #
6591	    # There doesn't appear to be a way to prevent this compiler from
6592	    # explicitly linking system object files so we need to strip them
6593	    # from the output so that they don't get included in the library
6594	    # dependencies.
6595	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6596	    ;;
6597	  xl* | mpixl* | bgxl*)
6598	    # IBM XL 8.0 on PPC, with GNU ld
6599	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6600	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6601	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6602	    if test "x$supports_anon_versioning" = xyes; then
6603	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6604		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6605		echo "local: *; };" >> $output_objdir/$libname.ver~
6606		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6607	    fi
6608	    ;;
6609	  *)
6610	    case `$CC -V 2>&1 | sed 5q` in
6611	    *Sun\ C*)
6612	      # Sun C++ 5.9
6613	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6614	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6615	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6616	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6617	      _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6618	      _LT_TAGVAR(compiler_needs_object, $1)=yes
6619
6620	      # Not sure whether something based on
6621	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6622	      # would be better.
6623	      output_verbose_link_cmd='func_echo_all'
6624
6625	      # Archives containing C++ object files must be created using
6626	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6627	      # necessary to make sure instantiated templates are included
6628	      # in the archive.
6629	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6630	      ;;
6631	    esac
6632	    ;;
6633	esac
6634	;;
6635
6636      lynxos*)
6637        # FIXME: insert proper C++ library support
6638	_LT_TAGVAR(ld_shlibs, $1)=no
6639	;;
6640
6641      m88k*)
6642        # FIXME: insert proper C++ library support
6643        _LT_TAGVAR(ld_shlibs, $1)=no
6644	;;
6645
6646      mvs*)
6647        case $cc_basename in
6648          cxx*)
6649	    # FIXME: insert proper C++ library support
6650	    _LT_TAGVAR(ld_shlibs, $1)=no
6651	    ;;
6652	  *)
6653	    # FIXME: insert proper C++ library support
6654	    _LT_TAGVAR(ld_shlibs, $1)=no
6655	    ;;
6656	esac
6657	;;
6658
6659      netbsd*)
6660        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6661	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6662	  wlarc=
6663	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6664	  _LT_TAGVAR(hardcode_direct, $1)=yes
6665	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6666	fi
6667	# Workaround some broken pre-1.5 toolchains
6668	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6669	;;
6670
6671      *nto* | *qnx*)
6672        _LT_TAGVAR(ld_shlibs, $1)=yes
6673	;;
6674
6675      openbsd2*)
6676        # C++ shared libraries are fairly broken
6677	_LT_TAGVAR(ld_shlibs, $1)=no
6678	;;
6679
6680      openbsd*)
6681	if test -f /usr/libexec/ld.so; then
6682	  _LT_TAGVAR(hardcode_direct, $1)=yes
6683	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6684	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6685	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6686	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6687	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6688	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6689	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6690	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6691	  fi
6692	  output_verbose_link_cmd=func_echo_all
6693	else
6694	  _LT_TAGVAR(ld_shlibs, $1)=no
6695	fi
6696	;;
6697
6698      osf3* | osf4* | osf5*)
6699        case $cc_basename in
6700          KCC*)
6701	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6702
6703	    # KCC will only create a shared library if the output file
6704	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6705	    # to its proper name (with version) after linking.
6706	    _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6707
6708	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6709	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6710
6711	    # Archives containing C++ object files must be created using
6712	    # the KAI C++ compiler.
6713	    case $host in
6714	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6715	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6716	    esac
6717	    ;;
6718          RCC*)
6719	    # Rational C++ 2.4.1
6720	    # FIXME: insert proper C++ library support
6721	    _LT_TAGVAR(ld_shlibs, $1)=no
6722	    ;;
6723          cxx*)
6724	    case $host in
6725	      osf3*)
6726	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6727	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6728	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6729		;;
6730	      *)
6731	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6732	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6733	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6734	          echo "-hidden">> $lib.exp~
6735	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6736	          $RM $lib.exp'
6737	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6738		;;
6739	    esac
6740
6741	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6742
6743	    # Commands to make compiler produce verbose output that lists
6744	    # what "hidden" libraries, object files and flags are used when
6745	    # linking a shared library.
6746	    #
6747	    # There doesn't appear to be a way to prevent this compiler from
6748	    # explicitly linking system object files so we need to strip them
6749	    # from the output so that they don't get included in the library
6750	    # dependencies.
6751	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6752	    ;;
6753	  *)
6754	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6755	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6756	      case $host in
6757	        osf3*)
6758	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6759		  ;;
6760	        *)
6761	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6762		  ;;
6763	      esac
6764
6765	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6766	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6767
6768	      # Commands to make compiler produce verbose output that lists
6769	      # what "hidden" libraries, object files and flags are used when
6770	      # linking a shared library.
6771	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6772
6773	    else
6774	      # FIXME: insert proper C++ library support
6775	      _LT_TAGVAR(ld_shlibs, $1)=no
6776	    fi
6777	    ;;
6778        esac
6779        ;;
6780
6781      psos*)
6782        # FIXME: insert proper C++ library support
6783        _LT_TAGVAR(ld_shlibs, $1)=no
6784        ;;
6785
6786      sunos4*)
6787        case $cc_basename in
6788          CC*)
6789	    # Sun C++ 4.x
6790	    # FIXME: insert proper C++ library support
6791	    _LT_TAGVAR(ld_shlibs, $1)=no
6792	    ;;
6793          lcc*)
6794	    # Lucid
6795	    # FIXME: insert proper C++ library support
6796	    _LT_TAGVAR(ld_shlibs, $1)=no
6797	    ;;
6798          *)
6799	    # FIXME: insert proper C++ library support
6800	    _LT_TAGVAR(ld_shlibs, $1)=no
6801	    ;;
6802        esac
6803        ;;
6804
6805      solaris*)
6806        case $cc_basename in
6807          CC* | sunCC*)
6808	    # Sun C++ 4.2, 5.x and Centerline C++
6809            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6810	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6811	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6812	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6813	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6814
6815	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6816	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6817	    case $host_os in
6818	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6819	      *)
6820		# The compiler driver will combine and reorder linker options,
6821		# but understands `-z linker_flag'.
6822	        # Supported since Solaris 2.6 (maybe 2.5.1?)
6823		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6824	        ;;
6825	    esac
6826	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6827
6828	    output_verbose_link_cmd='func_echo_all'
6829
6830	    # Archives containing C++ object files must be created using
6831	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6832	    # necessary to make sure instantiated templates are included
6833	    # in the archive.
6834	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6835	    ;;
6836          gcx*)
6837	    # Green Hills C++ Compiler
6838	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6839
6840	    # The C++ compiler must be used to create the archive.
6841	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6842	    ;;
6843          *)
6844	    # GNU C++ compiler with Solaris linker
6845	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6846	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6847	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6848	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6849	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6850		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6851
6852	        # Commands to make compiler produce verbose output that lists
6853	        # what "hidden" libraries, object files and flags are used when
6854	        # linking a shared library.
6855	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6856	      else
6857	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
6858	        # platform.
6859	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6860	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6861		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6862
6863	        # Commands to make compiler produce verbose output that lists
6864	        # what "hidden" libraries, object files and flags are used when
6865	        # linking a shared library.
6866	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6867	      fi
6868
6869	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6870	      case $host_os in
6871		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6872		*)
6873		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6874		  ;;
6875	      esac
6876	    fi
6877	    ;;
6878        esac
6879        ;;
6880
6881    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6882      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6883      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6884      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6885      runpath_var='LD_RUN_PATH'
6886
6887      case $cc_basename in
6888        CC*)
6889	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6890	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6891	  ;;
6892	*)
6893	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6894	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6895	  ;;
6896      esac
6897      ;;
6898
6899      sysv5* | sco3.2v5* | sco5v6*)
6900	# Note: We can NOT use -z defs as we might desire, because we do not
6901	# link with -lc, and that would cause any symbols used from libc to
6902	# always be unresolved, which means just about no library would
6903	# ever link correctly.  If we're not using GNU ld we use -z text
6904	# though, which does catch some bad symbols but isn't as heavy-handed
6905	# as -z defs.
6906	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6907	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6908	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6909	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6910	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6911	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6912	_LT_TAGVAR(link_all_deplibs, $1)=yes
6913	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6914	runpath_var='LD_RUN_PATH'
6915
6916	case $cc_basename in
6917          CC*)
6918	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6919	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6920	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6921	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
6922	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6923	      '"$_LT_TAGVAR(reload_cmds, $1)"
6924	    ;;
6925	  *)
6926	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6927	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6928	    ;;
6929	esac
6930      ;;
6931
6932      tandem*)
6933        case $cc_basename in
6934          NCC*)
6935	    # NonStop-UX NCC 3.20
6936	    # FIXME: insert proper C++ library support
6937	    _LT_TAGVAR(ld_shlibs, $1)=no
6938	    ;;
6939          *)
6940	    # FIXME: insert proper C++ library support
6941	    _LT_TAGVAR(ld_shlibs, $1)=no
6942	    ;;
6943        esac
6944        ;;
6945
6946      vxworks*)
6947        # FIXME: insert proper C++ library support
6948        _LT_TAGVAR(ld_shlibs, $1)=no
6949        ;;
6950
6951      *)
6952        # FIXME: insert proper C++ library support
6953        _LT_TAGVAR(ld_shlibs, $1)=no
6954        ;;
6955    esac
6956
6957    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6958    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6959
6960    _LT_TAGVAR(GCC, $1)="$GXX"
6961    _LT_TAGVAR(LD, $1)="$LD"
6962
6963    ## CAVEAT EMPTOR:
6964    ## There is no encapsulation within the following macros, do not change
6965    ## the running order or otherwise move them around unless you know exactly
6966    ## what you are doing...
6967    _LT_SYS_HIDDEN_LIBDEPS($1)
6968    _LT_COMPILER_PIC($1)
6969    _LT_COMPILER_C_O($1)
6970    _LT_COMPILER_FILE_LOCKS($1)
6971    _LT_LINKER_SHLIBS($1)
6972    _LT_SYS_DYNAMIC_LINKER($1)
6973    _LT_LINKER_HARDCODE_LIBPATH($1)
6974
6975    _LT_CONFIG($1)
6976  fi # test -n "$compiler"
6977
6978  CC=$lt_save_CC
6979  CFLAGS=$lt_save_CFLAGS
6980  LDCXX=$LD
6981  LD=$lt_save_LD
6982  GCC=$lt_save_GCC
6983  with_gnu_ld=$lt_save_with_gnu_ld
6984  lt_cv_path_LDCXX=$lt_cv_path_LD
6985  lt_cv_path_LD=$lt_save_path_LD
6986  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6987  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6988fi # test "$_lt_caught_CXX_error" != yes
6989
6990AC_LANG_POP
6991])# _LT_LANG_CXX_CONFIG
6992
6993
6994# _LT_FUNC_STRIPNAME_CNF
6995# ----------------------
6996# func_stripname_cnf prefix suffix name
6997# strip PREFIX and SUFFIX off of NAME.
6998# PREFIX and SUFFIX must not contain globbing or regex special
6999# characters, hashes, percent signs, but SUFFIX may contain a leading
7000# dot (in which case that matches only a dot).
7001#
7002# This function is identical to the (non-XSI) version of func_stripname,
7003# except this one can be used by m4 code that may be executed by configure,
7004# rather than the libtool script.
7005m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7006AC_REQUIRE([_LT_DECL_SED])
7007AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7008func_stripname_cnf ()
7009{
7010  case ${2} in
7011  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7012  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7013  esac
7014} # func_stripname_cnf
7015])# _LT_FUNC_STRIPNAME_CNF
7016
7017# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7018# ---------------------------------
7019# Figure out "hidden" library dependencies from verbose
7020# compiler output when linking a shared library.
7021# Parse the compiler output and extract the necessary
7022# objects, libraries and library flags.
7023m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7024[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7025AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7026# Dependencies to place before and after the object being linked:
7027_LT_TAGVAR(predep_objects, $1)=
7028_LT_TAGVAR(postdep_objects, $1)=
7029_LT_TAGVAR(predeps, $1)=
7030_LT_TAGVAR(postdeps, $1)=
7031_LT_TAGVAR(compiler_lib_search_path, $1)=
7032
7033dnl we can't use the lt_simple_compile_test_code here,
7034dnl because it contains code intended for an executable,
7035dnl not a library.  It's possible we should let each
7036dnl tag define a new lt_????_link_test_code variable,
7037dnl but it's only used here...
7038m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7039int a;
7040void foo (void) { a = 0; }
7041_LT_EOF
7042], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7043class Foo
7044{
7045public:
7046  Foo (void) { a = 0; }
7047private:
7048  int a;
7049};
7050_LT_EOF
7051], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7052      subroutine foo
7053      implicit none
7054      integer*4 a
7055      a=0
7056      return
7057      end
7058_LT_EOF
7059], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7060      subroutine foo
7061      implicit none
7062      integer a
7063      a=0
7064      return
7065      end
7066_LT_EOF
7067], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7068public class foo {
7069  private int a;
7070  public void bar (void) {
7071    a = 0;
7072  }
7073};
7074_LT_EOF
7075], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7076package foo
7077func foo() {
7078}
7079_LT_EOF
7080])
7081
7082_lt_libdeps_save_CFLAGS=$CFLAGS
7083case "$CC $CFLAGS " in #(
7084*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7085*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7086*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7087esac
7088
7089dnl Parse the compiler output and extract the necessary
7090dnl objects, libraries and library flags.
7091if AC_TRY_EVAL(ac_compile); then
7092  # Parse the compiler output and extract the necessary
7093  # objects, libraries and library flags.
7094
7095  # Sentinel used to keep track of whether or not we are before
7096  # the conftest object file.
7097  pre_test_object_deps_done=no
7098
7099  for p in `eval "$output_verbose_link_cmd"`; do
7100    case ${prev}${p} in
7101
7102    -L* | -R* | -l*)
7103       # Some compilers place space between "-{L,R}" and the path.
7104       # Remove the space.
7105       if test $p = "-L" ||
7106          test $p = "-R"; then
7107	 prev=$p
7108	 continue
7109       fi
7110
7111       # Expand the sysroot to ease extracting the directories later.
7112       if test -z "$prev"; then
7113         case $p in
7114         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7115         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7116         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7117         esac
7118       fi
7119       case $p in
7120       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7121       esac
7122       if test "$pre_test_object_deps_done" = no; then
7123	 case ${prev} in
7124	 -L | -R)
7125	   # Internal compiler library paths should come after those
7126	   # provided the user.  The postdeps already come after the
7127	   # user supplied libs so there is no need to process them.
7128	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7129	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7130	   else
7131	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7132	   fi
7133	   ;;
7134	 # The "-l" case would never come before the object being
7135	 # linked, so don't bother handling this case.
7136	 esac
7137       else
7138	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7139	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7140	 else
7141	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7142	 fi
7143       fi
7144       prev=
7145       ;;
7146
7147    *.lto.$objext) ;; # Ignore GCC LTO objects
7148    *.$objext)
7149       # This assumes that the test object file only shows up
7150       # once in the compiler output.
7151       if test "$p" = "conftest.$objext"; then
7152	 pre_test_object_deps_done=yes
7153	 continue
7154       fi
7155
7156       if test "$pre_test_object_deps_done" = no; then
7157	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7158	   _LT_TAGVAR(predep_objects, $1)="$p"
7159	 else
7160	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7161	 fi
7162       else
7163	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7164	   _LT_TAGVAR(postdep_objects, $1)="$p"
7165	 else
7166	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7167	 fi
7168       fi
7169       ;;
7170
7171    *) ;; # Ignore the rest.
7172
7173    esac
7174  done
7175
7176  # Clean up.
7177  rm -f a.out a.exe
7178else
7179  echo "libtool.m4: error: problem compiling $1 test program"
7180fi
7181
7182$RM -f confest.$objext
7183CFLAGS=$_lt_libdeps_save_CFLAGS
7184
7185# PORTME: override above test on systems where it is broken
7186m4_if([$1], [CXX],
7187[case $host_os in
7188interix[[3-9]]*)
7189  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7190  # hack all around it, let's just trust "g++" to DTRT.
7191  _LT_TAGVAR(predep_objects,$1)=
7192  _LT_TAGVAR(postdep_objects,$1)=
7193  _LT_TAGVAR(postdeps,$1)=
7194  ;;
7195
7196linux*)
7197  case `$CC -V 2>&1 | sed 5q` in
7198  *Sun\ C*)
7199    # Sun C++ 5.9
7200
7201    # The more standards-conforming stlport4 library is
7202    # incompatible with the Cstd library. Avoid specifying
7203    # it if it's in CXXFLAGS. Ignore libCrun as
7204    # -library=stlport4 depends on it.
7205    case " $CXX $CXXFLAGS " in
7206    *" -library=stlport4 "*)
7207      solaris_use_stlport4=yes
7208      ;;
7209    esac
7210
7211    if test "$solaris_use_stlport4" != yes; then
7212      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7213    fi
7214    ;;
7215  esac
7216  ;;
7217
7218solaris*)
7219  case $cc_basename in
7220  CC* | sunCC*)
7221    # The more standards-conforming stlport4 library is
7222    # incompatible with the Cstd library. Avoid specifying
7223    # it if it's in CXXFLAGS. Ignore libCrun as
7224    # -library=stlport4 depends on it.
7225    case " $CXX $CXXFLAGS " in
7226    *" -library=stlport4 "*)
7227      solaris_use_stlport4=yes
7228      ;;
7229    esac
7230
7231    # Adding this requires a known-good setup of shared libraries for
7232    # Sun compiler versions before 5.6, else PIC objects from an old
7233    # archive will be linked into the output, leading to subtle bugs.
7234    if test "$solaris_use_stlport4" != yes; then
7235      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7236    fi
7237    ;;
7238  esac
7239  ;;
7240esac
7241])
7242
7243case " $_LT_TAGVAR(postdeps, $1) " in
7244*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7245esac
7246 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7247if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7248 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7249fi
7250_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7251    [The directories searched by this compiler when creating a shared library])
7252_LT_TAGDECL([], [predep_objects], [1],
7253    [Dependencies to place before and after the objects being linked to
7254    create a shared library])
7255_LT_TAGDECL([], [postdep_objects], [1])
7256_LT_TAGDECL([], [predeps], [1])
7257_LT_TAGDECL([], [postdeps], [1])
7258_LT_TAGDECL([], [compiler_lib_search_path], [1],
7259    [The library search path used internally by the compiler when linking
7260    a shared library])
7261])# _LT_SYS_HIDDEN_LIBDEPS
7262
7263
7264# _LT_LANG_F77_CONFIG([TAG])
7265# --------------------------
7266# Ensure that the configuration variables for a Fortran 77 compiler are
7267# suitably defined.  These variables are subsequently used by _LT_CONFIG
7268# to write the compiler configuration to `libtool'.
7269m4_defun([_LT_LANG_F77_CONFIG],
7270[AC_LANG_PUSH(Fortran 77)
7271if test -z "$F77" || test "X$F77" = "Xno"; then
7272  _lt_disable_F77=yes
7273fi
7274
7275_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7276_LT_TAGVAR(allow_undefined_flag, $1)=
7277_LT_TAGVAR(always_export_symbols, $1)=no
7278_LT_TAGVAR(archive_expsym_cmds, $1)=
7279_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7280_LT_TAGVAR(hardcode_direct, $1)=no
7281_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7282_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7283_LT_TAGVAR(hardcode_libdir_separator, $1)=
7284_LT_TAGVAR(hardcode_minus_L, $1)=no
7285_LT_TAGVAR(hardcode_automatic, $1)=no
7286_LT_TAGVAR(inherit_rpath, $1)=no
7287_LT_TAGVAR(module_cmds, $1)=
7288_LT_TAGVAR(module_expsym_cmds, $1)=
7289_LT_TAGVAR(link_all_deplibs, $1)=unknown
7290_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7291_LT_TAGVAR(reload_flag, $1)=$reload_flag
7292_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7293_LT_TAGVAR(no_undefined_flag, $1)=
7294_LT_TAGVAR(whole_archive_flag_spec, $1)=
7295_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7296
7297# Source file extension for f77 test sources.
7298ac_ext=f
7299
7300# Object file extension for compiled f77 test sources.
7301objext=o
7302_LT_TAGVAR(objext, $1)=$objext
7303
7304# No sense in running all these tests if we already determined that
7305# the F77 compiler isn't working.  Some variables (like enable_shared)
7306# are currently assumed to apply to all compilers on this platform,
7307# and will be corrupted by setting them based on a non-working compiler.
7308if test "$_lt_disable_F77" != yes; then
7309  # Code to be used in simple compile tests
7310  lt_simple_compile_test_code="\
7311      subroutine t
7312      return
7313      end
7314"
7315
7316  # Code to be used in simple link tests
7317  lt_simple_link_test_code="\
7318      program t
7319      end
7320"
7321
7322  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7323  _LT_TAG_COMPILER
7324
7325  # save warnings/boilerplate of simple test code
7326  _LT_COMPILER_BOILERPLATE
7327  _LT_LINKER_BOILERPLATE
7328
7329  # Allow CC to be a program name with arguments.
7330  lt_save_CC="$CC"
7331  lt_save_GCC=$GCC
7332  lt_save_CFLAGS=$CFLAGS
7333  CC=${F77-"f77"}
7334  CFLAGS=$FFLAGS
7335  compiler=$CC
7336  _LT_TAGVAR(compiler, $1)=$CC
7337  _LT_CC_BASENAME([$compiler])
7338  GCC=$G77
7339  if test -n "$compiler"; then
7340    AC_MSG_CHECKING([if libtool supports shared libraries])
7341    AC_MSG_RESULT([$can_build_shared])
7342
7343    AC_MSG_CHECKING([whether to build shared libraries])
7344    test "$can_build_shared" = "no" && enable_shared=no
7345
7346    # On AIX, shared libraries and static libraries use the same namespace, and
7347    # are all built from PIC.
7348    case $host_os in
7349      aix3*)
7350        test "$enable_shared" = yes && enable_static=no
7351        if test -n "$RANLIB"; then
7352          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7353          postinstall_cmds='$RANLIB $lib'
7354        fi
7355        ;;
7356      aix[[4-9]]*)
7357	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7358	  test "$enable_shared" = yes && enable_static=no
7359	fi
7360        ;;
7361    esac
7362    AC_MSG_RESULT([$enable_shared])
7363
7364    AC_MSG_CHECKING([whether to build static libraries])
7365    # Make sure either enable_shared or enable_static is yes.
7366    test "$enable_shared" = yes || enable_static=yes
7367    AC_MSG_RESULT([$enable_static])
7368
7369    _LT_TAGVAR(GCC, $1)="$G77"
7370    _LT_TAGVAR(LD, $1)="$LD"
7371
7372    ## CAVEAT EMPTOR:
7373    ## There is no encapsulation within the following macros, do not change
7374    ## the running order or otherwise move them around unless you know exactly
7375    ## what you are doing...
7376    _LT_COMPILER_PIC($1)
7377    _LT_COMPILER_C_O($1)
7378    _LT_COMPILER_FILE_LOCKS($1)
7379    _LT_LINKER_SHLIBS($1)
7380    _LT_SYS_DYNAMIC_LINKER($1)
7381    _LT_LINKER_HARDCODE_LIBPATH($1)
7382
7383    _LT_CONFIG($1)
7384  fi # test -n "$compiler"
7385
7386  GCC=$lt_save_GCC
7387  CC="$lt_save_CC"
7388  CFLAGS="$lt_save_CFLAGS"
7389fi # test "$_lt_disable_F77" != yes
7390
7391AC_LANG_POP
7392])# _LT_LANG_F77_CONFIG
7393
7394
7395# _LT_LANG_FC_CONFIG([TAG])
7396# -------------------------
7397# Ensure that the configuration variables for a Fortran compiler are
7398# suitably defined.  These variables are subsequently used by _LT_CONFIG
7399# to write the compiler configuration to `libtool'.
7400m4_defun([_LT_LANG_FC_CONFIG],
7401[AC_LANG_PUSH(Fortran)
7402
7403if test -z "$FC" || test "X$FC" = "Xno"; then
7404  _lt_disable_FC=yes
7405fi
7406
7407_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7408_LT_TAGVAR(allow_undefined_flag, $1)=
7409_LT_TAGVAR(always_export_symbols, $1)=no
7410_LT_TAGVAR(archive_expsym_cmds, $1)=
7411_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7412_LT_TAGVAR(hardcode_direct, $1)=no
7413_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7414_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7415_LT_TAGVAR(hardcode_libdir_separator, $1)=
7416_LT_TAGVAR(hardcode_minus_L, $1)=no
7417_LT_TAGVAR(hardcode_automatic, $1)=no
7418_LT_TAGVAR(inherit_rpath, $1)=no
7419_LT_TAGVAR(module_cmds, $1)=
7420_LT_TAGVAR(module_expsym_cmds, $1)=
7421_LT_TAGVAR(link_all_deplibs, $1)=unknown
7422_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7423_LT_TAGVAR(reload_flag, $1)=$reload_flag
7424_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7425_LT_TAGVAR(no_undefined_flag, $1)=
7426_LT_TAGVAR(whole_archive_flag_spec, $1)=
7427_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7428
7429# Source file extension for fc test sources.
7430ac_ext=${ac_fc_srcext-f}
7431
7432# Object file extension for compiled fc test sources.
7433objext=o
7434_LT_TAGVAR(objext, $1)=$objext
7435
7436# No sense in running all these tests if we already determined that
7437# the FC compiler isn't working.  Some variables (like enable_shared)
7438# are currently assumed to apply to all compilers on this platform,
7439# and will be corrupted by setting them based on a non-working compiler.
7440if test "$_lt_disable_FC" != yes; then
7441  # Code to be used in simple compile tests
7442  lt_simple_compile_test_code="\
7443      subroutine t
7444      return
7445      end
7446"
7447
7448  # Code to be used in simple link tests
7449  lt_simple_link_test_code="\
7450      program t
7451      end
7452"
7453
7454  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7455  _LT_TAG_COMPILER
7456
7457  # save warnings/boilerplate of simple test code
7458  _LT_COMPILER_BOILERPLATE
7459  _LT_LINKER_BOILERPLATE
7460
7461  # Allow CC to be a program name with arguments.
7462  lt_save_CC="$CC"
7463  lt_save_GCC=$GCC
7464  lt_save_CFLAGS=$CFLAGS
7465  CC=${FC-"f95"}
7466  CFLAGS=$FCFLAGS
7467  compiler=$CC
7468  GCC=$ac_cv_fc_compiler_gnu
7469
7470  _LT_TAGVAR(compiler, $1)=$CC
7471  _LT_CC_BASENAME([$compiler])
7472
7473  if test -n "$compiler"; then
7474    AC_MSG_CHECKING([if libtool supports shared libraries])
7475    AC_MSG_RESULT([$can_build_shared])
7476
7477    AC_MSG_CHECKING([whether to build shared libraries])
7478    test "$can_build_shared" = "no" && enable_shared=no
7479
7480    # On AIX, shared libraries and static libraries use the same namespace, and
7481    # are all built from PIC.
7482    case $host_os in
7483      aix3*)
7484        test "$enable_shared" = yes && enable_static=no
7485        if test -n "$RANLIB"; then
7486          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7487          postinstall_cmds='$RANLIB $lib'
7488        fi
7489        ;;
7490      aix[[4-9]]*)
7491	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7492	  test "$enable_shared" = yes && enable_static=no
7493	fi
7494        ;;
7495    esac
7496    AC_MSG_RESULT([$enable_shared])
7497
7498    AC_MSG_CHECKING([whether to build static libraries])
7499    # Make sure either enable_shared or enable_static is yes.
7500    test "$enable_shared" = yes || enable_static=yes
7501    AC_MSG_RESULT([$enable_static])
7502
7503    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7504    _LT_TAGVAR(LD, $1)="$LD"
7505
7506    ## CAVEAT EMPTOR:
7507    ## There is no encapsulation within the following macros, do not change
7508    ## the running order or otherwise move them around unless you know exactly
7509    ## what you are doing...
7510    _LT_SYS_HIDDEN_LIBDEPS($1)
7511    _LT_COMPILER_PIC($1)
7512    _LT_COMPILER_C_O($1)
7513    _LT_COMPILER_FILE_LOCKS($1)
7514    _LT_LINKER_SHLIBS($1)
7515    _LT_SYS_DYNAMIC_LINKER($1)
7516    _LT_LINKER_HARDCODE_LIBPATH($1)
7517
7518    _LT_CONFIG($1)
7519  fi # test -n "$compiler"
7520
7521  GCC=$lt_save_GCC
7522  CC=$lt_save_CC
7523  CFLAGS=$lt_save_CFLAGS
7524fi # test "$_lt_disable_FC" != yes
7525
7526AC_LANG_POP
7527])# _LT_LANG_FC_CONFIG
7528
7529
7530# _LT_LANG_GCJ_CONFIG([TAG])
7531# --------------------------
7532# Ensure that the configuration variables for the GNU Java Compiler compiler
7533# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7534# to write the compiler configuration to `libtool'.
7535m4_defun([_LT_LANG_GCJ_CONFIG],
7536[AC_REQUIRE([LT_PROG_GCJ])dnl
7537AC_LANG_SAVE
7538
7539# Source file extension for Java test sources.
7540ac_ext=java
7541
7542# Object file extension for compiled Java test sources.
7543objext=o
7544_LT_TAGVAR(objext, $1)=$objext
7545
7546# Code to be used in simple compile tests
7547lt_simple_compile_test_code="class foo {}"
7548
7549# Code to be used in simple link tests
7550lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7551
7552# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7553_LT_TAG_COMPILER
7554
7555# save warnings/boilerplate of simple test code
7556_LT_COMPILER_BOILERPLATE
7557_LT_LINKER_BOILERPLATE
7558
7559# Allow CC to be a program name with arguments.
7560lt_save_CC=$CC
7561lt_save_CFLAGS=$CFLAGS
7562lt_save_GCC=$GCC
7563GCC=yes
7564CC=${GCJ-"gcj"}
7565CFLAGS=$GCJFLAGS
7566compiler=$CC
7567_LT_TAGVAR(compiler, $1)=$CC
7568_LT_TAGVAR(LD, $1)="$LD"
7569_LT_CC_BASENAME([$compiler])
7570
7571# GCJ did not exist at the time GCC didn't implicitly link libc in.
7572_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7573
7574_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7575_LT_TAGVAR(reload_flag, $1)=$reload_flag
7576_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7577
7578if test -n "$compiler"; then
7579  _LT_COMPILER_NO_RTTI($1)
7580  _LT_COMPILER_PIC($1)
7581  _LT_COMPILER_C_O($1)
7582  _LT_COMPILER_FILE_LOCKS($1)
7583  _LT_LINKER_SHLIBS($1)
7584  _LT_LINKER_HARDCODE_LIBPATH($1)
7585
7586  _LT_CONFIG($1)
7587fi
7588
7589AC_LANG_RESTORE
7590
7591GCC=$lt_save_GCC
7592CC=$lt_save_CC
7593CFLAGS=$lt_save_CFLAGS
7594])# _LT_LANG_GCJ_CONFIG
7595
7596
7597# _LT_LANG_GO_CONFIG([TAG])
7598# --------------------------
7599# Ensure that the configuration variables for the GNU Go compiler
7600# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7601# to write the compiler configuration to `libtool'.
7602m4_defun([_LT_LANG_GO_CONFIG],
7603[AC_REQUIRE([LT_PROG_GO])dnl
7604AC_LANG_SAVE
7605
7606# Source file extension for Go test sources.
7607ac_ext=go
7608
7609# Object file extension for compiled Go test sources.
7610objext=o
7611_LT_TAGVAR(objext, $1)=$objext
7612
7613# Code to be used in simple compile tests
7614lt_simple_compile_test_code="package main; func main() { }"
7615
7616# Code to be used in simple link tests
7617lt_simple_link_test_code='package main; func main() { }'
7618
7619# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7620_LT_TAG_COMPILER
7621
7622# save warnings/boilerplate of simple test code
7623_LT_COMPILER_BOILERPLATE
7624_LT_LINKER_BOILERPLATE
7625
7626# Allow CC to be a program name with arguments.
7627lt_save_CC=$CC
7628lt_save_CFLAGS=$CFLAGS
7629lt_save_GCC=$GCC
7630GCC=yes
7631CC=${GOC-"gccgo"}
7632CFLAGS=$GOFLAGS
7633compiler=$CC
7634_LT_TAGVAR(compiler, $1)=$CC
7635_LT_TAGVAR(LD, $1)="$LD"
7636_LT_CC_BASENAME([$compiler])
7637
7638# Go did not exist at the time GCC didn't implicitly link libc in.
7639_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7640
7641_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7642_LT_TAGVAR(reload_flag, $1)=$reload_flag
7643_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7644
7645if test -n "$compiler"; then
7646  _LT_COMPILER_NO_RTTI($1)
7647  _LT_COMPILER_PIC($1)
7648  _LT_COMPILER_C_O($1)
7649  _LT_COMPILER_FILE_LOCKS($1)
7650  _LT_LINKER_SHLIBS($1)
7651  _LT_LINKER_HARDCODE_LIBPATH($1)
7652
7653  _LT_CONFIG($1)
7654fi
7655
7656AC_LANG_RESTORE
7657
7658GCC=$lt_save_GCC
7659CC=$lt_save_CC
7660CFLAGS=$lt_save_CFLAGS
7661])# _LT_LANG_GO_CONFIG
7662
7663
7664# _LT_LANG_RC_CONFIG([TAG])
7665# -------------------------
7666# Ensure that the configuration variables for the Windows resource compiler
7667# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7668# to write the compiler configuration to `libtool'.
7669m4_defun([_LT_LANG_RC_CONFIG],
7670[AC_REQUIRE([LT_PROG_RC])dnl
7671AC_LANG_SAVE
7672
7673# Source file extension for RC test sources.
7674ac_ext=rc
7675
7676# Object file extension for compiled RC test sources.
7677objext=o
7678_LT_TAGVAR(objext, $1)=$objext
7679
7680# Code to be used in simple compile tests
7681lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7682
7683# Code to be used in simple link tests
7684lt_simple_link_test_code="$lt_simple_compile_test_code"
7685
7686# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7687_LT_TAG_COMPILER
7688
7689# save warnings/boilerplate of simple test code
7690_LT_COMPILER_BOILERPLATE
7691_LT_LINKER_BOILERPLATE
7692
7693# Allow CC to be a program name with arguments.
7694lt_save_CC="$CC"
7695lt_save_CFLAGS=$CFLAGS
7696lt_save_GCC=$GCC
7697GCC=
7698CC=${RC-"windres"}
7699CFLAGS=
7700compiler=$CC
7701_LT_TAGVAR(compiler, $1)=$CC
7702_LT_CC_BASENAME([$compiler])
7703_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7704
7705if test -n "$compiler"; then
7706  :
7707  _LT_CONFIG($1)
7708fi
7709
7710GCC=$lt_save_GCC
7711AC_LANG_RESTORE
7712CC=$lt_save_CC
7713CFLAGS=$lt_save_CFLAGS
7714])# _LT_LANG_RC_CONFIG
7715
7716
7717# LT_PROG_GCJ
7718# -----------
7719AC_DEFUN([LT_PROG_GCJ],
7720[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7721  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7722    [AC_CHECK_TOOL(GCJ, gcj,)
7723      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7724      AC_SUBST(GCJFLAGS)])])[]dnl
7725])
7726
7727# Old name:
7728AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7729dnl aclocal-1.4 backwards compatibility:
7730dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7731
7732
7733# LT_PROG_GO
7734# ----------
7735AC_DEFUN([LT_PROG_GO],
7736[AC_CHECK_TOOL(GOC, gccgo,)
7737])
7738
7739
7740# LT_PROG_RC
7741# ----------
7742AC_DEFUN([LT_PROG_RC],
7743[AC_CHECK_TOOL(RC, windres,)
7744])
7745
7746# Old name:
7747AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7748dnl aclocal-1.4 backwards compatibility:
7749dnl AC_DEFUN([LT_AC_PROG_RC], [])
7750
7751
7752# _LT_DECL_EGREP
7753# --------------
7754# If we don't have a new enough Autoconf to choose the best grep
7755# available, choose the one first in the user's PATH.
7756m4_defun([_LT_DECL_EGREP],
7757[AC_REQUIRE([AC_PROG_EGREP])dnl
7758AC_REQUIRE([AC_PROG_FGREP])dnl
7759test -z "$GREP" && GREP=grep
7760_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7761_LT_DECL([], [EGREP], [1], [An ERE matcher])
7762_LT_DECL([], [FGREP], [1], [A literal string matcher])
7763dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7764AC_SUBST([GREP])
7765])
7766
7767
7768# _LT_DECL_OBJDUMP
7769# --------------
7770# If we don't have a new enough Autoconf to choose the best objdump
7771# available, choose the one first in the user's PATH.
7772m4_defun([_LT_DECL_OBJDUMP],
7773[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7774test -z "$OBJDUMP" && OBJDUMP=objdump
7775_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7776AC_SUBST([OBJDUMP])
7777])
7778
7779# _LT_DECL_DLLTOOL
7780# ----------------
7781# Ensure DLLTOOL variable is set.
7782m4_defun([_LT_DECL_DLLTOOL],
7783[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7784test -z "$DLLTOOL" && DLLTOOL=dlltool
7785_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7786AC_SUBST([DLLTOOL])
7787])
7788
7789# _LT_DECL_SED
7790# ------------
7791# Check for a fully-functional sed program, that truncates
7792# as few characters as possible.  Prefer GNU sed if found.
7793m4_defun([_LT_DECL_SED],
7794[AC_PROG_SED
7795test -z "$SED" && SED=sed
7796Xsed="$SED -e 1s/^X//"
7797_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7798_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7799    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7800])# _LT_DECL_SED
7801
7802m4_ifndef([AC_PROG_SED], [
7803# NOTE: This macro has been submitted for inclusion into   #
7804#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7805#  a released version of Autoconf we should remove this    #
7806#  macro and use it instead.                               #
7807
7808m4_defun([AC_PROG_SED],
7809[AC_MSG_CHECKING([for a sed that does not truncate output])
7810AC_CACHE_VAL(lt_cv_path_SED,
7811[# Loop through the user's path and test for sed and gsed.
7812# Then use that list of sed's as ones to test for truncation.
7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816  IFS=$as_save_IFS
7817  test -z "$as_dir" && as_dir=.
7818  for lt_ac_prog in sed gsed; do
7819    for ac_exec_ext in '' $ac_executable_extensions; do
7820      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7821        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7822      fi
7823    done
7824  done
7825done
7826IFS=$as_save_IFS
7827lt_ac_max=0
7828lt_ac_count=0
7829# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7830# along with /bin/sed that truncates output.
7831for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7832  test ! -f $lt_ac_sed && continue
7833  cat /dev/null > conftest.in
7834  lt_ac_count=0
7835  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7836  # Check for GNU sed and select it if it is found.
7837  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7838    lt_cv_path_SED=$lt_ac_sed
7839    break
7840  fi
7841  while true; do
7842    cat conftest.in conftest.in >conftest.tmp
7843    mv conftest.tmp conftest.in
7844    cp conftest.in conftest.nl
7845    echo >>conftest.nl
7846    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7847    cmp -s conftest.out conftest.nl || break
7848    # 10000 chars as input seems more than enough
7849    test $lt_ac_count -gt 10 && break
7850    lt_ac_count=`expr $lt_ac_count + 1`
7851    if test $lt_ac_count -gt $lt_ac_max; then
7852      lt_ac_max=$lt_ac_count
7853      lt_cv_path_SED=$lt_ac_sed
7854    fi
7855  done
7856done
7857])
7858SED=$lt_cv_path_SED
7859AC_SUBST([SED])
7860AC_MSG_RESULT([$SED])
7861])#AC_PROG_SED
7862])#m4_ifndef
7863
7864# Old name:
7865AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7866dnl aclocal-1.4 backwards compatibility:
7867dnl AC_DEFUN([LT_AC_PROG_SED], [])
7868
7869
7870# _LT_CHECK_SHELL_FEATURES
7871# ------------------------
7872# Find out whether the shell is Bourne or XSI compatible,
7873# or has some other useful features.
7874m4_defun([_LT_CHECK_SHELL_FEATURES],
7875[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7876# Try some XSI features
7877xsi_shell=no
7878( _lt_dummy="a/b/c"
7879  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7880      = c,a/b,b/c, \
7881    && eval 'test $(( 1 + 1 )) -eq 2 \
7882    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7883  && xsi_shell=yes
7884AC_MSG_RESULT([$xsi_shell])
7885_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7886
7887AC_MSG_CHECKING([whether the shell understands "+="])
7888lt_shell_append=no
7889( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7890    >/dev/null 2>&1 \
7891  && lt_shell_append=yes
7892AC_MSG_RESULT([$lt_shell_append])
7893_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7894
7895if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7896  lt_unset=unset
7897else
7898  lt_unset=false
7899fi
7900_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7901
7902# test EBCDIC or ASCII
7903case `echo X|tr X '\101'` in
7904 A) # ASCII based system
7905    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7906  lt_SP2NL='tr \040 \012'
7907  lt_NL2SP='tr \015\012 \040\040'
7908  ;;
7909 *) # EBCDIC based system
7910  lt_SP2NL='tr \100 \n'
7911  lt_NL2SP='tr \r\n \100\100'
7912  ;;
7913esac
7914_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7915_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7916])# _LT_CHECK_SHELL_FEATURES
7917
7918
7919# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7920# ------------------------------------------------------
7921# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7922# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7923m4_defun([_LT_PROG_FUNCTION_REPLACE],
7924[dnl {
7925sed -e '/^$1 ()$/,/^} # $1 /c\
7926$1 ()\
7927{\
7928m4_bpatsubsts([$2], [$], [\\], [^\([	 ]\)], [\\\1])
7929} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7930  && mv -f "$cfgfile.tmp" "$cfgfile" \
7931    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7932test 0 -eq $? || _lt_function_replace_fail=:
7933])
7934
7935
7936# _LT_PROG_REPLACE_SHELLFNS
7937# -------------------------
7938# Replace existing portable implementations of several shell functions with
7939# equivalent extended shell implementations where those features are available..
7940m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7941[if test x"$xsi_shell" = xyes; then
7942  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7943    case ${1} in
7944      */*) func_dirname_result="${1%/*}${2}" ;;
7945      *  ) func_dirname_result="${3}" ;;
7946    esac])
7947
7948  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7949    func_basename_result="${1##*/}"])
7950
7951  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7952    case ${1} in
7953      */*) func_dirname_result="${1%/*}${2}" ;;
7954      *  ) func_dirname_result="${3}" ;;
7955    esac
7956    func_basename_result="${1##*/}"])
7957
7958  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7959    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7960    # positional parameters, so assign one to ordinary parameter first.
7961    func_stripname_result=${3}
7962    func_stripname_result=${func_stripname_result#"${1}"}
7963    func_stripname_result=${func_stripname_result%"${2}"}])
7964
7965  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7966    func_split_long_opt_name=${1%%=*}
7967    func_split_long_opt_arg=${1#*=}])
7968
7969  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7970    func_split_short_opt_arg=${1#??}
7971    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7972
7973  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7974    case ${1} in
7975      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7976      *)    func_lo2o_result=${1} ;;
7977    esac])
7978
7979  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
7980
7981  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
7982
7983  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
7984fi
7985
7986if test x"$lt_shell_append" = xyes; then
7987  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
7988
7989  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7990    func_quote_for_eval "${2}"
7991dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7992    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7993
7994  # Save a `func_append' function call where possible by direct use of '+='
7995  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7996    && mv -f "$cfgfile.tmp" "$cfgfile" \
7997      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7998  test 0 -eq $? || _lt_function_replace_fail=:
7999else
8000  # Save a `func_append' function call even when '+=' is not available
8001  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8002    && mv -f "$cfgfile.tmp" "$cfgfile" \
8003      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8004  test 0 -eq $? || _lt_function_replace_fail=:
8005fi
8006
8007if test x"$_lt_function_replace_fail" = x":"; then
8008  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8009fi
8010])
8011
8012# _LT_PATH_CONVERSION_FUNCTIONS
8013# -----------------------------
8014# Determine which file name conversion functions should be used by
8015# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
8016# for certain cross-compile configurations and native mingw.
8017m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8018[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8019AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8020AC_MSG_CHECKING([how to convert $build file names to $host format])
8021AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8022[case $host in
8023  *-*-mingw* )
8024    case $build in
8025      *-*-mingw* ) # actually msys
8026        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8027        ;;
8028      *-*-cygwin* )
8029        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8030        ;;
8031      * ) # otherwise, assume *nix
8032        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8033        ;;
8034    esac
8035    ;;
8036  *-*-cygwin* )
8037    case $build in
8038      *-*-mingw* ) # actually msys
8039        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8040        ;;
8041      *-*-cygwin* )
8042        lt_cv_to_host_file_cmd=func_convert_file_noop
8043        ;;
8044      * ) # otherwise, assume *nix
8045        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8046        ;;
8047    esac
8048    ;;
8049  * ) # unhandled hosts (and "normal" native builds)
8050    lt_cv_to_host_file_cmd=func_convert_file_noop
8051    ;;
8052esac
8053])
8054to_host_file_cmd=$lt_cv_to_host_file_cmd
8055AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8056_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8057         [0], [convert $build file names to $host format])dnl
8058
8059AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8060AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8061[#assume ordinary cross tools, or native build.
8062lt_cv_to_tool_file_cmd=func_convert_file_noop
8063case $host in
8064  *-*-mingw* )
8065    case $build in
8066      *-*-mingw* ) # actually msys
8067        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8068        ;;
8069    esac
8070    ;;
8071esac
8072])
8073to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8074AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8075_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8076         [0], [convert $build files to toolchain format])dnl
8077])# _LT_PATH_CONVERSION_FUNCTIONS
8078
8079# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
8080#
8081#   Copyright (C) 1999-2006, 2007, 2008, 2011 Free Software Foundation, Inc.
8082#   Written by Thomas Tanner, 1999
8083#
8084# This file is free software; the Free Software Foundation gives
8085# unlimited permission to copy and/or distribute it, with or without
8086# modifications, as long as this notice is preserved.
8087
8088# serial 18 LTDL_INIT
8089
8090# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
8091# ------------------------------------------
8092# DIRECTORY contains the libltdl sources.  It is okay to call this
8093# function multiple times, as long as the same DIRECTORY is always given.
8094AC_DEFUN([LT_CONFIG_LTDL_DIR],
8095[AC_BEFORE([$0], [LTDL_INIT])
8096_$0($*)
8097])# LT_CONFIG_LTDL_DIR
8098
8099# We break this out into a separate macro, so that we can call it safely
8100# internally without being caught accidentally by the sed scan in libtoolize.
8101m4_defun([_LT_CONFIG_LTDL_DIR],
8102[dnl remove trailing slashes
8103m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
8104m4_case(_LTDL_DIR,
8105	[], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
8106	     m4_if(_ARG_DIR, [.],
8107	             [],
8108		 [m4_define([_LTDL_DIR], _ARG_DIR)
8109	          _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
8110    [m4_if(_ARG_DIR, _LTDL_DIR,
8111	    [],
8112	[m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
8113m4_popdef([_ARG_DIR])
8114])# _LT_CONFIG_LTDL_DIR
8115
8116# Initialise:
8117m4_define([_LTDL_DIR], [])
8118
8119
8120# _LT_BUILD_PREFIX
8121# ----------------
8122# If Autoconf is new enough, expand to `${top_build_prefix}', otherwise
8123# to `${top_builddir}/'.
8124m4_define([_LT_BUILD_PREFIX],
8125[m4_ifdef([AC_AUTOCONF_VERSION],
8126   [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
8127	  [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
8128			  [${top_build_prefix}],
8129			  [${top_builddir}/])],
8130	  [${top_build_prefix}])],
8131   [${top_builddir}/])[]dnl
8132])
8133
8134
8135# LTDL_CONVENIENCE
8136# ----------------
8137# sets LIBLTDL to the link flags for the libltdl convenience library and
8138# LTDLINCL to the include flags for the libltdl header and adds
8139# --enable-ltdl-convenience to the configure arguments.  Note that
8140# AC_CONFIG_SUBDIRS is not called here.  LIBLTDL will be prefixed with
8141# '${top_build_prefix}' if available, otherwise with '${top_builddir}/',
8142# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
8143# quotes!).  If your package is not flat and you're not using automake,
8144# define top_build_prefix, top_builddir, and top_srcdir appropriately
8145# in your Makefiles.
8146AC_DEFUN([LTDL_CONVENIENCE],
8147[AC_BEFORE([$0], [LTDL_INIT])dnl
8148dnl Although the argument is deprecated and no longer documented,
8149dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
8150dnl here make sure it is the same as any other declaration of libltdl's
8151dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
8152dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
8153m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
8154_$0()
8155])# LTDL_CONVENIENCE
8156
8157# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
8158# now we have LT_CONFIG_LTDL_DIR:
8159AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
8160[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
8161_LTDL_CONVENIENCE])
8162
8163dnl aclocal-1.4 backwards compatibility:
8164dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
8165
8166
8167# _LTDL_CONVENIENCE
8168# -----------------
8169# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
8170m4_defun([_LTDL_CONVENIENCE],
8171[case $enable_ltdl_convenience in
8172  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
8173  "") enable_ltdl_convenience=yes
8174      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
8175esac
8176LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
8177LTDLDEPS=$LIBLTDL
8178LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
8179
8180AC_SUBST([LIBLTDL])
8181AC_SUBST([LTDLDEPS])
8182AC_SUBST([LTDLINCL])
8183
8184# For backwards non-gettext consistent compatibility...
8185INCLTDL="$LTDLINCL"
8186AC_SUBST([INCLTDL])
8187])# _LTDL_CONVENIENCE
8188
8189
8190# LTDL_INSTALLABLE
8191# ----------------
8192# sets LIBLTDL to the link flags for the libltdl installable library
8193# and LTDLINCL to the include flags for the libltdl header and adds
8194# --enable-ltdl-install to the configure arguments.  Note that
8195# AC_CONFIG_SUBDIRS is not called from here.  If an installed libltdl
8196# is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if
8197# available, otherwise with '${top_builddir}/', and LTDLINCL will be
8198# prefixed with '${top_srcdir}/' (note the single quotes!).  If your
8199# package is not flat and you're not using automake, define top_build_prefix,
8200# top_builddir, and top_srcdir appropriately in your Makefiles.
8201# In the future, this macro may have to be called after LT_INIT.
8202AC_DEFUN([LTDL_INSTALLABLE],
8203[AC_BEFORE([$0], [LTDL_INIT])dnl
8204dnl Although the argument is deprecated and no longer documented,
8205dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
8206dnl here make sure it is the same as any other declaration of libltdl's
8207dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
8208dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
8209m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
8210_$0()
8211])# LTDL_INSTALLABLE
8212
8213# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
8214# now we have LT_CONFIG_LTDL_DIR:
8215AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
8216[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
8217_LTDL_INSTALLABLE])
8218
8219dnl aclocal-1.4 backwards compatibility:
8220dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
8221
8222
8223# _LTDL_INSTALLABLE
8224# -----------------
8225# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
8226m4_defun([_LTDL_INSTALLABLE],
8227[if test -f $prefix/lib/libltdl.la; then
8228  lt_save_LDFLAGS="$LDFLAGS"
8229  LDFLAGS="-L$prefix/lib $LDFLAGS"
8230  AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
8231  LDFLAGS="$lt_save_LDFLAGS"
8232  if test x"${lt_lib_ltdl-no}" = xyes; then
8233    if test x"$enable_ltdl_install" != xyes; then
8234      # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
8235      AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install'])
8236      enable_ltdl_install=no
8237    fi
8238  elif test x"$enable_ltdl_install" = xno; then
8239    AC_MSG_WARN([libltdl not installed, but installation disabled])
8240  fi
8241fi
8242
8243# If configure.ac declared an installable ltdl, and the user didn't override
8244# with --disable-ltdl-install, we will install the shipped libltdl.
8245case $enable_ltdl_install in
8246  no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
8247      LIBLTDL="-lltdl"
8248      LTDLDEPS=
8249      LTDLINCL=
8250      ;;
8251  *)  enable_ltdl_install=yes
8252      ac_configure_args="$ac_configure_args --enable-ltdl-install"
8253      LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
8254      LTDLDEPS=$LIBLTDL
8255      LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
8256      ;;
8257esac
8258
8259AC_SUBST([LIBLTDL])
8260AC_SUBST([LTDLDEPS])
8261AC_SUBST([LTDLINCL])
8262
8263# For backwards non-gettext consistent compatibility...
8264INCLTDL="$LTDLINCL"
8265AC_SUBST([INCLTDL])
8266])# LTDL_INSTALLABLE
8267
8268
8269# _LTDL_MODE_DISPATCH
8270# -------------------
8271m4_define([_LTDL_MODE_DISPATCH],
8272[dnl If _LTDL_DIR is `.', then we are configuring libltdl itself:
8273m4_if(_LTDL_DIR, [],
8274	[],
8275    dnl if _LTDL_MODE was not set already, the default value is `subproject':
8276    [m4_case(m4_default(_LTDL_MODE, [subproject]),
8277	  [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
8278			  _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])],
8279	  [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])],
8280	  [recursive], [],
8281	[m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
8282dnl Be careful not to expand twice:
8283m4_define([$0], [])
8284])# _LTDL_MODE_DISPATCH
8285
8286
8287# _LT_LIBOBJ(MODULE_NAME)
8288# -----------------------
8289# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
8290# of into LIBOBJS.
8291AC_DEFUN([_LT_LIBOBJ], [
8292  m4_pattern_allow([^_LT_LIBOBJS$])
8293  _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
8294])# _LT_LIBOBJS
8295
8296
8297# LTDL_INIT([OPTIONS])
8298# --------------------
8299# Clients of libltdl can use this macro to allow the installer to
8300# choose between a shipped copy of the ltdl sources or a preinstalled
8301# version of the library.  If the shipped ltdl sources are not in a
8302# subdirectory named libltdl, the directory name must be given by
8303# LT_CONFIG_LTDL_DIR.
8304AC_DEFUN([LTDL_INIT],
8305[dnl Parse OPTIONS
8306_LT_SET_OPTIONS([$0], [$1])
8307
8308dnl We need to keep our own list of libobjs separate from our parent project,
8309dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
8310dnl we look for our own LIBOBJs.
8311m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
8312m4_pushdef([AC_LIBSOURCES])
8313
8314dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
8315m4_if(_LTDL_MODE, [],
8316        [m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
8317        m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
8318                [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
8319
8320AC_ARG_WITH([included_ltdl],
8321    [AS_HELP_STRING([--with-included-ltdl],
8322                    [use the GNU ltdl sources included here])])
8323
8324if test "x$with_included_ltdl" != xyes; then
8325  # We are not being forced to use the included libltdl sources, so
8326  # decide whether there is a useful installed version we can use.
8327  AC_CHECK_HEADER([ltdl.h],
8328      [AC_CHECK_DECL([lt_dlinterface_register],
8329	   [AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
8330	       [with_included_ltdl=no],
8331	       [with_included_ltdl=yes])],
8332	   [with_included_ltdl=yes],
8333	   [AC_INCLUDES_DEFAULT
8334	    #include <ltdl.h>])],
8335      [with_included_ltdl=yes],
8336      [AC_INCLUDES_DEFAULT]
8337  )
8338fi
8339
8340dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
8341dnl was called yet, then for old times' sake, we assume libltdl is in an
8342dnl eponymous directory:
8343AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
8344
8345AC_ARG_WITH([ltdl_include],
8346    [AS_HELP_STRING([--with-ltdl-include=DIR],
8347                    [use the ltdl headers installed in DIR])])
8348
8349if test -n "$with_ltdl_include"; then
8350  if test -f "$with_ltdl_include/ltdl.h"; then :
8351  else
8352    AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include'])
8353  fi
8354else
8355  with_ltdl_include=no
8356fi
8357
8358AC_ARG_WITH([ltdl_lib],
8359    [AS_HELP_STRING([--with-ltdl-lib=DIR],
8360                    [use the libltdl.la installed in DIR])])
8361
8362if test -n "$with_ltdl_lib"; then
8363  if test -f "$with_ltdl_lib/libltdl.la"; then :
8364  else
8365    AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib'])
8366  fi
8367else
8368  with_ltdl_lib=no
8369fi
8370
8371case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
8372  ,yes,no,no,)
8373	m4_case(m4_default(_LTDL_TYPE, [convenience]),
8374	    [convenience], [_LTDL_CONVENIENCE],
8375	    [installable], [_LTDL_INSTALLABLE],
8376	  [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
8377	;;
8378  ,no,no,no,)
8379	# If the included ltdl is not to be used, then use the
8380	# preinstalled libltdl we found.
8381	AC_DEFINE([HAVE_LTDL], [1],
8382	  [Define this if a modern libltdl is already installed])
8383	LIBLTDL=-lltdl
8384	LTDLDEPS=
8385	LTDLINCL=
8386	;;
8387  ,no*,no,*)
8388	AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together])
8389	;;
8390  *)	with_included_ltdl=no
8391	LIBLTDL="-L$with_ltdl_lib -lltdl"
8392	LTDLDEPS=
8393	LTDLINCL="-I$with_ltdl_include"
8394	;;
8395esac
8396INCLTDL="$LTDLINCL"
8397
8398# Report our decision...
8399AC_MSG_CHECKING([where to find libltdl headers])
8400AC_MSG_RESULT([$LTDLINCL])
8401AC_MSG_CHECKING([where to find libltdl library])
8402AC_MSG_RESULT([$LIBLTDL])
8403
8404_LTDL_SETUP
8405
8406dnl restore autoconf definition.
8407m4_popdef([AC_LIBOBJ])
8408m4_popdef([AC_LIBSOURCES])
8409
8410AC_CONFIG_COMMANDS_PRE([
8411    _ltdl_libobjs=
8412    _ltdl_ltlibobjs=
8413    if test -n "$_LT_LIBOBJS"; then
8414      # Remove the extension.
8415      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
8416      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
8417        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
8418        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
8419      done
8420    fi
8421    AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
8422    AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
8423])
8424
8425# Only expand once:
8426m4_define([LTDL_INIT])
8427])# LTDL_INIT
8428
8429# Old names:
8430AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
8431AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
8432AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
8433dnl aclocal-1.4 backwards compatibility:
8434dnl AC_DEFUN([AC_LIB_LTDL], [])
8435dnl AC_DEFUN([AC_WITH_LTDL], [])
8436dnl AC_DEFUN([LT_WITH_LTDL], [])
8437
8438
8439# _LTDL_SETUP
8440# -----------
8441# Perform all the checks necessary for compilation of the ltdl objects
8442#  -- including compiler checks and header checks.  This is a public
8443# interface  mainly for the benefit of libltdl's own configure.ac, most
8444# other users should call LTDL_INIT instead.
8445AC_DEFUN([_LTDL_SETUP],
8446[AC_REQUIRE([AC_PROG_CC])dnl
8447AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
8448AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
8449AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
8450AC_REQUIRE([LT_LIB_DLLOAD])dnl
8451AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
8452AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
8453AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
8454AC_REQUIRE([gl_FUNC_ARGZ])dnl
8455
8456m4_require([_LT_CHECK_OBJDIR])dnl
8457m4_require([_LT_HEADER_DLFCN])dnl
8458m4_require([_LT_CHECK_DLPREOPEN])dnl
8459m4_require([_LT_DECL_SED])dnl
8460
8461dnl Don't require this, or it will be expanded earlier than the code
8462dnl that sets the variables it relies on:
8463_LT_ENABLE_INSTALL
8464
8465dnl _LTDL_MODE specific code must be called at least once:
8466_LTDL_MODE_DISPATCH
8467
8468# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
8469# the user used.  This is so that ltdl.h can pick up the parent projects
8470# config.h file, The first file in AC_CONFIG_HEADERS must contain the
8471# definitions required by ltdl.c.
8472# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
8473AC_CONFIG_COMMANDS_PRE([dnl
8474m4_pattern_allow([^LT_CONFIG_H$])dnl
8475m4_ifset([AH_HEADER],
8476    [LT_CONFIG_H=AH_HEADER],
8477    [m4_ifset([AC_LIST_HEADERS],
8478	    [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[      ]]*,,;s,[[ :]].*$,,'`],
8479	[])])])
8480AC_SUBST([LT_CONFIG_H])
8481
8482AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
8483	[], [], [AC_INCLUDES_DEFAULT])
8484
8485AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
8486AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
8487
8488m4_pattern_allow([LT_LIBEXT])dnl
8489AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
8490
8491name=
8492eval "lt_libprefix=\"$libname_spec\""
8493m4_pattern_allow([LT_LIBPREFIX])dnl
8494AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix])
8495
8496name=ltdl
8497eval "LTDLOPEN=\"$libname_spec\""
8498AC_SUBST([LTDLOPEN])
8499])# _LTDL_SETUP
8500
8501
8502# _LT_ENABLE_INSTALL
8503# ------------------
8504m4_define([_LT_ENABLE_INSTALL],
8505[AC_ARG_ENABLE([ltdl-install],
8506    [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
8507
8508case ,${enable_ltdl_install},${enable_ltdl_convenience} in
8509  *yes*) ;;
8510  *) enable_ltdl_convenience=yes ;;
8511esac
8512
8513m4_ifdef([AM_CONDITIONAL],
8514[AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
8515 AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)])
8516])# _LT_ENABLE_INSTALL
8517
8518
8519# LT_SYS_DLOPEN_DEPLIBS
8520# ---------------------
8521AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
8522[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8523AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
8524  [lt_cv_sys_dlopen_deplibs],
8525  [# PORTME does your system automatically load deplibs for dlopen?
8526  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8527  # For now, we just catch OSes we know something about -- in the
8528  # future, we'll try test this programmatically.
8529  lt_cv_sys_dlopen_deplibs=unknown
8530  case $host_os in
8531  aix3*|aix4.1.*|aix4.2.*)
8532    # Unknown whether this is true for these versions of AIX, but
8533    # we want this `case' here to explicitly catch those versions.
8534    lt_cv_sys_dlopen_deplibs=unknown
8535    ;;
8536  aix[[4-9]]*)
8537    lt_cv_sys_dlopen_deplibs=yes
8538    ;;
8539  amigaos*)
8540    case $host_cpu in
8541    powerpc)
8542      lt_cv_sys_dlopen_deplibs=no
8543      ;;
8544    esac
8545    ;;
8546  darwin*)
8547    # Assuming the user has installed a libdl from somewhere, this is true
8548    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8549    lt_cv_sys_dlopen_deplibs=yes
8550    ;;
8551  freebsd* | dragonfly*)
8552    lt_cv_sys_dlopen_deplibs=yes
8553    ;;
8554  gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
8555    # GNU and its variants, using gnu ld.so (Glibc)
8556    lt_cv_sys_dlopen_deplibs=yes
8557    ;;
8558  hpux10*|hpux11*)
8559    lt_cv_sys_dlopen_deplibs=yes
8560    ;;
8561  interix*)
8562    lt_cv_sys_dlopen_deplibs=yes
8563    ;;
8564  irix[[12345]]*|irix6.[[01]]*)
8565    # Catch all versions of IRIX before 6.2, and indicate that we don't
8566    # know how it worked for any of those versions.
8567    lt_cv_sys_dlopen_deplibs=unknown
8568    ;;
8569  irix*)
8570    # The case above catches anything before 6.2, and it's known that
8571    # at 6.2 and later dlopen does load deplibs.
8572    lt_cv_sys_dlopen_deplibs=yes
8573    ;;
8574  netbsd* | netbsdelf*-gnu)
8575    lt_cv_sys_dlopen_deplibs=yes
8576    ;;
8577  openbsd*)
8578    lt_cv_sys_dlopen_deplibs=yes
8579    ;;
8580  osf[[1234]]*)
8581    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8582    # it did *not* use an RPATH in a shared library to find objects the
8583    # library depends on, so we explicitly say `no'.
8584    lt_cv_sys_dlopen_deplibs=no
8585    ;;
8586  osf5.0|osf5.0a|osf5.1)
8587    # dlopen *does* load deplibs and with the right loader patch applied
8588    # it even uses RPATH in a shared library to search for shared objects
8589    # that the library depends on, but there's no easy way to know if that
8590    # patch is installed.  Since this is the case, all we can really
8591    # say is unknown -- it depends on the patch being installed.  If
8592    # it is, this changes to `yes'.  Without it, it would be `no'.
8593    lt_cv_sys_dlopen_deplibs=unknown
8594    ;;
8595  osf*)
8596    # the two cases above should catch all versions of osf <= 5.1.  Read
8597    # the comments above for what we know about them.
8598    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8599    # is used to find them so we can finally say `yes'.
8600    lt_cv_sys_dlopen_deplibs=yes
8601    ;;
8602  qnx*)
8603    lt_cv_sys_dlopen_deplibs=yes
8604    ;;
8605  solaris*)
8606    lt_cv_sys_dlopen_deplibs=yes
8607    ;;
8608  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8609    libltdl_cv_sys_dlopen_deplibs=yes
8610    ;;
8611  esac
8612  ])
8613if test "$lt_cv_sys_dlopen_deplibs" != yes; then
8614 AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
8615    [Define if the OS needs help to load dependent libraries for dlopen().])
8616fi
8617])# LT_SYS_DLOPEN_DEPLIBS
8618
8619# Old name:
8620AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
8621dnl aclocal-1.4 backwards compatibility:
8622dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
8623
8624
8625# LT_SYS_MODULE_EXT
8626# -----------------
8627AC_DEFUN([LT_SYS_MODULE_EXT],
8628[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8629AC_CACHE_CHECK([which extension is used for runtime loadable modules],
8630  [libltdl_cv_shlibext],
8631[
8632module=yes
8633eval libltdl_cv_shlibext=$shrext_cmds
8634module=no
8635eval libltdl_cv_shrext=$shrext_cmds
8636  ])
8637if test -n "$libltdl_cv_shlibext"; then
8638  m4_pattern_allow([LT_MODULE_EXT])dnl
8639  AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
8640    [Define to the extension used for runtime loadable modules, say, ".so".])
8641fi
8642if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
8643  m4_pattern_allow([LT_SHARED_EXT])dnl
8644  AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"],
8645    [Define to the shared library suffix, say, ".dylib".])
8646fi
8647])# LT_SYS_MODULE_EXT
8648
8649# Old name:
8650AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
8651dnl aclocal-1.4 backwards compatibility:
8652dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
8653
8654
8655# LT_SYS_MODULE_PATH
8656# ------------------
8657AC_DEFUN([LT_SYS_MODULE_PATH],
8658[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8659AC_CACHE_CHECK([which variable specifies run-time module search path],
8660  [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])
8661if test -n "$lt_cv_module_path_var"; then
8662  m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
8663  AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
8664    [Define to the name of the environment variable that determines the run-time module search path.])
8665fi
8666])# LT_SYS_MODULE_PATH
8667
8668# Old name:
8669AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
8670dnl aclocal-1.4 backwards compatibility:
8671dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
8672
8673
8674# LT_SYS_DLSEARCH_PATH
8675# --------------------
8676AC_DEFUN([LT_SYS_DLSEARCH_PATH],
8677[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8678AC_CACHE_CHECK([for the default library search path],
8679  [lt_cv_sys_dlsearch_path],
8680  [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])
8681if test -n "$lt_cv_sys_dlsearch_path"; then
8682  sys_dlsearch_path=
8683  for dir in $lt_cv_sys_dlsearch_path; do
8684    if test -z "$sys_dlsearch_path"; then
8685      sys_dlsearch_path="$dir"
8686    else
8687      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
8688    fi
8689  done
8690  m4_pattern_allow([LT_DLSEARCH_PATH])dnl
8691  AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
8692    [Define to the system default library search path.])
8693fi
8694])# LT_SYS_DLSEARCH_PATH
8695
8696# Old name:
8697AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
8698dnl aclocal-1.4 backwards compatibility:
8699dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
8700
8701
8702# _LT_CHECK_DLPREOPEN
8703# -------------------
8704m4_defun([_LT_CHECK_DLPREOPEN],
8705[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8706AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
8707  [libltdl_cv_preloaded_symbols],
8708  [if test -n "$lt_cv_sys_global_symbol_pipe"; then
8709    libltdl_cv_preloaded_symbols=yes
8710  else
8711    libltdl_cv_preloaded_symbols=no
8712  fi
8713  ])
8714if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8715  AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
8716    [Define if libtool can extract symbol lists from object files.])
8717fi
8718])# _LT_CHECK_DLPREOPEN
8719
8720
8721# LT_LIB_DLLOAD
8722# -------------
8723AC_DEFUN([LT_LIB_DLLOAD],
8724[m4_pattern_allow([^LT_DLLOADERS$])
8725LT_DLLOADERS=
8726AC_SUBST([LT_DLLOADERS])
8727
8728AC_LANG_PUSH([C])
8729
8730LIBADD_DLOPEN=
8731AC_SEARCH_LIBS([dlopen], [dl],
8732	[AC_DEFINE([HAVE_LIBDL], [1],
8733		   [Define if you have the libdl library or equivalent.])
8734	if test "$ac_cv_search_dlopen" != "none required" ; then
8735	  LIBADD_DLOPEN="-ldl"
8736	fi
8737	libltdl_cv_lib_dl_dlopen="yes"
8738	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
8739    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
8740#  include <dlfcn.h>
8741#endif
8742    ]], [[dlopen(0, 0);]])],
8743	    [AC_DEFINE([HAVE_LIBDL], [1],
8744		       [Define if you have the libdl library or equivalent.])
8745	    libltdl_cv_func_dlopen="yes"
8746	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
8747	[AC_CHECK_LIB([svld], [dlopen],
8748		[AC_DEFINE([HAVE_LIBDL], [1],
8749			 [Define if you have the libdl library or equivalent.])
8750	        LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
8751		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
8752if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8753then
8754  lt_save_LIBS="$LIBS"
8755  LIBS="$LIBS $LIBADD_DLOPEN"
8756  AC_CHECK_FUNCS([dlerror])
8757  LIBS="$lt_save_LIBS"
8758fi
8759AC_SUBST([LIBADD_DLOPEN])
8760
8761LIBADD_SHL_LOAD=
8762AC_CHECK_FUNC([shl_load],
8763	[AC_DEFINE([HAVE_SHL_LOAD], [1],
8764		   [Define if you have the shl_load function.])
8765	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
8766    [AC_CHECK_LIB([dld], [shl_load],
8767	    [AC_DEFINE([HAVE_SHL_LOAD], [1],
8768		       [Define if you have the shl_load function.])
8769	    LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
8770	    LIBADD_SHL_LOAD="-ldld"])])
8771AC_SUBST([LIBADD_SHL_LOAD])
8772
8773case $host_os in
8774darwin[[1567]].*)
8775# We only want this for pre-Mac OS X 10.4.
8776  AC_CHECK_FUNC([_dyld_func_lookup],
8777	[AC_DEFINE([HAVE_DYLD], [1],
8778		   [Define if you have the _dyld_func_lookup function.])
8779	LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
8780  ;;
8781beos*)
8782  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
8783  ;;
8784cygwin* | mingw* | os2* | pw32*)
8785  AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
8786  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
8787  ;;
8788esac
8789
8790AC_CHECK_LIB([dld], [dld_link],
8791	[AC_DEFINE([HAVE_DLD], [1],
8792		   [Define if you have the GNU dld library.])
8793		LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
8794AC_SUBST([LIBADD_DLD_LINK])
8795
8796m4_pattern_allow([^LT_DLPREOPEN$])
8797LT_DLPREOPEN=
8798if test -n "$LT_DLLOADERS"
8799then
8800  for lt_loader in $LT_DLLOADERS; do
8801    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
8802  done
8803  AC_DEFINE([HAVE_LIBDLLOADER], [1],
8804            [Define if libdlloader will be built on this platform])
8805fi
8806AC_SUBST([LT_DLPREOPEN])
8807
8808dnl This isn't used anymore, but set it for backwards compatibility
8809LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
8810AC_SUBST([LIBADD_DL])
8811
8812AC_LANG_POP
8813])# LT_LIB_DLLOAD
8814
8815# Old name:
8816AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
8817dnl aclocal-1.4 backwards compatibility:
8818dnl AC_DEFUN([AC_LTDL_DLLIB], [])
8819
8820
8821# LT_SYS_SYMBOL_USCORE
8822# --------------------
8823# does the compiler prefix global symbols with an underscore?
8824AC_DEFUN([LT_SYS_SYMBOL_USCORE],
8825[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8826AC_CACHE_CHECK([for _ prefix in compiled symbols],
8827  [lt_cv_sys_symbol_underscore],
8828  [lt_cv_sys_symbol_underscore=no
8829  cat > conftest.$ac_ext <<_LT_EOF
8830void nm_test_func(){}
8831int main(){nm_test_func;return 0;}
8832_LT_EOF
8833  if AC_TRY_EVAL(ac_compile); then
8834    # Now try to grab the symbols.
8835    ac_nlist=conftest.nm
8836    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
8837      # See whether the symbols have a leading underscore.
8838      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8839        lt_cv_sys_symbol_underscore=yes
8840      else
8841        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8842	  :
8843        else
8844	  echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
8845        fi
8846      fi
8847    else
8848      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
8849    fi
8850  else
8851    echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
8852    cat conftest.c >&AS_MESSAGE_LOG_FD
8853  fi
8854  rm -rf conftest*
8855  ])
8856  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
8857  AC_SUBST([sys_symbol_underscore])
8858])# LT_SYS_SYMBOL_USCORE
8859
8860# Old name:
8861AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
8862dnl aclocal-1.4 backwards compatibility:
8863dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
8864
8865
8866# LT_FUNC_DLSYM_USCORE
8867# --------------------
8868AC_DEFUN([LT_FUNC_DLSYM_USCORE],
8869[AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
8870if test x"$lt_cv_sys_symbol_underscore" = xyes; then
8871  if test x"$libltdl_cv_func_dlopen" = xyes ||
8872     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8873	AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
8874	  [libltdl_cv_need_uscore],
8875	  [libltdl_cv_need_uscore=unknown
8876          save_LIBS="$LIBS"
8877          LIBS="$LIBS $LIBADD_DLOPEN"
8878	  _LT_TRY_DLOPEN_SELF(
8879	    [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],
8880	    [],				 [libltdl_cv_need_uscore=cross])
8881	  LIBS="$save_LIBS"
8882	])
8883  fi
8884fi
8885
8886if test x"$libltdl_cv_need_uscore" = xyes; then
8887  AC_DEFINE([NEED_USCORE], [1],
8888    [Define if dlsym() requires a leading underscore in symbol names.])
8889fi
8890])# LT_FUNC_DLSYM_USCORE
8891
8892# Old name:
8893AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
8894dnl aclocal-1.4 backwards compatibility:
8895dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
8896
8897# Helper functions for option handling.                    -*- Autoconf -*-
8898#
8899#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8900#   Inc.
8901#   Written by Gary V. Vaughan, 2004
8902#
8903# This file is free software; the Free Software Foundation gives
8904# unlimited permission to copy and/or distribute it, with or without
8905# modifications, as long as this notice is preserved.
8906
8907# serial 7 ltoptions.m4
8908
8909# This is to help aclocal find these macros, as it can't see m4_define.
8910AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8911
8912
8913# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8914# ------------------------------------------
8915m4_define([_LT_MANGLE_OPTION],
8916[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8917
8918
8919# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8920# ---------------------------------------
8921# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8922# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8923# saved as a flag.
8924m4_define([_LT_SET_OPTION],
8925[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8926m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8927        _LT_MANGLE_DEFUN([$1], [$2]),
8928    [m4_warning([Unknown $1 option `$2'])])[]dnl
8929])
8930
8931
8932# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8933# ------------------------------------------------------------
8934# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8935m4_define([_LT_IF_OPTION],
8936[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8937
8938
8939# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8940# -------------------------------------------------------
8941# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8942# are set.
8943m4_define([_LT_UNLESS_OPTIONS],
8944[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8945	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8946		      [m4_define([$0_found])])])[]dnl
8947m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8948])[]dnl
8949])
8950
8951
8952# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8953# ----------------------------------------
8954# OPTION-LIST is a space-separated list of Libtool options associated
8955# with MACRO-NAME.  If any OPTION has a matching handler declared with
8956# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8957# the unknown option and exit.
8958m4_defun([_LT_SET_OPTIONS],
8959[# Set options
8960m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8961    [_LT_SET_OPTION([$1], _LT_Option)])
8962
8963m4_if([$1],[LT_INIT],[
8964  dnl
8965  dnl Simply set some default values (i.e off) if boolean options were not
8966  dnl specified:
8967  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8968  ])
8969  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8970  ])
8971  dnl
8972  dnl If no reference was made to various pairs of opposing options, then
8973  dnl we run the default mode handler for the pair.  For example, if neither
8974  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8975  dnl archives by default:
8976  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8977  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8978  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8979  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8980  		   [_LT_ENABLE_FAST_INSTALL])
8981  ])
8982])# _LT_SET_OPTIONS
8983
8984
8985
8986# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8987# -----------------------------------------
8988m4_define([_LT_MANGLE_DEFUN],
8989[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8990
8991
8992# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8993# -----------------------------------------------
8994m4_define([LT_OPTION_DEFINE],
8995[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8996])# LT_OPTION_DEFINE
8997
8998
8999# dlopen
9000# ------
9001LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
9002])
9003
9004AU_DEFUN([AC_LIBTOOL_DLOPEN],
9005[_LT_SET_OPTION([LT_INIT], [dlopen])
9006AC_DIAGNOSE([obsolete],
9007[$0: Remove this warning and the call to _LT_SET_OPTION when you
9008put the `dlopen' option into LT_INIT's first parameter.])
9009])
9010
9011dnl aclocal-1.4 backwards compatibility:
9012dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
9013
9014
9015# win32-dll
9016# ---------
9017# Declare package support for building win32 dll's.
9018LT_OPTION_DEFINE([LT_INIT], [win32-dll],
9019[enable_win32_dll=yes
9020
9021case $host in
9022*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9023  AC_CHECK_TOOL(AS, as, false)
9024  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
9025  AC_CHECK_TOOL(OBJDUMP, objdump, false)
9026  ;;
9027esac
9028
9029test -z "$AS" && AS=as
9030_LT_DECL([], [AS],      [1], [Assembler program])dnl
9031
9032test -z "$DLLTOOL" && DLLTOOL=dlltool
9033_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
9034
9035test -z "$OBJDUMP" && OBJDUMP=objdump
9036_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
9037])# win32-dll
9038
9039AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
9040[AC_REQUIRE([AC_CANONICAL_HOST])dnl
9041_LT_SET_OPTION([LT_INIT], [win32-dll])
9042AC_DIAGNOSE([obsolete],
9043[$0: Remove this warning and the call to _LT_SET_OPTION when you
9044put the `win32-dll' option into LT_INIT's first parameter.])
9045])
9046
9047dnl aclocal-1.4 backwards compatibility:
9048dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
9049
9050
9051# _LT_ENABLE_SHARED([DEFAULT])
9052# ----------------------------
9053# implement the --enable-shared flag, and supports the `shared' and
9054# `disable-shared' LT_INIT options.
9055# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
9056m4_define([_LT_ENABLE_SHARED],
9057[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
9058AC_ARG_ENABLE([shared],
9059    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
9060	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
9061    [p=${PACKAGE-default}
9062    case $enableval in
9063    yes) enable_shared=yes ;;
9064    no) enable_shared=no ;;
9065    *)
9066      enable_shared=no
9067      # Look at the argument we got.  We use all the common list separators.
9068      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9069      for pkg in $enableval; do
9070	IFS="$lt_save_ifs"
9071	if test "X$pkg" = "X$p"; then
9072	  enable_shared=yes
9073	fi
9074      done
9075      IFS="$lt_save_ifs"
9076      ;;
9077    esac],
9078    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
9079
9080    _LT_DECL([build_libtool_libs], [enable_shared], [0],
9081	[Whether or not to build shared libraries])
9082])# _LT_ENABLE_SHARED
9083
9084LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
9085LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
9086
9087# Old names:
9088AC_DEFUN([AC_ENABLE_SHARED],
9089[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
9090])
9091
9092AC_DEFUN([AC_DISABLE_SHARED],
9093[_LT_SET_OPTION([LT_INIT], [disable-shared])
9094])
9095
9096AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
9097AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9098
9099dnl aclocal-1.4 backwards compatibility:
9100dnl AC_DEFUN([AM_ENABLE_SHARED], [])
9101dnl AC_DEFUN([AM_DISABLE_SHARED], [])
9102
9103
9104
9105# _LT_ENABLE_STATIC([DEFAULT])
9106# ----------------------------
9107# implement the --enable-static flag, and support the `static' and
9108# `disable-static' LT_INIT options.
9109# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
9110m4_define([_LT_ENABLE_STATIC],
9111[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
9112AC_ARG_ENABLE([static],
9113    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
9114	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
9115    [p=${PACKAGE-default}
9116    case $enableval in
9117    yes) enable_static=yes ;;
9118    no) enable_static=no ;;
9119    *)
9120     enable_static=no
9121      # Look at the argument we got.  We use all the common list separators.
9122      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9123      for pkg in $enableval; do
9124	IFS="$lt_save_ifs"
9125	if test "X$pkg" = "X$p"; then
9126	  enable_static=yes
9127	fi
9128      done
9129      IFS="$lt_save_ifs"
9130      ;;
9131    esac],
9132    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
9133
9134    _LT_DECL([build_old_libs], [enable_static], [0],
9135	[Whether or not to build static libraries])
9136])# _LT_ENABLE_STATIC
9137
9138LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
9139LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
9140
9141# Old names:
9142AC_DEFUN([AC_ENABLE_STATIC],
9143[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
9144])
9145
9146AC_DEFUN([AC_DISABLE_STATIC],
9147[_LT_SET_OPTION([LT_INIT], [disable-static])
9148])
9149
9150AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
9151AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9152
9153dnl aclocal-1.4 backwards compatibility:
9154dnl AC_DEFUN([AM_ENABLE_STATIC], [])
9155dnl AC_DEFUN([AM_DISABLE_STATIC], [])
9156
9157
9158
9159# _LT_ENABLE_FAST_INSTALL([DEFAULT])
9160# ----------------------------------
9161# implement the --enable-fast-install flag, and support the `fast-install'
9162# and `disable-fast-install' LT_INIT options.
9163# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
9164m4_define([_LT_ENABLE_FAST_INSTALL],
9165[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
9166AC_ARG_ENABLE([fast-install],
9167    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
9168    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
9169    [p=${PACKAGE-default}
9170    case $enableval in
9171    yes) enable_fast_install=yes ;;
9172    no) enable_fast_install=no ;;
9173    *)
9174      enable_fast_install=no
9175      # Look at the argument we got.  We use all the common list separators.
9176      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9177      for pkg in $enableval; do
9178	IFS="$lt_save_ifs"
9179	if test "X$pkg" = "X$p"; then
9180	  enable_fast_install=yes
9181	fi
9182      done
9183      IFS="$lt_save_ifs"
9184      ;;
9185    esac],
9186    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
9187
9188_LT_DECL([fast_install], [enable_fast_install], [0],
9189	 [Whether or not to optimize for fast installation])dnl
9190])# _LT_ENABLE_FAST_INSTALL
9191
9192LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
9193LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
9194
9195# Old names:
9196AU_DEFUN([AC_ENABLE_FAST_INSTALL],
9197[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
9198AC_DIAGNOSE([obsolete],
9199[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9200the `fast-install' option into LT_INIT's first parameter.])
9201])
9202
9203AU_DEFUN([AC_DISABLE_FAST_INSTALL],
9204[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
9205AC_DIAGNOSE([obsolete],
9206[$0: Remove this warning and the call to _LT_SET_OPTION when you put
9207the `disable-fast-install' option into LT_INIT's first parameter.])
9208])
9209
9210dnl aclocal-1.4 backwards compatibility:
9211dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
9212dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9213
9214
9215# _LT_WITH_PIC([MODE])
9216# --------------------
9217# implement the --with-pic flag, and support the `pic-only' and `no-pic'
9218# LT_INIT options.
9219# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
9220m4_define([_LT_WITH_PIC],
9221[AC_ARG_WITH([pic],
9222    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
9223	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
9224    [lt_p=${PACKAGE-default}
9225    case $withval in
9226    yes|no) pic_mode=$withval ;;
9227    *)
9228      pic_mode=default
9229      # Look at the argument we got.  We use all the common list separators.
9230      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9231      for lt_pkg in $withval; do
9232	IFS="$lt_save_ifs"
9233	if test "X$lt_pkg" = "X$lt_p"; then
9234	  pic_mode=yes
9235	fi
9236      done
9237      IFS="$lt_save_ifs"
9238      ;;
9239    esac],
9240    [pic_mode=default])
9241
9242test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9243
9244_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
9245])# _LT_WITH_PIC
9246
9247LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
9248LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
9249
9250# Old name:
9251AU_DEFUN([AC_LIBTOOL_PICMODE],
9252[_LT_SET_OPTION([LT_INIT], [pic-only])
9253AC_DIAGNOSE([obsolete],
9254[$0: Remove this warning and the call to _LT_SET_OPTION when you
9255put the `pic-only' option into LT_INIT's first parameter.])
9256])
9257
9258dnl aclocal-1.4 backwards compatibility:
9259dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
9260
9261
9262m4_define([_LTDL_MODE], [])
9263LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
9264		 [m4_define([_LTDL_MODE], [nonrecursive])])
9265LT_OPTION_DEFINE([LTDL_INIT], [recursive],
9266		 [m4_define([_LTDL_MODE], [recursive])])
9267LT_OPTION_DEFINE([LTDL_INIT], [subproject],
9268		 [m4_define([_LTDL_MODE], [subproject])])
9269
9270m4_define([_LTDL_TYPE], [])
9271LT_OPTION_DEFINE([LTDL_INIT], [installable],
9272		 [m4_define([_LTDL_TYPE], [installable])])
9273LT_OPTION_DEFINE([LTDL_INIT], [convenience],
9274		 [m4_define([_LTDL_TYPE], [convenience])])
9275
9276# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
9277#
9278# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
9279# Written by Gary V. Vaughan, 2004
9280#
9281# This file is free software; the Free Software Foundation gives
9282# unlimited permission to copy and/or distribute it, with or without
9283# modifications, as long as this notice is preserved.
9284
9285# serial 6 ltsugar.m4
9286
9287# This is to help aclocal find these macros, as it can't see m4_define.
9288AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
9289
9290
9291# lt_join(SEP, ARG1, [ARG2...])
9292# -----------------------------
9293# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
9294# associated separator.
9295# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
9296# versions in m4sugar had bugs.
9297m4_define([lt_join],
9298[m4_if([$#], [1], [],
9299       [$#], [2], [[$2]],
9300       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
9301m4_define([_lt_join],
9302[m4_if([$#$2], [2], [],
9303       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
9304
9305
9306# lt_car(LIST)
9307# lt_cdr(LIST)
9308# ------------
9309# Manipulate m4 lists.
9310# These macros are necessary as long as will still need to support
9311# Autoconf-2.59 which quotes differently.
9312m4_define([lt_car], [[$1]])
9313m4_define([lt_cdr],
9314[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
9315       [$#], 1, [],
9316       [m4_dquote(m4_shift($@))])])
9317m4_define([lt_unquote], $1)
9318
9319
9320# lt_append(MACRO-NAME, STRING, [SEPARATOR])
9321# ------------------------------------------
9322# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
9323# Note that neither SEPARATOR nor STRING are expanded; they are appended
9324# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
9325# No SEPARATOR is output if MACRO-NAME was previously undefined (different
9326# than defined and empty).
9327#
9328# This macro is needed until we can rely on Autoconf 2.62, since earlier
9329# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
9330m4_define([lt_append],
9331[m4_define([$1],
9332	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
9333
9334
9335
9336# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
9337# ----------------------------------------------------------
9338# Produce a SEP delimited list of all paired combinations of elements of
9339# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
9340# has the form PREFIXmINFIXSUFFIXn.
9341# Needed until we can rely on m4_combine added in Autoconf 2.62.
9342m4_define([lt_combine],
9343[m4_if(m4_eval([$# > 3]), [1],
9344       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
9345[[m4_foreach([_Lt_prefix], [$2],
9346	     [m4_foreach([_Lt_suffix],
9347		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
9348	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
9349
9350
9351# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
9352# -----------------------------------------------------------------------
9353# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
9354# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
9355m4_define([lt_if_append_uniq],
9356[m4_ifdef([$1],
9357	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
9358		 [lt_append([$1], [$2], [$3])$4],
9359		 [$5])],
9360	  [lt_append([$1], [$2], [$3])$4])])
9361
9362
9363# lt_dict_add(DICT, KEY, VALUE)
9364# -----------------------------
9365m4_define([lt_dict_add],
9366[m4_define([$1($2)], [$3])])
9367
9368
9369# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
9370# --------------------------------------------
9371m4_define([lt_dict_add_subkey],
9372[m4_define([$1($2:$3)], [$4])])
9373
9374
9375# lt_dict_fetch(DICT, KEY, [SUBKEY])
9376# ----------------------------------
9377m4_define([lt_dict_fetch],
9378[m4_ifval([$3],
9379	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
9380    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
9381
9382
9383# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
9384# -----------------------------------------------------------------
9385m4_define([lt_if_dict_fetch],
9386[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
9387	[$5],
9388    [$6])])
9389
9390
9391# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
9392# --------------------------------------------------------------
9393m4_define([lt_dict_filter],
9394[m4_if([$5], [], [],
9395  [lt_join(m4_quote(m4_default([$4], [[, ]])),
9396           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
9397		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
9398])
9399
9400# ltversion.m4 -- version numbers			-*- Autoconf -*-
9401#
9402#   Copyright (C) 2004 Free Software Foundation, Inc.
9403#   Written by Scott James Remnant, 2004
9404#
9405# This file is free software; the Free Software Foundation gives
9406# unlimited permission to copy and/or distribute it, with or without
9407# modifications, as long as this notice is preserved.
9408
9409# @configure_input@
9410
9411# serial 3337 ltversion.m4
9412# This file is part of GNU Libtool
9413
9414m4_define([LT_PACKAGE_VERSION], [2.4.2])
9415m4_define([LT_PACKAGE_REVISION], [1.3337])
9416
9417AC_DEFUN([LTVERSION_VERSION],
9418[macro_version='2.4.2'
9419macro_revision='1.3337'
9420_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9421_LT_DECL(, macro_revision, 0)
9422])
9423
9424# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
9425#
9426#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9427#   Written by Scott James Remnant, 2004.
9428#
9429# This file is free software; the Free Software Foundation gives
9430# unlimited permission to copy and/or distribute it, with or without
9431# modifications, as long as this notice is preserved.
9432
9433# serial 5 lt~obsolete.m4
9434
9435# These exist entirely to fool aclocal when bootstrapping libtool.
9436#
9437# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
9438# which have later been changed to m4_define as they aren't part of the
9439# exported API, or moved to Autoconf or Automake where they belong.
9440#
9441# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
9442# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
9443# using a macro with the same name in our local m4/libtool.m4 it'll
9444# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
9445# and doesn't know about Autoconf macros at all.)
9446#
9447# So we provide this file, which has a silly filename so it's always
9448# included after everything else.  This provides aclocal with the
9449# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
9450# because those macros already exist, or will be overwritten later.
9451# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
9452#
9453# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
9454# Yes, that means every name once taken will need to remain here until
9455# we give up compatibility with versions before 1.7, at which point
9456# we need to keep only those names which we still refer to.
9457
9458# This is to help aclocal find these macros, as it can't see m4_define.
9459AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
9460
9461m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
9462m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
9463m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
9464m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
9465m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
9466m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
9467m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
9468m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
9469m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
9470m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
9471m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
9472m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
9473m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
9474m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
9475m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
9476m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
9477m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
9478m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
9479m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
9480m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
9481m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
9482m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
9483m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
9484m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
9485m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
9486m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
9487m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
9488m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
9489m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
9490m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
9491m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
9492m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
9493m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
9494m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
9495m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
9496m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
9497m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
9498m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
9499m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
9500m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
9501m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
9502m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
9503m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
9504m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
9505m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
9506m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
9507m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
9508m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
9509m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
9510m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
9511m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
9512m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
9513m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
9514m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9515m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9516m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9517m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9518m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9519m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
9520m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
9521m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
9522
9523# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9524# serial 1 (pkg-config-0.24)
9525#
9526# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9527#
9528# This program is free software; you can redistribute it and/or modify
9529# it under the terms of the GNU General Public License as published by
9530# the Free Software Foundation; either version 2 of the License, or
9531# (at your option) any later version.
9532#
9533# This program is distributed in the hope that it will be useful, but
9534# WITHOUT ANY WARRANTY; without even the implied warranty of
9535# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9536# General Public License for more details.
9537#
9538# You should have received a copy of the GNU General Public License
9539# along with this program; if not, write to the Free Software
9540# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9541#
9542# As a special exception to the GNU General Public License, if you
9543# distribute this file as part of a program that contains a
9544# configuration script generated by Autoconf, you may include it under
9545# the same distribution terms that you use for the rest of that program.
9546
9547# PKG_PROG_PKG_CONFIG([MIN-VERSION])
9548# ----------------------------------
9549AC_DEFUN([PKG_PROG_PKG_CONFIG],
9550[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9551m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
9552m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
9553AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9554AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9555AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9556
9557if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9558	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9559fi
9560if test -n "$PKG_CONFIG"; then
9561	_pkg_min_version=m4_default([$1], [0.9.0])
9562	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9563	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9564		AC_MSG_RESULT([yes])
9565	else
9566		AC_MSG_RESULT([no])
9567		PKG_CONFIG=""
9568	fi
9569fi[]dnl
9570])# PKG_PROG_PKG_CONFIG
9571
9572# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9573#
9574# Check to see whether a particular set of modules exists.  Similar
9575# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9576#
9577# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9578# only at the first occurence in configure.ac, so if the first place
9579# it's called might be skipped (such as if it is within an "if", you
9580# have to call PKG_CHECK_EXISTS manually
9581# --------------------------------------------------------------
9582AC_DEFUN([PKG_CHECK_EXISTS],
9583[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9584if test -n "$PKG_CONFIG" && \
9585    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9586  m4_default([$2], [:])
9587m4_ifvaln([$3], [else
9588  $3])dnl
9589fi])
9590
9591# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9592# ---------------------------------------------
9593m4_define([_PKG_CONFIG],
9594[if test -n "$$1"; then
9595    pkg_cv_[]$1="$$1"
9596 elif test -n "$PKG_CONFIG"; then
9597    PKG_CHECK_EXISTS([$3],
9598                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
9599		      test "x$?" != "x0" && pkg_failed=yes ],
9600		     [pkg_failed=yes])
9601 else
9602    pkg_failed=untried
9603fi[]dnl
9604])# _PKG_CONFIG
9605
9606# _PKG_SHORT_ERRORS_SUPPORTED
9607# -----------------------------
9608AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9609[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9611        _pkg_short_errors_supported=yes
9612else
9613        _pkg_short_errors_supported=no
9614fi[]dnl
9615])# _PKG_SHORT_ERRORS_SUPPORTED
9616
9617
9618# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9619# [ACTION-IF-NOT-FOUND])
9620#
9621#
9622# Note that if there is a possibility the first call to
9623# PKG_CHECK_MODULES might not happen, you should be sure to include an
9624# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9625#
9626#
9627# --------------------------------------------------------------
9628AC_DEFUN([PKG_CHECK_MODULES],
9629[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9630AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9631AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9632
9633pkg_failed=no
9634AC_MSG_CHECKING([for $1])
9635
9636_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9637_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9638
9639m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9640and $1[]_LIBS to avoid the need to call pkg-config.
9641See the pkg-config man page for more details.])
9642
9643if test $pkg_failed = yes; then
9644   	AC_MSG_RESULT([no])
9645        _PKG_SHORT_ERRORS_SUPPORTED
9646        if test $_pkg_short_errors_supported = yes; then
9647	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
9648        else
9649	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9650        fi
9651	# Put the nasty error message in config.log where it belongs
9652	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9653
9654	m4_default([$4], [AC_MSG_ERROR(
9655[Package requirements ($2) were not met:
9656
9657$$1_PKG_ERRORS
9658
9659Consider adjusting the PKG_CONFIG_PATH environment variable if you
9660installed software in a non-standard prefix.
9661
9662_PKG_TEXT])[]dnl
9663        ])
9664elif test $pkg_failed = untried; then
9665     	AC_MSG_RESULT([no])
9666	m4_default([$4], [AC_MSG_FAILURE(
9667[The pkg-config script could not be found or is too old.  Make sure it
9668is in your PATH or set the PKG_CONFIG environment variable to the full
9669path to pkg-config.
9670
9671_PKG_TEXT
9672
9673To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9674        ])
9675else
9676	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9677	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9678        AC_MSG_RESULT([yes])
9679	$3
9680fi[]dnl
9681])# PKG_CHECK_MODULES
9682
9683
9684# PKG_INSTALLDIR(DIRECTORY)
9685# -------------------------
9686# Substitutes the variable pkgconfigdir as the location where a module
9687# should install pkg-config .pc files. By default the directory is
9688# $libdir/pkgconfig, but the default can be changed by passing
9689# DIRECTORY. The user can override through the --with-pkgconfigdir
9690# parameter.
9691AC_DEFUN([PKG_INSTALLDIR],
9692[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
9693m4_pushdef([pkg_description],
9694    [pkg-config installation directory @<:@]pkg_default[@:>@])
9695AC_ARG_WITH([pkgconfigdir],
9696    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
9697    [with_pkgconfigdir=]pkg_default)
9698AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
9699m4_popdef([pkg_default])
9700m4_popdef([pkg_description])
9701]) dnl PKG_INSTALLDIR
9702
9703
9704# PKG_NOARCH_INSTALLDIR(DIRECTORY)
9705# -------------------------
9706# Substitutes the variable noarch_pkgconfigdir as the location where a
9707# module should install arch-independent pkg-config .pc files. By
9708# default the directory is $datadir/pkgconfig, but the default can be
9709# changed by passing DIRECTORY. The user can override through the
9710# --with-noarch-pkgconfigdir parameter.
9711AC_DEFUN([PKG_NOARCH_INSTALLDIR],
9712[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
9713m4_pushdef([pkg_description],
9714    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
9715AC_ARG_WITH([noarch-pkgconfigdir],
9716    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
9717    [with_noarch_pkgconfigdir=]pkg_default)
9718AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
9719m4_popdef([pkg_default])
9720m4_popdef([pkg_description])
9721]) dnl PKG_NOARCH_INSTALLDIR
9722
9723
9724# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
9725# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9726# -------------------------------------------
9727# Retrieves the value of the pkg-config variable for the given module.
9728AC_DEFUN([PKG_CHECK_VAR],
9729[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9730AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
9731
9732_PKG_CONFIG([$1], [variable="][$3]["], [$2])
9733AS_VAR_COPY([$1], [pkg_cv_][$1])
9734
9735AS_VAR_IF([$1], [""], [$5], [$4])dnl
9736])# PKG_CHECK_VAR
9737
9738# Copyright (C) 2002-2013 Free Software Foundation, Inc.
9739#
9740# This file is free software; the Free Software Foundation
9741# gives unlimited permission to copy and/or distribute it,
9742# with or without modifications, as long as this notice is preserved.
9743
9744# AM_AUTOMAKE_VERSION(VERSION)
9745# ----------------------------
9746# Automake X.Y traces this macro to ensure aclocal.m4 has been
9747# generated from the m4 files accompanying Automake X.Y.
9748# (This private macro should not be called outside this file.)
9749AC_DEFUN([AM_AUTOMAKE_VERSION],
9750[am__api_version='1.14'
9751dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9752dnl require some minimum version.  Point them to the right macro.
9753m4_if([$1], [1.14.1], [],
9754      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9755])
9756
9757# _AM_AUTOCONF_VERSION(VERSION)
9758# -----------------------------
9759# aclocal traces this macro to find the Autoconf version.
9760# This is a private macro too.  Using m4_define simplifies
9761# the logic in aclocal, which can simply ignore this definition.
9762m4_define([_AM_AUTOCONF_VERSION], [])
9763
9764# AM_SET_CURRENT_AUTOMAKE_VERSION
9765# -------------------------------
9766# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9767# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9768AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9769[AM_AUTOMAKE_VERSION([1.14.1])dnl
9770m4_ifndef([AC_AUTOCONF_VERSION],
9771  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9772_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9773
9774# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9775
9776# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9777#
9778# This file is free software; the Free Software Foundation
9779# gives unlimited permission to copy and/or distribute it,
9780# with or without modifications, as long as this notice is preserved.
9781
9782# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9783# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
9784# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9785#
9786# Of course, Automake must honor this variable whenever it calls a
9787# tool from the auxiliary directory.  The problem is that $srcdir (and
9788# therefore $ac_aux_dir as well) can be either absolute or relative,
9789# depending on how configure is run.  This is pretty annoying, since
9790# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9791# source directory, any form will work fine, but in subdirectories a
9792# relative path needs to be adjusted first.
9793#
9794# $ac_aux_dir/missing
9795#    fails when called from a subdirectory if $ac_aux_dir is relative
9796# $top_srcdir/$ac_aux_dir/missing
9797#    fails if $ac_aux_dir is absolute,
9798#    fails when called from a subdirectory in a VPATH build with
9799#          a relative $ac_aux_dir
9800#
9801# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9802# are both prefixed by $srcdir.  In an in-source build this is usually
9803# harmless because $srcdir is '.', but things will broke when you
9804# start a VPATH build or use an absolute $srcdir.
9805#
9806# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9807# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
9808#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9809# and then we would define $MISSING as
9810#   MISSING="\${SHELL} $am_aux_dir/missing"
9811# This will work as long as MISSING is not called from configure, because
9812# unfortunately $(top_srcdir) has no meaning in configure.
9813# However there are other variables, like CC, which are often used in
9814# configure, and could therefore not use this "fixed" $ac_aux_dir.
9815#
9816# Another solution, used here, is to always expand $ac_aux_dir to an
9817# absolute PATH.  The drawback is that using absolute paths prevent a
9818# configured tree to be moved without reconfiguration.
9819
9820AC_DEFUN([AM_AUX_DIR_EXPAND],
9821[dnl Rely on autoconf to set up CDPATH properly.
9822AC_PREREQ([2.50])dnl
9823# expand $ac_aux_dir to an absolute path
9824am_aux_dir=`cd $ac_aux_dir && pwd`
9825])
9826
9827# AM_CONDITIONAL                                            -*- Autoconf -*-
9828
9829# Copyright (C) 1997-2013 Free Software Foundation, Inc.
9830#
9831# This file is free software; the Free Software Foundation
9832# gives unlimited permission to copy and/or distribute it,
9833# with or without modifications, as long as this notice is preserved.
9834
9835# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9836# -------------------------------------
9837# Define a conditional.
9838AC_DEFUN([AM_CONDITIONAL],
9839[AC_PREREQ([2.52])dnl
9840 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9841       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9842AC_SUBST([$1_TRUE])dnl
9843AC_SUBST([$1_FALSE])dnl
9844_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9845_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9846m4_define([_AM_COND_VALUE_$1], [$2])dnl
9847if $2; then
9848  $1_TRUE=
9849  $1_FALSE='#'
9850else
9851  $1_TRUE='#'
9852  $1_FALSE=
9853fi
9854AC_CONFIG_COMMANDS_PRE(
9855[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9856  AC_MSG_ERROR([[conditional "$1" was never defined.
9857Usually this means the macro was only invoked conditionally.]])
9858fi])])
9859
9860# Copyright (C) 1999-2013 Free Software Foundation, Inc.
9861#
9862# This file is free software; the Free Software Foundation
9863# gives unlimited permission to copy and/or distribute it,
9864# with or without modifications, as long as this notice is preserved.
9865
9866
9867# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
9868# written in clear, in which case automake, when reading aclocal.m4,
9869# will think it sees a *use*, and therefore will trigger all it's
9870# C support machinery.  Also note that it means that autoscan, seeing
9871# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9872
9873
9874# _AM_DEPENDENCIES(NAME)
9875# ----------------------
9876# See how the compiler implements dependency checking.
9877# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
9878# We try a few techniques and use that to set a single cache variable.
9879#
9880# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9881# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9882# dependency, and given that the user is not expected to run this macro,
9883# just rely on AC_PROG_CC.
9884AC_DEFUN([_AM_DEPENDENCIES],
9885[AC_REQUIRE([AM_SET_DEPDIR])dnl
9886AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9887AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9888AC_REQUIRE([AM_DEP_TRACK])dnl
9889
9890m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
9891      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
9892      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9893      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
9894      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
9895      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9896                    [depcc="$$1"   am_compiler_list=])
9897
9898AC_CACHE_CHECK([dependency style of $depcc],
9899               [am_cv_$1_dependencies_compiler_type],
9900[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9901  # We make a subdir and do the tests there.  Otherwise we can end up
9902  # making bogus files that we don't know about and never remove.  For
9903  # instance it was reported that on HP-UX the gcc test will end up
9904  # making a dummy file named 'D' -- because '-MD' means "put the output
9905  # in D".
9906  rm -rf conftest.dir
9907  mkdir conftest.dir
9908  # Copy depcomp to subdir because otherwise we won't find it if we're
9909  # using a relative directory.
9910  cp "$am_depcomp" conftest.dir
9911  cd conftest.dir
9912  # We will build objects and dependencies in a subdirectory because
9913  # it helps to detect inapplicable dependency modes.  For instance
9914  # both Tru64's cc and ICC support -MD to output dependencies as a
9915  # side effect of compilation, but ICC will put the dependencies in
9916  # the current directory while Tru64 will put them in the object
9917  # directory.
9918  mkdir sub
9919
9920  am_cv_$1_dependencies_compiler_type=none
9921  if test "$am_compiler_list" = ""; then
9922     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9923  fi
9924  am__universal=false
9925  m4_case([$1], [CC],
9926    [case " $depcc " in #(
9927     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9928     esac],
9929    [CXX],
9930    [case " $depcc " in #(
9931     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9932     esac])
9933
9934  for depmode in $am_compiler_list; do
9935    # Setup a source with many dependencies, because some compilers
9936    # like to wrap large dependency lists on column 80 (with \), and
9937    # we should not choose a depcomp mode which is confused by this.
9938    #
9939    # We need to recreate these files for each test, as the compiler may
9940    # overwrite some of them when testing with obscure command lines.
9941    # This happens at least with the AIX C compiler.
9942    : > sub/conftest.c
9943    for i in 1 2 3 4 5 6; do
9944      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9945      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9946      # Solaris 10 /bin/sh.
9947      echo '/* dummy */' > sub/conftst$i.h
9948    done
9949    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9950
9951    # We check with '-c' and '-o' for the sake of the "dashmstdout"
9952    # mode.  It turns out that the SunPro C++ compiler does not properly
9953    # handle '-M -o', and we need to detect this.  Also, some Intel
9954    # versions had trouble with output in subdirs.
9955    am__obj=sub/conftest.${OBJEXT-o}
9956    am__minus_obj="-o $am__obj"
9957    case $depmode in
9958    gcc)
9959      # This depmode causes a compiler race in universal mode.
9960      test "$am__universal" = false || continue
9961      ;;
9962    nosideeffect)
9963      # After this tag, mechanisms are not by side-effect, so they'll
9964      # only be used when explicitly requested.
9965      if test "x$enable_dependency_tracking" = xyes; then
9966	continue
9967      else
9968	break
9969      fi
9970      ;;
9971    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9972      # This compiler won't grok '-c -o', but also, the minuso test has
9973      # not run yet.  These depmodes are late enough in the game, and
9974      # so weak that their functioning should not be impacted.
9975      am__obj=conftest.${OBJEXT-o}
9976      am__minus_obj=
9977      ;;
9978    none) break ;;
9979    esac
9980    if depmode=$depmode \
9981       source=sub/conftest.c object=$am__obj \
9982       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9983       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9984         >/dev/null 2>conftest.err &&
9985       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9986       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9987       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9988       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9989      # icc doesn't choke on unknown options, it will just issue warnings
9990      # or remarks (even with -Werror).  So we grep stderr for any message
9991      # that says an option was ignored or not supported.
9992      # When given -MP, icc 7.0 and 7.1 complain thusly:
9993      #   icc: Command line warning: ignoring option '-M'; no argument required
9994      # The diagnosis changed in icc 8.0:
9995      #   icc: Command line remark: option '-MP' not supported
9996      if (grep 'ignoring option' conftest.err ||
9997          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9998        am_cv_$1_dependencies_compiler_type=$depmode
9999        break
10000      fi
10001    fi
10002  done
10003
10004  cd ..
10005  rm -rf conftest.dir
10006else
10007  am_cv_$1_dependencies_compiler_type=none
10008fi
10009])
10010AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
10011AM_CONDITIONAL([am__fastdep$1], [
10012  test "x$enable_dependency_tracking" != xno \
10013  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
10014])
10015
10016
10017# AM_SET_DEPDIR
10018# -------------
10019# Choose a directory name for dependency files.
10020# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
10021AC_DEFUN([AM_SET_DEPDIR],
10022[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10023AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
10024])
10025
10026
10027# AM_DEP_TRACK
10028# ------------
10029AC_DEFUN([AM_DEP_TRACK],
10030[AC_ARG_ENABLE([dependency-tracking], [dnl
10031AS_HELP_STRING(
10032  [--enable-dependency-tracking],
10033  [do not reject slow dependency extractors])
10034AS_HELP_STRING(
10035  [--disable-dependency-tracking],
10036  [speeds up one-time build])])
10037if test "x$enable_dependency_tracking" != xno; then
10038  am_depcomp="$ac_aux_dir/depcomp"
10039  AMDEPBACKSLASH='\'
10040  am__nodep='_no'
10041fi
10042AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
10043AC_SUBST([AMDEPBACKSLASH])dnl
10044_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
10045AC_SUBST([am__nodep])dnl
10046_AM_SUBST_NOTMAKE([am__nodep])dnl
10047])
10048
10049# Generate code to set up dependency tracking.              -*- Autoconf -*-
10050
10051# Copyright (C) 1999-2013 Free Software Foundation, Inc.
10052#
10053# This file is free software; the Free Software Foundation
10054# gives unlimited permission to copy and/or distribute it,
10055# with or without modifications, as long as this notice is preserved.
10056
10057
10058# _AM_OUTPUT_DEPENDENCY_COMMANDS
10059# ------------------------------
10060AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
10061[{
10062  # Older Autoconf quotes --file arguments for eval, but not when files
10063  # are listed without --file.  Let's play safe and only enable the eval
10064  # if we detect the quoting.
10065  case $CONFIG_FILES in
10066  *\'*) eval set x "$CONFIG_FILES" ;;
10067  *)   set x $CONFIG_FILES ;;
10068  esac
10069  shift
10070  for mf
10071  do
10072    # Strip MF so we end up with the name of the file.
10073    mf=`echo "$mf" | sed -e 's/:.*$//'`
10074    # Check whether this is an Automake generated Makefile or not.
10075    # We used to match only the files named 'Makefile.in', but
10076    # some people rename them; so instead we look at the file content.
10077    # Grep'ing the first line is not enough: some people post-process
10078    # each Makefile.in and add a new line on top of each file to say so.
10079    # Grep'ing the whole file is not good either: AIX grep has a line
10080    # limit of 2048, but all sed's we know have understand at least 4000.
10081    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10082      dirpart=`AS_DIRNAME("$mf")`
10083    else
10084      continue
10085    fi
10086    # Extract the definition of DEPDIR, am__include, and am__quote
10087    # from the Makefile without running 'make'.
10088    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10089    test -z "$DEPDIR" && continue
10090    am__include=`sed -n 's/^am__include = //p' < "$mf"`
10091    test -z "$am__include" && continue
10092    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10093    # Find all dependency output files, they are included files with
10094    # $(DEPDIR) in their names.  We invoke sed twice because it is the
10095    # simplest approach to changing $(DEPDIR) to its actual value in the
10096    # expansion.
10097    for file in `sed -n "
10098      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10099	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10100      # Make sure the directory exists.
10101      test -f "$dirpart/$file" && continue
10102      fdir=`AS_DIRNAME(["$file"])`
10103      AS_MKDIR_P([$dirpart/$fdir])
10104      # echo "creating $dirpart/$file"
10105      echo '# dummy' > "$dirpart/$file"
10106    done
10107  done
10108}
10109])# _AM_OUTPUT_DEPENDENCY_COMMANDS
10110
10111
10112# AM_OUTPUT_DEPENDENCY_COMMANDS
10113# -----------------------------
10114# This macro should only be invoked once -- use via AC_REQUIRE.
10115#
10116# This code is only required when automatic dependency tracking
10117# is enabled.  FIXME.  This creates each '.P' file that we will
10118# need in order to bootstrap the dependency handling code.
10119AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
10120[AC_CONFIG_COMMANDS([depfiles],
10121     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
10122     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
10123])
10124
10125# Do all the work for Automake.                             -*- Autoconf -*-
10126
10127# Copyright (C) 1996-2013 Free Software Foundation, Inc.
10128#
10129# This file is free software; the Free Software Foundation
10130# gives unlimited permission to copy and/or distribute it,
10131# with or without modifications, as long as this notice is preserved.
10132
10133# This macro actually does too much.  Some checks are only needed if
10134# your package does certain things.  But this isn't really a big deal.
10135
10136dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
10137m4_define([AC_PROG_CC],
10138m4_defn([AC_PROG_CC])
10139[_AM_PROG_CC_C_O
10140])
10141
10142# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
10143# AM_INIT_AUTOMAKE([OPTIONS])
10144# -----------------------------------------------
10145# The call with PACKAGE and VERSION arguments is the old style
10146# call (pre autoconf-2.50), which is being phased out.  PACKAGE
10147# and VERSION should now be passed to AC_INIT and removed from
10148# the call to AM_INIT_AUTOMAKE.
10149# We support both call styles for the transition.  After
10150# the next Automake release, Autoconf can make the AC_INIT
10151# arguments mandatory, and then we can depend on a new Autoconf
10152# release and drop the old call support.
10153AC_DEFUN([AM_INIT_AUTOMAKE],
10154[AC_PREREQ([2.65])dnl
10155dnl Autoconf wants to disallow AM_ names.  We explicitly allow
10156dnl the ones we care about.
10157m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10158AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
10159AC_REQUIRE([AC_PROG_INSTALL])dnl
10160if test "`cd $srcdir && pwd`" != "`pwd`"; then
10161  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10162  # is not polluted with repeated "-I."
10163  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
10164  # test to see if srcdir already configured
10165  if test -f $srcdir/config.status; then
10166    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
10167  fi
10168fi
10169
10170# test whether we have cygpath
10171if test -z "$CYGPATH_W"; then
10172  if (cygpath --version) >/dev/null 2>/dev/null; then
10173    CYGPATH_W='cygpath -w'
10174  else
10175    CYGPATH_W=echo
10176  fi
10177fi
10178AC_SUBST([CYGPATH_W])
10179
10180# Define the identity of the package.
10181dnl Distinguish between old-style and new-style calls.
10182m4_ifval([$2],
10183[AC_DIAGNOSE([obsolete],
10184             [$0: two- and three-arguments forms are deprecated.])
10185m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
10186 AC_SUBST([PACKAGE], [$1])dnl
10187 AC_SUBST([VERSION], [$2])],
10188[_AM_SET_OPTIONS([$1])dnl
10189dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
10190m4_if(
10191  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
10192  [ok:ok],,
10193  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
10194 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
10195 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
10196
10197_AM_IF_OPTION([no-define],,
10198[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
10199 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
10200
10201# Some tools Automake needs.
10202AC_REQUIRE([AM_SANITY_CHECK])dnl
10203AC_REQUIRE([AC_ARG_PROGRAM])dnl
10204AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
10205AM_MISSING_PROG([AUTOCONF], [autoconf])
10206AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
10207AM_MISSING_PROG([AUTOHEADER], [autoheader])
10208AM_MISSING_PROG([MAKEINFO], [makeinfo])
10209AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10210AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
10211AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10212# For better backward compatibility.  To be removed once Automake 1.9.x
10213# dies out for good.  For more background, see:
10214# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10215# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10216AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
10217# We need awk for the "check" target.  The system "awk" is bad on
10218# some platforms.
10219AC_REQUIRE([AC_PROG_AWK])dnl
10220AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10221AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10222_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10223	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10224			     [_AM_PROG_TAR([v7])])])
10225_AM_IF_OPTION([no-dependencies],,
10226[AC_PROVIDE_IFELSE([AC_PROG_CC],
10227		  [_AM_DEPENDENCIES([CC])],
10228		  [m4_define([AC_PROG_CC],
10229			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
10230AC_PROVIDE_IFELSE([AC_PROG_CXX],
10231		  [_AM_DEPENDENCIES([CXX])],
10232		  [m4_define([AC_PROG_CXX],
10233			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
10234AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10235		  [_AM_DEPENDENCIES([OBJC])],
10236		  [m4_define([AC_PROG_OBJC],
10237			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
10238AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
10239		  [_AM_DEPENDENCIES([OBJCXX])],
10240		  [m4_define([AC_PROG_OBJCXX],
10241			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
10242])
10243AC_REQUIRE([AM_SILENT_RULES])dnl
10244dnl The testsuite driver may need to know about EXEEXT, so add the
10245dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
10246dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
10247AC_CONFIG_COMMANDS_PRE(dnl
10248[m4_provide_if([_AM_COMPILER_EXEEXT],
10249  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10250
10251# POSIX will say in a future version that running "rm -f" with no argument
10252# is OK; and we want to be able to make that assumption in our Makefile
10253# recipes.  So use an aggressive probe to check that the usage we want is
10254# actually supported "in the wild" to an acceptable degree.
10255# See automake bug#10828.
10256# To make any issue more visible, cause the running configure to be aborted
10257# by default if the 'rm' program in use doesn't match our expectations; the
10258# user can still override this though.
10259if rm -f && rm -fr && rm -rf; then : OK; else
10260  cat >&2 <<'END'
10261Oops!
10262
10263Your 'rm' program seems unable to run without file operands specified
10264on the command line, even when the '-f' option is present.  This is contrary
10265to the behaviour of most rm programs out there, and not conforming with
10266the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10267
10268Please tell bug-automake@gnu.org about your system, including the value
10269of your $PATH and any error possibly output before this message.  This
10270can help us improve future automake versions.
10271
10272END
10273  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10274    echo 'Configuration will proceed anyway, since you have set the' >&2
10275    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10276    echo >&2
10277  else
10278    cat >&2 <<'END'
10279Aborting the configuration process, to ensure you take notice of the issue.
10280
10281You can download and install GNU coreutils to get an 'rm' implementation
10282that behaves properly: <http://www.gnu.org/software/coreutils/>.
10283
10284If you want to complete the configuration process using your problematic
10285'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10286to "yes", and re-run configure.
10287
10288END
10289    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
10290  fi
10291fi
10292])
10293
10294dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
10295dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10296dnl mangled by Autoconf and run in a shell conditional statement.
10297m4_define([_AC_COMPILER_EXEEXT],
10298m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10299
10300# When config.status generates a header, we must update the stamp-h file.
10301# This file resides in the same directory as the config header
10302# that is generated.  The stamp files are numbered to have different names.
10303
10304# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10305# loop where config.status creates the headers, so we can generate
10306# our stamp files there.
10307AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10308[# Compute $1's index in $config_headers.
10309_am_arg=$1
10310_am_stamp_count=1
10311for _am_header in $config_headers :; do
10312  case $_am_header in
10313    $_am_arg | $_am_arg:* )
10314      break ;;
10315    * )
10316      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10317  esac
10318done
10319echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10320
10321# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10322#
10323# This file is free software; the Free Software Foundation
10324# gives unlimited permission to copy and/or distribute it,
10325# with or without modifications, as long as this notice is preserved.
10326
10327# AM_PROG_INSTALL_SH
10328# ------------------
10329# Define $install_sh.
10330AC_DEFUN([AM_PROG_INSTALL_SH],
10331[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10332if test x"${install_sh}" != xset; then
10333  case $am_aux_dir in
10334  *\ * | *\	*)
10335    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10336  *)
10337    install_sh="\${SHELL} $am_aux_dir/install-sh"
10338  esac
10339fi
10340AC_SUBST([install_sh])])
10341
10342# Copyright (C) 2003-2013 Free Software Foundation, Inc.
10343#
10344# This file is free software; the Free Software Foundation
10345# gives unlimited permission to copy and/or distribute it,
10346# with or without modifications, as long as this notice is preserved.
10347
10348# Check whether the underlying file-system supports filenames
10349# with a leading dot.  For instance MS-DOS doesn't.
10350AC_DEFUN([AM_SET_LEADING_DOT],
10351[rm -rf .tst 2>/dev/null
10352mkdir .tst 2>/dev/null
10353if test -d .tst; then
10354  am__leading_dot=.
10355else
10356  am__leading_dot=_
10357fi
10358rmdir .tst 2>/dev/null
10359AC_SUBST([am__leading_dot])])
10360
10361# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
10362# From Jim Meyering
10363
10364# Copyright (C) 1996-2013 Free Software Foundation, Inc.
10365#
10366# This file is free software; the Free Software Foundation
10367# gives unlimited permission to copy and/or distribute it,
10368# with or without modifications, as long as this notice is preserved.
10369
10370# AM_MAINTAINER_MODE([DEFAULT-MODE])
10371# ----------------------------------
10372# Control maintainer-specific portions of Makefiles.
10373# Default is to disable them, unless 'enable' is passed literally.
10374# For symmetry, 'disable' may be passed as well.  Anyway, the user
10375# can override the default with the --enable/--disable switch.
10376AC_DEFUN([AM_MAINTAINER_MODE],
10377[m4_case(m4_default([$1], [disable]),
10378       [enable], [m4_define([am_maintainer_other], [disable])],
10379       [disable], [m4_define([am_maintainer_other], [enable])],
10380       [m4_define([am_maintainer_other], [enable])
10381        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
10382AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
10383  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
10384  AC_ARG_ENABLE([maintainer-mode],
10385    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
10386      am_maintainer_other[ make rules and dependencies not useful
10387      (and sometimes confusing) to the casual installer])],
10388    [USE_MAINTAINER_MODE=$enableval],
10389    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
10390  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
10391  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
10392  MAINT=$MAINTAINER_MODE_TRUE
10393  AC_SUBST([MAINT])dnl
10394]
10395)
10396
10397# Check to see how 'make' treats includes.	            -*- Autoconf -*-
10398
10399# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10400#
10401# This file is free software; the Free Software Foundation
10402# gives unlimited permission to copy and/or distribute it,
10403# with or without modifications, as long as this notice is preserved.
10404
10405# AM_MAKE_INCLUDE()
10406# -----------------
10407# Check to see how make treats includes.
10408AC_DEFUN([AM_MAKE_INCLUDE],
10409[am_make=${MAKE-make}
10410cat > confinc << 'END'
10411am__doit:
10412	@echo this is the am__doit target
10413.PHONY: am__doit
10414END
10415# If we don't find an include directive, just comment out the code.
10416AC_MSG_CHECKING([for style of include used by $am_make])
10417am__include="#"
10418am__quote=
10419_am_result=none
10420# First try GNU make style include.
10421echo "include confinc" > confmf
10422# Ignore all kinds of additional output from 'make'.
10423case `$am_make -s -f confmf 2> /dev/null` in #(
10424*the\ am__doit\ target*)
10425  am__include=include
10426  am__quote=
10427  _am_result=GNU
10428  ;;
10429esac
10430# Now try BSD make style include.
10431if test "$am__include" = "#"; then
10432   echo '.include "confinc"' > confmf
10433   case `$am_make -s -f confmf 2> /dev/null` in #(
10434   *the\ am__doit\ target*)
10435     am__include=.include
10436     am__quote="\""
10437     _am_result=BSD
10438     ;;
10439   esac
10440fi
10441AC_SUBST([am__include])
10442AC_SUBST([am__quote])
10443AC_MSG_RESULT([$_am_result])
10444rm -f confinc confmf
10445])
10446
10447# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
10448
10449# Copyright (C) 1997-2013 Free Software Foundation, Inc.
10450#
10451# This file is free software; the Free Software Foundation
10452# gives unlimited permission to copy and/or distribute it,
10453# with or without modifications, as long as this notice is preserved.
10454
10455# AM_MISSING_PROG(NAME, PROGRAM)
10456# ------------------------------
10457AC_DEFUN([AM_MISSING_PROG],
10458[AC_REQUIRE([AM_MISSING_HAS_RUN])
10459$1=${$1-"${am_missing_run}$2"}
10460AC_SUBST($1)])
10461
10462# AM_MISSING_HAS_RUN
10463# ------------------
10464# Define MISSING if not defined so far and test if it is modern enough.
10465# If it is, set am_missing_run to use it, otherwise, to nothing.
10466AC_DEFUN([AM_MISSING_HAS_RUN],
10467[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10468AC_REQUIRE_AUX_FILE([missing])dnl
10469if test x"${MISSING+set}" != xset; then
10470  case $am_aux_dir in
10471  *\ * | *\	*)
10472    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10473  *)
10474    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10475  esac
10476fi
10477# Use eval to expand $SHELL
10478if eval "$MISSING --is-lightweight"; then
10479  am_missing_run="$MISSING "
10480else
10481  am_missing_run=
10482  AC_MSG_WARN(['missing' script is too old or missing])
10483fi
10484])
10485
10486# Helper functions for option handling.                     -*- Autoconf -*-
10487
10488# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10489#
10490# This file is free software; the Free Software Foundation
10491# gives unlimited permission to copy and/or distribute it,
10492# with or without modifications, as long as this notice is preserved.
10493
10494# _AM_MANGLE_OPTION(NAME)
10495# -----------------------
10496AC_DEFUN([_AM_MANGLE_OPTION],
10497[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10498
10499# _AM_SET_OPTION(NAME)
10500# --------------------
10501# Set option NAME.  Presently that only means defining a flag for this option.
10502AC_DEFUN([_AM_SET_OPTION],
10503[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
10504
10505# _AM_SET_OPTIONS(OPTIONS)
10506# ------------------------
10507# OPTIONS is a space-separated list of Automake options.
10508AC_DEFUN([_AM_SET_OPTIONS],
10509[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10510
10511# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10512# -------------------------------------------
10513# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10514AC_DEFUN([_AM_IF_OPTION],
10515[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10516
10517# Copyright (C) 1999-2013 Free Software Foundation, Inc.
10518#
10519# This file is free software; the Free Software Foundation
10520# gives unlimited permission to copy and/or distribute it,
10521# with or without modifications, as long as this notice is preserved.
10522
10523# _AM_PROG_CC_C_O
10524# ---------------
10525# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
10526# to automatically call this.
10527AC_DEFUN([_AM_PROG_CC_C_O],
10528[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10529AC_REQUIRE_AUX_FILE([compile])dnl
10530AC_LANG_PUSH([C])dnl
10531AC_CACHE_CHECK(
10532  [whether $CC understands -c and -o together],
10533  [am_cv_prog_cc_c_o],
10534  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
10535  # Make sure it works both with $CC and with simple cc.
10536  # Following AC_PROG_CC_C_O, we do the test twice because some
10537  # compilers refuse to overwrite an existing .o file with -o,
10538  # though they will create one.
10539  am_cv_prog_cc_c_o=yes
10540  for am_i in 1 2; do
10541    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
10542         && test -f conftest2.$ac_objext; then
10543      : OK
10544    else
10545      am_cv_prog_cc_c_o=no
10546      break
10547    fi
10548  done
10549  rm -f core conftest*
10550  unset am_i])
10551if test "$am_cv_prog_cc_c_o" != yes; then
10552   # Losing compiler, so override with the script.
10553   # FIXME: It is wrong to rewrite CC.
10554   # But if we don't then we get into trouble of one sort or another.
10555   # A longer-term fix would be to have automake use am__CC in this case,
10556   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10557   CC="$am_aux_dir/compile $CC"
10558fi
10559AC_LANG_POP([C])])
10560
10561# For backward compatibility.
10562AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
10563
10564# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10565#
10566# This file is free software; the Free Software Foundation
10567# gives unlimited permission to copy and/or distribute it,
10568# with or without modifications, as long as this notice is preserved.
10569
10570# AM_RUN_LOG(COMMAND)
10571# -------------------
10572# Run COMMAND, save the exit status in ac_status, and log it.
10573# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10574AC_DEFUN([AM_RUN_LOG],
10575[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10576   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10579   (exit $ac_status); }])
10580
10581# Check to make sure that the build environment is sane.    -*- Autoconf -*-
10582
10583# Copyright (C) 1996-2013 Free Software Foundation, Inc.
10584#
10585# This file is free software; the Free Software Foundation
10586# gives unlimited permission to copy and/or distribute it,
10587# with or without modifications, as long as this notice is preserved.
10588
10589# AM_SANITY_CHECK
10590# ---------------
10591AC_DEFUN([AM_SANITY_CHECK],
10592[AC_MSG_CHECKING([whether build environment is sane])
10593# Reject unsafe characters in $srcdir or the absolute working directory
10594# name.  Accept space and tab only in the latter.
10595am_lf='
10596'
10597case `pwd` in
10598  *[[\\\"\#\$\&\'\`$am_lf]]*)
10599    AC_MSG_ERROR([unsafe absolute working directory name]);;
10600esac
10601case $srcdir in
10602  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
10603    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10604esac
10605
10606# Do 'set' in a subshell so we don't clobber the current shell's
10607# arguments.  Must try -L first in case configure is actually a
10608# symlink; some systems play weird games with the mod time of symlinks
10609# (eg FreeBSD returns the mod time of the symlink's containing
10610# directory).
10611if (
10612   am_has_slept=no
10613   for am_try in 1 2; do
10614     echo "timestamp, slept: $am_has_slept" > conftest.file
10615     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10616     if test "$[*]" = "X"; then
10617	# -L didn't work.
10618	set X `ls -t "$srcdir/configure" conftest.file`
10619     fi
10620     if test "$[*]" != "X $srcdir/configure conftest.file" \
10621	&& test "$[*]" != "X conftest.file $srcdir/configure"; then
10622
10623	# If neither matched, then we have a broken ls.  This can happen
10624	# if, for instance, CONFIG_SHELL is bash and it inherits a
10625	# broken ls alias from the environment.  This has actually
10626	# happened.  Such a system could not be considered "sane".
10627	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
10628  alias in your environment])
10629     fi
10630     if test "$[2]" = conftest.file || test $am_try -eq 2; then
10631       break
10632     fi
10633     # Just in case.
10634     sleep 1
10635     am_has_slept=yes
10636   done
10637   test "$[2]" = conftest.file
10638   )
10639then
10640   # Ok.
10641   :
10642else
10643   AC_MSG_ERROR([newly created file is older than distributed files!
10644Check your system clock])
10645fi
10646AC_MSG_RESULT([yes])
10647# If we didn't sleep, we still need to ensure time stamps of config.status and
10648# generated files are strictly newer.
10649am_sleep_pid=
10650if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10651  ( sleep 1 ) &
10652  am_sleep_pid=$!
10653fi
10654AC_CONFIG_COMMANDS_PRE(
10655  [AC_MSG_CHECKING([that generated files are newer than configure])
10656   if test -n "$am_sleep_pid"; then
10657     # Hide warnings about reused PIDs.
10658     wait $am_sleep_pid 2>/dev/null
10659   fi
10660   AC_MSG_RESULT([done])])
10661rm -f conftest.file
10662])
10663
10664# Copyright (C) 2009-2013 Free Software Foundation, Inc.
10665#
10666# This file is free software; the Free Software Foundation
10667# gives unlimited permission to copy and/or distribute it,
10668# with or without modifications, as long as this notice is preserved.
10669
10670# AM_SILENT_RULES([DEFAULT])
10671# --------------------------
10672# Enable less verbose build rules; with the default set to DEFAULT
10673# ("yes" being less verbose, "no" or empty being verbose).
10674AC_DEFUN([AM_SILENT_RULES],
10675[AC_ARG_ENABLE([silent-rules], [dnl
10676AS_HELP_STRING(
10677  [--enable-silent-rules],
10678  [less verbose build output (undo: "make V=1")])
10679AS_HELP_STRING(
10680  [--disable-silent-rules],
10681  [verbose build output (undo: "make V=0")])dnl
10682])
10683case $enable_silent_rules in @%:@ (((
10684  yes) AM_DEFAULT_VERBOSITY=0;;
10685   no) AM_DEFAULT_VERBOSITY=1;;
10686    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10687esac
10688dnl
10689dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10690dnl do not support nested variable expansions.
10691dnl See automake bug#9928 and bug#10237.
10692am_make=${MAKE-make}
10693AC_CACHE_CHECK([whether $am_make supports nested variables],
10694   [am_cv_make_support_nested_variables],
10695   [if AS_ECHO([['TRUE=$(BAR$(V))
10696BAR0=false
10697BAR1=true
10698V=1
10699am__doit:
10700	@$(TRUE)
10701.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10702  am_cv_make_support_nested_variables=yes
10703else
10704  am_cv_make_support_nested_variables=no
10705fi])
10706if test $am_cv_make_support_nested_variables = yes; then
10707  dnl Using '$V' instead of '$(V)' breaks IRIX make.
10708  AM_V='$(V)'
10709  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10710else
10711  AM_V=$AM_DEFAULT_VERBOSITY
10712  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10713fi
10714AC_SUBST([AM_V])dnl
10715AM_SUBST_NOTMAKE([AM_V])dnl
10716AC_SUBST([AM_DEFAULT_V])dnl
10717AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10718AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10719AM_BACKSLASH='\'
10720AC_SUBST([AM_BACKSLASH])dnl
10721_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10722])
10723
10724# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10725#
10726# This file is free software; the Free Software Foundation
10727# gives unlimited permission to copy and/or distribute it,
10728# with or without modifications, as long as this notice is preserved.
10729
10730# AM_PROG_INSTALL_STRIP
10731# ---------------------
10732# One issue with vendor 'install' (even GNU) is that you can't
10733# specify the program used to strip binaries.  This is especially
10734# annoying in cross-compiling environments, where the build's strip
10735# is unlikely to handle the host's binaries.
10736# Fortunately install-sh will honor a STRIPPROG variable, so we
10737# always use install-sh in "make install-strip", and initialize
10738# STRIPPROG with the value of the STRIP variable (set by the user).
10739AC_DEFUN([AM_PROG_INSTALL_STRIP],
10740[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10741# Installed binaries are usually stripped using 'strip' when the user
10742# run "make install-strip".  However 'strip' might not be the right
10743# tool to use in cross-compilation environments, therefore Automake
10744# will honor the 'STRIP' environment variable to overrule this program.
10745dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
10746if test "$cross_compiling" != no; then
10747  AC_CHECK_TOOL([STRIP], [strip], :)
10748fi
10749INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10750AC_SUBST([INSTALL_STRIP_PROGRAM])])
10751
10752# Copyright (C) 2006-2013 Free Software Foundation, Inc.
10753#
10754# This file is free software; the Free Software Foundation
10755# gives unlimited permission to copy and/or distribute it,
10756# with or without modifications, as long as this notice is preserved.
10757
10758# _AM_SUBST_NOTMAKE(VARIABLE)
10759# ---------------------------
10760# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10761# This macro is traced by Automake.
10762AC_DEFUN([_AM_SUBST_NOTMAKE])
10763
10764# AM_SUBST_NOTMAKE(VARIABLE)
10765# --------------------------
10766# Public sister of _AM_SUBST_NOTMAKE.
10767AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10768
10769# Check how to create a tarball.                            -*- Autoconf -*-
10770
10771# Copyright (C) 2004-2013 Free Software Foundation, Inc.
10772#
10773# This file is free software; the Free Software Foundation
10774# gives unlimited permission to copy and/or distribute it,
10775# with or without modifications, as long as this notice is preserved.
10776
10777# _AM_PROG_TAR(FORMAT)
10778# --------------------
10779# Check how to create a tarball in format FORMAT.
10780# FORMAT should be one of 'v7', 'ustar', or 'pax'.
10781#
10782# Substitute a variable $(am__tar) that is a command
10783# writing to stdout a FORMAT-tarball containing the directory
10784# $tardir.
10785#     tardir=directory && $(am__tar) > result.tar
10786#
10787# Substitute a variable $(am__untar) that extract such
10788# a tarball read from stdin.
10789#     $(am__untar) < result.tar
10790#
10791AC_DEFUN([_AM_PROG_TAR],
10792[# Always define AMTAR for backward compatibility.  Yes, it's still used
10793# in the wild :-(  We should find a proper way to deprecate it ...
10794AC_SUBST([AMTAR], ['$${TAR-tar}'])
10795
10796# We'll loop over all known methods to create a tar archive until one works.
10797_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10798
10799m4_if([$1], [v7],
10800  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10801
10802  [m4_case([$1],
10803    [ustar],
10804     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10805      # There is notably a 21 bits limit for the UID and the GID.  In fact,
10806      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10807      # and bug#13588).
10808      am_max_uid=2097151 # 2^21 - 1
10809      am_max_gid=$am_max_uid
10810      # The $UID and $GID variables are not portable, so we need to resort
10811      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
10812      # below are definitely unexpected, so allow the users to see them
10813      # (that is, avoid stderr redirection).
10814      am_uid=`id -u || echo unknown`
10815      am_gid=`id -g || echo unknown`
10816      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10817      if test $am_uid -le $am_max_uid; then
10818         AC_MSG_RESULT([yes])
10819      else
10820         AC_MSG_RESULT([no])
10821         _am_tools=none
10822      fi
10823      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10824      if test $am_gid -le $am_max_gid; then
10825         AC_MSG_RESULT([yes])
10826      else
10827        AC_MSG_RESULT([no])
10828        _am_tools=none
10829      fi],
10830
10831  [pax],
10832    [],
10833
10834  [m4_fatal([Unknown tar format])])
10835
10836  AC_MSG_CHECKING([how to create a $1 tar archive])
10837
10838  # Go ahead even if we have the value already cached.  We do so because we
10839  # need to set the values for the 'am__tar' and 'am__untar' variables.
10840  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10841
10842  for _am_tool in $_am_tools; do
10843    case $_am_tool in
10844    gnutar)
10845      for _am_tar in tar gnutar gtar; do
10846        AM_RUN_LOG([$_am_tar --version]) && break
10847      done
10848      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10849      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10850      am__untar="$_am_tar -xf -"
10851      ;;
10852    plaintar)
10853      # Must skip GNU tar: if it does not support --format= it doesn't create
10854      # ustar tarball either.
10855      (tar --version) >/dev/null 2>&1 && continue
10856      am__tar='tar chf - "$$tardir"'
10857      am__tar_='tar chf - "$tardir"'
10858      am__untar='tar xf -'
10859      ;;
10860    pax)
10861      am__tar='pax -L -x $1 -w "$$tardir"'
10862      am__tar_='pax -L -x $1 -w "$tardir"'
10863      am__untar='pax -r'
10864      ;;
10865    cpio)
10866      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10867      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10868      am__untar='cpio -i -H $1 -d'
10869      ;;
10870    none)
10871      am__tar=false
10872      am__tar_=false
10873      am__untar=false
10874      ;;
10875    esac
10876
10877    # If the value was cached, stop now.  We just wanted to have am__tar
10878    # and am__untar set.
10879    test -n "${am_cv_prog_tar_$1}" && break
10880
10881    # tar/untar a dummy directory, and stop if the command works.
10882    rm -rf conftest.dir
10883    mkdir conftest.dir
10884    echo GrepMe > conftest.dir/file
10885    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10886    rm -rf conftest.dir
10887    if test -s conftest.tar; then
10888      AM_RUN_LOG([$am__untar <conftest.tar])
10889      AM_RUN_LOG([cat conftest.dir/file])
10890      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10891    fi
10892  done
10893  rm -rf conftest.dir
10894
10895  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10896  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10897
10898AC_SUBST([am__tar])
10899AC_SUBST([am__untar])
10900]) # _AM_PROG_TAR
10901
10902m4_include([m4/cutter.m4])
10903m4_include([m4/gettext.m4])
10904m4_include([m4/iconv.m4])
10905m4_include([m4/id3.m4])
10906m4_include([m4/lib-ld.m4])
10907m4_include([m4/lib-link.m4])
10908m4_include([m4/lib-prefix.m4])
10909m4_include([m4/mad.m4])
10910m4_include([m4/nls.m4])
10911m4_include([m4/ogg.m4])
10912m4_include([m4/po.m4])
10913m4_include([m4/progtest.m4])
10914m4_include([m4/vorbis.m4])
10915