~ubuntu-branches/ubuntu/quantal/desktop-file-utils/quantal

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-03-30 15:25:44 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100330152544-p8n6eg4zvucfz9rb
Tags: 0.16-0ubuntu1
* New upstream release:
 - do not unlink the destination file if it's the same as the source file in
   desktop-file-install
 - check that a main category is included in the Categories
 - check that categories required by another one are present
 - do not always show warnings about KDE specific uses
 - check that the Comment does not look like the Name and the GenericName
 - display error about multiple keys with the same name earlier
 - improve MIME type check to make sure that the MIME types are valid
 - add LXDE in the list of registered OnlyShowIn values
 - add "warning" to error strings to make them easily greppable
 - handle AutostartCondition key, as proposed for the autostart specification
   and used in GNOME
 - accept empty Categories key as valid
 - make new errors non-fatal to give some time to maintainers to fix their
   .desktop file after a release of desktop-file-utils
 - plug leak
 - code cleanups
 - improve MIME type check to make sure that the MIME types are valid
 - improve error messages (Erik Hovland, Vincent)
 - fix format string vulnerability warning
 - use AM_SILENT_RULES
 - improve build system
* debian/patches/01-add-lxde.patch:
  - Applied upstream
* debian/control:
  - Add Vcs-Bzr link
  - Use Standards-Version 3.8.4
* debian/watch:
  - Releases now in bzip2 format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
 
# Free Software Foundation, Inc.
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
# Do all the work for Automake.                            -*- Autoconf -*-
15
 
 
16
 
# This macro actually does too much some checks are only needed if
17
 
# your package does certain things.  But this isn't really a big deal.
18
 
 
19
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
20
 
# Free Software Foundation, Inc.
21
 
 
22
 
# This program is free software; you can redistribute it and/or modify
23
 
# it under the terms of the GNU General Public License as published by
24
 
# the Free Software Foundation; either version 2, or (at your option)
25
 
# any later version.
26
 
 
27
 
# This program is distributed in the hope that it will be useful,
28
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30
 
# GNU General Public License for more details.
31
 
 
32
 
# You should have received a copy of the GNU General Public License
33
 
# along with this program; if not, write to the Free Software
34
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35
 
# 02111-1307, USA.
36
 
 
37
 
# serial 10
38
 
 
39
 
AC_PREREQ([2.54])
40
 
 
41
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
42
 
# the ones we care about.
43
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
44
 
 
45
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
46
 
# AM_INIT_AUTOMAKE([OPTIONS])
47
 
# -----------------------------------------------
48
 
# The call with PACKAGE and VERSION arguments is the old style
49
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
50
 
# and VERSION should now be passed to AC_INIT and removed from
51
 
# the call to AM_INIT_AUTOMAKE.
52
 
# We support both call styles for the transition.  After
53
 
# the next Automake release, Autoconf can make the AC_INIT
54
 
# arguments mandatory, and then we can depend on a new Autoconf
55
 
# release and drop the old call support.
56
 
AC_DEFUN([AM_INIT_AUTOMAKE],
57
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
58
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
59
 
# test to see if srcdir already configured
60
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
61
 
   test -f $srcdir/config.status; then
62
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
63
 
fi
64
 
 
65
 
# test whether we have cygpath
66
 
if test -z "$CYGPATH_W"; then
67
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
68
 
    CYGPATH_W='cygpath -w'
69
 
  else
70
 
    CYGPATH_W=echo
71
 
  fi
72
 
fi
73
 
AC_SUBST([CYGPATH_W])
74
 
 
75
 
# Define the identity of the package.
76
 
dnl Distinguish between old-style and new-style calls.
77
 
m4_ifval([$2],
78
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
79
 
 AC_SUBST([PACKAGE], [$1])dnl
80
 
 AC_SUBST([VERSION], [$2])],
81
 
[_AM_SET_OPTIONS([$1])dnl
82
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
83
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
84
 
 
85
 
_AM_IF_OPTION([no-define],,
86
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
88
 
 
89
 
# Some tools Automake needs.
90
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
91
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
92
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
93
 
AM_MISSING_PROG(AUTOCONF, autoconf)
94
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
95
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
96
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
97
 
AM_MISSING_PROG(AMTAR, tar)
98
 
AM_PROG_INSTALL_SH
99
 
AM_PROG_INSTALL_STRIP
100
 
# We need awk for the "check" target.  The system "awk" is bad on
101
 
# some platforms.
102
 
AC_REQUIRE([AC_PROG_AWK])dnl
103
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
104
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
105
 
 
106
 
_AM_IF_OPTION([no-dependencies],,
107
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
108
 
                  [_AM_DEPENDENCIES(CC)],
109
 
                  [define([AC_PROG_CC],
110
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
111
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
112
 
                  [_AM_DEPENDENCIES(CXX)],
113
 
                  [define([AC_PROG_CXX],
114
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
115
 
])
116
 
])
117
 
 
118
 
 
119
 
# When config.status generates a header, we must update the stamp-h file.
120
 
# This file resides in the same directory as the config header
121
 
# that is generated.  The stamp files are numbered to have different names.
122
 
 
123
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
124
 
# loop where config.status creates the headers, so we can generate
125
 
# our stamp files there.
126
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
127
 
[# Compute $1's index in $config_headers.
128
 
_am_stamp_count=1
129
 
for _am_header in $config_headers :; do
130
 
  case $_am_header in
131
 
    $1 | $1:* )
132
 
      break ;;
133
 
    * )
134
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
135
 
  esac
136
 
done
137
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
138
 
 
139
 
# Copyright 2002  Free Software Foundation, Inc.
140
 
 
141
 
# This program is free software; you can redistribute it and/or modify
142
 
# it under the terms of the GNU General Public License as published by
143
 
# the Free Software Foundation; either version 2, or (at your option)
144
 
# any later version.
145
 
 
146
 
# This program is distributed in the hope that it will be useful,
147
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
148
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
149
 
# GNU General Public License for more details.
150
 
 
151
 
# You should have received a copy of the GNU General Public License
152
 
# along with this program; if not, write to the Free Software
153
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
 
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
23
#
 
24
# This file is free software; the Free Software Foundation
 
25
# gives unlimited permission to copy and/or distribute it,
 
26
# with or without modifications, as long as this notice is preserved.
154
27
 
155
28
# AM_AUTOMAKE_VERSION(VERSION)
156
29
# ----------------------------
157
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
158
31
# generated from the m4 files accompanying Automake X.Y.
159
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
 
32
# (This private macro should not be called outside this file.)
 
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
34
[am__api_version='1.11'
 
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
36
dnl require some minimum version.  Point them to the right macro.
 
37
m4_if([$1], [1.11], [],
 
38
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
39
])
 
40
 
 
41
# _AM_AUTOCONF_VERSION(VERSION)
 
42
# -----------------------------
 
43
# aclocal traces this macro to find the Autoconf version.
 
44
# This is a private macro too.  Using m4_define simplifies
 
45
# the logic in aclocal, which can simply ignore this definition.
 
46
m4_define([_AM_AUTOCONF_VERSION], [])
160
47
 
161
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
162
49
# -------------------------------
163
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
164
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
165
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
166
 
         [AM_AUTOMAKE_VERSION([1.7.9])])
167
 
 
168
 
# Helper functions for option handling.                    -*- Autoconf -*-
169
 
 
170
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
171
 
 
172
 
# This program is free software; you can redistribute it and/or modify
173
 
# it under the terms of the GNU General Public License as published by
174
 
# the Free Software Foundation; either version 2, or (at your option)
175
 
# any later version.
176
 
 
177
 
# This program is distributed in the hope that it will be useful,
178
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
179
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
180
 
# GNU General Public License for more details.
181
 
 
182
 
# You should have received a copy of the GNU General Public License
183
 
# along with this program; if not, write to the Free Software
184
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
185
 
# 02111-1307, USA.
186
 
 
187
 
# serial 2
188
 
 
189
 
# _AM_MANGLE_OPTION(NAME)
190
 
# -----------------------
191
 
AC_DEFUN([_AM_MANGLE_OPTION],
192
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
193
 
 
194
 
# _AM_SET_OPTION(NAME)
195
 
# ------------------------------
196
 
# Set option NAME.  Presently that only means defining a flag for this option.
197
 
AC_DEFUN([_AM_SET_OPTION],
198
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
199
 
 
200
 
# _AM_SET_OPTIONS(OPTIONS)
201
 
# ----------------------------------
202
 
# OPTIONS is a space-separated list of Automake options.
203
 
AC_DEFUN([_AM_SET_OPTIONS],
204
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
205
 
 
206
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
207
 
# -------------------------------------------
208
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
209
 
AC_DEFUN([_AM_IF_OPTION],
210
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
211
 
 
212
 
#
213
 
# Check to make sure that the build environment is sane.
214
 
#
215
 
 
216
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
217
 
 
218
 
# This program is free software; you can redistribute it and/or modify
219
 
# it under the terms of the GNU General Public License as published by
220
 
# the Free Software Foundation; either version 2, or (at your option)
221
 
# any later version.
222
 
 
223
 
# This program is distributed in the hope that it will be useful,
224
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
225
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
226
 
# GNU General Public License for more details.
227
 
 
228
 
# You should have received a copy of the GNU General Public License
229
 
# along with this program; if not, write to the Free Software
230
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
231
 
# 02111-1307, USA.
232
 
 
233
 
# serial 3
234
 
 
235
 
# AM_SANITY_CHECK
236
 
# ---------------
237
 
AC_DEFUN([AM_SANITY_CHECK],
238
 
[AC_MSG_CHECKING([whether build environment is sane])
239
 
# Just in case
240
 
sleep 1
241
 
echo timestamp > conftest.file
242
 
# Do `set' in a subshell so we don't clobber the current shell's
243
 
# arguments.  Must try -L first in case configure is actually a
244
 
# symlink; some systems play weird games with the mod time of symlinks
245
 
# (eg FreeBSD returns the mod time of the symlink's containing
246
 
# directory).
247
 
if (
248
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
249
 
   if test "$[*]" = "X"; then
250
 
      # -L didn't work.
251
 
      set X `ls -t $srcdir/configure conftest.file`
252
 
   fi
253
 
   rm -f conftest.file
254
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
255
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
256
 
 
257
 
      # If neither matched, then we have a broken ls.  This can happen
258
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
259
 
      # broken ls alias from the environment.  This has actually
260
 
      # happened.  Such a system could not be considered "sane".
261
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
262
 
alias in your environment])
263
 
   fi
264
 
 
265
 
   test "$[2]" = conftest.file
266
 
   )
267
 
then
268
 
   # Ok.
269
 
   :
270
 
else
271
 
   AC_MSG_ERROR([newly created file is older than distributed files!
272
 
Check your system clock])
273
 
fi
274
 
AC_MSG_RESULT(yes)])
275
 
 
276
 
#  -*- Autoconf -*-
277
 
 
278
 
 
279
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
280
 
 
281
 
# This program is free software; you can redistribute it and/or modify
282
 
# it under the terms of the GNU General Public License as published by
283
 
# the Free Software Foundation; either version 2, or (at your option)
284
 
# any later version.
285
 
 
286
 
# This program is distributed in the hope that it will be useful,
287
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
288
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
289
 
# GNU General Public License for more details.
290
 
 
291
 
# You should have received a copy of the GNU General Public License
292
 
# along with this program; if not, write to the Free Software
293
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
294
 
# 02111-1307, USA.
295
 
 
296
 
# serial 3
297
 
 
298
 
# AM_MISSING_PROG(NAME, PROGRAM)
299
 
# ------------------------------
300
 
AC_DEFUN([AM_MISSING_PROG],
301
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
302
 
$1=${$1-"${am_missing_run}$2"}
303
 
AC_SUBST($1)])
304
 
 
305
 
 
306
 
# AM_MISSING_HAS_RUN
307
 
# ------------------
308
 
# Define MISSING if not defined so far and test if it supports --run.
309
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
310
 
AC_DEFUN([AM_MISSING_HAS_RUN],
311
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
312
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
313
 
# Use eval to expand $SHELL
314
 
if eval "$MISSING --run true"; then
315
 
  am_missing_run="$MISSING --run "
316
 
else
317
 
  am_missing_run=
318
 
  AC_MSG_WARN([`missing' script is too old or missing])
319
 
fi
320
 
])
321
 
 
322
 
# AM_AUX_DIR_EXPAND
323
 
 
324
 
# Copyright 2001 Free Software Foundation, Inc.
325
 
 
326
 
# This program is free software; you can redistribute it and/or modify
327
 
# it under the terms of the GNU General Public License as published by
328
 
# the Free Software Foundation; either version 2, or (at your option)
329
 
# any later version.
330
 
 
331
 
# This program is distributed in the hope that it will be useful,
332
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
333
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
334
 
# GNU General Public License for more details.
335
 
 
336
 
# You should have received a copy of the GNU General Public License
337
 
# along with this program; if not, write to the Free Software
338
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
339
 
# 02111-1307, USA.
 
53
[AM_AUTOMAKE_VERSION([1.11])dnl
 
54
m4_ifndef([AC_AUTOCONF_VERSION],
 
55
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
57
 
 
58
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
59
 
 
60
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
61
#
 
62
# This file is free software; the Free Software Foundation
 
63
# gives unlimited permission to copy and/or distribute it,
 
64
# with or without modifications, as long as this notice is preserved.
340
65
 
341
66
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
342
67
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
376
101
# absolute PATH.  The drawback is that using absolute paths prevent a
377
102
# configured tree to be moved without reconfiguration.
378
103
 
379
 
# Rely on autoconf to set up CDPATH properly.
380
 
AC_PREREQ([2.50])
381
 
 
382
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
 
104
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
105
[dnl Rely on autoconf to set up CDPATH properly.
 
106
AC_PREREQ([2.50])dnl
383
107
# expand $ac_aux_dir to an absolute path
384
108
am_aux_dir=`cd $ac_aux_dir && pwd`
385
109
])
386
110
 
387
 
# AM_PROG_INSTALL_SH
388
 
# ------------------
389
 
# Define $install_sh.
390
 
 
391
 
# Copyright 2001 Free Software Foundation, Inc.
392
 
 
393
 
# This program is free software; you can redistribute it and/or modify
394
 
# it under the terms of the GNU General Public License as published by
395
 
# the Free Software Foundation; either version 2, or (at your option)
396
 
# any later version.
397
 
 
398
 
# This program is distributed in the hope that it will be useful,
399
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
400
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
401
 
# GNU General Public License for more details.
402
 
 
403
 
# You should have received a copy of the GNU General Public License
404
 
# along with this program; if not, write to the Free Software
405
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
406
 
# 02111-1307, USA.
407
 
 
408
 
AC_DEFUN([AM_PROG_INSTALL_SH],
409
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
410
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
411
 
AC_SUBST(install_sh)])
412
 
 
413
 
# AM_PROG_INSTALL_STRIP
414
 
 
415
 
# Copyright 2001 Free Software Foundation, Inc.
416
 
 
417
 
# This program is free software; you can redistribute it and/or modify
418
 
# it under the terms of the GNU General Public License as published by
419
 
# the Free Software Foundation; either version 2, or (at your option)
420
 
# any later version.
421
 
 
422
 
# This program is distributed in the hope that it will be useful,
423
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
424
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
425
 
# GNU General Public License for more details.
426
 
 
427
 
# You should have received a copy of the GNU General Public License
428
 
# along with this program; if not, write to the Free Software
429
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
430
 
# 02111-1307, USA.
431
 
 
432
 
# One issue with vendor `install' (even GNU) is that you can't
433
 
# specify the program used to strip binaries.  This is especially
434
 
# annoying in cross-compiling environments, where the build's strip
435
 
# is unlikely to handle the host's binaries.
436
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
437
 
# always use install-sh in `make install-strip', and initialize
438
 
# STRIPPROG with the value of the STRIP variable (set by the user).
439
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
440
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
441
 
# Installed binaries are usually stripped using `strip' when the user
442
 
# run `make install-strip'.  However `strip' might not be the right
443
 
# tool to use in cross-compilation environments, therefore Automake
444
 
# will honor the `STRIP' environment variable to overrule this program.
445
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
446
 
if test "$cross_compiling" != no; then
447
 
  AC_CHECK_TOOL([STRIP], [strip], :)
448
 
fi
449
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
450
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
451
 
 
452
 
#                                                          -*- Autoconf -*-
453
 
# Copyright (C) 2003  Free Software Foundation, Inc.
454
 
 
455
 
# This program is free software; you can redistribute it and/or modify
456
 
# it under the terms of the GNU General Public License as published by
457
 
# the Free Software Foundation; either version 2, or (at your option)
458
 
# any later version.
459
 
 
460
 
# This program is distributed in the hope that it will be useful,
461
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
462
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
463
 
# GNU General Public License for more details.
464
 
 
465
 
# You should have received a copy of the GNU General Public License
466
 
# along with this program; if not, write to the Free Software
467
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
468
 
# 02111-1307, USA.
469
 
 
470
 
# serial 1
471
 
 
472
 
# Check whether the underlying file-system supports filenames
473
 
# with a leading dot.  For instance MS-DOS doesn't.
474
 
AC_DEFUN([AM_SET_LEADING_DOT],
475
 
[rm -rf .tst 2>/dev/null
476
 
mkdir .tst 2>/dev/null
477
 
if test -d .tst; then
478
 
  am__leading_dot=.
 
111
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
112
 
 
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
114
# Free Software Foundation, Inc.
 
115
#
 
116
# This file is free software; the Free Software Foundation
 
117
# gives unlimited permission to copy and/or distribute it,
 
118
# with or without modifications, as long as this notice is preserved.
 
119
 
 
120
# serial 9
 
121
 
 
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
123
# -------------------------------------
 
124
# Define a conditional.
 
125
AC_DEFUN([AM_CONDITIONAL],
 
126
[AC_PREREQ(2.52)dnl
 
127
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
128
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
129
AC_SUBST([$1_TRUE])dnl
 
130
AC_SUBST([$1_FALSE])dnl
 
131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
133
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
134
if $2; then
 
135
  $1_TRUE=
 
136
  $1_FALSE='#'
479
137
else
480
 
  am__leading_dot=_
 
138
  $1_TRUE='#'
 
139
  $1_FALSE=
481
140
fi
482
 
rmdir .tst 2>/dev/null
483
 
AC_SUBST([am__leading_dot])])
484
 
 
485
 
# serial 5                                              -*- Autoconf -*-
486
 
 
487
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
488
 
 
489
 
# This program is free software; you can redistribute it and/or modify
490
 
# it under the terms of the GNU General Public License as published by
491
 
# the Free Software Foundation; either version 2, or (at your option)
492
 
# any later version.
493
 
 
494
 
# This program is distributed in the hope that it will be useful,
495
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
496
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
497
 
# GNU General Public License for more details.
498
 
 
499
 
# You should have received a copy of the GNU General Public License
500
 
# along with this program; if not, write to the Free Software
501
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
502
 
# 02111-1307, USA.
503
 
 
 
141
AC_CONFIG_COMMANDS_PRE(
 
142
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
143
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
144
Usually this means the macro was only invoked conditionally.]])
 
145
fi])])
 
146
 
 
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
 
148
# Free Software Foundation, Inc.
 
149
#
 
150
# This file is free software; the Free Software Foundation
 
151
# gives unlimited permission to copy and/or distribute it,
 
152
# with or without modifications, as long as this notice is preserved.
 
153
 
 
154
# serial 10
504
155
 
505
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
506
157
# written in clear, in which case automake, when reading aclocal.m4,
509
160
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
510
161
 
511
162
 
512
 
 
513
163
# _AM_DEPENDENCIES(NAME)
514
164
# ----------------------
515
165
# See how the compiler implements dependency checking.
529
179
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
530
180
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
531
181
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
182
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
532
183
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
533
184
                   [depcc="$$1"   am_compiler_list=])
534
185
 
557
208
  if test "$am_compiler_list" = ""; then
558
209
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
559
210
  fi
 
211
  am__universal=false
 
212
  m4_case([$1], [CC],
 
213
    [case " $depcc " in #(
 
214
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
215
     esac],
 
216
    [CXX],
 
217
    [case " $depcc " in #(
 
218
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
219
     esac])
 
220
 
560
221
  for depmode in $am_compiler_list; do
561
222
    # Setup a source with many dependencies, because some compilers
562
223
    # like to wrap large dependency lists on column 80 (with \), and
568
229
    : > sub/conftest.c
569
230
    for i in 1 2 3 4 5 6; do
570
231
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
571
 
      : > sub/conftst$i.h
 
232
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
233
      # Solaris 8's {/usr,}/bin/sh.
 
234
      touch sub/conftst$i.h
572
235
    done
573
236
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
574
237
 
 
238
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
239
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
240
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
241
    # versions had trouble with output in subdirs
 
242
    am__obj=sub/conftest.${OBJEXT-o}
 
243
    am__minus_obj="-o $am__obj"
575
244
    case $depmode in
 
245
    gcc)
 
246
      # This depmode causes a compiler race in universal mode.
 
247
      test "$am__universal" = false || continue
 
248
      ;;
576
249
    nosideeffect)
577
250
      # after this tag, mechanisms are not by side-effect, so they'll
578
251
      # only be used when explicitly requested
582
255
        break
583
256
      fi
584
257
      ;;
 
258
    msvisualcpp | msvcmsys)
 
259
      # This compiler won't grok `-c -o', but also, the minuso test has
 
260
      # not run yet.  These depmodes are late enough in the game, and
 
261
      # so weak that their functioning should not be impacted.
 
262
      am__obj=conftest.${OBJEXT-o}
 
263
      am__minus_obj=
 
264
      ;;
585
265
    none) break ;;
586
266
    esac
587
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
588
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
589
 
    # handle `-M -o', and we need to detect this.
590
267
    if depmode=$depmode \
591
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
268
       source=sub/conftest.c object=$am__obj \
592
269
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
593
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
270
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
594
271
         >/dev/null 2>conftest.err &&
 
272
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
595
273
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
596
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
274
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
597
275
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
598
276
      # icc doesn't choke on unknown options, it will just issue warnings
599
 
      # (even with -Werror).  So we grep stderr for any message
600
 
      # that says an option was ignored.
601
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
277
      # or remarks (even with -Werror).  So we grep stderr for any message
 
278
      # that says an option was ignored or not supported.
 
279
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
280
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
281
      # The diagnosis changed in icc 8.0:
 
282
      #   icc: Command line remark: option '-MP' not supported
 
283
      if (grep 'ignoring option' conftest.err ||
 
284
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
602
285
        am_cv_$1_dependencies_compiler_type=$depmode
603
286
        break
604
287
      fi
632
315
# ------------
633
316
AC_DEFUN([AM_DEP_TRACK],
634
317
[AC_ARG_ENABLE(dependency-tracking,
635
 
[  --disable-dependency-tracking Speeds up one-time builds
636
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
 
318
[  --disable-dependency-tracking  speeds up one-time build
 
319
  --enable-dependency-tracking   do not reject slow dependency extractors])
637
320
if test "x$enable_dependency_tracking" != xno; then
638
321
  am_depcomp="$ac_aux_dir/depcomp"
639
322
  AMDEPBACKSLASH='\'
640
323
fi
641
324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
642
 
AC_SUBST([AMDEPBACKSLASH])
 
325
AC_SUBST([AMDEPBACKSLASH])dnl
 
326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
643
327
])
644
328
 
645
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
646
 
 
647
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
648
 
 
649
 
# This program is free software; you can redistribute it and/or modify
650
 
# it under the terms of the GNU General Public License as published by
651
 
# the Free Software Foundation; either version 2, or (at your option)
652
 
# any later version.
653
 
 
654
 
# This program is distributed in the hope that it will be useful,
655
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
656
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
657
 
# GNU General Public License for more details.
658
 
 
659
 
# You should have received a copy of the GNU General Public License
660
 
# along with this program; if not, write to the Free Software
661
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
662
 
# 02111-1307, USA.
663
 
 
664
 
#serial 2
 
329
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
330
 
 
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
332
# Free Software Foundation, Inc.
 
333
#
 
334
# This file is free software; the Free Software Foundation
 
335
# gives unlimited permission to copy and/or distribute it,
 
336
# with or without modifications, as long as this notice is preserved.
 
337
 
 
338
#serial 5
665
339
 
666
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
667
341
# ------------------------------
668
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
669
 
[for mf in $CONFIG_FILES; do
670
 
  # Strip MF so we end up with the name of the file.
671
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
672
 
  # Check whether this is an Automake generated Makefile or not.
673
 
  # We used to match only the files named `Makefile.in', but
674
 
  # some people rename them; so instead we look at the file content.
675
 
  # Grep'ing the first line is not enough: some people post-process
676
 
  # each Makefile.in and add a new line on top of each file to say so.
677
 
  # So let's grep whole file.
678
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
679
 
    dirpart=`AS_DIRNAME("$mf")`
680
 
  else
681
 
    continue
682
 
  fi
683
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
684
 
  # Extract the definition of DEP_FILES from the Makefile without
685
 
  # running `make'.
686
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
687
 
  test -z "$DEPDIR" && continue
688
 
  # When using ansi2knr, U may be empty or an underscore; expand it
689
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
690
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
691
 
  # We invoke sed twice because it is the simplest approach to
692
 
  # changing $(DEPDIR) to its actual value in the expansion.
693
 
  for file in `sed -n -e '
694
 
    /^DEP_FILES = .*\\\\$/ {
695
 
      s/^DEP_FILES = //
696
 
      :loop
697
 
        s/\\\\$//
698
 
        p
699
 
        n
700
 
        /\\\\$/ b loop
701
 
      p
702
 
    }
703
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
704
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
705
 
    # Make sure the directory exists.
706
 
    test -f "$dirpart/$file" && continue
707
 
    fdir=`AS_DIRNAME(["$file"])`
708
 
    AS_MKDIR_P([$dirpart/$fdir])
709
 
    # echo "creating $dirpart/$file"
710
 
    echo '# dummy' > "$dirpart/$file"
 
343
[{
 
344
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
345
  # are listed without --file.  Let's play safe and only enable the eval
 
346
  # if we detect the quoting.
 
347
  case $CONFIG_FILES in
 
348
  *\'*) eval set x "$CONFIG_FILES" ;;
 
349
  *)   set x $CONFIG_FILES ;;
 
350
  esac
 
351
  shift
 
352
  for mf
 
353
  do
 
354
    # Strip MF so we end up with the name of the file.
 
355
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
356
    # Check whether this is an Automake generated Makefile or not.
 
357
    # We used to match only the files named `Makefile.in', but
 
358
    # some people rename them; so instead we look at the file content.
 
359
    # Grep'ing the first line is not enough: some people post-process
 
360
    # each Makefile.in and add a new line on top of each file to say so.
 
361
    # Grep'ing the whole file is not good either: AIX grep has a line
 
362
    # limit of 2048, but all sed's we know have understand at least 4000.
 
363
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
364
      dirpart=`AS_DIRNAME("$mf")`
 
365
    else
 
366
      continue
 
367
    fi
 
368
    # Extract the definition of DEPDIR, am__include, and am__quote
 
369
    # from the Makefile without running `make'.
 
370
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
371
    test -z "$DEPDIR" && continue
 
372
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
373
    test -z "am__include" && continue
 
374
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
375
    # When using ansi2knr, U may be empty or an underscore; expand it
 
376
    U=`sed -n 's/^U = //p' < "$mf"`
 
377
    # Find all dependency output files, they are included files with
 
378
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
379
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
380
    # expansion.
 
381
    for file in `sed -n "
 
382
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
383
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
384
      # Make sure the directory exists.
 
385
      test -f "$dirpart/$file" && continue
 
386
      fdir=`AS_DIRNAME(["$file"])`
 
387
      AS_MKDIR_P([$dirpart/$fdir])
 
388
      # echo "creating $dirpart/$file"
 
389
      echo '# dummy' > "$dirpart/$file"
 
390
    done
711
391
  done
712
 
done
 
392
}
713
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
714
394
 
715
395
 
726
406
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
727
407
])
728
408
 
729
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
730
 
 
731
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
732
 
 
733
 
# This program is free software; you can redistribute it and/or modify
734
 
# it under the terms of the GNU General Public License as published by
735
 
# the Free Software Foundation; either version 2, or (at your option)
736
 
# any later version.
737
 
 
738
 
# This program is distributed in the hope that it will be useful,
739
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
740
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
741
 
# GNU General Public License for more details.
742
 
 
743
 
# You should have received a copy of the GNU General Public License
744
 
# along with this program; if not, write to the Free Software
745
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
746
 
# 02111-1307, USA.
 
409
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
410
# Free Software Foundation, Inc.
 
411
#
 
412
# This file is free software; the Free Software Foundation
 
413
# gives unlimited permission to copy and/or distribute it,
 
414
# with or without modifications, as long as this notice is preserved.
 
415
 
 
416
# serial 8
 
417
 
 
418
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
419
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
420
 
 
421
# Do all the work for Automake.                             -*- Autoconf -*-
 
422
 
 
423
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
424
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
425
#
 
426
# This file is free software; the Free Software Foundation
 
427
# gives unlimited permission to copy and/or distribute it,
 
428
# with or without modifications, as long as this notice is preserved.
 
429
 
 
430
# serial 16
 
431
 
 
432
# This macro actually does too much.  Some checks are only needed if
 
433
# your package does certain things.  But this isn't really a big deal.
 
434
 
 
435
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
436
# AM_INIT_AUTOMAKE([OPTIONS])
 
437
# -----------------------------------------------
 
438
# The call with PACKAGE and VERSION arguments is the old style
 
439
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
440
# and VERSION should now be passed to AC_INIT and removed from
 
441
# the call to AM_INIT_AUTOMAKE.
 
442
# We support both call styles for the transition.  After
 
443
# the next Automake release, Autoconf can make the AC_INIT
 
444
# arguments mandatory, and then we can depend on a new Autoconf
 
445
# release and drop the old call support.
 
446
AC_DEFUN([AM_INIT_AUTOMAKE],
 
447
[AC_PREREQ([2.62])dnl
 
448
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
449
dnl the ones we care about.
 
450
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
451
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
452
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
453
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
454
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
455
  # is not polluted with repeated "-I."
 
456
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
457
  # test to see if srcdir already configured
 
458
  if test -f $srcdir/config.status; then
 
459
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
460
  fi
 
461
fi
 
462
 
 
463
# test whether we have cygpath
 
464
if test -z "$CYGPATH_W"; then
 
465
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
466
    CYGPATH_W='cygpath -w'
 
467
  else
 
468
    CYGPATH_W=echo
 
469
  fi
 
470
fi
 
471
AC_SUBST([CYGPATH_W])
 
472
 
 
473
# Define the identity of the package.
 
474
dnl Distinguish between old-style and new-style calls.
 
475
m4_ifval([$2],
 
476
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
477
 AC_SUBST([PACKAGE], [$1])dnl
 
478
 AC_SUBST([VERSION], [$2])],
 
479
[_AM_SET_OPTIONS([$1])dnl
 
480
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
481
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
482
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
483
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
484
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
485
 
 
486
_AM_IF_OPTION([no-define],,
 
487
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
488
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
489
 
 
490
# Some tools Automake needs.
 
491
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
492
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
493
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
494
AM_MISSING_PROG(AUTOCONF, autoconf)
 
495
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
496
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
497
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
498
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
499
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
500
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
501
# We need awk for the "check" target.  The system "awk" is bad on
 
502
# some platforms.
 
503
AC_REQUIRE([AC_PROG_AWK])dnl
 
504
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
505
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
506
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
507
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
508
                             [_AM_PROG_TAR([v7])])])
 
509
_AM_IF_OPTION([no-dependencies],,
 
510
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
511
                  [_AM_DEPENDENCIES(CC)],
 
512
                  [define([AC_PROG_CC],
 
513
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
514
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
515
                  [_AM_DEPENDENCIES(CXX)],
 
516
                  [define([AC_PROG_CXX],
 
517
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
518
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
519
                  [_AM_DEPENDENCIES(OBJC)],
 
520
                  [define([AC_PROG_OBJC],
 
521
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
522
])
 
523
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
524
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
525
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
526
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
527
AC_CONFIG_COMMANDS_PRE(dnl
 
528
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
529
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
530
])
 
531
 
 
532
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
533
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
534
dnl mangled by Autoconf and run in a shell conditional statement.
 
535
m4_define([_AC_COMPILER_EXEEXT],
 
536
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
537
 
 
538
 
 
539
# When config.status generates a header, we must update the stamp-h file.
 
540
# This file resides in the same directory as the config header
 
541
# that is generated.  The stamp files are numbered to have different names.
 
542
 
 
543
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
544
# loop where config.status creates the headers, so we can generate
 
545
# our stamp files there.
 
546
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
547
[# Compute $1's index in $config_headers.
 
548
_am_arg=$1
 
549
_am_stamp_count=1
 
550
for _am_header in $config_headers :; do
 
551
  case $_am_header in
 
552
    $_am_arg | $_am_arg:* )
 
553
      break ;;
 
554
    * )
 
555
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
556
  esac
 
557
done
 
558
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
559
 
 
560
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
561
#
 
562
# This file is free software; the Free Software Foundation
 
563
# gives unlimited permission to copy and/or distribute it,
 
564
# with or without modifications, as long as this notice is preserved.
 
565
 
 
566
# AM_PROG_INSTALL_SH
 
567
# ------------------
 
568
# Define $install_sh.
 
569
AC_DEFUN([AM_PROG_INSTALL_SH],
 
570
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
571
if test x"${install_sh}" != xset; then
 
572
  case $am_aux_dir in
 
573
  *\ * | *\     *)
 
574
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
575
  *)
 
576
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
577
  esac
 
578
fi
 
579
AC_SUBST(install_sh)])
 
580
 
 
581
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
582
#
 
583
# This file is free software; the Free Software Foundation
 
584
# gives unlimited permission to copy and/or distribute it,
 
585
# with or without modifications, as long as this notice is preserved.
747
586
 
748
587
# serial 2
749
588
 
 
589
# Check whether the underlying file-system supports filenames
 
590
# with a leading dot.  For instance MS-DOS doesn't.
 
591
AC_DEFUN([AM_SET_LEADING_DOT],
 
592
[rm -rf .tst 2>/dev/null
 
593
mkdir .tst 2>/dev/null
 
594
if test -d .tst; then
 
595
  am__leading_dot=.
 
596
else
 
597
  am__leading_dot=_
 
598
fi
 
599
rmdir .tst 2>/dev/null
 
600
AC_SUBST([am__leading_dot])])
 
601
 
 
602
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 
603
# 2006  Free Software Foundation, Inc.
 
604
#
 
605
# This file is free software; the Free Software Foundation
 
606
# gives unlimited permission to copy and/or distribute it,
 
607
# with or without modifications, as long as this notice is preserved.
 
608
 
 
609
# serial 10
 
610
 
 
611
# AM_PATH_LISPDIR
 
612
# ---------------
 
613
AC_DEFUN([AM_PATH_LISPDIR],
 
614
[AC_PREREQ([2.60])dnl
 
615
 # If set to t, that means we are running in a shell under Emacs.
 
616
 # If you have an Emacs named "t", then use the full path.
 
617
 test x"$EMACS" = xt && EMACS=
 
618
 AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
 
619
 AC_ARG_VAR([EMACS], [the Emacs editor command])
 
620
 AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
 
621
 AC_ARG_WITH([lispdir],
 
622
 [  --with-lispdir          override the default lisp directory],
 
623
 [ lispdir="$withval"
 
624
   AC_MSG_CHECKING([where .elc files should go])
 
625
   AC_MSG_RESULT([$lispdir])],
 
626
 [
 
627
 AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
 
628
   if test $EMACS != "no"; then
 
629
     if test x${lispdir+set} != xset; then
 
630
  # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
 
631
  # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
 
632
  #  which is non-obvious for non-emacs users.
 
633
  # Redirecting /dev/null should help a bit; pity we can't detect "broken"
 
634
  #  emacsen earlier and avoid running this altogether.
 
635
  AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
 
636
        am_cv_lispdir=`sed -n \
 
637
       -e 's,/$,,' \
 
638
       -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
 
639
       -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
 
640
       conftest.out`
 
641
       rm conftest.out
 
642
     fi
 
643
   fi
 
644
   test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
 
645
  ])
 
646
  lispdir="$am_cv_lispdir"
 
647
])
 
648
AC_SUBST([lispdir])
 
649
])# AM_PATH_LISPDIR
 
650
 
 
651
AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
 
652
 
 
653
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
654
# From Jim Meyering
 
655
 
 
656
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
657
# Free Software Foundation, Inc.
 
658
#
 
659
# This file is free software; the Free Software Foundation
 
660
# gives unlimited permission to copy and/or distribute it,
 
661
# with or without modifications, as long as this notice is preserved.
 
662
 
 
663
# serial 5
 
664
 
 
665
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
666
# ----------------------------------
 
667
# Control maintainer-specific portions of Makefiles.
 
668
# Default is to disable them, unless `enable' is passed literally.
 
669
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
670
# can override the default with the --enable/--disable switch.
 
671
AC_DEFUN([AM_MAINTAINER_MODE],
 
672
[m4_case(m4_default([$1], [disable]),
 
673
       [enable], [m4_define([am_maintainer_other], [disable])],
 
674
       [disable], [m4_define([am_maintainer_other], [enable])],
 
675
       [m4_define([am_maintainer_other], [enable])
 
676
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
677
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
678
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
679
  AC_ARG_ENABLE([maintainer-mode],
 
680
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
681
                          (and sometimes confusing) to the casual installer],
 
682
      [USE_MAINTAINER_MODE=$enableval],
 
683
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
684
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
685
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
686
  MAINT=$MAINTAINER_MODE_TRUE
 
687
  AC_SUBST([MAINT])dnl
 
688
]
 
689
)
 
690
 
 
691
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
692
 
 
693
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
694
 
 
695
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
696
#
 
697
# This file is free software; the Free Software Foundation
 
698
# gives unlimited permission to copy and/or distribute it,
 
699
# with or without modifications, as long as this notice is preserved.
 
700
 
 
701
# serial 4
 
702
 
750
703
# AM_MAKE_INCLUDE()
751
704
# -----------------
752
705
# Check to see how make treats includes.
754
707
[am_make=${MAKE-make}
755
708
cat > confinc << 'END'
756
709
am__doit:
757
 
        @echo done
 
710
        @echo this is the am__doit target
758
711
.PHONY: am__doit
759
712
END
760
713
# If we don't find an include directive, just comment out the code.
764
717
_am_result=none
765
718
# First try GNU make style include.
766
719
echo "include confinc" > confmf
767
 
# We grep out `Entering directory' and `Leaving directory'
768
 
# messages which can occur if `w' ends up in MAKEFLAGS.
769
 
# In particular we don't look at `^make:' because GNU make might
770
 
# be invoked under some other name (usually "gmake"), in which
771
 
# case it prints its new name instead of `make'.
772
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
773
 
   am__include=include
774
 
   am__quote=
775
 
   _am_result=GNU
776
 
fi
 
720
# Ignore all kinds of additional output from `make'.
 
721
case `$am_make -s -f confmf 2> /dev/null` in #(
 
722
*the\ am__doit\ target*)
 
723
  am__include=include
 
724
  am__quote=
 
725
  _am_result=GNU
 
726
  ;;
 
727
esac
777
728
# Now try BSD make style include.
778
729
if test "$am__include" = "#"; then
779
730
   echo '.include "confinc"' > confmf
780
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
781
 
      am__include=.include
782
 
      am__quote="\""
783
 
      _am_result=BSD
784
 
   fi
 
731
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
732
   *the\ am__doit\ target*)
 
733
     am__include=.include
 
734
     am__quote="\""
 
735
     _am_result=BSD
 
736
     ;;
 
737
   esac
785
738
fi
786
739
AC_SUBST([am__include])
787
740
AC_SUBST([am__quote])
789
742
rm -f confinc confmf
790
743
])
791
744
 
792
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
793
 
 
794
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
795
 
 
796
 
# This program is free software; you can redistribute it and/or modify
797
 
# it under the terms of the GNU General Public License as published by
798
 
# the Free Software Foundation; either version 2, or (at your option)
799
 
# any later version.
800
 
 
801
 
# This program is distributed in the hope that it will be useful,
802
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
803
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
804
 
# GNU General Public License for more details.
805
 
 
806
 
# You should have received a copy of the GNU General Public License
807
 
# along with this program; if not, write to the Free Software
808
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
809
 
# 02111-1307, USA.
810
 
 
811
 
# serial 5
812
 
 
813
 
AC_PREREQ(2.52)
814
 
 
815
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
816
 
# -------------------------------------
817
 
# Define a conditional.
818
 
AC_DEFUN([AM_CONDITIONAL],
819
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
820
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
821
 
AC_SUBST([$1_TRUE])
822
 
AC_SUBST([$1_FALSE])
823
 
if $2; then
824
 
  $1_TRUE=
825
 
  $1_FALSE='#'
826
 
else
827
 
  $1_TRUE='#'
828
 
  $1_FALSE=
829
 
fi
830
 
AC_CONFIG_COMMANDS_PRE(
831
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
832
 
  AC_MSG_ERROR([conditional "$1" was never defined.
833
 
Usually this means the macro was only invoked conditionally.])
834
 
fi])])
835
 
 
836
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
837
 
 
838
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
839
 
 
840
 
# This program is free software; you can redistribute it and/or modify
841
 
# it under the terms of the GNU General Public License as published by
842
 
# the Free Software Foundation; either version 2, or (at your option)
843
 
# any later version.
844
 
 
845
 
# This program is distributed in the hope that it will be useful,
846
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
847
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
848
 
# GNU General Public License for more details.
849
 
 
850
 
# You should have received a copy of the GNU General Public License
851
 
# along with this program; if not, write to the Free Software
852
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
853
 
# 02111-1307, USA.
854
 
 
855
 
AC_PREREQ([2.52])
 
745
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
746
 
 
747
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
748
# Free Software Foundation, Inc.
 
749
#
 
750
# This file is free software; the Free Software Foundation
 
751
# gives unlimited permission to copy and/or distribute it,
 
752
# with or without modifications, as long as this notice is preserved.
856
753
 
857
754
# serial 6
858
755
 
859
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
860
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
861
 
 
862
 
# Add --enable-maintainer-mode option to configure.
863
 
# From Jim Meyering
864
 
 
865
 
# Copyright 1996, 1998, 2000, 2001, 2002  Free Software Foundation, Inc.
866
 
 
867
 
# This program is free software; you can redistribute it and/or modify
868
 
# it under the terms of the GNU General Public License as published by
869
 
# the Free Software Foundation; either version 2, or (at your option)
870
 
# any later version.
871
 
 
872
 
# This program is distributed in the hope that it will be useful,
873
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
874
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
875
 
# GNU General Public License for more details.
876
 
 
877
 
# You should have received a copy of the GNU General Public License
878
 
# along with this program; if not, write to the Free Software
879
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
880
 
# 02111-1307, USA.
881
 
 
882
 
# serial 2
883
 
 
884
 
AC_DEFUN([AM_MAINTAINER_MODE],
885
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
886
 
  dnl maintainer-mode is disabled by default
887
 
  AC_ARG_ENABLE(maintainer-mode,
888
 
[  --enable-maintainer-mode enable make rules and dependencies not useful
889
 
                          (and sometimes confusing) to the casual installer],
890
 
      USE_MAINTAINER_MODE=$enableval,
891
 
      USE_MAINTAINER_MODE=no)
892
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
893
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
894
 
  MAINT=$MAINTAINER_MODE_TRUE
895
 
  AC_SUBST(MAINT)dnl
896
 
]
897
 
)
898
 
 
899
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
756
# AM_MISSING_PROG(NAME, PROGRAM)
 
757
# ------------------------------
 
758
AC_DEFUN([AM_MISSING_PROG],
 
759
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
760
$1=${$1-"${am_missing_run}$2"}
 
761
AC_SUBST($1)])
 
762
 
 
763
 
 
764
# AM_MISSING_HAS_RUN
 
765
# ------------------
 
766
# Define MISSING if not defined so far and test if it supports --run.
 
767
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
768
AC_DEFUN([AM_MISSING_HAS_RUN],
 
769
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
770
AC_REQUIRE_AUX_FILE([missing])dnl
 
771
if test x"${MISSING+set}" != xset; then
 
772
  case $am_aux_dir in
 
773
  *\ * | *\     *)
 
774
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
775
  *)
 
776
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
777
  esac
 
778
fi
 
779
# Use eval to expand $SHELL
 
780
if eval "$MISSING --run true"; then
 
781
  am_missing_run="$MISSING --run "
 
782
else
 
783
  am_missing_run=
 
784
  AC_MSG_WARN([`missing' script is too old or missing])
 
785
fi
 
786
])
 
787
 
 
788
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
789
#
 
790
# This file is free software; the Free Software Foundation
 
791
# gives unlimited permission to copy and/or distribute it,
 
792
# with or without modifications, as long as this notice is preserved.
 
793
 
 
794
# AM_PROG_MKDIR_P
 
795
# ---------------
 
796
# Check for `mkdir -p'.
 
797
AC_DEFUN([AM_PROG_MKDIR_P],
 
798
[AC_PREREQ([2.60])dnl
 
799
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
800
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
801
dnl while keeping a definition of mkdir_p for backward compatibility.
 
802
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
803
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
804
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
805
dnl adjustment using top_builddir (which is defined more often than
 
806
dnl MKDIR_P).
 
807
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
808
case $mkdir_p in
 
809
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
810
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
811
esac
 
812
])
 
813
 
 
814
# Helper functions for option handling.                     -*- Autoconf -*-
 
815
 
 
816
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
817
#
 
818
# This file is free software; the Free Software Foundation
 
819
# gives unlimited permission to copy and/or distribute it,
 
820
# with or without modifications, as long as this notice is preserved.
 
821
 
 
822
# serial 4
 
823
 
 
824
# _AM_MANGLE_OPTION(NAME)
 
825
# -----------------------
 
826
AC_DEFUN([_AM_MANGLE_OPTION],
 
827
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
828
 
 
829
# _AM_SET_OPTION(NAME)
 
830
# ------------------------------
 
831
# Set option NAME.  Presently that only means defining a flag for this option.
 
832
AC_DEFUN([_AM_SET_OPTION],
 
833
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
834
 
 
835
# _AM_SET_OPTIONS(OPTIONS)
 
836
# ----------------------------------
 
837
# OPTIONS is a space-separated list of Automake options.
 
838
AC_DEFUN([_AM_SET_OPTIONS],
 
839
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
840
 
 
841
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
842
# -------------------------------------------
 
843
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
844
AC_DEFUN([_AM_IF_OPTION],
 
845
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
846
 
 
847
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
848
 
 
849
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
850
# Free Software Foundation, Inc.
 
851
#
 
852
# This file is free software; the Free Software Foundation
 
853
# gives unlimited permission to copy and/or distribute it,
 
854
# with or without modifications, as long as this notice is preserved.
 
855
 
 
856
# serial 5
 
857
 
 
858
# AM_SANITY_CHECK
 
859
# ---------------
 
860
AC_DEFUN([AM_SANITY_CHECK],
 
861
[AC_MSG_CHECKING([whether build environment is sane])
 
862
# Just in case
 
863
sleep 1
 
864
echo timestamp > conftest.file
 
865
# Reject unsafe characters in $srcdir or the absolute working directory
 
866
# name.  Accept space and tab only in the latter.
 
867
am_lf='
 
868
'
 
869
case `pwd` in
 
870
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
871
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
872
esac
 
873
case $srcdir in
 
874
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
875
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
876
esac
 
877
 
 
878
# Do `set' in a subshell so we don't clobber the current shell's
 
879
# arguments.  Must try -L first in case configure is actually a
 
880
# symlink; some systems play weird games with the mod time of symlinks
 
881
# (eg FreeBSD returns the mod time of the symlink's containing
 
882
# directory).
 
883
if (
 
884
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
885
   if test "$[*]" = "X"; then
 
886
      # -L didn't work.
 
887
      set X `ls -t "$srcdir/configure" conftest.file`
 
888
   fi
 
889
   rm -f conftest.file
 
890
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
891
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
892
 
 
893
      # If neither matched, then we have a broken ls.  This can happen
 
894
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
895
      # broken ls alias from the environment.  This has actually
 
896
      # happened.  Such a system could not be considered "sane".
 
897
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
898
alias in your environment])
 
899
   fi
 
900
 
 
901
   test "$[2]" = conftest.file
 
902
   )
 
903
then
 
904
   # Ok.
 
905
   :
 
906
else
 
907
   AC_MSG_ERROR([newly created file is older than distributed files!
 
908
Check your system clock])
 
909
fi
 
910
AC_MSG_RESULT(yes)])
 
911
 
 
912
# Copyright (C) 2009  Free Software Foundation, Inc.
 
913
#
 
914
# This file is free software; the Free Software Foundation
 
915
# gives unlimited permission to copy and/or distribute it,
 
916
# with or without modifications, as long as this notice is preserved.
 
917
 
 
918
# serial 1
 
919
 
 
920
# AM_SILENT_RULES([DEFAULT])
 
921
# --------------------------
 
922
# Enable less verbose build rules; with the default set to DEFAULT
 
923
# (`yes' being less verbose, `no' or empty being verbose).
 
924
AC_DEFUN([AM_SILENT_RULES],
 
925
[AC_ARG_ENABLE([silent-rules],
 
926
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
927
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
928
case $enable_silent_rules in
 
929
yes) AM_DEFAULT_VERBOSITY=0;;
 
930
no)  AM_DEFAULT_VERBOSITY=1;;
 
931
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
932
esac
 
933
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
934
AM_BACKSLASH='\'
 
935
AC_SUBST([AM_BACKSLASH])dnl
 
936
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
937
])
 
938
 
 
939
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
940
#
 
941
# This file is free software; the Free Software Foundation
 
942
# gives unlimited permission to copy and/or distribute it,
 
943
# with or without modifications, as long as this notice is preserved.
 
944
 
 
945
# AM_PROG_INSTALL_STRIP
 
946
# ---------------------
 
947
# One issue with vendor `install' (even GNU) is that you can't
 
948
# specify the program used to strip binaries.  This is especially
 
949
# annoying in cross-compiling environments, where the build's strip
 
950
# is unlikely to handle the host's binaries.
 
951
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
952
# always use install-sh in `make install-strip', and initialize
 
953
# STRIPPROG with the value of the STRIP variable (set by the user).
 
954
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
955
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
956
# Installed binaries are usually stripped using `strip' when the user
 
957
# run `make install-strip'.  However `strip' might not be the right
 
958
# tool to use in cross-compilation environments, therefore Automake
 
959
# will honor the `STRIP' environment variable to overrule this program.
 
960
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
961
if test "$cross_compiling" != no; then
 
962
  AC_CHECK_TOOL([STRIP], [strip], :)
 
963
fi
 
964
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
965
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
966
 
 
967
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
968
#
 
969
# This file is free software; the Free Software Foundation
 
970
# gives unlimited permission to copy and/or distribute it,
 
971
# with or without modifications, as long as this notice is preserved.
 
972
 
 
973
# serial 2
 
974
 
 
975
# _AM_SUBST_NOTMAKE(VARIABLE)
 
976
# ---------------------------
 
977
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
978
# This macro is traced by Automake.
 
979
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
980
 
 
981
# AM_SUBST_NOTMAKE(VARIABLE)
 
982
# ---------------------------
 
983
# Public sister of _AM_SUBST_NOTMAKE.
 
984
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
985
 
 
986
# Check how to create a tarball.                            -*- Autoconf -*-
 
987
 
 
988
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
989
#
 
990
# This file is free software; the Free Software Foundation
 
991
# gives unlimited permission to copy and/or distribute it,
 
992
# with or without modifications, as long as this notice is preserved.
 
993
 
 
994
# serial 2
 
995
 
 
996
# _AM_PROG_TAR(FORMAT)
 
997
# --------------------
 
998
# Check how to create a tarball in format FORMAT.
 
999
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1000
#
 
1001
# Substitute a variable $(am__tar) that is a command
 
1002
# writing to stdout a FORMAT-tarball containing the directory
 
1003
# $tardir.
 
1004
#     tardir=directory && $(am__tar) > result.tar
 
1005
#
 
1006
# Substitute a variable $(am__untar) that extract such
 
1007
# a tarball read from stdin.
 
1008
#     $(am__untar) < result.tar
 
1009
AC_DEFUN([_AM_PROG_TAR],
 
1010
[# Always define AMTAR for backward compatibility.
 
1011
AM_MISSING_PROG([AMTAR], [tar])
 
1012
m4_if([$1], [v7],
 
1013
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
1014
     [m4_case([$1], [ustar],, [pax],,
 
1015
              [m4_fatal([Unknown tar format])])
 
1016
AC_MSG_CHECKING([how to create a $1 tar archive])
 
1017
# Loop over all known methods to create a tar archive until one works.
 
1018
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1019
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1020
# Do not fold the above two line into one, because Tru64 sh and
 
1021
# Solaris sh will not grok spaces in the rhs of `-'.
 
1022
for _am_tool in $_am_tools
 
1023
do
 
1024
  case $_am_tool in
 
1025
  gnutar)
 
1026
    for _am_tar in tar gnutar gtar;
 
1027
    do
 
1028
      AM_RUN_LOG([$_am_tar --version]) && break
 
1029
    done
 
1030
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1031
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1032
    am__untar="$_am_tar -xf -"
 
1033
    ;;
 
1034
  plaintar)
 
1035
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
1036
    # ustar tarball either.
 
1037
    (tar --version) >/dev/null 2>&1 && continue
 
1038
    am__tar='tar chf - "$$tardir"'
 
1039
    am__tar_='tar chf - "$tardir"'
 
1040
    am__untar='tar xf -'
 
1041
    ;;
 
1042
  pax)
 
1043
    am__tar='pax -L -x $1 -w "$$tardir"'
 
1044
    am__tar_='pax -L -x $1 -w "$tardir"'
 
1045
    am__untar='pax -r'
 
1046
    ;;
 
1047
  cpio)
 
1048
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1049
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1050
    am__untar='cpio -i -H $1 -d'
 
1051
    ;;
 
1052
  none)
 
1053
    am__tar=false
 
1054
    am__tar_=false
 
1055
    am__untar=false
 
1056
    ;;
 
1057
  esac
 
1058
 
 
1059
  # If the value was cached, stop now.  We just wanted to have am__tar
 
1060
  # and am__untar set.
 
1061
  test -n "${am_cv_prog_tar_$1}" && break
 
1062
 
 
1063
  # tar/untar a dummy directory, and stop if the command works
 
1064
  rm -rf conftest.dir
 
1065
  mkdir conftest.dir
 
1066
  echo GrepMe > conftest.dir/file
 
1067
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1068
  rm -rf conftest.dir
 
1069
  if test -s conftest.tar; then
 
1070
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1071
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1072
  fi
 
1073
done
 
1074
rm -rf conftest.dir
 
1075
 
 
1076
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1077
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1078
AC_SUBST([am__tar])
 
1079
AC_SUBST([am__untar])
 
1080
]) # _AM_PROG_TAR
900
1081
 
901
1082
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
902
 
 
903
 
# serial 48 AC_PROG_LIBTOOL
904
 
 
905
 
 
906
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
907
 
# -----------------------------------------------------------
908
 
# If this macro is not defined by Autoconf, define it here.
909
 
m4_ifdef([AC_PROVIDE_IFELSE],
910
 
         [],
911
 
         [m4_define([AC_PROVIDE_IFELSE],
912
 
                 [m4_ifdef([AC_PROVIDE_$1],
913
 
                           [$2], [$3])])])
914
 
 
915
 
 
916
 
# AC_PROG_LIBTOOL
917
 
# ---------------
918
 
AC_DEFUN([AC_PROG_LIBTOOL],
919
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
920
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
921
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
922
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
923
 
    [AC_LIBTOOL_CXX],
924
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
925
 
  ])])
926
 
dnl And a similar setup for Fortran 77 support
927
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
928
 
    [AC_LIBTOOL_F77],
929
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
930
 
])])
931
 
 
932
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
933
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
934
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
935
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
936
 
    [AC_LIBTOOL_GCJ],
937
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
938
 
      [AC_LIBTOOL_GCJ],
939
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
940
 
        [AC_LIBTOOL_GCJ],
941
 
      [ifdef([AC_PROG_GCJ],
942
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
943
 
       ifdef([A][M_PROG_GCJ],
944
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
945
 
       ifdef([LT_AC_PROG_GCJ],
946
 
             [define([LT_AC_PROG_GCJ],
947
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
948
 
])])# AC_PROG_LIBTOOL
949
 
 
950
 
 
951
 
# _AC_PROG_LIBTOOL
952
 
# ----------------
953
 
AC_DEFUN([_AC_PROG_LIBTOOL],
954
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
955
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
956
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
957
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
1083
#
 
1084
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
1085
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1086
#   Written by Gordon Matzigkeit, 1996
 
1087
#
 
1088
# This file is free software; the Free Software Foundation gives
 
1089
# unlimited permission to copy and/or distribute it, with or without
 
1090
# modifications, as long as this notice is preserved.
 
1091
 
 
1092
m4_define([_LT_COPYING], [dnl
 
1093
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
1094
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1095
#   Written by Gordon Matzigkeit, 1996
 
1096
#
 
1097
#   This file is part of GNU Libtool.
 
1098
#
 
1099
# GNU Libtool is free software; you can redistribute it and/or
 
1100
# modify it under the terms of the GNU General Public License as
 
1101
# published by the Free Software Foundation; either version 2 of
 
1102
# the License, or (at your option) any later version.
 
1103
#
 
1104
# As a special exception to the GNU General Public License,
 
1105
# if you distribute this file as part of a program or library that
 
1106
# is built using GNU Libtool, you may include this file under the
 
1107
# same distribution terms that you use for the rest of that program.
 
1108
#
 
1109
# GNU Libtool is distributed in the hope that it will be useful,
 
1110
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1111
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1112
# GNU General Public License for more details.
 
1113
#
 
1114
# You should have received a copy of the GNU General Public License
 
1115
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
1116
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
1117
# obtained by writing to the Free Software Foundation, Inc.,
 
1118
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
1119
])
 
1120
 
 
1121
# serial 56 LT_INIT
 
1122
 
 
1123
 
 
1124
# LT_PREREQ(VERSION)
 
1125
# ------------------
 
1126
# Complain and exit if this libtool version is less that VERSION.
 
1127
m4_defun([LT_PREREQ],
 
1128
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
1129
       [m4_default([$3],
 
1130
                   [m4_fatal([Libtool version $1 or higher is required],
 
1131
                             63)])],
 
1132
       [$2])])
 
1133
 
 
1134
 
 
1135
# _LT_CHECK_BUILDDIR
 
1136
# ------------------
 
1137
# Complain if the absolute build directory name contains unusual characters
 
1138
m4_defun([_LT_CHECK_BUILDDIR],
 
1139
[case `pwd` in
 
1140
  *\ * | *\     *)
 
1141
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
1142
esac
 
1143
])
 
1144
 
 
1145
 
 
1146
# LT_INIT([OPTIONS])
 
1147
# ------------------
 
1148
AC_DEFUN([LT_INIT],
 
1149
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
1150
AC_BEFORE([$0], [LT_LANG])dnl
 
1151
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1152
AC_BEFORE([$0], [LTDL_INIT])dnl
 
1153
m4_require([_LT_CHECK_BUILDDIR])dnl
 
1154
 
 
1155
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
1156
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
1157
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
1158
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
1159
dnl unless we require an AC_DEFUNed macro:
 
1160
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
1161
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
1162
AC_REQUIRE([LTVERSION_VERSION])dnl
 
1163
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
1164
m4_require([_LT_PROG_LTMAIN])dnl
 
1165
 
 
1166
dnl Parse OPTIONS
 
1167
_LT_SET_OPTIONS([$0], [$1])
958
1168
 
959
1169
# This can be used to rebuild libtool when needed
960
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
1170
LIBTOOL_DEPS="$ltmain"
961
1171
 
962
1172
# Always use our own libtool.
963
1173
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
964
1174
AC_SUBST(LIBTOOL)dnl
965
1175
 
966
 
# Prevent multiple expansion
967
 
define([AC_PROG_LIBTOOL], [])
968
 
])# _AC_PROG_LIBTOOL
969
 
 
970
 
 
971
 
# AC_LIBTOOL_SETUP
972
 
# ----------------
973
 
AC_DEFUN([AC_LIBTOOL_SETUP],
974
 
[AC_PREREQ(2.50)dnl
975
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
976
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
977
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
978
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1176
_LT_SETUP
 
1177
 
 
1178
# Only expand once:
 
1179
m4_define([LT_INIT])
 
1180
])# LT_INIT
 
1181
 
 
1182
# Old names:
 
1183
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
1184
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
1185
dnl aclocal-1.4 backwards compatibility:
 
1186
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
1187
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
1188
 
 
1189
 
 
1190
# _LT_CC_BASENAME(CC)
 
1191
# -------------------
 
1192
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1193
m4_defun([_LT_CC_BASENAME],
 
1194
[for cc_temp in $1""; do
 
1195
  case $cc_temp in
 
1196
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1197
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1198
    \-*) ;;
 
1199
    *) break;;
 
1200
  esac
 
1201
done
 
1202
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1203
])
 
1204
 
 
1205
 
 
1206
# _LT_FILEUTILS_DEFAULTS
 
1207
# ----------------------
 
1208
# It is okay to use these file commands and assume they have been set
 
1209
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
1210
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
1211
[: ${CP="cp -f"}
 
1212
: ${MV="mv -f"}
 
1213
: ${RM="rm -f"}
 
1214
])# _LT_FILEUTILS_DEFAULTS
 
1215
 
 
1216
 
 
1217
# _LT_SETUP
 
1218
# ---------
 
1219
m4_defun([_LT_SETUP],
 
1220
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
979
1221
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1222
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
1223
_LT_DECL([], [host], [0])dnl
 
1224
_LT_DECL([], [host_os], [0])dnl
 
1225
dnl
 
1226
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
1227
_LT_DECL([], [build], [0])dnl
 
1228
_LT_DECL([], [build_os], [0])dnl
 
1229
dnl
980
1230
AC_REQUIRE([AC_PROG_CC])dnl
981
 
AC_REQUIRE([AC_PROG_LD])dnl
982
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
983
 
AC_REQUIRE([AC_PROG_NM])dnl
984
 
 
 
1231
AC_REQUIRE([LT_PATH_LD])dnl
 
1232
AC_REQUIRE([LT_PATH_NM])dnl
 
1233
dnl
985
1234
AC_REQUIRE([AC_PROG_LN_S])dnl
986
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
987
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
988
 
AC_REQUIRE([AC_OBJEXT])dnl
989
 
AC_REQUIRE([AC_EXEEXT])dnl
990
 
dnl
991
 
 
992
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
993
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
994
 
AC_LIBTOOL_OBJDIR
995
 
 
996
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
997
 
_LT_AC_PROG_ECHO_BACKSLASH
 
1235
test -z "$LN_S" && LN_S="ln -s"
 
1236
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
1237
dnl
 
1238
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
1239
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
1240
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
1241
dnl
 
1242
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1243
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1244
m4_require([_LT_CMD_RELOAD])dnl
 
1245
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1246
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
1247
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1248
 
 
1249
_LT_CONFIG_LIBTOOL_INIT([
 
1250
# See if we are running on zsh, and set the options which allow our
 
1251
# commands through without removal of \ escapes INIT.
 
1252
if test -n "\${ZSH_VERSION+set}" ; then
 
1253
   setopt NO_GLOB_SUBST
 
1254
fi
 
1255
])
 
1256
if test -n "${ZSH_VERSION+set}" ; then
 
1257
   setopt NO_GLOB_SUBST
 
1258
fi
 
1259
 
 
1260
_LT_CHECK_OBJDIR
 
1261
 
 
1262
m4_require([_LT_TAG_COMPILER])dnl
 
1263
_LT_PROG_ECHO_BACKSLASH
998
1264
 
999
1265
case $host_os in
1000
1266
aix3*)
1010
1276
 
1011
1277
# Sed substitution that helps us do robust quoting.  It backslashifies
1012
1278
# metacharacters that are still active within double-quoted strings.
1013
 
Xsed='sed -e 1s/^X//'
1014
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1279
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1015
1280
 
1016
1281
# Same as above, but do not quote variable references.
1017
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1282
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1018
1283
 
1019
1284
# Sed substitution to delay expansion of an escaped shell variable in a
1020
1285
# double_quote_subst'ed string.
1021
1286
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1022
1287
 
 
1288
# Sed substitution to delay expansion of an escaped single quote.
 
1289
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1290
 
1023
1291
# Sed substitution to avoid accidental globbing in evaled expressions
1024
1292
no_glob_subst='s/\*/\\\*/g'
1025
1293
 
1026
 
# Constants:
1027
 
rm="rm -f"
1028
 
 
1029
1294
# Global variables:
1030
 
default_ofile=libtool
 
1295
ofile=libtool
1031
1296
can_build_shared=yes
1032
1297
 
1033
1298
# All known linkers require a `.a' archive for static linking (except MSVC,
1034
1299
# which needs '.lib').
1035
1300
libext=a
1036
 
ltmain="$ac_aux_dir/ltmain.sh"
1037
 
ofile="$default_ofile"
 
1301
 
1038
1302
with_gnu_ld="$lt_cv_prog_gnu_ld"
1039
1303
 
1040
 
AC_CHECK_TOOL(AR, ar, false)
1041
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
1042
 
AC_CHECK_TOOL(STRIP, strip, :)
1043
 
 
1044
1304
old_CC="$CC"
1045
1305
old_CFLAGS="$CFLAGS"
1046
1306
 
1047
1307
# Set sane defaults for various variables
1048
 
test -z "$AR" && AR=ar
1049
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1050
 
test -z "$AS" && AS=as
1051
1308
test -z "$CC" && CC=cc
1052
1309
test -z "$LTCC" && LTCC=$CC
1053
1310
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1054
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
1055
1311
test -z "$LD" && LD=ld
1056
 
test -z "$LN_S" && LN_S="ln -s"
1057
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1058
 
test -z "$NM" && NM=nm
1059
 
test -z "$SED" && SED=sed
1060
 
test -z "$OBJDUMP" && OBJDUMP=objdump
1061
 
test -z "$RANLIB" && RANLIB=:
1062
 
test -z "$STRIP" && STRIP=:
1063
1312
test -z "$ac_objext" && ac_objext=o
1064
1313
 
1065
 
# Determine commands to create old-style static archives.
1066
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1067
 
old_postinstall_cmds='chmod 644 $oldlib'
1068
 
old_postuninstall_cmds=
1069
 
 
1070
 
if test -n "$RANLIB"; then
1071
 
  case $host_os in
1072
 
  openbsd*)
1073
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1074
 
    ;;
1075
 
  *)
1076
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1077
 
    ;;
1078
 
  esac
1079
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1080
 
fi
1081
 
 
1082
1314
_LT_CC_BASENAME([$compiler])
1083
1315
 
1084
1316
# Only perform the check for file, if the check method requires it
 
1317
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1085
1318
case $deplibs_check_method in
1086
1319
file_magic*)
1087
1320
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1088
 
    AC_PATH_MAGIC
 
1321
    _LT_PATH_MAGIC
1089
1322
  fi
1090
1323
  ;;
1091
1324
esac
1092
1325
 
1093
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1094
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1095
 
enable_win32_dll=yes, enable_win32_dll=no)
1096
 
 
1097
 
AC_ARG_ENABLE([libtool-lock],
1098
 
    [AC_HELP_STRING([--disable-libtool-lock],
1099
 
        [avoid locking (might break parallel builds)])])
1100
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1101
 
 
1102
 
AC_ARG_WITH([pic],
1103
 
    [AC_HELP_STRING([--with-pic],
1104
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1105
 
    [pic_mode="$withval"],
1106
 
    [pic_mode=default])
1107
 
test -z "$pic_mode" && pic_mode=default
1108
 
 
1109
1326
# Use C for the default configuration in the libtool script
1110
 
tagname=
1111
 
AC_LIBTOOL_LANG_C_CONFIG
1112
 
_LT_AC_TAGCONFIG
1113
 
])# AC_LIBTOOL_SETUP
1114
 
 
1115
 
 
1116
 
# _LT_AC_SYS_COMPILER
 
1327
LT_SUPPORTED_TAG([CC])
 
1328
_LT_LANG_C_CONFIG
 
1329
_LT_LANG_DEFAULT_CONFIG
 
1330
_LT_CONFIG_COMMANDS
 
1331
])# _LT_SETUP
 
1332
 
 
1333
 
 
1334
# _LT_PROG_LTMAIN
 
1335
# ---------------
 
1336
# Note that this code is called both from `configure', and `config.status'
 
1337
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
1338
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
1339
# so we pass a copy along to make sure it has a sensible value anyway.
 
1340
m4_defun([_LT_PROG_LTMAIN],
 
1341
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
1342
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
1343
ltmain="$ac_aux_dir/ltmain.sh"
 
1344
])# _LT_PROG_LTMAIN
 
1345
 
 
1346
 
 
1347
 
 
1348
# So that we can recreate a full libtool script including additional
 
1349
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
1350
# in macros and then make a single call at the end using the `libtool'
 
1351
# label.
 
1352
 
 
1353
 
 
1354
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
1355
# ----------------------------------------
 
1356
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1357
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
1358
[m4_ifval([$1],
 
1359
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
1360
                     [$1
 
1361
])])])
 
1362
 
 
1363
# Initialize.
 
1364
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
1365
 
 
1366
 
 
1367
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
1368
# ------------------------------
 
1369
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1370
m4_define([_LT_CONFIG_LIBTOOL],
 
1371
[m4_ifval([$1],
 
1372
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
1373
                     [$1
 
1374
])])])
 
1375
 
 
1376
# Initialize.
 
1377
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
1378
 
 
1379
 
 
1380
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
1381
# -----------------------------------------------------
 
1382
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
1383
[_LT_CONFIG_LIBTOOL([$1])
 
1384
_LT_CONFIG_LIBTOOL_INIT([$2])
 
1385
])
 
1386
 
 
1387
 
 
1388
# _LT_FORMAT_COMMENT([COMMENT])
 
1389
# -----------------------------
 
1390
# Add leading comment marks to the start of each line, and a trailing
 
1391
# full-stop to the whole comment if one is not present already.
 
1392
m4_define([_LT_FORMAT_COMMENT],
 
1393
[m4_ifval([$1], [
 
1394
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
1395
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
1396
)])
 
1397
 
 
1398
 
 
1399
 
 
1400
 
 
1401
 
 
1402
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
1403
# -------------------------------------------------------------------
 
1404
# CONFIGNAME is the name given to the value in the libtool script.
 
1405
# VARNAME is the (base) name used in the configure script.
 
1406
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
1407
# VARNAME.  Any other value will be used directly.
 
1408
m4_define([_LT_DECL],
 
1409
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
1410
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
1411
        [m4_ifval([$1], [$1], [$2])])
 
1412
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
1413
    m4_ifval([$4],
 
1414
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
1415
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
1416
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
1417
])
 
1418
 
 
1419
 
 
1420
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1421
# --------------------------------------------------------
 
1422
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1423
 
 
1424
 
 
1425
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1426
# ------------------------------------------------
 
1427
m4_define([lt_decl_tag_varnames],
 
1428
[_lt_decl_filter([tagged?], [yes], $@)])
 
1429
 
 
1430
 
 
1431
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1432
# ---------------------------------------------------------
 
1433
m4_define([_lt_decl_filter],
 
1434
[m4_case([$#],
 
1435
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1436
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1437
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1438
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1439
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1440
])
 
1441
 
 
1442
 
 
1443
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1444
# --------------------------------------------------
 
1445
m4_define([lt_decl_quote_varnames],
 
1446
[_lt_decl_filter([value], [1], $@)])
 
1447
 
 
1448
 
 
1449
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1450
# ---------------------------------------------------
 
1451
m4_define([lt_decl_dquote_varnames],
 
1452
[_lt_decl_filter([value], [2], $@)])
 
1453
 
 
1454
 
 
1455
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1456
# ---------------------------------------------------
 
1457
m4_define([lt_decl_varnames_tagged],
 
1458
[m4_assert([$# <= 2])dnl
 
1459
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1460
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1461
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1462
m4_define([_lt_decl_varnames_tagged],
 
1463
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1464
 
 
1465
 
 
1466
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1467
# ------------------------------------------------
 
1468
m4_define([lt_decl_all_varnames],
 
1469
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1470
     m4_if([$2], [],
 
1471
           m4_quote(lt_decl_varnames),
 
1472
        m4_quote(m4_shift($@))))[]dnl
 
1473
])
 
1474
m4_define([_lt_decl_all_varnames],
 
1475
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1476
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1477
])
 
1478
 
 
1479
 
 
1480
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1481
# ------------------------------------
 
1482
# Quote a variable value, and forward it to `config.status' so that its
 
1483
# declaration there will have the same value as in `configure'.  VARNAME
 
1484
# must have a single quote delimited value for this to work.
 
1485
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1486
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1487
 
 
1488
 
 
1489
# _LT_CONFIG_STATUS_DECLARATIONS
 
1490
# ------------------------------
 
1491
# We delimit libtool config variables with single quotes, so when
 
1492
# we write them to config.status, we have to be sure to quote all
 
1493
# embedded single quotes properly.  In configure, this macro expands
 
1494
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
1495
#
 
1496
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
1497
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
1498
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
1499
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
1500
 
 
1501
 
 
1502
# _LT_LIBTOOL_TAGS
 
1503
# ----------------
 
1504
# Output comment and list of tags supported by the script
 
1505
m4_defun([_LT_LIBTOOL_TAGS],
 
1506
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
1507
available_tags="_LT_TAGS"dnl
 
1508
])
 
1509
 
 
1510
 
 
1511
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
1512
# -----------------------------------
 
1513
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
1514
# expand to a commented shell variable setting:
 
1515
#
 
1516
#    # Some comment about what VAR is for.
 
1517
#    visible_name=$lt_internal_name
 
1518
m4_define([_LT_LIBTOOL_DECLARE],
 
1519
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
1520
                                           [description])))[]dnl
 
1521
m4_pushdef([_libtool_name],
 
1522
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
1523
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
1524
    [0], [_libtool_name=[$]$1],
 
1525
    [1], [_libtool_name=$lt_[]$1],
 
1526
    [2], [_libtool_name=$lt_[]$1],
 
1527
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
1528
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
1529
])
 
1530
 
 
1531
 
 
1532
# _LT_LIBTOOL_CONFIG_VARS
 
1533
# -----------------------
 
1534
# Produce commented declarations of non-tagged libtool config variables
 
1535
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
1536
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
1537
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
1538
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
1539
[m4_foreach([_lt_var],
 
1540
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
1541
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
1542
 
 
1543
 
 
1544
# _LT_LIBTOOL_TAG_VARS(TAG)
 
1545
# -------------------------
 
1546
m4_define([_LT_LIBTOOL_TAG_VARS],
 
1547
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
1548
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
1549
 
 
1550
 
 
1551
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
1552
# ------------------------------
 
1553
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
1554
 
 
1555
 
 
1556
# _LT_CONFIG_COMMANDS
1117
1557
# -------------------
1118
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1558
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
1559
# variables for single and double quote escaping we saved from calls
 
1560
# to _LT_DECL, we can put quote escaped variables declarations
 
1561
# into `config.status', and then the shell code to quote escape them in
 
1562
# for loops in `config.status'.  Finally, any additional code accumulated
 
1563
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
1564
m4_defun([_LT_CONFIG_COMMANDS],
 
1565
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
1566
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
1567
        dnl instead of duplicating it all over again into config.status,
 
1568
        dnl then we will have config.status run $CONFIG_LT later, so it
 
1569
        dnl needs to know what name is stored there:
 
1570
        [AC_CONFIG_COMMANDS([libtool],
 
1571
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
1572
    dnl If the libtool generation code is destined for config.status,
 
1573
    dnl expand the accumulated commands and init code now:
 
1574
    [AC_CONFIG_COMMANDS([libtool],
 
1575
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
1576
])#_LT_CONFIG_COMMANDS
 
1577
 
 
1578
 
 
1579
# Initialize.
 
1580
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
1581
[
 
1582
 
 
1583
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
1584
# if CDPATH is set.
 
1585
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
1586
 
 
1587
sed_quote_subst='$sed_quote_subst'
 
1588
double_quote_subst='$double_quote_subst'
 
1589
delay_variable_subst='$delay_variable_subst'
 
1590
_LT_CONFIG_STATUS_DECLARATIONS
 
1591
LTCC='$LTCC'
 
1592
LTCFLAGS='$LTCFLAGS'
 
1593
compiler='$compiler_DEFAULT'
 
1594
 
 
1595
# Quote evaled strings.
 
1596
for var in lt_decl_all_varnames([[ \
 
1597
]], lt_decl_quote_varnames); do
 
1598
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1599
    *[[\\\\\\\`\\"\\\$]]*)
 
1600
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
1601
      ;;
 
1602
    *)
 
1603
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1604
      ;;
 
1605
    esac
 
1606
done
 
1607
 
 
1608
# Double-quote double-evaled strings.
 
1609
for var in lt_decl_all_varnames([[ \
 
1610
]], lt_decl_dquote_varnames); do
 
1611
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
1612
    *[[\\\\\\\`\\"\\\$]]*)
 
1613
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
1614
      ;;
 
1615
    *)
 
1616
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
1617
      ;;
 
1618
    esac
 
1619
done
 
1620
 
 
1621
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
1622
case \$lt_ECHO in
 
1623
*'\\\[$]0 --fallback-echo"')dnl "
 
1624
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
1625
  ;;
 
1626
esac
 
1627
 
 
1628
_LT_OUTPUT_LIBTOOL_INIT
 
1629
])
 
1630
 
 
1631
 
 
1632
# LT_OUTPUT
 
1633
# ---------
 
1634
# This macro allows early generation of the libtool script (before
 
1635
# AC_OUTPUT is called), incase it is used in configure for compilation
 
1636
# tests.
 
1637
AC_DEFUN([LT_OUTPUT],
 
1638
[: ${CONFIG_LT=./config.lt}
 
1639
AC_MSG_NOTICE([creating $CONFIG_LT])
 
1640
cat >"$CONFIG_LT" <<_LTEOF
 
1641
#! $SHELL
 
1642
# Generated by $as_me.
 
1643
# Run this file to recreate a libtool stub with the current configuration.
 
1644
 
 
1645
lt_cl_silent=false
 
1646
SHELL=\${CONFIG_SHELL-$SHELL}
 
1647
_LTEOF
 
1648
 
 
1649
cat >>"$CONFIG_LT" <<\_LTEOF
 
1650
AS_SHELL_SANITIZE
 
1651
_AS_PREPARE
 
1652
 
 
1653
exec AS_MESSAGE_FD>&1
 
1654
exec AS_MESSAGE_LOG_FD>>config.log
 
1655
{
 
1656
  echo
 
1657
  AS_BOX([Running $as_me.])
 
1658
} >&AS_MESSAGE_LOG_FD
 
1659
 
 
1660
lt_cl_help="\
 
1661
\`$as_me' creates a local libtool stub from the current configuration,
 
1662
for use in further configure time tests before the real libtool is
 
1663
generated.
 
1664
 
 
1665
Usage: $[0] [[OPTIONS]]
 
1666
 
 
1667
  -h, --help      print this help, then exit
 
1668
  -V, --version   print version number, then exit
 
1669
  -q, --quiet     do not print progress messages
 
1670
  -d, --debug     don't remove temporary files
 
1671
 
 
1672
Report bugs to <bug-libtool@gnu.org>."
 
1673
 
 
1674
lt_cl_version="\
 
1675
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
1676
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
1677
configured by $[0], generated by m4_PACKAGE_STRING.
 
1678
 
 
1679
Copyright (C) 2008 Free Software Foundation, Inc.
 
1680
This config.lt script is free software; the Free Software Foundation
 
1681
gives unlimited permision to copy, distribute and modify it."
 
1682
 
 
1683
while test $[#] != 0
 
1684
do
 
1685
  case $[1] in
 
1686
    --version | --v* | -V )
 
1687
      echo "$lt_cl_version"; exit 0 ;;
 
1688
    --help | --h* | -h )
 
1689
      echo "$lt_cl_help"; exit 0 ;;
 
1690
    --debug | --d* | -d )
 
1691
      debug=: ;;
 
1692
    --quiet | --q* | --silent | --s* | -q )
 
1693
      lt_cl_silent=: ;;
 
1694
 
 
1695
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
1696
Try \`$[0] --help' for more information.]) ;;
 
1697
 
 
1698
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
1699
Try \`$[0] --help' for more information.]) ;;
 
1700
  esac
 
1701
  shift
 
1702
done
 
1703
 
 
1704
if $lt_cl_silent; then
 
1705
  exec AS_MESSAGE_FD>/dev/null
 
1706
fi
 
1707
_LTEOF
 
1708
 
 
1709
cat >>"$CONFIG_LT" <<_LTEOF
 
1710
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
1711
_LTEOF
 
1712
 
 
1713
cat >>"$CONFIG_LT" <<\_LTEOF
 
1714
AC_MSG_NOTICE([creating $ofile])
 
1715
_LT_OUTPUT_LIBTOOL_COMMANDS
 
1716
AS_EXIT(0)
 
1717
_LTEOF
 
1718
chmod +x "$CONFIG_LT"
 
1719
 
 
1720
# configure is writing to config.log, but config.lt does its own redirection,
 
1721
# appending to config.log, which fails on DOS, as config.log is still kept
 
1722
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
1723
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
1724
if test "$no_create" != yes; then
 
1725
  lt_cl_success=:
 
1726
  test "$silent" = yes &&
 
1727
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
1728
  exec AS_MESSAGE_LOG_FD>/dev/null
 
1729
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
1730
  exec AS_MESSAGE_LOG_FD>>config.log
 
1731
  $lt_cl_success || AS_EXIT(1)
 
1732
fi
 
1733
])# LT_OUTPUT
 
1734
 
 
1735
 
 
1736
# _LT_CONFIG(TAG)
 
1737
# ---------------
 
1738
# If TAG is the built-in tag, create an initial libtool script with a
 
1739
# default configuration from the untagged config vars.  Otherwise add code
 
1740
# to config.status for appending the configuration named by TAG from the
 
1741
# matching tagged config vars.
 
1742
m4_defun([_LT_CONFIG],
 
1743
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1744
_LT_CONFIG_SAVE_COMMANDS([
 
1745
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
1746
  m4_if(_LT_TAG, [C], [
 
1747
    # See if we are running on zsh, and set the options which allow our
 
1748
    # commands through without removal of \ escapes.
 
1749
    if test -n "${ZSH_VERSION+set}" ; then
 
1750
      setopt NO_GLOB_SUBST
 
1751
    fi
 
1752
 
 
1753
    cfgfile="${ofile}T"
 
1754
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
1755
    $RM "$cfgfile"
 
1756
 
 
1757
    cat <<_LT_EOF >> "$cfgfile"
 
1758
#! $SHELL
 
1759
 
 
1760
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
1761
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
1762
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
1763
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
1764
#
 
1765
_LT_COPYING
 
1766
_LT_LIBTOOL_TAGS
 
1767
 
 
1768
# ### BEGIN LIBTOOL CONFIG
 
1769
_LT_LIBTOOL_CONFIG_VARS
 
1770
_LT_LIBTOOL_TAG_VARS
 
1771
# ### END LIBTOOL CONFIG
 
1772
 
 
1773
_LT_EOF
 
1774
 
 
1775
  case $host_os in
 
1776
  aix3*)
 
1777
    cat <<\_LT_EOF >> "$cfgfile"
 
1778
# AIX sometimes has problems with the GCC collect2 program.  For some
 
1779
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
1780
# vanish in a puff of smoke.
 
1781
if test "X${COLLECT_NAMES+set}" != Xset; then
 
1782
  COLLECT_NAMES=
 
1783
  export COLLECT_NAMES
 
1784
fi
 
1785
_LT_EOF
 
1786
    ;;
 
1787
  esac
 
1788
 
 
1789
  _LT_PROG_LTMAIN
 
1790
 
 
1791
  # We use sed instead of cat because bash on DJGPP gets confused if
 
1792
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
1793
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
1794
  # is reportedly fixed, but why not run on old versions too?
 
1795
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
1796
    || (rm -f "$cfgfile"; exit 1)
 
1797
 
 
1798
  _LT_PROG_XSI_SHELLFNS
 
1799
 
 
1800
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
1801
    || (rm -f "$cfgfile"; exit 1)
 
1802
 
 
1803
  mv -f "$cfgfile" "$ofile" ||
 
1804
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
1805
  chmod +x "$ofile"
 
1806
],
 
1807
[cat <<_LT_EOF >> "$ofile"
 
1808
 
 
1809
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
1810
dnl in a comment (ie after a #).
 
1811
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
1812
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
1813
# ### END LIBTOOL TAG CONFIG: $1
 
1814
_LT_EOF
 
1815
])dnl /m4_if
 
1816
],
 
1817
[m4_if([$1], [], [
 
1818
    PACKAGE='$PACKAGE'
 
1819
    VERSION='$VERSION'
 
1820
    TIMESTAMP='$TIMESTAMP'
 
1821
    RM='$RM'
 
1822
    ofile='$ofile'], [])
 
1823
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
1824
])# _LT_CONFIG
 
1825
 
 
1826
 
 
1827
# LT_SUPPORTED_TAG(TAG)
 
1828
# ---------------------
 
1829
# Trace this macro to discover what tags are supported by the libtool
 
1830
# --tag option, using:
 
1831
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
1832
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
1833
 
 
1834
 
 
1835
# C support is built-in for now
 
1836
m4_define([_LT_LANG_C_enabled], [])
 
1837
m4_define([_LT_TAGS], [])
 
1838
 
 
1839
 
 
1840
# LT_LANG(LANG)
 
1841
# -------------
 
1842
# Enable libtool support for the given language if not already enabled.
 
1843
AC_DEFUN([LT_LANG],
 
1844
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1845
m4_case([$1],
 
1846
  [C],                  [_LT_LANG(C)],
 
1847
  [C++],                [_LT_LANG(CXX)],
 
1848
  [Java],               [_LT_LANG(GCJ)],
 
1849
  [Fortran 77],         [_LT_LANG(F77)],
 
1850
  [Fortran],            [_LT_LANG(FC)],
 
1851
  [Windows Resource],   [_LT_LANG(RC)],
 
1852
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
1853
    [_LT_LANG($1)],
 
1854
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
1855
])# LT_LANG
 
1856
 
 
1857
 
 
1858
# _LT_LANG(LANGNAME)
 
1859
# ------------------
 
1860
m4_defun([_LT_LANG],
 
1861
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
1862
  [LT_SUPPORTED_TAG([$1])dnl
 
1863
  m4_append([_LT_TAGS], [$1 ])dnl
 
1864
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
1865
  _LT_LANG_$1_CONFIG($1)])dnl
 
1866
])# _LT_LANG
 
1867
 
 
1868
 
 
1869
# _LT_LANG_DEFAULT_CONFIG
 
1870
# -----------------------
 
1871
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
1872
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1873
  [LT_LANG(CXX)],
 
1874
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
1875
 
 
1876
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1877
  [LT_LANG(F77)],
 
1878
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
1879
 
 
1880
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
1881
  [LT_LANG(FC)],
 
1882
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
1883
 
 
1884
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
1885
dnl pulling things in needlessly.
 
1886
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1887
  [LT_LANG(GCJ)],
 
1888
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1889
    [LT_LANG(GCJ)],
 
1890
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
1891
      [LT_LANG(GCJ)],
 
1892
      [m4_ifdef([AC_PROG_GCJ],
 
1893
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
1894
       m4_ifdef([A][M_PROG_GCJ],
 
1895
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
1896
       m4_ifdef([LT_PROG_GCJ],
 
1897
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
1898
 
 
1899
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
1900
  [LT_LANG(RC)],
 
1901
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
1902
])# _LT_LANG_DEFAULT_CONFIG
 
1903
 
 
1904
# Obsolete macros:
 
1905
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
1906
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
1907
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
1908
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
1909
dnl aclocal-1.4 backwards compatibility:
 
1910
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
1911
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
1912
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
1913
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
1914
 
 
1915
 
 
1916
# _LT_TAG_COMPILER
 
1917
# ----------------
 
1918
m4_defun([_LT_TAG_COMPILER],
1119
1919
[AC_REQUIRE([AC_PROG_CC])dnl
1120
1920
 
 
1921
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
1922
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
1923
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
1924
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
1925
 
1121
1926
# If no C compiler was specified, use CC.
1122
1927
LTCC=${LTCC-"$CC"}
1123
1928
 
1126
1931
 
1127
1932
# Allow CC to be a program name with arguments.
1128
1933
compiler=$CC
1129
 
])# _LT_AC_SYS_COMPILER
1130
 
 
1131
 
 
1132
 
# _LT_CC_BASENAME(CC)
1133
 
# -------------------
1134
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1135
 
AC_DEFUN([_LT_CC_BASENAME],
1136
 
[for cc_temp in $1""; do
1137
 
  case $cc_temp in
1138
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1139
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1140
 
    \-*) ;;
1141
 
    *) break;;
1142
 
  esac
1143
 
done
1144
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1145
 
])
 
1934
])# _LT_TAG_COMPILER
1146
1935
 
1147
1936
 
1148
1937
# _LT_COMPILER_BOILERPLATE
1149
1938
# ------------------------
1150
1939
# Check for compiler boilerplate output or warnings with
1151
1940
# the simple compiler test code.
1152
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1153
 
[ac_outfile=conftest.$ac_objext
1154
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
1941
m4_defun([_LT_COMPILER_BOILERPLATE],
 
1942
[m4_require([_LT_DECL_SED])dnl
 
1943
ac_outfile=conftest.$ac_objext
 
1944
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1155
1945
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1156
1946
_lt_compiler_boilerplate=`cat conftest.err`
1157
 
$rm conftest*
 
1947
$RM conftest*
1158
1948
])# _LT_COMPILER_BOILERPLATE
1159
1949
 
1160
1950
 
1162
1952
# ----------------------
1163
1953
# Check for linker boilerplate output or warnings with
1164
1954
# the simple link test code.
1165
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1166
 
[ac_outfile=conftest.$ac_objext
1167
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
1955
m4_defun([_LT_LINKER_BOILERPLATE],
 
1956
[m4_require([_LT_DECL_SED])dnl
 
1957
ac_outfile=conftest.$ac_objext
 
1958
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1168
1959
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1169
1960
_lt_linker_boilerplate=`cat conftest.err`
1170
 
$rm conftest*
 
1961
$RM -r conftest*
1171
1962
])# _LT_LINKER_BOILERPLATE
1172
1963
 
1173
 
 
1174
 
# _LT_AC_SYS_LIBPATH_AIX
1175
 
# ----------------------
 
1964
# _LT_REQUIRED_DARWIN_CHECKS
 
1965
# -------------------------
 
1966
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
1967
  case $host_os in
 
1968
    rhapsody* | darwin*)
 
1969
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
1970
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
1971
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
1972
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
1973
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
1974
    _LT_DECL([], [DSYMUTIL], [1],
 
1975
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
1976
    _LT_DECL([], [NMEDIT], [1],
 
1977
      [Tool to change global to local symbols on Mac OS X])
 
1978
    _LT_DECL([], [LIPO], [1],
 
1979
      [Tool to manipulate fat objects and archives on Mac OS X])
 
1980
    _LT_DECL([], [OTOOL], [1],
 
1981
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
1982
    _LT_DECL([], [OTOOL64], [1],
 
1983
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 
1984
 
 
1985
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
1986
      [lt_cv_apple_cc_single_mod=no
 
1987
      if test -z "${LT_MULTI_MODULE}"; then
 
1988
        # By default we will add the -single_module flag. You can override
 
1989
        # by either setting the environment variable LT_MULTI_MODULE
 
1990
        # non-empty at configure time, or by adding -multi_module to the
 
1991
        # link flags.
 
1992
        rm -rf libconftest.dylib*
 
1993
        echo "int foo(void){return 1;}" > conftest.c
 
1994
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1995
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
1996
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1997
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
1998
        _lt_result=$?
 
1999
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
2000
          lt_cv_apple_cc_single_mod=yes
 
2001
        else
 
2002
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
2003
        fi
 
2004
        rm -rf libconftest.dylib*
 
2005
        rm -f conftest.*
 
2006
      fi])
 
2007
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
2008
      [lt_cv_ld_exported_symbols_list],
 
2009
      [lt_cv_ld_exported_symbols_list=no
 
2010
      save_LDFLAGS=$LDFLAGS
 
2011
      echo "_main" > conftest.sym
 
2012
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
2013
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2014
        [lt_cv_ld_exported_symbols_list=yes],
 
2015
        [lt_cv_ld_exported_symbols_list=no])
 
2016
        LDFLAGS="$save_LDFLAGS"
 
2017
    ])
 
2018
    case $host_os in
 
2019
    rhapsody* | darwin1.[[012]])
 
2020
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
2021
    darwin1.*)
 
2022
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
2023
    darwin*) # darwin 5.x on
 
2024
      # if running on 10.5 or later, the deployment target defaults
 
2025
      # to the OS version, if on x86, and 10.4, the deployment
 
2026
      # target defaults to 10.4. Don't you love it?
 
2027
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
2028
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
2029
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
2030
        10.[[012]]*)
 
2031
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
2032
        10.*)
 
2033
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
2034
      esac
 
2035
    ;;
 
2036
  esac
 
2037
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
2038
      _lt_dar_single_mod='$single_module'
 
2039
    fi
 
2040
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
2041
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
2042
    else
 
2043
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2044
    fi
 
2045
    if test "$DSYMUTIL" != ":"; then
 
2046
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
2047
    else
 
2048
      _lt_dsymutil=
 
2049
    fi
 
2050
    ;;
 
2051
  esac
 
2052
])
 
2053
 
 
2054
 
 
2055
# _LT_DARWIN_LINKER_FEATURES
 
2056
# --------------------------
 
2057
# Checks for linker and compiler features on darwin
 
2058
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
2059
[
 
2060
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
2061
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
2062
  _LT_TAGVAR(hardcode_direct, $1)=no
 
2063
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
2064
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2065
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
2066
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
2067
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
2068
  case $cc_basename in
 
2069
     ifort*) _lt_dar_can_shared=yes ;;
 
2070
     *) _lt_dar_can_shared=$GCC ;;
 
2071
  esac
 
2072
  if test "$_lt_dar_can_shared" = "yes"; then
 
2073
    output_verbose_link_cmd=echo
 
2074
    _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}"
 
2075
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
2076
    _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}"
 
2077
    _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}"
 
2078
    m4_if([$1], [CXX],
 
2079
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
2080
      _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}"
 
2081
      _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}"
 
2082
    fi
 
2083
],[])
 
2084
  else
 
2085
  _LT_TAGVAR(ld_shlibs, $1)=no
 
2086
  fi
 
2087
])
 
2088
 
 
2089
# _LT_SYS_MODULE_PATH_AIX
 
2090
# -----------------------
1176
2091
# Links a minimal program and checks the executable
1177
2092
# for the system default hardcoded library path. In most cases,
1178
2093
# this is /usr/lib:/lib, but when the MPI compilers are used
1179
2094
# the location of the communication and MPI libs are included too.
1180
2095
# If we don't find anything, use the default library path according
1181
2096
# to the aix ld manual.
1182
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1183
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1184
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1185
 
}'`
 
2097
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
2098
[m4_require([_LT_DECL_SED])dnl
 
2099
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
2100
lt_aix_libpath_sed='
 
2101
    /Import File Strings/,/^$/ {
 
2102
        /^0/ {
 
2103
            s/^0  *\(.*\)$/\1/
 
2104
            p
 
2105
        }
 
2106
    }'
 
2107
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1186
2108
# Check for a 64-bit object if we didn't find anything.
1187
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1188
 
}'`; fi],[])
 
2109
if test -z "$aix_libpath"; then
 
2110
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2111
fi],[])
1189
2112
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1190
 
])# _LT_AC_SYS_LIBPATH_AIX
1191
 
 
1192
 
 
1193
 
# _LT_AC_SHELL_INIT(ARG)
1194
 
# ----------------------
1195
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
2113
])# _LT_SYS_MODULE_PATH_AIX
 
2114
 
 
2115
 
 
2116
# _LT_SHELL_INIT(ARG)
 
2117
# -------------------
 
2118
m4_define([_LT_SHELL_INIT],
1196
2119
[ifdef([AC_DIVERSION_NOTICE],
1197
2120
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1198
2121
         [AC_DIVERT_PUSH(NOTICE)])
1199
2122
$1
1200
2123
AC_DIVERT_POP
1201
 
])# _LT_AC_SHELL_INIT
1202
 
 
1203
 
 
1204
 
# _LT_AC_PROG_ECHO_BACKSLASH
1205
 
# --------------------------
 
2124
])# _LT_SHELL_INIT
 
2125
 
 
2126
 
 
2127
# _LT_PROG_ECHO_BACKSLASH
 
2128
# -----------------------
1206
2129
# Add some code to the start of the generated configure script which
1207
2130
# will find an echo command which doesn't interpret backslashes.
1208
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1209
 
[_LT_AC_SHELL_INIT([
 
2131
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
2132
[_LT_SHELL_INIT([
1210
2133
# Check that we are running under the correct shell.
1211
2134
SHELL=${CONFIG_SHELL-/bin/sh}
1212
2135
 
1213
 
case X$ECHO in
 
2136
case X$lt_ECHO in
1214
2137
X*--fallback-echo)
1215
2138
  # Remove one level of quotation (which was required for Make).
1216
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
2139
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1217
2140
  ;;
1218
2141
esac
1219
2142
 
1220
 
echo=${ECHO-echo}
 
2143
ECHO=${lt_ECHO-echo}
1221
2144
if test "X[$]1" = X--no-reexec; then
1222
2145
  # Discard the --no-reexec flag, and continue.
1223
2146
  shift
1224
2147
elif test "X[$]1" = X--fallback-echo; then
1225
2148
  # Avoid inline document here, it may be left over
1226
2149
  :
1227
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1228
 
  # Yippee, $echo works!
 
2150
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
2151
  # Yippee, $ECHO works!
1229
2152
  :
1230
2153
else
1231
2154
  # Restart under the correct shell.
1235
2158
if test "X[$]1" = X--fallback-echo; then
1236
2159
  # used as fallback echo
1237
2160
  shift
1238
 
  cat <<EOF
 
2161
  cat <<_LT_EOF
1239
2162
[$]*
1240
 
EOF
 
2163
_LT_EOF
1241
2164
  exit 0
1242
2165
fi
1243
2166
 
1245
2168
# if CDPATH is set.
1246
2169
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1247
2170
 
1248
 
if test -z "$ECHO"; then
1249
 
if test "X${echo_test_string+set}" != Xset; then
1250
 
# find a string as large as possible, as long as the shell can cope with it
1251
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1252
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1253
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1254
 
       echo_test_string=`eval $cmd` &&
1255
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1256
 
    then
1257
 
      break
1258
 
    fi
1259
 
  done
1260
 
fi
1261
 
 
1262
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1263
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1264
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
1265
 
  :
1266
 
else
1267
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
1268
 
  # backslashes.  This makes it impossible to quote backslashes using
1269
 
  #   echo "$something" | sed 's/\\/\\\\/g'
1270
 
  #
1271
 
  # So, first we look for a working echo in the user's PATH.
1272
 
 
1273
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1274
 
  for dir in $PATH /usr/ucb; do
 
2171
if test -z "$lt_ECHO"; then
 
2172
  if test "X${echo_test_string+set}" != Xset; then
 
2173
    # find a string as large as possible, as long as the shell can cope with it
 
2174
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
2175
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
2176
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
2177
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
2178
      then
 
2179
        break
 
2180
      fi
 
2181
    done
 
2182
  fi
 
2183
 
 
2184
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2185
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2186
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
2187
    :
 
2188
  else
 
2189
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
2190
    # backslashes.  This makes it impossible to quote backslashes using
 
2191
    #   echo "$something" | sed 's/\\/\\\\/g'
 
2192
    #
 
2193
    # So, first we look for a working echo in the user's PATH.
 
2194
 
 
2195
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2196
    for dir in $PATH /usr/ucb; do
 
2197
      IFS="$lt_save_ifs"
 
2198
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2199
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2200
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2201
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2202
        ECHO="$dir/echo"
 
2203
        break
 
2204
      fi
 
2205
    done
1275
2206
    IFS="$lt_save_ifs"
1276
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1277
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1278
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1279
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1280
 
      echo="$dir/echo"
1281
 
      break
1282
 
    fi
1283
 
  done
1284
 
  IFS="$lt_save_ifs"
1285
2207
 
1286
 
  if test "X$echo" = Xecho; then
1287
 
    # We didn't find a better echo, so look for alternatives.
1288
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1289
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1290
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1291
 
      # This shell has a builtin print -r that does the trick.
1292
 
      echo='print -r'
1293
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1294
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
1295
 
      # If we have ksh, try running configure again with it.
1296
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1297
 
      export ORIGINAL_CONFIG_SHELL
1298
 
      CONFIG_SHELL=/bin/ksh
1299
 
      export CONFIG_SHELL
1300
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1301
 
    else
1302
 
      # Try using printf.
1303
 
      echo='printf %s\n'
1304
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1305
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1306
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1307
 
        # Cool, printf works
1308
 
        :
1309
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1310
 
           test "X$echo_testing_string" = 'X\t' &&
1311
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1312
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1313
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1314
 
        export CONFIG_SHELL
1315
 
        SHELL="$CONFIG_SHELL"
1316
 
        export SHELL
1317
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1318
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1319
 
           test "X$echo_testing_string" = 'X\t' &&
1320
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1321
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1322
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
2208
    if test "X$ECHO" = Xecho; then
 
2209
      # We didn't find a better echo, so look for alternatives.
 
2210
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
2211
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
2212
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2213
        # This shell has a builtin print -r that does the trick.
 
2214
        ECHO='print -r'
 
2215
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
2216
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2217
        # If we have ksh, try running configure again with it.
 
2218
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2219
        export ORIGINAL_CONFIG_SHELL
 
2220
        CONFIG_SHELL=/bin/ksh
 
2221
        export CONFIG_SHELL
 
2222
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1323
2223
      else
1324
 
        # maybe with a smaller string...
1325
 
        prev=:
1326
 
 
1327
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1328
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1329
 
          then
1330
 
            break
 
2224
        # Try using printf.
 
2225
        ECHO='printf %s\n'
 
2226
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2227
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2228
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2229
          # Cool, printf works
 
2230
          :
 
2231
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2232
             test "X$echo_testing_string" = 'X\t' &&
 
2233
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2234
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2235
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2236
          export CONFIG_SHELL
 
2237
          SHELL="$CONFIG_SHELL"
 
2238
          export SHELL
 
2239
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2240
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2241
             test "X$echo_testing_string" = 'X\t' &&
 
2242
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2243
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2244
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2245
        else
 
2246
          # maybe with a smaller string...
 
2247
          prev=:
 
2248
 
 
2249
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2250
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2251
            then
 
2252
              break
 
2253
            fi
 
2254
            prev="$cmd"
 
2255
          done
 
2256
 
 
2257
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2258
            echo_test_string=`eval $prev`
 
2259
            export echo_test_string
 
2260
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2261
          else
 
2262
            # Oops.  We lost completely, so just stick with echo.
 
2263
            ECHO=echo
1331
2264
          fi
1332
 
          prev="$cmd"
1333
 
        done
1334
 
 
1335
 
        if test "$prev" != 'sed 50q "[$]0"'; then
1336
 
          echo_test_string=`eval $prev`
1337
 
          export echo_test_string
1338
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1339
 
        else
1340
 
          # Oops.  We lost completely, so just stick with echo.
1341
 
          echo=echo
1342
 
        fi
 
2265
        fi
1343
2266
      fi
1344
2267
    fi
1345
2268
  fi
1346
2269
fi
1347
 
fi
1348
2270
 
1349
2271
# Copy echo and quote the copy suitably for passing to libtool from
1350
2272
# the Makefile, instead of quoting the original, which is used later.
1351
 
ECHO=$echo
1352
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1353
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2273
lt_ECHO=$ECHO
 
2274
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2275
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1354
2276
fi
1355
2277
 
1356
 
AC_SUBST(ECHO)
1357
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
1358
 
 
1359
 
 
1360
 
# _LT_AC_LOCK
1361
 
# -----------
1362
 
AC_DEFUN([_LT_AC_LOCK],
 
2278
AC_SUBST(lt_ECHO)
 
2279
])
 
2280
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
2281
_LT_DECL([], [ECHO], [1],
 
2282
    [An echo program that does not interpret backslashes])
 
2283
])# _LT_PROG_ECHO_BACKSLASH
 
2284
 
 
2285
 
 
2286
# _LT_ENABLE_LOCK
 
2287
# ---------------
 
2288
m4_defun([_LT_ENABLE_LOCK],
1363
2289
[AC_ARG_ENABLE([libtool-lock],
1364
 
    [AC_HELP_STRING([--disable-libtool-lock],
1365
 
        [avoid locking (might break parallel builds)])])
 
2290
  [AS_HELP_STRING([--disable-libtool-lock],
 
2291
    [avoid locking (might break parallel builds)])])
1366
2292
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1367
2293
 
1368
2294
# Some flags need to be propagated to the compiler or linker for good
1373
2299
  echo 'int i;' > conftest.$ac_ext
1374
2300
  if AC_TRY_EVAL(ac_compile); then
1375
2301
    case `/usr/bin/file conftest.$ac_objext` in
1376
 
    *ELF-32*)
1377
 
      HPUX_IA64_MODE="32"
1378
 
      ;;
1379
 
    *ELF-64*)
1380
 
      HPUX_IA64_MODE="64"
1381
 
      ;;
 
2302
      *ELF-32*)
 
2303
        HPUX_IA64_MODE="32"
 
2304
        ;;
 
2305
      *ELF-64*)
 
2306
        HPUX_IA64_MODE="64"
 
2307
        ;;
1382
2308
    esac
1383
2309
  fi
1384
2310
  rm -rf conftest*
1387
2313
  # Find out which ABI we are using.
1388
2314
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1389
2315
  if AC_TRY_EVAL(ac_compile); then
1390
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
1391
 
    case `/usr/bin/file conftest.$ac_objext` in
1392
 
    *32-bit*)
1393
 
      LD="${LD-ld} -melf32bsmip"
1394
 
      ;;
1395
 
    *N32*)
1396
 
      LD="${LD-ld} -melf32bmipn32"
1397
 
      ;;
1398
 
    *64-bit*)
1399
 
      LD="${LD-ld} -melf64bmip"
1400
 
      ;;
1401
 
    esac
1402
 
   else
1403
 
    case `/usr/bin/file conftest.$ac_objext` in
1404
 
    *32-bit*)
1405
 
      LD="${LD-ld} -32"
1406
 
      ;;
1407
 
    *N32*)
1408
 
      LD="${LD-ld} -n32"
1409
 
      ;;
1410
 
    *64-bit*)
1411
 
      LD="${LD-ld} -64"
1412
 
      ;;
1413
 
    esac
1414
 
   fi
 
2316
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
2317
      case `/usr/bin/file conftest.$ac_objext` in
 
2318
        *32-bit*)
 
2319
          LD="${LD-ld} -melf32bsmip"
 
2320
          ;;
 
2321
        *N32*)
 
2322
          LD="${LD-ld} -melf32bmipn32"
 
2323
          ;;
 
2324
        *64-bit*)
 
2325
          LD="${LD-ld} -melf64bmip"
 
2326
        ;;
 
2327
      esac
 
2328
    else
 
2329
      case `/usr/bin/file conftest.$ac_objext` in
 
2330
        *32-bit*)
 
2331
          LD="${LD-ld} -32"
 
2332
          ;;
 
2333
        *N32*)
 
2334
          LD="${LD-ld} -n32"
 
2335
          ;;
 
2336
        *64-bit*)
 
2337
          LD="${LD-ld} -64"
 
2338
          ;;
 
2339
      esac
 
2340
    fi
1415
2341
  fi
1416
2342
  rm -rf conftest*
1417
2343
  ;;
1418
2344
 
1419
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
2345
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
2346
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1420
2347
  # Find out which ABI we are using.
1421
2348
  echo 'int i;' > conftest.$ac_ext
1422
2349
  if AC_TRY_EVAL(ac_compile); then
1423
2350
    case `/usr/bin/file conftest.o` in
1424
 
    *32-bit*)
1425
 
      case $host in
1426
 
        x86_64-*linux*)
1427
 
          LD="${LD-ld} -m elf_i386"
1428
 
          ;;
1429
 
        ppc64-*linux*|powerpc64-*linux*)
1430
 
          LD="${LD-ld} -m elf32ppclinux"
1431
 
          ;;
1432
 
        s390x-*linux*)
1433
 
          LD="${LD-ld} -m elf_s390"
1434
 
          ;;
1435
 
        sparc64-*linux*)
1436
 
          LD="${LD-ld} -m elf32_sparc"
1437
 
          ;;
1438
 
      esac
1439
 
      ;;
1440
 
    *64-bit*)
1441
 
      case $host in
1442
 
        x86_64-*linux*)
1443
 
          LD="${LD-ld} -m elf_x86_64"
1444
 
          ;;
1445
 
        ppc*-*linux*|powerpc*-*linux*)
1446
 
          LD="${LD-ld} -m elf64ppc"
1447
 
          ;;
1448
 
        s390*-*linux*)
1449
 
          LD="${LD-ld} -m elf64_s390"
1450
 
          ;;
1451
 
        sparc*-*linux*)
1452
 
          LD="${LD-ld} -m elf64_sparc"
1453
 
          ;;
1454
 
      esac
1455
 
      ;;
 
2351
      *32-bit*)
 
2352
        case $host in
 
2353
          x86_64-*kfreebsd*-gnu)
 
2354
            LD="${LD-ld} -m elf_i386_fbsd"
 
2355
            ;;
 
2356
          x86_64-*linux*)
 
2357
            LD="${LD-ld} -m elf_i386"
 
2358
            ;;
 
2359
          ppc64-*linux*|powerpc64-*linux*)
 
2360
            LD="${LD-ld} -m elf32ppclinux"
 
2361
            ;;
 
2362
          s390x-*linux*)
 
2363
            LD="${LD-ld} -m elf_s390"
 
2364
            ;;
 
2365
          sparc64-*linux*)
 
2366
            LD="${LD-ld} -m elf32_sparc"
 
2367
            ;;
 
2368
        esac
 
2369
        ;;
 
2370
      *64-bit*)
 
2371
        case $host in
 
2372
          x86_64-*kfreebsd*-gnu)
 
2373
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
2374
            ;;
 
2375
          x86_64-*linux*)
 
2376
            LD="${LD-ld} -m elf_x86_64"
 
2377
            ;;
 
2378
          ppc*-*linux*|powerpc*-*linux*)
 
2379
            LD="${LD-ld} -m elf64ppc"
 
2380
            ;;
 
2381
          s390*-*linux*|s390*-*tpf*)
 
2382
            LD="${LD-ld} -m elf64_s390"
 
2383
            ;;
 
2384
          sparc*-*linux*)
 
2385
            LD="${LD-ld} -m elf64_sparc"
 
2386
            ;;
 
2387
        esac
 
2388
        ;;
1456
2389
    esac
1457
2390
  fi
1458
2391
  rm -rf conftest*
1464
2397
  CFLAGS="$CFLAGS -belf"
1465
2398
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1466
2399
    [AC_LANG_PUSH(C)
1467
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2400
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1468
2401
     AC_LANG_POP])
1469
2402
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1470
2403
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1479
2412
    *64-bit*)
1480
2413
      case $lt_cv_prog_gnu_ld in
1481
2414
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1482
 
      *)    LD="${LD-ld} -64" ;;
 
2415
      *)
 
2416
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2417
          LD="${LD-ld} -64"
 
2418
        fi
 
2419
        ;;
1483
2420
      esac
1484
2421
      ;;
1485
2422
    esac
1486
2423
  fi
1487
2424
  rm -rf conftest*
1488
2425
  ;;
1489
 
 
1490
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1491
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1492
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1493
 
  AC_CHECK_TOOL(AS, as, false)
1494
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1495
 
  ;;
1496
 
  ])
1497
2426
esac
1498
2427
 
1499
2428
need_locks="$enable_libtool_lock"
1500
 
 
1501
 
])# _LT_AC_LOCK
1502
 
 
1503
 
 
1504
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2429
])# _LT_ENABLE_LOCK
 
2430
 
 
2431
 
 
2432
# _LT_CMD_OLD_ARCHIVE
 
2433
# -------------------
 
2434
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2435
[AC_CHECK_TOOL(AR, ar, false)
 
2436
test -z "$AR" && AR=ar
 
2437
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2438
_LT_DECL([], [AR], [1], [The archiver])
 
2439
_LT_DECL([], [AR_FLAGS], [1])
 
2440
 
 
2441
AC_CHECK_TOOL(STRIP, strip, :)
 
2442
test -z "$STRIP" && STRIP=:
 
2443
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2444
 
 
2445
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2446
test -z "$RANLIB" && RANLIB=:
 
2447
_LT_DECL([], [RANLIB], [1],
 
2448
    [Commands used to install an old-style archive])
 
2449
 
 
2450
# Determine commands to create old-style static archives.
 
2451
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2452
old_postinstall_cmds='chmod 644 $oldlib'
 
2453
old_postuninstall_cmds=
 
2454
 
 
2455
if test -n "$RANLIB"; then
 
2456
  case $host_os in
 
2457
  openbsd*)
 
2458
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2459
    ;;
 
2460
  *)
 
2461
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2462
    ;;
 
2463
  esac
 
2464
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2465
fi
 
2466
_LT_DECL([], [old_postinstall_cmds], [2])
 
2467
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2468
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2469
    [Commands used to build an old-style archive])
 
2470
])# _LT_CMD_OLD_ARCHIVE
 
2471
 
 
2472
 
 
2473
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1505
2474
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1506
2475
# ----------------------------------------------------------------
1507
2476
# Check whether the given compiler option works
1508
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1509
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
2477
AC_DEFUN([_LT_COMPILER_OPTION],
 
2478
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2479
m4_require([_LT_DECL_SED])dnl
1510
2480
AC_CACHE_CHECK([$1], [$2],
1511
2481
  [$2=no
1512
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1513
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2482
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2483
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1514
2484
   lt_compiler_flag="$3"
1515
2485
   # Insert the option either (1) after the last *FLAGS variable, or
1516
2486
   # (2) before a word containing "conftest.", or (3) at the end.
1529
2499
   if (exit $ac_status) && test -s "$ac_outfile"; then
1530
2500
     # The compiler can only warn and ignore the option if not recognized
1531
2501
     # So say no if there are warnings other than the usual output.
1532
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
2502
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1533
2503
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1534
2504
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1535
2505
       $2=yes
1536
2506
     fi
1537
2507
   fi
1538
 
   $rm conftest*
 
2508
   $RM conftest*
1539
2509
])
1540
2510
 
1541
2511
if test x"[$]$2" = xyes; then
1542
 
    ifelse([$5], , :, [$5])
 
2512
    m4_if([$5], , :, [$5])
1543
2513
else
1544
 
    ifelse([$6], , :, [$6])
 
2514
    m4_if([$6], , :, [$6])
1545
2515
fi
1546
 
])# AC_LIBTOOL_COMPILER_OPTION
1547
 
 
1548
 
 
1549
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1550
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1551
 
# ------------------------------------------------------------
1552
 
# Check whether the given compiler option works
1553
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1554
 
[AC_CACHE_CHECK([$1], [$2],
 
2516
])# _LT_COMPILER_OPTION
 
2517
 
 
2518
# Old name:
 
2519
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
2520
dnl aclocal-1.4 backwards compatibility:
 
2521
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
2522
 
 
2523
 
 
2524
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2525
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
2526
# ----------------------------------------------------
 
2527
# Check whether the given linker option works
 
2528
AC_DEFUN([_LT_LINKER_OPTION],
 
2529
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2530
m4_require([_LT_DECL_SED])dnl
 
2531
AC_CACHE_CHECK([$1], [$2],
1555
2532
  [$2=no
1556
2533
   save_LDFLAGS="$LDFLAGS"
1557
2534
   LDFLAGS="$LDFLAGS $3"
1558
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
2535
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1559
2536
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1560
2537
     # The linker can only warn and ignore the option if not recognized
1561
2538
     # So say no if there are warnings
1562
2539
     if test -s conftest.err; then
1563
2540
       # Append any errors to the config.log.
1564
2541
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1565
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
2542
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1566
2543
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1567
2544
       if diff conftest.exp conftest.er2 >/dev/null; then
1568
2545
         $2=yes
1571
2548
       $2=yes
1572
2549
     fi
1573
2550
   fi
1574
 
   $rm conftest*
 
2551
   $RM -r conftest*
1575
2552
   LDFLAGS="$save_LDFLAGS"
1576
2553
])
1577
2554
 
1578
2555
if test x"[$]$2" = xyes; then
1579
 
    ifelse([$4], , :, [$4])
 
2556
    m4_if([$4], , :, [$4])
1580
2557
else
1581
 
    ifelse([$5], , :, [$5])
 
2558
    m4_if([$5], , :, [$5])
1582
2559
fi
1583
 
])# AC_LIBTOOL_LINKER_OPTION
1584
 
 
1585
 
 
1586
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1587
 
# --------------------------
1588
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1589
 
[# find the maximum length of command line arguments
 
2560
])# _LT_LINKER_OPTION
 
2561
 
 
2562
# Old name:
 
2563
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
2564
dnl aclocal-1.4 backwards compatibility:
 
2565
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
2566
 
 
2567
 
 
2568
# LT_CMD_MAX_LEN
 
2569
#---------------
 
2570
AC_DEFUN([LT_CMD_MAX_LEN],
 
2571
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2572
# find the maximum length of command line arguments
1590
2573
AC_MSG_CHECKING([the maximum length of command line arguments])
1591
2574
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1592
2575
  i=0
1608
2591
    lt_cv_sys_max_cmd_len=-1;
1609
2592
    ;;
1610
2593
 
1611
 
  cygwin* | mingw*)
 
2594
  cygwin* | mingw* | cegcc*)
1612
2595
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1613
2596
    # about 5 minutes as the teststring grows exponentially.
1614
2597
    # Worse, since 9x/ME are not pre-emptively multitasking,
1663
2646
  sysv5* | sco5v6* | sysv4.2uw2*)
1664
2647
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1665
2648
    if test -n "$kargmax"; then
1666
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
2649
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
1667
2650
    else
1668
2651
      lt_cv_sys_max_cmd_len=32768
1669
2652
    fi
1670
2653
    ;;
1671
2654
  *)
1672
 
    # If test is not a shell built-in, we'll probably end up computing a
1673
 
    # maximum length that is only half of the actual maximum length, but
1674
 
    # we can't tell.
1675
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1676
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1677
 
               = "XX$teststring") >/dev/null 2>&1 &&
1678
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1679
 
            lt_cv_sys_max_cmd_len=$new_result &&
1680
 
            test $i != 17 # 1/2 MB should be enough
1681
 
    do
1682
 
      i=`expr $i + 1`
1683
 
      teststring=$teststring$teststring
1684
 
    done
1685
 
    teststring=
1686
 
    # Add a significant safety factor because C++ compilers can tack on massive
1687
 
    # amounts of additional arguments before passing them to the linker.
1688
 
    # It appears as though 1/2 is a usable value.
1689
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
2655
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
2656
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
2657
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
2658
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
2659
    else
 
2660
      # Make teststring a little bigger before we do anything with it.
 
2661
      # a 1K string should be a reasonable start.
 
2662
      for i in 1 2 3 4 5 6 7 8 ; do
 
2663
        teststring=$teststring$teststring
 
2664
      done
 
2665
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
2666
      # If test is not a shell built-in, we'll probably end up computing a
 
2667
      # maximum length that is only half of the actual maximum length, but
 
2668
      # we can't tell.
 
2669
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
2670
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
2671
              test $i != 17 # 1/2 MB should be enough
 
2672
      do
 
2673
        i=`expr $i + 1`
 
2674
        teststring=$teststring$teststring
 
2675
      done
 
2676
      # Only check the string length outside the loop.
 
2677
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
2678
      teststring=
 
2679
      # Add a significant safety factor because C++ compilers can tack on
 
2680
      # massive amounts of additional arguments before passing them to the
 
2681
      # linker.  It appears as though 1/2 is a usable value.
 
2682
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
2683
    fi
1690
2684
    ;;
1691
2685
  esac
1692
2686
])
1695
2689
else
1696
2690
  AC_MSG_RESULT(none)
1697
2691
fi
1698
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1699
 
 
1700
 
 
1701
 
# _LT_AC_CHECK_DLFCN
1702
 
# ------------------
1703
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1704
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
1705
 
])# _LT_AC_CHECK_DLFCN
1706
 
 
1707
 
 
1708
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1709
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1710
 
# ---------------------------------------------------------------------
1711
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1712
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2692
max_cmd_len=$lt_cv_sys_max_cmd_len
 
2693
_LT_DECL([], [max_cmd_len], [0],
 
2694
    [What is the maximum length of a command?])
 
2695
])# LT_CMD_MAX_LEN
 
2696
 
 
2697
# Old name:
 
2698
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
2699
dnl aclocal-1.4 backwards compatibility:
 
2700
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
2701
 
 
2702
 
 
2703
# _LT_HEADER_DLFCN
 
2704
# ----------------
 
2705
m4_defun([_LT_HEADER_DLFCN],
 
2706
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
2707
])# _LT_HEADER_DLFCN
 
2708
 
 
2709
 
 
2710
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
2711
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
2712
# ----------------------------------------------------------------
 
2713
m4_defun([_LT_TRY_DLOPEN_SELF],
 
2714
[m4_require([_LT_HEADER_DLFCN])dnl
1713
2715
if test "$cross_compiling" = yes; then :
1714
2716
  [$4]
1715
2717
else
1716
2718
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1717
2719
  lt_status=$lt_dlunknown
1718
 
  cat > conftest.$ac_ext <<EOF
 
2720
  cat > conftest.$ac_ext <<_LT_EOF
1719
2721
[#line __oline__ "configure"
1720
2722
#include "confdefs.h"
1721
2723
 
1757
2759
#  endif
1758
2760
#endif
1759
2761
 
1760
 
#ifdef __cplusplus
1761
 
extern "C" void exit (int);
1762
 
#endif
1763
 
 
1764
2762
void fnord() { int i=42;}
1765
2763
int main ()
1766
2764
{
1776
2774
  else
1777
2775
    puts (dlerror ());
1778
2776
 
1779
 
    exit (status);
 
2777
  return status;
1780
2778
}]
1781
 
EOF
 
2779
_LT_EOF
1782
2780
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1783
2781
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1784
2782
    lt_status=$?
1793
2791
  fi
1794
2792
fi
1795
2793
rm -fr conftest*
1796
 
])# _LT_AC_TRY_DLOPEN_SELF
1797
 
 
1798
 
 
1799
 
# AC_LIBTOOL_DLOPEN_SELF
1800
 
# ----------------------
1801
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1802
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
2794
])# _LT_TRY_DLOPEN_SELF
 
2795
 
 
2796
 
 
2797
# LT_SYS_DLOPEN_SELF
 
2798
# ------------------
 
2799
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
2800
[m4_require([_LT_HEADER_DLFCN])dnl
1803
2801
if test "x$enable_dlopen" != xyes; then
1804
2802
  enable_dlopen=unknown
1805
2803
  enable_dlopen_self=unknown
1815
2813
    lt_cv_dlopen_self=yes
1816
2814
    ;;
1817
2815
 
1818
 
  mingw* | pw32*)
 
2816
  mingw* | pw32* | cegcc*)
1819
2817
    lt_cv_dlopen="LoadLibrary"
1820
2818
    lt_cv_dlopen_libs=
1821
 
   ;;
 
2819
    ;;
1822
2820
 
1823
2821
  cygwin*)
1824
2822
    lt_cv_dlopen="dlopen"
1825
2823
    lt_cv_dlopen_libs=
1826
 
   ;;
 
2824
    ;;
1827
2825
 
1828
2826
  darwin*)
1829
2827
  # if libdl is installed we need to link against it
1833
2831
    lt_cv_dlopen_libs=
1834
2832
    lt_cv_dlopen_self=yes
1835
2833
    ])
1836
 
   ;;
 
2834
    ;;
1837
2835
 
1838
2836
  *)
1839
2837
    AC_CHECK_FUNC([shl_load],
1840
2838
          [lt_cv_dlopen="shl_load"],
1841
2839
      [AC_CHECK_LIB([dld], [shl_load],
1842
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
2840
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1843
2841
        [AC_CHECK_FUNC([dlopen],
1844
2842
              [lt_cv_dlopen="dlopen"],
1845
2843
          [AC_CHECK_LIB([dl], [dlopen],
1847
2845
            [AC_CHECK_LIB([svld], [dlopen],
1848
2846
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1849
2847
              [AC_CHECK_LIB([dld], [dld_link],
1850
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
2848
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1851
2849
              ])
1852
2850
            ])
1853
2851
          ])
1875
2873
 
1876
2874
    AC_CACHE_CHECK([whether a program can dlopen itself],
1877
2875
          lt_cv_dlopen_self, [dnl
1878
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2876
          _LT_TRY_DLOPEN_SELF(
1879
2877
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1880
2878
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1881
2879
    ])
1883
2881
    if test "x$lt_cv_dlopen_self" = xyes; then
1884
2882
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1885
2883
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1886
 
          lt_cv_dlopen_self_static, [dnl
1887
 
          _LT_AC_TRY_DLOPEN_SELF(
 
2884
          lt_cv_dlopen_self_static, [dnl
 
2885
          _LT_TRY_DLOPEN_SELF(
1888
2886
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1889
2887
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1890
2888
      ])
1906
2904
  *) enable_dlopen_self_static=unknown ;;
1907
2905
  esac
1908
2906
fi
1909
 
])# AC_LIBTOOL_DLOPEN_SELF
1910
 
 
1911
 
 
1912
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1913
 
# ---------------------------------
1914
 
# Check to see if options -c and -o are simultaneously supported by compiler
1915
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1916
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
2907
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
2908
         [Whether dlopen is supported])
 
2909
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
2910
         [Whether dlopen of programs is supported])
 
2911
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
2912
         [Whether dlopen of statically linked programs is supported])
 
2913
])# LT_SYS_DLOPEN_SELF
 
2914
 
 
2915
# Old name:
 
2916
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
2917
dnl aclocal-1.4 backwards compatibility:
 
2918
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
2919
 
 
2920
 
 
2921
# _LT_COMPILER_C_O([TAGNAME])
 
2922
# ---------------------------
 
2923
# Check to see if options -c and -o are simultaneously supported by compiler.
 
2924
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
2925
m4_defun([_LT_COMPILER_C_O],
 
2926
[m4_require([_LT_DECL_SED])dnl
 
2927
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2928
m4_require([_LT_TAG_COMPILER])dnl
1917
2929
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1918
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1919
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1920
 
   $rm -r conftest 2>/dev/null
 
2930
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
2931
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
2932
   $RM -r conftest 2>/dev/null
1921
2933
   mkdir conftest
1922
2934
   cd conftest
1923
2935
   mkdir out
1924
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2936
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1925
2937
 
1926
2938
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1927
2939
   # Insert the option either (1) after the last *FLAGS variable, or
1941
2953
   then
1942
2954
     # The compiler can only warn and ignore the option if not recognized
1943
2955
     # So say no if there are warnings
1944
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
2956
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1945
2957
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1946
2958
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1947
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
2959
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1948
2960
     fi
1949
2961
   fi
1950
2962
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1951
 
   $rm conftest*
 
2963
   $RM conftest*
1952
2964
   # SGI C++ compiler will create directory out/ii_files/ for
1953
2965
   # template instantiation
1954
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1955
 
   $rm out/* && rmdir out
 
2966
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
2967
   $RM out/* && rmdir out
1956
2968
   cd ..
1957
 
   rmdir conftest
1958
 
   $rm conftest*
 
2969
   $RM -r conftest
 
2970
   $RM conftest*
1959
2971
])
1960
 
])# AC_LIBTOOL_PROG_CC_C_O
1961
 
 
1962
 
 
1963
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1964
 
# -----------------------------------------
 
2972
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
2973
        [Does compiler simultaneously support -c and -o options?])
 
2974
])# _LT_COMPILER_C_O
 
2975
 
 
2976
 
 
2977
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
2978
# ----------------------------------
1965
2979
# Check to see if we can do hard links to lock some files if needed
1966
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1967
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
2980
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
2981
[m4_require([_LT_ENABLE_LOCK])dnl
 
2982
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2983
_LT_COMPILER_C_O([$1])
1968
2984
 
1969
2985
hard_links="nottested"
1970
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
2986
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1971
2987
  # do not overwrite the value of need_locks provided by the user
1972
2988
  AC_MSG_CHECKING([if we can lock with hard links])
1973
2989
  hard_links=yes
1974
 
  $rm conftest*
 
2990
  $RM conftest*
1975
2991
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1976
2992
  touch conftest.a
1977
2993
  ln conftest.a conftest.b 2>&5 || hard_links=no
1984
3000
else
1985
3001
  need_locks=no
1986
3002
fi
1987
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1988
 
 
1989
 
 
1990
 
# AC_LIBTOOL_OBJDIR
1991
 
# -----------------
1992
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
3003
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
3004
])# _LT_COMPILER_FILE_LOCKS
 
3005
 
 
3006
 
 
3007
# _LT_CHECK_OBJDIR
 
3008
# ----------------
 
3009
m4_defun([_LT_CHECK_OBJDIR],
1993
3010
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1994
3011
[rm -f .libs 2>/dev/null
1995
3012
mkdir .libs 2>/dev/null
2001
3018
fi
2002
3019
rmdir .libs 2>/dev/null])
2003
3020
objdir=$lt_cv_objdir
2004
 
])# AC_LIBTOOL_OBJDIR
2005
 
 
2006
 
 
2007
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2008
 
# ----------------------------------------------
 
3021
_LT_DECL([], [objdir], [0],
 
3022
         [The name of the directory that contains temporary libtool files])dnl
 
3023
m4_pattern_allow([LT_OBJDIR])dnl
 
3024
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
3025
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
3026
])# _LT_CHECK_OBJDIR
 
3027
 
 
3028
 
 
3029
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
3030
# --------------------------------------
2009
3031
# Check hardcoding attributes.
2010
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
3032
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2011
3033
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2012
 
_LT_AC_TAGVAR(hardcode_action, $1)=
2013
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2014
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2015
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
3034
_LT_TAGVAR(hardcode_action, $1)=
 
3035
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
3036
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
3037
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2016
3038
 
2017
 
  # We can hardcode non-existant directories.
2018
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
3039
  # We can hardcode non-existent directories.
 
3040
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2019
3041
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2020
3042
     # have to relink, otherwise we might link with an installed library
2021
3043
     # when we should be linking with a yet-to-be-installed one
2022
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2023
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
3044
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
3045
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2024
3046
    # Linking always hardcodes the temporary library directory.
2025
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
3047
    _LT_TAGVAR(hardcode_action, $1)=relink
2026
3048
  else
2027
3049
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2028
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
3050
    _LT_TAGVAR(hardcode_action, $1)=immediate
2029
3051
  fi
2030
3052
else
2031
3053
  # We cannot hardcode anything, or else we can only hardcode existing
2032
3054
  # directories.
2033
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
3055
  _LT_TAGVAR(hardcode_action, $1)=unsupported
2034
3056
fi
2035
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
3057
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2036
3058
 
2037
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
3059
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
3060
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2038
3061
  # Fast installation is not supported
2039
3062
  enable_fast_install=no
2040
3063
elif test "$shlibpath_overrides_runpath" = yes ||
2042
3065
  # Fast installation is not necessary
2043
3066
  enable_fast_install=needless
2044
3067
fi
2045
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2046
 
 
2047
 
 
2048
 
# AC_LIBTOOL_SYS_LIB_STRIP
2049
 
# ------------------------
2050
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2051
 
[striplib=
 
3068
_LT_TAGDECL([], [hardcode_action], [0],
 
3069
    [How to hardcode a shared library path into an executable])
 
3070
])# _LT_LINKER_HARDCODE_LIBPATH
 
3071
 
 
3072
 
 
3073
# _LT_CMD_STRIPLIB
 
3074
# ----------------
 
3075
m4_defun([_LT_CMD_STRIPLIB],
 
3076
[m4_require([_LT_DECL_EGREP])
 
3077
striplib=
2052
3078
old_striplib=
2053
3079
AC_MSG_CHECKING([whether stripping libraries is possible])
2054
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
3080
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2055
3081
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2056
3082
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2057
3083
  AC_MSG_RESULT([yes])
2058
3084
else
2059
3085
# FIXME - insert some real tests, host_os isn't really good enough
2060
3086
  case $host_os in
2061
 
   darwin*)
2062
 
       if test -n "$STRIP" ; then
2063
 
         striplib="$STRIP -x"
2064
 
         AC_MSG_RESULT([yes])
2065
 
       else
2066
 
  AC_MSG_RESULT([no])
2067
 
fi
2068
 
       ;;
2069
 
   *)
2070
 
  AC_MSG_RESULT([no])
 
3087
  darwin*)
 
3088
    if test -n "$STRIP" ; then
 
3089
      striplib="$STRIP -x"
 
3090
      old_striplib="$STRIP -S"
 
3091
      AC_MSG_RESULT([yes])
 
3092
    else
 
3093
      AC_MSG_RESULT([no])
 
3094
    fi
 
3095
    ;;
 
3096
  *)
 
3097
    AC_MSG_RESULT([no])
2071
3098
    ;;
2072
3099
  esac
2073
3100
fi
2074
 
])# AC_LIBTOOL_SYS_LIB_STRIP
2075
 
 
2076
 
 
2077
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
3101
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
3102
_LT_DECL([], [striplib], [1])
 
3103
])# _LT_CMD_STRIPLIB
 
3104
 
 
3105
 
 
3106
# _LT_SYS_DYNAMIC_LINKER([TAG])
2078
3107
# -----------------------------
2079
3108
# PORTME Fill in your ld.so characteristics
2080
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2081
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
3109
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
3110
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3111
m4_require([_LT_DECL_EGREP])dnl
 
3112
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3113
m4_require([_LT_DECL_OBJDUMP])dnl
 
3114
m4_require([_LT_DECL_SED])dnl
 
3115
AC_MSG_CHECKING([dynamic linker characteristics])
 
3116
m4_if([$1],
 
3117
        [], [
 
3118
if test "$GCC" = yes; then
 
3119
  case $host_os in
 
3120
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
3121
    *) lt_awk_arg="/^libraries:/" ;;
 
3122
  esac
 
3123
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3124
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
3125
    # if the path contains ";" then we assume it to be the separator
 
3126
    # otherwise default to the standard path separator (i.e. ":") - it is
 
3127
    # assumed that no part of a normal pathname contains ";" but that should
 
3128
    # okay in the real world where ";" in dirpaths is itself problematic.
 
3129
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3130
  else
 
3131
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3132
  fi
 
3133
  # Ok, now we have the path, separated by spaces, we can step through it
 
3134
  # and add multilib dir if necessary.
 
3135
  lt_tmp_lt_search_path_spec=
 
3136
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
3137
  for lt_sys_path in $lt_search_path_spec; do
 
3138
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
3139
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
3140
    else
 
3141
      test -d "$lt_sys_path" && \
 
3142
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
3143
    fi
 
3144
  done
 
3145
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
3146
BEGIN {RS=" "; FS="/|\n";} {
 
3147
  lt_foo="";
 
3148
  lt_count=0;
 
3149
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
3150
    if ($lt_i != "" && $lt_i != ".") {
 
3151
      if ($lt_i == "..") {
 
3152
        lt_count++;
 
3153
      } else {
 
3154
        if (lt_count == 0) {
 
3155
          lt_foo="/" $lt_i lt_foo;
 
3156
        } else {
 
3157
          lt_count--;
 
3158
        }
 
3159
      }
 
3160
    }
 
3161
  }
 
3162
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
3163
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
3164
}'`
 
3165
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
3166
else
 
3167
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
3168
fi])
2082
3169
library_names_spec=
2083
3170
libname_spec='lib$name'
2084
3171
soname_spec=
2092
3179
version_type=none
2093
3180
dynamic_linker="$host_os ld.so"
2094
3181
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2095
 
if test "$GCC" = yes; then
2096
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2097
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2098
 
    # if the path contains ";" then we assume it to be the separator
2099
 
    # otherwise default to the standard path separator (i.e. ":") - it is
2100
 
    # assumed that no part of a normal pathname contains ";" but that should
2101
 
    # okay in the real world where ";" in dirpaths is itself problematic.
2102
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2103
 
  else
2104
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2105
 
  fi
2106
 
else
2107
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2108
 
fi
2109
3182
need_lib_prefix=unknown
2110
3183
hardcode_into_libs=no
2111
3184
 
2123
3196
  soname_spec='${libname}${release}${shared_ext}$major'
2124
3197
  ;;
2125
3198
 
2126
 
aix4* | aix5*)
 
3199
aix[[4-9]]*)
2127
3200
  version_type=linux
2128
3201
  need_lib_prefix=no
2129
3202
  need_version=no
2142
3215
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2143
3216
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2144
3217
           echo ' yes '
2145
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
3218
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2146
3219
        :
2147
3220
      else
2148
3221
        can_build_shared=no
2168
3241
  ;;
2169
3242
 
2170
3243
amigaos*)
2171
 
  library_names_spec='$libname.ixlibrary $libname.a'
2172
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2173
 
  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'
 
3244
  case $host_cpu in
 
3245
  powerpc)
 
3246
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
3247
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
3248
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3249
    ;;
 
3250
  m68k)
 
3251
    library_names_spec='$libname.ixlibrary $libname.a'
 
3252
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3253
    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'
 
3254
    ;;
 
3255
  esac
2174
3256
  ;;
2175
3257
 
2176
3258
beos*)
2193
3275
  # libtool to hard-code these into programs
2194
3276
  ;;
2195
3277
 
2196
 
cygwin* | mingw* | pw32*)
 
3278
cygwin* | mingw* | pw32* | cegcc*)
2197
3279
  version_type=windows
2198
3280
  shrext_cmds=".dll"
2199
3281
  need_version=no
2200
3282
  need_lib_prefix=no
2201
3283
 
2202
3284
  case $GCC,$host_os in
2203
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
3285
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2204
3286
    library_names_spec='$libname.dll.a'
2205
3287
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2206
3288
    postinstall_cmds='base_file=`basename \${file}`~
2207
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
3289
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2208
3290
      dldir=$destdir/`dirname \$dlpath`~
2209
3291
      test -d \$dldir || mkdir -p \$dldir~
2210
3292
      $install_prog $dir/$dlname \$dldir/$dlname~
2211
 
      chmod a+x \$dldir/$dlname'
 
3293
      chmod a+x \$dldir/$dlname~
 
3294
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3295
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3296
      fi'
2212
3297
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2213
3298
      dlpath=$dir/\$dldll~
2214
 
       $rm \$dlpath'
 
3299
       $RM \$dlpath'
2215
3300
    shlibpath_overrides_runpath=yes
2216
3301
 
2217
3302
    case $host_os in
2220
3305
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2221
3306
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2222
3307
      ;;
2223
 
    mingw*)
 
3308
    mingw* | cegcc*)
2224
3309
      # MinGW DLLs use traditional 'lib' prefix
2225
3310
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2226
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2227
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
3311
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3312
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2228
3313
        # It is most probably a Windows format PATH printed by
2229
3314
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2230
3315
        # path with ; separators, and with drive letters. We can handle the
2231
3316
        # drive letters (cygwin fileutils understands them), so leave them,
2232
3317
        # especially as we might pass files found there to a mingw objdump,
2233
3318
        # which wouldn't understand a cygwinified path. Ahh.
2234
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3319
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2235
3320
      else
2236
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3321
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2237
3322
      fi
2238
3323
      ;;
2239
3324
    pw32*)
2257
3342
  version_type=darwin
2258
3343
  need_lib_prefix=no
2259
3344
  need_version=no
2260
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3345
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2261
3346
  soname_spec='${libname}${release}${major}$shared_ext'
2262
3347
  shlibpath_overrides_runpath=yes
2263
3348
  shlibpath_var=DYLD_LIBRARY_PATH
2264
3349
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2265
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2266
 
  if test "$GCC" = yes; then
2267
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2268
 
  else
2269
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2270
 
  fi
 
3350
m4_if([$1], [],[
 
3351
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2271
3352
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2272
3353
  ;;
2273
3354
 
2284
3365
  dynamic_linker=no
2285
3366
  ;;
2286
3367
 
2287
 
kfreebsd*-gnu)
2288
 
  version_type=linux
2289
 
  need_lib_prefix=no
2290
 
  need_version=no
2291
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2292
 
  soname_spec='${libname}${release}${shared_ext}$major'
2293
 
  shlibpath_var=LD_LIBRARY_PATH
2294
 
  shlibpath_overrides_runpath=no
2295
 
  hardcode_into_libs=yes
2296
 
  dynamic_linker='GNU ld.so'
2297
 
  ;;
2298
 
 
2299
3368
freebsd* | dragonfly*)
2300
3369
  # DragonFly does not have aout.  When/if they implement a new
2301
3370
  # versioning mechanism, adjust this.
2333
3402
    shlibpath_overrides_runpath=no
2334
3403
    hardcode_into_libs=yes
2335
3404
    ;;
2336
 
  freebsd*) # from 4.6 on
 
3405
  *) # from 4.6 on, and DragonFly
2337
3406
    shlibpath_overrides_runpath=yes
2338
3407
    hardcode_into_libs=yes
2339
3408
    ;;
2372
3441
    fi
2373
3442
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2374
3443
    ;;
2375
 
   hppa*64*)
2376
 
     shrext_cmds='.sl'
2377
 
     hardcode_into_libs=yes
2378
 
     dynamic_linker="$host_os dld.sl"
2379
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2380
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2381
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2382
 
     soname_spec='${libname}${release}${shared_ext}$major'
2383
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2384
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2385
 
     ;;
2386
 
   *)
 
3444
  hppa*64*)
 
3445
    shrext_cmds='.sl'
 
3446
    hardcode_into_libs=yes
 
3447
    dynamic_linker="$host_os dld.sl"
 
3448
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3449
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3450
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3451
    soname_spec='${libname}${release}${shared_ext}$major'
 
3452
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3453
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3454
    ;;
 
3455
  *)
2387
3456
    shrext_cmds='.sl'
2388
3457
    dynamic_linker="$host_os dld.sl"
2389
3458
    shlibpath_var=SHLIB_PATH
2396
3465
  postinstall_cmds='chmod 555 $lib'
2397
3466
  ;;
2398
3467
 
2399
 
interix3*)
 
3468
interix[[3-9]]*)
2400
3469
  version_type=linux
2401
3470
  need_lib_prefix=no
2402
3471
  need_version=no
2451
3520
  ;;
2452
3521
 
2453
3522
# This must be Linux ELF.
2454
 
linux*)
 
3523
linux* | k*bsd*-gnu)
2455
3524
  version_type=linux
2456
3525
  need_lib_prefix=no
2457
3526
  need_version=no
2460
3529
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2461
3530
  shlibpath_var=LD_LIBRARY_PATH
2462
3531
  shlibpath_overrides_runpath=no
 
3532
  # Some binutils ld are patched to set DT_RUNPATH
 
3533
  save_LDFLAGS=$LDFLAGS
 
3534
  save_libdir=$libdir
 
3535
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
3536
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
3537
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
3538
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
3539
       [shlibpath_overrides_runpath=yes])])
 
3540
  LDFLAGS=$save_LDFLAGS
 
3541
  libdir=$save_libdir
 
3542
 
2463
3543
  # This implies no fast_install, which is unacceptable.
2464
3544
  # Some rework will be needed to allow for fast_install
2465
3545
  # before this can be enabled.
2466
3546
  hardcode_into_libs=yes
2467
3547
 
2468
 
  # find out which ABI we are using
2469
 
  libsuff=
2470
 
  case "$host_cpu" in
2471
 
  x86_64*|s390x*|powerpc64*)
2472
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2473
 
    if AC_TRY_EVAL(ac_compile); then
2474
 
      case `/usr/bin/file conftest.$ac_objext` in
2475
 
      *64-bit*)
2476
 
        libsuff=64
2477
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
2478
 
        ;;
2479
 
      esac
2480
 
    fi
2481
 
    rm -rf conftest*
2482
 
    ;;
2483
 
  esac
2484
 
 
2485
3548
  # Append ld.so.conf contents to the search path
2486
3549
  if test -f /etc/ld.so.conf; then
2487
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2488
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
3550
    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' ' '`
 
3551
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2489
3552
  fi
2490
3553
 
2491
3554
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2497
3560
  dynamic_linker='GNU/Linux ld.so'
2498
3561
  ;;
2499
3562
 
2500
 
knetbsd*-gnu)
2501
 
  version_type=linux
2502
 
  need_lib_prefix=no
2503
 
  need_version=no
2504
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2505
 
  soname_spec='${libname}${release}${shared_ext}$major'
2506
 
  shlibpath_var=LD_LIBRARY_PATH
2507
 
  shlibpath_overrides_runpath=no
2508
 
  hardcode_into_libs=yes
2509
 
  dynamic_linker='GNU ld.so'
2510
 
  ;;
2511
 
 
2512
3563
netbsd*)
2513
3564
  version_type=sunos
2514
3565
  need_lib_prefix=no
2515
3566
  need_version=no
2516
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
3567
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2517
3568
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2518
3569
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2519
3570
    dynamic_linker='NetBSD (a.out) ld.so'
2534
3585
  shlibpath_overrides_runpath=yes
2535
3586
  ;;
2536
3587
 
2537
 
nto-qnx*)
2538
 
  version_type=linux
 
3588
*nto* | *qnx*)
 
3589
  version_type=qnx
2539
3590
  need_lib_prefix=no
2540
3591
  need_version=no
2541
3592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2542
3593
  soname_spec='${libname}${release}${shared_ext}$major'
2543
3594
  shlibpath_var=LD_LIBRARY_PATH
2544
 
  shlibpath_overrides_runpath=yes
 
3595
  shlibpath_overrides_runpath=no
 
3596
  hardcode_into_libs=yes
 
3597
  dynamic_linker='ldqnx.so'
2545
3598
  ;;
2546
3599
 
2547
3600
openbsd*)
2550
3603
  need_lib_prefix=no
2551
3604
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2552
3605
  case $host_os in
2553
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2554
 
    *)                         need_version=no  ;;
 
3606
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
3607
    *)                          need_version=no  ;;
2555
3608
  esac
2556
3609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2557
3610
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2558
3611
  shlibpath_var=LD_LIBRARY_PATH
2559
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3612
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2560
3613
    case $host_os in
2561
3614
      openbsd2.[[89]] | openbsd2.[[89]].*)
2562
3615
        shlibpath_overrides_runpath=no
2590
3643
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2591
3644
  ;;
2592
3645
 
 
3646
rdos*)
 
3647
  dynamic_linker=no
 
3648
  ;;
 
3649
 
2593
3650
solaris*)
2594
3651
  version_type=linux
2595
3652
  need_lib_prefix=no
2624
3681
    sni)
2625
3682
      shlibpath_overrides_runpath=no
2626
3683
      need_lib_prefix=no
2627
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2628
3684
      runpath_var=LD_RUN_PATH
2629
3685
      ;;
2630
3686
    siemens)
2655
3711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2656
3712
  soname_spec='${libname}${release}${shared_ext}$major'
2657
3713
  shlibpath_var=LD_LIBRARY_PATH
 
3714
  shlibpath_overrides_runpath=yes
2658
3715
  hardcode_into_libs=yes
2659
3716
  if test "$with_gnu_ld" = yes; then
2660
3717
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2661
 
    shlibpath_overrides_runpath=no
2662
3718
  else
2663
3719
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2664
 
    shlibpath_overrides_runpath=yes
2665
3720
    case $host_os in
2666
3721
      sco3.2v5*)
2667
3722
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2671
3726
  sys_lib_dlsearch_path_spec='/usr/lib'
2672
3727
  ;;
2673
3728
 
 
3729
tpf*)
 
3730
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
3731
  version_type=linux
 
3732
  need_lib_prefix=no
 
3733
  need_version=no
 
3734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3735
  shlibpath_var=LD_LIBRARY_PATH
 
3736
  shlibpath_overrides_runpath=no
 
3737
  hardcode_into_libs=yes
 
3738
  ;;
 
3739
 
2674
3740
uts4*)
2675
3741
  version_type=linux
2676
3742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2689
3755
if test "$GCC" = yes; then
2690
3756
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2691
3757
fi
2692
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2693
 
 
2694
 
 
2695
 
# _LT_AC_TAGCONFIG
2696
 
# ----------------
2697
 
AC_DEFUN([_LT_AC_TAGCONFIG],
2698
 
[AC_ARG_WITH([tags],
2699
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2700
 
        [include additional configurations @<:@automatic@:>@])],
2701
 
    [tagnames="$withval"])
2702
 
 
2703
 
if test -f "$ltmain" && test -n "$tagnames"; then
2704
 
  if test ! -f "${ofile}"; then
2705
 
    AC_MSG_WARN([output file `$ofile' does not exist])
2706
 
  fi
2707
 
 
2708
 
  if test -z "$LTCC"; then
2709
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2710
 
    if test -z "$LTCC"; then
2711
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2712
 
    else
2713
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2714
 
    fi
2715
 
  fi
2716
 
  if test -z "$LTCFLAGS"; then
2717
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2718
 
  fi
2719
 
 
2720
 
  # Extract list of available tagged configurations in $ofile.
2721
 
  # Note that this assumes the entire list is on one line.
2722
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2723
 
 
2724
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2725
 
  for tagname in $tagnames; do
2726
 
    IFS="$lt_save_ifs"
2727
 
    # Check whether tagname contains only valid characters
2728
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2729
 
    "") ;;
2730
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2731
 
        ;;
2732
 
    esac
2733
 
 
2734
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2735
 
    then
2736
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2737
 
    fi
2738
 
 
2739
 
    # Update the list of available tags.
2740
 
    if test -n "$tagname"; then
2741
 
      echo appending configuration tag \"$tagname\" to $ofile
2742
 
 
2743
 
      case $tagname in
2744
 
      CXX)
2745
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2746
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2747
 
            (test "X$CXX" != "Xg++"))) ; then
2748
 
          AC_LIBTOOL_LANG_CXX_CONFIG
2749
 
        else
2750
 
          tagname=""
2751
 
        fi
2752
 
        ;;
2753
 
 
2754
 
      F77)
2755
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
2756
 
          AC_LIBTOOL_LANG_F77_CONFIG
2757
 
        else
2758
 
          tagname=""
2759
 
        fi
2760
 
        ;;
2761
 
 
2762
 
      GCJ)
2763
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2764
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2765
 
        else
2766
 
          tagname=""
2767
 
        fi
2768
 
        ;;
2769
 
 
2770
 
      RC)
2771
 
        AC_LIBTOOL_LANG_RC_CONFIG
2772
 
        ;;
2773
 
 
2774
 
      *)
2775
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2776
 
        ;;
2777
 
      esac
2778
 
 
2779
 
      # Append the new tag name to the list of available tags.
2780
 
      if test -n "$tagname" ; then
2781
 
      available_tags="$available_tags $tagname"
2782
 
    fi
2783
 
    fi
2784
 
  done
2785
 
  IFS="$lt_save_ifs"
2786
 
 
2787
 
  # Now substitute the updated list of available tags.
2788
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2789
 
    mv "${ofile}T" "$ofile"
2790
 
    chmod +x "$ofile"
2791
 
  else
2792
 
    rm -f "${ofile}T"
2793
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2794
 
  fi
2795
 
fi
2796
 
])# _LT_AC_TAGCONFIG
2797
 
 
2798
 
 
2799
 
# AC_LIBTOOL_DLOPEN
2800
 
# -----------------
2801
 
# enable checks for dlopen support
2802
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2803
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2804
 
])# AC_LIBTOOL_DLOPEN
2805
 
 
2806
 
 
2807
 
# AC_LIBTOOL_WIN32_DLL
2808
 
# --------------------
2809
 
# declare package support for building win32 DLLs
2810
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2811
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2812
 
])# AC_LIBTOOL_WIN32_DLL
2813
 
 
2814
 
 
2815
 
# AC_ENABLE_SHARED([DEFAULT])
2816
 
# ---------------------------
2817
 
# implement the --enable-shared flag
2818
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2819
 
AC_DEFUN([AC_ENABLE_SHARED],
2820
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2821
 
AC_ARG_ENABLE([shared],
2822
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2823
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2824
 
    [p=${PACKAGE-default}
2825
 
    case $enableval in
2826
 
    yes) enable_shared=yes ;;
2827
 
    no) enable_shared=no ;;
2828
 
    *)
2829
 
      enable_shared=no
2830
 
      # Look at the argument we got.  We use all the common list separators.
2831
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2832
 
      for pkg in $enableval; do
2833
 
        IFS="$lt_save_ifs"
2834
 
        if test "X$pkg" = "X$p"; then
2835
 
          enable_shared=yes
2836
 
        fi
2837
 
      done
2838
 
      IFS="$lt_save_ifs"
2839
 
      ;;
2840
 
    esac],
2841
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2842
 
])# AC_ENABLE_SHARED
2843
 
 
2844
 
 
2845
 
# AC_DISABLE_SHARED
2846
 
# -----------------
2847
 
# set the default shared flag to --disable-shared
2848
 
AC_DEFUN([AC_DISABLE_SHARED],
2849
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2850
 
AC_ENABLE_SHARED(no)
2851
 
])# AC_DISABLE_SHARED
2852
 
 
2853
 
 
2854
 
# AC_ENABLE_STATIC([DEFAULT])
2855
 
# ---------------------------
2856
 
# implement the --enable-static flag
2857
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2858
 
AC_DEFUN([AC_ENABLE_STATIC],
2859
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2860
 
AC_ARG_ENABLE([static],
2861
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2862
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2863
 
    [p=${PACKAGE-default}
2864
 
    case $enableval in
2865
 
    yes) enable_static=yes ;;
2866
 
    no) enable_static=no ;;
2867
 
    *)
2868
 
     enable_static=no
2869
 
      # Look at the argument we got.  We use all the common list separators.
2870
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2871
 
      for pkg in $enableval; do
2872
 
        IFS="$lt_save_ifs"
2873
 
        if test "X$pkg" = "X$p"; then
2874
 
          enable_static=yes
2875
 
        fi
2876
 
      done
2877
 
      IFS="$lt_save_ifs"
2878
 
      ;;
2879
 
    esac],
2880
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2881
 
])# AC_ENABLE_STATIC
2882
 
 
2883
 
 
2884
 
# AC_DISABLE_STATIC
2885
 
# -----------------
2886
 
# set the default static flag to --disable-static
2887
 
AC_DEFUN([AC_DISABLE_STATIC],
2888
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2889
 
AC_ENABLE_STATIC(no)
2890
 
])# AC_DISABLE_STATIC
2891
 
 
2892
 
 
2893
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2894
 
# ---------------------------------
2895
 
# implement the --enable-fast-install flag
2896
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2897
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2898
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2899
 
AC_ARG_ENABLE([fast-install],
2900
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2901
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2902
 
    [p=${PACKAGE-default}
2903
 
    case $enableval in
2904
 
    yes) enable_fast_install=yes ;;
2905
 
    no) enable_fast_install=no ;;
2906
 
    *)
2907
 
      enable_fast_install=no
2908
 
      # Look at the argument we got.  We use all the common list separators.
2909
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2910
 
      for pkg in $enableval; do
2911
 
        IFS="$lt_save_ifs"
2912
 
        if test "X$pkg" = "X$p"; then
2913
 
          enable_fast_install=yes
2914
 
        fi
2915
 
      done
2916
 
      IFS="$lt_save_ifs"
2917
 
      ;;
2918
 
    esac],
2919
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2920
 
])# AC_ENABLE_FAST_INSTALL
2921
 
 
2922
 
 
2923
 
# AC_DISABLE_FAST_INSTALL
2924
 
# -----------------------
2925
 
# set the default to --disable-fast-install
2926
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2927
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2928
 
AC_ENABLE_FAST_INSTALL(no)
2929
 
])# AC_DISABLE_FAST_INSTALL
2930
 
 
2931
 
 
2932
 
# AC_LIBTOOL_PICMODE([MODE])
 
3758
 
 
3759
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
3760
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
3761
fi
 
3762
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
3763
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
3764
fi
 
3765
 
 
3766
_LT_DECL([], [variables_saved_for_relink], [1],
 
3767
    [Variables whose values should be saved in libtool wrapper scripts and
 
3768
    restored at link time])
 
3769
_LT_DECL([], [need_lib_prefix], [0],
 
3770
    [Do we need the "lib" prefix for modules?])
 
3771
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
3772
_LT_DECL([], [version_type], [0], [Library versioning type])
 
3773
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
3774
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
3775
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
3776
    [Is shlibpath searched before the hard-coded library search path?])
 
3777
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
3778
_LT_DECL([], [library_names_spec], [1],
 
3779
    [[List of archive names.  First name is the real one, the rest are links.
 
3780
    The last name is the one that the linker finds with -lNAME]])
 
3781
_LT_DECL([], [soname_spec], [1],
 
3782
    [[The coded name of the library, if different from the real name]])
 
3783
_LT_DECL([], [postinstall_cmds], [2],
 
3784
    [Command to use after installation of a shared archive])
 
3785
_LT_DECL([], [postuninstall_cmds], [2],
 
3786
    [Command to use after uninstallation of a shared archive])
 
3787
_LT_DECL([], [finish_cmds], [2],
 
3788
    [Commands used to finish a libtool library installation in a directory])
 
3789
_LT_DECL([], [finish_eval], [1],
 
3790
    [[As "finish_cmds", except a single script fragment to be evaled but
 
3791
    not shown]])
 
3792
_LT_DECL([], [hardcode_into_libs], [0],
 
3793
    [Whether we should hardcode library paths into libraries])
 
3794
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
3795
    [Compile-time system search path for libraries])
 
3796
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
3797
    [Run-time system search path for libraries])
 
3798
])# _LT_SYS_DYNAMIC_LINKER
 
3799
 
 
3800
 
 
3801
# _LT_PATH_TOOL_PREFIX(TOOL)
2933
3802
# --------------------------
2934
 
# implement the --with-pic flag
2935
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2936
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2937
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2938
 
pic_mode=ifelse($#,1,$1,default)
2939
 
])# AC_LIBTOOL_PICMODE
2940
 
 
2941
 
 
2942
 
# AC_PROG_EGREP
2943
 
# -------------
2944
 
# This is predefined starting with Autoconf 2.54, so this conditional
2945
 
# definition can be removed once we require Autoconf 2.54 or later.
2946
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2947
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2948
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2949
 
    then ac_cv_prog_egrep='grep -E'
2950
 
    else ac_cv_prog_egrep='egrep'
2951
 
    fi])
2952
 
 EGREP=$ac_cv_prog_egrep
2953
 
 AC_SUBST([EGREP])
2954
 
])])
2955
 
 
2956
 
 
2957
 
# AC_PATH_TOOL_PREFIX
2958
 
# -------------------
2959
 
# find a file program which can recognise shared library
2960
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2961
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3803
# find a file program which can recognize shared library
 
3804
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
3805
[m4_require([_LT_DECL_EGREP])dnl
2962
3806
AC_MSG_CHECKING([for $1])
2963
3807
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2964
3808
[case $MAGIC_CMD in
2971
3815
dnl $ac_dummy forces splitting on constant user-supplied paths.
2972
3816
dnl POSIX.2 word splitting is done only on the output of word expansions,
2973
3817
dnl not every word.  This closes a longstanding sh security hole.
2974
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
3818
  ac_dummy="m4_if([$2], , $PATH, [$2])"
2975
3819
  for ac_dir in $ac_dummy; do
2976
3820
    IFS="$lt_save_ifs"
2977
3821
    test -z "$ac_dir" && ac_dir=.
2986
3830
            $EGREP "$file_magic_regex" > /dev/null; then
2987
3831
            :
2988
3832
          else
2989
 
            cat <<EOF 1>&2
 
3833
            cat <<_LT_EOF 1>&2
2990
3834
 
2991
3835
*** Warning: the command libtool uses to detect shared libraries,
2992
3836
*** $file_magic_cmd, produces output that libtool cannot recognize.
2997
3841
*** may want to report the problem to your system manager and/or to
2998
3842
*** bug-libtool@gnu.org
2999
3843
 
3000
 
EOF
 
3844
_LT_EOF
3001
3845
          fi ;;
3002
3846
        esac
3003
3847
      fi
3014
3858
else
3015
3859
  AC_MSG_RESULT(no)
3016
3860
fi
3017
 
])# AC_PATH_TOOL_PREFIX
3018
 
 
3019
 
 
3020
 
# AC_PATH_MAGIC
3021
 
# -------------
3022
 
# find a file program which can recognise a shared library
3023
 
AC_DEFUN([AC_PATH_MAGIC],
3024
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
3861
_LT_DECL([], [MAGIC_CMD], [0],
 
3862
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
3863
])# _LT_PATH_TOOL_PREFIX
 
3864
 
 
3865
# Old name:
 
3866
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
3867
dnl aclocal-1.4 backwards compatibility:
 
3868
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
3869
 
 
3870
 
 
3871
# _LT_PATH_MAGIC
 
3872
# --------------
 
3873
# find a file program which can recognize a shared library
 
3874
m4_defun([_LT_PATH_MAGIC],
 
3875
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3025
3876
if test -z "$lt_cv_path_MAGIC_CMD"; then
3026
3877
  if test -n "$ac_tool_prefix"; then
3027
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
3878
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3028
3879
  else
3029
3880
    MAGIC_CMD=:
3030
3881
  fi
3031
3882
fi
3032
 
])# AC_PATH_MAGIC
3033
 
 
3034
 
 
3035
 
# AC_PROG_LD
 
3883
])# _LT_PATH_MAGIC
 
3884
 
 
3885
 
 
3886
# LT_PATH_LD
3036
3887
# ----------
3037
3888
# find the pathname to the GNU or non-GNU linker
3038
 
AC_DEFUN([AC_PROG_LD],
3039
 
[AC_ARG_WITH([gnu-ld],
3040
 
    [AC_HELP_STRING([--with-gnu-ld],
 
3889
AC_DEFUN([LT_PATH_LD],
 
3890
[AC_REQUIRE([AC_PROG_CC])dnl
 
3891
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3892
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3893
m4_require([_LT_DECL_SED])dnl
 
3894
m4_require([_LT_DECL_EGREP])dnl
 
3895
 
 
3896
AC_ARG_WITH([gnu-ld],
 
3897
    [AS_HELP_STRING([--with-gnu-ld],
3041
3898
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3042
3899
    [test "$withval" = no || with_gnu_ld=yes],
3043
 
    [with_gnu_ld=no])
3044
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
3045
 
AC_REQUIRE([AC_PROG_CC])dnl
3046
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3047
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
3900
    [with_gnu_ld=no])dnl
 
3901
 
3048
3902
ac_prog=ld
3049
3903
if test "$GCC" = yes; then
3050
3904
  # Check if gcc -print-prog-name=ld gives a path.
3061
3915
    [[\\/]]* | ?:[[\\/]]*)
3062
3916
      re_direlt='/[[^/]][[^/]]*/\.\./'
3063
3917
      # Canonicalize the pathname of ld
3064
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3065
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3066
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3918
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
3919
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
3920
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3067
3921
      done
3068
3922
      test -z "$LD" && LD="$ac_prog"
3069
3923
      ;;
3113
3967
  AC_MSG_RESULT(no)
3114
3968
fi
3115
3969
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3116
 
AC_PROG_LD_GNU
3117
 
])# AC_PROG_LD
3118
 
 
3119
 
 
3120
 
# AC_PROG_LD_GNU
3121
 
# --------------
3122
 
AC_DEFUN([AC_PROG_LD_GNU],
3123
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
3124
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3970
_LT_PATH_LD_GNU
 
3971
AC_SUBST([LD])
 
3972
 
 
3973
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
3974
])# LT_PATH_LD
 
3975
 
 
3976
# Old names:
 
3977
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
3978
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
3979
dnl aclocal-1.4 backwards compatibility:
 
3980
dnl AC_DEFUN([AM_PROG_LD], [])
 
3981
dnl AC_DEFUN([AC_PROG_LD], [])
 
3982
 
 
3983
 
 
3984
# _LT_PATH_LD_GNU
 
3985
#- --------------
 
3986
m4_defun([_LT_PATH_LD_GNU],
 
3987
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3125
3988
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3126
3989
case `$LD -v 2>&1 </dev/null` in
3127
3990
*GNU* | *'with BFD'*)
3132
3995
  ;;
3133
3996
esac])
3134
3997
with_gnu_ld=$lt_cv_prog_gnu_ld
3135
 
])# AC_PROG_LD_GNU
3136
 
 
3137
 
 
3138
 
# AC_PROG_LD_RELOAD_FLAG
3139
 
# ----------------------
 
3998
])# _LT_PATH_LD_GNU
 
3999
 
 
4000
 
 
4001
# _LT_CMD_RELOAD
 
4002
# --------------
3140
4003
# find reload flag for linker
3141
4004
#   -- PORTME Some linkers may need a different reload flag.
3142
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
4005
m4_defun([_LT_CMD_RELOAD],
3143
4006
[AC_CACHE_CHECK([for $LD option to reload object files],
3144
4007
  lt_cv_ld_reload_flag,
3145
4008
  [lt_cv_ld_reload_flag='-r'])
3158
4021
    fi
3159
4022
    ;;
3160
4023
esac
3161
 
])# AC_PROG_LD_RELOAD_FLAG
3162
 
 
3163
 
 
3164
 
# AC_DEPLIBS_CHECK_METHOD
3165
 
# -----------------------
 
4024
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
4025
_LT_DECL([], [reload_cmds], [2])dnl
 
4026
])# _LT_CMD_RELOAD
 
4027
 
 
4028
 
 
4029
# _LT_CHECK_MAGIC_METHOD
 
4030
# ----------------------
3166
4031
# how to check for library dependencies
3167
4032
#  -- PORTME fill in with the dynamic library characteristics
3168
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3169
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
4033
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
4034
[m4_require([_LT_DECL_EGREP])
 
4035
m4_require([_LT_DECL_OBJDUMP])
 
4036
AC_CACHE_CHECK([how to recognize dependent libraries],
3170
4037
lt_cv_deplibs_check_method,
3171
4038
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3172
4039
lt_cv_file_magic_test_file=
3183
4050
# whether `pass_all' will *always* work, you probably want this one.
3184
4051
 
3185
4052
case $host_os in
3186
 
aix4* | aix5*)
 
4053
aix[[4-9]]*)
3187
4054
  lt_cv_deplibs_check_method=pass_all
3188
4055
  ;;
3189
4056
 
3205
4072
 
3206
4073
mingw* | pw32*)
3207
4074
  # Base MSYS/MinGW do not provide the 'file' command needed by
3208
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3209
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4075
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4076
  # unless we find 'file', for example because we are cross-compiling.
 
4077
  if ( file / ) >/dev/null 2>&1; then
 
4078
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4079
    lt_cv_file_magic_cmd='func_win32_libid'
 
4080
  else
 
4081
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4082
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4083
  fi
 
4084
  ;;
 
4085
 
 
4086
cegcc)
 
4087
  # use the weaker test based on 'objdump'. See mingw*.
 
4088
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3210
4089
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3211
4090
  ;;
3212
4091
 
3214
4093
  lt_cv_deplibs_check_method=pass_all
3215
4094
  ;;
3216
4095
 
3217
 
freebsd* | kfreebsd*-gnu | dragonfly*)
3218
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4096
freebsd* | dragonfly*)
 
4097
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3219
4098
    case $host_cpu in
3220
4099
    i*86 )
3221
4100
      # Not sure whether the presence of OpenBSD here was a mistake.
3252
4131
  esac
3253
4132
  ;;
3254
4133
 
3255
 
interix3*)
 
4134
interix[[3-9]]*)
3256
4135
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3257
4136
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3258
4137
  ;;
3268
4147
  ;;
3269
4148
 
3270
4149
# This must be Linux ELF.
3271
 
linux*)
 
4150
linux* | k*bsd*-gnu)
3272
4151
  lt_cv_deplibs_check_method=pass_all
3273
4152
  ;;
3274
4153
 
3275
4154
netbsd*)
3276
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4155
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3277
4156
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3278
4157
  else
3279
4158
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3286
4165
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3287
4166
  ;;
3288
4167
 
3289
 
nto-qnx*)
3290
 
  lt_cv_deplibs_check_method=unknown
 
4168
*nto* | *qnx*)
 
4169
  lt_cv_deplibs_check_method=pass_all
3291
4170
  ;;
3292
4171
 
3293
4172
openbsd*)
3294
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4173
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3295
4174
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3296
4175
  else
3297
4176
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3302
4181
  lt_cv_deplibs_check_method=pass_all
3303
4182
  ;;
3304
4183
 
 
4184
rdos*)
 
4185
  lt_cv_deplibs_check_method=pass_all
 
4186
  ;;
 
4187
 
3305
4188
solaris*)
3306
4189
  lt_cv_deplibs_check_method=pass_all
3307
4190
  ;;
3308
4191
 
 
4192
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4193
  lt_cv_deplibs_check_method=pass_all
 
4194
  ;;
 
4195
 
3309
4196
sysv4 | sysv4.3*)
3310
4197
  case $host_vendor in
3311
4198
  motorola)
3333
4220
  esac
3334
4221
  ;;
3335
4222
 
3336
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4223
tpf*)
3337
4224
  lt_cv_deplibs_check_method=pass_all
3338
4225
  ;;
3339
4226
esac
3341
4228
file_magic_cmd=$lt_cv_file_magic_cmd
3342
4229
deplibs_check_method=$lt_cv_deplibs_check_method
3343
4230
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3344
 
])# AC_DEPLIBS_CHECK_METHOD
3345
 
 
3346
 
 
3347
 
# AC_PROG_NM
 
4231
 
 
4232
_LT_DECL([], [deplibs_check_method], [1],
 
4233
    [Method to check whether dependent libraries are shared objects])
 
4234
_LT_DECL([], [file_magic_cmd], [1],
 
4235
    [Command to use when deplibs_check_method == "file_magic"])
 
4236
])# _LT_CHECK_MAGIC_METHOD
 
4237
 
 
4238
 
 
4239
# LT_PATH_NM
3348
4240
# ----------
3349
 
# find the pathname to a BSD-compatible name lister
3350
 
AC_DEFUN([AC_PROG_NM],
3351
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
4241
# find the pathname to a BSD- or MS-compatible name lister
 
4242
AC_DEFUN([LT_PATH_NM],
 
4243
[AC_REQUIRE([AC_PROG_CC])dnl
 
4244
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3352
4245
[if test -n "$NM"; then
3353
4246
  # Let the user override the test.
3354
4247
  lt_cv_path_NM="$NM"
3355
4248
else
3356
4249
  lt_nm_to_check="${ac_tool_prefix}nm"
3357
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
 
4250
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3358
4251
    lt_nm_to_check="$lt_nm_to_check nm"
3359
4252
  fi
3360
4253
  for lt_tmp_nm in $lt_nm_to_check; do
3390
4283
    done
3391
4284
    IFS="$lt_save_ifs"
3392
4285
  done
3393
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4286
  : ${lt_cv_path_NM=no}
3394
4287
fi])
3395
 
NM="$lt_cv_path_NM"
3396
 
])# AC_PROG_NM
3397
 
 
3398
 
 
3399
 
# AC_CHECK_LIBM
3400
 
# -------------
 
4288
if test "$lt_cv_path_NM" != "no"; then
 
4289
  NM="$lt_cv_path_NM"
 
4290
else
 
4291
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4292
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4293
  AC_SUBST([DUMPBIN])
 
4294
  if test "$DUMPBIN" != ":"; then
 
4295
    NM="$DUMPBIN"
 
4296
  fi
 
4297
fi
 
4298
test -z "$NM" && NM=nm
 
4299
AC_SUBST([NM])
 
4300
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4301
 
 
4302
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4303
  [lt_cv_nm_interface="BSD nm"
 
4304
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4305
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4306
  (eval "$ac_compile" 2>conftest.err)
 
4307
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4308
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4309
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4310
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4311
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4312
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4313
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4314
    lt_cv_nm_interface="MS dumpbin"
 
4315
  fi
 
4316
  rm -f conftest*])
 
4317
])# LT_PATH_NM
 
4318
 
 
4319
# Old names:
 
4320
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4321
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4322
dnl aclocal-1.4 backwards compatibility:
 
4323
dnl AC_DEFUN([AM_PROG_NM], [])
 
4324
dnl AC_DEFUN([AC_PROG_NM], [])
 
4325
 
 
4326
 
 
4327
# LT_LIB_M
 
4328
# --------
3401
4329
# check for math library
3402
 
AC_DEFUN([AC_CHECK_LIBM],
 
4330
AC_DEFUN([LT_LIB_M],
3403
4331
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3404
4332
LIBM=
3405
4333
case $host in
3414
4342
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3415
4343
  ;;
3416
4344
esac
3417
 
])# AC_CHECK_LIBM
3418
 
 
3419
 
 
3420
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3421
 
# -----------------------------------
3422
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
3423
 
# LTDLINCL to the include flags for the libltdl header and adds
3424
 
# --enable-ltdl-convenience to the configure arguments.  Note that
3425
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3426
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3427
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3428
 
# (note the single quotes!).  If your package is not flat and you're not
3429
 
# using automake, define top_builddir and top_srcdir appropriately in
3430
 
# the Makefiles.
3431
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3432
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3433
 
  case $enable_ltdl_convenience in
3434
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3435
 
  "") enable_ltdl_convenience=yes
3436
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3437
 
  esac
3438
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3439
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3440
 
  # For backwards non-gettext consistent compatibility...
3441
 
  INCLTDL="$LTDLINCL"
3442
 
])# AC_LIBLTDL_CONVENIENCE
3443
 
 
3444
 
 
3445
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3446
 
# -----------------------------------
3447
 
# sets LIBLTDL to the link flags for the libltdl installable library and
3448
 
# LTDLINCL to the include flags for the libltdl header and adds
3449
 
# --enable-ltdl-install to the configure arguments.  Note that
3450
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3451
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3452
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3453
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3454
 
# flat and you're not using automake, define top_builddir and top_srcdir
3455
 
# appropriately in the Makefiles.
3456
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3457
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3458
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3459
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
3460
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3461
 
  [if test x"$enable_ltdl_install" = xno; then
3462
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
3463
 
   else
3464
 
     enable_ltdl_install=yes
3465
 
   fi
3466
 
  ])
3467
 
  if test x"$enable_ltdl_install" = x"yes"; then
3468
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3469
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3470
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3471
 
  else
3472
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3473
 
    LIBLTDL="-lltdl"
3474
 
    LTDLINCL=
3475
 
  fi
3476
 
  # For backwards non-gettext consistent compatibility...
3477
 
  INCLTDL="$LTDLINCL"
3478
 
])# AC_LIBLTDL_INSTALLABLE
3479
 
 
3480
 
 
3481
 
# AC_LIBTOOL_CXX
3482
 
# --------------
3483
 
# enable support for C++ libraries
3484
 
AC_DEFUN([AC_LIBTOOL_CXX],
3485
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
3486
 
])# AC_LIBTOOL_CXX
3487
 
 
3488
 
 
3489
 
# _LT_AC_LANG_CXX
3490
 
# ---------------
3491
 
AC_DEFUN([_LT_AC_LANG_CXX],
3492
 
[AC_REQUIRE([AC_PROG_CXX])
3493
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3494
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3495
 
])# _LT_AC_LANG_CXX
3496
 
 
3497
 
# _LT_AC_PROG_CXXCPP
3498
 
# ------------------
3499
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3500
 
[
3501
 
AC_REQUIRE([AC_PROG_CXX])
3502
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3503
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3504
 
    (test "X$CXX" != "Xg++"))) ; then
3505
 
  AC_PROG_CXXCPP
3506
 
fi
3507
 
])# _LT_AC_PROG_CXXCPP
3508
 
 
3509
 
# AC_LIBTOOL_F77
3510
 
# --------------
3511
 
# enable support for Fortran 77 libraries
3512
 
AC_DEFUN([AC_LIBTOOL_F77],
3513
 
[AC_REQUIRE([_LT_AC_LANG_F77])
3514
 
])# AC_LIBTOOL_F77
3515
 
 
3516
 
 
3517
 
# _LT_AC_LANG_F77
3518
 
# ---------------
3519
 
AC_DEFUN([_LT_AC_LANG_F77],
3520
 
[AC_REQUIRE([AC_PROG_F77])
3521
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3522
 
])# _LT_AC_LANG_F77
3523
 
 
3524
 
 
3525
 
# AC_LIBTOOL_GCJ
3526
 
# --------------
3527
 
# enable support for GCJ libraries
3528
 
AC_DEFUN([AC_LIBTOOL_GCJ],
3529
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3530
 
])# AC_LIBTOOL_GCJ
3531
 
 
3532
 
 
3533
 
# _LT_AC_LANG_GCJ
3534
 
# ---------------
3535
 
AC_DEFUN([_LT_AC_LANG_GCJ],
3536
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3537
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3538
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3539
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3540
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3541
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3542
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3543
 
])# _LT_AC_LANG_GCJ
3544
 
 
3545
 
 
3546
 
# AC_LIBTOOL_RC
3547
 
# -------------
3548
 
# enable support for Windows resource files
3549
 
AC_DEFUN([AC_LIBTOOL_RC],
3550
 
[AC_REQUIRE([LT_AC_PROG_RC])
3551
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3552
 
])# AC_LIBTOOL_RC
3553
 
 
3554
 
 
3555
 
# AC_LIBTOOL_LANG_C_CONFIG
3556
 
# ------------------------
3557
 
# Ensure that the configuration vars for the C compiler are
3558
 
# suitably defined.  Those variables are subsequently used by
3559
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3560
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3561
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3562
 
[lt_save_CC="$CC"
3563
 
AC_LANG_PUSH(C)
3564
 
 
3565
 
# Source file extension for C test sources.
3566
 
ac_ext=c
3567
 
 
3568
 
# Object file extension for compiled C test sources.
3569
 
objext=o
3570
 
_LT_AC_TAGVAR(objext, $1)=$objext
3571
 
 
3572
 
# Code to be used in simple compile tests
3573
 
lt_simple_compile_test_code="int some_variable = 0;\n"
3574
 
 
3575
 
# Code to be used in simple link tests
3576
 
lt_simple_link_test_code='int main(){return(0);}\n'
3577
 
 
3578
 
_LT_AC_SYS_COMPILER
3579
 
 
3580
 
# save warnings/boilerplate of simple test code
3581
 
_LT_COMPILER_BOILERPLATE
3582
 
_LT_LINKER_BOILERPLATE
3583
 
 
3584
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3585
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3586
 
AC_LIBTOOL_PROG_CC_C_O($1)
3587
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3588
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3589
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3590
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3591
 
AC_LIBTOOL_SYS_LIB_STRIP
3592
 
AC_LIBTOOL_DLOPEN_SELF
3593
 
 
3594
 
# Report which library types will actually be built
3595
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3596
 
AC_MSG_RESULT([$can_build_shared])
3597
 
 
3598
 
AC_MSG_CHECKING([whether to build shared libraries])
3599
 
test "$can_build_shared" = "no" && enable_shared=no
3600
 
 
3601
 
# On AIX, shared libraries and static libraries use the same namespace, and
3602
 
# are all built from PIC.
3603
 
case $host_os in
3604
 
aix3*)
3605
 
  test "$enable_shared" = yes && enable_static=no
3606
 
  if test -n "$RANLIB"; then
3607
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3608
 
    postinstall_cmds='$RANLIB $lib'
3609
 
  fi
3610
 
  ;;
3611
 
 
3612
 
aix4* | aix5*)
3613
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3614
 
    test "$enable_shared" = yes && enable_static=no
3615
 
  fi
3616
 
    ;;
3617
 
esac
3618
 
AC_MSG_RESULT([$enable_shared])
3619
 
 
3620
 
AC_MSG_CHECKING([whether to build static libraries])
3621
 
# Make sure either enable_shared or enable_static is yes.
3622
 
test "$enable_shared" = yes || enable_static=yes
3623
 
AC_MSG_RESULT([$enable_static])
3624
 
 
3625
 
AC_LIBTOOL_CONFIG($1)
3626
 
 
3627
 
AC_LANG_POP
3628
 
CC="$lt_save_CC"
3629
 
])# AC_LIBTOOL_LANG_C_CONFIG
3630
 
 
3631
 
 
3632
 
# AC_LIBTOOL_LANG_CXX_CONFIG
3633
 
# --------------------------
3634
 
# Ensure that the configuration vars for the C compiler are
3635
 
# suitably defined.  Those variables are subsequently used by
3636
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3637
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3638
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3639
 
[AC_LANG_PUSH(C++)
3640
 
AC_REQUIRE([AC_PROG_CXX])
3641
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3642
 
 
3643
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3644
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3645
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3646
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3647
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3648
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3649
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3650
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3651
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3652
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3653
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3654
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3655
 
_LT_AC_TAGVAR(module_cmds, $1)=
3656
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3657
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3658
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3659
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3660
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3661
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3662
 
 
3663
 
# Dependencies to place before and after the object being linked:
3664
 
_LT_AC_TAGVAR(predep_objects, $1)=
3665
 
_LT_AC_TAGVAR(postdep_objects, $1)=
3666
 
_LT_AC_TAGVAR(predeps, $1)=
3667
 
_LT_AC_TAGVAR(postdeps, $1)=
3668
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3669
 
 
3670
 
# Source file extension for C++ test sources.
3671
 
ac_ext=cpp
3672
 
 
3673
 
# Object file extension for compiled C++ test sources.
3674
 
objext=o
3675
 
_LT_AC_TAGVAR(objext, $1)=$objext
3676
 
 
3677
 
# Code to be used in simple compile tests
3678
 
lt_simple_compile_test_code="int some_variable = 0;\n"
3679
 
 
3680
 
# Code to be used in simple link tests
3681
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3682
 
 
3683
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3684
 
_LT_AC_SYS_COMPILER
3685
 
 
3686
 
# save warnings/boilerplate of simple test code
3687
 
_LT_COMPILER_BOILERPLATE
3688
 
_LT_LINKER_BOILERPLATE
3689
 
 
3690
 
# Allow CC to be a program name with arguments.
3691
 
lt_save_CC=$CC
3692
 
lt_save_LD=$LD
3693
 
lt_save_GCC=$GCC
3694
 
GCC=$GXX
3695
 
lt_save_with_gnu_ld=$with_gnu_ld
3696
 
lt_save_path_LD=$lt_cv_path_LD
3697
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3698
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3699
 
else
3700
 
  $as_unset lt_cv_prog_gnu_ld
3701
 
fi
3702
 
if test -n "${lt_cv_path_LDCXX+set}"; then
3703
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
3704
 
else
3705
 
  $as_unset lt_cv_path_LD
3706
 
fi
3707
 
test -z "${LDCXX+set}" || LD=$LDCXX
3708
 
CC=${CXX-"c++"}
3709
 
compiler=$CC
3710
 
_LT_AC_TAGVAR(compiler, $1)=$CC
3711
 
_LT_CC_BASENAME([$compiler])
3712
 
 
3713
 
# We don't want -fno-exception wen compiling C++ code, so set the
3714
 
# no_builtin_flag separately
3715
 
if test "$GXX" = yes; then
3716
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3717
 
else
3718
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3719
 
fi
3720
 
 
3721
 
if test "$GXX" = yes; then
3722
 
  # Set up default GNU C++ configuration
3723
 
 
3724
 
  AC_PROG_LD
3725
 
 
3726
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3727
 
  # archiving commands below assume that GNU ld is being used.
3728
 
  if test "$with_gnu_ld" = yes; then
3729
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3730
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3731
 
 
3732
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3733
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3734
 
 
3735
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
3736
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3737
 
    #     investigate it a little bit more. (MM)
3738
 
    wlarc='${wl}'
3739
 
 
3740
 
    # ancient GNU ld didn't support --whole-archive et. al.
3741
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3742
 
        grep 'no-whole-archive' > /dev/null; then
3743
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3744
 
    else
3745
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3746
 
    fi
3747
 
  else
3748
 
    with_gnu_ld=no
3749
 
    wlarc=
3750
 
 
3751
 
    # A generic and very simple default shared library creation
3752
 
    # command for GNU C++ for the case where it uses the native
3753
 
    # linker, instead of GNU ld.  If possible, this setting should
3754
 
    # overridden to take advantage of the native linker features on
3755
 
    # the platform it is being used on.
3756
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3757
 
  fi
3758
 
 
3759
 
  # Commands to make compiler produce verbose output that lists
3760
 
  # what "hidden" libraries, object files and flags are used when
3761
 
  # linking a shared library.
3762
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3763
 
 
3764
 
else
3765
 
  GXX=no
3766
 
  with_gnu_ld=no
3767
 
  wlarc=
3768
 
fi
3769
 
 
3770
 
# PORTME: fill in a description of your system's C++ link characteristics
3771
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3772
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3773
 
case $host_os in
3774
 
  aix3*)
3775
 
    # FIXME: insert proper C++ library support
3776
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3777
 
    ;;
3778
 
  aix4* | aix5*)
3779
 
    if test "$host_cpu" = ia64; then
3780
 
      # On IA64, the linker does run time linking by default, so we don't
3781
 
      # have to do anything special.
3782
 
      aix_use_runtimelinking=no
3783
 
      exp_sym_flag='-Bexport'
3784
 
      no_entry_flag=""
3785
 
    else
3786
 
      aix_use_runtimelinking=no
3787
 
 
3788
 
      # Test if we are trying to use run time linking or normal
3789
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3790
 
      # need to do runtime linking.
3791
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3792
 
        for ld_flag in $LDFLAGS; do
3793
 
          case $ld_flag in
3794
 
          *-brtl*)
3795
 
            aix_use_runtimelinking=yes
3796
 
            break
3797
 
            ;;
3798
 
          esac
3799
 
        done
3800
 
        ;;
3801
 
      esac
3802
 
 
3803
 
      exp_sym_flag='-bexport'
3804
 
      no_entry_flag='-bnoentry'
3805
 
    fi
3806
 
 
3807
 
    # When large executables or shared objects are built, AIX ld can
3808
 
    # have problems creating the table of contents.  If linking a library
3809
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3810
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3811
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3812
 
 
3813
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3814
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3815
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3816
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3817
 
 
3818
 
    if test "$GXX" = yes; then
3819
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3820
 
      # We only want to do this on AIX 4.2 and lower, the check
3821
 
      # below for broken collect2 doesn't work under 4.3+
3822
 
        collect2name=`${CC} -print-prog-name=collect2`
3823
 
        if test -f "$collect2name" && \
3824
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3825
 
        then
3826
 
          # We have reworked collect2
3827
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3828
 
        else
3829
 
          # We have old collect2
3830
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3831
 
          # It fails to find uninstalled libraries when the uninstalled
3832
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3833
 
          # to unsupported forces relinking
3834
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3835
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3836
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3837
 
        fi
3838
 
        ;;
3839
 
      esac
3840
 
      shared_flag='-shared'
3841
 
      if test "$aix_use_runtimelinking" = yes; then
3842
 
        shared_flag="$shared_flag "'${wl}-G'
3843
 
      fi
3844
 
    else
3845
 
      # not using gcc
3846
 
      if test "$host_cpu" = ia64; then
3847
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3848
 
        # chokes on -Wl,-G. The following line is correct:
3849
 
        shared_flag='-G'
3850
 
      else
3851
 
        if test "$aix_use_runtimelinking" = yes; then
3852
 
          shared_flag='${wl}-G'
3853
 
        else
3854
 
          shared_flag='${wl}-bM:SRE'
3855
 
        fi
3856
 
      fi
3857
 
    fi
3858
 
 
3859
 
    # It seems that -bexpall does not export symbols beginning with
3860
 
    # underscore (_), so it is better to generate a list of symbols to export.
3861
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3862
 
    if test "$aix_use_runtimelinking" = yes; then
3863
 
      # Warning - without using the other runtime loading flags (-brtl),
3864
 
      # -berok will link without error, but may produce a broken library.
3865
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3866
 
      # Determine the default libpath from the value encoded in an empty executable.
3867
 
      _LT_AC_SYS_LIBPATH_AIX
3868
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3869
 
 
3870
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3871
 
     else
3872
 
      if test "$host_cpu" = ia64; then
3873
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3874
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3875
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3876
 
      else
3877
 
        # Determine the default libpath from the value encoded in an empty executable.
3878
 
        _LT_AC_SYS_LIBPATH_AIX
3879
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3880
 
        # Warning - without using the other run time loading flags,
3881
 
        # -berok will link without error, but may produce a broken library.
3882
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3883
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3884
 
        # Exported symbols can be pulled into shared objects from archives
3885
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3886
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3887
 
        # This is similar to how AIX traditionally builds its shared libraries.
3888
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3889
 
      fi
3890
 
    fi
3891
 
    ;;
3892
 
 
3893
 
  beos*)
3894
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3895
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3896
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3897
 
      # support --undefined.  This deserves some investigation.  FIXME
3898
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3899
 
    else
3900
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3901
 
    fi
3902
 
    ;;
3903
 
 
3904
 
  chorus*)
3905
 
    case $cc_basename in
3906
 
      *)
3907
 
        # FIXME: insert proper C++ library support
3908
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3909
 
        ;;
3910
 
    esac
3911
 
    ;;
3912
 
 
3913
 
  cygwin* | mingw* | pw32*)
3914
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3915
 
    # as there is no search path for DLLs.
3916
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3917
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3918
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3919
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3920
 
 
3921
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3922
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3923
 
      # If the export-symbols file already is a .def file (1st line
3924
 
      # is EXPORTS), use it as is; otherwise, prepend...
3925
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3926
 
        cp $export_symbols $output_objdir/$soname.def;
3927
 
      else
3928
 
        echo EXPORTS > $output_objdir/$soname.def;
3929
 
        cat $export_symbols >> $output_objdir/$soname.def;
3930
 
      fi~
3931
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3932
 
    else
3933
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3934
 
    fi
3935
 
  ;;
3936
 
      darwin* | rhapsody*)
3937
 
        case $host_os in
3938
 
        rhapsody* | darwin1.[[012]])
3939
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3940
 
         ;;
3941
 
       *) # Darwin 1.3 on
3942
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3943
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3944
 
         else
3945
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
3946
 
             10.[[012]])
3947
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3948
 
               ;;
3949
 
             10.*)
3950
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3951
 
               ;;
3952
 
           esac
3953
 
         fi
3954
 
         ;;
3955
 
        esac
3956
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3957
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3958
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3959
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3960
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3961
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3962
 
 
3963
 
    if test "$GXX" = yes ; then
3964
 
      lt_int_apple_cc_single_mod=no
3965
 
      output_verbose_link_cmd='echo'
3966
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3967
 
       lt_int_apple_cc_single_mod=yes
3968
 
      fi
3969
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3970
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3971
 
      else
3972
 
          _LT_AC_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'
3973
 
        fi
3974
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3975
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3976
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3977
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3978
 
          else
3979
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3980
 
          fi
3981
 
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3982
 
      else
3983
 
      case $cc_basename in
3984
 
        xlc*)
3985
 
         output_verbose_link_cmd='echo'
3986
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3987
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3988
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3989
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3990
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3991
 
          ;;
3992
 
       *)
3993
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3994
 
          ;;
3995
 
      esac
3996
 
      fi
3997
 
        ;;
3998
 
 
3999
 
  dgux*)
4000
 
    case $cc_basename in
4001
 
      ec++*)
4002
 
        # FIXME: insert proper C++ library support
4003
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4004
 
        ;;
4005
 
      ghcx*)
4006
 
        # Green Hills C++ Compiler
4007
 
        # FIXME: insert proper C++ library support
4008
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4009
 
        ;;
4010
 
      *)
4011
 
        # FIXME: insert proper C++ library support
4012
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4013
 
        ;;
4014
 
    esac
4015
 
    ;;
4016
 
  freebsd[[12]]*)
4017
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
4018
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4019
 
    ;;
4020
 
  freebsd-elf*)
4021
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4022
 
    ;;
4023
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
4024
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4025
 
    # conventions
4026
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4027
 
    ;;
4028
 
  gnu*)
4029
 
    ;;
4030
 
  hpux9*)
4031
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4032
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4033
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4034
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4035
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4036
 
                                # but as the default
4037
 
                                # location of the library.
4038
 
 
4039
 
    case $cc_basename in
4040
 
    CC*)
4041
 
      # FIXME: insert proper C++ library support
4042
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4043
 
      ;;
4044
 
    aCC*)
4045
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4046
 
      # Commands to make compiler produce verbose output that lists
4047
 
      # what "hidden" libraries, object files and flags are used when
4048
 
      # linking a shared library.
4049
 
      #
4050
 
      # There doesn't appear to be a way to prevent this compiler from
4051
 
      # explicitly linking system object files so we need to strip them
4052
 
      # from the output so that they don't get included in the library
4053
 
      # dependencies.
4054
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4055
 
      ;;
4056
 
    *)
4057
 
      if test "$GXX" = yes; then
4058
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4059
 
      else
4060
 
        # FIXME: insert proper C++ library support
4061
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4062
 
      fi
4063
 
      ;;
4064
 
    esac
4065
 
    ;;
4066
 
  hpux10*|hpux11*)
4067
 
    if test $with_gnu_ld = no; then
4068
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4069
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4070
 
 
4071
 
      case $host_cpu in
4072
 
      hppa*64*|ia64*)
4073
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4074
 
        ;;
4075
 
      *)
4076
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4077
 
        ;;
4078
 
      esac
4079
 
    fi
4080
 
    case $host_cpu in
4081
 
    hppa*64*|ia64*)
4082
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4083
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4084
 
      ;;
4085
 
    *)
4086
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4087
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4088
 
                                              # but as the default
4089
 
                                              # location of the library.
4090
 
      ;;
4091
 
    esac
4092
 
 
4093
 
    case $cc_basename in
4094
 
      CC*)
4095
 
        # FIXME: insert proper C++ library support
4096
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4097
 
        ;;
4098
 
      aCC*)
4099
 
        case $host_cpu in
4100
 
        hppa*64*)
4101
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4102
 
          ;;
4103
 
        ia64*)
4104
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4105
 
          ;;
4106
 
        *)
4107
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4108
 
          ;;
4109
 
        esac
4110
 
        # Commands to make compiler produce verbose output that lists
4111
 
        # what "hidden" libraries, object files and flags are used when
4112
 
        # linking a shared library.
4113
 
        #
4114
 
        # There doesn't appear to be a way to prevent this compiler from
4115
 
        # explicitly linking system object files so we need to strip them
4116
 
        # from the output so that they don't get included in the library
4117
 
        # dependencies.
4118
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4119
 
        ;;
4120
 
      *)
4121
 
        if test "$GXX" = yes; then
4122
 
          if test $with_gnu_ld = no; then
4123
 
            case $host_cpu in
4124
 
            hppa*64*)
4125
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4126
 
              ;;
4127
 
            ia64*)
4128
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4129
 
              ;;
4130
 
            *)
4131
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4132
 
              ;;
4133
 
            esac
4134
 
          fi
4135
 
        else
4136
 
          # FIXME: insert proper C++ library support
4137
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4138
 
        fi
4139
 
        ;;
4140
 
    esac
4141
 
    ;;
4142
 
  interix3*)
4143
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
4144
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4145
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4146
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4147
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4148
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
4149
 
    # default) and relocated if they conflict, which is a slow very memory
4150
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
4151
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4152
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4153
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4154
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4155
 
    ;;
4156
 
  irix5* | irix6*)
4157
 
    case $cc_basename in
4158
 
      CC*)
4159
 
        # SGI C++
4160
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4161
 
 
4162
 
        # Archives containing C++ object files must be created using
4163
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4164
 
        # necessary to make sure instantiated templates are included
4165
 
        # in the archive.
4166
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4167
 
        ;;
4168
 
      *)
4169
 
        if test "$GXX" = yes; then
4170
 
          if test "$with_gnu_ld" = no; then
4171
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4172
 
          else
4173
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4174
 
          fi
4175
 
        fi
4176
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4177
 
        ;;
4178
 
    esac
4179
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4180
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4181
 
    ;;
4182
 
  linux*)
4183
 
    case $cc_basename in
4184
 
      KCC*)
4185
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4186
 
 
4187
 
        # KCC will only create a shared library if the output file
4188
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4189
 
        # to its proper name (with version) after linking.
4190
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4191
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4192
 
        # Commands to make compiler produce verbose output that lists
4193
 
        # what "hidden" libraries, object files and flags are used when
4194
 
        # linking a shared library.
4195
 
        #
4196
 
        # There doesn't appear to be a way to prevent this compiler from
4197
 
        # explicitly linking system object files so we need to strip them
4198
 
        # from the output so that they don't get included in the library
4199
 
        # dependencies.
4200
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4201
 
 
4202
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4203
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4204
 
 
4205
 
        # Archives containing C++ object files must be created using
4206
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4207
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4208
 
        ;;
4209
 
      icpc*)
4210
 
        # Intel C++
4211
 
        with_gnu_ld=yes
4212
 
        # version 8.0 and above of icpc choke on multiply defined symbols
4213
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
4214
 
        # earlier do not add the objects themselves.
4215
 
        case `$CC -V 2>&1` in
4216
 
        *"Version 7."*)
4217
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4218
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4219
 
          ;;
4220
 
        *)  # Version 8.0 or newer
4221
 
          tmp_idyn=
4222
 
          case $host_cpu in
4223
 
            ia64*) tmp_idyn=' -i_dynamic';;
4224
 
          esac
4225
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4226
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4227
 
          ;;
4228
 
        esac
4229
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4230
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4231
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4232
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4233
 
        ;;
4234
 
      pgCC*)
4235
 
        # Portland Group C++ compiler
4236
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4237
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4238
 
 
4239
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4240
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4241
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4242
 
        ;;
4243
 
      cxx*)
4244
 
        # Compaq C++
4245
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4246
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4247
 
 
4248
 
        runpath_var=LD_RUN_PATH
4249
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4250
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4251
 
 
4252
 
        # Commands to make compiler produce verbose output that lists
4253
 
        # what "hidden" libraries, object files and flags are used when
4254
 
        # linking a shared library.
4255
 
        #
4256
 
        # There doesn't appear to be a way to prevent this compiler from
4257
 
        # explicitly linking system object files so we need to strip them
4258
 
        # from the output so that they don't get included in the library
4259
 
        # dependencies.
4260
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4261
 
        ;;
4262
 
    esac
4263
 
    ;;
4264
 
  lynxos*)
4265
 
    # FIXME: insert proper C++ library support
4266
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4267
 
    ;;
4268
 
  m88k*)
4269
 
    # FIXME: insert proper C++ library support
4270
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4271
 
    ;;
4272
 
  mvs*)
4273
 
    case $cc_basename in
4274
 
      cxx*)
4275
 
        # FIXME: insert proper C++ library support
4276
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4277
 
        ;;
4278
 
      *)
4279
 
        # FIXME: insert proper C++ library support
4280
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4281
 
        ;;
4282
 
    esac
4283
 
    ;;
4284
 
  netbsd*)
4285
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4286
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4287
 
      wlarc=
4288
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4289
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4290
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4291
 
    fi
4292
 
    # Workaround some broken pre-1.5 toolchains
4293
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4294
 
    ;;
4295
 
  openbsd2*)
4296
 
    # C++ shared libraries are fairly broken
4297
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4298
 
    ;;
4299
 
  openbsd*)
4300
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4301
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4302
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4303
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4304
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4305
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4306
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4307
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4308
 
    fi
4309
 
    output_verbose_link_cmd='echo'
4310
 
    ;;
4311
 
  osf3*)
4312
 
    case $cc_basename in
4313
 
      KCC*)
4314
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4315
 
 
4316
 
        # KCC will only create a shared library if the output file
4317
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4318
 
        # to its proper name (with version) after linking.
4319
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4320
 
 
4321
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4322
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4323
 
 
4324
 
        # Archives containing C++ object files must be created using
4325
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4326
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4327
 
 
4328
 
        ;;
4329
 
      RCC*)
4330
 
        # Rational C++ 2.4.1
4331
 
        # FIXME: insert proper C++ library support
4332
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4333
 
        ;;
4334
 
      cxx*)
4335
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4336
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4337
 
 
4338
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4339
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4340
 
 
4341
 
        # Commands to make compiler produce verbose output that lists
4342
 
        # what "hidden" libraries, object files and flags are used when
4343
 
        # linking a shared library.
4344
 
        #
4345
 
        # There doesn't appear to be a way to prevent this compiler from
4346
 
        # explicitly linking system object files so we need to strip them
4347
 
        # from the output so that they don't get included in the library
4348
 
        # dependencies.
4349
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4350
 
        ;;
4351
 
      *)
4352
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4353
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4354
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4355
 
 
4356
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4357
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4358
 
 
4359
 
          # Commands to make compiler produce verbose output that lists
4360
 
          # what "hidden" libraries, object files and flags are used when
4361
 
          # linking a shared library.
4362
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4363
 
 
4364
 
        else
4365
 
          # FIXME: insert proper C++ library support
4366
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4367
 
        fi
4368
 
        ;;
4369
 
    esac
4370
 
    ;;
4371
 
  osf4* | osf5*)
4372
 
    case $cc_basename in
4373
 
      KCC*)
4374
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4375
 
 
4376
 
        # KCC will only create a shared library if the output file
4377
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4378
 
        # to its proper name (with version) after linking.
4379
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4380
 
 
4381
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4382
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4383
 
 
4384
 
        # Archives containing C++ object files must be created using
4385
 
        # the KAI C++ compiler.
4386
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4387
 
        ;;
4388
 
      RCC*)
4389
 
        # Rational C++ 2.4.1
4390
 
        # FIXME: insert proper C++ library support
4391
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4392
 
        ;;
4393
 
      cxx*)
4394
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4395
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4396
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4397
 
          echo "-hidden">> $lib.exp~
4398
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4399
 
          $rm $lib.exp'
4400
 
 
4401
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4402
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4403
 
 
4404
 
        # Commands to make compiler produce verbose output that lists
4405
 
        # what "hidden" libraries, object files and flags are used when
4406
 
        # linking a shared library.
4407
 
        #
4408
 
        # There doesn't appear to be a way to prevent this compiler from
4409
 
        # explicitly linking system object files so we need to strip them
4410
 
        # from the output so that they don't get included in the library
4411
 
        # dependencies.
4412
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4413
 
        ;;
4414
 
      *)
4415
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4416
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4417
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4418
 
 
4419
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4420
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4421
 
 
4422
 
          # Commands to make compiler produce verbose output that lists
4423
 
          # what "hidden" libraries, object files and flags are used when
4424
 
          # linking a shared library.
4425
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4426
 
 
4427
 
        else
4428
 
          # FIXME: insert proper C++ library support
4429
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4430
 
        fi
4431
 
        ;;
4432
 
    esac
4433
 
    ;;
4434
 
  psos*)
4435
 
    # FIXME: insert proper C++ library support
4436
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4437
 
    ;;
4438
 
  sunos4*)
4439
 
    case $cc_basename in
4440
 
      CC*)
4441
 
        # Sun C++ 4.x
4442
 
        # FIXME: insert proper C++ library support
4443
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4444
 
        ;;
4445
 
      lcc*)
4446
 
        # Lucid
4447
 
        # FIXME: insert proper C++ library support
4448
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4449
 
        ;;
4450
 
      *)
4451
 
        # FIXME: insert proper C++ library support
4452
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4453
 
        ;;
4454
 
    esac
4455
 
    ;;
4456
 
  solaris*)
4457
 
    case $cc_basename in
4458
 
      CC*)
4459
 
        # Sun C++ 4.2, 5.x and Centerline C++
4460
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4461
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4462
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4463
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4464
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4465
 
 
4466
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4467
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4468
 
        case $host_os in
4469
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4470
 
          *)
4471
 
            # The C++ compiler is used as linker so we must use $wl
4472
 
            # flag to pass the commands to the underlying system
4473
 
            # linker. We must also pass each convience library through
4474
 
            # to the system linker between allextract/defaultextract.
4475
 
            # The C++ compiler will combine linker options so we
4476
 
            # cannot just pass the convience library names through
4477
 
            # without $wl.
4478
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4479
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4480
 
            ;;
4481
 
        esac
4482
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4483
 
 
4484
 
        output_verbose_link_cmd='echo'
4485
 
 
4486
 
        # Archives containing C++ object files must be created using
4487
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4488
 
        # necessary to make sure instantiated templates are included
4489
 
        # in the archive.
4490
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4491
 
        ;;
4492
 
      gcx*)
4493
 
        # Green Hills C++ Compiler
4494
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4495
 
 
4496
 
        # The C++ compiler must be used to create the archive.
4497
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4498
 
        ;;
4499
 
      *)
4500
 
        # GNU C++ compiler with Solaris linker
4501
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4502
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4503
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
4504
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4505
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4506
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4507
 
 
4508
 
            # Commands to make compiler produce verbose output that lists
4509
 
            # what "hidden" libraries, object files and flags are used when
4510
 
            # linking a shared library.
4511
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4512
 
          else
4513
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
4514
 
            # platform.
4515
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4516
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4517
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4518
 
 
4519
 
            # Commands to make compiler produce verbose output that lists
4520
 
            # what "hidden" libraries, object files and flags are used when
4521
 
            # linking a shared library.
4522
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4523
 
          fi
4524
 
 
4525
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4526
 
        fi
4527
 
        ;;
4528
 
    esac
4529
 
    ;;
4530
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4531
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4532
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4533
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4534
 
    runpath_var='LD_RUN_PATH'
4535
 
 
4536
 
    case $cc_basename in
4537
 
      CC*)
4538
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4539
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4540
 
        ;;
4541
 
      *)
4542
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4543
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4544
 
        ;;
4545
 
    esac
4546
 
    ;;
4547
 
  sysv5* | sco3.2v5* | sco5v6*)
4548
 
    # Note: We can NOT use -z defs as we might desire, because we do not
4549
 
    # link with -lc, and that would cause any symbols used from libc to
4550
 
    # always be unresolved, which means just about no library would
4551
 
    # ever link correctly.  If we're not using GNU ld we use -z text
4552
 
    # though, which does catch some bad symbols but isn't as heavy-handed
4553
 
    # as -z defs.
4554
 
    # For security reasons, it is highly recommended that you always
4555
 
    # use absolute paths for naming shared libraries, and exclude the
4556
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
4557
 
    # requires that you compile everything twice, which is a pain.
4558
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
4559
 
    # non-empty value in the environment.  Most likely only useful for
4560
 
    # creating official distributions of packages.
4561
 
    # This is a hack until libtool officially supports absolute path
4562
 
    # names for shared libraries.
4563
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4564
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4565
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4566
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4567
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4568
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4569
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4570
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4571
 
    runpath_var='LD_RUN_PATH'
4572
 
 
4573
 
    case $cc_basename in
4574
 
      CC*)
4575
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4576
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4577
 
        ;;
4578
 
      *)
4579
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4580
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4581
 
        ;;
4582
 
    esac
4583
 
    ;;
4584
 
  tandem*)
4585
 
    case $cc_basename in
4586
 
      NCC*)
4587
 
        # NonStop-UX NCC 3.20
4588
 
        # FIXME: insert proper C++ library support
4589
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4590
 
        ;;
4591
 
      *)
4592
 
        # FIXME: insert proper C++ library support
4593
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4594
 
        ;;
4595
 
    esac
4596
 
    ;;
4597
 
  vxworks*)
4598
 
    # FIXME: insert proper C++ library support
4599
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4600
 
    ;;
4601
 
  *)
4602
 
    # FIXME: insert proper C++ library support
4603
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4604
 
    ;;
4605
 
esac
4606
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4607
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4608
 
 
4609
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4610
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4611
 
 
4612
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
4613
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4614
 
AC_LIBTOOL_PROG_CC_C_O($1)
4615
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4616
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4617
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4618
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4619
 
 
4620
 
AC_LIBTOOL_CONFIG($1)
4621
 
 
4622
 
AC_LANG_POP
4623
 
CC=$lt_save_CC
4624
 
LDCXX=$LD
4625
 
LD=$lt_save_LD
4626
 
GCC=$lt_save_GCC
4627
 
with_gnu_ldcxx=$with_gnu_ld
4628
 
with_gnu_ld=$lt_save_with_gnu_ld
4629
 
lt_cv_path_LDCXX=$lt_cv_path_LD
4630
 
lt_cv_path_LD=$lt_save_path_LD
4631
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4632
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4633
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
4634
 
 
4635
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4636
 
# ------------------------------------
4637
 
# Figure out "hidden" library dependencies from verbose
4638
 
# compiler output when linking a shared library.
4639
 
# Parse the compiler output and extract the necessary
4640
 
# objects, libraries and library flags.
4641
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4642
 
dnl we can't use the lt_simple_compile_test_code here,
4643
 
dnl because it contains code intended for an executable,
4644
 
dnl not a library.  It's possible we should let each
4645
 
dnl tag define a new lt_????_link_test_code variable,
4646
 
dnl but it's only used here...
4647
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4648
 
int a;
4649
 
void foo (void) { a = 0; }
4650
 
EOF
4651
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4652
 
class Foo
4653
 
{
4654
 
public:
4655
 
  Foo (void) { a = 0; }
4656
 
private:
4657
 
  int a;
4658
 
};
4659
 
EOF
4660
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4661
 
      subroutine foo
4662
 
      implicit none
4663
 
      integer*4 a
4664
 
      a=0
4665
 
      return
4666
 
      end
4667
 
EOF
4668
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4669
 
public class foo {
4670
 
  private int a;
4671
 
  public void bar (void) {
4672
 
    a = 0;
4673
 
  }
4674
 
};
4675
 
EOF
4676
 
])
4677
 
dnl Parse the compiler output and extract the necessary
4678
 
dnl objects, libraries and library flags.
4679
 
if AC_TRY_EVAL(ac_compile); then
4680
 
  # Parse the compiler output and extract the necessary
4681
 
  # objects, libraries and library flags.
4682
 
 
4683
 
  # Sentinel used to keep track of whether or not we are before
4684
 
  # the conftest object file.
4685
 
  pre_test_object_deps_done=no
4686
 
 
4687
 
  # The `*' in the case matches for architectures that use `case' in
4688
 
  # $output_verbose_cmd can trigger glob expansion during the loop
4689
 
  # eval without this substitution.
4690
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4691
 
 
4692
 
  for p in `eval $output_verbose_link_cmd`; do
4693
 
    case $p in
4694
 
 
4695
 
    -L* | -R* | -l*)
4696
 
       # Some compilers place space between "-{L,R}" and the path.
4697
 
       # Remove the space.
4698
 
       if test $p = "-L" \
4699
 
          || test $p = "-R"; then
4700
 
         prev=$p
4701
 
         continue
4702
 
       else
4703
 
         prev=
4704
 
       fi
4705
 
 
4706
 
       if test "$pre_test_object_deps_done" = no; then
4707
 
         case $p in
4708
 
         -L* | -R*)
4709
 
           # Internal compiler library paths should come after those
4710
 
           # provided the user.  The postdeps already come after the
4711
 
           # user supplied libs so there is no need to process them.
4712
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4713
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4714
 
           else
4715
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4716
 
           fi
4717
 
           ;;
4718
 
         # The "-l" case would never come before the object being
4719
 
         # linked, so don't bother handling this case.
4720
 
         esac
4721
 
       else
4722
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4723
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4724
 
         else
4725
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4726
 
         fi
4727
 
       fi
4728
 
       ;;
4729
 
 
4730
 
    *.$objext)
4731
 
       # This assumes that the test object file only shows up
4732
 
       # once in the compiler output.
4733
 
       if test "$p" = "conftest.$objext"; then
4734
 
         pre_test_object_deps_done=yes
4735
 
         continue
4736
 
       fi
4737
 
 
4738
 
       if test "$pre_test_object_deps_done" = no; then
4739
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4740
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
4741
 
         else
4742
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4743
 
         fi
4744
 
       else
4745
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4746
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4747
 
         else
4748
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4749
 
         fi
4750
 
       fi
4751
 
       ;;
4752
 
 
4753
 
    *) ;; # Ignore the rest.
4754
 
 
4755
 
    esac
4756
 
  done
4757
 
 
4758
 
  # Clean up.
4759
 
  rm -f a.out a.exe
4760
 
else
4761
 
  echo "libtool.m4: error: problem compiling $1 test program"
4762
 
fi
4763
 
 
4764
 
$rm -f confest.$objext
4765
 
 
4766
 
# PORTME: override above test on systems where it is broken
4767
 
ifelse([$1],[CXX],
4768
 
[case $host_os in
4769
 
interix3*)
4770
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4771
 
  # hack all around it, let's just trust "g++" to DTRT.
4772
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4773
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4774
 
  _LT_AC_TAGVAR(postdeps,$1)=
4775
 
  ;;
4776
 
 
4777
 
solaris*)
4778
 
  case $cc_basename in
4779
 
  CC*)
4780
 
    # Adding this requires a known-good setup of shared libraries for
4781
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4782
 
    # archive will be linked into the output, leading to subtle bugs.
4783
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4784
 
    ;;
4785
 
  esac
4786
 
  ;;
4787
 
esac
4788
 
])
4789
 
 
4790
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4791
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4792
 
esac
4793
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4794
 
 
4795
 
# AC_LIBTOOL_LANG_F77_CONFIG
4796
 
# --------------------------
4797
 
# Ensure that the configuration vars for the C compiler are
4798
 
# suitably defined.  Those variables are subsequently used by
4799
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4800
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4801
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4802
 
[AC_REQUIRE([AC_PROG_F77])
4803
 
AC_LANG_PUSH(Fortran 77)
4804
 
 
4805
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4806
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4807
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4808
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4809
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4810
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4811
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4812
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4813
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4814
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4815
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4816
 
_LT_AC_TAGVAR(module_cmds, $1)=
4817
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4818
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4819
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4820
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4821
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4822
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4823
 
 
4824
 
# Source file extension for f77 test sources.
4825
 
ac_ext=f
4826
 
 
4827
 
# Object file extension for compiled f77 test sources.
4828
 
objext=o
4829
 
_LT_AC_TAGVAR(objext, $1)=$objext
4830
 
 
4831
 
# Code to be used in simple compile tests
4832
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
4833
 
 
4834
 
# Code to be used in simple link tests
4835
 
lt_simple_link_test_code="      program t\n      end\n"
4836
 
 
4837
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4838
 
_LT_AC_SYS_COMPILER
4839
 
 
4840
 
# save warnings/boilerplate of simple test code
4841
 
_LT_COMPILER_BOILERPLATE
4842
 
_LT_LINKER_BOILERPLATE
4843
 
 
4844
 
# Allow CC to be a program name with arguments.
4845
 
lt_save_CC="$CC"
4846
 
CC=${F77-"f77"}
4847
 
compiler=$CC
4848
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4849
 
_LT_CC_BASENAME([$compiler])
4850
 
 
4851
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4852
 
AC_MSG_RESULT([$can_build_shared])
4853
 
 
4854
 
AC_MSG_CHECKING([whether to build shared libraries])
4855
 
test "$can_build_shared" = "no" && enable_shared=no
4856
 
 
4857
 
# On AIX, shared libraries and static libraries use the same namespace, and
4858
 
# are all built from PIC.
4859
 
case $host_os in
4860
 
aix3*)
4861
 
  test "$enable_shared" = yes && enable_static=no
4862
 
  if test -n "$RANLIB"; then
4863
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4864
 
    postinstall_cmds='$RANLIB $lib'
4865
 
  fi
4866
 
  ;;
4867
 
aix4* | aix5*)
4868
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4869
 
    test "$enable_shared" = yes && enable_static=no
4870
 
  fi
4871
 
  ;;
4872
 
esac
4873
 
AC_MSG_RESULT([$enable_shared])
4874
 
 
4875
 
AC_MSG_CHECKING([whether to build static libraries])
4876
 
# Make sure either enable_shared or enable_static is yes.
4877
 
test "$enable_shared" = yes || enable_static=yes
4878
 
AC_MSG_RESULT([$enable_static])
4879
 
 
4880
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4881
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4882
 
 
4883
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4884
 
AC_LIBTOOL_PROG_CC_C_O($1)
4885
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4886
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4887
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4888
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4889
 
 
4890
 
AC_LIBTOOL_CONFIG($1)
4891
 
 
4892
 
AC_LANG_POP
4893
 
CC="$lt_save_CC"
4894
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4895
 
 
4896
 
 
4897
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4898
 
# --------------------------
4899
 
# Ensure that the configuration vars for the C compiler are
4900
 
# suitably defined.  Those variables are subsequently used by
4901
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4902
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4903
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4904
 
[AC_LANG_SAVE
4905
 
 
4906
 
# Source file extension for Java test sources.
4907
 
ac_ext=java
4908
 
 
4909
 
# Object file extension for compiled Java test sources.
4910
 
objext=o
4911
 
_LT_AC_TAGVAR(objext, $1)=$objext
4912
 
 
4913
 
# Code to be used in simple compile tests
4914
 
lt_simple_compile_test_code="class foo {}\n"
4915
 
 
4916
 
# Code to be used in simple link tests
4917
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4918
 
 
4919
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4920
 
_LT_AC_SYS_COMPILER
4921
 
 
4922
 
# save warnings/boilerplate of simple test code
4923
 
_LT_COMPILER_BOILERPLATE
4924
 
_LT_LINKER_BOILERPLATE
4925
 
 
4926
 
# Allow CC to be a program name with arguments.
4927
 
lt_save_CC="$CC"
4928
 
CC=${GCJ-"gcj"}
4929
 
compiler=$CC
4930
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4931
 
_LT_CC_BASENAME([$compiler])
4932
 
 
4933
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4934
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4935
 
 
4936
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4937
 
 
4938
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4939
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4940
 
AC_LIBTOOL_PROG_CC_C_O($1)
4941
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4942
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4943
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4944
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4945
 
 
4946
 
AC_LIBTOOL_CONFIG($1)
4947
 
 
4948
 
AC_LANG_RESTORE
4949
 
CC="$lt_save_CC"
4950
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4951
 
 
4952
 
 
4953
 
# AC_LIBTOOL_LANG_RC_CONFIG
4954
 
# -------------------------
4955
 
# Ensure that the configuration vars for the Windows resource compiler are
4956
 
# suitably defined.  Those variables are subsequently used by
4957
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4958
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4959
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4960
 
[AC_LANG_SAVE
4961
 
 
4962
 
# Source file extension for RC test sources.
4963
 
ac_ext=rc
4964
 
 
4965
 
# Object file extension for compiled RC test sources.
4966
 
objext=o
4967
 
_LT_AC_TAGVAR(objext, $1)=$objext
4968
 
 
4969
 
# Code to be used in simple compile tests
4970
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4971
 
 
4972
 
# Code to be used in simple link tests
4973
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4974
 
 
4975
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4976
 
_LT_AC_SYS_COMPILER
4977
 
 
4978
 
# save warnings/boilerplate of simple test code
4979
 
_LT_COMPILER_BOILERPLATE
4980
 
_LT_LINKER_BOILERPLATE
4981
 
 
4982
 
# Allow CC to be a program name with arguments.
4983
 
lt_save_CC="$CC"
4984
 
CC=${RC-"windres"}
4985
 
compiler=$CC
4986
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4987
 
_LT_CC_BASENAME([$compiler])
4988
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4989
 
 
4990
 
AC_LIBTOOL_CONFIG($1)
4991
 
 
4992
 
AC_LANG_RESTORE
4993
 
CC="$lt_save_CC"
4994
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4995
 
 
4996
 
 
4997
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4998
 
# ----------------------------
4999
 
# If TAGNAME is not passed, then create an initial libtool script
5000
 
# with a default configuration from the untagged config vars.  Otherwise
5001
 
# add code to config.status for appending the configuration named by
5002
 
# TAGNAME from the matching tagged config vars.
5003
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
5004
 
[# The else clause should only fire when bootstrapping the
5005
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
5006
 
# with your package, and you will get complaints that there are
5007
 
# no rules to generate ltmain.sh.
5008
 
if test -f "$ltmain"; then
5009
 
  # See if we are running on zsh, and set the options which allow our commands through
5010
 
  # without removal of \ escapes.
5011
 
  if test -n "${ZSH_VERSION+set}" ; then
5012
 
    setopt NO_GLOB_SUBST
5013
 
  fi
5014
 
  # Now quote all the things that may contain metacharacters while being
5015
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
5016
 
  # variables and quote the copies for generation of the libtool script.
5017
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5018
 
    SED SHELL STRIP \
5019
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5020
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5021
 
    deplibs_check_method reload_flag reload_cmds need_locks \
5022
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5023
 
    lt_cv_sys_global_symbol_to_c_name_address \
5024
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5025
 
    old_postinstall_cmds old_postuninstall_cmds \
5026
 
    _LT_AC_TAGVAR(compiler, $1) \
5027
 
    _LT_AC_TAGVAR(CC, $1) \
5028
 
    _LT_AC_TAGVAR(LD, $1) \
5029
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5030
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5031
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5032
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5033
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5034
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5035
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5036
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5037
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
5038
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5039
 
    _LT_AC_TAGVAR(predep_objects, $1) \
5040
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
5041
 
    _LT_AC_TAGVAR(predeps, $1) \
5042
 
    _LT_AC_TAGVAR(postdeps, $1) \
5043
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5044
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
5045
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5046
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
5047
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5048
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5049
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5050
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
5051
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5052
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5053
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5054
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5055
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
5056
 
    _LT_AC_TAGVAR(module_cmds, $1) \
5057
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5058
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5059
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5060
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
5061
 
 
5062
 
    case $var in
5063
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5064
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5065
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
5066
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5067
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
5068
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5069
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5070
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5071
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
5072
 
    postinstall_cmds | postuninstall_cmds | \
5073
 
    old_postinstall_cmds | old_postuninstall_cmds | \
5074
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5075
 
      # Double-quote double-evaled strings.
5076
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5077
 
      ;;
5078
 
    *)
5079
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5080
 
      ;;
5081
 
    esac
5082
 
  done
5083
 
 
5084
 
  case $lt_echo in
5085
 
  *'\[$]0 --fallback-echo"')
5086
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5087
 
    ;;
5088
 
  esac
5089
 
 
5090
 
ifelse([$1], [],
5091
 
  [cfgfile="${ofile}T"
5092
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5093
 
  $rm -f "$cfgfile"
5094
 
  AC_MSG_NOTICE([creating $ofile])],
5095
 
  [cfgfile="$ofile"])
5096
 
 
5097
 
  cat <<__EOF__ >> "$cfgfile"
5098
 
ifelse([$1], [],
5099
 
[#! $SHELL
5100
 
 
5101
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5102
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5103
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5104
 
#
5105
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5106
 
# Free Software Foundation, Inc.
5107
 
#
5108
 
# This file is part of GNU Libtool:
5109
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5110
 
#
5111
 
# This program is free software; you can redistribute it and/or modify
5112
 
# it under the terms of the GNU General Public License as published by
5113
 
# the Free Software Foundation; either version 2 of the License, or
5114
 
# (at your option) any later version.
5115
 
#
5116
 
# This program is distributed in the hope that it will be useful, but
5117
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
5118
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5119
 
# General Public License for more details.
5120
 
#
5121
 
# You should have received a copy of the GNU General Public License
5122
 
# along with this program; if not, write to the Free Software
5123
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5124
 
#
5125
 
# As a special exception to the GNU General Public License, if you
5126
 
# distribute this file as part of a program that contains a
5127
 
# configuration script generated by Autoconf, you may include it under
5128
 
# the same distribution terms that you use for the rest of that program.
5129
 
 
5130
 
# A sed program that does not truncate output.
5131
 
SED=$lt_SED
5132
 
 
5133
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5134
 
Xsed="$SED -e 1s/^X//"
5135
 
 
5136
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
5137
 
# if CDPATH is set.
5138
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5139
 
 
5140
 
# The names of the tagged configurations supported by this script.
5141
 
available_tags=
5142
 
 
5143
 
# ### BEGIN LIBTOOL CONFIG],
5144
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5145
 
 
5146
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5147
 
 
5148
 
# Shell to use when invoking shell scripts.
5149
 
SHELL=$lt_SHELL
5150
 
 
5151
 
# Whether or not to build shared libraries.
5152
 
build_libtool_libs=$enable_shared
5153
 
 
5154
 
# Whether or not to build static libraries.
5155
 
build_old_libs=$enable_static
5156
 
 
5157
 
# Whether or not to add -lc for building shared libraries.
5158
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5159
 
 
5160
 
# Whether or not to disallow shared libs when runtime libs are static
5161
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5162
 
 
5163
 
# Whether or not to optimize for fast installation.
5164
 
fast_install=$enable_fast_install
5165
 
 
5166
 
# The host system.
5167
 
host_alias=$host_alias
5168
 
host=$host
5169
 
host_os=$host_os
5170
 
 
5171
 
# The build system.
5172
 
build_alias=$build_alias
5173
 
build=$build
5174
 
build_os=$build_os
5175
 
 
5176
 
# An echo program that does not interpret backslashes.
5177
 
echo=$lt_echo
5178
 
 
5179
 
# The archiver.
5180
 
AR=$lt_AR
5181
 
AR_FLAGS=$lt_AR_FLAGS
5182
 
 
5183
 
# A C compiler.
5184
 
LTCC=$lt_LTCC
5185
 
 
5186
 
# LTCC compiler flags.
5187
 
LTCFLAGS=$lt_LTCFLAGS
5188
 
 
5189
 
# A language-specific compiler.
5190
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5191
 
 
5192
 
# Is the compiler the GNU C compiler?
5193
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5194
 
 
5195
 
# An ERE matcher.
5196
 
EGREP=$lt_EGREP
5197
 
 
5198
 
# The linker used to build libraries.
5199
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5200
 
 
5201
 
# Whether we need hard or soft links.
5202
 
LN_S=$lt_LN_S
5203
 
 
5204
 
# A BSD-compatible nm program.
5205
 
NM=$lt_NM
5206
 
 
5207
 
# A symbol stripping program
5208
 
STRIP=$lt_STRIP
5209
 
 
5210
 
# Used to examine libraries when file_magic_cmd begins "file"
5211
 
MAGIC_CMD=$MAGIC_CMD
5212
 
 
5213
 
# Used on cygwin: DLL creation program.
5214
 
DLLTOOL="$DLLTOOL"
5215
 
 
5216
 
# Used on cygwin: object dumper.
5217
 
OBJDUMP="$OBJDUMP"
5218
 
 
5219
 
# Used on cygwin: assembler.
5220
 
AS="$AS"
5221
 
 
5222
 
# The name of the directory that contains temporary libtool files.
5223
 
objdir=$objdir
5224
 
 
5225
 
# How to create reloadable object files.
5226
 
reload_flag=$lt_reload_flag
5227
 
reload_cmds=$lt_reload_cmds
5228
 
 
5229
 
# How to pass a linker flag through the compiler.
5230
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5231
 
 
5232
 
# Object file suffix (normally "o").
5233
 
objext="$ac_objext"
5234
 
 
5235
 
# Old archive suffix (normally "a").
5236
 
libext="$libext"
5237
 
 
5238
 
# Shared library suffix (normally ".so").
5239
 
shrext_cmds='$shrext_cmds'
5240
 
 
5241
 
# Executable file suffix (normally "").
5242
 
exeext="$exeext"
5243
 
 
5244
 
# Additional compiler flags for building library objects.
5245
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5246
 
pic_mode=$pic_mode
5247
 
 
5248
 
# What is the maximum length of a command?
5249
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5250
 
 
5251
 
# Does compiler simultaneously support -c and -o options?
5252
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5253
 
 
5254
 
# Must we lock files when doing compilation?
5255
 
need_locks=$lt_need_locks
5256
 
 
5257
 
# Do we need the lib prefix for modules?
5258
 
need_lib_prefix=$need_lib_prefix
5259
 
 
5260
 
# Do we need a version for libraries?
5261
 
need_version=$need_version
5262
 
 
5263
 
# Whether dlopen is supported.
5264
 
dlopen_support=$enable_dlopen
5265
 
 
5266
 
# Whether dlopen of programs is supported.
5267
 
dlopen_self=$enable_dlopen_self
5268
 
 
5269
 
# Whether dlopen of statically linked programs is supported.
5270
 
dlopen_self_static=$enable_dlopen_self_static
5271
 
 
5272
 
# Compiler flag to prevent dynamic linking.
5273
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5274
 
 
5275
 
# Compiler flag to turn off builtin functions.
5276
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5277
 
 
5278
 
# Compiler flag to allow reflexive dlopens.
5279
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5280
 
 
5281
 
# Compiler flag to generate shared objects directly from archives.
5282
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5283
 
 
5284
 
# Compiler flag to generate thread-safe objects.
5285
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5286
 
 
5287
 
# Library versioning type.
5288
 
version_type=$version_type
5289
 
 
5290
 
# Format of library name prefix.
5291
 
libname_spec=$lt_libname_spec
5292
 
 
5293
 
# List of archive names.  First name is the real one, the rest are links.
5294
 
# The last name is the one that the linker finds with -lNAME.
5295
 
library_names_spec=$lt_library_names_spec
5296
 
 
5297
 
# The coded name of the library, if different from the real name.
5298
 
soname_spec=$lt_soname_spec
5299
 
 
5300
 
# Commands used to build and install an old-style archive.
5301
 
RANLIB=$lt_RANLIB
5302
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5303
 
old_postinstall_cmds=$lt_old_postinstall_cmds
5304
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5305
 
 
5306
 
# Create an old-style archive from a shared archive.
5307
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5308
 
 
5309
 
# Create a temporary old-style archive to link instead of a shared archive.
5310
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5311
 
 
5312
 
# Commands used to build and install a shared archive.
5313
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5314
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5315
 
postinstall_cmds=$lt_postinstall_cmds
5316
 
postuninstall_cmds=$lt_postuninstall_cmds
5317
 
 
5318
 
# Commands used to build a loadable module (assumed same as above if empty)
5319
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5320
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5321
 
 
5322
 
# Commands to strip libraries.
5323
 
old_striplib=$lt_old_striplib
5324
 
striplib=$lt_striplib
5325
 
 
5326
 
# Dependencies to place before the objects being linked to create a
5327
 
# shared library.
5328
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5329
 
 
5330
 
# Dependencies to place after the objects being linked to create a
5331
 
# shared library.
5332
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5333
 
 
5334
 
# Dependencies to place before the objects being linked to create a
5335
 
# shared library.
5336
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5337
 
 
5338
 
# Dependencies to place after the objects being linked to create a
5339
 
# shared library.
5340
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5341
 
 
5342
 
# The library search path used internally by the compiler when linking
5343
 
# a shared library.
5344
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5345
 
 
5346
 
# Method to check whether dependent libraries are shared objects.
5347
 
deplibs_check_method=$lt_deplibs_check_method
5348
 
 
5349
 
# Command to use when deplibs_check_method == file_magic.
5350
 
file_magic_cmd=$lt_file_magic_cmd
5351
 
 
5352
 
# Flag that allows shared libraries with undefined symbols to be built.
5353
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5354
 
 
5355
 
# Flag that forces no undefined symbols.
5356
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5357
 
 
5358
 
# Commands used to finish a libtool library installation in a directory.
5359
 
finish_cmds=$lt_finish_cmds
5360
 
 
5361
 
# Same as above, but a single script fragment to be evaled but not shown.
5362
 
finish_eval=$lt_finish_eval
5363
 
 
5364
 
# Take the output of nm and produce a listing of raw symbols and C names.
5365
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5366
 
 
5367
 
# Transform the output of nm in a proper C declaration
5368
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5369
 
 
5370
 
# Transform the output of nm in a C name address pair
5371
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5372
 
 
5373
 
# This is the shared library runtime path variable.
5374
 
runpath_var=$runpath_var
5375
 
 
5376
 
# This is the shared library path variable.
5377
 
shlibpath_var=$shlibpath_var
5378
 
 
5379
 
# Is shlibpath searched before the hard-coded library search path?
5380
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5381
 
 
5382
 
# How to hardcode a shared library path into an executable.
5383
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5384
 
 
5385
 
# Whether we should hardcode library paths into libraries.
5386
 
hardcode_into_libs=$hardcode_into_libs
5387
 
 
5388
 
# Flag to hardcode \$libdir into a binary during linking.
5389
 
# This must work even if \$libdir does not exist.
5390
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5391
 
 
5392
 
# If ld is used when linking, flag to hardcode \$libdir into
5393
 
# a binary during linking. This must work even if \$libdir does
5394
 
# not exist.
5395
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5396
 
 
5397
 
# Whether we need a single -rpath flag with a separated argument.
5398
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5399
 
 
5400
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5401
 
# resulting binary.
5402
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5403
 
 
5404
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5405
 
# resulting binary.
5406
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5407
 
 
5408
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5409
 
# the resulting binary.
5410
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5411
 
 
5412
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
5413
 
# and all subsequent libraries and executables linked against it.
5414
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5415
 
 
5416
 
# Variables whose values should be saved in libtool wrapper scripts and
5417
 
# restored at relink time.
5418
 
variables_saved_for_relink="$variables_saved_for_relink"
5419
 
 
5420
 
# Whether libtool must link a program against all its dependency libraries.
5421
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5422
 
 
5423
 
# Compile-time system search path for libraries
5424
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5425
 
 
5426
 
# Run-time system search path for libraries
5427
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5428
 
 
5429
 
# Fix the shell variable \$srcfile for the compiler.
5430
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5431
 
 
5432
 
# Set to yes if exported symbols are required.
5433
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5434
 
 
5435
 
# The commands to list exported symbols.
5436
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5437
 
 
5438
 
# The commands to extract the exported symbol list from a shared archive.
5439
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5440
 
 
5441
 
# Symbols that should not be listed in the preloaded symbols.
5442
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5443
 
 
5444
 
# Symbols that must always be exported.
5445
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5446
 
 
5447
 
ifelse([$1],[],
5448
 
[# ### END LIBTOOL CONFIG],
5449
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
5450
 
 
5451
 
__EOF__
5452
 
 
5453
 
ifelse([$1],[], [
5454
 
  case $host_os in
5455
 
  aix3*)
5456
 
    cat <<\EOF >> "$cfgfile"
5457
 
 
5458
 
# AIX sometimes has problems with the GCC collect2 program.  For some
5459
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
5460
 
# vanish in a puff of smoke.
5461
 
if test "X${COLLECT_NAMES+set}" != Xset; then
5462
 
  COLLECT_NAMES=
5463
 
  export COLLECT_NAMES
5464
 
fi
5465
 
EOF
5466
 
    ;;
5467
 
  esac
5468
 
 
5469
 
  # We use sed instead of cat because bash on DJGPP gets confused if
5470
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5471
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
5472
 
  # is reportedly fixed, but why not run on old versions too?
5473
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5474
 
 
5475
 
  mv -f "$cfgfile" "$ofile" || \
5476
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5477
 
  chmod +x "$ofile"
5478
 
])
5479
 
else
5480
 
  # If there is no Makefile yet, we rely on a make rule to execute
5481
 
  # `config.status --recheck' to rerun these tests and create the
5482
 
  # libtool script then.
5483
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5484
 
  if test -f "$ltmain_in"; then
5485
 
    test -f Makefile && make "$ltmain"
5486
 
  fi
5487
 
fi
5488
 
])# AC_LIBTOOL_CONFIG
5489
 
 
5490
 
 
5491
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5492
 
# -------------------------------------------
5493
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5494
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5495
 
 
5496
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4345
AC_SUBST([LIBM])
 
4346
])# LT_LIB_M
 
4347
 
 
4348
# Old name:
 
4349
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4350
dnl aclocal-1.4 backwards compatibility:
 
4351
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4352
 
 
4353
 
 
4354
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4355
# -------------------------------
 
4356
m4_defun([_LT_COMPILER_NO_RTTI],
 
4357
[m4_require([_LT_TAG_COMPILER])dnl
 
4358
 
 
4359
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5497
4360
 
5498
4361
if test "$GCC" = yes; then
5499
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4362
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5500
4363
 
5501
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4364
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5502
4365
    lt_cv_prog_compiler_rtti_exceptions,
5503
4366
    [-fno-rtti -fno-exceptions], [],
5504
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4367
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5505
4368
fi
5506
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5507
 
 
5508
 
 
5509
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5510
 
# ---------------------------------
5511
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5512
 
[AC_REQUIRE([AC_CANONICAL_HOST])
5513
 
AC_REQUIRE([AC_PROG_NM])
5514
 
AC_REQUIRE([AC_OBJEXT])
 
4369
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4370
        [Compiler flag to turn off builtin functions])
 
4371
])# _LT_COMPILER_NO_RTTI
 
4372
 
 
4373
 
 
4374
# _LT_CMD_GLOBAL_SYMBOLS
 
4375
# ----------------------
 
4376
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4377
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4378
AC_REQUIRE([AC_PROG_CC])dnl
 
4379
AC_REQUIRE([LT_PATH_NM])dnl
 
4380
AC_REQUIRE([LT_PATH_LD])dnl
 
4381
m4_require([_LT_DECL_SED])dnl
 
4382
m4_require([_LT_DECL_EGREP])dnl
 
4383
m4_require([_LT_TAG_COMPILER])dnl
 
4384
 
5515
4385
# Check for command to grab the raw symbol name followed by C symbol from nm.
5516
4386
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5517
4387
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5525
4395
# Regexp to match symbols that can be accessed directly from C.
5526
4396
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5527
4397
 
5528
 
# Transform an extracted symbol line into a proper C declaration
5529
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5530
 
 
5531
 
# Transform an extracted symbol line into symbol name and symbol address
5532
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5533
 
 
5534
4398
# Define system-specific variables.
5535
4399
case $host_os in
5536
4400
aix*)
5537
4401
  symcode='[[BCDT]]'
5538
4402
  ;;
5539
 
cygwin* | mingw* | pw32*)
 
4403
cygwin* | mingw* | pw32* | cegcc*)
5540
4404
  symcode='[[ABCDGISTW]]'
5541
4405
  ;;
5542
 
hpux*) # Its linker distinguishes data from code symbols
 
4406
hpux*)
5543
4407
  if test "$host_cpu" = ia64; then
5544
4408
    symcode='[[ABCDEGRST]]'
5545
4409
  fi
5546
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5547
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5548
 
  ;;
5549
 
linux*)
5550
 
  if test "$host_cpu" = ia64; then
5551
 
    symcode='[[ABCDGIRSTW]]'
5552
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5553
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5554
 
  fi
5555
4410
  ;;
5556
4411
irix* | nonstopux*)
5557
4412
  symcode='[[BCDEGRST]]'
5576
4431
  ;;
5577
4432
esac
5578
4433
 
 
4434
# If we're using GNU nm, then use its standard symbol codes.
 
4435
case `$NM -V 2>&1` in
 
4436
*GNU* | *'with BFD'*)
 
4437
  symcode='[[ABCDGIRSTW]]' ;;
 
4438
esac
 
4439
 
 
4440
# Transform an extracted symbol line into a proper C declaration.
 
4441
# Some systems (esp. on ia64) link data and code symbols differently,
 
4442
# so use this general approach.
 
4443
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4444
 
 
4445
# Transform an extracted symbol line into symbol name and symbol address
 
4446
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4447
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'"
 
4448
 
5579
4449
# Handle CRLF in mingw tool chain
5580
4450
opt_cr=
5581
4451
case $build_os in
5582
4452
mingw*)
5583
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4453
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5584
4454
  ;;
5585
4455
esac
5586
4456
 
5587
 
# If we're using GNU nm, then use its standard symbol codes.
5588
 
case `$NM -V 2>&1` in
5589
 
*GNU* | *'with BFD'*)
5590
 
  symcode='[[ABCDGIRSTW]]' ;;
5591
 
esac
5592
 
 
5593
 
# Try without a prefix undercore, then with it.
 
4457
# Try without a prefix underscore, then with it.
5594
4458
for ac_symprfx in "" "_"; do
5595
4459
 
5596
4460
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5597
4461
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5598
4462
 
5599
4463
  # Write the raw and C identifiers.
5600
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4464
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4465
    # Fake it for dumpbin and say T for any non-static function
 
4466
    # and D for any global variable.
 
4467
    # Also find C++ and __fastcall symbols from MSVC++,
 
4468
    # which start with @ or ?.
 
4469
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4470
"     {last_section=section; section=\$ 3};"\
 
4471
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4472
"     \$ 0!~/External *\|/{next};"\
 
4473
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4474
"     {if(hide[section]) next};"\
 
4475
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4476
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4477
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4478
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4479
"     ' prfx=^$ac_symprfx]"
 
4480
  else
 
4481
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4482
  fi
5601
4483
 
5602
4484
  # Check to see that the pipe works correctly.
5603
4485
  pipe_works=no
5604
4486
 
5605
4487
  rm -f conftest*
5606
 
  cat > conftest.$ac_ext <<EOF
 
4488
  cat > conftest.$ac_ext <<_LT_EOF
5607
4489
#ifdef __cplusplus
5608
4490
extern "C" {
5609
4491
#endif
5610
4492
char nm_test_var;
5611
 
void nm_test_func(){}
 
4493
void nm_test_func(void);
 
4494
void nm_test_func(void){}
5612
4495
#ifdef __cplusplus
5613
4496
}
5614
4497
#endif
5615
4498
int main(){nm_test_var='a';nm_test_func();return(0);}
5616
 
EOF
 
4499
_LT_EOF
5617
4500
 
5618
4501
  if AC_TRY_EVAL(ac_compile); then
5619
4502
    # Now try to grab the symbols.
5627
4510
      fi
5628
4511
 
5629
4512
      # Make sure that we snagged all the symbols we need.
5630
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5631
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5632
 
          cat <<EOF > conftest.$ac_ext
 
4513
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
4514
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
4515
          cat <<_LT_EOF > conftest.$ac_ext
5633
4516
#ifdef __cplusplus
5634
4517
extern "C" {
5635
4518
#endif
5636
4519
 
5637
 
EOF
 
4520
_LT_EOF
5638
4521
          # Now generate the symbol file.
5639
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5640
 
 
5641
 
          cat <<EOF >> conftest.$ac_ext
5642
 
#if defined (__STDC__) && __STDC__
5643
 
# define lt_ptr_t void *
5644
 
#else
5645
 
# define lt_ptr_t char *
5646
 
# define const
5647
 
#endif
5648
 
 
5649
 
/* The mapping between symbol names and symbols. */
 
4522
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
4523
 
 
4524
          cat <<_LT_EOF >> conftest.$ac_ext
 
4525
 
 
4526
/* The mapping between symbol names and symbols.  */
5650
4527
const struct {
5651
4528
  const char *name;
5652
 
  lt_ptr_t address;
 
4529
  void       *address;
5653
4530
}
5654
 
lt_preloaded_symbols[[]] =
 
4531
lt__PROGRAM__LTX_preloaded_symbols[[]] =
5655
4532
{
5656
 
EOF
5657
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5658
 
          cat <<\EOF >> conftest.$ac_ext
5659
 
  {0, (lt_ptr_t) 0}
 
4533
  { "@PROGRAM@", (void *) 0 },
 
4534
_LT_EOF
 
4535
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
4536
          cat <<\_LT_EOF >> conftest.$ac_ext
 
4537
  {0, (void *) 0}
5660
4538
};
5661
4539
 
 
4540
/* This works around a problem in FreeBSD linker */
 
4541
#ifdef FREEBSD_WORKAROUND
 
4542
static const void *lt_preloaded_setup() {
 
4543
  return lt__PROGRAM__LTX_preloaded_symbols;
 
4544
}
 
4545
#endif
 
4546
 
5662
4547
#ifdef __cplusplus
5663
4548
}
5664
4549
#endif
5665
 
EOF
 
4550
_LT_EOF
5666
4551
          # Now try linking the two files.
5667
4552
          mv conftest.$ac_objext conftstm.$ac_objext
5668
4553
          lt_save_LIBS="$LIBS"
5669
4554
          lt_save_CFLAGS="$CFLAGS"
5670
4555
          LIBS="conftstm.$ac_objext"
5671
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
4556
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5672
4557
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5673
4558
            pipe_works=yes
5674
4559
          fi
5687
4572
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5688
4573
    cat conftest.$ac_ext >&5
5689
4574
  fi
5690
 
  rm -f conftest* conftst*
 
4575
  rm -rf conftest* conftst*
5691
4576
 
5692
4577
  # Do not use the global_symbol_pipe unless it works.
5693
4578
  if test "$pipe_works" = yes; then
5705
4590
else
5706
4591
  AC_MSG_RESULT(ok)
5707
4592
fi
5708
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5709
 
 
5710
 
 
5711
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5712
 
# ---------------------------------------
5713
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5714
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5715
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5716
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
4593
 
 
4594
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
4595
    [Take the output of nm and produce a listing of raw symbols and C names])
 
4596
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
4597
    [Transform the output of nm in a proper C declaration])
 
4598
_LT_DECL([global_symbol_to_c_name_address],
 
4599
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
4600
    [Transform the output of nm in a C name address pair])
 
4601
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
4602
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
4603
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
4604
]) # _LT_CMD_GLOBAL_SYMBOLS
 
4605
 
 
4606
 
 
4607
# _LT_COMPILER_PIC([TAGNAME])
 
4608
# ---------------------------
 
4609
m4_defun([_LT_COMPILER_PIC],
 
4610
[m4_require([_LT_TAG_COMPILER])dnl
 
4611
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
4612
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4613
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5717
4614
 
5718
4615
AC_MSG_CHECKING([for $compiler option to produce PIC])
5719
 
 ifelse([$1],[CXX],[
 
4616
m4_if([$1], [CXX], [
5720
4617
  # C++ specific cases for pic, static, wl, etc.
5721
4618
  if test "$GXX" = yes; then
5722
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5723
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4619
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4620
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5724
4621
 
5725
4622
    case $host_os in
5726
4623
    aix*)
5727
4624
      # All AIX code is PIC.
5728
4625
      if test "$host_cpu" = ia64; then
5729
4626
        # AIX 5 now supports IA64 processor
5730
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4627
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5731
4628
      fi
5732
4629
      ;;
 
4630
 
5733
4631
    amigaos*)
5734
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5735
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5736
 
      # like `-m68040'.
5737
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4632
      case $host_cpu in
 
4633
      powerpc)
 
4634
            # see comment about AmigaOS4 .so support
 
4635
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4636
        ;;
 
4637
      m68k)
 
4638
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4639
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4640
            # like `-m68040'.
 
4641
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4642
        ;;
 
4643
      esac
5738
4644
      ;;
5739
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4645
 
 
4646
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5740
4647
      # PIC is the default for these OSes.
5741
4648
      ;;
5742
 
    mingw* | os2* | pw32*)
 
4649
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5743
4650
      # This hack is so that the source file can tell whether it is being
5744
4651
      # built for inclusion in a dll (and should export symbols for example).
5745
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
4652
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4653
      # (--disable-auto-import) libraries
 
4654
      m4_if([$1], [GCJ], [],
 
4655
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5746
4656
      ;;
5747
4657
    darwin* | rhapsody*)
5748
4658
      # PIC is the default on this platform
5749
4659
      # Common symbols not allowed in MH_DYLIB files
5750
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4660
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5751
4661
      ;;
5752
4662
    *djgpp*)
5753
4663
      # DJGPP does not support shared libraries at all
5754
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
4664
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5755
4665
      ;;
5756
 
    interix3*)
 
4666
    interix[[3-9]]*)
5757
4667
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5758
4668
      # Instead, we relocate shared libraries at runtime.
5759
4669
      ;;
5760
4670
    sysv4*MP*)
5761
4671
      if test -d /usr/nec; then
5762
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
4672
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5763
4673
      fi
5764
4674
      ;;
5765
4675
    hpux*)
5766
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5767
 
      # not for PA HP-UX.
 
4676
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4677
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4678
      # sets the default TLS model and affects inlining.
5768
4679
      case $host_cpu in
5769
 
      hppa*64*|ia64*)
 
4680
      hppa*64*)
5770
4681
        ;;
5771
4682
      *)
5772
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4683
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5773
4684
        ;;
5774
4685
      esac
5775
4686
      ;;
 
4687
    *qnx* | *nto*)
 
4688
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4689
      # it will coredump.
 
4690
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4691
      ;;
5776
4692
    *)
5777
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4693
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5778
4694
      ;;
5779
4695
    esac
5780
4696
  else
5781
4697
    case $host_os in
5782
 
      aix4* | aix5*)
 
4698
      aix[[4-9]]*)
5783
4699
        # All AIX code is PIC.
5784
4700
        if test "$host_cpu" = ia64; then
5785
4701
          # AIX 5 now supports IA64 processor
5786
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4702
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5787
4703
        else
5788
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4704
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5789
4705
        fi
5790
4706
        ;;
5791
4707
      chorus*)
5792
4708
        case $cc_basename in
5793
4709
        cxch68*)
5794
4710
          # Green Hills C++ Compiler
5795
 
          # _LT_AC_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"
 
4711
          # _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"
5796
4712
          ;;
5797
4713
        esac
5798
4714
        ;;
5799
 
       darwin*)
5800
 
         # PIC is the default on this platform
5801
 
         # Common symbols not allowed in MH_DYLIB files
5802
 
         case $cc_basename in
5803
 
           xlc*)
5804
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5805
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5806
 
           ;;
5807
 
         esac
5808
 
       ;;
5809
4715
      dgux*)
5810
4716
        case $cc_basename in
5811
4717
          ec++*)
5812
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4718
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5813
4719
            ;;
5814
4720
          ghcx*)
5815
4721
            # Green Hills C++ Compiler
5816
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4722
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5817
4723
            ;;
5818
4724
          *)
5819
4725
            ;;
5820
4726
        esac
5821
4727
        ;;
5822
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
4728
      freebsd* | dragonfly*)
5823
4729
        # FreeBSD uses GNU C++
5824
4730
        ;;
5825
4731
      hpux9* | hpux10* | hpux11*)
5826
4732
        case $cc_basename in
5827
4733
          CC*)
5828
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5829
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4734
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4735
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5830
4736
            if test "$host_cpu" != ia64; then
5831
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4737
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5832
4738
            fi
5833
4739
            ;;
5834
4740
          aCC*)
5835
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5836
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4741
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4742
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5837
4743
            case $host_cpu in
5838
4744
            hppa*64*|ia64*)
5839
4745
              # +Z the default
5840
4746
              ;;
5841
4747
            *)
5842
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4748
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5843
4749
              ;;
5844
4750
            esac
5845
4751
            ;;
5854
4760
      irix5* | irix6* | nonstopux*)
5855
4761
        case $cc_basename in
5856
4762
          CC*)
5857
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5858
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4763
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4764
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5859
4765
            # CC pic flag -KPIC is the default.
5860
4766
            ;;
5861
4767
          *)
5862
4768
            ;;
5863
4769
        esac
5864
4770
        ;;
5865
 
      linux*)
 
4771
      linux* | k*bsd*-gnu)
5866
4772
        case $cc_basename in
5867
4773
          KCC*)
5868
4774
            # KAI C++ Compiler
5869
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5870
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5871
 
            ;;
5872
 
          icpc* | ecpc*)
5873
 
            # Intel C++
5874
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5875
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5876
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5877
 
            ;;
5878
 
          pgCC*)
5879
 
            # Portland Group C++ compiler.
5880
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5881
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5882
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4775
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4776
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4777
            ;;
 
4778
          ecpc* )
 
4779
            # old Intel C++ for x86_64 which still supported -KPIC.
 
4780
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4781
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4782
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4783
            ;;
 
4784
          icpc* )
 
4785
            # Intel C++, used to be incompatible with GCC.
 
4786
            # ICC 10 doesn't accept -KPIC any more.
 
4787
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4788
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4789
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4790
            ;;
 
4791
          pgCC* | pgcpp*)
 
4792
            # Portland Group C++ compiler
 
4793
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4794
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4795
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5883
4796
            ;;
5884
4797
          cxx*)
5885
4798
            # Compaq C++
5886
4799
            # Make sure the PIC flag is empty.  It appears that all Alpha
5887
4800
            # Linux and Compaq Tru64 Unix objects are PIC.
5888
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5889
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4801
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4802
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4803
            ;;
 
4804
          xlc* | xlC*)
 
4805
            # IBM XL 8.0 on PPC
 
4806
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4807
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4808
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5890
4809
            ;;
5891
4810
          *)
 
4811
            case `$CC -V 2>&1 | sed 5q` in
 
4812
            *Sun\ C*)
 
4813
              # Sun C++ 5.9
 
4814
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4815
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4816
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4817
              ;;
 
4818
            esac
5892
4819
            ;;
5893
4820
        esac
5894
4821
        ;;
5899
4826
      mvs*)
5900
4827
        case $cc_basename in
5901
4828
          cxx*)
5902
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
4829
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5903
4830
            ;;
5904
4831
          *)
5905
4832
            ;;
5907
4834
        ;;
5908
4835
      netbsd*)
5909
4836
        ;;
 
4837
      *qnx* | *nto*)
 
4838
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4839
        # it will coredump.
 
4840
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4841
        ;;
5910
4842
      osf3* | osf4* | osf5*)
5911
4843
        case $cc_basename in
5912
4844
          KCC*)
5913
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
4845
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5914
4846
            ;;
5915
4847
          RCC*)
5916
4848
            # Rational C++ 2.4.1
5917
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4849
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5918
4850
            ;;
5919
4851
          cxx*)
5920
4852
            # Digital/Compaq C++
5921
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4853
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5922
4854
            # Make sure the PIC flag is empty.  It appears that all Alpha
5923
4855
            # Linux and Compaq Tru64 Unix objects are PIC.
5924
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5925
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4856
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4857
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5926
4858
            ;;
5927
4859
          *)
5928
4860
            ;;
5934
4866
        case $cc_basename in
5935
4867
          CC*)
5936
4868
            # Sun C++ 4.2, 5.x and Centerline C++
5937
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5938
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5939
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4869
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4870
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4871
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5940
4872
            ;;
5941
4873
          gcx*)
5942
4874
            # Green Hills C++ Compiler
5943
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4875
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5944
4876
            ;;
5945
4877
          *)
5946
4878
            ;;
5950
4882
        case $cc_basename in
5951
4883
          CC*)
5952
4884
            # Sun C++ 4.x
5953
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5954
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4885
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4886
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5955
4887
            ;;
5956
4888
          lcc*)
5957
4889
            # Lucid
5958
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4890
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5959
4891
            ;;
5960
4892
          *)
5961
4893
            ;;
5962
4894
        esac
5963
4895
        ;;
 
4896
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
4897
        case $cc_basename in
 
4898
          CC*)
 
4899
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4900
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4901
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4902
            ;;
 
4903
        esac
 
4904
        ;;
5964
4905
      tandem*)
5965
4906
        case $cc_basename in
5966
4907
          NCC*)
5967
4908
            # NonStop-UX NCC 3.20
5968
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4909
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5969
4910
            ;;
5970
4911
          *)
5971
4912
            ;;
5972
4913
        esac
5973
4914
        ;;
5974
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5975
 
        case $cc_basename in
5976
 
          CC*)
5977
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5978
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5979
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5980
 
            ;;
5981
 
        esac
5982
 
        ;;
5983
4915
      vxworks*)
5984
4916
        ;;
5985
4917
      *)
5986
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4918
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5987
4919
        ;;
5988
4920
    esac
5989
4921
  fi
5990
4922
],
5991
4923
[
5992
4924
  if test "$GCC" = yes; then
5993
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5994
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4925
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4926
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5995
4927
 
5996
4928
    case $host_os in
5997
4929
      aix*)
5998
4930
      # All AIX code is PIC.
5999
4931
      if test "$host_cpu" = ia64; then
6000
4932
        # AIX 5 now supports IA64 processor
6001
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4933
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6002
4934
      fi
6003
4935
      ;;
6004
4936
 
6005
4937
    amigaos*)
6006
 
      # FIXME: we need at least 68020 code to build shared libraries, but
6007
 
      # adding the `-m68020' flag to GCC prevents building anything better,
6008
 
      # like `-m68040'.
6009
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4938
      case $host_cpu in
 
4939
      powerpc)
 
4940
            # see comment about AmigaOS4 .so support
 
4941
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4942
        ;;
 
4943
      m68k)
 
4944
            # FIXME: we need at least 68020 code to build shared libraries, but
 
4945
            # adding the `-m68020' flag to GCC prevents building anything better,
 
4946
            # like `-m68040'.
 
4947
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
4948
        ;;
 
4949
      esac
6010
4950
      ;;
6011
4951
 
6012
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
4952
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6013
4953
      # PIC is the default for these OSes.
6014
4954
      ;;
6015
4955
 
6016
 
    mingw* | pw32* | os2*)
 
4956
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6017
4957
      # This hack is so that the source file can tell whether it is being
6018
4958
      # built for inclusion in a dll (and should export symbols for example).
6019
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
4959
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
4960
      # (--disable-auto-import) libraries
 
4961
      m4_if([$1], [GCJ], [],
 
4962
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6020
4963
      ;;
6021
4964
 
6022
4965
    darwin* | rhapsody*)
6023
4966
      # PIC is the default on this platform
6024
4967
      # Common symbols not allowed in MH_DYLIB files
6025
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6026
 
      ;;
6027
 
 
6028
 
    interix3*)
 
4968
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
4969
      ;;
 
4970
 
 
4971
    hpux*)
 
4972
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
4973
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
4974
      # sets the default TLS model and affects inlining.
 
4975
      case $host_cpu in
 
4976
      hppa*64*)
 
4977
        # +Z the default
 
4978
        ;;
 
4979
      *)
 
4980
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4981
        ;;
 
4982
      esac
 
4983
      ;;
 
4984
 
 
4985
    interix[[3-9]]*)
6029
4986
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6030
4987
      # Instead, we relocate shared libraries at runtime.
6031
4988
      ;;
6033
4990
    msdosdjgpp*)
6034
4991
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6035
4992
      # on systems that don't support them.
6036
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4993
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6037
4994
      enable_shared=no
6038
4995
      ;;
6039
4996
 
 
4997
    *nto* | *qnx*)
 
4998
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4999
      # it will coredump.
 
5000
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5001
      ;;
 
5002
 
6040
5003
    sysv4*MP*)
6041
5004
      if test -d /usr/nec; then
6042
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5005
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6043
5006
      fi
6044
5007
      ;;
6045
5008
 
6046
 
    hpux*)
6047
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6048
 
      # not for PA HP-UX.
6049
 
      case $host_cpu in
6050
 
      hppa*64*|ia64*)
6051
 
        # +Z the default
6052
 
        ;;
6053
 
      *)
6054
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6055
 
        ;;
6056
 
      esac
6057
 
      ;;
6058
 
 
6059
5009
    *)
6060
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5010
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6061
5011
      ;;
6062
5012
    esac
6063
5013
  else
6064
5014
    # PORTME Check for flag to pass linker flags through the system compiler.
6065
5015
    case $host_os in
6066
5016
    aix*)
6067
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5017
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6068
5018
      if test "$host_cpu" = ia64; then
6069
5019
        # AIX 5 now supports IA64 processor
6070
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5020
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6071
5021
      else
6072
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5022
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6073
5023
      fi
6074
5024
      ;;
6075
 
      darwin*)
6076
 
        # PIC is the default on this platform
6077
 
        # Common symbols not allowed in MH_DYLIB files
6078
 
       case $cc_basename in
6079
 
         xlc*)
6080
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6081
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6082
 
         ;;
6083
 
       esac
6084
 
       ;;
6085
5025
 
6086
 
    mingw* | pw32* | os2*)
 
5026
    mingw* | cygwin* | pw32* | os2* | cegcc*)
6087
5027
      # This hack is so that the source file can tell whether it is being
6088
5028
      # built for inclusion in a dll (and should export symbols for example).
6089
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5029
      m4_if([$1], [GCJ], [],
 
5030
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6090
5031
      ;;
6091
5032
 
6092
5033
    hpux9* | hpux10* | hpux11*)
6093
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5034
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6094
5035
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6095
5036
      # not for PA HP-UX.
6096
5037
      case $host_cpu in
6098
5039
        # +Z the default
6099
5040
        ;;
6100
5041
      *)
6101
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5042
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6102
5043
        ;;
6103
5044
      esac
6104
5045
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6105
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5046
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6106
5047
      ;;
6107
5048
 
6108
5049
    irix5* | irix6* | nonstopux*)
6109
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5050
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6110
5051
      # PIC (with -KPIC) is the default.
6111
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6112
 
      ;;
6113
 
 
6114
 
    newsos6)
6115
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6116
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6117
 
      ;;
6118
 
 
6119
 
    linux*)
 
5052
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5053
      ;;
 
5054
 
 
5055
    linux* | k*bsd*-gnu)
6120
5056
      case $cc_basename in
6121
 
      icc* | ecc*)
6122
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6123
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6124
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6125
 
        ;;
 
5057
      # old Intel for x86_64 which still supported -KPIC.
 
5058
      ecc*)
 
5059
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5060
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5061
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5062
        ;;
 
5063
      # icc used to be incompatible with GCC.
 
5064
      # ICC 10 doesn't accept -KPIC any more.
 
5065
      icc* | ifort*)
 
5066
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5067
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5068
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5069
        ;;
 
5070
      # Lahey Fortran 8.1.
 
5071
      lf95*)
 
5072
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5073
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
5074
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
5075
        ;;
6126
5076
      pgcc* | pgf77* | pgf90* | pgf95*)
6127
5077
        # Portland Group compilers (*not* the Pentium gcc compiler,
6128
5078
        # which looks to be a dead project)
6129
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6130
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6131
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5079
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5080
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5081
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6132
5082
        ;;
6133
5083
      ccc*)
6134
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5084
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6135
5085
        # All Alpha code is PIC.
6136
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5086
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6137
5087
        ;;
 
5088
      xl*)
 
5089
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
5090
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5091
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
5092
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
5093
        ;;
 
5094
      *)
 
5095
        case `$CC -V 2>&1 | sed 5q` in
 
5096
        *Sun\ C*)
 
5097
          # Sun C 5.9
 
5098
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5099
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5100
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5101
          ;;
 
5102
        *Sun\ F*)
 
5103
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5104
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5105
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5106
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5107
          ;;
 
5108
        esac
 
5109
        ;;
6138
5110
      esac
6139
5111
      ;;
6140
5112
 
 
5113
    newsos6)
 
5114
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5115
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5116
      ;;
 
5117
 
 
5118
    *nto* | *qnx*)
 
5119
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5120
      # it will coredump.
 
5121
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5122
      ;;
 
5123
 
6141
5124
    osf3* | osf4* | osf5*)
6142
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5125
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6143
5126
      # All OSF/1 code is PIC.
6144
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5127
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5128
      ;;
 
5129
 
 
5130
    rdos*)
 
5131
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6145
5132
      ;;
6146
5133
 
6147
5134
    solaris*)
6148
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6149
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5135
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5136
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6150
5137
      case $cc_basename in
6151
5138
      f77* | f90* | f95*)
6152
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5139
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6153
5140
      *)
6154
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5141
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6155
5142
      esac
6156
5143
      ;;
6157
5144
 
6158
5145
    sunos4*)
6159
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6160
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6161
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5146
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5147
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5148
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6162
5149
      ;;
6163
5150
 
6164
5151
    sysv4 | sysv4.2uw2* | sysv4.3*)
6165
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6166
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6167
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5152
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5153
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5154
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6168
5155
      ;;
6169
5156
 
6170
5157
    sysv4*MP*)
6171
5158
      if test -d /usr/nec ;then
6172
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6173
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5159
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5160
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6174
5161
      fi
6175
5162
      ;;
6176
5163
 
6177
5164
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6178
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6179
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6180
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5165
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5166
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5167
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6181
5168
      ;;
6182
5169
 
6183
5170
    unicos*)
6184
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6185
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5171
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5172
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6186
5173
      ;;
6187
5174
 
6188
5175
    uts4*)
6189
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6190
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5176
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5177
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6191
5178
      ;;
6192
5179
 
6193
5180
    *)
6194
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5181
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6195
5182
      ;;
6196
5183
    esac
6197
5184
  fi
6198
5185
])
6199
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
5186
case $host_os in
 
5187
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5188
  *djgpp*)
 
5189
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5190
    ;;
 
5191
  *)
 
5192
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
5193
    ;;
 
5194
esac
 
5195
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5196
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5197
        [How to pass a linker flag through the compiler])
6200
5198
 
6201
5199
#
6202
5200
# Check to make sure the PIC flag actually works.
6203
5201
#
6204
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6205
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6206
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6207
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6208
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5202
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5203
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5204
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
5205
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
5206
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6209
5207
     "" | " "*) ;;
6210
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5208
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6211
5209
     esac],
6212
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6213
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5210
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5211
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6214
5212
fi
6215
 
case $host_os in
6216
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6217
 
  *djgpp*)
6218
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6219
 
    ;;
6220
 
  *)
6221
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6222
 
    ;;
6223
 
esac
 
5213
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
5214
        [Additional compiler flags for building library objects])
6224
5215
 
6225
5216
#
6226
5217
# Check to make sure the static flag actually works.
6227
5218
#
6228
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6229
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6230
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
5219
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5220
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5221
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6231
5222
  $lt_tmp_static_flag,
6232
5223
  [],
6233
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6234
 
])
6235
 
 
6236
 
 
6237
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6238
 
# ------------------------------------
 
5224
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5225
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5226
        [Compiler flag to prevent dynamic linking])
 
5227
])# _LT_COMPILER_PIC
 
5228
 
 
5229
 
 
5230
# _LT_LINKER_SHLIBS([TAGNAME])
 
5231
# ----------------------------
6239
5232
# See if the linker supports building shared libraries.
6240
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6241
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6242
 
ifelse([$1],[CXX],[
6243
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5233
m4_defun([_LT_LINKER_SHLIBS],
 
5234
[AC_REQUIRE([LT_PATH_LD])dnl
 
5235
AC_REQUIRE([LT_PATH_NM])dnl
 
5236
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5237
m4_require([_LT_DECL_EGREP])dnl
 
5238
m4_require([_LT_DECL_SED])dnl
 
5239
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5240
m4_require([_LT_TAG_COMPILER])dnl
 
5241
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5242
m4_if([$1], [CXX], [
 
5243
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6244
5244
  case $host_os in
6245
 
  aix4* | aix5*)
 
5245
  aix[[4-9]]*)
6246
5246
    # If we're using GNU nm, then we don't want the "-C" option.
6247
5247
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6248
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6249
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5248
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5249
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6250
5250
    else
6251
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5251
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6252
5252
    fi
6253
5253
    ;;
6254
5254
  pw32*)
6255
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5255
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6256
5256
  ;;
6257
 
  cygwin* | mingw*)
6258
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5257
  cygwin* | mingw* | cegcc*)
 
5258
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
6259
5259
  ;;
6260
5260
  *)
6261
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5261
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6262
5262
  ;;
6263
5263
  esac
6264
 
],[
 
5264
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5265
], [
6265
5266
  runpath_var=
6266
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6267
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6268
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
6269
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6270
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6271
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6272
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6273
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6274
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6275
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6276
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6277
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6278
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6279
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6280
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6281
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6282
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6283
 
  _LT_AC_TAGVAR(module_cmds, $1)=
6284
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6285
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
6286
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5267
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5268
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5269
  _LT_TAGVAR(archive_cmds, $1)=
 
5270
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5271
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5272
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5273
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5274
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5275
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5276
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5277
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5278
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5279
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5280
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5281
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5282
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5283
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5284
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5285
  _LT_TAGVAR(module_cmds, $1)=
 
5286
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5287
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5288
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5289
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5290
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6287
5291
  # include_expsyms should be a list of space-separated symbols to be *always*
6288
5292
  # included in the symbol list
6289
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5293
  _LT_TAGVAR(include_expsyms, $1)=
6290
5294
  # exclude_expsyms can be an extended regexp of symbols to exclude
6291
5295
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6292
5296
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6293
5297
  # as well as any symbol that contains `d'.
6294
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5298
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6295
5299
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6296
5300
  # platforms (ab)use it in PIC code, but their linkers get confused if
6297
5301
  # the symbol is explicitly referenced.  Since portable code cannot
6298
5302
  # rely on this symbol name, it's probably fine to never include it in
6299
5303
  # preloaded symbol tables.
 
5304
  # Exclude shared library initialization/finalization symbols.
 
5305
dnl Note also adjust exclude_expsyms for C++ above.
6300
5306
  extract_expsyms_cmds=
6301
 
  # Just being paranoid about ensuring that cc_basename is set.
6302
 
  _LT_CC_BASENAME([$compiler])
 
5307
 
6303
5308
  case $host_os in
6304
 
  cygwin* | mingw* | pw32*)
 
5309
  cygwin* | mingw* | pw32* | cegcc*)
6305
5310
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6306
5311
    # When not using gcc, we currently assume that we are using
6307
5312
    # Microsoft Visual C++.
6318
5323
    ;;
6319
5324
  esac
6320
5325
 
6321
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5326
  _LT_TAGVAR(ld_shlibs, $1)=yes
6322
5327
  if test "$with_gnu_ld" = yes; then
6323
5328
    # If archive_cmds runs LD, not CC, wlarc should be empty
6324
5329
    wlarc='${wl}'
6327
5332
    # are reset later if shared libraries are not supported. Putting them
6328
5333
    # here allows them to be overridden if necessary.
6329
5334
    runpath_var=LD_RUN_PATH
6330
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6331
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5335
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5336
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6332
5337
    # ancient GNU ld didn't support --whole-archive et. al.
6333
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6334
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6335
 
      else
6336
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5338
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5339
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5340
    else
 
5341
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6337
5342
    fi
6338
5343
    supports_anon_versioning=no
6339
 
    case `$LD -v 2>/dev/null` in
 
5344
    case `$LD -v 2>&1` in
6340
5345
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6341
5346
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6342
5347
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6346
5351
 
6347
5352
    # See if GNU ld supports shared libraries.
6348
5353
    case $host_os in
6349
 
    aix3* | aix4* | aix5*)
 
5354
    aix[[3-9]]*)
6350
5355
      # On AIX/PPC, the GNU linker is very broken
6351
5356
      if test "$host_cpu" != ia64; then
6352
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6353
 
        cat <<EOF 1>&2
 
5357
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5358
        cat <<_LT_EOF 1>&2
6354
5359
 
6355
5360
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6356
5361
*** to be unable to reliably create shared libraries on AIX.
6358
5363
*** really care for shared libraries, you may want to modify your PATH
6359
5364
*** so that a non-GNU linker is found, and then restart.
6360
5365
 
6361
 
EOF
 
5366
_LT_EOF
6362
5367
      fi
6363
5368
      ;;
6364
5369
 
6365
5370
    amigaos*)
6366
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6367
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6368
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6369
 
 
6370
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6371
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6372
 
      # to version 4, is to share data among multiple programs linked
6373
 
      # with the same dynamic library.  Since this doesn't match the
6374
 
      # behavior of shared libraries on other platforms, we can't use
6375
 
      # them.
6376
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5371
      case $host_cpu in
 
5372
      powerpc)
 
5373
            # see comment about AmigaOS4 .so support
 
5374
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5375
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5376
        ;;
 
5377
      m68k)
 
5378
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
5379
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5380
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5381
        ;;
 
5382
      esac
6377
5383
      ;;
6378
5384
 
6379
5385
    beos*)
6380
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6381
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5386
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5387
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6382
5388
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6383
5389
        # support --undefined.  This deserves some investigation.  FIXME
6384
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5390
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6385
5391
      else
6386
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5392
        _LT_TAGVAR(ld_shlibs, $1)=no
6387
5393
      fi
6388
5394
      ;;
6389
5395
 
6390
 
    cygwin* | mingw* | pw32*)
6391
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5396
    cygwin* | mingw* | pw32* | cegcc*)
 
5397
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6392
5398
      # as there is no search path for DLLs.
6393
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6394
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6395
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6396
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6397
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5399
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5400
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5401
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5402
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5403
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6398
5404
 
6399
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6400
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
5405
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5406
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6401
5407
        # If the export-symbols file already is a .def file (1st line
6402
5408
        # is EXPORTS), use it as is; otherwise, prepend...
6403
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5409
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6404
5410
          cp $export_symbols $output_objdir/$soname.def;
6405
5411
        else
6406
5412
          echo EXPORTS > $output_objdir/$soname.def;
6408
5414
        fi~
6409
5415
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6410
5416
      else
6411
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5417
        _LT_TAGVAR(ld_shlibs, $1)=no
6412
5418
      fi
6413
5419
      ;;
6414
5420
 
6415
 
    interix3*)
6416
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6417
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6418
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6419
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5421
    interix[[3-9]]*)
 
5422
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5423
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5424
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5425
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6420
5426
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6421
5427
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6422
5428
      # default) and relocated if they conflict, which is a slow very memory
6423
5429
      # consuming and fragmenting process.  To avoid this, we pick a random,
6424
5430
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6425
5431
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6426
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6427
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5432
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
5433
      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6428
5434
      ;;
6429
5435
 
6430
 
    linux*)
6431
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5436
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5437
      tmp_diet=no
 
5438
      if test "$host_os" = linux-dietlibc; then
 
5439
        case $cc_basename in
 
5440
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5441
        esac
 
5442
      fi
 
5443
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5444
         && test "$tmp_diet" = no
 
5445
      then
6432
5446
        tmp_addflag=
 
5447
        tmp_sharedflag='-shared'
6433
5448
        case $cc_basename,$host_cpu in
6434
 
        pgcc*)                          # Portland Group C compiler
6435
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5449
        pgcc*)                          # Portland Group C compiler
 
5450
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6436
5451
          tmp_addflag=' $pic_flag'
6437
5452
          ;;
6438
5453
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6439
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
5454
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6440
5455
          tmp_addflag=' $pic_flag -Mnomain' ;;
6441
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5456
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6442
5457
          tmp_addflag=' -i_dynamic' ;;
6443
5458
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6444
5459
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6445
5460
        ifc* | ifort*)                  # Intel Fortran compiler
6446
5461
          tmp_addflag=' -nofor_main' ;;
6447
 
        esac
6448
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6449
 
 
6450
 
        if test $supports_anon_versioning = yes; then
6451
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6452
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6453
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6454
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6455
 
        fi
 
5462
        lf95*)                          # Lahey Fortran 8.1
 
5463
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5464
          tmp_sharedflag='--shared' ;;
 
5465
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5466
          tmp_sharedflag='-qmkshrobj'
 
5467
          tmp_addflag= ;;
 
5468
        esac
 
5469
        case `$CC -V 2>&1 | sed 5q` in
 
5470
        *Sun\ C*)                       # Sun C 5.9
 
5471
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
5472
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5473
          tmp_sharedflag='-G' ;;
 
5474
        *Sun\ F*)                       # Sun Fortran 8.3
 
5475
          tmp_sharedflag='-G' ;;
 
5476
        esac
 
5477
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5478
 
 
5479
        if test "x$supports_anon_versioning" = xyes; then
 
5480
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5481
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5482
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5483
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5484
        fi
 
5485
 
 
5486
        case $cc_basename in
 
5487
        xlf*)
 
5488
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5489
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
5490
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5491
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5492
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
5493
          if test "x$supports_anon_versioning" = xyes; then
 
5494
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5495
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5496
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
5497
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
5498
          fi
 
5499
          ;;
 
5500
        esac
6456
5501
      else
6457
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5502
        _LT_TAGVAR(ld_shlibs, $1)=no
6458
5503
      fi
6459
5504
      ;;
6460
5505
 
6461
5506
    netbsd*)
6462
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6463
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
5507
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5508
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6464
5509
        wlarc=
6465
5510
      else
6466
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6467
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5511
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5512
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6468
5513
      fi
6469
5514
      ;;
6470
5515
 
6471
5516
    solaris*)
6472
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6473
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6474
 
        cat <<EOF 1>&2
 
5517
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
5518
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5519
        cat <<_LT_EOF 1>&2
6475
5520
 
6476
5521
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6477
5522
*** create shared libraries on Solaris systems.  Therefore, libtool
6480
5525
*** your PATH or compiler configuration so that the native linker is
6481
5526
*** used, and then restart.
6482
5527
 
6483
 
EOF
6484
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6485
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6486
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5528
_LT_EOF
 
5529
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5530
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5531
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6487
5532
      else
6488
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5533
        _LT_TAGVAR(ld_shlibs, $1)=no
6489
5534
      fi
6490
5535
      ;;
6491
5536
 
6492
5537
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6493
5538
      case `$LD -v 2>&1` in
6494
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
6495
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5539
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
5540
        _LT_TAGVAR(ld_shlibs, $1)=no
6496
5541
        cat <<_LT_EOF 1>&2
6497
5542
 
6498
5543
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6505
5550
_LT_EOF
6506
5551
        ;;
6507
5552
        *)
6508
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6509
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6510
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6511
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
5553
          # For security reasons, it is highly recommended that you always
 
5554
          # use absolute paths for naming shared libraries, and exclude the
 
5555
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
5556
          # requires that you compile everything twice, which is a pain.
 
5557
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5558
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5559
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5560
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6512
5561
          else
6513
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5562
            _LT_TAGVAR(ld_shlibs, $1)=no
6514
5563
          fi
6515
5564
        ;;
6516
5565
      esac
6517
5566
      ;;
6518
5567
 
6519
5568
    sunos4*)
6520
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5569
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6521
5570
      wlarc=
6522
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6523
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5571
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5572
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6524
5573
      ;;
6525
5574
 
6526
5575
    *)
6527
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6528
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6529
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
5576
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5577
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5578
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6530
5579
      else
6531
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5580
        _LT_TAGVAR(ld_shlibs, $1)=no
6532
5581
      fi
6533
5582
      ;;
6534
5583
    esac
6535
5584
 
6536
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
5585
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
6537
5586
      runpath_var=
6538
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6539
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6540
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5587
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5588
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5589
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
6541
5590
    fi
6542
5591
  else
6543
5592
    # PORTME fill in a description of your system's linker (not GNU ld)
6544
5593
    case $host_os in
6545
5594
    aix3*)
6546
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6547
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6548
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
5595
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5596
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
5597
      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6549
5598
      # Note: this linker hardcodes the directories in LIBPATH if there
6550
5599
      # are no directories specified by -L.
6551
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5600
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
6552
5601
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6553
5602
        # Neither direct hardcoding nor static linking is supported with a
6554
5603
        # broken collect2.
6555
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
5604
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
6556
5605
      fi
6557
5606
      ;;
6558
5607
 
6559
 
    aix4* | aix5*)
 
5608
    aix[[4-9]]*)
6560
5609
      if test "$host_cpu" = ia64; then
6561
5610
        # On IA64, the linker does run time linking by default, so we don't
6562
5611
        # have to do anything special.
6566
5615
      else
6567
5616
        # If we're using GNU nm, then we don't want the "-C" option.
6568
5617
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6569
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6570
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5618
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5619
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6571
5620
        else
6572
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5621
          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6573
5622
        fi
6574
5623
        aix_use_runtimelinking=no
6575
5624
 
6576
5625
        # Test if we are trying to use run time linking or normal
6577
5626
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6578
5627
        # need to do runtime linking.
6579
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5628
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6580
5629
          for ld_flag in $LDFLAGS; do
6581
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6582
 
            aix_use_runtimelinking=yes
6583
 
            break
6584
 
          fi
 
5630
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
5631
            aix_use_runtimelinking=yes
 
5632
            break
 
5633
          fi
6585
5634
          done
6586
5635
          ;;
6587
5636
        esac
6596
5645
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6597
5646
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6598
5647
 
6599
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6600
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6601
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6602
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5648
      _LT_TAGVAR(archive_cmds, $1)=''
 
5649
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5650
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5651
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5652
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5653
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6603
5654
 
6604
5655
      if test "$GCC" = yes; then
6605
5656
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6606
5657
        # We only want to do this on AIX 4.2 and lower, the check
6607
5658
        # below for broken collect2 doesn't work under 4.3+
6608
5659
          collect2name=`${CC} -print-prog-name=collect2`
6609
 
          if test -f "$collect2name" && \
6610
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
5660
          if test -f "$collect2name" &&
 
5661
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6611
5662
          then
6612
 
          # We have reworked collect2
6613
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5663
          # We have reworked collect2
 
5664
          :
6614
5665
          else
6615
 
          # We have old collect2
6616
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6617
 
          # It fails to find uninstalled libraries when the uninstalled
6618
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6619
 
          # to unsupported forces relinking
6620
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6621
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6622
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5666
          # We have old collect2
 
5667
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5668
          # It fails to find uninstalled libraries when the uninstalled
 
5669
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
5670
          # to unsupported forces relinking
 
5671
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5672
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5673
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
6623
5674
          fi
6624
5675
          ;;
6625
5676
        esac
6630
5681
      else
6631
5682
        # not using gcc
6632
5683
        if test "$host_cpu" = ia64; then
6633
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6634
 
        # chokes on -Wl,-G. The following line is correct:
 
5684
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5685
        # chokes on -Wl,-G. The following line is correct:
6635
5686
          shared_flag='-G'
6636
5687
        else
6637
5688
          if test "$aix_use_runtimelinking" = yes; then
6642
5693
        fi
6643
5694
      fi
6644
5695
 
 
5696
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6645
5697
      # It seems that -bexpall does not export symbols beginning with
6646
5698
      # underscore (_), so it is better to generate a list of symbols to export.
6647
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
5699
      _LT_TAGVAR(always_export_symbols, $1)=yes
6648
5700
      if test "$aix_use_runtimelinking" = yes; then
6649
5701
        # Warning - without using the other runtime loading flags (-brtl),
6650
5702
        # -berok will link without error, but may produce a broken library.
6651
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6652
 
       # Determine the default libpath from the value encoded in an empty executable.
6653
 
       _LT_AC_SYS_LIBPATH_AIX
6654
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6655
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6656
 
       else
 
5703
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5704
        # Determine the default libpath from the value encoded in an
 
5705
        # empty executable.
 
5706
        _LT_SYS_MODULE_PATH_AIX
 
5707
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5708
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5709
      else
6657
5710
        if test "$host_cpu" = ia64; then
6658
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6659
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6660
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
5711
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5712
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5713
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6661
5714
        else
6662
 
         # Determine the default libpath from the value encoded in an empty executable.
6663
 
         _LT_AC_SYS_LIBPATH_AIX
6664
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5715
         # Determine the default libpath from the value encoded in an
 
5716
         # empty executable.
 
5717
         _LT_SYS_MODULE_PATH_AIX
 
5718
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6665
5719
          # Warning - without using the other run time loading flags,
6666
5720
          # -berok will link without error, but may produce a broken library.
6667
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6668
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5721
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5722
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6669
5723
          # Exported symbols can be pulled into shared objects from archives
6670
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6671
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5724
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5725
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6672
5726
          # This is similar to how AIX traditionally builds its shared libraries.
6673
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
5727
          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6674
5728
        fi
6675
5729
      fi
6676
5730
      ;;
6677
5731
 
6678
5732
    amigaos*)
6679
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6680
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6681
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6682
 
      # see comment about different semantics on the GNU ld section
6683
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5733
      case $host_cpu in
 
5734
      powerpc)
 
5735
            # see comment about AmigaOS4 .so support
 
5736
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5737
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5738
        ;;
 
5739
      m68k)
 
5740
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
5741
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5742
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5743
        ;;
 
5744
      esac
6684
5745
      ;;
6685
5746
 
6686
5747
    bsdi[[45]]*)
6687
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
5748
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6688
5749
      ;;
6689
5750
 
6690
 
    cygwin* | mingw* | pw32*)
 
5751
    cygwin* | mingw* | pw32* | cegcc*)
6691
5752
      # When not using gcc, we currently assume that we are using
6692
5753
      # Microsoft Visual C++.
6693
5754
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6694
5755
      # no search path for DLLs.
6695
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6696
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5756
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
5757
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6697
5758
      # Tell ltmain to make .lib files, not .a files.
6698
5759
      libext=lib
6699
5760
      # Tell ltmain to make .dll files, not .so files.
6700
5761
      shrext_cmds=".dll"
6701
5762
      # FIXME: Setting linknames here is a bad hack.
6702
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
5763
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6703
5764
      # The linker will automatically build a .lib file if we build a DLL.
6704
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
5765
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6705
5766
      # FIXME: Should let the user specify the lib program.
6706
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6707
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6708
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5767
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
5768
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
5769
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6709
5770
      ;;
6710
5771
 
6711
5772
    darwin* | rhapsody*)
6712
 
      case $host_os in
6713
 
        rhapsody* | darwin1.[[012]])
6714
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6715
 
         ;;
6716
 
       *) # Darwin 1.3 on
6717
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6718
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6719
 
         else
6720
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6721
 
             10.[[012]])
6722
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6723
 
               ;;
6724
 
             10.*)
6725
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6726
 
               ;;
6727
 
           esac
6728
 
         fi
6729
 
         ;;
6730
 
      esac
6731
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6732
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6733
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6734
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6735
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6736
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6737
 
    if test "$GCC" = yes ; then
6738
 
        output_verbose_link_cmd='echo'
6739
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6740
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6741
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6742
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6743
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6744
 
    else
6745
 
      case $cc_basename in
6746
 
        xlc*)
6747
 
         output_verbose_link_cmd='echo'
6748
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6749
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6750
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6751
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6752
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6753
 
          ;;
6754
 
       *)
6755
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6756
 
          ;;
6757
 
      esac
6758
 
    fi
 
5773
      _LT_DARWIN_LINKER_FEATURES($1)
6759
5774
      ;;
6760
5775
 
6761
5776
    dgux*)
6762
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6763
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6764
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5777
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5778
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5779
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6765
5780
      ;;
6766
5781
 
6767
5782
    freebsd1*)
6768
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5783
      _LT_TAGVAR(ld_shlibs, $1)=no
6769
5784
      ;;
6770
5785
 
6771
5786
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6773
5788
    # does not break anything, and helps significantly (at the cost of a little
6774
5789
    # extra space).
6775
5790
    freebsd2.2*)
6776
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6777
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6778
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6779
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5791
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
5792
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5793
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5794
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6780
5795
      ;;
6781
5796
 
6782
5797
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6783
5798
    freebsd2*)
6784
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6785
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6786
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6787
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5799
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5800
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5801
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5802
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6788
5803
      ;;
6789
5804
 
6790
5805
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6791
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
6792
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6793
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6794
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6795
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5806
    freebsd* | dragonfly*)
 
5807
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
5808
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5809
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5810
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6796
5811
      ;;
6797
5812
 
6798
5813
    hpux9*)
6799
5814
      if test "$GCC" = yes; then
6800
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5815
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6801
5816
      else
6802
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
5817
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6803
5818
      fi
6804
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6805
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6806
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5819
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5820
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5821
      _LT_TAGVAR(hardcode_direct, $1)=yes
6807
5822
 
6808
5823
      # hardcode_minus_L: Not really in the search PATH,
6809
5824
      # but as the default location of the library.
6810
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6811
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5825
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5826
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6812
5827
      ;;
6813
5828
 
6814
5829
    hpux10*)
6815
5830
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6816
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5831
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6817
5832
      else
6818
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
5833
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6819
5834
      fi
6820
5835
      if test "$with_gnu_ld" = no; then
6821
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6822
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6823
 
 
6824
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6825
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6826
 
 
 
5836
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5837
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
5838
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5839
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5840
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5841
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6827
5842
        # hardcode_minus_L: Not really in the search PATH,
6828
5843
        # but as the default location of the library.
6829
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5844
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6830
5845
      fi
6831
5846
      ;;
6832
5847
 
6834
5849
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6835
5850
        case $host_cpu in
6836
5851
        hppa*64*)
6837
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5852
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6838
5853
          ;;
6839
5854
        ia64*)
6840
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5855
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6841
5856
          ;;
6842
5857
        *)
6843
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5858
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6844
5859
          ;;
6845
5860
        esac
6846
5861
      else
6847
5862
        case $host_cpu in
6848
5863
        hppa*64*)
6849
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5864
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6850
5865
          ;;
6851
5866
        ia64*)
6852
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
5867
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6853
5868
          ;;
6854
5869
        *)
6855
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
5870
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6856
5871
          ;;
6857
5872
        esac
6858
5873
      fi
6859
5874
      if test "$with_gnu_ld" = no; then
6860
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6861
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5875
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5876
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6862
5877
 
6863
5878
        case $host_cpu in
6864
5879
        hppa*64*|ia64*)
6865
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6866
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6867
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5880
          _LT_TAGVAR(hardcode_direct, $1)=no
 
5881
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6868
5882
          ;;
6869
5883
        *)
6870
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6871
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5884
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5885
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5886
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6872
5887
 
6873
5888
          # hardcode_minus_L: Not really in the search PATH,
6874
5889
          # but as the default location of the library.
6875
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
5890
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6876
5891
          ;;
6877
5892
        esac
6878
5893
      fi
6880
5895
 
6881
5896
    irix5* | irix6* | nonstopux*)
6882
5897
      if test "$GCC" = yes; then
6883
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5898
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5899
        # Try to use the -exported_symbol ld option, if it does not
 
5900
        # work, assume that -exports_file does not work either and
 
5901
        # implicitly export all symbols.
 
5902
        save_LDFLAGS="$LDFLAGS"
 
5903
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
5904
        AC_LINK_IFELSE(int foo(void) {},
 
5905
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
5906
        )
 
5907
        LDFLAGS="$save_LDFLAGS"
6884
5908
      else
6885
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6886
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5909
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5910
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6887
5911
      fi
6888
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6889
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6890
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5912
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5913
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5914
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5915
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
5916
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6891
5917
      ;;
6892
5918
 
6893
5919
    netbsd*)
6894
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6895
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
5920
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5921
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6896
5922
      else
6897
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
5923
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6898
5924
      fi
6899
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6900
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6901
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5925
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5926
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5927
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6902
5928
      ;;
6903
5929
 
6904
5930
    newsos6)
6905
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6906
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6907
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6908
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6909
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5931
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5932
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5933
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5934
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5935
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5936
      ;;
 
5937
 
 
5938
    *nto* | *qnx*)
6910
5939
      ;;
6911
5940
 
6912
5941
    openbsd*)
6913
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6914
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6915
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6916
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6917
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6918
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6919
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5942
      if test -f /usr/libexec/ld.so; then
 
5943
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5944
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5945
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5946
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5947
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5948
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
5949
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5950
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5951
        else
 
5952
          case $host_os in
 
5953
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
5954
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
5955
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5956
             ;;
 
5957
           *)
 
5958
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
5959
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5960
             ;;
 
5961
          esac
 
5962
        fi
6920
5963
      else
6921
 
       case $host_os in
6922
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6923
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6924
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6925
 
           ;;
6926
 
         *)
6927
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6928
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6929
 
           ;;
6930
 
       esac
 
5964
        _LT_TAGVAR(ld_shlibs, $1)=no
6931
5965
      fi
6932
5966
      ;;
6933
5967
 
6934
5968
    os2*)
6935
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6936
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6937
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6938
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6939
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
5969
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5970
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5971
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5972
      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
5973
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6940
5974
      ;;
6941
5975
 
6942
5976
    osf3*)
6943
5977
      if test "$GCC" = yes; then
6944
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6945
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5978
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5979
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6946
5980
      else
6947
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6948
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
5981
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5982
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6949
5983
      fi
6950
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6951
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
5984
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
5985
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5986
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6952
5987
      ;;
6953
5988
 
6954
5989
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6955
5990
      if test "$GCC" = yes; then
6956
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6957
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6958
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5991
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
5992
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
5993
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6959
5994
      else
6960
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6961
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6962
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6963
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
5995
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
5996
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
5997
        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
5998
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6964
5999
 
6965
6000
        # Both c and cxx compiler support -rpath directly
6966
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6001
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6967
6002
      fi
6968
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6003
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6004
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6969
6005
      ;;
6970
6006
 
6971
6007
    solaris*)
6972
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
6008
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6973
6009
      if test "$GCC" = yes; then
6974
6010
        wlarc='${wl}'
6975
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6976
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6977
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6011
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6012
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6013
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6978
6014
      else
6979
 
        wlarc=''
6980
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6981
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6982
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6015
        case `$CC -V 2>&1` in
 
6016
        *"Compilers 5.0"*)
 
6017
          wlarc=''
 
6018
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6019
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6020
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
6021
          ;;
 
6022
        *)
 
6023
          wlarc='${wl}'
 
6024
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6025
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6026
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6027
          ;;
 
6028
        esac
6983
6029
      fi
6984
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6985
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6030
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6031
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6986
6032
      case $host_os in
6987
6033
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6988
6034
      *)
6989
 
        # The compiler driver will combine linker options so we
6990
 
        # cannot just pass the convience library names through
6991
 
        # without $wl, iff we do not link with $LD.
6992
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
6993
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6994
 
        case $wlarc in
6995
 
        '')
6996
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6997
 
        *)
6998
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6999
 
        esac ;;
 
6035
        # The compiler driver will combine and reorder linker options,
 
6036
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6037
        # but is careful enough not to reorder.
 
6038
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6039
        if test "$GCC" = yes; then
 
6040
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6041
        else
 
6042
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6043
        fi
 
6044
        ;;
7000
6045
      esac
7001
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6046
      _LT_TAGVAR(link_all_deplibs, $1)=yes
7002
6047
      ;;
7003
6048
 
7004
6049
    sunos4*)
7005
6050
      if test "x$host_vendor" = xsequent; then
7006
6051
        # Use $CC to link under sequent, because it throws in some extra .o
7007
6052
        # files that make .init and .fini sections work.
7008
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6053
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7009
6054
      else
7010
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6055
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7011
6056
      fi
7012
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7013
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7014
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7015
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6057
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6058
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6059
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6060
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7016
6061
      ;;
7017
6062
 
7018
6063
    sysv4)
7019
6064
      case $host_vendor in
7020
6065
        sni)
7021
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7022
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
6066
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6067
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7023
6068
        ;;
7024
6069
        siemens)
7025
6070
          ## LD is ld it makes a PLAMLIB
7026
6071
          ## CC just makes a GrossModule.
7027
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7028
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7029
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6072
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6073
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
6074
          _LT_TAGVAR(hardcode_direct, $1)=no
7030
6075
        ;;
7031
6076
        motorola)
7032
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7033
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
6077
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6078
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7034
6079
        ;;
7035
6080
      esac
7036
6081
      runpath_var='LD_RUN_PATH'
7037
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6082
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7038
6083
      ;;
7039
6084
 
7040
6085
    sysv4.3*)
7041
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7042
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7043
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
6086
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6087
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6088
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7044
6089
      ;;
7045
6090
 
7046
6091
    sysv4*MP*)
7047
6092
      if test -d /usr/nec; then
7048
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7049
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6093
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6094
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7050
6095
        runpath_var=LD_RUN_PATH
7051
6096
        hardcode_runpath_var=yes
7052
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6097
        _LT_TAGVAR(ld_shlibs, $1)=yes
7053
6098
      fi
7054
6099
      ;;
7055
6100
 
7056
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7057
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7058
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7059
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6101
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6102
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6103
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6104
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7060
6105
      runpath_var='LD_RUN_PATH'
7061
6106
 
7062
6107
      if test "$GCC" = yes; then
7063
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7064
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6108
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6109
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7065
6110
      else
7066
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7067
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6111
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6112
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7068
6113
      fi
7069
6114
      ;;
7070
6115
 
7075
6120
      # ever link correctly.  If we're not using GNU ld we use -z text
7076
6121
      # though, which does catch some bad symbols but isn't as heavy-handed
7077
6122
      # as -z defs.
7078
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7079
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7080
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7081
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7082
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7083
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7084
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7085
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6123
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6124
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6125
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6126
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6127
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6128
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6129
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6130
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7086
6131
      runpath_var='LD_RUN_PATH'
7087
6132
 
7088
6133
      if test "$GCC" = yes; then
7089
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7090
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6134
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6135
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7091
6136
      else
7092
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7093
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6137
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6138
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7094
6139
      fi
7095
6140
      ;;
7096
6141
 
7097
6142
    uts4*)
7098
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7100
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6143
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6144
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6145
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7101
6146
      ;;
7102
6147
 
7103
6148
    *)
7104
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6149
      _LT_TAGVAR(ld_shlibs, $1)=no
7105
6150
      ;;
7106
6151
    esac
 
6152
 
 
6153
    if test x$host_vendor = xsni; then
 
6154
      case $host in
 
6155
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6156
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
6157
        ;;
 
6158
      esac
 
6159
    fi
7107
6160
  fi
7108
6161
])
7109
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7110
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6162
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6163
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6164
 
 
6165
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
6166
 
 
6167
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
6168
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
6169
_LT_DECL([], [extract_expsyms_cmds], [2],
 
6170
    [The commands to extract the exported symbol list from a shared archive])
7111
6171
 
7112
6172
#
7113
6173
# Do we need to explicitly link libc?
7114
6174
#
7115
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
6175
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
7116
6176
x|xyes)
7117
6177
  # Assume -lc should be added
7118
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6178
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7119
6179
 
7120
6180
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7121
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
6181
    case $_LT_TAGVAR(archive_cmds, $1) in
7122
6182
    *'~'*)
7123
6183
      # FIXME: we may have to deal with multi-command sequences.
7124
6184
      ;;
7127
6187
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7128
6188
      # to ld, don't add -lc before -lgcc.
7129
6189
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7130
 
      $rm conftest*
7131
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6190
      $RM conftest*
 
6191
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7132
6192
 
7133
6193
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7134
6194
        soname=conftest
7135
6195
        lib=conftest
7136
6196
        libobjs=conftest.$ac_objext
7137
6197
        deplibs=
7138
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7139
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
6198
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6199
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7140
6200
        compiler_flags=-v
7141
6201
        linker_flags=-v
7142
6202
        verstring=
7143
6203
        output_objdir=.
7144
6204
        libname=conftest
7145
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7146
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7147
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6205
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6206
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
6207
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7148
6208
        then
7149
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6209
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7150
6210
        else
7151
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6211
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7152
6212
        fi
7153
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6213
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7154
6214
      else
7155
6215
        cat conftest.err 1>&5
7156
6216
      fi
7157
 
      $rm conftest*
7158
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6217
      $RM conftest*
 
6218
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7159
6219
      ;;
7160
6220
    esac
7161
6221
  fi
7162
6222
  ;;
7163
6223
esac
7164
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
7165
 
 
7166
 
 
7167
 
# _LT_AC_FILE_LTDLL_C
7168
 
# -------------------
7169
 
# Be careful that the start marker always follows a newline.
7170
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7171
 
# /* ltdll.c starts here */
7172
 
# #define WIN32_LEAN_AND_MEAN
7173
 
# #include <windows.h>
7174
 
# #undef WIN32_LEAN_AND_MEAN
7175
 
# #include <stdio.h>
7176
 
#
7177
 
# #ifndef __CYGWIN__
7178
 
# #  ifdef __CYGWIN32__
7179
 
# #    define __CYGWIN__ __CYGWIN32__
7180
 
# #  endif
7181
 
# #endif
7182
 
#
7183
 
# #ifdef __cplusplus
7184
 
# extern "C" {
7185
 
# #endif
7186
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7187
 
# #ifdef __cplusplus
7188
 
# }
7189
 
# #endif
7190
 
#
7191
 
# #ifdef __CYGWIN__
7192
 
# #include <cygwin/cygwin_dll.h>
7193
 
# DECLARE_CYGWIN_DLL( DllMain );
7194
 
# #endif
7195
 
# HINSTANCE __hDllInstance_base;
7196
 
#
7197
 
# BOOL APIENTRY
7198
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7199
 
# {
7200
 
#   __hDllInstance_base = hInst;
7201
 
#   return TRUE;
7202
 
# }
7203
 
# /* ltdll.c ends here */
7204
 
])# _LT_AC_FILE_LTDLL_C
7205
 
 
7206
 
 
7207
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6224
 
 
6225
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6226
    [Whether or not to add -lc for building shared libraries])
 
6227
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6228
    [enable_shared_with_static_runtimes], [0],
 
6229
    [Whether or not to disallow shared libs when runtime libs are static])
 
6230
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6231
    [Compiler flag to allow reflexive dlopens])
 
6232
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6233
    [Compiler flag to generate shared objects directly from archives])
 
6234
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6235
    [Whether the compiler copes with passing no objects directly])
 
6236
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6237
    [Create an old-style archive from a shared archive])
 
6238
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6239
    [Create a temporary old-style archive to link instead of a shared archive])
 
6240
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6241
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6242
_LT_TAGDECL([], [module_cmds], [2],
 
6243
    [Commands used to build a loadable module if different from building
 
6244
    a shared archive.])
 
6245
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6246
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6247
    [Whether we are building with GNU ld or not])
 
6248
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6249
    [Flag that allows shared libraries with undefined symbols to be built])
 
6250
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6251
    [Flag that enforces no undefined symbols])
 
6252
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6253
    [Flag to hardcode $libdir into a binary during linking.
 
6254
    This must work even if $libdir does not exist])
 
6255
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6256
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6257
    during linking.  This must work even if $libdir does not exist]])
 
6258
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6259
    [Whether we need a single "-rpath" flag with a separated argument])
 
6260
_LT_TAGDECL([], [hardcode_direct], [0],
 
6261
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6262
    DIR into the resulting binary])
 
6263
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6264
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6265
    DIR into the resulting binary and the resulting library dependency is
 
6266
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6267
    library is relocated])
 
6268
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6269
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6270
    into the resulting binary])
 
6271
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6272
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6273
    into the resulting binary])
 
6274
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6275
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6276
    into the library and all subsequent libraries and executables linked
 
6277
    against it])
 
6278
_LT_TAGDECL([], [inherit_rpath], [0],
 
6279
    [Set to yes if linker adds runtime paths of dependent libraries
 
6280
    to runtime path list])
 
6281
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6282
    [Whether libtool must link a program against all its dependency libraries])
 
6283
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
6284
    [Fix the shell variable $srcfile for the compiler])
 
6285
_LT_TAGDECL([], [always_export_symbols], [0],
 
6286
    [Set to "yes" if exported symbols are required])
 
6287
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6288
    [The commands to list exported symbols])
 
6289
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6290
    [Symbols that should not be listed in the preloaded symbols])
 
6291
_LT_TAGDECL([], [include_expsyms], [1],
 
6292
    [Symbols that must always be exported])
 
6293
_LT_TAGDECL([], [prelink_cmds], [2],
 
6294
    [Commands necessary for linking programs (against libraries) with templates])
 
6295
_LT_TAGDECL([], [file_list_spec], [1],
 
6296
    [Specify filename containing input files])
 
6297
dnl FIXME: Not yet implemented
 
6298
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6299
dnl    [Compiler flag to generate thread safe objects])
 
6300
])# _LT_LINKER_SHLIBS
 
6301
 
 
6302
 
 
6303
# _LT_LANG_C_CONFIG([TAG])
 
6304
# ------------------------
 
6305
# Ensure that the configuration variables for a C compiler are suitably
 
6306
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6307
# the compiler configuration to `libtool'.
 
6308
m4_defun([_LT_LANG_C_CONFIG],
 
6309
[m4_require([_LT_DECL_EGREP])dnl
 
6310
lt_save_CC="$CC"
 
6311
AC_LANG_PUSH(C)
 
6312
 
 
6313
# Source file extension for C test sources.
 
6314
ac_ext=c
 
6315
 
 
6316
# Object file extension for compiled C test sources.
 
6317
objext=o
 
6318
_LT_TAGVAR(objext, $1)=$objext
 
6319
 
 
6320
# Code to be used in simple compile tests
 
6321
lt_simple_compile_test_code="int some_variable = 0;"
 
6322
 
 
6323
# Code to be used in simple link tests
 
6324
lt_simple_link_test_code='int main(){return(0);}'
 
6325
 
 
6326
_LT_TAG_COMPILER
 
6327
# Save the default compiler, since it gets overwritten when the other
 
6328
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6329
compiler_DEFAULT=$CC
 
6330
 
 
6331
# save warnings/boilerplate of simple test code
 
6332
_LT_COMPILER_BOILERPLATE
 
6333
_LT_LINKER_BOILERPLATE
 
6334
 
 
6335
if test -n "$compiler"; then
 
6336
  _LT_COMPILER_NO_RTTI($1)
 
6337
  _LT_COMPILER_PIC($1)
 
6338
  _LT_COMPILER_C_O($1)
 
6339
  _LT_COMPILER_FILE_LOCKS($1)
 
6340
  _LT_LINKER_SHLIBS($1)
 
6341
  _LT_SYS_DYNAMIC_LINKER($1)
 
6342
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6343
  LT_SYS_DLOPEN_SELF
 
6344
  _LT_CMD_STRIPLIB
 
6345
 
 
6346
  # Report which library types will actually be built
 
6347
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6348
  AC_MSG_RESULT([$can_build_shared])
 
6349
 
 
6350
  AC_MSG_CHECKING([whether to build shared libraries])
 
6351
  test "$can_build_shared" = "no" && enable_shared=no
 
6352
 
 
6353
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6354
  # are all built from PIC.
 
6355
  case $host_os in
 
6356
  aix3*)
 
6357
    test "$enable_shared" = yes && enable_static=no
 
6358
    if test -n "$RANLIB"; then
 
6359
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6360
      postinstall_cmds='$RANLIB $lib'
 
6361
    fi
 
6362
    ;;
 
6363
 
 
6364
  aix[[4-9]]*)
 
6365
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6366
      test "$enable_shared" = yes && enable_static=no
 
6367
    fi
 
6368
    ;;
 
6369
  esac
 
6370
  AC_MSG_RESULT([$enable_shared])
 
6371
 
 
6372
  AC_MSG_CHECKING([whether to build static libraries])
 
6373
  # Make sure either enable_shared or enable_static is yes.
 
6374
  test "$enable_shared" = yes || enable_static=yes
 
6375
  AC_MSG_RESULT([$enable_static])
 
6376
 
 
6377
  _LT_CONFIG($1)
 
6378
fi
 
6379
AC_LANG_POP
 
6380
CC="$lt_save_CC"
 
6381
])# _LT_LANG_C_CONFIG
 
6382
 
 
6383
 
 
6384
# _LT_PROG_CXX
 
6385
# ------------
 
6386
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6387
# compiler, we have our own version here.
 
6388
m4_defun([_LT_PROG_CXX],
 
6389
[
 
6390
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6391
AC_PROG_CXX
 
6392
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6393
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6394
    (test "X$CXX" != "Xg++"))) ; then
 
6395
  AC_PROG_CXXCPP
 
6396
else
 
6397
  _lt_caught_CXX_error=yes
 
6398
fi
 
6399
popdef([AC_MSG_ERROR])
 
6400
])# _LT_PROG_CXX
 
6401
 
 
6402
dnl aclocal-1.4 backwards compatibility:
 
6403
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6404
 
 
6405
 
 
6406
# _LT_LANG_CXX_CONFIG([TAG])
 
6407
# --------------------------
 
6408
# Ensure that the configuration variables for a C++ compiler are suitably
 
6409
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6410
# the compiler configuration to `libtool'.
 
6411
m4_defun([_LT_LANG_CXX_CONFIG],
 
6412
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6413
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6414
m4_require([_LT_DECL_EGREP])dnl
 
6415
 
 
6416
AC_LANG_PUSH(C++)
 
6417
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6418
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6419
_LT_TAGVAR(always_export_symbols, $1)=no
 
6420
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6421
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6422
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6423
_LT_TAGVAR(hardcode_direct, $1)=no
 
6424
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6425
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6426
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6427
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6428
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6429
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6430
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6431
_LT_TAGVAR(inherit_rpath, $1)=no
 
6432
_LT_TAGVAR(module_cmds, $1)=
 
6433
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6434
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6435
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6436
_LT_TAGVAR(no_undefined_flag, $1)=
 
6437
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6438
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6439
 
 
6440
# Source file extension for C++ test sources.
 
6441
ac_ext=cpp
 
6442
 
 
6443
# Object file extension for compiled C++ test sources.
 
6444
objext=o
 
6445
_LT_TAGVAR(objext, $1)=$objext
 
6446
 
 
6447
# No sense in running all these tests if we already determined that
 
6448
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6449
# are currently assumed to apply to all compilers on this platform,
 
6450
# and will be corrupted by setting them based on a non-working compiler.
 
6451
if test "$_lt_caught_CXX_error" != yes; then
 
6452
  # Code to be used in simple compile tests
 
6453
  lt_simple_compile_test_code="int some_variable = 0;"
 
6454
 
 
6455
  # Code to be used in simple link tests
 
6456
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6457
 
 
6458
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6459
  _LT_TAG_COMPILER
 
6460
 
 
6461
  # save warnings/boilerplate of simple test code
 
6462
  _LT_COMPILER_BOILERPLATE
 
6463
  _LT_LINKER_BOILERPLATE
 
6464
 
 
6465
  # Allow CC to be a program name with arguments.
 
6466
  lt_save_CC=$CC
 
6467
  lt_save_LD=$LD
 
6468
  lt_save_GCC=$GCC
 
6469
  GCC=$GXX
 
6470
  lt_save_with_gnu_ld=$with_gnu_ld
 
6471
  lt_save_path_LD=$lt_cv_path_LD
 
6472
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6473
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6474
  else
 
6475
    $as_unset lt_cv_prog_gnu_ld
 
6476
  fi
 
6477
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6478
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6479
  else
 
6480
    $as_unset lt_cv_path_LD
 
6481
  fi
 
6482
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6483
  CC=${CXX-"c++"}
 
6484
  compiler=$CC
 
6485
  _LT_TAGVAR(compiler, $1)=$CC
 
6486
  _LT_CC_BASENAME([$compiler])
 
6487
 
 
6488
  if test -n "$compiler"; then
 
6489
    # We don't want -fno-exception when compiling C++ code, so set the
 
6490
    # no_builtin_flag separately
 
6491
    if test "$GXX" = yes; then
 
6492
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
6493
    else
 
6494
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
6495
    fi
 
6496
 
 
6497
    if test "$GXX" = yes; then
 
6498
      # Set up default GNU C++ configuration
 
6499
 
 
6500
      LT_PATH_LD
 
6501
 
 
6502
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
6503
      # archiving commands below assume that GNU ld is being used.
 
6504
      if test "$with_gnu_ld" = yes; then
 
6505
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6506
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6507
 
 
6508
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6509
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6510
 
 
6511
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
6512
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
6513
        #     investigate it a little bit more. (MM)
 
6514
        wlarc='${wl}'
 
6515
 
 
6516
        # ancient GNU ld didn't support --whole-archive et. al.
 
6517
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
6518
          $GREP 'no-whole-archive' > /dev/null; then
 
6519
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6520
        else
 
6521
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6522
        fi
 
6523
      else
 
6524
        with_gnu_ld=no
 
6525
        wlarc=
 
6526
 
 
6527
        # A generic and very simple default shared library creation
 
6528
        # command for GNU C++ for the case where it uses the native
 
6529
        # linker, instead of GNU ld.  If possible, this setting should
 
6530
        # overridden to take advantage of the native linker features on
 
6531
        # the platform it is being used on.
 
6532
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6533
      fi
 
6534
 
 
6535
      # Commands to make compiler produce verbose output that lists
 
6536
      # what "hidden" libraries, object files and flags are used when
 
6537
      # linking a shared library.
 
6538
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6539
 
 
6540
    else
 
6541
      GXX=no
 
6542
      with_gnu_ld=no
 
6543
      wlarc=
 
6544
    fi
 
6545
 
 
6546
    # PORTME: fill in a description of your system's C++ link characteristics
 
6547
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
6548
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
6549
    case $host_os in
 
6550
      aix3*)
 
6551
        # FIXME: insert proper C++ library support
 
6552
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6553
        ;;
 
6554
      aix[[4-9]]*)
 
6555
        if test "$host_cpu" = ia64; then
 
6556
          # On IA64, the linker does run time linking by default, so we don't
 
6557
          # have to do anything special.
 
6558
          aix_use_runtimelinking=no
 
6559
          exp_sym_flag='-Bexport'
 
6560
          no_entry_flag=""
 
6561
        else
 
6562
          aix_use_runtimelinking=no
 
6563
 
 
6564
          # Test if we are trying to use run time linking or normal
 
6565
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6566
          # need to do runtime linking.
 
6567
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
6568
            for ld_flag in $LDFLAGS; do
 
6569
              case $ld_flag in
 
6570
              *-brtl*)
 
6571
                aix_use_runtimelinking=yes
 
6572
                break
 
6573
                ;;
 
6574
              esac
 
6575
            done
 
6576
            ;;
 
6577
          esac
 
6578
 
 
6579
          exp_sym_flag='-bexport'
 
6580
          no_entry_flag='-bnoentry'
 
6581
        fi
 
6582
 
 
6583
        # When large executables or shared objects are built, AIX ld can
 
6584
        # have problems creating the table of contents.  If linking a library
 
6585
        # or program results in "error TOC overflow" add -mminimal-toc to
 
6586
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6587
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6588
 
 
6589
        _LT_TAGVAR(archive_cmds, $1)=''
 
6590
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6591
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6592
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6593
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6594
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6595
 
 
6596
        if test "$GXX" = yes; then
 
6597
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
6598
          # We only want to do this on AIX 4.2 and lower, the check
 
6599
          # below for broken collect2 doesn't work under 4.3+
 
6600
          collect2name=`${CC} -print-prog-name=collect2`
 
6601
          if test -f "$collect2name" &&
 
6602
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6603
          then
 
6604
            # We have reworked collect2
 
6605
            :
 
6606
          else
 
6607
            # We have old collect2
 
6608
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6609
            # It fails to find uninstalled libraries when the uninstalled
 
6610
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
6611
            # to unsupported forces relinking
 
6612
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6613
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6614
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6615
          fi
 
6616
          esac
 
6617
          shared_flag='-shared'
 
6618
          if test "$aix_use_runtimelinking" = yes; then
 
6619
            shared_flag="$shared_flag "'${wl}-G'
 
6620
          fi
 
6621
        else
 
6622
          # not using gcc
 
6623
          if test "$host_cpu" = ia64; then
 
6624
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6625
          # chokes on -Wl,-G. The following line is correct:
 
6626
          shared_flag='-G'
 
6627
          else
 
6628
            if test "$aix_use_runtimelinking" = yes; then
 
6629
              shared_flag='${wl}-G'
 
6630
            else
 
6631
              shared_flag='${wl}-bM:SRE'
 
6632
            fi
 
6633
          fi
 
6634
        fi
 
6635
 
 
6636
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
6637
        # It seems that -bexpall does not export symbols beginning with
 
6638
        # underscore (_), so it is better to generate a list of symbols to
 
6639
        # export.
 
6640
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
6641
        if test "$aix_use_runtimelinking" = yes; then
 
6642
          # Warning - without using the other runtime loading flags (-brtl),
 
6643
          # -berok will link without error, but may produce a broken library.
 
6644
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6645
          # Determine the default libpath from the value encoded in an empty
 
6646
          # executable.
 
6647
          _LT_SYS_MODULE_PATH_AIX
 
6648
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6649
 
 
6650
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6651
        else
 
6652
          if test "$host_cpu" = ia64; then
 
6653
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6654
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6655
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
6656
          else
 
6657
            # Determine the default libpath from the value encoded in an
 
6658
            # empty executable.
 
6659
            _LT_SYS_MODULE_PATH_AIX
 
6660
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6661
            # Warning - without using the other run time loading flags,
 
6662
            # -berok will link without error, but may produce a broken library.
 
6663
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6664
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6665
            # Exported symbols can be pulled into shared objects from archives
 
6666
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6667
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6668
            # This is similar to how AIX traditionally builds its shared
 
6669
            # libraries.
 
6670
            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6671
          fi
 
6672
        fi
 
6673
        ;;
 
6674
 
 
6675
      beos*)
 
6676
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6677
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6678
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6679
          # support --undefined.  This deserves some investigation.  FIXME
 
6680
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6681
        else
 
6682
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6683
        fi
 
6684
        ;;
 
6685
 
 
6686
      chorus*)
 
6687
        case $cc_basename in
 
6688
          *)
 
6689
          # FIXME: insert proper C++ library support
 
6690
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6691
          ;;
 
6692
        esac
 
6693
        ;;
 
6694
 
 
6695
      cygwin* | mingw* | pw32* | cegcc*)
 
6696
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6697
        # as there is no search path for DLLs.
 
6698
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6699
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6700
        _LT_TAGVAR(always_export_symbols, $1)=no
 
6701
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6702
 
 
6703
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
6704
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6705
          # If the export-symbols file already is a .def file (1st line
 
6706
          # is EXPORTS), use it as is; otherwise, prepend...
 
6707
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6708
            cp $export_symbols $output_objdir/$soname.def;
 
6709
          else
 
6710
            echo EXPORTS > $output_objdir/$soname.def;
 
6711
            cat $export_symbols >> $output_objdir/$soname.def;
 
6712
          fi~
 
6713
          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6714
        else
 
6715
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6716
        fi
 
6717
        ;;
 
6718
      darwin* | rhapsody*)
 
6719
        _LT_DARWIN_LINKER_FEATURES($1)
 
6720
        ;;
 
6721
 
 
6722
      dgux*)
 
6723
        case $cc_basename in
 
6724
          ec++*)
 
6725
            # FIXME: insert proper C++ library support
 
6726
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6727
            ;;
 
6728
          ghcx*)
 
6729
            # Green Hills C++ Compiler
 
6730
            # FIXME: insert proper C++ library support
 
6731
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6732
            ;;
 
6733
          *)
 
6734
            # FIXME: insert proper C++ library support
 
6735
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6736
            ;;
 
6737
        esac
 
6738
        ;;
 
6739
 
 
6740
      freebsd[[12]]*)
 
6741
        # C++ shared libraries reported to be fairly broken before
 
6742
        # switch to ELF
 
6743
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6744
        ;;
 
6745
 
 
6746
      freebsd-elf*)
 
6747
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6748
        ;;
 
6749
 
 
6750
      freebsd* | dragonfly*)
 
6751
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
6752
        # conventions
 
6753
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6754
        ;;
 
6755
 
 
6756
      gnu*)
 
6757
        ;;
 
6758
 
 
6759
      hpux9*)
 
6760
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6761
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6762
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6763
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6764
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6765
                                             # but as the default
 
6766
                                             # location of the library.
 
6767
 
 
6768
        case $cc_basename in
 
6769
          CC*)
 
6770
            # FIXME: insert proper C++ library support
 
6771
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6772
            ;;
 
6773
          aCC*)
 
6774
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6775
            # Commands to make compiler produce verbose output that lists
 
6776
            # what "hidden" libraries, object files and flags are used when
 
6777
            # linking a shared library.
 
6778
            #
 
6779
            # There doesn't appear to be a way to prevent this compiler from
 
6780
            # explicitly linking system object files so we need to strip them
 
6781
            # from the output so that they don't get included in the library
 
6782
            # dependencies.
 
6783
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6784
            ;;
 
6785
          *)
 
6786
            if test "$GXX" = yes; then
 
6787
              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6788
            else
 
6789
              # FIXME: insert proper C++ library support
 
6790
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6791
            fi
 
6792
            ;;
 
6793
        esac
 
6794
        ;;
 
6795
 
 
6796
      hpux10*|hpux11*)
 
6797
        if test $with_gnu_ld = no; then
 
6798
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6799
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6800
 
 
6801
          case $host_cpu in
 
6802
            hppa*64*|ia64*)
 
6803
              ;;
 
6804
            *)
 
6805
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6806
              ;;
 
6807
          esac
 
6808
        fi
 
6809
        case $host_cpu in
 
6810
          hppa*64*|ia64*)
 
6811
            _LT_TAGVAR(hardcode_direct, $1)=no
 
6812
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6813
            ;;
 
6814
          *)
 
6815
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
6816
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6817
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
6818
                                                 # but as the default
 
6819
                                                 # location of the library.
 
6820
            ;;
 
6821
        esac
 
6822
 
 
6823
        case $cc_basename in
 
6824
          CC*)
 
6825
            # FIXME: insert proper C++ library support
 
6826
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6827
            ;;
 
6828
          aCC*)
 
6829
            case $host_cpu in
 
6830
              hppa*64*)
 
6831
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6832
                ;;
 
6833
              ia64*)
 
6834
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6835
                ;;
 
6836
              *)
 
6837
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6838
                ;;
 
6839
            esac
 
6840
            # Commands to make compiler produce verbose output that lists
 
6841
            # what "hidden" libraries, object files and flags are used when
 
6842
            # linking a shared library.
 
6843
            #
 
6844
            # There doesn't appear to be a way to prevent this compiler from
 
6845
            # explicitly linking system object files so we need to strip them
 
6846
            # from the output so that they don't get included in the library
 
6847
            # dependencies.
 
6848
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6849
            ;;
 
6850
          *)
 
6851
            if test "$GXX" = yes; then
 
6852
              if test $with_gnu_ld = no; then
 
6853
                case $host_cpu in
 
6854
                  hppa*64*)
 
6855
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6856
                    ;;
 
6857
                  ia64*)
 
6858
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6859
                    ;;
 
6860
                  *)
 
6861
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6862
                    ;;
 
6863
                esac
 
6864
              fi
 
6865
            else
 
6866
              # FIXME: insert proper C++ library support
 
6867
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6868
            fi
 
6869
            ;;
 
6870
        esac
 
6871
        ;;
 
6872
 
 
6873
      interix[[3-9]]*)
 
6874
        _LT_TAGVAR(hardcode_direct, $1)=no
 
6875
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6876
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6877
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6878
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6879
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6880
        # default) and relocated if they conflict, which is a slow very memory
 
6881
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
6882
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6883
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6884
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6885
        _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6886
        ;;
 
6887
      irix5* | irix6*)
 
6888
        case $cc_basename in
 
6889
          CC*)
 
6890
            # SGI C++
 
6891
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
6892
 
 
6893
            # Archives containing C++ object files must be created using
 
6894
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
6895
            # necessary to make sure instantiated templates are included
 
6896
            # in the archive.
 
6897
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
6898
            ;;
 
6899
          *)
 
6900
            if test "$GXX" = yes; then
 
6901
              if test "$with_gnu_ld" = no; then
 
6902
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6903
              else
 
6904
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
6905
              fi
 
6906
            fi
 
6907
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6908
            ;;
 
6909
        esac
 
6910
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6911
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6912
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
6913
        ;;
 
6914
 
 
6915
      linux* | k*bsd*-gnu)
 
6916
        case $cc_basename in
 
6917
          KCC*)
 
6918
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6919
 
 
6920
            # KCC will only create a shared library if the output file
 
6921
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6922
            # to its proper name (with version) after linking.
 
6923
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
6924
            _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
6925
            # Commands to make compiler produce verbose output that lists
 
6926
            # what "hidden" libraries, object files and flags are used when
 
6927
            # linking a shared library.
 
6928
            #
 
6929
            # There doesn't appear to be a way to prevent this compiler from
 
6930
            # explicitly linking system object files so we need to strip them
 
6931
            # from the output so that they don't get included in the library
 
6932
            # dependencies.
 
6933
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
6934
 
 
6935
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6936
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6937
 
 
6938
            # Archives containing C++ object files must be created using
 
6939
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
6940
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
6941
            ;;
 
6942
          icpc* | ecpc* )
 
6943
            # Intel C++
 
6944
            with_gnu_ld=yes
 
6945
            # version 8.0 and above of icpc choke on multiply defined symbols
 
6946
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
6947
            # earlier do not add the objects themselves.
 
6948
            case `$CC -V 2>&1` in
 
6949
              *"Version 7."*)
 
6950
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6951
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6952
                ;;
 
6953
              *)  # Version 8.0 or newer
 
6954
                tmp_idyn=
 
6955
                case $host_cpu in
 
6956
                  ia64*) tmp_idyn=' -i_dynamic';;
 
6957
                esac
 
6958
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6959
                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6960
                ;;
 
6961
            esac
 
6962
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6963
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6964
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6965
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
6966
            ;;
 
6967
          pgCC* | pgcpp*)
 
6968
            # Portland Group C++ compiler
 
6969
            case `$CC -V` in
 
6970
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
6971
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
6972
                rm -rf $tpldir~
 
6973
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
6974
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
6975
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
6976
                rm -rf $tpldir~
 
6977
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
6978
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
6979
                $RANLIB $oldlib'
 
6980
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
6981
                rm -rf $tpldir~
 
6982
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6983
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6984
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
6985
                rm -rf $tpldir~
 
6986
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
6987
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
6988
              ;;
 
6989
            *) # Version 6 will use weak symbols
 
6990
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
6991
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
6992
              ;;
 
6993
            esac
 
6994
 
 
6995
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6996
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6997
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
6998
            ;;
 
6999
          cxx*)
 
7000
            # Compaq C++
 
7001
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7002
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
7003
 
 
7004
            runpath_var=LD_RUN_PATH
 
7005
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7006
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7007
 
 
7008
            # Commands to make compiler produce verbose output that lists
 
7009
            # what "hidden" libraries, object files and flags are used when
 
7010
            # linking a shared library.
 
7011
            #
 
7012
            # There doesn't appear to be a way to prevent this compiler from
 
7013
            # explicitly linking system object files so we need to strip them
 
7014
            # from the output so that they don't get included in the library
 
7015
            # dependencies.
 
7016
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
7017
            ;;
 
7018
          xl*)
 
7019
            # IBM XL 8.0 on PPC, with GNU ld
 
7020
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7021
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7022
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7023
            if test "x$supports_anon_versioning" = xyes; then
 
7024
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
7025
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7026
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
7027
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7028
            fi
 
7029
            ;;
 
7030
          *)
 
7031
            case `$CC -V 2>&1 | sed 5q` in
 
7032
            *Sun\ C*)
 
7033
              # Sun C++ 5.9
 
7034
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7035
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7036
              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
7037
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7038
              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7039
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
7040
 
 
7041
              # Not sure whether something based on
 
7042
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
7043
              # would be better.
 
7044
              output_verbose_link_cmd='echo'
 
7045
 
 
7046
              # Archives containing C++ object files must be created using
 
7047
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7048
              # necessary to make sure instantiated templates are included
 
7049
              # in the archive.
 
7050
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7051
              ;;
 
7052
            esac
 
7053
            ;;
 
7054
        esac
 
7055
        ;;
 
7056
 
 
7057
      lynxos*)
 
7058
        # FIXME: insert proper C++ library support
 
7059
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7060
        ;;
 
7061
 
 
7062
      m88k*)
 
7063
        # FIXME: insert proper C++ library support
 
7064
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7065
        ;;
 
7066
 
 
7067
      mvs*)
 
7068
        case $cc_basename in
 
7069
          cxx*)
 
7070
            # FIXME: insert proper C++ library support
 
7071
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7072
            ;;
 
7073
          *)
 
7074
            # FIXME: insert proper C++ library support
 
7075
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7076
            ;;
 
7077
        esac
 
7078
        ;;
 
7079
 
 
7080
      netbsd*)
 
7081
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7082
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
7083
          wlarc=
 
7084
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7085
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7086
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7087
        fi
 
7088
        # Workaround some broken pre-1.5 toolchains
 
7089
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
7090
        ;;
 
7091
 
 
7092
      *nto* | *qnx*)
 
7093
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7094
        ;;
 
7095
 
 
7096
      openbsd2*)
 
7097
        # C++ shared libraries are fairly broken
 
7098
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7099
        ;;
 
7100
 
 
7101
      openbsd*)
 
7102
        if test -f /usr/libexec/ld.so; then
 
7103
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7104
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7105
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7106
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
7107
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7108
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7109
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
7110
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7111
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7112
          fi
 
7113
          output_verbose_link_cmd=echo
 
7114
        else
 
7115
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7116
        fi
 
7117
        ;;
 
7118
 
 
7119
      osf3* | osf4* | osf5*)
 
7120
        case $cc_basename in
 
7121
          KCC*)
 
7122
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
7123
 
 
7124
            # KCC will only create a shared library if the output file
 
7125
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
7126
            # to its proper name (with version) after linking.
 
7127
            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
7128
 
 
7129
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7130
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7131
 
 
7132
            # Archives containing C++ object files must be created using
 
7133
            # the KAI C++ compiler.
 
7134
            case $host in
 
7135
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
7136
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
7137
            esac
 
7138
            ;;
 
7139
          RCC*)
 
7140
            # Rational C++ 2.4.1
 
7141
            # FIXME: insert proper C++ library support
 
7142
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7143
            ;;
 
7144
          cxx*)
 
7145
            case $host in
 
7146
              osf3*)
 
7147
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7148
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7149
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7150
                ;;
 
7151
              *)
 
7152
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7153
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
7154
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
7155
                  echo "-hidden">> $lib.exp~
 
7156
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
7157
                  $RM $lib.exp'
 
7158
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7159
                ;;
 
7160
            esac
 
7161
 
 
7162
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7163
 
 
7164
            # Commands to make compiler produce verbose output that lists
 
7165
            # what "hidden" libraries, object files and flags are used when
 
7166
            # linking a shared library.
 
7167
            #
 
7168
            # There doesn't appear to be a way to prevent this compiler from
 
7169
            # explicitly linking system object files so we need to strip them
 
7170
            # from the output so that they don't get included in the library
 
7171
            # dependencies.
 
7172
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
7173
            ;;
 
7174
          *)
 
7175
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7176
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7177
              case $host in
 
7178
                osf3*)
 
7179
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7180
                  ;;
 
7181
                *)
 
7182
                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
7183
                  ;;
 
7184
              esac
 
7185
 
 
7186
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7187
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7188
 
 
7189
              # Commands to make compiler produce verbose output that lists
 
7190
              # what "hidden" libraries, object files and flags are used when
 
7191
              # linking a shared library.
 
7192
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7193
 
 
7194
            else
 
7195
              # FIXME: insert proper C++ library support
 
7196
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7197
            fi
 
7198
            ;;
 
7199
        esac
 
7200
        ;;
 
7201
 
 
7202
      psos*)
 
7203
        # FIXME: insert proper C++ library support
 
7204
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7205
        ;;
 
7206
 
 
7207
      sunos4*)
 
7208
        case $cc_basename in
 
7209
          CC*)
 
7210
            # Sun C++ 4.x
 
7211
            # FIXME: insert proper C++ library support
 
7212
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7213
            ;;
 
7214
          lcc*)
 
7215
            # Lucid
 
7216
            # FIXME: insert proper C++ library support
 
7217
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7218
            ;;
 
7219
          *)
 
7220
            # FIXME: insert proper C++ library support
 
7221
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7222
            ;;
 
7223
        esac
 
7224
        ;;
 
7225
 
 
7226
      solaris*)
 
7227
        case $cc_basename in
 
7228
          CC*)
 
7229
            # Sun C++ 4.2, 5.x and Centerline C++
 
7230
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7231
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7232
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7233
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7234
              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7235
 
 
7236
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7237
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7238
            case $host_os in
 
7239
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7240
              *)
 
7241
                # The compiler driver will combine and reorder linker options,
 
7242
                # but understands `-z linker_flag'.
 
7243
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7244
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7245
                ;;
 
7246
            esac
 
7247
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7248
 
 
7249
            output_verbose_link_cmd='echo'
 
7250
 
 
7251
            # Archives containing C++ object files must be created using
 
7252
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7253
            # necessary to make sure instantiated templates are included
 
7254
            # in the archive.
 
7255
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7256
            ;;
 
7257
          gcx*)
 
7258
            # Green Hills C++ Compiler
 
7259
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7260
 
 
7261
            # The C++ compiler must be used to create the archive.
 
7262
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7263
            ;;
 
7264
          *)
 
7265
            # GNU C++ compiler with Solaris linker
 
7266
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7267
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7268
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7269
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7270
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7271
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7272
 
 
7273
                # Commands to make compiler produce verbose output that lists
 
7274
                # what "hidden" libraries, object files and flags are used when
 
7275
                # linking a shared library.
 
7276
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7277
              else
 
7278
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7279
                # platform.
 
7280
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7281
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7282
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7283
 
 
7284
                # Commands to make compiler produce verbose output that lists
 
7285
                # what "hidden" libraries, object files and flags are used when
 
7286
                # linking a shared library.
 
7287
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7288
              fi
 
7289
 
 
7290
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7291
              case $host_os in
 
7292
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7293
                *)
 
7294
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7295
                  ;;
 
7296
              esac
 
7297
            fi
 
7298
            ;;
 
7299
        esac
 
7300
        ;;
 
7301
 
 
7302
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7303
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7304
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7305
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7306
      runpath_var='LD_RUN_PATH'
 
7307
 
 
7308
      case $cc_basename in
 
7309
        CC*)
 
7310
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7311
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7312
          ;;
 
7313
        *)
 
7314
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7315
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7316
          ;;
 
7317
      esac
 
7318
      ;;
 
7319
 
 
7320
      sysv5* | sco3.2v5* | sco5v6*)
 
7321
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7322
        # link with -lc, and that would cause any symbols used from libc to
 
7323
        # always be unresolved, which means just about no library would
 
7324
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7325
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7326
        # as -z defs.
 
7327
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7328
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7329
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7330
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7331
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7332
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7333
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7334
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7335
        runpath_var='LD_RUN_PATH'
 
7336
 
 
7337
        case $cc_basename in
 
7338
          CC*)
 
7339
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7340
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7341
            ;;
 
7342
          *)
 
7343
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7344
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7345
            ;;
 
7346
        esac
 
7347
      ;;
 
7348
 
 
7349
      tandem*)
 
7350
        case $cc_basename in
 
7351
          NCC*)
 
7352
            # NonStop-UX NCC 3.20
 
7353
            # FIXME: insert proper C++ library support
 
7354
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7355
            ;;
 
7356
          *)
 
7357
            # FIXME: insert proper C++ library support
 
7358
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7359
            ;;
 
7360
        esac
 
7361
        ;;
 
7362
 
 
7363
      vxworks*)
 
7364
        # FIXME: insert proper C++ library support
 
7365
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7366
        ;;
 
7367
 
 
7368
      *)
 
7369
        # FIXME: insert proper C++ library support
 
7370
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7371
        ;;
 
7372
    esac
 
7373
 
 
7374
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7375
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7376
 
 
7377
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7378
    _LT_TAGVAR(LD, $1)="$LD"
 
7379
 
 
7380
    ## CAVEAT EMPTOR:
 
7381
    ## There is no encapsulation within the following macros, do not change
 
7382
    ## the running order or otherwise move them around unless you know exactly
 
7383
    ## what you are doing...
 
7384
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7385
    _LT_COMPILER_PIC($1)
 
7386
    _LT_COMPILER_C_O($1)
 
7387
    _LT_COMPILER_FILE_LOCKS($1)
 
7388
    _LT_LINKER_SHLIBS($1)
 
7389
    _LT_SYS_DYNAMIC_LINKER($1)
 
7390
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7391
 
 
7392
    _LT_CONFIG($1)
 
7393
  fi # test -n "$compiler"
 
7394
 
 
7395
  CC=$lt_save_CC
 
7396
  LDCXX=$LD
 
7397
  LD=$lt_save_LD
 
7398
  GCC=$lt_save_GCC
 
7399
  with_gnu_ld=$lt_save_with_gnu_ld
 
7400
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7401
  lt_cv_path_LD=$lt_save_path_LD
 
7402
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7403
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7404
fi # test "$_lt_caught_CXX_error" != yes
 
7405
 
 
7406
AC_LANG_POP
 
7407
])# _LT_LANG_CXX_CONFIG
 
7408
 
 
7409
 
 
7410
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7208
7411
# ---------------------------------
7209
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7210
 
 
7211
 
 
7212
 
# old names
7213
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
7214
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
7215
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
7216
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7217
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7218
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
7219
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
7220
 
 
7221
 
# This is just to silence aclocal about the macro not being used
7222
 
ifelse([AC_DISABLE_FAST_INSTALL])
7223
 
 
7224
 
AC_DEFUN([LT_AC_PROG_GCJ],
7225
 
[AC_CHECK_TOOL(GCJ, gcj, no)
7226
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7227
 
  AC_SUBST(GCJFLAGS)
7228
 
])
7229
 
 
7230
 
AC_DEFUN([LT_AC_PROG_RC],
7231
 
[AC_CHECK_TOOL(RC, windres, no)
7232
 
])
7233
 
 
 
7412
# Figure out "hidden" library dependencies from verbose
 
7413
# compiler output when linking a shared library.
 
7414
# Parse the compiler output and extract the necessary
 
7415
# objects, libraries and library flags.
 
7416
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7417
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7418
# Dependencies to place before and after the object being linked:
 
7419
_LT_TAGVAR(predep_objects, $1)=
 
7420
_LT_TAGVAR(postdep_objects, $1)=
 
7421
_LT_TAGVAR(predeps, $1)=
 
7422
_LT_TAGVAR(postdeps, $1)=
 
7423
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7424
 
 
7425
dnl we can't use the lt_simple_compile_test_code here,
 
7426
dnl because it contains code intended for an executable,
 
7427
dnl not a library.  It's possible we should let each
 
7428
dnl tag define a new lt_????_link_test_code variable,
 
7429
dnl but it's only used here...
 
7430
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7431
int a;
 
7432
void foo (void) { a = 0; }
 
7433
_LT_EOF
 
7434
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7435
class Foo
 
7436
{
 
7437
public:
 
7438
  Foo (void) { a = 0; }
 
7439
private:
 
7440
  int a;
 
7441
};
 
7442
_LT_EOF
 
7443
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7444
      subroutine foo
 
7445
      implicit none
 
7446
      integer*4 a
 
7447
      a=0
 
7448
      return
 
7449
      end
 
7450
_LT_EOF
 
7451
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7452
      subroutine foo
 
7453
      implicit none
 
7454
      integer a
 
7455
      a=0
 
7456
      return
 
7457
      end
 
7458
_LT_EOF
 
7459
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7460
public class foo {
 
7461
  private int a;
 
7462
  public void bar (void) {
 
7463
    a = 0;
 
7464
  }
 
7465
};
 
7466
_LT_EOF
 
7467
])
 
7468
dnl Parse the compiler output and extract the necessary
 
7469
dnl objects, libraries and library flags.
 
7470
if AC_TRY_EVAL(ac_compile); then
 
7471
  # Parse the compiler output and extract the necessary
 
7472
  # objects, libraries and library flags.
 
7473
 
 
7474
  # Sentinel used to keep track of whether or not we are before
 
7475
  # the conftest object file.
 
7476
  pre_test_object_deps_done=no
 
7477
 
 
7478
  for p in `eval "$output_verbose_link_cmd"`; do
 
7479
    case $p in
 
7480
 
 
7481
    -L* | -R* | -l*)
 
7482
       # Some compilers place space between "-{L,R}" and the path.
 
7483
       # Remove the space.
 
7484
       if test $p = "-L" ||
 
7485
          test $p = "-R"; then
 
7486
         prev=$p
 
7487
         continue
 
7488
       else
 
7489
         prev=
 
7490
       fi
 
7491
 
 
7492
       if test "$pre_test_object_deps_done" = no; then
 
7493
         case $p in
 
7494
         -L* | -R*)
 
7495
           # Internal compiler library paths should come after those
 
7496
           # provided the user.  The postdeps already come after the
 
7497
           # user supplied libs so there is no need to process them.
 
7498
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
7499
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
7500
           else
 
7501
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
7502
           fi
 
7503
           ;;
 
7504
         # The "-l" case would never come before the object being
 
7505
         # linked, so don't bother handling this case.
 
7506
         esac
 
7507
       else
 
7508
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
7509
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
7510
         else
 
7511
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
7512
         fi
 
7513
       fi
 
7514
       ;;
 
7515
 
 
7516
    *.$objext)
 
7517
       # This assumes that the test object file only shows up
 
7518
       # once in the compiler output.
 
7519
       if test "$p" = "conftest.$objext"; then
 
7520
         pre_test_object_deps_done=yes
 
7521
         continue
 
7522
       fi
 
7523
 
 
7524
       if test "$pre_test_object_deps_done" = no; then
 
7525
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
7526
           _LT_TAGVAR(predep_objects, $1)="$p"
 
7527
         else
 
7528
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
7529
         fi
 
7530
       else
 
7531
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
7532
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
7533
         else
 
7534
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
7535
         fi
 
7536
       fi
 
7537
       ;;
 
7538
 
 
7539
    *) ;; # Ignore the rest.
 
7540
 
 
7541
    esac
 
7542
  done
 
7543
 
 
7544
  # Clean up.
 
7545
  rm -f a.out a.exe
 
7546
else
 
7547
  echo "libtool.m4: error: problem compiling $1 test program"
 
7548
fi
 
7549
 
 
7550
$RM -f confest.$objext
 
7551
 
 
7552
# PORTME: override above test on systems where it is broken
 
7553
m4_if([$1], [CXX],
 
7554
[case $host_os in
 
7555
interix[[3-9]]*)
 
7556
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
7557
  # hack all around it, let's just trust "g++" to DTRT.
 
7558
  _LT_TAGVAR(predep_objects,$1)=
 
7559
  _LT_TAGVAR(postdep_objects,$1)=
 
7560
  _LT_TAGVAR(postdeps,$1)=
 
7561
  ;;
 
7562
 
 
7563
linux*)
 
7564
  case `$CC -V 2>&1 | sed 5q` in
 
7565
  *Sun\ C*)
 
7566
    # Sun C++ 5.9
 
7567
 
 
7568
    # The more standards-conforming stlport4 library is
 
7569
    # incompatible with the Cstd library. Avoid specifying
 
7570
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7571
    # -library=stlport4 depends on it.
 
7572
    case " $CXX $CXXFLAGS " in
 
7573
    *" -library=stlport4 "*)
 
7574
      solaris_use_stlport4=yes
 
7575
      ;;
 
7576
    esac
 
7577
 
 
7578
    if test "$solaris_use_stlport4" != yes; then
 
7579
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7580
    fi
 
7581
    ;;
 
7582
  esac
 
7583
  ;;
 
7584
 
 
7585
solaris*)
 
7586
  case $cc_basename in
 
7587
  CC*)
 
7588
    # The more standards-conforming stlport4 library is
 
7589
    # incompatible with the Cstd library. Avoid specifying
 
7590
    # it if it's in CXXFLAGS. Ignore libCrun as
 
7591
    # -library=stlport4 depends on it.
 
7592
    case " $CXX $CXXFLAGS " in
 
7593
    *" -library=stlport4 "*)
 
7594
      solaris_use_stlport4=yes
 
7595
      ;;
 
7596
    esac
 
7597
 
 
7598
    # Adding this requires a known-good setup of shared libraries for
 
7599
    # Sun compiler versions before 5.6, else PIC objects from an old
 
7600
    # archive will be linked into the output, leading to subtle bugs.
 
7601
    if test "$solaris_use_stlport4" != yes; then
 
7602
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
7603
    fi
 
7604
    ;;
 
7605
  esac
 
7606
  ;;
 
7607
esac
 
7608
])
 
7609
 
 
7610
case " $_LT_TAGVAR(postdeps, $1) " in
 
7611
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
7612
esac
 
7613
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
7614
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
7615
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
7616
fi
 
7617
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
7618
    [The directories searched by this compiler when creating a shared library])
 
7619
_LT_TAGDECL([], [predep_objects], [1],
 
7620
    [Dependencies to place before and after the objects being linked to
 
7621
    create a shared library])
 
7622
_LT_TAGDECL([], [postdep_objects], [1])
 
7623
_LT_TAGDECL([], [predeps], [1])
 
7624
_LT_TAGDECL([], [postdeps], [1])
 
7625
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
7626
    [The library search path used internally by the compiler when linking
 
7627
    a shared library])
 
7628
])# _LT_SYS_HIDDEN_LIBDEPS
 
7629
 
 
7630
 
 
7631
# _LT_PROG_F77
 
7632
# ------------
 
7633
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
7634
# if there is no fortran compiler, we have our own version here.
 
7635
m4_defun([_LT_PROG_F77],
 
7636
[
 
7637
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
7638
AC_PROG_F77
 
7639
if test -z "$F77" || test "X$F77" = "Xno"; then
 
7640
  _lt_disable_F77=yes
 
7641
fi
 
7642
popdef([AC_MSG_ERROR])
 
7643
])# _LT_PROG_F77
 
7644
 
 
7645
dnl aclocal-1.4 backwards compatibility:
 
7646
dnl AC_DEFUN([_LT_PROG_F77], [])
 
7647
 
 
7648
 
 
7649
# _LT_LANG_F77_CONFIG([TAG])
 
7650
# --------------------------
 
7651
# Ensure that the configuration variables for a Fortran 77 compiler are
 
7652
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7653
# to write the compiler configuration to `libtool'.
 
7654
m4_defun([_LT_LANG_F77_CONFIG],
 
7655
[AC_REQUIRE([_LT_PROG_F77])dnl
 
7656
AC_LANG_PUSH(Fortran 77)
 
7657
 
 
7658
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7659
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7660
_LT_TAGVAR(always_export_symbols, $1)=no
 
7661
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7662
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7663
_LT_TAGVAR(hardcode_direct, $1)=no
 
7664
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7665
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7666
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7667
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7668
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7669
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7670
_LT_TAGVAR(inherit_rpath, $1)=no
 
7671
_LT_TAGVAR(module_cmds, $1)=
 
7672
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7673
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7674
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7675
_LT_TAGVAR(no_undefined_flag, $1)=
 
7676
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7677
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7678
 
 
7679
# Source file extension for f77 test sources.
 
7680
ac_ext=f
 
7681
 
 
7682
# Object file extension for compiled f77 test sources.
 
7683
objext=o
 
7684
_LT_TAGVAR(objext, $1)=$objext
 
7685
 
 
7686
# No sense in running all these tests if we already determined that
 
7687
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
7688
# are currently assumed to apply to all compilers on this platform,
 
7689
# and will be corrupted by setting them based on a non-working compiler.
 
7690
if test "$_lt_disable_F77" != yes; then
 
7691
  # Code to be used in simple compile tests
 
7692
  lt_simple_compile_test_code="\
 
7693
      subroutine t
 
7694
      return
 
7695
      end
 
7696
"
 
7697
 
 
7698
  # Code to be used in simple link tests
 
7699
  lt_simple_link_test_code="\
 
7700
      program t
 
7701
      end
 
7702
"
 
7703
 
 
7704
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7705
  _LT_TAG_COMPILER
 
7706
 
 
7707
  # save warnings/boilerplate of simple test code
 
7708
  _LT_COMPILER_BOILERPLATE
 
7709
  _LT_LINKER_BOILERPLATE
 
7710
 
 
7711
  # Allow CC to be a program name with arguments.
 
7712
  lt_save_CC="$CC"
 
7713
  lt_save_GCC=$GCC
 
7714
  CC=${F77-"f77"}
 
7715
  compiler=$CC
 
7716
  _LT_TAGVAR(compiler, $1)=$CC
 
7717
  _LT_CC_BASENAME([$compiler])
 
7718
  GCC=$G77
 
7719
  if test -n "$compiler"; then
 
7720
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7721
    AC_MSG_RESULT([$can_build_shared])
 
7722
 
 
7723
    AC_MSG_CHECKING([whether to build shared libraries])
 
7724
    test "$can_build_shared" = "no" && enable_shared=no
 
7725
 
 
7726
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7727
    # are all built from PIC.
 
7728
    case $host_os in
 
7729
      aix3*)
 
7730
        test "$enable_shared" = yes && enable_static=no
 
7731
        if test -n "$RANLIB"; then
 
7732
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7733
          postinstall_cmds='$RANLIB $lib'
 
7734
        fi
 
7735
        ;;
 
7736
      aix[[4-9]]*)
 
7737
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7738
          test "$enable_shared" = yes && enable_static=no
 
7739
        fi
 
7740
        ;;
 
7741
    esac
 
7742
    AC_MSG_RESULT([$enable_shared])
 
7743
 
 
7744
    AC_MSG_CHECKING([whether to build static libraries])
 
7745
    # Make sure either enable_shared or enable_static is yes.
 
7746
    test "$enable_shared" = yes || enable_static=yes
 
7747
    AC_MSG_RESULT([$enable_static])
 
7748
 
 
7749
    _LT_TAGVAR(GCC, $1)="$G77"
 
7750
    _LT_TAGVAR(LD, $1)="$LD"
 
7751
 
 
7752
    ## CAVEAT EMPTOR:
 
7753
    ## There is no encapsulation within the following macros, do not change
 
7754
    ## the running order or otherwise move them around unless you know exactly
 
7755
    ## what you are doing...
 
7756
    _LT_COMPILER_PIC($1)
 
7757
    _LT_COMPILER_C_O($1)
 
7758
    _LT_COMPILER_FILE_LOCKS($1)
 
7759
    _LT_LINKER_SHLIBS($1)
 
7760
    _LT_SYS_DYNAMIC_LINKER($1)
 
7761
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7762
 
 
7763
    _LT_CONFIG($1)
 
7764
  fi # test -n "$compiler"
 
7765
 
 
7766
  GCC=$lt_save_GCC
 
7767
  CC="$lt_save_CC"
 
7768
fi # test "$_lt_disable_F77" != yes
 
7769
 
 
7770
AC_LANG_POP
 
7771
])# _LT_LANG_F77_CONFIG
 
7772
 
 
7773
 
 
7774
# _LT_PROG_FC
 
7775
# -----------
 
7776
# Since AC_PROG_FC is broken, in that it returns the empty string
 
7777
# if there is no fortran compiler, we have our own version here.
 
7778
m4_defun([_LT_PROG_FC],
 
7779
[
 
7780
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
7781
AC_PROG_FC
 
7782
if test -z "$FC" || test "X$FC" = "Xno"; then
 
7783
  _lt_disable_FC=yes
 
7784
fi
 
7785
popdef([AC_MSG_ERROR])
 
7786
])# _LT_PROG_FC
 
7787
 
 
7788
dnl aclocal-1.4 backwards compatibility:
 
7789
dnl AC_DEFUN([_LT_PROG_FC], [])
 
7790
 
 
7791
 
 
7792
# _LT_LANG_FC_CONFIG([TAG])
 
7793
# -------------------------
 
7794
# Ensure that the configuration variables for a Fortran compiler are
 
7795
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7796
# to write the compiler configuration to `libtool'.
 
7797
m4_defun([_LT_LANG_FC_CONFIG],
 
7798
[AC_REQUIRE([_LT_PROG_FC])dnl
 
7799
AC_LANG_PUSH(Fortran)
 
7800
 
 
7801
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7802
_LT_TAGVAR(allow_undefined_flag, $1)=
 
7803
_LT_TAGVAR(always_export_symbols, $1)=no
 
7804
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
7805
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
7806
_LT_TAGVAR(hardcode_direct, $1)=no
 
7807
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
7808
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
7809
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
7810
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7811
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
7812
_LT_TAGVAR(hardcode_automatic, $1)=no
 
7813
_LT_TAGVAR(inherit_rpath, $1)=no
 
7814
_LT_TAGVAR(module_cmds, $1)=
 
7815
_LT_TAGVAR(module_expsym_cmds, $1)=
 
7816
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
7817
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7818
_LT_TAGVAR(no_undefined_flag, $1)=
 
7819
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7820
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
7821
 
 
7822
# Source file extension for fc test sources.
 
7823
ac_ext=${ac_fc_srcext-f}
 
7824
 
 
7825
# Object file extension for compiled fc test sources.
 
7826
objext=o
 
7827
_LT_TAGVAR(objext, $1)=$objext
 
7828
 
 
7829
# No sense in running all these tests if we already determined that
 
7830
# the FC compiler isn't working.  Some variables (like enable_shared)
 
7831
# are currently assumed to apply to all compilers on this platform,
 
7832
# and will be corrupted by setting them based on a non-working compiler.
 
7833
if test "$_lt_disable_FC" != yes; then
 
7834
  # Code to be used in simple compile tests
 
7835
  lt_simple_compile_test_code="\
 
7836
      subroutine t
 
7837
      return
 
7838
      end
 
7839
"
 
7840
 
 
7841
  # Code to be used in simple link tests
 
7842
  lt_simple_link_test_code="\
 
7843
      program t
 
7844
      end
 
7845
"
 
7846
 
 
7847
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7848
  _LT_TAG_COMPILER
 
7849
 
 
7850
  # save warnings/boilerplate of simple test code
 
7851
  _LT_COMPILER_BOILERPLATE
 
7852
  _LT_LINKER_BOILERPLATE
 
7853
 
 
7854
  # Allow CC to be a program name with arguments.
 
7855
  lt_save_CC="$CC"
 
7856
  lt_save_GCC=$GCC
 
7857
  CC=${FC-"f95"}
 
7858
  compiler=$CC
 
7859
  GCC=$ac_cv_fc_compiler_gnu
 
7860
 
 
7861
  _LT_TAGVAR(compiler, $1)=$CC
 
7862
  _LT_CC_BASENAME([$compiler])
 
7863
 
 
7864
  if test -n "$compiler"; then
 
7865
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
7866
    AC_MSG_RESULT([$can_build_shared])
 
7867
 
 
7868
    AC_MSG_CHECKING([whether to build shared libraries])
 
7869
    test "$can_build_shared" = "no" && enable_shared=no
 
7870
 
 
7871
    # On AIX, shared libraries and static libraries use the same namespace, and
 
7872
    # are all built from PIC.
 
7873
    case $host_os in
 
7874
      aix3*)
 
7875
        test "$enable_shared" = yes && enable_static=no
 
7876
        if test -n "$RANLIB"; then
 
7877
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7878
          postinstall_cmds='$RANLIB $lib'
 
7879
        fi
 
7880
        ;;
 
7881
      aix[[4-9]]*)
 
7882
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7883
          test "$enable_shared" = yes && enable_static=no
 
7884
        fi
 
7885
        ;;
 
7886
    esac
 
7887
    AC_MSG_RESULT([$enable_shared])
 
7888
 
 
7889
    AC_MSG_CHECKING([whether to build static libraries])
 
7890
    # Make sure either enable_shared or enable_static is yes.
 
7891
    test "$enable_shared" = yes || enable_static=yes
 
7892
    AC_MSG_RESULT([$enable_static])
 
7893
 
 
7894
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
7895
    _LT_TAGVAR(LD, $1)="$LD"
 
7896
 
 
7897
    ## CAVEAT EMPTOR:
 
7898
    ## There is no encapsulation within the following macros, do not change
 
7899
    ## the running order or otherwise move them around unless you know exactly
 
7900
    ## what you are doing...
 
7901
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7902
    _LT_COMPILER_PIC($1)
 
7903
    _LT_COMPILER_C_O($1)
 
7904
    _LT_COMPILER_FILE_LOCKS($1)
 
7905
    _LT_LINKER_SHLIBS($1)
 
7906
    _LT_SYS_DYNAMIC_LINKER($1)
 
7907
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7908
 
 
7909
    _LT_CONFIG($1)
 
7910
  fi # test -n "$compiler"
 
7911
 
 
7912
  GCC=$lt_save_GCC
 
7913
  CC="$lt_save_CC"
 
7914
fi # test "$_lt_disable_FC" != yes
 
7915
 
 
7916
AC_LANG_POP
 
7917
])# _LT_LANG_FC_CONFIG
 
7918
 
 
7919
 
 
7920
# _LT_LANG_GCJ_CONFIG([TAG])
 
7921
# --------------------------
 
7922
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
7923
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7924
# to write the compiler configuration to `libtool'.
 
7925
m4_defun([_LT_LANG_GCJ_CONFIG],
 
7926
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
7927
AC_LANG_SAVE
 
7928
 
 
7929
# Source file extension for Java test sources.
 
7930
ac_ext=java
 
7931
 
 
7932
# Object file extension for compiled Java test sources.
 
7933
objext=o
 
7934
_LT_TAGVAR(objext, $1)=$objext
 
7935
 
 
7936
# Code to be used in simple compile tests
 
7937
lt_simple_compile_test_code="class foo {}"
 
7938
 
 
7939
# Code to be used in simple link tests
 
7940
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
7941
 
 
7942
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
7943
_LT_TAG_COMPILER
 
7944
 
 
7945
# save warnings/boilerplate of simple test code
 
7946
_LT_COMPILER_BOILERPLATE
 
7947
_LT_LINKER_BOILERPLATE
 
7948
 
 
7949
# Allow CC to be a program name with arguments.
 
7950
lt_save_CC="$CC"
 
7951
lt_save_GCC=$GCC
 
7952
GCC=yes
 
7953
CC=${GCJ-"gcj"}
 
7954
compiler=$CC
 
7955
_LT_TAGVAR(compiler, $1)=$CC
 
7956
_LT_TAGVAR(LD, $1)="$LD"
 
7957
_LT_CC_BASENAME([$compiler])
 
7958
 
 
7959
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
7960
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7961
 
 
7962
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
7963
 
 
7964
if test -n "$compiler"; then
 
7965
  _LT_COMPILER_NO_RTTI($1)
 
7966
  _LT_COMPILER_PIC($1)
 
7967
  _LT_COMPILER_C_O($1)
 
7968
  _LT_COMPILER_FILE_LOCKS($1)
 
7969
  _LT_LINKER_SHLIBS($1)
 
7970
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
7971
 
 
7972
  _LT_CONFIG($1)
 
7973
fi
 
7974
 
 
7975
AC_LANG_RESTORE
 
7976
 
 
7977
GCC=$lt_save_GCC
 
7978
CC="$lt_save_CC"
 
7979
])# _LT_LANG_GCJ_CONFIG
 
7980
 
 
7981
 
 
7982
# _LT_LANG_RC_CONFIG([TAG])
 
7983
# -------------------------
 
7984
# Ensure that the configuration variables for the Windows resource compiler
 
7985
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
7986
# to write the compiler configuration to `libtool'.
 
7987
m4_defun([_LT_LANG_RC_CONFIG],
 
7988
[AC_REQUIRE([LT_PROG_RC])dnl
 
7989
AC_LANG_SAVE
 
7990
 
 
7991
# Source file extension for RC test sources.
 
7992
ac_ext=rc
 
7993
 
 
7994
# Object file extension for compiled RC test sources.
 
7995
objext=o
 
7996
_LT_TAGVAR(objext, $1)=$objext
 
7997
 
 
7998
# Code to be used in simple compile tests
 
7999
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
8000
 
 
8001
# Code to be used in simple link tests
 
8002
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
8003
 
 
8004
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8005
_LT_TAG_COMPILER
 
8006
 
 
8007
# save warnings/boilerplate of simple test code
 
8008
_LT_COMPILER_BOILERPLATE
 
8009
_LT_LINKER_BOILERPLATE
 
8010
 
 
8011
# Allow CC to be a program name with arguments.
 
8012
lt_save_CC="$CC"
 
8013
lt_save_GCC=$GCC
 
8014
GCC=
 
8015
CC=${RC-"windres"}
 
8016
compiler=$CC
 
8017
_LT_TAGVAR(compiler, $1)=$CC
 
8018
_LT_CC_BASENAME([$compiler])
 
8019
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
8020
 
 
8021
if test -n "$compiler"; then
 
8022
  :
 
8023
  _LT_CONFIG($1)
 
8024
fi
 
8025
 
 
8026
GCC=$lt_save_GCC
 
8027
AC_LANG_RESTORE
 
8028
CC="$lt_save_CC"
 
8029
])# _LT_LANG_RC_CONFIG
 
8030
 
 
8031
 
 
8032
# LT_PROG_GCJ
 
8033
# -----------
 
8034
AC_DEFUN([LT_PROG_GCJ],
 
8035
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
8036
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
8037
    [AC_CHECK_TOOL(GCJ, gcj,)
 
8038
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
8039
      AC_SUBST(GCJFLAGS)])])[]dnl
 
8040
])
 
8041
 
 
8042
# Old name:
 
8043
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
8044
dnl aclocal-1.4 backwards compatibility:
 
8045
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
8046
 
 
8047
 
 
8048
# LT_PROG_RC
 
8049
# ----------
 
8050
AC_DEFUN([LT_PROG_RC],
 
8051
[AC_CHECK_TOOL(RC, windres,)
 
8052
])
 
8053
 
 
8054
# Old name:
 
8055
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
8056
dnl aclocal-1.4 backwards compatibility:
 
8057
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
8058
 
 
8059
 
 
8060
# _LT_DECL_EGREP
 
8061
# --------------
 
8062
# If we don't have a new enough Autoconf to choose the best grep
 
8063
# available, choose the one first in the user's PATH.
 
8064
m4_defun([_LT_DECL_EGREP],
 
8065
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
8066
AC_REQUIRE([AC_PROG_FGREP])dnl
 
8067
test -z "$GREP" && GREP=grep
 
8068
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
8069
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
8070
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
8071
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
8072
AC_SUBST([GREP])
 
8073
])
 
8074
 
 
8075
 
 
8076
# _LT_DECL_OBJDUMP
 
8077
# --------------
 
8078
# If we don't have a new enough Autoconf to choose the best objdump
 
8079
# available, choose the one first in the user's PATH.
 
8080
m4_defun([_LT_DECL_OBJDUMP],
 
8081
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8082
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8083
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
8084
AC_SUBST([OBJDUMP])
 
8085
])
 
8086
 
 
8087
 
 
8088
# _LT_DECL_SED
 
8089
# ------------
 
8090
# Check for a fully-functional sed program, that truncates
 
8091
# as few characters as possible.  Prefer GNU sed if found.
 
8092
m4_defun([_LT_DECL_SED],
 
8093
[AC_PROG_SED
 
8094
test -z "$SED" && SED=sed
 
8095
Xsed="$SED -e 1s/^X//"
 
8096
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
8097
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
8098
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
8099
])# _LT_DECL_SED
 
8100
 
 
8101
m4_ifndef([AC_PROG_SED], [
7234
8102
# NOTE: This macro has been submitted for inclusion into   #
7235
8103
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7236
8104
#  a released version of Autoconf we should remove this    #
7237
8105
#  macro and use it instead.                               #
7238
 
# LT_AC_PROG_SED
7239
 
# --------------
7240
 
# Check for a fully-functional sed program, that truncates
7241
 
# as few characters as possible.  Prefer GNU sed if found.
7242
 
AC_DEFUN([LT_AC_PROG_SED],
 
8106
 
 
8107
m4_defun([AC_PROG_SED],
7243
8108
[AC_MSG_CHECKING([for a sed that does not truncate output])
7244
8109
AC_CACHE_VAL(lt_cv_path_SED,
7245
8110
[# Loop through the user's path and test for sed and gsed.
7257
8122
    done
7258
8123
  done
7259
8124
done
 
8125
IFS=$as_save_IFS
7260
8126
lt_ac_max=0
7261
8127
lt_ac_count=0
7262
8128
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7289
8155
done
7290
8156
])
7291
8157
SED=$lt_cv_path_SED
 
8158
AC_SUBST([SED])
7292
8159
AC_MSG_RESULT([$SED])
7293
 
])
 
8160
])#AC_PROG_SED
 
8161
])#m4_ifndef
 
8162
 
 
8163
# Old name:
 
8164
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
8165
dnl aclocal-1.4 backwards compatibility:
 
8166
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
8167
 
 
8168
 
 
8169
# _LT_CHECK_SHELL_FEATURES
 
8170
# ------------------------
 
8171
# Find out whether the shell is Bourne or XSI compatible,
 
8172
# or has some other useful features.
 
8173
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
8174
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
8175
# Try some XSI features
 
8176
xsi_shell=no
 
8177
( _lt_dummy="a/b/c"
 
8178
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
8179
      = c,a/b,, \
 
8180
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
8181
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
8182
  && xsi_shell=yes
 
8183
AC_MSG_RESULT([$xsi_shell])
 
8184
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
8185
 
 
8186
AC_MSG_CHECKING([whether the shell understands "+="])
 
8187
lt_shell_append=no
 
8188
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
8189
    >/dev/null 2>&1 \
 
8190
  && lt_shell_append=yes
 
8191
AC_MSG_RESULT([$lt_shell_append])
 
8192
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
8193
 
 
8194
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8195
  lt_unset=unset
 
8196
else
 
8197
  lt_unset=false
 
8198
fi
 
8199
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
8200
 
 
8201
# test EBCDIC or ASCII
 
8202
case `echo X|tr X '\101'` in
 
8203
 A) # ASCII based system
 
8204
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
8205
  lt_SP2NL='tr \040 \012'
 
8206
  lt_NL2SP='tr \015\012 \040\040'
 
8207
  ;;
 
8208
 *) # EBCDIC based system
 
8209
  lt_SP2NL='tr \100 \n'
 
8210
  lt_NL2SP='tr \r\n \100\100'
 
8211
  ;;
 
8212
esac
 
8213
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
8214
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
8215
])# _LT_CHECK_SHELL_FEATURES
 
8216
 
 
8217
 
 
8218
# _LT_PROG_XSI_SHELLFNS
 
8219
# ---------------------
 
8220
# Bourne and XSI compatible variants of some useful shell functions.
 
8221
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
8222
[case $xsi_shell in
 
8223
  yes)
 
8224
    cat << \_LT_EOF >> "$cfgfile"
 
8225
 
 
8226
# func_dirname file append nondir_replacement
 
8227
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8228
# otherwise set result to NONDIR_REPLACEMENT.
 
8229
func_dirname ()
 
8230
{
 
8231
  case ${1} in
 
8232
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8233
    *  ) func_dirname_result="${3}" ;;
 
8234
  esac
 
8235
}
 
8236
 
 
8237
# func_basename file
 
8238
func_basename ()
 
8239
{
 
8240
  func_basename_result="${1##*/}"
 
8241
}
 
8242
 
 
8243
# func_dirname_and_basename file append nondir_replacement
 
8244
# perform func_basename and func_dirname in a single function
 
8245
# call:
 
8246
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
8247
#             add APPEND to the result, otherwise set result
 
8248
#             to NONDIR_REPLACEMENT.
 
8249
#             value returned in "$func_dirname_result"
 
8250
#   basename: Compute filename of FILE.
 
8251
#             value retuned in "$func_basename_result"
 
8252
# Implementation must be kept synchronized with func_dirname
 
8253
# and func_basename. For efficiency, we do not delegate to
 
8254
# those functions but instead duplicate the functionality here.
 
8255
func_dirname_and_basename ()
 
8256
{
 
8257
  case ${1} in
 
8258
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8259
    *  ) func_dirname_result="${3}" ;;
 
8260
  esac
 
8261
  func_basename_result="${1##*/}"
 
8262
}
 
8263
 
 
8264
# func_stripname prefix suffix name
 
8265
# strip PREFIX and SUFFIX off of NAME.
 
8266
# PREFIX and SUFFIX must not contain globbing or regex special
 
8267
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8268
# dot (in which case that matches only a dot).
 
8269
func_stripname ()
 
8270
{
 
8271
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8272
  # positional parameters, so assign one to ordinary parameter first.
 
8273
  func_stripname_result=${3}
 
8274
  func_stripname_result=${func_stripname_result#"${1}"}
 
8275
  func_stripname_result=${func_stripname_result%"${2}"}
 
8276
}
 
8277
 
 
8278
# func_opt_split
 
8279
func_opt_split ()
 
8280
{
 
8281
  func_opt_split_opt=${1%%=*}
 
8282
  func_opt_split_arg=${1#*=}
 
8283
}
 
8284
 
 
8285
# func_lo2o object
 
8286
func_lo2o ()
 
8287
{
 
8288
  case ${1} in
 
8289
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8290
    *)    func_lo2o_result=${1} ;;
 
8291
  esac
 
8292
}
 
8293
 
 
8294
# func_xform libobj-or-source
 
8295
func_xform ()
 
8296
{
 
8297
  func_xform_result=${1%.*}.lo
 
8298
}
 
8299
 
 
8300
# func_arith arithmetic-term...
 
8301
func_arith ()
 
8302
{
 
8303
  func_arith_result=$(( $[*] ))
 
8304
}
 
8305
 
 
8306
# func_len string
 
8307
# STRING may not start with a hyphen.
 
8308
func_len ()
 
8309
{
 
8310
  func_len_result=${#1}
 
8311
}
 
8312
 
 
8313
_LT_EOF
 
8314
    ;;
 
8315
  *) # Bourne compatible functions.
 
8316
    cat << \_LT_EOF >> "$cfgfile"
 
8317
 
 
8318
# func_dirname file append nondir_replacement
 
8319
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8320
# otherwise set result to NONDIR_REPLACEMENT.
 
8321
func_dirname ()
 
8322
{
 
8323
  # Extract subdirectory from the argument.
 
8324
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
8325
  if test "X$func_dirname_result" = "X${1}"; then
 
8326
    func_dirname_result="${3}"
 
8327
  else
 
8328
    func_dirname_result="$func_dirname_result${2}"
 
8329
  fi
 
8330
}
 
8331
 
 
8332
# func_basename file
 
8333
func_basename ()
 
8334
{
 
8335
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
8336
}
 
8337
 
 
8338
dnl func_dirname_and_basename
 
8339
dnl A portable version of this function is already defined in general.m4sh
 
8340
dnl so there is no need for it here.
 
8341
 
 
8342
# func_stripname prefix suffix name
 
8343
# strip PREFIX and SUFFIX off of NAME.
 
8344
# PREFIX and SUFFIX must not contain globbing or regex special
 
8345
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8346
# dot (in which case that matches only a dot).
 
8347
# func_strip_suffix prefix name
 
8348
func_stripname ()
 
8349
{
 
8350
  case ${2} in
 
8351
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8352
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8353
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8354
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8355
  esac
 
8356
}
 
8357
 
 
8358
# sed scripts:
 
8359
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
8360
my_sed_long_arg='1s/^-[[^=]]*=//'
 
8361
 
 
8362
# func_opt_split
 
8363
func_opt_split ()
 
8364
{
 
8365
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8366
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8367
}
 
8368
 
 
8369
# func_lo2o object
 
8370
func_lo2o ()
 
8371
{
 
8372
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8373
}
 
8374
 
 
8375
# func_xform libobj-or-source
 
8376
func_xform ()
 
8377
{
 
8378
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8379
}
 
8380
 
 
8381
# func_arith arithmetic-term...
 
8382
func_arith ()
 
8383
{
 
8384
  func_arith_result=`expr "$[@]"`
 
8385
}
 
8386
 
 
8387
# func_len string
 
8388
# STRING may not start with a hyphen.
 
8389
func_len ()
 
8390
{
 
8391
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
8392
}
 
8393
 
 
8394
_LT_EOF
 
8395
esac
 
8396
 
 
8397
case $lt_shell_append in
 
8398
  yes)
 
8399
    cat << \_LT_EOF >> "$cfgfile"
 
8400
 
 
8401
# func_append var value
 
8402
# Append VALUE to the end of shell variable VAR.
 
8403
func_append ()
 
8404
{
 
8405
  eval "$[1]+=\$[2]"
 
8406
}
 
8407
_LT_EOF
 
8408
    ;;
 
8409
  *)
 
8410
    cat << \_LT_EOF >> "$cfgfile"
 
8411
 
 
8412
# func_append var value
 
8413
# Append VALUE to the end of shell variable VAR.
 
8414
func_append ()
 
8415
{
 
8416
  eval "$[1]=\$$[1]\$[2]"
 
8417
}
 
8418
 
 
8419
_LT_EOF
 
8420
    ;;
 
8421
  esac
 
8422
])
 
8423
 
 
8424
# Helper functions for option handling.                    -*- Autoconf -*-
 
8425
#
 
8426
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8427
#   Written by Gary V. Vaughan, 2004
 
8428
#
 
8429
# This file is free software; the Free Software Foundation gives
 
8430
# unlimited permission to copy and/or distribute it, with or without
 
8431
# modifications, as long as this notice is preserved.
 
8432
 
 
8433
# serial 6 ltoptions.m4
 
8434
 
 
8435
# This is to help aclocal find these macros, as it can't see m4_define.
 
8436
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8437
 
 
8438
 
 
8439
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8440
# ------------------------------------------
 
8441
m4_define([_LT_MANGLE_OPTION],
 
8442
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8443
 
 
8444
 
 
8445
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8446
# ---------------------------------------
 
8447
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8448
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8449
# saved as a flag.
 
8450
m4_define([_LT_SET_OPTION],
 
8451
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8452
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8453
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8454
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8455
])
 
8456
 
 
8457
 
 
8458
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8459
# ------------------------------------------------------------
 
8460
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8461
m4_define([_LT_IF_OPTION],
 
8462
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8463
 
 
8464
 
 
8465
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8466
# -------------------------------------------------------
 
8467
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8468
# are set.
 
8469
m4_define([_LT_UNLESS_OPTIONS],
 
8470
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8471
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8472
                      [m4_define([$0_found])])])[]dnl
 
8473
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8474
])[]dnl
 
8475
])
 
8476
 
 
8477
 
 
8478
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8479
# ----------------------------------------
 
8480
# OPTION-LIST is a space-separated list of Libtool options associated
 
8481
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8482
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8483
# the unknown option and exit.
 
8484
m4_defun([_LT_SET_OPTIONS],
 
8485
[# Set options
 
8486
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8487
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8488
 
 
8489
m4_if([$1],[LT_INIT],[
 
8490
  dnl
 
8491
  dnl Simply set some default values (i.e off) if boolean options were not
 
8492
  dnl specified:
 
8493
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
8494
  ])
 
8495
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
8496
  ])
 
8497
  dnl
 
8498
  dnl If no reference was made to various pairs of opposing options, then
 
8499
  dnl we run the default mode handler for the pair.  For example, if neither
 
8500
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
8501
  dnl archives by default:
 
8502
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
8503
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
8504
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
8505
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
8506
                   [_LT_ENABLE_FAST_INSTALL])
 
8507
  ])
 
8508
])# _LT_SET_OPTIONS
 
8509
 
 
8510
 
 
8511
 
 
8512
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
8513
# -----------------------------------------
 
8514
m4_define([_LT_MANGLE_DEFUN],
 
8515
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
8516
 
 
8517
 
 
8518
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
8519
# -----------------------------------------------
 
8520
m4_define([LT_OPTION_DEFINE],
 
8521
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
8522
])# LT_OPTION_DEFINE
 
8523
 
 
8524
 
 
8525
# dlopen
 
8526
# ------
 
8527
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
8528
])
 
8529
 
 
8530
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
8531
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
8532
AC_DIAGNOSE([obsolete],
 
8533
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8534
put the `dlopen' option into LT_INIT's first parameter.])
 
8535
])
 
8536
 
 
8537
dnl aclocal-1.4 backwards compatibility:
 
8538
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
8539
 
 
8540
 
 
8541
# win32-dll
 
8542
# ---------
 
8543
# Declare package support for building win32 dll's.
 
8544
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
8545
[enable_win32_dll=yes
 
8546
 
 
8547
case $host in
 
8548
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
8549
  AC_CHECK_TOOL(AS, as, false)
 
8550
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
8551
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8552
  ;;
 
8553
esac
 
8554
 
 
8555
test -z "$AS" && AS=as
 
8556
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
8557
 
 
8558
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8559
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
8560
 
 
8561
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8562
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
8563
])# win32-dll
 
8564
 
 
8565
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
8566
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
8567
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
8568
AC_DIAGNOSE([obsolete],
 
8569
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8570
put the `win32-dll' option into LT_INIT's first parameter.])
 
8571
])
 
8572
 
 
8573
dnl aclocal-1.4 backwards compatibility:
 
8574
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
8575
 
 
8576
 
 
8577
# _LT_ENABLE_SHARED([DEFAULT])
 
8578
# ----------------------------
 
8579
# implement the --enable-shared flag, and supports the `shared' and
 
8580
# `disable-shared' LT_INIT options.
 
8581
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8582
m4_define([_LT_ENABLE_SHARED],
 
8583
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8584
AC_ARG_ENABLE([shared],
 
8585
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
8586
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
8587
    [p=${PACKAGE-default}
 
8588
    case $enableval in
 
8589
    yes) enable_shared=yes ;;
 
8590
    no) enable_shared=no ;;
 
8591
    *)
 
8592
      enable_shared=no
 
8593
      # Look at the argument we got.  We use all the common list separators.
 
8594
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8595
      for pkg in $enableval; do
 
8596
        IFS="$lt_save_ifs"
 
8597
        if test "X$pkg" = "X$p"; then
 
8598
          enable_shared=yes
 
8599
        fi
 
8600
      done
 
8601
      IFS="$lt_save_ifs"
 
8602
      ;;
 
8603
    esac],
 
8604
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
8605
 
 
8606
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
8607
        [Whether or not to build shared libraries])
 
8608
])# _LT_ENABLE_SHARED
 
8609
 
 
8610
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
8611
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
8612
 
 
8613
# Old names:
 
8614
AC_DEFUN([AC_ENABLE_SHARED],
 
8615
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
8616
])
 
8617
 
 
8618
AC_DEFUN([AC_DISABLE_SHARED],
 
8619
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
8620
])
 
8621
 
 
8622
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
8623
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
8624
 
 
8625
dnl aclocal-1.4 backwards compatibility:
 
8626
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
8627
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
8628
 
 
8629
 
 
8630
 
 
8631
# _LT_ENABLE_STATIC([DEFAULT])
 
8632
# ----------------------------
 
8633
# implement the --enable-static flag, and support the `static' and
 
8634
# `disable-static' LT_INIT options.
 
8635
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8636
m4_define([_LT_ENABLE_STATIC],
 
8637
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8638
AC_ARG_ENABLE([static],
 
8639
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
8640
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
8641
    [p=${PACKAGE-default}
 
8642
    case $enableval in
 
8643
    yes) enable_static=yes ;;
 
8644
    no) enable_static=no ;;
 
8645
    *)
 
8646
     enable_static=no
 
8647
      # Look at the argument we got.  We use all the common list separators.
 
8648
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8649
      for pkg in $enableval; do
 
8650
        IFS="$lt_save_ifs"
 
8651
        if test "X$pkg" = "X$p"; then
 
8652
          enable_static=yes
 
8653
        fi
 
8654
      done
 
8655
      IFS="$lt_save_ifs"
 
8656
      ;;
 
8657
    esac],
 
8658
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
8659
 
 
8660
    _LT_DECL([build_old_libs], [enable_static], [0],
 
8661
        [Whether or not to build static libraries])
 
8662
])# _LT_ENABLE_STATIC
 
8663
 
 
8664
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
8665
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
8666
 
 
8667
# Old names:
 
8668
AC_DEFUN([AC_ENABLE_STATIC],
 
8669
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
8670
])
 
8671
 
 
8672
AC_DEFUN([AC_DISABLE_STATIC],
 
8673
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
8674
])
 
8675
 
 
8676
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
8677
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
8678
 
 
8679
dnl aclocal-1.4 backwards compatibility:
 
8680
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
8681
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
8682
 
 
8683
 
 
8684
 
 
8685
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
8686
# ----------------------------------
 
8687
# implement the --enable-fast-install flag, and support the `fast-install'
 
8688
# and `disable-fast-install' LT_INIT options.
 
8689
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
8690
m4_define([_LT_ENABLE_FAST_INSTALL],
 
8691
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
8692
AC_ARG_ENABLE([fast-install],
 
8693
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
8694
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
8695
    [p=${PACKAGE-default}
 
8696
    case $enableval in
 
8697
    yes) enable_fast_install=yes ;;
 
8698
    no) enable_fast_install=no ;;
 
8699
    *)
 
8700
      enable_fast_install=no
 
8701
      # Look at the argument we got.  We use all the common list separators.
 
8702
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8703
      for pkg in $enableval; do
 
8704
        IFS="$lt_save_ifs"
 
8705
        if test "X$pkg" = "X$p"; then
 
8706
          enable_fast_install=yes
 
8707
        fi
 
8708
      done
 
8709
      IFS="$lt_save_ifs"
 
8710
      ;;
 
8711
    esac],
 
8712
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
8713
 
 
8714
_LT_DECL([fast_install], [enable_fast_install], [0],
 
8715
         [Whether or not to optimize for fast installation])dnl
 
8716
])# _LT_ENABLE_FAST_INSTALL
 
8717
 
 
8718
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
8719
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
8720
 
 
8721
# Old names:
 
8722
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
8723
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
8724
AC_DIAGNOSE([obsolete],
 
8725
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8726
the `fast-install' option into LT_INIT's first parameter.])
 
8727
])
 
8728
 
 
8729
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
8730
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
8731
AC_DIAGNOSE([obsolete],
 
8732
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
8733
the `disable-fast-install' option into LT_INIT's first parameter.])
 
8734
])
 
8735
 
 
8736
dnl aclocal-1.4 backwards compatibility:
 
8737
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
8738
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
8739
 
 
8740
 
 
8741
# _LT_WITH_PIC([MODE])
 
8742
# --------------------
 
8743
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
8744
# LT_INIT options.
 
8745
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
8746
m4_define([_LT_WITH_PIC],
 
8747
[AC_ARG_WITH([pic],
 
8748
    [AS_HELP_STRING([--with-pic],
 
8749
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
8750
    [pic_mode="$withval"],
 
8751
    [pic_mode=default])
 
8752
 
 
8753
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
8754
 
 
8755
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
8756
])# _LT_WITH_PIC
 
8757
 
 
8758
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
8759
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
8760
 
 
8761
# Old name:
 
8762
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
8763
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
8764
AC_DIAGNOSE([obsolete],
 
8765
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
8766
put the `pic-only' option into LT_INIT's first parameter.])
 
8767
])
 
8768
 
 
8769
dnl aclocal-1.4 backwards compatibility:
 
8770
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
8771
 
 
8772
 
 
8773
m4_define([_LTDL_MODE], [])
 
8774
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
8775
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
8776
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
8777
                 [m4_define([_LTDL_MODE], [recursive])])
 
8778
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
8779
                 [m4_define([_LTDL_MODE], [subproject])])
 
8780
 
 
8781
m4_define([_LTDL_TYPE], [])
 
8782
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
8783
                 [m4_define([_LTDL_TYPE], [installable])])
 
8784
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
8785
                 [m4_define([_LTDL_TYPE], [convenience])])
 
8786
 
 
8787
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
8788
#
 
8789
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8790
# Written by Gary V. Vaughan, 2004
 
8791
#
 
8792
# This file is free software; the Free Software Foundation gives
 
8793
# unlimited permission to copy and/or distribute it, with or without
 
8794
# modifications, as long as this notice is preserved.
 
8795
 
 
8796
# serial 6 ltsugar.m4
 
8797
 
 
8798
# This is to help aclocal find these macros, as it can't see m4_define.
 
8799
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
8800
 
 
8801
 
 
8802
# lt_join(SEP, ARG1, [ARG2...])
 
8803
# -----------------------------
 
8804
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
8805
# associated separator.
 
8806
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
8807
# versions in m4sugar had bugs.
 
8808
m4_define([lt_join],
 
8809
[m4_if([$#], [1], [],
 
8810
       [$#], [2], [[$2]],
 
8811
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
8812
m4_define([_lt_join],
 
8813
[m4_if([$#$2], [2], [],
 
8814
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
8815
 
 
8816
 
 
8817
# lt_car(LIST)
 
8818
# lt_cdr(LIST)
 
8819
# ------------
 
8820
# Manipulate m4 lists.
 
8821
# These macros are necessary as long as will still need to support
 
8822
# Autoconf-2.59 which quotes differently.
 
8823
m4_define([lt_car], [[$1]])
 
8824
m4_define([lt_cdr],
 
8825
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
8826
       [$#], 1, [],
 
8827
       [m4_dquote(m4_shift($@))])])
 
8828
m4_define([lt_unquote], $1)
 
8829
 
 
8830
 
 
8831
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
8832
# ------------------------------------------
 
8833
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
8834
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
8835
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
8836
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
8837
# than defined and empty).
 
8838
#
 
8839
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
8840
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
8841
m4_define([lt_append],
 
8842
[m4_define([$1],
 
8843
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
8844
 
 
8845
 
 
8846
 
 
8847
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
8848
# ----------------------------------------------------------
 
8849
# Produce a SEP delimited list of all paired combinations of elements of
 
8850
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
8851
# has the form PREFIXmINFIXSUFFIXn.
 
8852
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
8853
m4_define([lt_combine],
 
8854
[m4_if(m4_eval([$# > 3]), [1],
 
8855
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
8856
[[m4_foreach([_Lt_prefix], [$2],
 
8857
             [m4_foreach([_Lt_suffix],
 
8858
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
8859
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
8860
 
 
8861
 
 
8862
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
8863
# -----------------------------------------------------------------------
 
8864
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
8865
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
8866
m4_define([lt_if_append_uniq],
 
8867
[m4_ifdef([$1],
 
8868
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
8869
                 [lt_append([$1], [$2], [$3])$4],
 
8870
                 [$5])],
 
8871
          [lt_append([$1], [$2], [$3])$4])])
 
8872
 
 
8873
 
 
8874
# lt_dict_add(DICT, KEY, VALUE)
 
8875
# -----------------------------
 
8876
m4_define([lt_dict_add],
 
8877
[m4_define([$1($2)], [$3])])
 
8878
 
 
8879
 
 
8880
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
8881
# --------------------------------------------
 
8882
m4_define([lt_dict_add_subkey],
 
8883
[m4_define([$1($2:$3)], [$4])])
 
8884
 
 
8885
 
 
8886
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
8887
# ----------------------------------
 
8888
m4_define([lt_dict_fetch],
 
8889
[m4_ifval([$3],
 
8890
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
8891
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
8892
 
 
8893
 
 
8894
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
8895
# -----------------------------------------------------------------
 
8896
m4_define([lt_if_dict_fetch],
 
8897
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
8898
        [$5],
 
8899
    [$6])])
 
8900
 
 
8901
 
 
8902
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
8903
# --------------------------------------------------------------
 
8904
m4_define([lt_dict_filter],
 
8905
[m4_if([$5], [], [],
 
8906
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
8907
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
8908
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
8909
])
 
8910
 
 
8911
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
8912
#
 
8913
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
8914
#   Written by Scott James Remnant, 2004
 
8915
#
 
8916
# This file is free software; the Free Software Foundation gives
 
8917
# unlimited permission to copy and/or distribute it, with or without
 
8918
# modifications, as long as this notice is preserved.
 
8919
 
 
8920
# Generated from ltversion.in.
 
8921
 
 
8922
# serial 3012 ltversion.m4
 
8923
# This file is part of GNU Libtool
 
8924
 
 
8925
m4_define([LT_PACKAGE_VERSION], [2.2.6])
 
8926
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
8927
 
 
8928
AC_DEFUN([LTVERSION_VERSION],
 
8929
[macro_version='2.2.6'
 
8930
macro_revision='1.3012'
 
8931
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
8932
_LT_DECL(, macro_revision, 0)
 
8933
])
 
8934
 
 
8935
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
8936
#
 
8937
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
8938
#   Written by Scott James Remnant, 2004.
 
8939
#
 
8940
# This file is free software; the Free Software Foundation gives
 
8941
# unlimited permission to copy and/or distribute it, with or without
 
8942
# modifications, as long as this notice is preserved.
 
8943
 
 
8944
# serial 4 lt~obsolete.m4
 
8945
 
 
8946
# These exist entirely to fool aclocal when bootstrapping libtool.
 
8947
#
 
8948
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
8949
# which have later been changed to m4_define as they aren't part of the
 
8950
# exported API, or moved to Autoconf or Automake where they belong.
 
8951
#
 
8952
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
8953
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
8954
# using a macro with the same name in our local m4/libtool.m4 it'll
 
8955
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
8956
# and doesn't know about Autoconf macros at all.)
 
8957
#
 
8958
# So we provide this file, which has a silly filename so it's always
 
8959
# included after everything else.  This provides aclocal with the
 
8960
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
8961
# because those macros already exist, or will be overwritten later.
 
8962
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
8963
#
 
8964
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
8965
# Yes, that means every name once taken will need to remain here until
 
8966
# we give up compatibility with versions before 1.7, at which point
 
8967
# we need to keep only those names which we still refer to.
 
8968
 
 
8969
# This is to help aclocal find these macros, as it can't see m4_define.
 
8970
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
8971
 
 
8972
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
8973
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
8974
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
8975
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
8976
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
8977
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
8978
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
8979
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
8980
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
8981
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
8982
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
8983
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
8984
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
8985
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
8986
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
8987
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
8988
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
8989
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
8990
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
8991
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
8992
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
8993
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
8994
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
8995
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
8996
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
8997
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
8998
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
8999
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
9000
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
9001
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
9002
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
9003
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
9004
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
9005
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
9006
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
9007
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
9008
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
9009
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
9010
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
9011
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
9012
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
9013
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
9014
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
9015
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
9016
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
9017
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
9018
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
9019
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
9020
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
9021
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
9022
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
9023
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
9024
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
9025
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
9026
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7294
9027
 
7295
9028
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
7296
9029
7360
9093
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7361
9094
# ---------------------------------------------
7362
9095
m4_define([_PKG_CONFIG],
7363
 
[if test -n "$PKG_CONFIG"; then
7364
 
    if test -n "$$1"; then
7365
 
        pkg_cv_[]$1="$$1"
7366
 
    else
7367
 
        PKG_CHECK_EXISTS([$3],
7368
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7369
 
                         [pkg_failed=yes])
7370
 
    fi
7371
 
else
7372
 
        pkg_failed=untried
 
9096
[if test -n "$$1"; then
 
9097
    pkg_cv_[]$1="$$1"
 
9098
 elif test -n "$PKG_CONFIG"; then
 
9099
    PKG_CHECK_EXISTS([$3],
 
9100
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9101
                     [pkg_failed=yes])
 
9102
 else
 
9103
    pkg_failed=untried
7373
9104
fi[]dnl
7374
9105
])# _PKG_CONFIG
7375
9106
 
7413
9144
if test $pkg_failed = yes; then
7414
9145
        _PKG_SHORT_ERRORS_SUPPORTED
7415
9146
        if test $_pkg_short_errors_supported = yes; then
7416
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
9147
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
7417
9148
        else 
7418
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
9149
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
7419
9150
        fi
7420
9151
        # Put the nasty error message in config.log where it belongs
7421
9152
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7440
9171
 
7441
9172
_PKG_TEXT
7442
9173
 
7443
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
9174
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7444
9175
                [$4])
7445
9176
else
7446
9177
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7450
9181
fi[]dnl
7451
9182
])# PKG_CHECK_MODULES
7452
9183
 
7453
 
 
7454
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
7455
 
#   Free Software Foundation, Inc.
7456
 
 
7457
 
# This program is free software; you can redistribute it and/or modify
7458
 
# it under the terms of the GNU General Public License as published by
7459
 
# the Free Software Foundation; either version 2, or (at your option)
7460
 
# any later version.
7461
 
 
7462
 
# This program is distributed in the hope that it will be useful,
7463
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7464
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7465
 
# GNU General Public License for more details.
7466
 
 
7467
 
# You should have received a copy of the GNU General Public License
7468
 
# along with this program; if not, write to the Free Software
7469
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7470
 
# 02111-1307, USA.
7471
 
 
7472
 
# serial 7
7473
 
 
7474
 
# AM_PATH_LISPDIR
7475
 
# ---------------
7476
 
AC_DEFUN([AM_PATH_LISPDIR],
7477
 
[AC_ARG_WITH(lispdir,
7478
 
 [  --with-lispdir          Override the default lisp directory ],
7479
 
 [ lispdir="$withval"
7480
 
   AC_MSG_CHECKING([where .elc files should go])
7481
 
   AC_MSG_RESULT([$lispdir])],
7482
 
 [
7483
 
 # If set to t, that means we are running in a shell under Emacs.
7484
 
 # If you have an Emacs named "t", then use the full path.
7485
 
 test x"$EMACS" = xt && EMACS=
7486
 
 AC_CHECK_PROGS(EMACS, emacs xemacs, no)
7487
 
 if test $EMACS != "no"; then
7488
 
   if test x${lispdir+set} != xset; then
7489
 
     AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir],
7490
 
       [# If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
7491
 
  # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
7492
 
  #  which is non-obvious for non-emacs users.
7493
 
  # Redirecting /dev/null should help a bit; pity we can't detect "broken"
7494
 
  #  emacsen earlier and avoid running this altogether.
7495
 
  AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
7496
 
        am_cv_lispdir=`sed -n \
7497
 
       -e 's,/$,,' \
7498
 
       -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
7499
 
       -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
7500
 
       conftest.out`
7501
 
       rm conftest.out
7502
 
       if test -z "$am_cv_lispdir"; then
7503
 
         am_cv_lispdir='${datadir}/emacs/site-lisp'
7504
 
       fi
7505
 
     ])
7506
 
     lispdir="$am_cv_lispdir"
7507
 
   fi
7508
 
 fi
7509
 
])
7510
 
AC_SUBST(lispdir)
7511
 
])# AM_PATH_LISPDIR
7512
 
 
7513
 
AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
7514