~skypce/indicator-session/indicator-session

« back to all changes in this revision

Viewing changes to debian/patches/99_autoreconf.patch

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2009-12-10 10:42:21 UTC
  • mfrom: (1.1.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20091210104221-vf7zqsien3deqc1p
Tags: 0.1.7+r58-0ubuntu1
* New snapshot for libindicator 0.3.0
* debian/control
  - build depend on libtelepathy-glib-dev instead of libempathy-dev
  - build depend on libindicator-dev >= 0.3.0
* removed 03_tp_glib.patch and 99_autoreconf.patch, applied upstream

Show diffs side-by-side

added added

removed removed

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