~ubuntu-branches/ubuntu/raring/libcddb/raring

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-01-17 18:24:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100117182443-lnkwqi0fvdc5c4jg
Tags: 1.3.2-0ubuntu1
* New upstream release.
 - Fix a crash on aqualung (LP: #316056)
* debian/control:
 - Build-depends on libcdio-dev (>= 0.76).
 - Add Section libs.
 - Use ${binary:Version} instead of ${Source-Version} substvar.
 - Add missing ${misc:Depends}.
 - Build-depends on debhelper (>= 5.0.0).
* debian/rules:
 - Update SONAME minor version.
 - Don't ignore error on distclean.
 - Use debian/compat instead of using export DH_COMPAT.
* debian/*.install:
 - Remove unused /usr/lib/include/* location.
* debian/libcddb2.postinst & libcddb2.postrm:
 - Remove, it's automatically handle by debhelper.

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.10.2 -*- 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  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
 
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
15
 
 
16
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
17
 
 
18
 
# This program is free software; you can redistribute it and/or modify
19
 
# it under the terms of the GNU General Public License as published by
20
 
# the Free Software Foundation; either version 2, or (at your option)
21
 
# any later version.
22
 
 
23
 
# This program is distributed in the hope that it will be useful,
24
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26
 
# GNU General Public License for more details.
27
 
 
28
 
# You should have received a copy of the GNU General Public License
29
 
# along with this program; if not, write to the Free Software
30
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
31
 
# 02111-1307, USA.
32
 
 
33
 
AC_PREREQ([2.52])
34
 
 
35
 
# serial 6
36
 
 
37
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
38
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
39
 
 
40
 
# Do all the work for Automake.                            -*- Autoconf -*-
41
 
 
42
 
# This macro actually does too much some checks are only needed if
43
 
# your package does certain things.  But this isn't really a big deal.
44
 
 
45
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
46
 
# Free Software Foundation, Inc.
47
 
 
48
 
# This program is free software; you can redistribute it and/or modify
49
 
# it under the terms of the GNU General Public License as published by
50
 
# the Free Software Foundation; either version 2, or (at your option)
51
 
# any later version.
52
 
 
53
 
# This program is distributed in the hope that it will be useful,
54
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
55
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
56
 
# GNU General Public License for more details.
57
 
 
58
 
# You should have received a copy of the GNU General Public License
59
 
# along with this program; if not, write to the Free Software
60
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
61
 
# 02111-1307, USA.
62
 
 
63
 
# serial 10
64
 
 
65
 
AC_PREREQ([2.54])
66
 
 
67
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
68
 
# the ones we care about.
69
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
70
 
 
71
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
72
 
# AM_INIT_AUTOMAKE([OPTIONS])
73
 
# -----------------------------------------------
74
 
# The call with PACKAGE and VERSION arguments is the old style
75
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
76
 
# and VERSION should now be passed to AC_INIT and removed from
77
 
# the call to AM_INIT_AUTOMAKE.
78
 
# We support both call styles for the transition.  After
79
 
# the next Automake release, Autoconf can make the AC_INIT
80
 
# arguments mandatory, and then we can depend on a new Autoconf
81
 
# release and drop the old call support.
82
 
AC_DEFUN([AM_INIT_AUTOMAKE],
83
 
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
84
 
 AC_REQUIRE([AC_PROG_INSTALL])dnl
85
 
# test to see if srcdir already configured
86
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
87
 
   test -f $srcdir/config.status; then
88
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
89
 
fi
90
 
 
91
 
# test whether we have cygpath
92
 
if test -z "$CYGPATH_W"; then
93
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
94
 
    CYGPATH_W='cygpath -w'
95
 
  else
96
 
    CYGPATH_W=echo
97
 
  fi
98
 
fi
99
 
AC_SUBST([CYGPATH_W])
100
 
 
101
 
# Define the identity of the package.
102
 
dnl Distinguish between old-style and new-style calls.
103
 
m4_ifval([$2],
104
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
105
 
 AC_SUBST([PACKAGE], [$1])dnl
106
 
 AC_SUBST([VERSION], [$2])],
107
 
[_AM_SET_OPTIONS([$1])dnl
108
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
109
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
110
 
 
111
 
_AM_IF_OPTION([no-define],,
112
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
113
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
114
 
 
115
 
# Some tools Automake needs.
116
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
117
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
118
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
119
 
AM_MISSING_PROG(AUTOCONF, autoconf)
120
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
121
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
122
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
123
 
AM_MISSING_PROG(AMTAR, tar)
124
 
AM_PROG_INSTALL_SH
125
 
AM_PROG_INSTALL_STRIP
126
 
# We need awk for the "check" target.  The system "awk" is bad on
127
 
# some platforms.
128
 
AC_REQUIRE([AC_PROG_AWK])dnl
129
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
130
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
131
 
 
132
 
_AM_IF_OPTION([no-dependencies],,
133
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
134
 
                  [_AM_DEPENDENCIES(CC)],
135
 
                  [define([AC_PROG_CC],
136
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
137
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
138
 
                  [_AM_DEPENDENCIES(CXX)],
139
 
                  [define([AC_PROG_CXX],
140
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
141
 
])
142
 
])
143
 
 
144
 
 
145
 
# When config.status generates a header, we must update the stamp-h file.
146
 
# This file resides in the same directory as the config header
147
 
# that is generated.  The stamp files are numbered to have different names.
148
 
 
149
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
150
 
# loop where config.status creates the headers, so we can generate
151
 
# our stamp files there.
152
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
153
 
[# Compute $1's index in $config_headers.
154
 
_am_stamp_count=1
155
 
for _am_header in $config_headers :; do
156
 
  case $_am_header in
157
 
    $1 | $1:* )
158
 
      break ;;
159
 
    * )
160
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
161
 
  esac
162
 
done
163
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
164
 
 
165
 
# Copyright 2002  Free Software Foundation, Inc.
166
 
 
167
 
# This program is free software; you can redistribute it and/or modify
168
 
# it under the terms of the GNU General Public License as published by
169
 
# the Free Software Foundation; either version 2, or (at your option)
170
 
# any later version.
171
 
 
172
 
# This program is distributed in the hope that it will be useful,
173
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
174
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
175
 
# GNU General Public License for more details.
176
 
 
177
 
# You should have received a copy of the GNU General Public License
178
 
# along with this program; if not, write to the Free Software
179
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
180
 
 
181
 
# AM_AUTOMAKE_VERSION(VERSION)
182
 
# ----------------------------
183
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
184
 
# generated from the m4 files accompanying Automake X.Y.
185
 
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
186
 
 
187
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
188
 
# -------------------------------
189
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
190
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
191
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
192
 
         [AM_AUTOMAKE_VERSION([1.7.9])])
193
 
 
194
 
# Helper functions for option handling.                    -*- Autoconf -*-
195
 
 
196
 
# Copyright 2001, 2002  Free Software Foundation, Inc.
197
 
 
198
 
# This program is free software; you can redistribute it and/or modify
199
 
# it under the terms of the GNU General Public License as published by
200
 
# the Free Software Foundation; either version 2, or (at your option)
201
 
# any later version.
202
 
 
203
 
# This program is distributed in the hope that it will be useful,
204
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
205
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
206
 
# GNU General Public License for more details.
207
 
 
208
 
# You should have received a copy of the GNU General Public License
209
 
# along with this program; if not, write to the Free Software
210
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
211
 
# 02111-1307, USA.
212
 
 
213
 
# serial 2
214
 
 
215
 
# _AM_MANGLE_OPTION(NAME)
216
 
# -----------------------
217
 
AC_DEFUN([_AM_MANGLE_OPTION],
218
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
219
 
 
220
 
# _AM_SET_OPTION(NAME)
221
 
# ------------------------------
222
 
# Set option NAME.  Presently that only means defining a flag for this option.
223
 
AC_DEFUN([_AM_SET_OPTION],
224
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
225
 
 
226
 
# _AM_SET_OPTIONS(OPTIONS)
227
 
# ----------------------------------
228
 
# OPTIONS is a space-separated list of Automake options.
229
 
AC_DEFUN([_AM_SET_OPTIONS],
230
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
231
 
 
232
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
233
 
# -------------------------------------------
234
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
235
 
AC_DEFUN([_AM_IF_OPTION],
236
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
237
 
 
238
 
#
239
 
# Check to make sure that the build environment is sane.
240
 
#
241
 
 
242
 
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
243
 
 
244
 
# This program is free software; you can redistribute it and/or modify
245
 
# it under the terms of the GNU General Public License as published by
246
 
# the Free Software Foundation; either version 2, or (at your option)
247
 
# any later version.
248
 
 
249
 
# This program is distributed in the hope that it will be useful,
250
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
251
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
252
 
# GNU General Public License for more details.
253
 
 
254
 
# You should have received a copy of the GNU General Public License
255
 
# along with this program; if not, write to the Free Software
256
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
257
 
# 02111-1307, USA.
258
 
 
259
 
# serial 3
260
 
 
261
 
# AM_SANITY_CHECK
262
 
# ---------------
263
 
AC_DEFUN([AM_SANITY_CHECK],
264
 
[AC_MSG_CHECKING([whether build environment is sane])
265
 
# Just in case
266
 
sleep 1
267
 
echo timestamp > conftest.file
268
 
# Do `set' in a subshell so we don't clobber the current shell's
269
 
# arguments.  Must try -L first in case configure is actually a
270
 
# symlink; some systems play weird games with the mod time of symlinks
271
 
# (eg FreeBSD returns the mod time of the symlink's containing
272
 
# directory).
273
 
if (
274
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
275
 
   if test "$[*]" = "X"; then
276
 
      # -L didn't work.
277
 
      set X `ls -t $srcdir/configure conftest.file`
278
 
   fi
279
 
   rm -f conftest.file
280
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
281
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
282
 
 
283
 
      # If neither matched, then we have a broken ls.  This can happen
284
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
285
 
      # broken ls alias from the environment.  This has actually
286
 
      # happened.  Such a system could not be considered "sane".
287
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
288
 
alias in your environment])
289
 
   fi
290
 
 
291
 
   test "$[2]" = conftest.file
292
 
   )
293
 
then
294
 
   # Ok.
295
 
   :
296
 
else
297
 
   AC_MSG_ERROR([newly created file is older than distributed files!
298
 
Check your system clock])
299
 
fi
300
 
AC_MSG_RESULT(yes)])
301
 
 
302
 
#  -*- Autoconf -*-
303
 
 
304
 
 
305
 
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
306
 
 
307
 
# This program is free software; you can redistribute it and/or modify
308
 
# it under the terms of the GNU General Public License as published by
309
 
# the Free Software Foundation; either version 2, or (at your option)
310
 
# any later version.
311
 
 
312
 
# This program is distributed in the hope that it will be useful,
313
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
314
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
315
 
# GNU General Public License for more details.
316
 
 
317
 
# You should have received a copy of the GNU General Public License
318
 
# along with this program; if not, write to the Free Software
319
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
320
 
# 02111-1307, USA.
321
 
 
322
 
# serial 3
323
 
 
324
 
# AM_MISSING_PROG(NAME, PROGRAM)
325
 
# ------------------------------
326
 
AC_DEFUN([AM_MISSING_PROG],
327
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
328
 
$1=${$1-"${am_missing_run}$2"}
329
 
AC_SUBST($1)])
330
 
 
331
 
 
332
 
# AM_MISSING_HAS_RUN
333
 
# ------------------
334
 
# Define MISSING if not defined so far and test if it supports --run.
335
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
336
 
AC_DEFUN([AM_MISSING_HAS_RUN],
337
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
338
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
339
 
# Use eval to expand $SHELL
340
 
if eval "$MISSING --run true"; then
341
 
  am_missing_run="$MISSING --run "
342
 
else
343
 
  am_missing_run=
344
 
  AC_MSG_WARN([`missing' script is too old or missing])
345
 
fi
346
 
])
347
 
 
348
 
# AM_AUX_DIR_EXPAND
349
 
 
350
 
# Copyright 2001 Free Software Foundation, Inc.
351
 
 
352
 
# This program is free software; you can redistribute it and/or modify
353
 
# it under the terms of the GNU General Public License as published by
354
 
# the Free Software Foundation; either version 2, or (at your option)
355
 
# any later version.
356
 
 
357
 
# This program is distributed in the hope that it will be useful,
358
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
359
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
360
 
# GNU General Public License for more details.
361
 
 
362
 
# You should have received a copy of the GNU General Public License
363
 
# along with this program; if not, write to the Free Software
364
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
365
 
# 02111-1307, USA.
366
 
 
367
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
368
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
369
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
370
 
#
371
 
# Of course, Automake must honor this variable whenever it calls a
372
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
373
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
374
 
# depending on how configure is run.  This is pretty annoying, since
375
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
376
 
# source directory, any form will work fine, but in subdirectories a
377
 
# relative path needs to be adjusted first.
378
 
#
379
 
# $ac_aux_dir/missing
380
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
381
 
# $top_srcdir/$ac_aux_dir/missing
382
 
#    fails if $ac_aux_dir is absolute,
383
 
#    fails when called from a subdirectory in a VPATH build with
384
 
#          a relative $ac_aux_dir
385
 
#
386
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
387
 
# are both prefixed by $srcdir.  In an in-source build this is usually
388
 
# harmless because $srcdir is `.', but things will broke when you
389
 
# start a VPATH build or use an absolute $srcdir.
390
 
#
391
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
392
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
393
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
394
 
# and then we would define $MISSING as
395
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
396
 
# This will work as long as MISSING is not called from configure, because
397
 
# unfortunately $(top_srcdir) has no meaning in configure.
398
 
# However there are other variables, like CC, which are often used in
399
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
400
 
#
401
 
# Another solution, used here, is to always expand $ac_aux_dir to an
402
 
# absolute PATH.  The drawback is that using absolute paths prevent a
403
 
# configured tree to be moved without reconfiguration.
404
 
 
405
 
# Rely on autoconf to set up CDPATH properly.
406
 
AC_PREREQ([2.50])
407
 
 
408
 
AC_DEFUN([AM_AUX_DIR_EXPAND], [
409
 
# expand $ac_aux_dir to an absolute path
410
 
am_aux_dir=`cd $ac_aux_dir && pwd`
411
 
])
412
 
 
413
 
# AM_PROG_INSTALL_SH
414
 
# ------------------
415
 
# Define $install_sh.
416
 
 
417
 
# Copyright 2001 Free Software Foundation, Inc.
418
 
 
419
 
# This program is free software; you can redistribute it and/or modify
420
 
# it under the terms of the GNU General Public License as published by
421
 
# the Free Software Foundation; either version 2, or (at your option)
422
 
# any later version.
423
 
 
424
 
# This program is distributed in the hope that it will be useful,
425
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
426
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
427
 
# GNU General Public License for more details.
428
 
 
429
 
# You should have received a copy of the GNU General Public License
430
 
# along with this program; if not, write to the Free Software
431
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
432
 
# 02111-1307, USA.
433
 
 
434
 
AC_DEFUN([AM_PROG_INSTALL_SH],
435
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
436
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
437
 
AC_SUBST(install_sh)])
438
 
 
439
 
# AM_PROG_INSTALL_STRIP
440
 
 
441
 
# Copyright 2001 Free Software Foundation, Inc.
442
 
 
443
 
# This program is free software; you can redistribute it and/or modify
444
 
# it under the terms of the GNU General Public License as published by
445
 
# the Free Software Foundation; either version 2, or (at your option)
446
 
# any later version.
447
 
 
448
 
# This program is distributed in the hope that it will be useful,
449
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
450
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
451
 
# GNU General Public License for more details.
452
 
 
453
 
# You should have received a copy of the GNU General Public License
454
 
# along with this program; if not, write to the Free Software
455
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
456
 
# 02111-1307, USA.
457
 
 
458
 
# One issue with vendor `install' (even GNU) is that you can't
459
 
# specify the program used to strip binaries.  This is especially
460
 
# annoying in cross-compiling environments, where the build's strip
461
 
# is unlikely to handle the host's binaries.
462
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
463
 
# always use install-sh in `make install-strip', and initialize
464
 
# STRIPPROG with the value of the STRIP variable (set by the user).
465
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
466
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
467
 
# Installed binaries are usually stripped using `strip' when the user
468
 
# run `make install-strip'.  However `strip' might not be the right
469
 
# tool to use in cross-compilation environments, therefore Automake
470
 
# will honor the `STRIP' environment variable to overrule this program.
471
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
472
 
if test "$cross_compiling" != no; then
473
 
  AC_CHECK_TOOL([STRIP], [strip], :)
474
 
fi
475
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
476
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
477
 
 
478
 
#                                                          -*- Autoconf -*-
479
 
# Copyright (C) 2003  Free Software Foundation, Inc.
480
 
 
481
 
# This program is free software; you can redistribute it and/or modify
482
 
# it under the terms of the GNU General Public License as published by
483
 
# the Free Software Foundation; either version 2, or (at your option)
484
 
# any later version.
485
 
 
486
 
# This program is distributed in the hope that it will be useful,
487
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
488
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
489
 
# GNU General Public License for more details.
490
 
 
491
 
# You should have received a copy of the GNU General Public License
492
 
# along with this program; if not, write to the Free Software
493
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
494
 
# 02111-1307, USA.
495
 
 
496
 
# serial 1
497
 
 
498
 
# Check whether the underlying file-system supports filenames
499
 
# with a leading dot.  For instance MS-DOS doesn't.
500
 
AC_DEFUN([AM_SET_LEADING_DOT],
501
 
[rm -rf .tst 2>/dev/null
502
 
mkdir .tst 2>/dev/null
503
 
if test -d .tst; then
504
 
  am__leading_dot=.
505
 
else
506
 
  am__leading_dot=_
507
 
fi
508
 
rmdir .tst 2>/dev/null
509
 
AC_SUBST([am__leading_dot])])
510
 
 
511
 
# serial 5                                              -*- Autoconf -*-
512
 
 
513
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
514
 
 
515
 
# This program is free software; you can redistribute it and/or modify
516
 
# it under the terms of the GNU General Public License as published by
517
 
# the Free Software Foundation; either version 2, or (at your option)
518
 
# any later version.
519
 
 
520
 
# This program is distributed in the hope that it will be useful,
521
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
522
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
523
 
# GNU General Public License for more details.
524
 
 
525
 
# You should have received a copy of the GNU General Public License
526
 
# along with this program; if not, write to the Free Software
527
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
528
 
# 02111-1307, USA.
529
 
 
530
 
 
531
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
532
 
# written in clear, in which case automake, when reading aclocal.m4,
533
 
# will think it sees a *use*, and therefore will trigger all it's
534
 
# C support machinery.  Also note that it means that autoscan, seeing
535
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
536
 
 
537
 
 
538
 
 
539
 
# _AM_DEPENDENCIES(NAME)
540
 
# ----------------------
541
 
# See how the compiler implements dependency checking.
542
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
543
 
# We try a few techniques and use that to set a single cache variable.
544
 
#
545
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
546
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
547
 
# dependency, and given that the user is not expected to run this macro,
548
 
# just rely on AC_PROG_CC.
549
 
AC_DEFUN([_AM_DEPENDENCIES],
550
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
551
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
552
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
553
 
AC_REQUIRE([AM_DEP_TRACK])dnl
554
 
 
555
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
556
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
557
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
558
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
559
 
                   [depcc="$$1"   am_compiler_list=])
560
 
 
561
 
AC_CACHE_CHECK([dependency style of $depcc],
562
 
               [am_cv_$1_dependencies_compiler_type],
563
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
564
 
  # We make a subdir and do the tests there.  Otherwise we can end up
565
 
  # making bogus files that we don't know about and never remove.  For
566
 
  # instance it was reported that on HP-UX the gcc test will end up
567
 
  # making a dummy file named `D' -- because `-MD' means `put the output
568
 
  # in D'.
569
 
  mkdir conftest.dir
570
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
571
 
  # using a relative directory.
572
 
  cp "$am_depcomp" conftest.dir
573
 
  cd conftest.dir
574
 
  # We will build objects and dependencies in a subdirectory because
575
 
  # it helps to detect inapplicable dependency modes.  For instance
576
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
577
 
  # side effect of compilation, but ICC will put the dependencies in
578
 
  # the current directory while Tru64 will put them in the object
579
 
  # directory.
580
 
  mkdir sub
581
 
 
582
 
  am_cv_$1_dependencies_compiler_type=none
583
 
  if test "$am_compiler_list" = ""; then
584
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
585
 
  fi
586
 
  for depmode in $am_compiler_list; do
587
 
    # Setup a source with many dependencies, because some compilers
588
 
    # like to wrap large dependency lists on column 80 (with \), and
589
 
    # we should not choose a depcomp mode which is confused by this.
590
 
    #
591
 
    # We need to recreate these files for each test, as the compiler may
592
 
    # overwrite some of them when testing with obscure command lines.
593
 
    # This happens at least with the AIX C compiler.
594
 
    : > sub/conftest.c
595
 
    for i in 1 2 3 4 5 6; do
596
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
597
 
      : > sub/conftst$i.h
598
 
    done
599
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
600
 
 
601
 
    case $depmode in
602
 
    nosideeffect)
603
 
      # after this tag, mechanisms are not by side-effect, so they'll
604
 
      # only be used when explicitly requested
605
 
      if test "x$enable_dependency_tracking" = xyes; then
606
 
        continue
607
 
      else
608
 
        break
609
 
      fi
610
 
      ;;
611
 
    none) break ;;
612
 
    esac
613
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
614
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
615
 
    # handle `-M -o', and we need to detect this.
616
 
    if depmode=$depmode \
617
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
618
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
619
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
620
 
         >/dev/null 2>conftest.err &&
621
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
622
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
623
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
624
 
      # icc doesn't choke on unknown options, it will just issue warnings
625
 
      # (even with -Werror).  So we grep stderr for any message
626
 
      # that says an option was ignored.
627
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
628
 
        am_cv_$1_dependencies_compiler_type=$depmode
629
 
        break
630
 
      fi
631
 
    fi
632
 
  done
633
 
 
634
 
  cd ..
635
 
  rm -rf conftest.dir
636
 
else
637
 
  am_cv_$1_dependencies_compiler_type=none
638
 
fi
639
 
])
640
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
641
 
AM_CONDITIONAL([am__fastdep$1], [
642
 
  test "x$enable_dependency_tracking" != xno \
643
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
644
 
])
645
 
 
646
 
 
647
 
# AM_SET_DEPDIR
648
 
# -------------
649
 
# Choose a directory name for dependency files.
650
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
651
 
AC_DEFUN([AM_SET_DEPDIR],
652
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
653
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
654
 
])
655
 
 
656
 
 
657
 
# AM_DEP_TRACK
658
 
# ------------
659
 
AC_DEFUN([AM_DEP_TRACK],
660
 
[AC_ARG_ENABLE(dependency-tracking,
661
 
[  --disable-dependency-tracking Speeds up one-time builds
662
 
  --enable-dependency-tracking  Do not reject slow dependency extractors])
663
 
if test "x$enable_dependency_tracking" != xno; then
664
 
  am_depcomp="$ac_aux_dir/depcomp"
665
 
  AMDEPBACKSLASH='\'
666
 
fi
667
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
668
 
AC_SUBST([AMDEPBACKSLASH])
669
 
])
670
 
 
671
 
# Generate code to set up dependency tracking.   -*- Autoconf -*-
672
 
 
673
 
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
674
 
 
675
 
# This program is free software; you can redistribute it and/or modify
676
 
# it under the terms of the GNU General Public License as published by
677
 
# the Free Software Foundation; either version 2, or (at your option)
678
 
# any later version.
679
 
 
680
 
# This program is distributed in the hope that it will be useful,
681
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
682
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
683
 
# GNU General Public License for more details.
684
 
 
685
 
# You should have received a copy of the GNU General Public License
686
 
# along with this program; if not, write to the Free Software
687
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
688
 
# 02111-1307, USA.
689
 
 
690
 
#serial 2
691
 
 
692
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
693
 
# ------------------------------
694
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
695
 
[for mf in $CONFIG_FILES; do
696
 
  # Strip MF so we end up with the name of the file.
697
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
698
 
  # Check whether this is an Automake generated Makefile or not.
699
 
  # We used to match only the files named `Makefile.in', but
700
 
  # some people rename them; so instead we look at the file content.
701
 
  # Grep'ing the first line is not enough: some people post-process
702
 
  # each Makefile.in and add a new line on top of each file to say so.
703
 
  # So let's grep whole file.
704
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
705
 
    dirpart=`AS_DIRNAME("$mf")`
706
 
  else
707
 
    continue
708
 
  fi
709
 
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
710
 
  # Extract the definition of DEP_FILES from the Makefile without
711
 
  # running `make'.
712
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
713
 
  test -z "$DEPDIR" && continue
714
 
  # When using ansi2knr, U may be empty or an underscore; expand it
715
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
716
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
717
 
  # We invoke sed twice because it is the simplest approach to
718
 
  # changing $(DEPDIR) to its actual value in the expansion.
719
 
  for file in `sed -n -e '
720
 
    /^DEP_FILES = .*\\\\$/ {
721
 
      s/^DEP_FILES = //
722
 
      :loop
723
 
        s/\\\\$//
724
 
        p
725
 
        n
726
 
        /\\\\$/ b loop
727
 
      p
728
 
    }
729
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
730
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
731
 
    # Make sure the directory exists.
732
 
    test -f "$dirpart/$file" && continue
733
 
    fdir=`AS_DIRNAME(["$file"])`
734
 
    AS_MKDIR_P([$dirpart/$fdir])
735
 
    # echo "creating $dirpart/$file"
736
 
    echo '# dummy' > "$dirpart/$file"
737
 
  done
738
 
done
739
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
740
 
 
741
 
 
742
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
743
 
# -----------------------------
744
 
# This macro should only be invoked once -- use via AC_REQUIRE.
745
 
#
746
 
# This code is only required when automatic dependency tracking
747
 
# is enabled.  FIXME.  This creates each `.P' file that we will
748
 
# need in order to bootstrap the dependency handling code.
749
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
750
 
[AC_CONFIG_COMMANDS([depfiles],
751
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
752
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
753
 
])
754
 
 
755
 
# Check to see how 'make' treats includes.      -*- Autoconf -*-
756
 
 
757
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
758
 
 
759
 
# This program is free software; you can redistribute it and/or modify
760
 
# it under the terms of the GNU General Public License as published by
761
 
# the Free Software Foundation; either version 2, or (at your option)
762
 
# any later version.
763
 
 
764
 
# This program is distributed in the hope that it will be useful,
765
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
766
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
767
 
# GNU General Public License for more details.
768
 
 
769
 
# You should have received a copy of the GNU General Public License
770
 
# along with this program; if not, write to the Free Software
771
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
772
 
# 02111-1307, USA.
773
 
 
774
 
# serial 2
775
 
 
776
 
# AM_MAKE_INCLUDE()
777
 
# -----------------
778
 
# Check to see how make treats includes.
779
 
AC_DEFUN([AM_MAKE_INCLUDE],
780
 
[am_make=${MAKE-make}
781
 
cat > confinc << 'END'
782
 
am__doit:
783
 
        @echo done
784
 
.PHONY: am__doit
785
 
END
786
 
# If we don't find an include directive, just comment out the code.
787
 
AC_MSG_CHECKING([for style of include used by $am_make])
788
 
am__include="#"
789
 
am__quote=
790
 
_am_result=none
791
 
# First try GNU make style include.
792
 
echo "include confinc" > confmf
793
 
# We grep out `Entering directory' and `Leaving directory'
794
 
# messages which can occur if `w' ends up in MAKEFLAGS.
795
 
# In particular we don't look at `^make:' because GNU make might
796
 
# be invoked under some other name (usually "gmake"), in which
797
 
# case it prints its new name instead of `make'.
798
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
799
 
   am__include=include
800
 
   am__quote=
801
 
   _am_result=GNU
802
 
fi
803
 
# Now try BSD make style include.
804
 
if test "$am__include" = "#"; then
805
 
   echo '.include "confinc"' > confmf
806
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
807
 
      am__include=.include
808
 
      am__quote="\""
809
 
      _am_result=BSD
810
 
   fi
811
 
fi
812
 
AC_SUBST([am__include])
813
 
AC_SUBST([am__quote])
814
 
AC_MSG_RESULT([$_am_result])
815
 
rm -f confinc confmf
816
 
])
817
 
 
818
 
# AM_CONDITIONAL                                              -*- Autoconf -*-
819
 
 
820
 
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
821
 
 
822
 
# This program is free software; you can redistribute it and/or modify
823
 
# it under the terms of the GNU General Public License as published by
824
 
# the Free Software Foundation; either version 2, or (at your option)
825
 
# any later version.
826
 
 
827
 
# This program is distributed in the hope that it will be useful,
828
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
829
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
830
 
# GNU General Public License for more details.
831
 
 
832
 
# You should have received a copy of the GNU General Public License
833
 
# along with this program; if not, write to the Free Software
834
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
835
 
# 02111-1307, USA.
836
 
 
837
 
# serial 5
838
 
 
839
 
AC_PREREQ(2.52)
840
 
 
841
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
842
 
# -------------------------------------
843
 
# Define a conditional.
844
 
AC_DEFUN([AM_CONDITIONAL],
845
 
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
846
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
847
 
AC_SUBST([$1_TRUE])
848
 
AC_SUBST([$1_FALSE])
849
 
if $2; then
850
 
  $1_TRUE=
851
 
  $1_FALSE='#'
852
 
else
853
 
  $1_TRUE='#'
854
 
  $1_FALSE=
855
 
fi
856
 
AC_CONFIG_COMMANDS_PRE(
857
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
858
 
  AC_MSG_ERROR([conditional "$1" was never defined.
859
 
Usually this means the macro was only invoked conditionally.])
860
 
fi])])
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])
900
 
 
901
 
# gettext.m4 serial 37 (gettext-0.14.4)
902
 
dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
 
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
# gettext.m4 serial 60 (gettext-0.17)
 
23
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
903
24
dnl This file is free software; the Free Software Foundation
904
25
dnl gives unlimited permission to copy and/or distribute it,
905
26
dnl with or without modifications, as long as this notice is preserved.
915
36
 
916
37
dnl Authors:
917
38
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
918
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
39
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2006.
919
40
 
920
41
dnl Macro to add for using GNU gettext.
921
42
 
963
84
  ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
964
85
    [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
965
86
])])])])
966
 
  define([gt_included_intl], ifelse([$1], [external], [no], [yes]))
 
87
  define([gt_included_intl],
 
88
    ifelse([$1], [external],
 
89
      ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
 
90
      [yes]))
967
91
  define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
 
92
  gt_NEEDS_INIT
 
93
  AM_GNU_GETTEXT_NEED([$2])
968
94
 
969
95
  AC_REQUIRE([AM_PO_SUBDIRS])dnl
970
96
  ifelse(gt_included_intl, yes, [
978
104
  dnl Sometimes libintl requires libiconv, so first search for libiconv.
979
105
  dnl Ideally we would do this search only after the
980
106
  dnl      if test "$USE_NLS" = "yes"; then
981
 
  dnl        if test "$gt_cv_func_gnugettext_libc" != "yes"; then
 
107
  dnl        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
982
108
  dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
983
109
  dnl the configure script would need to contain the same shell code
984
110
  dnl again, outside any 'if'. There are two solutions:
994
120
  gt_INTL_MACOSX
995
121
 
996
122
  dnl Set USE_NLS.
997
 
  AM_NLS
 
123
  AC_REQUIRE([AM_NLS])
998
124
 
999
125
  ifelse(gt_included_intl, yes, [
1000
126
    BUILD_INCLUDED_LIBINTL=no
1004
130
  LTLIBINTL=
1005
131
  POSUB=
1006
132
 
 
133
  dnl Add a version number to the cache macros.
 
134
  case " $gt_needs " in
 
135
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
136
    *" need-ngettext "*) gt_api_version=2 ;;
 
137
    *) gt_api_version=1 ;;
 
138
  esac
 
139
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
140
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
141
 
1007
142
  dnl If we use NLS figure out what method
1008
143
  if test "$USE_NLS" = "yes"; then
1009
144
    gt_use_preinstalled_gnugettext=no
1022
157
        dnl to use.  If GNU gettext is available we use this.  Else we have
1023
158
        dnl to fall back to GNU NLS library.
1024
159
 
1025
 
        dnl Add a version number to the cache macros.
1026
 
        define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
1027
 
        define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
1028
 
        define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
 
160
        if test $gt_api_version -ge 3; then
 
161
          gt_revision_test_code='
 
162
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
163
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
164
#endif
 
165
changequote(,)dnl
 
166
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
167
changequote([,])dnl
 
168
'
 
169
        else
 
170
          gt_revision_test_code=
 
171
        fi
 
172
        if test $gt_api_version -ge 2; then
 
173
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
174
        else
 
175
          gt_expression_test_code=
 
176
        fi
1029
177
 
1030
 
        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
 
178
        AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
1031
179
         [AC_TRY_LINK([#include <libintl.h>
1032
 
]ifelse([$2], [need-formatstring-macros],
1033
 
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
1034
 
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
1035
 
#endif
1036
 
changequote(,)dnl
1037
 
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
1038
 
changequote([,])dnl
1039
 
], [])[extern int _nl_msg_cat_cntr;
 
180
$gt_revision_test_code
 
181
extern int _nl_msg_cat_cntr;
1040
182
extern int *_nl_domain_bindings;],
1041
183
            [bindtextdomain ("", "");
1042
 
return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
1043
 
            gt_cv_func_gnugettext_libc=yes,
1044
 
            gt_cv_func_gnugettext_libc=no)])
 
184
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
 
185
            [eval "$gt_func_gnugettext_libc=yes"],
 
186
            [eval "$gt_func_gnugettext_libc=no"])])
1045
187
 
1046
 
        if test "$gt_cv_func_gnugettext_libc" != "yes"; then
 
188
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
1047
189
          dnl Sometimes libintl requires libiconv, so first search for libiconv.
1048
190
          ifelse(gt_included_intl, yes, , [
1049
191
            AM_ICONV_LINK
1054
196
          dnl even if libiconv doesn't exist.
1055
197
          AC_LIB_LINKFLAGS_BODY([intl])
1056
198
          AC_CACHE_CHECK([for GNU gettext in libintl],
1057
 
            gt_cv_func_gnugettext_libintl,
 
199
            [$gt_func_gnugettext_libintl],
1058
200
           [gt_save_CPPFLAGS="$CPPFLAGS"
1059
201
            CPPFLAGS="$CPPFLAGS $INCINTL"
1060
202
            gt_save_LIBS="$LIBS"
1061
203
            LIBS="$LIBS $LIBINTL"
1062
204
            dnl Now see whether libintl exists and does not depend on libiconv.
1063
205
            AC_TRY_LINK([#include <libintl.h>
1064
 
]ifelse([$2], [need-formatstring-macros],
1065
 
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
1066
 
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
1067
 
#endif
1068
 
changequote(,)dnl
1069
 
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
1070
 
changequote([,])dnl
1071
 
], [])[extern int _nl_msg_cat_cntr;
 
206
$gt_revision_test_code
 
207
extern int _nl_msg_cat_cntr;
1072
208
extern
1073
209
#ifdef __cplusplus
1074
210
"C"
1075
211
#endif
1076
212
const char *_nl_expand_alias (const char *);],
1077
213
              [bindtextdomain ("", "");
1078
 
return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
1079
 
              gt_cv_func_gnugettext_libintl=yes,
1080
 
              gt_cv_func_gnugettext_libintl=no)
 
214
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
 
215
              [eval "$gt_func_gnugettext_libintl=yes"],
 
216
              [eval "$gt_func_gnugettext_libintl=no"])
1081
217
            dnl Now see whether libintl exists and depends on libiconv.
1082
 
            if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
 
218
            if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
1083
219
              LIBS="$LIBS $LIBICONV"
1084
220
              AC_TRY_LINK([#include <libintl.h>
1085
 
]ifelse([$2], [need-formatstring-macros],
1086
 
[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
1087
 
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
1088
 
#endif
1089
 
changequote(,)dnl
1090
 
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
1091
 
changequote([,])dnl
1092
 
], [])[extern int _nl_msg_cat_cntr;
 
221
$gt_revision_test_code
 
222
extern int _nl_msg_cat_cntr;
1093
223
extern
1094
224
#ifdef __cplusplus
1095
225
"C"
1096
226
#endif
1097
227
const char *_nl_expand_alias (const char *);],
1098
228
                [bindtextdomain ("", "");
1099
 
return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
 
229
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
1100
230
               [LIBINTL="$LIBINTL $LIBICONV"
1101
231
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
1102
 
                gt_cv_func_gnugettext_libintl=yes
 
232
                eval "$gt_func_gnugettext_libintl=yes"
1103
233
               ])
1104
234
            fi
1105
235
            CPPFLAGS="$gt_save_CPPFLAGS"
1110
240
        dnl use it.  But if this macro is used in GNU gettext, and GNU
1111
241
        dnl gettext is already preinstalled in libintl, we update this
1112
242
        dnl libintl.  (Cf. the install rule in intl/Makefile.in.)
1113
 
        if test "$gt_cv_func_gnugettext_libc" = "yes" \
1114
 
           || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
 
243
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
244
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
1115
245
                && test "$PACKAGE" != gettext-runtime \
1116
246
                && test "$PACKAGE" != gettext-tools; }; then
1117
247
          gt_use_preinstalled_gnugettext=yes
1134
264
        dnl Mark actions used to generate GNU NLS library.
1135
265
        BUILD_INCLUDED_LIBINTL=yes
1136
266
        USE_INCLUDED_LIBINTL=yes
1137
 
        LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
1138
 
        LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
 
267
        LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
 
268
        LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
1139
269
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
1140
270
      fi
1141
271
 
1171
301
  if test "$USE_NLS" = "yes"; then
1172
302
    AC_MSG_CHECKING([where the gettext function comes from])
1173
303
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
1174
 
      if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
 
304
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
1175
305
        gt_source="external libintl"
1176
306
      else
1177
307
        gt_source="libc"
1185
315
  if test "$USE_NLS" = "yes"; then
1186
316
 
1187
317
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
1188
 
      if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
 
318
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
1189
319
        AC_MSG_CHECKING([how to link with libintl])
1190
320
        AC_MSG_RESULT([$LIBINTL])
1191
321
        AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
1253
383
])
1254
384
 
1255
385
 
1256
 
dnl Checks for all prerequisites of the intl subdirectory,
1257
 
dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
1258
 
dnl            USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
1259
 
AC_DEFUN([AM_INTL_SUBDIR],
1260
 
[
1261
 
  AC_REQUIRE([AC_PROG_INSTALL])dnl
1262
 
  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
1263
 
  AC_REQUIRE([AC_PROG_CC])dnl
1264
 
  AC_REQUIRE([AC_CANONICAL_HOST])dnl
1265
 
  AC_REQUIRE([gt_GLIBC2])dnl
1266
 
  AC_REQUIRE([AC_PROG_RANLIB])dnl
1267
 
  AC_REQUIRE([AC_ISC_POSIX])dnl
1268
 
  AC_REQUIRE([AC_HEADER_STDC])dnl
1269
 
  AC_REQUIRE([AC_C_CONST])dnl
1270
 
  AC_REQUIRE([bh_C_SIGNED])dnl
1271
 
  AC_REQUIRE([AC_C_INLINE])dnl
1272
 
  AC_REQUIRE([AC_TYPE_OFF_T])dnl
1273
 
  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
1274
 
  AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl
1275
 
  AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
1276
 
  AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
1277
 
  AC_REQUIRE([gt_TYPE_WINT_T])dnl
1278
 
  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
1279
 
  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
1280
 
  AC_REQUIRE([gt_TYPE_INTMAX_T])
1281
 
  AC_REQUIRE([gt_PRINTF_POSIX])
1282
 
  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
1283
 
  AC_REQUIRE([AC_FUNC_MMAP])dnl
1284
 
  AC_REQUIRE([gl_GLIBC21])dnl
1285
 
  AC_REQUIRE([gt_INTDIV0])dnl
1286
 
  AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
1287
 
  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
1288
 
  AC_REQUIRE([gt_INTTYPES_PRI])dnl
1289
 
  AC_REQUIRE([gl_XSIZE])dnl
1290
 
  AC_REQUIRE([gt_INTL_MACOSX])dnl
1291
 
 
1292
 
  AC_CHECK_TYPE([ptrdiff_t], ,
1293
 
    [AC_DEFINE([ptrdiff_t], [long],
1294
 
       [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
1295
 
    ])
1296
 
  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
1297
 
stdlib.h string.h unistd.h sys/param.h])
1298
 
  AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
1299
 
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
1300
 
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
1301
 
__fsetlocking])
1302
 
 
1303
 
  dnl Use the _snprintf function only if it is declared (because on NetBSD it
1304
 
  dnl is defined as a weak alias of snprintf; we prefer to use the latter).
1305
 
  gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
1306
 
  gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
1307
 
 
1308
 
  dnl Use the *_unlocked functions only if they are declared.
1309
 
  dnl (because some of them were defined without being declared in Solaris
1310
 
  dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
1311
 
  dnl on Solaris 2.5.1 to run on Solaris 2.6).
1312
 
  dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
1313
 
  gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
1314
 
  gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
1315
 
  gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
1316
 
 
1317
 
  case $gt_cv_func_printf_posix in
1318
 
    *yes) HAVE_POSIX_PRINTF=1 ;;
1319
 
    *) HAVE_POSIX_PRINTF=0 ;;
1320
 
  esac
1321
 
  AC_SUBST([HAVE_POSIX_PRINTF])
1322
 
  if test "$ac_cv_func_asprintf" = yes; then
1323
 
    HAVE_ASPRINTF=1
1324
 
  else
1325
 
    HAVE_ASPRINTF=0
1326
 
  fi
1327
 
  AC_SUBST([HAVE_ASPRINTF])
1328
 
  if test "$ac_cv_func_snprintf" = yes; then
1329
 
    HAVE_SNPRINTF=1
1330
 
  else
1331
 
    HAVE_SNPRINTF=0
1332
 
  fi
1333
 
  AC_SUBST([HAVE_SNPRINTF])
1334
 
  if test "$ac_cv_func_wprintf" = yes; then
1335
 
    HAVE_WPRINTF=1
1336
 
  else
1337
 
    HAVE_WPRINTF=0
1338
 
  fi
1339
 
  AC_SUBST([HAVE_WPRINTF])
1340
 
 
1341
 
  AM_ICONV
1342
 
  AM_LANGINFO_CODESET
1343
 
  if test $ac_cv_header_locale_h = yes; then
1344
 
    gt_LC_MESSAGES
1345
 
  fi
1346
 
 
1347
 
  if test -n "$INTL_MACOSX_LIBS"; then
1348
 
    CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1349
 
  fi
1350
 
 
1351
 
  dnl intl/plural.c is generated from intl/plural.y. It requires bison,
1352
 
  dnl because plural.y uses bison specific features. It requires at least
1353
 
  dnl bison-1.26 because earlier versions generate a plural.c that doesn't
1354
 
  dnl compile.
1355
 
  dnl bison is only needed for the maintainer (who touches plural.y). But in
1356
 
  dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
1357
 
  dnl the rule in general Makefile. Now, some people carelessly touch the
1358
 
  dnl files or have a broken "make" program, hence the plural.c rule will
1359
 
  dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
1360
 
  dnl present or too old.
1361
 
  AC_CHECK_PROGS([INTLBISON], [bison])
1362
 
  if test -z "$INTLBISON"; then
1363
 
    ac_verc_fail=yes
1364
 
  else
1365
 
    dnl Found it, now check the version.
1366
 
    AC_MSG_CHECKING([version of bison])
1367
 
changequote(<<,>>)dnl
1368
 
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1369
 
    case $ac_prog_version in
1370
 
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1371
 
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
1372
 
changequote([,])dnl
1373
 
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1374
 
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1375
 
    esac
1376
 
    AC_MSG_RESULT([$ac_prog_version])
1377
 
  fi
1378
 
  if test $ac_verc_fail = yes; then
1379
 
    INTLBISON=:
1380
 
  fi
1381
 
])
1382
 
 
1383
 
 
1384
 
dnl Checks for special options needed on MacOS X.
1385
 
dnl Defines INTL_MACOSX_LIBS.
1386
 
AC_DEFUN([gt_INTL_MACOSX],
1387
 
[
1388
 
  dnl Check for API introduced in MacOS X 10.2.
1389
 
  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
1390
 
    gt_cv_func_CFPreferencesCopyAppValue,
1391
 
    [gt_save_CPPFLAGS="$CPPFLAGS"
1392
 
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1393
 
     gt_save_LIBS="$LIBS"
1394
 
     LIBS="$LIBS -framework CoreFoundation"
1395
 
     AC_TRY_LINK([#include <CFPreferences.h>],
1396
 
       [CFPreferencesCopyAppValue(NULL, NULL)],
1397
 
       [gt_cv_func_CFPreferencesCopyAppValue=yes],
1398
 
       [gt_cv_func_CFPreferencesCopyAppValue=no])
1399
 
     CPPFLAGS="$gt_save_CPPFLAGS"
1400
 
     LIBS="$gt_save_LIBS"])
1401
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
1402
 
    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
1403
 
      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
1404
 
  fi
1405
 
  dnl Check for API introduced in MacOS X 10.3.
1406
 
  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
1407
 
    [gt_save_CPPFLAGS="$CPPFLAGS"
1408
 
     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
1409
 
     gt_save_LIBS="$LIBS"
1410
 
     LIBS="$LIBS -framework CoreFoundation"
1411
 
     AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();],
1412
 
       [gt_cv_func_CFLocaleCopyCurrent=yes],
1413
 
       [gt_cv_func_CFLocaleCopyCurrent=no])
1414
 
     CPPFLAGS="$gt_save_CPPFLAGS"
1415
 
     LIBS="$gt_save_LIBS"])
1416
 
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
1417
 
    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
1418
 
      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
1419
 
  fi
1420
 
  INTL_MACOSX_LIBS=
1421
 
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
1422
 
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
1423
 
  fi
1424
 
  AC_SUBST([INTL_MACOSX_LIBS])
1425
 
])
1426
 
 
1427
 
 
1428
 
dnl gt_CHECK_DECL(FUNC, INCLUDES)
1429
 
dnl Check whether a function is declared.
1430
 
AC_DEFUN([gt_CHECK_DECL],
1431
 
[
1432
 
  AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
1433
 
    [AC_TRY_COMPILE([$2], [
1434
 
#ifndef $1
1435
 
  char *p = (char *) $1;
1436
 
#endif
1437
 
], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
1438
 
  if test $ac_cv_have_decl_$1 = yes; then
1439
 
    gt_value=1
1440
 
  else
1441
 
    gt_value=0
1442
 
  fi
1443
 
  AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
1444
 
    [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
 
386
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
 
387
m4_define([gt_NEEDS_INIT],
 
388
[
 
389
  m4_divert_text([DEFAULTS], [gt_needs=])
 
390
  m4_define([gt_NEEDS_INIT], [])
 
391
])
 
392
 
 
393
 
 
394
dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
 
395
AC_DEFUN([AM_GNU_GETTEXT_NEED],
 
396
[
 
397
  m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
1445
398
])
1446
399
 
1447
400
 
1448
401
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
1449
402
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
1450
403
 
1451
 
# po.m4 serial 7 (gettext-0.14.3)
1452
 
dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
1453
 
dnl This file is free software; the Free Software Foundation
1454
 
dnl gives unlimited permission to copy and/or distribute it,
1455
 
dnl with or without modifications, as long as this notice is preserved.
1456
 
dnl
1457
 
dnl This file can can be used in projects which are not available under
1458
 
dnl the GNU General Public License or the GNU Library General Public
1459
 
dnl License but which still want to provide support for the GNU gettext
1460
 
dnl functionality.
1461
 
dnl Please note that the actual code of the GNU gettext library is covered
1462
 
dnl by the GNU Library General Public License, and the rest of the GNU
1463
 
dnl gettext package package is covered by the GNU General Public License.
1464
 
dnl They are *not* in the public domain.
1465
 
 
1466
 
dnl Authors:
1467
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1468
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1469
 
 
1470
 
AC_PREREQ(2.50)
1471
 
 
1472
 
dnl Checks for all prerequisites of the po subdirectory.
1473
 
AC_DEFUN([AM_PO_SUBDIRS],
1474
 
[
1475
 
  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1476
 
  AC_REQUIRE([AC_PROG_INSTALL])dnl
1477
 
  AC_REQUIRE([AM_MKINSTALLDIRS])dnl
1478
 
  AC_REQUIRE([AM_NLS])dnl
1479
 
 
1480
 
  dnl Perform the following tests also if --disable-nls has been given,
1481
 
  dnl because they are needed for "make dist" to work.
1482
 
 
1483
 
  dnl Search for GNU msgfmt in the PATH.
1484
 
  dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
1485
 
  dnl The second test excludes FreeBSD msgfmt.
1486
 
  AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
1487
 
    [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
1488
 
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
1489
 
    :)
1490
 
  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1491
 
 
1492
 
  dnl Search for GNU xgettext 0.12 or newer in the PATH.
1493
 
  dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
1494
 
  dnl The second test excludes FreeBSD xgettext.
1495
 
  AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
1496
 
    [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
1497
 
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
1498
 
    :)
1499
 
  dnl Remove leftover from FreeBSD xgettext call.
1500
 
  rm -f messages.po
1501
 
 
1502
 
  dnl Search for GNU msgmerge 0.11 or newer in the PATH.
1503
 
  AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
1504
 
    [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
1505
 
 
1506
 
  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
1507
 
  dnl Test whether we really found GNU msgfmt.
1508
 
  if test "$GMSGFMT" != ":"; then
1509
 
    dnl If it is no GNU msgfmt we define it as : so that the
1510
 
    dnl Makefiles still can work.
1511
 
    if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
1512
 
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1513
 
      : ;
1514
 
    else
1515
 
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
1516
 
      AC_MSG_RESULT(
1517
 
        [found $GMSGFMT program is not GNU msgfmt; ignore it])
1518
 
      GMSGFMT=":"
1519
 
    fi
1520
 
  fi
1521
 
 
1522
 
  dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
1523
 
  dnl Test whether we really found GNU xgettext.
1524
 
  if test "$XGETTEXT" != ":"; then
1525
 
    dnl If it is no GNU xgettext we define it as : so that the
1526
 
    dnl Makefiles still can work.
1527
 
    if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1528
 
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1529
 
      : ;
1530
 
    else
1531
 
      AC_MSG_RESULT(
1532
 
        [found xgettext program is not GNU xgettext; ignore it])
1533
 
      XGETTEXT=":"
1534
 
    fi
1535
 
    dnl Remove leftover from FreeBSD xgettext call.
1536
 
    rm -f messages.po
1537
 
  fi
1538
 
 
1539
 
  AC_OUTPUT_COMMANDS([
1540
 
    for ac_file in $CONFIG_FILES; do
1541
 
      # Support "outfile[:infile[:infile...]]"
1542
 
      case "$ac_file" in
1543
 
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1544
 
      esac
1545
 
      # PO directories have a Makefile.in generated from Makefile.in.in.
1546
 
      case "$ac_file" in */Makefile.in)
1547
 
        # Adjust a relative srcdir.
1548
 
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1549
 
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
1550
 
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
1551
 
        # In autoconf-2.13 it is called $ac_given_srcdir.
1552
 
        # In autoconf-2.50 it is called $srcdir.
1553
 
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
1554
 
        case "$ac_given_srcdir" in
1555
 
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
1556
 
          /*) top_srcdir="$ac_given_srcdir" ;;
1557
 
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
1558
 
        esac
1559
 
        # Treat a directory as a PO directory if and only if it has a
1560
 
        # POTFILES.in file. This allows packages to have multiple PO
1561
 
        # directories under different names or in different locations.
1562
 
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
1563
 
          rm -f "$ac_dir/POTFILES"
1564
 
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
1565
 
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
1566
 
          POMAKEFILEDEPS="POTFILES.in"
1567
 
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
1568
 
          # on $ac_dir but don't depend on user-specified configuration
1569
 
          # parameters.
1570
 
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
1571
 
            # The LINGUAS file contains the set of available languages.
1572
 
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
1573
 
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
1574
 
            fi
1575
 
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1576
 
            # Hide the ALL_LINGUAS assigment from automake.
1577
 
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
1578
 
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
1579
 
          else
1580
 
            # The set of available languages was given in configure.in.
1581
 
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
1582
 
          fi
1583
 
          # Compute POFILES
1584
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
1585
 
          # Compute UPDATEPOFILES
1586
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
1587
 
          # Compute DUMMYPOFILES
1588
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
1589
 
          # Compute GMOFILES
1590
 
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
1591
 
          case "$ac_given_srcdir" in
1592
 
            .) srcdirpre= ;;
1593
 
            *) srcdirpre='$(srcdir)/' ;;
1594
 
          esac
1595
 
          POFILES=
1596
 
          UPDATEPOFILES=
1597
 
          DUMMYPOFILES=
1598
 
          GMOFILES=
1599
 
          for lang in $ALL_LINGUAS; do
1600
 
            POFILES="$POFILES $srcdirpre$lang.po"
1601
 
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
1602
 
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
1603
 
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1604
 
          done
1605
 
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
1606
 
          # environment variable.
1607
 
          INST_LINGUAS=
1608
 
          if test -n "$ALL_LINGUAS"; then
1609
 
            for presentlang in $ALL_LINGUAS; do
1610
 
              useit=no
1611
 
              if test "%UNSET%" != "$LINGUAS"; then
1612
 
                desiredlanguages="$LINGUAS"
1613
 
              else
1614
 
                desiredlanguages="$ALL_LINGUAS"
1615
 
              fi
1616
 
              for desiredlang in $desiredlanguages; do
1617
 
                # Use the presentlang catalog if desiredlang is
1618
 
                #   a. equal to presentlang, or
1619
 
                #   b. a variant of presentlang (because in this case,
1620
 
                #      presentlang can be used as a fallback for messages
1621
 
                #      which are not translated in the desiredlang catalog).
1622
 
                case "$desiredlang" in
1623
 
                  "$presentlang"*) useit=yes;;
1624
 
                esac
1625
 
              done
1626
 
              if test $useit = yes; then
1627
 
                INST_LINGUAS="$INST_LINGUAS $presentlang"
1628
 
              fi
1629
 
            done
1630
 
          fi
1631
 
          CATALOGS=
1632
 
          if test -n "$INST_LINGUAS"; then
1633
 
            for lang in $INST_LINGUAS; do
1634
 
              CATALOGS="$CATALOGS $lang.gmo"
1635
 
            done
1636
 
          fi
1637
 
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
1638
 
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
1639
 
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
1640
 
            if test -f "$f"; then
1641
 
              case "$f" in
1642
 
                *.orig | *.bak | *~) ;;
1643
 
                *) cat "$f" >> "$ac_dir/Makefile" ;;
1644
 
              esac
1645
 
            fi
1646
 
          done
1647
 
        fi
1648
 
        ;;
1649
 
      esac
1650
 
    done],
1651
 
   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
1652
 
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
1653
 
    # from automake.
1654
 
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
1655
 
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
1656
 
    LINGUAS="${LINGUAS-%UNSET%}"
1657
 
   ])
1658
 
])
1659
 
 
1660
 
dnl Postprocesses a Makefile in a directory containing PO files.
1661
 
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
1662
 
[
1663
 
  # When this code is run, in config.status, two variables have already been
1664
 
  # set:
1665
 
  # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
1666
 
  # - LINGUAS is the value of the environment variable LINGUAS at configure
1667
 
  #   time.
1668
 
 
1669
 
changequote(,)dnl
1670
 
  # Adjust a relative srcdir.
1671
 
  ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
1672
 
  ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
1673
 
  ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
1674
 
  # In autoconf-2.13 it is called $ac_given_srcdir.
1675
 
  # In autoconf-2.50 it is called $srcdir.
1676
 
  test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
1677
 
  case "$ac_given_srcdir" in
1678
 
    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
1679
 
    /*) top_srcdir="$ac_given_srcdir" ;;
1680
 
    *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
1681
 
  esac
1682
 
 
1683
 
  # Find a way to echo strings without interpreting backslash.
1684
 
  if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
1685
 
    gt_echo='echo'
1686
 
  else
1687
 
    if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
1688
 
      gt_echo='printf %s\n'
1689
 
    else
1690
 
      echo_func () {
1691
 
        cat <<EOT
1692
 
$*
1693
 
EOT
1694
 
      }
1695
 
      gt_echo='echo_func'
1696
 
    fi
1697
 
  fi
1698
 
 
1699
 
  # A sed script that extracts the value of VARIABLE from a Makefile.
1700
 
  sed_x_variable='
1701
 
# Test if the hold space is empty.
1702
 
x
1703
 
s/P/P/
1704
 
x
1705
 
ta
1706
 
# Yes it was empty. Look if we have the expected variable definition.
1707
 
/^[      ]*VARIABLE[     ]*=/{
1708
 
  # Seen the first line of the variable definition.
1709
 
  s/^[   ]*VARIABLE[     ]*=//
1710
 
  ba
1711
 
}
1712
 
bd
1713
 
:a
1714
 
# Here we are processing a line from the variable definition.
1715
 
# Remove comment, more precisely replace it with a space.
1716
 
s/#.*$/ /
1717
 
# See if the line ends in a backslash.
1718
 
tb
1719
 
:b
1720
 
s/\\$//
1721
 
# Print the line, without the trailing backslash.
1722
 
p
1723
 
tc
1724
 
# There was no trailing backslash. The end of the variable definition is
1725
 
# reached. Clear the hold space.
1726
 
s/^.*$//
1727
 
x
1728
 
bd
1729
 
:c
1730
 
# A trailing backslash means that the variable definition continues in the
1731
 
# next line. Put a nonempty string into the hold space to indicate this.
1732
 
s/^.*$/P/
1733
 
x
1734
 
:d
1735
 
'
1736
 
changequote([,])dnl
1737
 
 
1738
 
  # Set POTFILES to the value of the Makefile variable POTFILES.
1739
 
  sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
1740
 
  POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
1741
 
  # Compute POTFILES_DEPS as
1742
 
  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
1743
 
  POTFILES_DEPS=
1744
 
  for file in $POTFILES; do
1745
 
    POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
1746
 
  done
1747
 
  POMAKEFILEDEPS=""
1748
 
 
1749
 
  if test -n "$OBSOLETE_ALL_LINGUAS"; then
1750
 
    test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
1751
 
  fi
1752
 
  if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
1753
 
    # The LINGUAS file contains the set of available languages.
1754
 
    ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
1755
 
    POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
1756
 
  else
1757
 
    # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
1758
 
    sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
1759
 
    ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
1760
 
  fi
1761
 
  # Hide the ALL_LINGUAS assigment from automake.
1762
 
  eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
1763
 
  # Compute POFILES
1764
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
1765
 
  # Compute UPDATEPOFILES
1766
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
1767
 
  # Compute DUMMYPOFILES
1768
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
1769
 
  # Compute GMOFILES
1770
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
1771
 
  # Compute PROPERTIESFILES
1772
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
1773
 
  # Compute CLASSFILES
1774
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
1775
 
  # Compute QMFILES
1776
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
1777
 
  # Compute MSGFILES
1778
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
1779
 
  # Compute RESOURCESDLLFILES
1780
 
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
1781
 
  case "$ac_given_srcdir" in
1782
 
    .) srcdirpre= ;;
1783
 
    *) srcdirpre='$(srcdir)/' ;;
1784
 
  esac
1785
 
  POFILES=
1786
 
  UPDATEPOFILES=
1787
 
  DUMMYPOFILES=
1788
 
  GMOFILES=
1789
 
  PROPERTIESFILES=
1790
 
  CLASSFILES=
1791
 
  QMFILES=
1792
 
  MSGFILES=
1793
 
  RESOURCESDLLFILES=
1794
 
  for lang in $ALL_LINGUAS; do
1795
 
    POFILES="$POFILES $srcdirpre$lang.po"
1796
 
    UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
1797
 
    DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
1798
 
    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1799
 
    PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
1800
 
    CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
1801
 
    QMFILES="$QMFILES $srcdirpre$lang.qm"
1802
 
    frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1803
 
    MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
1804
 
    frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1805
 
    RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
1806
 
  done
1807
 
  # CATALOGS depends on both $ac_dir and the user's LINGUAS
1808
 
  # environment variable.
1809
 
  INST_LINGUAS=
1810
 
  if test -n "$ALL_LINGUAS"; then
1811
 
    for presentlang in $ALL_LINGUAS; do
1812
 
      useit=no
1813
 
      if test "%UNSET%" != "$LINGUAS"; then
1814
 
        desiredlanguages="$LINGUAS"
1815
 
      else
1816
 
        desiredlanguages="$ALL_LINGUAS"
1817
 
      fi
1818
 
      for desiredlang in $desiredlanguages; do
1819
 
        # Use the presentlang catalog if desiredlang is
1820
 
        #   a. equal to presentlang, or
1821
 
        #   b. a variant of presentlang (because in this case,
1822
 
        #      presentlang can be used as a fallback for messages
1823
 
        #      which are not translated in the desiredlang catalog).
1824
 
        case "$desiredlang" in
1825
 
          "$presentlang"*) useit=yes;;
1826
 
        esac
1827
 
      done
1828
 
      if test $useit = yes; then
1829
 
        INST_LINGUAS="$INST_LINGUAS $presentlang"
1830
 
      fi
1831
 
    done
1832
 
  fi
1833
 
  CATALOGS=
1834
 
  JAVACATALOGS=
1835
 
  QTCATALOGS=
1836
 
  TCLCATALOGS=
1837
 
  CSHARPCATALOGS=
1838
 
  if test -n "$INST_LINGUAS"; then
1839
 
    for lang in $INST_LINGUAS; do
1840
 
      CATALOGS="$CATALOGS $lang.gmo"
1841
 
      JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
1842
 
      QTCATALOGS="$QTCATALOGS $lang.qm"
1843
 
      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1844
 
      TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
1845
 
      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1846
 
      CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
1847
 
    done
1848
 
  fi
1849
 
 
1850
 
  sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
1851
 
  if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
1852
 
    # Add dependencies that cannot be formulated as a simple suffix rule.
1853
 
    for lang in $ALL_LINGUAS; do
1854
 
      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1855
 
      cat >> "$ac_file.tmp" <<EOF
1856
 
$frobbedlang.msg: $lang.po
1857
 
        @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
1858
 
        \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
1859
 
EOF
1860
 
    done
1861
 
  fi
1862
 
  if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
1863
 
    # Add dependencies that cannot be formulated as a simple suffix rule.
1864
 
    for lang in $ALL_LINGUAS; do
1865
 
      frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
1866
 
      cat >> "$ac_file.tmp" <<EOF
1867
 
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
1868
 
        @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
1869
 
        \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
1870
 
EOF
1871
 
    done
1872
 
  fi
1873
 
  if test -n "$POMAKEFILEDEPS"; then
1874
 
    cat >> "$ac_file.tmp" <<EOF
1875
 
Makefile: $POMAKEFILEDEPS
1876
 
EOF
1877
 
  fi
1878
 
  mv "$ac_file.tmp" "$ac_file"
1879
 
])
1880
 
 
1881
 
# nls.m4 serial 2 (gettext-0.14.3)
1882
 
dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc.
1883
 
dnl This file is free software; the Free Software Foundation
1884
 
dnl gives unlimited permission to copy and/or distribute it,
1885
 
dnl with or without modifications, as long as this notice is preserved.
1886
 
dnl
1887
 
dnl This file can can be used in projects which are not available under
1888
 
dnl the GNU General Public License or the GNU Library General Public
1889
 
dnl License but which still want to provide support for the GNU gettext
1890
 
dnl functionality.
1891
 
dnl Please note that the actual code of the GNU gettext library is covered
1892
 
dnl by the GNU Library General Public License, and the rest of the GNU
1893
 
dnl gettext package package is covered by the GNU General Public License.
1894
 
dnl They are *not* in the public domain.
1895
 
 
1896
 
dnl Authors:
1897
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
1898
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
1899
 
 
1900
 
AC_PREREQ(2.50)
1901
 
 
1902
 
AC_DEFUN([AM_NLS],
1903
 
[
1904
 
  AC_MSG_CHECKING([whether NLS is requested])
1905
 
  dnl Default is enabled NLS
1906
 
  AC_ARG_ENABLE(nls,
1907
 
    [  --disable-nls           do not use Native Language Support],
1908
 
    USE_NLS=$enableval, USE_NLS=yes)
1909
 
  AC_MSG_RESULT($USE_NLS)
1910
 
  AC_SUBST(USE_NLS)
1911
 
])
1912
 
 
1913
 
AC_DEFUN([AM_MKINSTALLDIRS],
1914
 
[
1915
 
  dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing.
1916
 
  m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])])
1917
 
  dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
1918
 
  dnl find the mkinstalldirs script in another subdir but $(top_srcdir).
1919
 
  dnl Try to locate it.
1920
 
  MKINSTALLDIRS=
1921
 
  if test -n "$ac_aux_dir"; then
1922
 
    case "$ac_aux_dir" in
1923
 
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1924
 
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
404
# iconv.m4 serial AM6 (gettext-0.17)
 
405
dnl Copyright (C) 2000-2002, 2007 Free Software Foundation, Inc.
 
406
dnl This file is free software; the Free Software Foundation
 
407
dnl gives unlimited permission to copy and/or distribute it,
 
408
dnl with or without modifications, as long as this notice is preserved.
 
409
 
 
410
dnl From Bruno Haible.
 
411
 
 
412
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
 
413
[
 
414
  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
 
415
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 
416
  AC_REQUIRE([AC_LIB_RPATH])
 
417
 
 
418
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
 
419
  dnl accordingly.
 
420
  AC_LIB_LINKFLAGS_BODY([iconv])
 
421
])
 
422
 
 
423
AC_DEFUN([AM_ICONV_LINK],
 
424
[
 
425
  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
 
426
  dnl those with the standalone portable GNU libiconv installed).
 
427
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
428
 
 
429
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
 
430
  dnl accordingly.
 
431
  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
 
432
 
 
433
  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
 
434
  dnl because if the user has installed libiconv and not disabled its use
 
435
  dnl via --without-libiconv-prefix, he wants to use it. The first
 
436
  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
 
437
  am_save_CPPFLAGS="$CPPFLAGS"
 
438
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
 
439
 
 
440
  AC_CACHE_CHECK([for iconv], am_cv_func_iconv, [
 
441
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
442
    am_cv_lib_iconv=no
 
443
    AC_TRY_LINK([#include <stdlib.h>
 
444
#include <iconv.h>],
 
445
      [iconv_t cd = iconv_open("","");
 
446
       iconv(cd,NULL,NULL,NULL,NULL);
 
447
       iconv_close(cd);],
 
448
      am_cv_func_iconv=yes)
 
449
    if test "$am_cv_func_iconv" != yes; then
 
450
      am_save_LIBS="$LIBS"
 
451
      LIBS="$LIBS $LIBICONV"
 
452
      AC_TRY_LINK([#include <stdlib.h>
 
453
#include <iconv.h>],
 
454
        [iconv_t cd = iconv_open("","");
 
455
         iconv(cd,NULL,NULL,NULL,NULL);
 
456
         iconv_close(cd);],
 
457
        am_cv_lib_iconv=yes
 
458
        am_cv_func_iconv=yes)
 
459
      LIBS="$am_save_LIBS"
 
460
    fi
 
461
  ])
 
462
  if test "$am_cv_func_iconv" = yes; then
 
463
    AC_CACHE_CHECK([for working iconv], am_cv_func_iconv_works, [
 
464
      dnl This tests against bugs in AIX 5.1 and HP-UX 11.11.
 
465
      am_save_LIBS="$LIBS"
 
466
      if test $am_cv_lib_iconv = yes; then
 
467
        LIBS="$LIBS $LIBICONV"
 
468
      fi
 
469
      AC_TRY_RUN([
 
470
#include <iconv.h>
 
471
#include <string.h>
 
472
int main ()
 
473
{
 
474
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
475
     returns.  */
 
476
  {
 
477
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
478
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
479
      {
 
480
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
481
        char buf[10];
 
482
        const char *inptr = input;
 
483
        size_t inbytesleft = strlen (input);
 
484
        char *outptr = buf;
 
485
        size_t outbytesleft = sizeof (buf);
 
486
        size_t res = iconv (cd_utf8_to_88591,
 
487
                            (char **) &inptr, &inbytesleft,
 
488
                            &outptr, &outbytesleft);
 
489
        if (res == 0)
 
490
          return 1;
 
491
      }
 
492
  }
 
493
#if 0 /* This bug could be worked around by the caller.  */
 
494
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
495
  {
 
496
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
497
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
498
      {
 
499
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
500
        char buf[50];
 
501
        const char *inptr = input;
 
502
        size_t inbytesleft = strlen (input);
 
503
        char *outptr = buf;
 
504
        size_t outbytesleft = sizeof (buf);
 
505
        size_t res = iconv (cd_88591_to_utf8,
 
506
                            (char **) &inptr, &inbytesleft,
 
507
                            &outptr, &outbytesleft);
 
508
        if ((int)res > 0)
 
509
          return 1;
 
510
      }
 
511
  }
 
512
#endif
 
513
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
514
     provided.  */
 
515
  if (/* Try standardized names.  */
 
516
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
517
      /* Try IRIX, OSF/1 names.  */
 
518
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
519
      /* Try AIX names.  */
 
520
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
521
      /* Try HP-UX names.  */
 
522
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
523
    return 1;
 
524
  return 0;
 
525
}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
 
526
        [case "$host_os" in
 
527
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
528
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
529
         esac])
 
530
      LIBS="$am_save_LIBS"
 
531
    ])
 
532
    case "$am_cv_func_iconv_works" in
 
533
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
534
      *)   am_func_iconv=yes ;;
1925
535
    esac
1926
 
  fi
1927
 
  if test -z "$MKINSTALLDIRS"; then
1928
 
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1929
 
  fi
1930
 
  AC_SUBST(MKINSTALLDIRS)
1931
 
])
1932
 
 
1933
 
# progtest.m4 serial 4 (gettext-0.14.2)
1934
 
dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
 
536
  else
 
537
    am_func_iconv=no am_cv_lib_iconv=no
 
538
  fi
 
539
  if test "$am_func_iconv" = yes; then
 
540
    AC_DEFINE(HAVE_ICONV, 1,
 
541
      [Define if you have the iconv() function and it works.])
 
542
  fi
 
543
  if test "$am_cv_lib_iconv" = yes; then
 
544
    AC_MSG_CHECKING([how to link with libiconv])
 
545
    AC_MSG_RESULT([$LIBICONV])
 
546
  else
 
547
    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
 
548
    dnl either.
 
549
    CPPFLAGS="$am_save_CPPFLAGS"
 
550
    LIBICONV=
 
551
    LTLIBICONV=
 
552
  fi
 
553
  AC_SUBST(LIBICONV)
 
554
  AC_SUBST(LTLIBICONV)
 
555
])
 
556
 
 
557
AC_DEFUN([AM_ICONV],
 
558
[
 
559
  AM_ICONV_LINK
 
560
  if test "$am_cv_func_iconv" = yes; then
 
561
    AC_MSG_CHECKING([for iconv declaration])
 
562
    AC_CACHE_VAL(am_cv_proto_iconv, [
 
563
      AC_TRY_COMPILE([
 
564
#include <stdlib.h>
 
565
#include <iconv.h>
 
566
extern
 
567
#ifdef __cplusplus
 
568
"C"
 
569
#endif
 
570
#if defined(__STDC__) || defined(__cplusplus)
 
571
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
572
#else
 
573
size_t iconv();
 
574
#endif
 
575
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
 
576
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
 
577
    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
578
    AC_MSG_RESULT([$]{ac_t:-
 
579
         }[$]am_cv_proto_iconv)
 
580
    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
 
581
      [Define as const if the declaration of iconv() needs const.])
 
582
  fi
 
583
])
 
584
 
 
585
# lib-ld.m4 serial 3 (gettext-0.13)
 
586
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
1935
587
dnl This file is free software; the Free Software Foundation
1936
588
dnl gives unlimited permission to copy and/or distribute it,
1937
589
dnl with or without modifications, as long as this notice is preserved.
1938
 
dnl
1939
 
dnl This file can can be used in projects which are not available under
1940
 
dnl the GNU General Public License or the GNU Library General Public
1941
 
dnl License but which still want to provide support for the GNU gettext
1942
 
dnl functionality.
1943
 
dnl Please note that the actual code of the GNU gettext library is covered
1944
 
dnl by the GNU Library General Public License, and the rest of the GNU
1945
 
dnl gettext package package is covered by the GNU General Public License.
1946
 
dnl They are *not* in the public domain.
1947
 
 
1948
 
dnl Authors:
1949
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1996.
1950
 
 
1951
 
AC_PREREQ(2.50)
1952
 
 
1953
 
# Search path for a program which passes the given test.
1954
 
 
1955
 
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1956
 
dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1957
 
AC_DEFUN([AM_PATH_PROG_WITH_TEST],
1958
 
[
 
590
 
 
591
dnl Subroutines of libtool.m4,
 
592
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
 
593
dnl with libtool.m4.
 
594
 
 
595
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
 
596
AC_DEFUN([AC_LIB_PROG_LD_GNU],
 
597
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
 
598
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
599
case `$LD -v 2>&1 </dev/null` in
 
600
*GNU* | *'with BFD'*)
 
601
  acl_cv_prog_gnu_ld=yes ;;
 
602
*)
 
603
  acl_cv_prog_gnu_ld=no ;;
 
604
esac])
 
605
with_gnu_ld=$acl_cv_prog_gnu_ld
 
606
])
 
607
 
 
608
dnl From libtool-1.4. Sets the variable LD.
 
609
AC_DEFUN([AC_LIB_PROG_LD],
 
610
[AC_ARG_WITH(gnu-ld,
 
611
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
 
612
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
 
613
AC_REQUIRE([AC_PROG_CC])dnl
 
614
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1959
615
# Prepare PATH_SEPARATOR.
1960
616
# The user is always right.
1961
617
if test "${PATH_SEPARATOR+set}" != set; then
1969
625
  fi
1970
626
  rm -f conf$$.sh
1971
627
fi
1972
 
 
1973
 
# Find out how to test for executable files. Don't use a zero-byte file,
1974
 
# as systems may use methods other than mode bits to determine executability.
1975
 
cat >conf$$.file <<_ASEOF
1976
 
#! /bin/sh
1977
 
exit 0
1978
 
_ASEOF
1979
 
chmod +x conf$$.file
1980
 
if test -x conf$$.file >/dev/null 2>&1; then
1981
 
  ac_executable_p="test -x"
1982
 
else
1983
 
  ac_executable_p="test -f"
1984
 
fi
1985
 
rm -f conf$$.file
1986
 
 
1987
 
# Extract the first word of "$2", so it can be a program name with args.
1988
 
set dummy $2; ac_word=[$]2
1989
 
AC_MSG_CHECKING([for $ac_word])
1990
 
AC_CACHE_VAL(ac_cv_path_$1,
1991
 
[case "[$]$1" in
1992
 
  [[\\/]]* | ?:[[\\/]]*)
1993
 
    ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1994
 
    ;;
 
628
ac_prog=ld
 
629
if test "$GCC" = yes; then
 
630
  # Check if gcc -print-prog-name=ld gives a path.
 
631
  AC_MSG_CHECKING([for ld used by GCC])
 
632
  case $host in
 
633
  *-*-mingw*)
 
634
    # gcc leaves a trailing carriage return which upsets mingw
 
635
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1995
636
  *)
1996
 
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1997
 
    for ac_dir in ifelse([$5], , $PATH, [$5]); do
1998
 
      IFS="$ac_save_IFS"
1999
 
      test -z "$ac_dir" && ac_dir=.
2000
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2001
 
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2002
 
          echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
2003
 
          if [$3]; then
2004
 
            ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
2005
 
            break 2
2006
 
          fi
2007
 
        fi
 
637
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
638
  esac
 
639
  case $ac_prog in
 
640
    # Accept absolute paths.
 
641
    [[\\/]* | [A-Za-z]:[\\/]*)]
 
642
      [re_direlt='/[^/][^/]*/\.\./']
 
643
      # Canonicalize the path of ld
 
644
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
645
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
646
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2008
647
      done
2009
 
    done
2010
 
    IFS="$ac_save_IFS"
2011
 
dnl If no 4th arg is given, leave the cache variable unset,
2012
 
dnl so AC_PATH_PROGS will keep looking.
2013
 
ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
2014
 
])dnl
2015
 
    ;;
2016
 
esac])dnl
2017
 
$1="$ac_cv_path_$1"
2018
 
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
2019
 
  AC_MSG_RESULT([$]$1)
 
648
      test -z "$LD" && LD="$ac_prog"
 
649
      ;;
 
650
  "")
 
651
    # If it fails, then pretend we aren't using GCC.
 
652
    ac_prog=ld
 
653
    ;;
 
654
  *)
 
655
    # If it is relative, then search for the first ld in PATH.
 
656
    with_gnu_ld=unknown
 
657
    ;;
 
658
  esac
 
659
elif test "$with_gnu_ld" = yes; then
 
660
  AC_MSG_CHECKING([for GNU ld])
 
661
else
 
662
  AC_MSG_CHECKING([for non-GNU ld])
 
663
fi
 
664
AC_CACHE_VAL(acl_cv_path_LD,
 
665
[if test -z "$LD"; then
 
666
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
667
  for ac_dir in $PATH; do
 
668
    test -z "$ac_dir" && ac_dir=.
 
669
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
670
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
671
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
672
      # but apparently some GNU ld's only accept -v.
 
673
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
674
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
675
      *GNU* | *'with BFD'*)
 
676
        test "$with_gnu_ld" != no && break ;;
 
677
      *)
 
678
        test "$with_gnu_ld" != yes && break ;;
 
679
      esac
 
680
    fi
 
681
  done
 
682
  IFS="$ac_save_ifs"
 
683
else
 
684
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
685
fi])
 
686
LD="$acl_cv_path_LD"
 
687
if test -n "$LD"; then
 
688
  AC_MSG_RESULT($LD)
2020
689
else
2021
690
  AC_MSG_RESULT(no)
2022
691
fi
2023
 
AC_SUBST($1)dnl
2024
 
])
2025
 
 
2026
 
# lib-prefix.m4 serial 4 (gettext-0.14.2)
2027
 
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
2028
 
dnl This file is free software; the Free Software Foundation
2029
 
dnl gives unlimited permission to copy and/or distribute it,
2030
 
dnl with or without modifications, as long as this notice is preserved.
2031
 
 
2032
 
dnl From Bruno Haible.
2033
 
 
2034
 
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
2035
 
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
2036
 
dnl require excessive bracketing.
2037
 
ifdef([AC_HELP_STRING],
2038
 
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
2039
 
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
2040
 
 
2041
 
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
2042
 
dnl to access previously installed libraries. The basic assumption is that
2043
 
dnl a user will want packages to use other packages he previously installed
2044
 
dnl with the same --prefix option.
2045
 
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
2046
 
dnl libraries, but is otherwise very convenient.
2047
 
AC_DEFUN([AC_LIB_PREFIX],
2048
 
[
2049
 
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
2050
 
  AC_REQUIRE([AC_PROG_CC])
2051
 
  AC_REQUIRE([AC_CANONICAL_HOST])
2052
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2053
 
  dnl By default, look in $includedir and $libdir.
2054
 
  use_additional=yes
2055
 
  AC_LIB_WITH_FINAL_PREFIX([
2056
 
    eval additional_includedir=\"$includedir\"
2057
 
    eval additional_libdir=\"$libdir\"
2058
 
  ])
2059
 
  AC_LIB_ARG_WITH([lib-prefix],
2060
 
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
2061
 
  --without-lib-prefix    don't search for libraries in includedir and libdir],
2062
 
[
2063
 
    if test "X$withval" = "Xno"; then
2064
 
      use_additional=no
2065
 
    else
2066
 
      if test "X$withval" = "X"; then
2067
 
        AC_LIB_WITH_FINAL_PREFIX([
2068
 
          eval additional_includedir=\"$includedir\"
2069
 
          eval additional_libdir=\"$libdir\"
2070
 
        ])
2071
 
      else
2072
 
        additional_includedir="$withval/include"
2073
 
        additional_libdir="$withval/lib"
2074
 
      fi
2075
 
    fi
2076
 
])
2077
 
  if test $use_additional = yes; then
2078
 
    dnl Potentially add $additional_includedir to $CPPFLAGS.
2079
 
    dnl But don't add it
2080
 
    dnl   1. if it's the standard /usr/include,
2081
 
    dnl   2. if it's already present in $CPPFLAGS,
2082
 
    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
2083
 
    dnl   4. if it doesn't exist as a directory.
2084
 
    if test "X$additional_includedir" != "X/usr/include"; then
2085
 
      haveit=
2086
 
      for x in $CPPFLAGS; do
2087
 
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2088
 
        if test "X$x" = "X-I$additional_includedir"; then
2089
 
          haveit=yes
2090
 
          break
2091
 
        fi
2092
 
      done
2093
 
      if test -z "$haveit"; then
2094
 
        if test "X$additional_includedir" = "X/usr/local/include"; then
2095
 
          if test -n "$GCC"; then
2096
 
            case $host_os in
2097
 
              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2098
 
            esac
2099
 
          fi
2100
 
        fi
2101
 
        if test -z "$haveit"; then
2102
 
          if test -d "$additional_includedir"; then
2103
 
            dnl Really add $additional_includedir to $CPPFLAGS.
2104
 
            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
2105
 
          fi
2106
 
        fi
2107
 
      fi
2108
 
    fi
2109
 
    dnl Potentially add $additional_libdir to $LDFLAGS.
2110
 
    dnl But don't add it
2111
 
    dnl   1. if it's the standard /usr/lib,
2112
 
    dnl   2. if it's already present in $LDFLAGS,
2113
 
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
2114
 
    dnl   4. if it doesn't exist as a directory.
2115
 
    if test "X$additional_libdir" != "X/usr/lib"; then
2116
 
      haveit=
2117
 
      for x in $LDFLAGS; do
2118
 
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
2119
 
        if test "X$x" = "X-L$additional_libdir"; then
2120
 
          haveit=yes
2121
 
          break
2122
 
        fi
2123
 
      done
2124
 
      if test -z "$haveit"; then
2125
 
        if test "X$additional_libdir" = "X/usr/local/lib"; then
2126
 
          if test -n "$GCC"; then
2127
 
            case $host_os in
2128
 
              linux*) haveit=yes;;
2129
 
            esac
2130
 
          fi
2131
 
        fi
2132
 
        if test -z "$haveit"; then
2133
 
          if test -d "$additional_libdir"; then
2134
 
            dnl Really add $additional_libdir to $LDFLAGS.
2135
 
            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
2136
 
          fi
2137
 
        fi
2138
 
      fi
2139
 
    fi
2140
 
  fi
2141
 
])
2142
 
 
2143
 
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
2144
 
dnl acl_final_exec_prefix, containing the values to which $prefix and
2145
 
dnl $exec_prefix will expand at the end of the configure script.
2146
 
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
2147
 
[
2148
 
  dnl Unfortunately, prefix and exec_prefix get only finally determined
2149
 
  dnl at the end of configure.
2150
 
  if test "X$prefix" = "XNONE"; then
2151
 
    acl_final_prefix="$ac_default_prefix"
2152
 
  else
2153
 
    acl_final_prefix="$prefix"
2154
 
  fi
2155
 
  if test "X$exec_prefix" = "XNONE"; then
2156
 
    acl_final_exec_prefix='${prefix}'
2157
 
  else
2158
 
    acl_final_exec_prefix="$exec_prefix"
2159
 
  fi
2160
 
  acl_save_prefix="$prefix"
2161
 
  prefix="$acl_final_prefix"
2162
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2163
 
  prefix="$acl_save_prefix"
2164
 
])
2165
 
 
2166
 
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
2167
 
dnl variables prefix and exec_prefix bound to the values they will have
2168
 
dnl at the end of the configure script.
2169
 
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
2170
 
[
2171
 
  acl_save_prefix="$prefix"
2172
 
  prefix="$acl_final_prefix"
2173
 
  acl_save_exec_prefix="$exec_prefix"
2174
 
  exec_prefix="$acl_final_exec_prefix"
2175
 
  $1
2176
 
  exec_prefix="$acl_save_exec_prefix"
2177
 
  prefix="$acl_save_prefix"
2178
 
])
2179
 
 
2180
 
# lib-link.m4 serial 6 (gettext-0.14.3)
2181
 
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
2182
 
dnl This file is free software; the Free Software Foundation
2183
 
dnl gives unlimited permission to copy and/or distribute it,
2184
 
dnl with or without modifications, as long as this notice is preserved.
2185
 
 
2186
 
dnl From Bruno Haible.
2187
 
 
2188
 
AC_PREREQ(2.50)
 
692
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 
693
AC_LIB_PROG_LD_GNU
 
694
])
 
695
 
 
696
# lib-link.m4 serial 13 (gettext-0.17)
 
697
dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
 
698
dnl This file is free software; the Free Software Foundation
 
699
dnl gives unlimited permission to copy and/or distribute it,
 
700
dnl with or without modifications, as long as this notice is preserved.
 
701
 
 
702
dnl From Bruno Haible.
 
703
 
 
704
AC_PREREQ(2.54)
2189
705
 
2190
706
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
2191
707
dnl the libraries corresponding to explicit and implicit dependencies.
2192
708
dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
2193
709
dnl augments the CPPFLAGS variable.
 
710
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
 
711
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
2194
712
AC_DEFUN([AC_LIB_LINKFLAGS],
2195
713
[
2196
714
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2203
721
    ac_cv_lib[]Name[]_libs="$LIB[]NAME"
2204
722
    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
2205
723
    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
 
724
    ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
2206
725
  ])
2207
726
  LIB[]NAME="$ac_cv_lib[]Name[]_libs"
2208
727
  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
2209
728
  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
 
729
  LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
2210
730
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
2211
731
  AC_SUBST([LIB]NAME)
2212
732
  AC_SUBST([LTLIB]NAME)
 
733
  AC_SUBST([LIB]NAME[_PREFIX])
2213
734
  dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
2214
735
  dnl results of this search when this library appears as a dependency.
2215
736
  HAVE_LIB[]NAME=yes
2225
746
dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
2226
747
dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
2227
748
dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
 
749
dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
 
750
dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
2228
751
AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
2229
752
[
2230
753
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2261
784
    CPPFLAGS="$ac_save_CPPFLAGS"
2262
785
    LIB[]NAME=
2263
786
    LTLIB[]NAME=
 
787
    LIB[]NAME[]_PREFIX=
2264
788
  fi
2265
789
  AC_SUBST([HAVE_LIB]NAME)
2266
790
  AC_SUBST([LIB]NAME)
2267
791
  AC_SUBST([LTLIB]NAME)
 
792
  AC_SUBST([LIB]NAME[_PREFIX])
2268
793
  undefine([Name])
2269
794
  undefine([NAME])
2270
795
])
2271
796
 
2272
797
dnl Determine the platform dependent parameters needed to use rpath:
2273
 
dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
2274
 
dnl hardcode_direct, hardcode_minus_L.
 
798
dnl   acl_libext,
 
799
dnl   acl_shlibext,
 
800
dnl   acl_hardcode_libdir_flag_spec,
 
801
dnl   acl_hardcode_libdir_separator,
 
802
dnl   acl_hardcode_direct,
 
803
dnl   acl_hardcode_minus_L.
2275
804
AC_DEFUN([AC_LIB_RPATH],
2276
805
[
2277
806
  dnl Tell automake >= 1.10 to complain if config.rpath is missing.
2288
817
    acl_cv_rpath=done
2289
818
  ])
2290
819
  wl="$acl_cv_wl"
2291
 
  libext="$acl_cv_libext"
2292
 
  shlibext="$acl_cv_shlibext"
2293
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
2294
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
2295
 
  hardcode_direct="$acl_cv_hardcode_direct"
2296
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
820
  acl_libext="$acl_cv_libext"
 
821
  acl_shlibext="$acl_cv_shlibext"
 
822
  acl_libname_spec="$acl_cv_libname_spec"
 
823
  acl_library_names_spec="$acl_cv_library_names_spec"
 
824
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
825
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
826
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
827
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
2297
828
  dnl Determine whether the user wants rpath handling at all.
2298
829
  AC_ARG_ENABLE(rpath,
2299
830
    [  --disable-rpath         do not hardcode runtime library paths],
2303
834
dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
2304
835
dnl the libraries corresponding to explicit and implicit dependencies.
2305
836
dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
 
837
dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
 
838
dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
2306
839
AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
2307
840
[
 
841
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2308
842
  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
2309
843
                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
 
844
  dnl Autoconf >= 2.61 supports dots in --with options.
 
845
  define([N_A_M_E],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit([$1],[.],[_])],[$1])])
2310
846
  dnl By default, look in $includedir and $libdir.
2311
847
  use_additional=yes
2312
848
  AC_LIB_WITH_FINAL_PREFIX([
2313
849
    eval additional_includedir=\"$includedir\"
2314
850
    eval additional_libdir=\"$libdir\"
2315
851
  ])
2316
 
  AC_LIB_ARG_WITH([lib$1-prefix],
2317
 
[  --with-lib$1-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
2318
 
  --without-lib$1-prefix     don't search for lib$1 in includedir and libdir],
 
852
  AC_LIB_ARG_WITH([lib]N_A_M_E[-prefix],
 
853
[  --with-lib]N_A_M_E[-prefix[=DIR]  search for lib$1 in DIR/include and DIR/lib
 
854
  --without-lib]N_A_M_E[-prefix     don't search for lib$1 in includedir and libdir],
2319
855
[
2320
856
    if test "X$withval" = "Xno"; then
2321
857
      use_additional=no
2327
863
        ])
2328
864
      else
2329
865
        additional_includedir="$withval/include"
2330
 
        additional_libdir="$withval/lib"
 
866
        additional_libdir="$withval/$acl_libdirstem"
2331
867
      fi
2332
868
    fi
2333
869
])
2336
872
  LIB[]NAME=
2337
873
  LTLIB[]NAME=
2338
874
  INC[]NAME=
 
875
  LIB[]NAME[]_PREFIX=
2339
876
  rpathdirs=
2340
877
  ltrpathdirs=
2341
878
  names_already_handled=
2375
912
          found_la=
2376
913
          found_so=
2377
914
          found_a=
 
915
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
916
          if test -n "$acl_shlibext"; then
 
917
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
918
          else
 
919
            shrext=
 
920
          fi
2378
921
          if test $use_additional = yes; then
2379
 
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
2380
 
              found_dir="$additional_libdir"
2381
 
              found_so="$additional_libdir/lib$name.$shlibext"
2382
 
              if test -f "$additional_libdir/lib$name.la"; then
2383
 
                found_la="$additional_libdir/lib$name.la"
2384
 
              fi
2385
 
            else
2386
 
              if test -f "$additional_libdir/lib$name.$libext"; then
2387
 
                found_dir="$additional_libdir"
2388
 
                found_a="$additional_libdir/lib$name.$libext"
2389
 
                if test -f "$additional_libdir/lib$name.la"; then
2390
 
                  found_la="$additional_libdir/lib$name.la"
 
922
            dir="$additional_libdir"
 
923
            dnl The same code as in the loop below:
 
924
            dnl First look for a shared library.
 
925
            if test -n "$acl_shlibext"; then
 
926
              if test -f "$dir/$libname$shrext"; then
 
927
                found_dir="$dir"
 
928
                found_so="$dir/$libname$shrext"
 
929
              else
 
930
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
931
                  ver=`(cd "$dir" && \
 
932
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
933
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
934
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
935
                        | sed 1q ) 2>/dev/null`
 
936
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
937
                    found_dir="$dir"
 
938
                    found_so="$dir/$libname$shrext.$ver"
 
939
                  fi
 
940
                else
 
941
                  eval library_names=\"$acl_library_names_spec\"
 
942
                  for f in $library_names; do
 
943
                    if test -f "$dir/$f"; then
 
944
                      found_dir="$dir"
 
945
                      found_so="$dir/$f"
 
946
                      break
 
947
                    fi
 
948
                  done
2391
949
                fi
2392
950
              fi
2393
951
            fi
 
952
            dnl Then look for a static library.
 
953
            if test "X$found_dir" = "X"; then
 
954
              if test -f "$dir/$libname.$acl_libext"; then
 
955
                found_dir="$dir"
 
956
                found_a="$dir/$libname.$acl_libext"
 
957
              fi
 
958
            fi
 
959
            if test "X$found_dir" != "X"; then
 
960
              if test -f "$dir/$libname.la"; then
 
961
                found_la="$dir/$libname.la"
 
962
              fi
 
963
            fi
2394
964
          fi
2395
965
          if test "X$found_dir" = "X"; then
2396
966
            for x in $LDFLAGS $LTLIB[]NAME; do
2398
968
              case "$x" in
2399
969
                -L*)
2400
970
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
2401
 
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
2402
 
                    found_dir="$dir"
2403
 
                    found_so="$dir/lib$name.$shlibext"
2404
 
                    if test -f "$dir/lib$name.la"; then
2405
 
                      found_la="$dir/lib$name.la"
2406
 
                    fi
2407
 
                  else
2408
 
                    if test -f "$dir/lib$name.$libext"; then
 
971
                  dnl First look for a shared library.
 
972
                  if test -n "$acl_shlibext"; then
 
973
                    if test -f "$dir/$libname$shrext"; then
2409
974
                      found_dir="$dir"
2410
 
                      found_a="$dir/lib$name.$libext"
2411
 
                      if test -f "$dir/lib$name.la"; then
2412
 
                        found_la="$dir/lib$name.la"
 
975
                      found_so="$dir/$libname$shrext"
 
976
                    else
 
977
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
978
                        ver=`(cd "$dir" && \
 
979
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
980
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
981
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
982
                              | sed 1q ) 2>/dev/null`
 
983
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
984
                          found_dir="$dir"
 
985
                          found_so="$dir/$libname$shrext.$ver"
 
986
                        fi
 
987
                      else
 
988
                        eval library_names=\"$acl_library_names_spec\"
 
989
                        for f in $library_names; do
 
990
                          if test -f "$dir/$f"; then
 
991
                            found_dir="$dir"
 
992
                            found_so="$dir/$f"
 
993
                            break
 
994
                          fi
 
995
                        done
2413
996
                      fi
2414
997
                    fi
2415
998
                  fi
 
999
                  dnl Then look for a static library.
 
1000
                  if test "X$found_dir" = "X"; then
 
1001
                    if test -f "$dir/$libname.$acl_libext"; then
 
1002
                      found_dir="$dir"
 
1003
                      found_a="$dir/$libname.$acl_libext"
 
1004
                    fi
 
1005
                  fi
 
1006
                  if test "X$found_dir" != "X"; then
 
1007
                    if test -f "$dir/$libname.la"; then
 
1008
                      found_la="$dir/$libname.la"
 
1009
                    fi
 
1010
                  fi
2416
1011
                  ;;
2417
1012
              esac
2418
1013
              if test "X$found_dir" != "X"; then
2427
1022
              dnl Linking with a shared library. We attempt to hardcode its
2428
1023
              dnl directory into the executable's runpath, unless it's the
2429
1024
              dnl standard /usr/lib.
2430
 
              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
1025
              if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
2431
1026
                dnl No hardcoding is needed.
2432
1027
                LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2433
1028
              else
2446
1041
                  ltrpathdirs="$ltrpathdirs $found_dir"
2447
1042
                fi
2448
1043
                dnl The hardcoding into $LIBNAME is system dependent.
2449
 
                if test "$hardcode_direct" = yes; then
 
1044
                if test "$acl_hardcode_direct" = yes; then
2450
1045
                  dnl Using DIR/libNAME.so during linking hardcodes DIR into the
2451
1046
                  dnl resulting binary.
2452
1047
                  LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2453
1048
                else
2454
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
1049
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2455
1050
                    dnl Use an explicit option to hardcode DIR into the resulting
2456
1051
                    dnl binary.
2457
1052
                    LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2482
1077
                    if test -z "$haveit"; then
2483
1078
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
2484
1079
                    fi
2485
 
                    if test "$hardcode_minus_L" != no; then
 
1080
                    if test "$acl_hardcode_minus_L" != no; then
2486
1081
                      dnl FIXME: Not sure whether we should use
2487
1082
                      dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
2488
1083
                      dnl here.
2489
1084
                      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
2490
1085
                    else
2491
 
                      dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
 
1086
                      dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
2492
1087
                      dnl here, because this doesn't fit in flags passed to the
2493
1088
                      dnl compiler. So give up. No hardcoding. This affects only
2494
1089
                      dnl very old systems.
2513
1108
            dnl Assume the include files are nearby.
2514
1109
            additional_includedir=
2515
1110
            case "$found_dir" in
2516
 
              */lib | */lib/)
2517
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
1111
              */$acl_libdirstem | */$acl_libdirstem/)
 
1112
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
1113
                LIB[]NAME[]_PREFIX="$basedir"
2518
1114
                additional_includedir="$basedir/include"
2519
1115
                ;;
2520
1116
            esac
2575
1171
                    dnl   3. if it's already present in $LDFLAGS or the already
2576
1172
                    dnl      constructed $LIBNAME,
2577
1173
                    dnl   4. if it doesn't exist as a directory.
2578
 
                    if test "X$additional_libdir" != "X/usr/lib"; then
 
1174
                    if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
2579
1175
                      haveit=
2580
 
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
1176
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
2581
1177
                        if test -n "$GCC"; then
2582
1178
                          case $host_os in
2583
1179
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2676
1272
    done
2677
1273
  done
2678
1274
  if test "X$rpathdirs" != "X"; then
2679
 
    if test -n "$hardcode_libdir_separator"; then
 
1275
    if test -n "$acl_hardcode_libdir_separator"; then
2680
1276
      dnl Weird platform: only the last -rpath option counts, the user must
2681
1277
      dnl pass all path elements in one option. We can arrange that for a
2682
1278
      dnl single library, but not when more than one $LIBNAMEs are used.
2683
1279
      alldirs=
2684
1280
      for found_dir in $rpathdirs; do
2685
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
1281
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
2686
1282
      done
2687
 
      dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
 
1283
      dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
2688
1284
      acl_save_libdir="$libdir"
2689
1285
      libdir="$alldirs"
2690
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
1286
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
2691
1287
      libdir="$acl_save_libdir"
2692
1288
      LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2693
1289
    else
2695
1291
      for found_dir in $rpathdirs; do
2696
1292
        acl_save_libdir="$libdir"
2697
1293
        libdir="$found_dir"
2698
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
1294
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
2699
1295
        libdir="$acl_save_libdir"
2700
1296
        LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
2701
1297
      done
2731
1327
  done
2732
1328
])
2733
1329
 
2734
 
# lib-ld.m4 serial 3 (gettext-0.13)
2735
 
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
2736
 
dnl This file is free software; the Free Software Foundation
2737
 
dnl gives unlimited permission to copy and/or distribute it,
2738
 
dnl with or without modifications, as long as this notice is preserved.
2739
 
 
2740
 
dnl Subroutines of libtool.m4,
2741
 
dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
2742
 
dnl with libtool.m4.
2743
 
 
2744
 
dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
2745
 
AC_DEFUN([AC_LIB_PROG_LD_GNU],
2746
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
2747
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2748
 
case `$LD -v 2>&1 </dev/null` in
2749
 
*GNU* | *'with BFD'*)
2750
 
  acl_cv_prog_gnu_ld=yes ;;
2751
 
*)
2752
 
  acl_cv_prog_gnu_ld=no ;;
2753
 
esac])
2754
 
with_gnu_ld=$acl_cv_prog_gnu_ld
2755
 
])
2756
 
 
2757
 
dnl From libtool-1.4. Sets the variable LD.
2758
 
AC_DEFUN([AC_LIB_PROG_LD],
2759
 
[AC_ARG_WITH(gnu-ld,
2760
 
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
2761
 
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
2762
 
AC_REQUIRE([AC_PROG_CC])dnl
2763
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2764
 
# Prepare PATH_SEPARATOR.
2765
 
# The user is always right.
2766
 
if test "${PATH_SEPARATOR+set}" != set; then
2767
 
  echo "#! /bin/sh" >conf$$.sh
2768
 
  echo  "exit 0"   >>conf$$.sh
2769
 
  chmod +x conf$$.sh
2770
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2771
 
    PATH_SEPARATOR=';'
2772
 
  else
2773
 
    PATH_SEPARATOR=:
2774
 
  fi
2775
 
  rm -f conf$$.sh
2776
 
fi
2777
 
ac_prog=ld
2778
 
if test "$GCC" = yes; then
2779
 
  # Check if gcc -print-prog-name=ld gives a path.
2780
 
  AC_MSG_CHECKING([for ld used by GCC])
2781
 
  case $host in
2782
 
  *-*-mingw*)
2783
 
    # gcc leaves a trailing carriage return which upsets mingw
2784
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2785
 
  *)
2786
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2787
 
  esac
2788
 
  case $ac_prog in
2789
 
    # Accept absolute paths.
2790
 
    [[\\/]* | [A-Za-z]:[\\/]*)]
2791
 
      [re_direlt='/[^/][^/]*/\.\./']
2792
 
      # Canonicalize the path of ld
2793
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2794
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2795
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2796
 
      done
2797
 
      test -z "$LD" && LD="$ac_prog"
2798
 
      ;;
2799
 
  "")
2800
 
    # If it fails, then pretend we aren't using GCC.
2801
 
    ac_prog=ld
2802
 
    ;;
2803
 
  *)
2804
 
    # If it is relative, then search for the first ld in PATH.
2805
 
    with_gnu_ld=unknown
2806
 
    ;;
2807
 
  esac
2808
 
elif test "$with_gnu_ld" = yes; then
2809
 
  AC_MSG_CHECKING([for GNU ld])
2810
 
else
2811
 
  AC_MSG_CHECKING([for non-GNU ld])
2812
 
fi
2813
 
AC_CACHE_VAL(acl_cv_path_LD,
2814
 
[if test -z "$LD"; then
2815
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2816
 
  for ac_dir in $PATH; do
2817
 
    test -z "$ac_dir" && ac_dir=.
2818
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2819
 
      acl_cv_path_LD="$ac_dir/$ac_prog"
2820
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
2821
 
      # but apparently some GNU ld's only accept -v.
2822
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
2823
 
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
2824
 
      *GNU* | *'with BFD'*)
2825
 
        test "$with_gnu_ld" != no && break ;;
2826
 
      *)
2827
 
        test "$with_gnu_ld" != yes && break ;;
2828
 
      esac
2829
 
    fi
2830
 
  done
2831
 
  IFS="$ac_save_ifs"
2832
 
else
2833
 
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
2834
 
fi])
2835
 
LD="$acl_cv_path_LD"
2836
 
if test -n "$LD"; then
2837
 
  AC_MSG_RESULT($LD)
2838
 
else
2839
 
  AC_MSG_RESULT(no)
2840
 
fi
2841
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2842
 
AC_LIB_PROG_LD_GNU
2843
 
])
2844
 
 
2845
 
# iconv.m4 serial AM4 (gettext-0.11.3)
2846
 
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
2847
 
dnl This file is free software; the Free Software Foundation
2848
 
dnl gives unlimited permission to copy and/or distribute it,
2849
 
dnl with or without modifications, as long as this notice is preserved.
2850
 
 
2851
 
dnl From Bruno Haible.
2852
 
 
2853
 
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
 
1330
dnl For those cases where a variable contains several -L and -l options
 
1331
dnl referring to unknown libraries and directories, this macro determines the
 
1332
dnl necessary additional linker options for the runtime path.
 
1333
dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
 
1334
dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
 
1335
dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
 
1336
dnl otherwise linking without libtool is assumed.
 
1337
AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
2854
1338
[
2855
 
  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
2856
 
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
2857
1339
  AC_REQUIRE([AC_LIB_RPATH])
2858
 
 
2859
 
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2860
 
  dnl accordingly.
2861
 
  AC_LIB_LINKFLAGS_BODY([iconv])
2862
 
])
2863
 
 
2864
 
AC_DEFUN([AM_ICONV_LINK],
2865
 
[
2866
 
  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
2867
 
  dnl those with the standalone portable GNU libiconv installed).
2868
 
 
2869
 
  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
2870
 
  dnl accordingly.
2871
 
  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
2872
 
 
2873
 
  dnl Add $INCICONV to CPPFLAGS before performing the following checks,
2874
 
  dnl because if the user has installed libiconv and not disabled its use
2875
 
  dnl via --without-libiconv-prefix, he wants to use it. The first
2876
 
  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
2877
 
  am_save_CPPFLAGS="$CPPFLAGS"
2878
 
  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
2879
 
 
2880
 
  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
2881
 
    am_cv_func_iconv="no, consider installing GNU libiconv"
2882
 
    am_cv_lib_iconv=no
2883
 
    AC_TRY_LINK([#include <stdlib.h>
2884
 
#include <iconv.h>],
2885
 
      [iconv_t cd = iconv_open("","");
2886
 
       iconv(cd,NULL,NULL,NULL,NULL);
2887
 
       iconv_close(cd);],
2888
 
      am_cv_func_iconv=yes)
2889
 
    if test "$am_cv_func_iconv" != yes; then
2890
 
      am_save_LIBS="$LIBS"
2891
 
      LIBS="$LIBS $LIBICONV"
2892
 
      AC_TRY_LINK([#include <stdlib.h>
2893
 
#include <iconv.h>],
2894
 
        [iconv_t cd = iconv_open("","");
2895
 
         iconv(cd,NULL,NULL,NULL,NULL);
2896
 
         iconv_close(cd);],
2897
 
        am_cv_lib_iconv=yes
2898
 
        am_cv_func_iconv=yes)
2899
 
      LIBS="$am_save_LIBS"
 
1340
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 
1341
  $1=
 
1342
  if test "$enable_rpath" != no; then
 
1343
    if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
1344
      dnl Use an explicit option to hardcode directories into the resulting
 
1345
      dnl binary.
 
1346
      rpathdirs=
 
1347
      next=
 
1348
      for opt in $2; do
 
1349
        if test -n "$next"; then
 
1350
          dir="$next"
 
1351
          dnl No need to hardcode the standard /usr/lib.
 
1352
          if test "X$dir" != "X/usr/$acl_libdirstem"; then
 
1353
            rpathdirs="$rpathdirs $dir"
 
1354
          fi
 
1355
          next=
 
1356
        else
 
1357
          case $opt in
 
1358
            -L) next=yes ;;
 
1359
            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
 
1360
                 dnl No need to hardcode the standard /usr/lib.
 
1361
                 if test "X$dir" != "X/usr/$acl_libdirstem"; then
 
1362
                   rpathdirs="$rpathdirs $dir"
 
1363
                 fi
 
1364
                 next= ;;
 
1365
            *) next= ;;
 
1366
          esac
 
1367
        fi
 
1368
      done
 
1369
      if test "X$rpathdirs" != "X"; then
 
1370
        if test -n ""$3""; then
 
1371
          dnl libtool is used for linking. Use -R options.
 
1372
          for dir in $rpathdirs; do
 
1373
            $1="${$1}${$1:+ }-R$dir"
 
1374
          done
 
1375
        else
 
1376
          dnl The linker is used for linking directly.
 
1377
          if test -n "$acl_hardcode_libdir_separator"; then
 
1378
            dnl Weird platform: only the last -rpath option counts, the user
 
1379
            dnl must pass all path elements in one option.
 
1380
            alldirs=
 
1381
            for dir in $rpathdirs; do
 
1382
              alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
 
1383
            done
 
1384
            acl_save_libdir="$libdir"
 
1385
            libdir="$alldirs"
 
1386
            eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
1387
            libdir="$acl_save_libdir"
 
1388
            $1="$flag"
 
1389
          else
 
1390
            dnl The -rpath options are cumulative.
 
1391
            for dir in $rpathdirs; do
 
1392
              acl_save_libdir="$libdir"
 
1393
              libdir="$dir"
 
1394
              eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
1395
              libdir="$acl_save_libdir"
 
1396
              $1="${$1}${$1:+ }$flag"
 
1397
            done
 
1398
          fi
 
1399
        fi
 
1400
      fi
2900
1401
    fi
2901
 
  ])
2902
 
  if test "$am_cv_func_iconv" = yes; then
2903
 
    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
2904
 
  fi
2905
 
  if test "$am_cv_lib_iconv" = yes; then
2906
 
    AC_MSG_CHECKING([how to link with libiconv])
2907
 
    AC_MSG_RESULT([$LIBICONV])
2908
 
  else
2909
 
    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
2910
 
    dnl either.
2911
 
    CPPFLAGS="$am_save_CPPFLAGS"
2912
 
    LIBICONV=
2913
 
    LTLIBICONV=
2914
 
  fi
2915
 
  AC_SUBST(LIBICONV)
2916
 
  AC_SUBST(LTLIBICONV)
2917
 
])
2918
 
 
2919
 
AC_DEFUN([AM_ICONV],
2920
 
[
2921
 
  AM_ICONV_LINK
2922
 
  if test "$am_cv_func_iconv" = yes; then
2923
 
    AC_MSG_CHECKING([for iconv declaration])
2924
 
    AC_CACHE_VAL(am_cv_proto_iconv, [
2925
 
      AC_TRY_COMPILE([
2926
 
#include <stdlib.h>
2927
 
#include <iconv.h>
2928
 
extern
2929
 
#ifdef __cplusplus
2930
 
"C"
2931
 
#endif
2932
 
#if defined(__STDC__) || defined(__cplusplus)
2933
 
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2934
 
#else
2935
 
size_t iconv();
2936
 
#endif
2937
 
], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
2938
 
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
2939
 
    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2940
 
    AC_MSG_RESULT([$]{ac_t:-
2941
 
         }[$]am_cv_proto_iconv)
2942
 
    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
2943
 
      [Define as const if the declaration of iconv() needs const.])
2944
 
  fi
2945
 
])
2946
 
 
2947
 
# glibc2.m4 serial 1
2948
 
dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
2949
 
dnl This file is free software; the Free Software Foundation
2950
 
dnl gives unlimited permission to copy and/or distribute it,
2951
 
dnl with or without modifications, as long as this notice is preserved.
2952
 
 
2953
 
# Test for the GNU C Library, version 2.0 or newer.
2954
 
# From Bruno Haible.
2955
 
 
2956
 
AC_DEFUN([gt_GLIBC2],
2957
 
  [
2958
 
    AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer,
2959
 
      ac_cv_gnu_library_2,
2960
 
      [AC_EGREP_CPP([Lucky GNU user],
2961
 
        [
2962
 
#include <features.h>
2963
 
#ifdef __GNU_LIBRARY__
2964
 
 #if (__GLIBC__ >= 2)
2965
 
  Lucky GNU user
2966
 
 #endif
2967
 
#endif
2968
 
        ],
2969
 
        ac_cv_gnu_library_2=yes,
2970
 
        ac_cv_gnu_library_2=no)
2971
 
      ]
2972
 
    )
2973
 
    AC_SUBST(GLIBC2)
2974
 
    GLIBC2="$ac_cv_gnu_library_2"
2975
 
  ]
2976
 
)
2977
 
 
2978
 
# isc-posix.m4 serial 2 (gettext-0.11.2)
2979
 
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
2980
 
dnl This file is free software; the Free Software Foundation
2981
 
dnl gives unlimited permission to copy and/or distribute it,
2982
 
dnl with or without modifications, as long as this notice is preserved.
2983
 
 
2984
 
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
2985
 
 
2986
 
# This test replaces the one in autoconf.
2987
 
# Currently this macro should have the same name as the autoconf macro
2988
 
# because gettext's gettext.m4 (distributed in the automake package)
2989
 
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
2990
 
# give these diagnostics:
2991
 
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
2992
 
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
2993
 
 
2994
 
undefine([AC_ISC_POSIX])
2995
 
 
2996
 
AC_DEFUN([AC_ISC_POSIX],
2997
 
  [
2998
 
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
2999
 
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
3000
 
  ]
3001
 
)
3002
 
 
3003
 
# signed.m4 serial 1 (gettext-0.10.40)
3004
 
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
3005
 
dnl This file is free software; the Free Software Foundation
3006
 
dnl gives unlimited permission to copy and/or distribute it,
3007
 
dnl with or without modifications, as long as this notice is preserved.
3008
 
 
3009
 
dnl From Bruno Haible.
3010
 
 
3011
 
AC_DEFUN([bh_C_SIGNED],
3012
 
[
3013
 
  AC_CACHE_CHECK([for signed], bh_cv_c_signed,
3014
 
   [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)])
3015
 
  if test $bh_cv_c_signed = no; then
3016
 
    AC_DEFINE(signed, ,
3017
 
              [Define to empty if the C compiler doesn't support this keyword.])
3018
 
  fi
3019
 
])
3020
 
 
3021
 
# longlong.m4 serial 5
3022
 
dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
3023
 
dnl This file is free software; the Free Software Foundation
3024
 
dnl gives unlimited permission to copy and/or distribute it,
3025
 
dnl with or without modifications, as long as this notice is preserved.
3026
 
 
3027
 
dnl From Paul Eggert.
3028
 
 
3029
 
# Define HAVE_LONG_LONG if 'long long' works.
3030
 
 
3031
 
AC_DEFUN([gl_AC_TYPE_LONG_LONG],
3032
 
[
3033
 
  AC_CACHE_CHECK([for long long], ac_cv_type_long_long,
3034
 
  [AC_TRY_LINK([long long ll = 1LL; int i = 63;],
3035
 
    [long long llmax = (long long) -1;
3036
 
     return ll << i | ll >> i | llmax / ll | llmax % ll;],
3037
 
    ac_cv_type_long_long=yes,
3038
 
    ac_cv_type_long_long=no)])
3039
 
  if test $ac_cv_type_long_long = yes; then
3040
 
    AC_DEFINE(HAVE_LONG_LONG, 1,
3041
 
      [Define if you have the 'long long' type.])
3042
 
  fi
3043
 
])
3044
 
 
3045
 
# longdouble.m4 serial 1 (gettext-0.12)
3046
 
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3047
 
dnl This file is free software; the Free Software Foundation
3048
 
dnl gives unlimited permission to copy and/or distribute it,
3049
 
dnl with or without modifications, as long as this notice is preserved.
3050
 
 
3051
 
dnl From Bruno Haible.
3052
 
dnl Test whether the compiler supports the 'long double' type.
3053
 
dnl Prerequisite: AC_PROG_CC
3054
 
 
3055
 
AC_DEFUN([gt_TYPE_LONGDOUBLE],
3056
 
[
3057
 
  AC_CACHE_CHECK([for long double], gt_cv_c_long_double,
3058
 
    [if test "$GCC" = yes; then
3059
 
       gt_cv_c_long_double=yes
3060
 
     else
3061
 
       AC_TRY_COMPILE([
3062
 
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
3063
 
         long double foo = 0.0;
3064
 
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
3065
 
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
3066
 
         ], ,
3067
 
         gt_cv_c_long_double=yes, gt_cv_c_long_double=no)
3068
 
     fi])
3069
 
  if test $gt_cv_c_long_double = yes; then
3070
 
    AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.])
3071
 
  fi
3072
 
])
3073
 
 
3074
 
# wchar_t.m4 serial 1 (gettext-0.12)
3075
 
dnl Copyright (C) 2002-2003 Free Software Foundation, Inc.
3076
 
dnl This file is free software; the Free Software Foundation
3077
 
dnl gives unlimited permission to copy and/or distribute it,
3078
 
dnl with or without modifications, as long as this notice is preserved.
3079
 
 
3080
 
dnl From Bruno Haible.
3081
 
dnl Test whether <stddef.h> has the 'wchar_t' type.
3082
 
dnl Prerequisite: AC_PROG_CC
3083
 
 
3084
 
AC_DEFUN([gt_TYPE_WCHAR_T],
3085
 
[
3086
 
  AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t,
3087
 
    [AC_TRY_COMPILE([#include <stddef.h>
3088
 
       wchar_t foo = (wchar_t)'\0';], ,
3089
 
       gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)])
3090
 
  if test $gt_cv_c_wchar_t = yes; then
3091
 
    AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.])
3092
 
  fi
3093
 
])
3094
 
 
3095
 
# wint_t.m4 serial 1 (gettext-0.12)
3096
 
dnl Copyright (C) 2003 Free Software Foundation, Inc.
3097
 
dnl This file is free software; the Free Software Foundation
3098
 
dnl gives unlimited permission to copy and/or distribute it,
3099
 
dnl with or without modifications, as long as this notice is preserved.
3100
 
 
3101
 
dnl From Bruno Haible.
3102
 
dnl Test whether <wchar.h> has the 'wint_t' type.
3103
 
dnl Prerequisite: AC_PROG_CC
3104
 
 
3105
 
AC_DEFUN([gt_TYPE_WINT_T],
3106
 
[
3107
 
  AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t,
3108
 
    [AC_TRY_COMPILE([#include <wchar.h>
3109
 
       wint_t foo = (wchar_t)'\0';], ,
3110
 
       gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)])
3111
 
  if test $gt_cv_c_wint_t = yes; then
3112
 
    AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.])
3113
 
  fi
3114
 
])
3115
 
 
3116
 
# inttypes_h.m4 serial 6
3117
 
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3118
 
dnl This file is free software; the Free Software Foundation
3119
 
dnl gives unlimited permission to copy and/or distribute it,
3120
 
dnl with or without modifications, as long as this notice is preserved.
3121
 
 
3122
 
dnl From Paul Eggert.
3123
 
 
3124
 
# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
3125
 
# doesn't clash with <sys/types.h>, and declares uintmax_t.
3126
 
 
3127
 
AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
3128
 
[
3129
 
  AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,
3130
 
  [AC_TRY_COMPILE(
3131
 
    [#include <sys/types.h>
3132
 
#include <inttypes.h>],
3133
 
    [uintmax_t i = (uintmax_t) -1;],
3134
 
    gl_cv_header_inttypes_h=yes,
3135
 
    gl_cv_header_inttypes_h=no)])
3136
 
  if test $gl_cv_header_inttypes_h = yes; then
3137
 
    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
3138
 
      [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
3139
 
       and declares uintmax_t. ])
3140
 
  fi
3141
 
])
3142
 
 
3143
 
# stdint_h.m4 serial 5
3144
 
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3145
 
dnl This file is free software; the Free Software Foundation
3146
 
dnl gives unlimited permission to copy and/or distribute it,
3147
 
dnl with or without modifications, as long as this notice is preserved.
3148
 
 
3149
 
dnl From Paul Eggert.
3150
 
 
3151
 
# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
3152
 
# doesn't clash with <sys/types.h>, and declares uintmax_t.
3153
 
 
3154
 
AC_DEFUN([gl_AC_HEADER_STDINT_H],
3155
 
[
3156
 
  AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h,
3157
 
  [AC_TRY_COMPILE(
3158
 
    [#include <sys/types.h>
3159
 
#include <stdint.h>],
3160
 
    [uintmax_t i = (uintmax_t) -1;],
3161
 
    gl_cv_header_stdint_h=yes,
3162
 
    gl_cv_header_stdint_h=no)])
3163
 
  if test $gl_cv_header_stdint_h = yes; then
3164
 
    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
3165
 
      [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
3166
 
       and declares uintmax_t. ])
3167
 
  fi
3168
 
])
3169
 
 
3170
 
# intmax.m4 serial 2 (gettext-0.14.2)
3171
 
dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
3172
 
dnl This file is free software; the Free Software Foundation
3173
 
dnl gives unlimited permission to copy and/or distribute it,
3174
 
dnl with or without modifications, as long as this notice is preserved.
3175
 
 
3176
 
dnl From Bruno Haible.
3177
 
dnl Test whether the system has the 'intmax_t' type, but don't attempt to
3178
 
dnl find a replacement if it is lacking.
3179
 
 
3180
 
AC_DEFUN([gt_TYPE_INTMAX_T],
3181
 
[
3182
 
  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
3183
 
  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
3184
 
  AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
3185
 
    [AC_TRY_COMPILE([
3186
 
#include <stddef.h>
3187
 
#include <stdlib.h>
3188
 
#if HAVE_STDINT_H_WITH_UINTMAX
3189
 
#include <stdint.h>
3190
 
#endif
3191
 
#if HAVE_INTTYPES_H_WITH_UINTMAX
3192
 
#include <inttypes.h>
3193
 
#endif
3194
 
], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])
3195
 
  if test $gt_cv_c_intmax_t = yes; then
3196
 
    AC_DEFINE(HAVE_INTMAX_T, 1,
3197
 
      [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
3198
 
  fi
3199
 
])
3200
 
 
3201
 
# printf-posix.m4 serial 2 (gettext-0.13.1)
3202
 
dnl Copyright (C) 2003 Free Software Foundation, Inc.
3203
 
dnl This file is free software; the Free Software Foundation
3204
 
dnl gives unlimited permission to copy and/or distribute it,
3205
 
dnl with or without modifications, as long as this notice is preserved.
3206
 
 
3207
 
dnl From Bruno Haible.
3208
 
dnl Test whether the printf() function supports POSIX/XSI format strings with
3209
 
dnl positions.
3210
 
 
3211
 
AC_DEFUN([gt_PRINTF_POSIX],
3212
 
[
 
1402
  fi
 
1403
  AC_SUBST([$1])
 
1404
])
 
1405
 
 
1406
# lib-prefix.m4 serial 5 (gettext-0.15)
 
1407
dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
 
1408
dnl This file is free software; the Free Software Foundation
 
1409
dnl gives unlimited permission to copy and/or distribute it,
 
1410
dnl with or without modifications, as long as this notice is preserved.
 
1411
 
 
1412
dnl From Bruno Haible.
 
1413
 
 
1414
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
 
1415
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
 
1416
dnl require excessive bracketing.
 
1417
ifdef([AC_HELP_STRING],
 
1418
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
 
1419
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
 
1420
 
 
1421
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
 
1422
dnl to access previously installed libraries. The basic assumption is that
 
1423
dnl a user will want packages to use other packages he previously installed
 
1424
dnl with the same --prefix option.
 
1425
dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
 
1426
dnl libraries, but is otherwise very convenient.
 
1427
AC_DEFUN([AC_LIB_PREFIX],
 
1428
[
 
1429
  AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
3213
1430
  AC_REQUIRE([AC_PROG_CC])
3214
 
  AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings],
3215
 
    gt_cv_func_printf_posix,
3216
 
    [
3217
 
      AC_TRY_RUN([
3218
 
#include <stdio.h>
3219
 
#include <string.h>
3220
 
/* The string "%2$d %1$d", with dollar characters protected from the shell's
3221
 
   dollar expansion (possibly an autoconf bug).  */
3222
 
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
3223
 
static char buf[100];
3224
 
int main ()
3225
 
{
3226
 
  sprintf (buf, format, 33, 55);
3227
 
  return (strcmp (buf, "55 33") != 0);
3228
 
}], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no,
3229
 
      [
3230
 
        AC_EGREP_CPP(notposix, [
3231
 
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
3232
 
  notposix
3233
 
#endif
3234
 
        ], gt_cv_func_printf_posix="guessing no",
3235
 
           gt_cv_func_printf_posix="guessing yes")
3236
 
      ])
3237
 
    ])
3238
 
  case $gt_cv_func_printf_posix in
3239
 
    *yes)
3240
 
      AC_DEFINE(HAVE_POSIX_PRINTF, 1,
3241
 
        [Define if your printf() function supports format strings with positions.])
3242
 
      ;;
3243
 
  esac
3244
 
])
3245
 
 
3246
 
# glibc21.m4 serial 3
3247
 
dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
3248
 
dnl This file is free software; the Free Software Foundation
3249
 
dnl gives unlimited permission to copy and/or distribute it,
3250
 
dnl with or without modifications, as long as this notice is preserved.
3251
 
 
3252
 
# Test for the GNU C Library, version 2.1 or newer.
3253
 
# From Bruno Haible.
3254
 
 
3255
 
AC_DEFUN([gl_GLIBC21],
3256
 
  [
3257
 
    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
3258
 
      ac_cv_gnu_library_2_1,
3259
 
      [AC_EGREP_CPP([Lucky GNU user],
3260
 
        [
3261
 
#include <features.h>
3262
 
#ifdef __GNU_LIBRARY__
3263
 
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3264
 
  Lucky GNU user
3265
 
 #endif
3266
 
#endif
3267
 
        ],
3268
 
        ac_cv_gnu_library_2_1=yes,
3269
 
        ac_cv_gnu_library_2_1=no)
3270
 
      ]
3271
 
    )
3272
 
    AC_SUBST(GLIBC21)
3273
 
    GLIBC21="$ac_cv_gnu_library_2_1"
3274
 
  ]
3275
 
)
3276
 
 
3277
 
# intdiv0.m4 serial 1 (gettext-0.11.3)
3278
 
dnl Copyright (C) 2002 Free Software Foundation, Inc.
3279
 
dnl This file is free software; the Free Software Foundation
3280
 
dnl gives unlimited permission to copy and/or distribute it,
3281
 
dnl with or without modifications, as long as this notice is preserved.
3282
 
 
3283
 
dnl From Bruno Haible.
3284
 
 
3285
 
AC_DEFUN([gt_INTDIV0],
 
1431
  AC_REQUIRE([AC_CANONICAL_HOST])
 
1432
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
 
1433
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
 
1434
  dnl By default, look in $includedir and $libdir.
 
1435
  use_additional=yes
 
1436
  AC_LIB_WITH_FINAL_PREFIX([
 
1437
    eval additional_includedir=\"$includedir\"
 
1438
    eval additional_libdir=\"$libdir\"
 
1439
  ])
 
1440
  AC_LIB_ARG_WITH([lib-prefix],
 
1441
[  --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
 
1442
  --without-lib-prefix    don't search for libraries in includedir and libdir],
3286
1443
[
3287
 
  AC_REQUIRE([AC_PROG_CC])dnl
3288
 
  AC_REQUIRE([AC_CANONICAL_HOST])dnl
3289
 
 
3290
 
  AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
3291
 
    gt_cv_int_divbyzero_sigfpe,
3292
 
    [
3293
 
      AC_TRY_RUN([
3294
 
#include <stdlib.h>
3295
 
#include <signal.h>
3296
 
 
3297
 
static void
3298
 
#ifdef __cplusplus
3299
 
sigfpe_handler (int sig)
3300
 
#else
3301
 
sigfpe_handler (sig) int sig;
3302
 
#endif
3303
 
{
3304
 
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
3305
 
  exit (sig != SIGFPE);
3306
 
}
3307
 
 
3308
 
int x = 1;
3309
 
int y = 0;
3310
 
int z;
3311
 
int nan;
3312
 
 
3313
 
int main ()
3314
 
{
3315
 
  signal (SIGFPE, sigfpe_handler);
3316
 
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
3317
 
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
3318
 
  signal (SIGTRAP, sigfpe_handler);
3319
 
#endif
3320
 
/* Linux/SPARC yields signal SIGILL.  */
3321
 
#if defined (__sparc__) && defined (__linux__)
3322
 
  signal (SIGILL, sigfpe_handler);
3323
 
#endif
3324
 
 
3325
 
  z = x / y;
3326
 
  nan = y / y;
3327
 
  exit (1);
3328
 
}
3329
 
], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
3330
 
        [
3331
 
          # Guess based on the CPU.
3332
 
          case "$host_cpu" in
3333
 
            alpha* | i[34567]86 | m68k | s390*)
3334
 
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
3335
 
            *)
3336
 
              gt_cv_int_divbyzero_sigfpe="guessing no";;
3337
 
          esac
 
1444
    if test "X$withval" = "Xno"; then
 
1445
      use_additional=no
 
1446
    else
 
1447
      if test "X$withval" = "X"; then
 
1448
        AC_LIB_WITH_FINAL_PREFIX([
 
1449
          eval additional_includedir=\"$includedir\"
 
1450
          eval additional_libdir=\"$libdir\"
3338
1451
        ])
3339
 
    ])
3340
 
  case "$gt_cv_int_divbyzero_sigfpe" in
3341
 
    *yes) value=1;;
3342
 
    *) value=0;;
3343
 
  esac
3344
 
  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
3345
 
    [Define if integer division by zero raises signal SIGFPE.])
3346
 
])
3347
 
 
3348
 
# uintmax_t.m4 serial 9
3349
 
dnl Copyright (C) 1997-2004 Free Software Foundation, Inc.
3350
 
dnl This file is free software; the Free Software Foundation
3351
 
dnl gives unlimited permission to copy and/or distribute it,
3352
 
dnl with or without modifications, as long as this notice is preserved.
3353
 
 
3354
 
dnl From Paul Eggert.
3355
 
 
3356
 
AC_PREREQ(2.13)
3357
 
 
3358
 
# Define uintmax_t to 'unsigned long' or 'unsigned long long'
3359
 
# if it is not already defined in <stdint.h> or <inttypes.h>.
3360
 
 
3361
 
AC_DEFUN([gl_AC_TYPE_UINTMAX_T],
3362
 
[
3363
 
  AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
3364
 
  AC_REQUIRE([gl_AC_HEADER_STDINT_H])
3365
 
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
3366
 
    AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG])
3367
 
    test $ac_cv_type_unsigned_long_long = yes \
3368
 
      && ac_type='unsigned long long' \
3369
 
      || ac_type='unsigned long'
3370
 
    AC_DEFINE_UNQUOTED(uintmax_t, $ac_type,
3371
 
      [Define to unsigned long or unsigned long long
3372
 
       if <stdint.h> and <inttypes.h> don't define.])
3373
 
  else
3374
 
    AC_DEFINE(HAVE_UINTMAX_T, 1,
3375
 
      [Define if you have the 'uintmax_t' type in <stdint.h> or <inttypes.h>.])
3376
 
  fi
3377
 
])
3378
 
 
3379
 
# ulonglong.m4 serial 4
3380
 
dnl Copyright (C) 1999-2004 Free Software Foundation, Inc.
3381
 
dnl This file is free software; the Free Software Foundation
3382
 
dnl gives unlimited permission to copy and/or distribute it,
3383
 
dnl with or without modifications, as long as this notice is preserved.
3384
 
 
3385
 
dnl From Paul Eggert.
3386
 
 
3387
 
# Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works.
3388
 
 
3389
 
AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG],
3390
 
[
3391
 
  AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
3392
 
  [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;],
3393
 
    [unsigned long long ullmax = (unsigned long long) -1;
3394
 
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;],
3395
 
    ac_cv_type_unsigned_long_long=yes,
3396
 
    ac_cv_type_unsigned_long_long=no)])
3397
 
  if test $ac_cv_type_unsigned_long_long = yes; then
3398
 
    AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1,
3399
 
      [Define if you have the 'unsigned long long' type.])
3400
 
  fi
3401
 
])
3402
 
 
3403
 
# inttypes.m4 serial 1 (gettext-0.11.4)
3404
 
dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
3405
 
dnl This file is free software; the Free Software Foundation
3406
 
dnl gives unlimited permission to copy and/or distribute it,
3407
 
dnl with or without modifications, as long as this notice is preserved.
3408
 
 
3409
 
dnl From Paul Eggert.
3410
 
 
3411
 
# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
3412
 
# <sys/types.h>.
3413
 
 
3414
 
AC_DEFUN([gt_HEADER_INTTYPES_H],
3415
 
[
3416
 
  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
3417
 
  [
3418
 
    AC_TRY_COMPILE(
3419
 
      [#include <sys/types.h>
3420
 
#include <inttypes.h>],
3421
 
      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
3422
 
  ])
3423
 
  if test $gt_cv_header_inttypes_h = yes; then
3424
 
    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
3425
 
      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
3426
 
  fi
3427
 
])
3428
 
 
3429
 
# inttypes-pri.m4 serial 1 (gettext-0.11.4)
3430
 
dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
3431
 
dnl This file is free software; the Free Software Foundation
3432
 
dnl gives unlimited permission to copy and/or distribute it,
3433
 
dnl with or without modifications, as long as this notice is preserved.
3434
 
 
3435
 
dnl From Bruno Haible.
3436
 
 
3437
 
# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
3438
 
# macros to non-string values.  This is the case on AIX 4.3.3.
3439
 
 
3440
 
AC_DEFUN([gt_INTTYPES_PRI],
3441
 
[
3442
 
  AC_REQUIRE([gt_HEADER_INTTYPES_H])
3443
 
  if test $gt_cv_header_inttypes_h = yes; then
3444
 
    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
3445
 
      gt_cv_inttypes_pri_broken,
3446
 
      [
3447
 
        AC_TRY_COMPILE([#include <inttypes.h>
3448
 
#ifdef PRId32
3449
 
char *p = PRId32;
3450
 
#endif
3451
 
], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
3452
 
      ])
3453
 
  fi
3454
 
  if test "$gt_cv_inttypes_pri_broken" = yes; then
3455
 
    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
3456
 
      [Define if <inttypes.h> exists and defines unusable PRI* macros.])
3457
 
  fi
3458
 
])
3459
 
 
3460
 
# xsize.m4 serial 3
3461
 
dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
3462
 
dnl This file is free software; the Free Software Foundation
3463
 
dnl gives unlimited permission to copy and/or distribute it,
3464
 
dnl with or without modifications, as long as this notice is preserved.
3465
 
 
3466
 
AC_DEFUN([gl_XSIZE],
3467
 
[
3468
 
  dnl Prerequisites of lib/xsize.h.
3469
 
  AC_REQUIRE([gl_SIZE_MAX])
3470
 
  AC_REQUIRE([AC_C_INLINE])
3471
 
  AC_CHECK_HEADERS(stdint.h)
3472
 
])
3473
 
 
3474
 
# size_max.m4 serial 2
3475
 
dnl Copyright (C) 2003 Free Software Foundation, Inc.
3476
 
dnl This file is free software; the Free Software Foundation
3477
 
dnl gives unlimited permission to copy and/or distribute it,
3478
 
dnl with or without modifications, as long as this notice is preserved.
3479
 
 
3480
 
dnl From Bruno Haible.
3481
 
 
3482
 
AC_DEFUN([gl_SIZE_MAX],
3483
 
[
3484
 
  AC_CHECK_HEADERS(stdint.h)
3485
 
  dnl First test whether the system already has SIZE_MAX.
3486
 
  AC_MSG_CHECKING([for SIZE_MAX])
3487
 
  result=
3488
 
  AC_EGREP_CPP([Found it], [
3489
 
#include <limits.h>
3490
 
#if HAVE_STDINT_H
3491
 
#include <stdint.h>
3492
 
#endif
3493
 
#ifdef SIZE_MAX
3494
 
Found it
3495
 
#endif
3496
 
], result=yes)
3497
 
  if test -z "$result"; then
3498
 
    dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
3499
 
    dnl than the type 'unsigned long'.
3500
 
    dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr',
3501
 
    dnl which is guaranteed to work from LONG_MIN to LONG_MAX.
3502
 
    _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi,
3503
 
      [#include <stddef.h>], result=?)
3504
 
    _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo,
3505
 
      [#include <stddef.h>], result=?)
3506
 
    _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint,
3507
 
      [#include <stddef.h>], result=?)
3508
 
    if test "$fits_in_uint" = 1; then
3509
 
      dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
3510
 
      dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'.
3511
 
      AC_TRY_COMPILE([#include <stddef.h>
3512
 
        extern size_t foo;
3513
 
        extern unsigned long foo;
3514
 
        ], [], fits_in_uint=0)
3515
 
    fi
3516
 
    if test -z "$result"; then
3517
 
      if test "$fits_in_uint" = 1; then
3518
 
        result="$res_hi$res_lo"U
3519
1452
      else
3520
 
        result="$res_hi$res_lo"UL
3521
 
      fi
3522
 
    else
3523
 
      dnl Shouldn't happen, but who knows...
3524
 
      result='~(size_t)0'
3525
 
    fi
3526
 
  fi
3527
 
  AC_MSG_RESULT([$result])
3528
 
  if test "$result" != yes; then
3529
 
    AC_DEFINE_UNQUOTED([SIZE_MAX], [$result],
3530
 
      [Define as the maximum value of type 'size_t', if the system doesn't define it.])
3531
 
  fi
3532
 
])
3533
 
 
3534
 
# codeset.m4 serial AM1 (gettext-0.10.40)
3535
 
dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
3536
 
dnl This file is free software; the Free Software Foundation
3537
 
dnl gives unlimited permission to copy and/or distribute it,
3538
 
dnl with or without modifications, as long as this notice is preserved.
3539
 
 
3540
 
dnl From Bruno Haible.
3541
 
 
3542
 
AC_DEFUN([AM_LANGINFO_CODESET],
3543
 
[
3544
 
  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
3545
 
    [AC_TRY_LINK([#include <langinfo.h>],
3546
 
      [char* cs = nl_langinfo(CODESET);],
3547
 
      am_cv_langinfo_codeset=yes,
3548
 
      am_cv_langinfo_codeset=no)
3549
 
    ])
3550
 
  if test $am_cv_langinfo_codeset = yes; then
3551
 
    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
3552
 
      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
3553
 
  fi
3554
 
])
3555
 
 
3556
 
# lcmessage.m4 serial 4 (gettext-0.14.2)
3557
 
dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.
3558
 
dnl This file is free software; the Free Software Foundation
3559
 
dnl gives unlimited permission to copy and/or distribute it,
3560
 
dnl with or without modifications, as long as this notice is preserved.
3561
 
dnl
3562
 
dnl This file can can be used in projects which are not available under
3563
 
dnl the GNU General Public License or the GNU Library General Public
3564
 
dnl License but which still want to provide support for the GNU gettext
3565
 
dnl functionality.
3566
 
dnl Please note that the actual code of the GNU gettext library is covered
3567
 
dnl by the GNU Library General Public License, and the rest of the GNU
3568
 
dnl gettext package package is covered by the GNU General Public License.
3569
 
dnl They are *not* in the public domain.
3570
 
 
3571
 
dnl Authors:
3572
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995.
3573
 
 
3574
 
# Check whether LC_MESSAGES is available in <locale.h>.
3575
 
 
3576
 
AC_DEFUN([gt_LC_MESSAGES],
3577
 
[
3578
 
  AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES,
3579
 
    [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
3580
 
       gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)])
3581
 
  if test $gt_cv_val_LC_MESSAGES = yes; then
3582
 
    AC_DEFINE(HAVE_LC_MESSAGES, 1,
3583
 
      [Define if your <locale.h> file defines LC_MESSAGES.])
 
1453
        additional_includedir="$withval/include"
 
1454
        additional_libdir="$withval/$acl_libdirstem"
 
1455
      fi
 
1456
    fi
 
1457
])
 
1458
  if test $use_additional = yes; then
 
1459
    dnl Potentially add $additional_includedir to $CPPFLAGS.
 
1460
    dnl But don't add it
 
1461
    dnl   1. if it's the standard /usr/include,
 
1462
    dnl   2. if it's already present in $CPPFLAGS,
 
1463
    dnl   3. if it's /usr/local/include and we are using GCC on Linux,
 
1464
    dnl   4. if it doesn't exist as a directory.
 
1465
    if test "X$additional_includedir" != "X/usr/include"; then
 
1466
      haveit=
 
1467
      for x in $CPPFLAGS; do
 
1468
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
1469
        if test "X$x" = "X-I$additional_includedir"; then
 
1470
          haveit=yes
 
1471
          break
 
1472
        fi
 
1473
      done
 
1474
      if test -z "$haveit"; then
 
1475
        if test "X$additional_includedir" = "X/usr/local/include"; then
 
1476
          if test -n "$GCC"; then
 
1477
            case $host_os in
 
1478
              linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
1479
            esac
 
1480
          fi
 
1481
        fi
 
1482
        if test -z "$haveit"; then
 
1483
          if test -d "$additional_includedir"; then
 
1484
            dnl Really add $additional_includedir to $CPPFLAGS.
 
1485
            CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
 
1486
          fi
 
1487
        fi
 
1488
      fi
 
1489
    fi
 
1490
    dnl Potentially add $additional_libdir to $LDFLAGS.
 
1491
    dnl But don't add it
 
1492
    dnl   1. if it's the standard /usr/lib,
 
1493
    dnl   2. if it's already present in $LDFLAGS,
 
1494
    dnl   3. if it's /usr/local/lib and we are using GCC on Linux,
 
1495
    dnl   4. if it doesn't exist as a directory.
 
1496
    if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
1497
      haveit=
 
1498
      for x in $LDFLAGS; do
 
1499
        AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
 
1500
        if test "X$x" = "X-L$additional_libdir"; then
 
1501
          haveit=yes
 
1502
          break
 
1503
        fi
 
1504
      done
 
1505
      if test -z "$haveit"; then
 
1506
        if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
1507
          if test -n "$GCC"; then
 
1508
            case $host_os in
 
1509
              linux*) haveit=yes;;
 
1510
            esac
 
1511
          fi
 
1512
        fi
 
1513
        if test -z "$haveit"; then
 
1514
          if test -d "$additional_libdir"; then
 
1515
            dnl Really add $additional_libdir to $LDFLAGS.
 
1516
            LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
 
1517
          fi
 
1518
        fi
 
1519
      fi
 
1520
    fi
 
1521
  fi
 
1522
])
 
1523
 
 
1524
dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
 
1525
dnl acl_final_exec_prefix, containing the values to which $prefix and
 
1526
dnl $exec_prefix will expand at the end of the configure script.
 
1527
AC_DEFUN([AC_LIB_PREPARE_PREFIX],
 
1528
[
 
1529
  dnl Unfortunately, prefix and exec_prefix get only finally determined
 
1530
  dnl at the end of configure.
 
1531
  if test "X$prefix" = "XNONE"; then
 
1532
    acl_final_prefix="$ac_default_prefix"
 
1533
  else
 
1534
    acl_final_prefix="$prefix"
 
1535
  fi
 
1536
  if test "X$exec_prefix" = "XNONE"; then
 
1537
    acl_final_exec_prefix='${prefix}'
 
1538
  else
 
1539
    acl_final_exec_prefix="$exec_prefix"
 
1540
  fi
 
1541
  acl_save_prefix="$prefix"
 
1542
  prefix="$acl_final_prefix"
 
1543
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
1544
  prefix="$acl_save_prefix"
 
1545
])
 
1546
 
 
1547
dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
 
1548
dnl variables prefix and exec_prefix bound to the values they will have
 
1549
dnl at the end of the configure script.
 
1550
AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
 
1551
[
 
1552
  acl_save_prefix="$prefix"
 
1553
  prefix="$acl_final_prefix"
 
1554
  acl_save_exec_prefix="$exec_prefix"
 
1555
  exec_prefix="$acl_final_exec_prefix"
 
1556
  $1
 
1557
  exec_prefix="$acl_save_exec_prefix"
 
1558
  prefix="$acl_save_prefix"
 
1559
])
 
1560
 
 
1561
dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
 
1562
dnl the basename of the libdir, either "lib" or "lib64".
 
1563
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
 
1564
[
 
1565
  dnl There is no formal standard regarding lib and lib64. The current
 
1566
  dnl practice is that on a system supporting 32-bit and 64-bit instruction
 
1567
  dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
 
1568
  dnl libraries go under $prefix/lib. We determine the compiler's default
 
1569
  dnl mode by looking at the compiler's library search path. If at least
 
1570
  dnl of its elements ends in /lib64 or points to a directory whose absolute
 
1571
  dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
 
1572
  dnl default, namely "lib".
 
1573
  acl_libdirstem=lib
 
1574
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
1575
  if test -n "$searchpath"; then
 
1576
    acl_save_IFS="${IFS=        }"; IFS=":"
 
1577
    for searchdir in $searchpath; do
 
1578
      if test -d "$searchdir"; then
 
1579
        case "$searchdir" in
 
1580
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
1581
          *) searchdir=`cd "$searchdir" && pwd`
 
1582
             case "$searchdir" in
 
1583
               */lib64 ) acl_libdirstem=lib64 ;;
 
1584
             esac ;;
 
1585
        esac
 
1586
      fi
 
1587
    done
 
1588
    IFS="$acl_save_IFS"
3584
1589
  fi
3585
1590
])
3586
1591
 
3587
1592
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3588
 
 
3589
 
# serial 47 AC_PROG_LIBTOOL
3590
 
 
3591
 
 
3592
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
3593
 
# -----------------------------------------------------------
3594
 
# If this macro is not defined by Autoconf, define it here.
3595
 
m4_ifdef([AC_PROVIDE_IFELSE],
3596
 
         [],
3597
 
         [m4_define([AC_PROVIDE_IFELSE],
3598
 
                 [m4_ifdef([AC_PROVIDE_$1],
3599
 
                           [$2], [$3])])])
3600
 
 
3601
 
 
3602
 
# AC_PROG_LIBTOOL
3603
 
# ---------------
3604
 
AC_DEFUN([AC_PROG_LIBTOOL],
3605
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
3606
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
3607
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
3608
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
3609
 
    [AC_LIBTOOL_CXX],
3610
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
3611
 
  ])])
3612
 
dnl And a similar setup for Fortran 77 support
3613
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
3614
 
    [AC_LIBTOOL_F77],
3615
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
3616
 
])])
3617
 
 
3618
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
3619
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
3620
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
3621
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
3622
 
    [AC_LIBTOOL_GCJ],
3623
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
3624
 
      [AC_LIBTOOL_GCJ],
3625
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
3626
 
        [AC_LIBTOOL_GCJ],
3627
 
      [ifdef([AC_PROG_GCJ],
3628
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
3629
 
       ifdef([A][M_PROG_GCJ],
3630
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
3631
 
       ifdef([LT_AC_PROG_GCJ],
3632
 
             [define([LT_AC_PROG_GCJ],
3633
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
3634
 
])])# AC_PROG_LIBTOOL
3635
 
 
3636
 
 
3637
 
# _AC_PROG_LIBTOOL
3638
 
# ----------------
3639
 
AC_DEFUN([_AC_PROG_LIBTOOL],
3640
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
3641
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
3642
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
3643
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
1593
#
 
1594
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
1595
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1596
#   Written by Gordon Matzigkeit, 1996
 
1597
#
 
1598
# This file is free software; the Free Software Foundation gives
 
1599
# unlimited permission to copy and/or distribute it, with or without
 
1600
# modifications, as long as this notice is preserved.
 
1601
 
 
1602
m4_define([_LT_COPYING], [dnl
 
1603
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
1604
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
1605
#   Written by Gordon Matzigkeit, 1996
 
1606
#
 
1607
#   This file is part of GNU Libtool.
 
1608
#
 
1609
# GNU Libtool is free software; you can redistribute it and/or
 
1610
# modify it under the terms of the GNU General Public License as
 
1611
# published by the Free Software Foundation; either version 2 of
 
1612
# the License, or (at your option) any later version.
 
1613
#
 
1614
# As a special exception to the GNU General Public License,
 
1615
# if you distribute this file as part of a program or library that
 
1616
# is built using GNU Libtool, you may include this file under the
 
1617
# same distribution terms that you use for the rest of that program.
 
1618
#
 
1619
# GNU Libtool is distributed in the hope that it will be useful,
 
1620
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
1621
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
1622
# GNU General Public License for more details.
 
1623
#
 
1624
# You should have received a copy of the GNU General Public License
 
1625
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
1626
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
1627
# obtained by writing to the Free Software Foundation, Inc.,
 
1628
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
1629
])
 
1630
 
 
1631
# serial 56 LT_INIT
 
1632
 
 
1633
 
 
1634
# LT_PREREQ(VERSION)
 
1635
# ------------------
 
1636
# Complain and exit if this libtool version is less that VERSION.
 
1637
m4_defun([LT_PREREQ],
 
1638
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
1639
       [m4_default([$3],
 
1640
                   [m4_fatal([Libtool version $1 or higher is required],
 
1641
                             63)])],
 
1642
       [$2])])
 
1643
 
 
1644
 
 
1645
# _LT_CHECK_BUILDDIR
 
1646
# ------------------
 
1647
# Complain if the absolute build directory name contains unusual characters
 
1648
m4_defun([_LT_CHECK_BUILDDIR],
 
1649
[case `pwd` in
 
1650
  *\ * | *\     *)
 
1651
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
1652
esac
 
1653
])
 
1654
 
 
1655
 
 
1656
# LT_INIT([OPTIONS])
 
1657
# ------------------
 
1658
AC_DEFUN([LT_INIT],
 
1659
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
1660
AC_BEFORE([$0], [LT_LANG])dnl
 
1661
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
1662
AC_BEFORE([$0], [LTDL_INIT])dnl
 
1663
m4_require([_LT_CHECK_BUILDDIR])dnl
 
1664
 
 
1665
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
1666
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
1667
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
1668
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
1669
dnl unless we require an AC_DEFUNed macro:
 
1670
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
1671
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
1672
AC_REQUIRE([LTVERSION_VERSION])dnl
 
1673
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
1674
m4_require([_LT_PROG_LTMAIN])dnl
 
1675
 
 
1676
dnl Parse OPTIONS
 
1677
_LT_SET_OPTIONS([$0], [$1])
3644
1678
 
3645
1679
# This can be used to rebuild libtool when needed
3646
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
1680
LIBTOOL_DEPS="$ltmain"
3647
1681
 
3648
1682
# Always use our own libtool.
3649
1683
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3650
1684
AC_SUBST(LIBTOOL)dnl
3651
1685
 
3652
 
# Prevent multiple expansion
3653
 
define([AC_PROG_LIBTOOL], [])
3654
 
])# _AC_PROG_LIBTOOL
3655
 
 
3656
 
 
3657
 
# AC_LIBTOOL_SETUP
3658
 
# ----------------
3659
 
AC_DEFUN([AC_LIBTOOL_SETUP],
3660
 
[AC_PREREQ(2.50)dnl
3661
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
3662
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
3663
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
3664
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1686
_LT_SETUP
 
1687
 
 
1688
# Only expand once:
 
1689
m4_define([LT_INIT])
 
1690
])# LT_INIT
 
1691
 
 
1692
# Old names:
 
1693
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
1694
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
1695
dnl aclocal-1.4 backwards compatibility:
 
1696
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
1697
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
1698
 
 
1699
 
 
1700
# _LT_CC_BASENAME(CC)
 
1701
# -------------------
 
1702
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
1703
m4_defun([_LT_CC_BASENAME],
 
1704
[for cc_temp in $1""; do
 
1705
  case $cc_temp in
 
1706
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
1707
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
1708
    \-*) ;;
 
1709
    *) break;;
 
1710
  esac
 
1711
done
 
1712
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
1713
])
 
1714
 
 
1715
 
 
1716
# _LT_FILEUTILS_DEFAULTS
 
1717
# ----------------------
 
1718
# It is okay to use these file commands and assume they have been set
 
1719
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
1720
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
1721
[: ${CP="cp -f"}
 
1722
: ${MV="mv -f"}
 
1723
: ${RM="rm -f"}
 
1724
])# _LT_FILEUTILS_DEFAULTS
 
1725
 
 
1726
 
 
1727
# _LT_SETUP
 
1728
# ---------
 
1729
m4_defun([_LT_SETUP],
 
1730
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3665
1731
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
1732
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
1733
_LT_DECL([], [host], [0])dnl
 
1734
_LT_DECL([], [host_os], [0])dnl
 
1735
dnl
 
1736
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
1737
_LT_DECL([], [build], [0])dnl
 
1738
_LT_DECL([], [build_os], [0])dnl
 
1739
dnl
3666
1740
AC_REQUIRE([AC_PROG_CC])dnl
3667
 
AC_REQUIRE([AC_PROG_LD])dnl
3668
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
3669
 
AC_REQUIRE([AC_PROG_NM])dnl
3670
 
 
 
1741
AC_REQUIRE([LT_PATH_LD])dnl
 
1742
AC_REQUIRE([LT_PATH_NM])dnl
 
1743
dnl
3671
1744
AC_REQUIRE([AC_PROG_LN_S])dnl
3672
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
3673
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3674
 
AC_REQUIRE([AC_OBJEXT])dnl
3675
 
AC_REQUIRE([AC_EXEEXT])dnl
3676
 
dnl
3677
 
 
3678
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
3679
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3680
 
AC_LIBTOOL_OBJDIR
3681
 
 
3682
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3683
 
_LT_AC_PROG_ECHO_BACKSLASH
 
1745
test -z "$LN_S" && LN_S="ln -s"
 
1746
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
1747
dnl
 
1748
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
1749
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
1750
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
1751
dnl
 
1752
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1753
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
1754
m4_require([_LT_CMD_RELOAD])dnl
 
1755
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
1756
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
1757
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
1758
 
 
1759
_LT_CONFIG_LIBTOOL_INIT([
 
1760
# See if we are running on zsh, and set the options which allow our
 
1761
# commands through without removal of \ escapes INIT.
 
1762
if test -n "\${ZSH_VERSION+set}" ; then
 
1763
   setopt NO_GLOB_SUBST
 
1764
fi
 
1765
])
 
1766
if test -n "${ZSH_VERSION+set}" ; then
 
1767
   setopt NO_GLOB_SUBST
 
1768
fi
 
1769
 
 
1770
_LT_CHECK_OBJDIR
 
1771
 
 
1772
m4_require([_LT_TAG_COMPILER])dnl
 
1773
_LT_PROG_ECHO_BACKSLASH
3684
1774
 
3685
1775
case $host_os in
3686
1776
aix3*)
3696
1786
 
3697
1787
# Sed substitution that helps us do robust quoting.  It backslashifies
3698
1788
# metacharacters that are still active within double-quoted strings.
3699
 
Xsed='sed -e 1s/^X//'
3700
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1789
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
3701
1790
 
3702
1791
# Same as above, but do not quote variable references.
3703
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1792
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
3704
1793
 
3705
1794
# Sed substitution to delay expansion of an escaped shell variable in a
3706
1795
# double_quote_subst'ed string.
3707
1796
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3708
1797
 
 
1798
# Sed substitution to delay expansion of an escaped single quote.
 
1799
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
1800
 
3709
1801
# Sed substitution to avoid accidental globbing in evaled expressions
3710
1802
no_glob_subst='s/\*/\\\*/g'
3711
1803
 
3712
 
# Constants:
3713
 
rm="rm -f"
3714
 
 
3715
1804
# Global variables:
3716
 
default_ofile=libtool
 
1805
ofile=libtool
3717
1806
can_build_shared=yes
3718
1807
 
3719
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
1808
# All known linkers require a `.a' archive for static linking (except MSVC,
3720
1809
# which needs '.lib').
3721
1810
libext=a
3722
 
ltmain="$ac_aux_dir/ltmain.sh"
3723
 
ofile="$default_ofile"
 
1811
 
3724
1812
with_gnu_ld="$lt_cv_prog_gnu_ld"
3725
1813
 
3726
 
AC_CHECK_TOOL(AR, ar, false)
3727
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
3728
 
AC_CHECK_TOOL(STRIP, strip, :)
3729
 
 
3730
1814
old_CC="$CC"
3731
1815
old_CFLAGS="$CFLAGS"
3732
1816
 
3733
1817
# Set sane defaults for various variables
3734
 
test -z "$AR" && AR=ar
3735
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
3736
 
test -z "$AS" && AS=as
3737
1818
test -z "$CC" && CC=cc
3738
1819
test -z "$LTCC" && LTCC=$CC
3739
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
1820
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
3740
1821
test -z "$LD" && LD=ld
3741
 
test -z "$LN_S" && LN_S="ln -s"
3742
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
3743
 
test -z "$NM" && NM=nm
3744
 
test -z "$SED" && SED=sed
3745
 
test -z "$OBJDUMP" && OBJDUMP=objdump
3746
 
test -z "$RANLIB" && RANLIB=:
3747
 
test -z "$STRIP" && STRIP=:
3748
1822
test -z "$ac_objext" && ac_objext=o
3749
1823
 
3750
 
# Determine commands to create old-style static archives.
3751
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3752
 
old_postinstall_cmds='chmod 644 $oldlib'
3753
 
old_postuninstall_cmds=
3754
 
 
3755
 
if test -n "$RANLIB"; then
3756
 
  case $host_os in
3757
 
  openbsd*)
3758
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3759
 
    ;;
3760
 
  *)
3761
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3762
 
    ;;
3763
 
  esac
3764
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3765
 
fi
3766
 
 
3767
1824
_LT_CC_BASENAME([$compiler])
3768
1825
 
3769
1826
# Only perform the check for file, if the check method requires it
 
1827
test -z "$MAGIC_CMD" && MAGIC_CMD=file
3770
1828
case $deplibs_check_method in
3771
1829
file_magic*)
3772
1830
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3773
 
    AC_PATH_MAGIC
 
1831
    _LT_PATH_MAGIC
3774
1832
  fi
3775
1833
  ;;
3776
1834
esac
3777
1835
 
3778
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
3779
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3780
 
enable_win32_dll=yes, enable_win32_dll=no)
3781
 
 
3782
 
AC_ARG_ENABLE([libtool-lock],
3783
 
    [AC_HELP_STRING([--disable-libtool-lock],
3784
 
        [avoid locking (might break parallel builds)])])
3785
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3786
 
 
3787
 
AC_ARG_WITH([pic],
3788
 
    [AC_HELP_STRING([--with-pic],
3789
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
3790
 
    [pic_mode="$withval"],
3791
 
    [pic_mode=default])
3792
 
test -z "$pic_mode" && pic_mode=default
3793
 
 
3794
 
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
3795
 
#
3796
 
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
3797
 
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
3798
 
#        calls AC_LIBTOOL_CONFIG and creates libtool.
3799
 
#
3800
 
_LT_VERSION_CHECK
3801
 
 
3802
1836
# Use C for the default configuration in the libtool script
3803
 
tagname=
3804
 
AC_LIBTOOL_LANG_C_CONFIG
3805
 
_LT_AC_TAGCONFIG
3806
 
])# AC_LIBTOOL_SETUP
3807
 
 
3808
 
 
3809
 
# _LT_VERSION_CHECK
3810
 
# -----------------
3811
 
AC_DEFUN([_LT_VERSION_CHECK],
3812
 
[AC_MSG_CHECKING([for correct ltmain.sh version])
3813
 
if test -z "$ltmain"; then
3814
 
  AC_MSG_RESULT(no)
3815
 
  echo
3816
 
  echo "*** [Gentoo] sanity check failed! ***"
3817
 
  echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
3818
 
  echo
3819
 
  exit 1
3820
 
fi
3821
 
gentoo_lt_version="1.5.18"
3822
 
gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'`
3823
 
if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
3824
 
  AC_MSG_RESULT(no)
3825
 
  echo
3826
 
  echo "*** [Gentoo] sanity check failed! ***"
3827
 
  echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
3828
 
  echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
3829
 
  echo
3830
 
  echo "Please run:"
3831
 
  echo
3832
 
  echo "  libtoolize --copy --force"
3833
 
  echo
3834
 
  echo "if appropriate, please contact the maintainer of this"
3835
 
  echo "package (or your distribution) for help."
3836
 
  echo
3837
 
  exit 1
3838
 
else
3839
 
  AC_MSG_RESULT(yes)
3840
 
fi
3841
 
])# _LT_VERSION_CHECK
3842
 
 
3843
 
 
3844
 
# _LT_AC_SYS_COMPILER
 
1837
LT_SUPPORTED_TAG([CC])
 
1838
_LT_LANG_C_CONFIG
 
1839
_LT_LANG_DEFAULT_CONFIG
 
1840
_LT_CONFIG_COMMANDS
 
1841
])# _LT_SETUP
 
1842
 
 
1843
 
 
1844
# _LT_PROG_LTMAIN
 
1845
# ---------------
 
1846
# Note that this code is called both from `configure', and `config.status'
 
1847
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
1848
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
1849
# so we pass a copy along to make sure it has a sensible value anyway.
 
1850
m4_defun([_LT_PROG_LTMAIN],
 
1851
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
1852
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
1853
ltmain="$ac_aux_dir/ltmain.sh"
 
1854
])# _LT_PROG_LTMAIN
 
1855
 
 
1856
 
 
1857
 
 
1858
# So that we can recreate a full libtool script including additional
 
1859
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
1860
# in macros and then make a single call at the end using the `libtool'
 
1861
# label.
 
1862
 
 
1863
 
 
1864
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
1865
# ----------------------------------------
 
1866
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1867
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
1868
[m4_ifval([$1],
 
1869
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
1870
                     [$1
 
1871
])])])
 
1872
 
 
1873
# Initialize.
 
1874
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
1875
 
 
1876
 
 
1877
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
1878
# ------------------------------
 
1879
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
1880
m4_define([_LT_CONFIG_LIBTOOL],
 
1881
[m4_ifval([$1],
 
1882
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
1883
                     [$1
 
1884
])])])
 
1885
 
 
1886
# Initialize.
 
1887
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
1888
 
 
1889
 
 
1890
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
1891
# -----------------------------------------------------
 
1892
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
1893
[_LT_CONFIG_LIBTOOL([$1])
 
1894
_LT_CONFIG_LIBTOOL_INIT([$2])
 
1895
])
 
1896
 
 
1897
 
 
1898
# _LT_FORMAT_COMMENT([COMMENT])
 
1899
# -----------------------------
 
1900
# Add leading comment marks to the start of each line, and a trailing
 
1901
# full-stop to the whole comment if one is not present already.
 
1902
m4_define([_LT_FORMAT_COMMENT],
 
1903
[m4_ifval([$1], [
 
1904
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
1905
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
1906
)])
 
1907
 
 
1908
 
 
1909
 
 
1910
 
 
1911
 
 
1912
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
1913
# -------------------------------------------------------------------
 
1914
# CONFIGNAME is the name given to the value in the libtool script.
 
1915
# VARNAME is the (base) name used in the configure script.
 
1916
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
1917
# VARNAME.  Any other value will be used directly.
 
1918
m4_define([_LT_DECL],
 
1919
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
1920
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
1921
        [m4_ifval([$1], [$1], [$2])])
 
1922
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
1923
    m4_ifval([$4],
 
1924
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
1925
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
1926
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
1927
])
 
1928
 
 
1929
 
 
1930
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
1931
# --------------------------------------------------------
 
1932
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
1933
 
 
1934
 
 
1935
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
1936
# ------------------------------------------------
 
1937
m4_define([lt_decl_tag_varnames],
 
1938
[_lt_decl_filter([tagged?], [yes], $@)])
 
1939
 
 
1940
 
 
1941
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
1942
# ---------------------------------------------------------
 
1943
m4_define([_lt_decl_filter],
 
1944
[m4_case([$#],
 
1945
  [0], [m4_fatal([$0: too few arguments: $#])],
 
1946
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
1947
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
1948
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
1949
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
1950
])
 
1951
 
 
1952
 
 
1953
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
1954
# --------------------------------------------------
 
1955
m4_define([lt_decl_quote_varnames],
 
1956
[_lt_decl_filter([value], [1], $@)])
 
1957
 
 
1958
 
 
1959
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
1960
# ---------------------------------------------------
 
1961
m4_define([lt_decl_dquote_varnames],
 
1962
[_lt_decl_filter([value], [2], $@)])
 
1963
 
 
1964
 
 
1965
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
1966
# ---------------------------------------------------
 
1967
m4_define([lt_decl_varnames_tagged],
 
1968
[m4_assert([$# <= 2])dnl
 
1969
_$0(m4_quote(m4_default([$1], [[, ]])),
 
1970
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
1971
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
1972
m4_define([_lt_decl_varnames_tagged],
 
1973
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
1974
 
 
1975
 
 
1976
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
1977
# ------------------------------------------------
 
1978
m4_define([lt_decl_all_varnames],
 
1979
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
1980
     m4_if([$2], [],
 
1981
           m4_quote(lt_decl_varnames),
 
1982
        m4_quote(m4_shift($@))))[]dnl
 
1983
])
 
1984
m4_define([_lt_decl_all_varnames],
 
1985
[lt_join($@, lt_decl_varnames_tagged([$1],
 
1986
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
1987
])
 
1988
 
 
1989
 
 
1990
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
1991
# ------------------------------------
 
1992
# Quote a variable value, and forward it to `config.status' so that its
 
1993
# declaration there will have the same value as in `configure'.  VARNAME
 
1994
# must have a single quote delimited value for this to work.
 
1995
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
1996
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
1997
 
 
1998
 
 
1999
# _LT_CONFIG_STATUS_DECLARATIONS
 
2000
# ------------------------------
 
2001
# We delimit libtool config variables with single quotes, so when
 
2002
# we write them to config.status, we have to be sure to quote all
 
2003
# embedded single quotes properly.  In configure, this macro expands
 
2004
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
2005
#
 
2006
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
2007
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
2008
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
2009
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
2010
 
 
2011
 
 
2012
# _LT_LIBTOOL_TAGS
 
2013
# ----------------
 
2014
# Output comment and list of tags supported by the script
 
2015
m4_defun([_LT_LIBTOOL_TAGS],
 
2016
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
2017
available_tags="_LT_TAGS"dnl
 
2018
])
 
2019
 
 
2020
 
 
2021
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
2022
# -----------------------------------
 
2023
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
2024
# expand to a commented shell variable setting:
 
2025
#
 
2026
#    # Some comment about what VAR is for.
 
2027
#    visible_name=$lt_internal_name
 
2028
m4_define([_LT_LIBTOOL_DECLARE],
 
2029
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
2030
                                           [description])))[]dnl
 
2031
m4_pushdef([_libtool_name],
 
2032
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
2033
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
2034
    [0], [_libtool_name=[$]$1],
 
2035
    [1], [_libtool_name=$lt_[]$1],
 
2036
    [2], [_libtool_name=$lt_[]$1],
 
2037
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
2038
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
2039
])
 
2040
 
 
2041
 
 
2042
# _LT_LIBTOOL_CONFIG_VARS
 
2043
# -----------------------
 
2044
# Produce commented declarations of non-tagged libtool config variables
 
2045
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
2046
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
2047
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
2048
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
2049
[m4_foreach([_lt_var],
 
2050
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
2051
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
2052
 
 
2053
 
 
2054
# _LT_LIBTOOL_TAG_VARS(TAG)
 
2055
# -------------------------
 
2056
m4_define([_LT_LIBTOOL_TAG_VARS],
 
2057
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
2058
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
2059
 
 
2060
 
 
2061
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
2062
# ------------------------------
 
2063
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
2064
 
 
2065
 
 
2066
# _LT_CONFIG_COMMANDS
3845
2067
# -------------------
3846
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
2068
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
2069
# variables for single and double quote escaping we saved from calls
 
2070
# to _LT_DECL, we can put quote escaped variables declarations
 
2071
# into `config.status', and then the shell code to quote escape them in
 
2072
# for loops in `config.status'.  Finally, any additional code accumulated
 
2073
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
2074
m4_defun([_LT_CONFIG_COMMANDS],
 
2075
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
2076
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
2077
        dnl instead of duplicating it all over again into config.status,
 
2078
        dnl then we will have config.status run $CONFIG_LT later, so it
 
2079
        dnl needs to know what name is stored there:
 
2080
        [AC_CONFIG_COMMANDS([libtool],
 
2081
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
2082
    dnl If the libtool generation code is destined for config.status,
 
2083
    dnl expand the accumulated commands and init code now:
 
2084
    [AC_CONFIG_COMMANDS([libtool],
 
2085
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
2086
])#_LT_CONFIG_COMMANDS
 
2087
 
 
2088
 
 
2089
# Initialize.
 
2090
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
2091
[
 
2092
 
 
2093
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
2094
# if CDPATH is set.
 
2095
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
2096
 
 
2097
sed_quote_subst='$sed_quote_subst'
 
2098
double_quote_subst='$double_quote_subst'
 
2099
delay_variable_subst='$delay_variable_subst'
 
2100
_LT_CONFIG_STATUS_DECLARATIONS
 
2101
LTCC='$LTCC'
 
2102
LTCFLAGS='$LTCFLAGS'
 
2103
compiler='$compiler_DEFAULT'
 
2104
 
 
2105
# Quote evaled strings.
 
2106
for var in lt_decl_all_varnames([[ \
 
2107
]], lt_decl_quote_varnames); do
 
2108
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
2109
    *[[\\\\\\\`\\"\\\$]]*)
 
2110
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
2111
      ;;
 
2112
    *)
 
2113
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
2114
      ;;
 
2115
    esac
 
2116
done
 
2117
 
 
2118
# Double-quote double-evaled strings.
 
2119
for var in lt_decl_all_varnames([[ \
 
2120
]], lt_decl_dquote_varnames); do
 
2121
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
2122
    *[[\\\\\\\`\\"\\\$]]*)
 
2123
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
2124
      ;;
 
2125
    *)
 
2126
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
2127
      ;;
 
2128
    esac
 
2129
done
 
2130
 
 
2131
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
2132
case \$lt_ECHO in
 
2133
*'\\\[$]0 --fallback-echo"')dnl "
 
2134
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
2135
  ;;
 
2136
esac
 
2137
 
 
2138
_LT_OUTPUT_LIBTOOL_INIT
 
2139
])
 
2140
 
 
2141
 
 
2142
# LT_OUTPUT
 
2143
# ---------
 
2144
# This macro allows early generation of the libtool script (before
 
2145
# AC_OUTPUT is called), incase it is used in configure for compilation
 
2146
# tests.
 
2147
AC_DEFUN([LT_OUTPUT],
 
2148
[: ${CONFIG_LT=./config.lt}
 
2149
AC_MSG_NOTICE([creating $CONFIG_LT])
 
2150
cat >"$CONFIG_LT" <<_LTEOF
 
2151
#! $SHELL
 
2152
# Generated by $as_me.
 
2153
# Run this file to recreate a libtool stub with the current configuration.
 
2154
 
 
2155
lt_cl_silent=false
 
2156
SHELL=\${CONFIG_SHELL-$SHELL}
 
2157
_LTEOF
 
2158
 
 
2159
cat >>"$CONFIG_LT" <<\_LTEOF
 
2160
AS_SHELL_SANITIZE
 
2161
_AS_PREPARE
 
2162
 
 
2163
exec AS_MESSAGE_FD>&1
 
2164
exec AS_MESSAGE_LOG_FD>>config.log
 
2165
{
 
2166
  echo
 
2167
  AS_BOX([Running $as_me.])
 
2168
} >&AS_MESSAGE_LOG_FD
 
2169
 
 
2170
lt_cl_help="\
 
2171
\`$as_me' creates a local libtool stub from the current configuration,
 
2172
for use in further configure time tests before the real libtool is
 
2173
generated.
 
2174
 
 
2175
Usage: $[0] [[OPTIONS]]
 
2176
 
 
2177
  -h, --help      print this help, then exit
 
2178
  -V, --version   print version number, then exit
 
2179
  -q, --quiet     do not print progress messages
 
2180
  -d, --debug     don't remove temporary files
 
2181
 
 
2182
Report bugs to <bug-libtool@gnu.org>."
 
2183
 
 
2184
lt_cl_version="\
 
2185
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
2186
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
2187
configured by $[0], generated by m4_PACKAGE_STRING.
 
2188
 
 
2189
Copyright (C) 2008 Free Software Foundation, Inc.
 
2190
This config.lt script is free software; the Free Software Foundation
 
2191
gives unlimited permision to copy, distribute and modify it."
 
2192
 
 
2193
while test $[#] != 0
 
2194
do
 
2195
  case $[1] in
 
2196
    --version | --v* | -V )
 
2197
      echo "$lt_cl_version"; exit 0 ;;
 
2198
    --help | --h* | -h )
 
2199
      echo "$lt_cl_help"; exit 0 ;;
 
2200
    --debug | --d* | -d )
 
2201
      debug=: ;;
 
2202
    --quiet | --q* | --silent | --s* | -q )
 
2203
      lt_cl_silent=: ;;
 
2204
 
 
2205
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
2206
Try \`$[0] --help' for more information.]) ;;
 
2207
 
 
2208
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
2209
Try \`$[0] --help' for more information.]) ;;
 
2210
  esac
 
2211
  shift
 
2212
done
 
2213
 
 
2214
if $lt_cl_silent; then
 
2215
  exec AS_MESSAGE_FD>/dev/null
 
2216
fi
 
2217
_LTEOF
 
2218
 
 
2219
cat >>"$CONFIG_LT" <<_LTEOF
 
2220
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
2221
_LTEOF
 
2222
 
 
2223
cat >>"$CONFIG_LT" <<\_LTEOF
 
2224
AC_MSG_NOTICE([creating $ofile])
 
2225
_LT_OUTPUT_LIBTOOL_COMMANDS
 
2226
AS_EXIT(0)
 
2227
_LTEOF
 
2228
chmod +x "$CONFIG_LT"
 
2229
 
 
2230
# configure is writing to config.log, but config.lt does its own redirection,
 
2231
# appending to config.log, which fails on DOS, as config.log is still kept
 
2232
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
2233
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
2234
if test "$no_create" != yes; then
 
2235
  lt_cl_success=:
 
2236
  test "$silent" = yes &&
 
2237
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
2238
  exec AS_MESSAGE_LOG_FD>/dev/null
 
2239
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
2240
  exec AS_MESSAGE_LOG_FD>>config.log
 
2241
  $lt_cl_success || AS_EXIT(1)
 
2242
fi
 
2243
])# LT_OUTPUT
 
2244
 
 
2245
 
 
2246
# _LT_CONFIG(TAG)
 
2247
# ---------------
 
2248
# If TAG is the built-in tag, create an initial libtool script with a
 
2249
# default configuration from the untagged config vars.  Otherwise add code
 
2250
# to config.status for appending the configuration named by TAG from the
 
2251
# matching tagged config vars.
 
2252
m4_defun([_LT_CONFIG],
 
2253
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2254
_LT_CONFIG_SAVE_COMMANDS([
 
2255
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
2256
  m4_if(_LT_TAG, [C], [
 
2257
    # See if we are running on zsh, and set the options which allow our
 
2258
    # commands through without removal of \ escapes.
 
2259
    if test -n "${ZSH_VERSION+set}" ; then
 
2260
      setopt NO_GLOB_SUBST
 
2261
    fi
 
2262
 
 
2263
    cfgfile="${ofile}T"
 
2264
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
2265
    $RM "$cfgfile"
 
2266
 
 
2267
    cat <<_LT_EOF >> "$cfgfile"
 
2268
#! $SHELL
 
2269
 
 
2270
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
2271
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
2272
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
2273
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
2274
#
 
2275
_LT_COPYING
 
2276
_LT_LIBTOOL_TAGS
 
2277
 
 
2278
# ### BEGIN LIBTOOL CONFIG
 
2279
_LT_LIBTOOL_CONFIG_VARS
 
2280
_LT_LIBTOOL_TAG_VARS
 
2281
# ### END LIBTOOL CONFIG
 
2282
 
 
2283
_LT_EOF
 
2284
 
 
2285
  case $host_os in
 
2286
  aix3*)
 
2287
    cat <<\_LT_EOF >> "$cfgfile"
 
2288
# AIX sometimes has problems with the GCC collect2 program.  For some
 
2289
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
2290
# vanish in a puff of smoke.
 
2291
if test "X${COLLECT_NAMES+set}" != Xset; then
 
2292
  COLLECT_NAMES=
 
2293
  export COLLECT_NAMES
 
2294
fi
 
2295
_LT_EOF
 
2296
    ;;
 
2297
  esac
 
2298
 
 
2299
  _LT_PROG_LTMAIN
 
2300
 
 
2301
  # We use sed instead of cat because bash on DJGPP gets confused if
 
2302
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
2303
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
2304
  # is reportedly fixed, but why not run on old versions too?
 
2305
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
2306
    || (rm -f "$cfgfile"; exit 1)
 
2307
 
 
2308
  _LT_PROG_XSI_SHELLFNS
 
2309
 
 
2310
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
2311
    || (rm -f "$cfgfile"; exit 1)
 
2312
 
 
2313
  mv -f "$cfgfile" "$ofile" ||
 
2314
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
2315
  chmod +x "$ofile"
 
2316
],
 
2317
[cat <<_LT_EOF >> "$ofile"
 
2318
 
 
2319
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
2320
dnl in a comment (ie after a #).
 
2321
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
2322
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
2323
# ### END LIBTOOL TAG CONFIG: $1
 
2324
_LT_EOF
 
2325
])dnl /m4_if
 
2326
],
 
2327
[m4_if([$1], [], [
 
2328
    PACKAGE='$PACKAGE'
 
2329
    VERSION='$VERSION'
 
2330
    TIMESTAMP='$TIMESTAMP'
 
2331
    RM='$RM'
 
2332
    ofile='$ofile'], [])
 
2333
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
2334
])# _LT_CONFIG
 
2335
 
 
2336
 
 
2337
# LT_SUPPORTED_TAG(TAG)
 
2338
# ---------------------
 
2339
# Trace this macro to discover what tags are supported by the libtool
 
2340
# --tag option, using:
 
2341
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
2342
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
2343
 
 
2344
 
 
2345
# C support is built-in for now
 
2346
m4_define([_LT_LANG_C_enabled], [])
 
2347
m4_define([_LT_TAGS], [])
 
2348
 
 
2349
 
 
2350
# LT_LANG(LANG)
 
2351
# -------------
 
2352
# Enable libtool support for the given language if not already enabled.
 
2353
AC_DEFUN([LT_LANG],
 
2354
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
2355
m4_case([$1],
 
2356
  [C],                  [_LT_LANG(C)],
 
2357
  [C++],                [_LT_LANG(CXX)],
 
2358
  [Java],               [_LT_LANG(GCJ)],
 
2359
  [Fortran 77],         [_LT_LANG(F77)],
 
2360
  [Fortran],            [_LT_LANG(FC)],
 
2361
  [Windows Resource],   [_LT_LANG(RC)],
 
2362
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
2363
    [_LT_LANG($1)],
 
2364
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
2365
])# LT_LANG
 
2366
 
 
2367
 
 
2368
# _LT_LANG(LANGNAME)
 
2369
# ------------------
 
2370
m4_defun([_LT_LANG],
 
2371
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
2372
  [LT_SUPPORTED_TAG([$1])dnl
 
2373
  m4_append([_LT_TAGS], [$1 ])dnl
 
2374
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
2375
  _LT_LANG_$1_CONFIG($1)])dnl
 
2376
])# _LT_LANG
 
2377
 
 
2378
 
 
2379
# _LT_LANG_DEFAULT_CONFIG
 
2380
# -----------------------
 
2381
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
2382
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
2383
  [LT_LANG(CXX)],
 
2384
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
2385
 
 
2386
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
2387
  [LT_LANG(F77)],
 
2388
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
2389
 
 
2390
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
2391
  [LT_LANG(FC)],
 
2392
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
2393
 
 
2394
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
2395
dnl pulling things in needlessly.
 
2396
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
2397
  [LT_LANG(GCJ)],
 
2398
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
2399
    [LT_LANG(GCJ)],
 
2400
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
2401
      [LT_LANG(GCJ)],
 
2402
      [m4_ifdef([AC_PROG_GCJ],
 
2403
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
2404
       m4_ifdef([A][M_PROG_GCJ],
 
2405
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
2406
       m4_ifdef([LT_PROG_GCJ],
 
2407
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
2408
 
 
2409
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
2410
  [LT_LANG(RC)],
 
2411
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
2412
])# _LT_LANG_DEFAULT_CONFIG
 
2413
 
 
2414
# Obsolete macros:
 
2415
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
2416
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
2417
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
2418
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
2419
dnl aclocal-1.4 backwards compatibility:
 
2420
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
2421
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
2422
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
2423
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
2424
 
 
2425
 
 
2426
# _LT_TAG_COMPILER
 
2427
# ----------------
 
2428
m4_defun([_LT_TAG_COMPILER],
3847
2429
[AC_REQUIRE([AC_PROG_CC])dnl
3848
2430
 
 
2431
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
2432
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
2433
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
2434
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
2435
 
3849
2436
# If no C compiler was specified, use CC.
3850
2437
LTCC=${LTCC-"$CC"}
3851
2438
 
 
2439
# If no C compiler flags were specified, use CFLAGS.
 
2440
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
2441
 
3852
2442
# Allow CC to be a program name with arguments.
3853
2443
compiler=$CC
3854
 
])# _LT_AC_SYS_COMPILER
3855
 
 
3856
 
 
3857
 
# _LT_CC_BASENAME(CC)
3858
 
# -------------------
3859
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
3860
 
AC_DEFUN([_LT_CC_BASENAME],
3861
 
[for cc_temp in $1""; do
3862
 
  case $cc_temp in
3863
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
3864
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
3865
 
    \-*) ;;
3866
 
    *) break;;
3867
 
  esac
3868
 
done
3869
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
3870
 
])
 
2444
])# _LT_TAG_COMPILER
3871
2445
 
3872
2446
 
3873
2447
# _LT_COMPILER_BOILERPLATE
3874
2448
# ------------------------
3875
2449
# Check for compiler boilerplate output or warnings with
3876
2450
# the simple compiler test code.
3877
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
3878
 
[ac_outfile=conftest.$ac_objext
3879
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
3880
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
2451
m4_defun([_LT_COMPILER_BOILERPLATE],
 
2452
[m4_require([_LT_DECL_SED])dnl
 
2453
ac_outfile=conftest.$ac_objext
 
2454
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
2455
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3881
2456
_lt_compiler_boilerplate=`cat conftest.err`
3882
 
$rm conftest*
 
2457
$RM conftest*
3883
2458
])# _LT_COMPILER_BOILERPLATE
3884
2459
 
3885
2460
 
3887
2462
# ----------------------
3888
2463
# Check for linker boilerplate output or warnings with
3889
2464
# the simple link test code.
3890
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
3891
 
[ac_outfile=conftest.$ac_objext
3892
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
3893
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
2465
m4_defun([_LT_LINKER_BOILERPLATE],
 
2466
[m4_require([_LT_DECL_SED])dnl
 
2467
ac_outfile=conftest.$ac_objext
 
2468
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
2469
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3894
2470
_lt_linker_boilerplate=`cat conftest.err`
3895
 
$rm conftest*
 
2471
$RM -r conftest*
3896
2472
])# _LT_LINKER_BOILERPLATE
3897
2473
 
3898
 
 
3899
 
# _LT_AC_SYS_LIBPATH_AIX
3900
 
# ----------------------
 
2474
# _LT_REQUIRED_DARWIN_CHECKS
 
2475
# -------------------------
 
2476
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
2477
  case $host_os in
 
2478
    rhapsody* | darwin*)
 
2479
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
2480
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
2481
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
2482
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
2483
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
2484
    _LT_DECL([], [DSYMUTIL], [1],
 
2485
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
2486
    _LT_DECL([], [NMEDIT], [1],
 
2487
      [Tool to change global to local symbols on Mac OS X])
 
2488
    _LT_DECL([], [LIPO], [1],
 
2489
      [Tool to manipulate fat objects and archives on Mac OS X])
 
2490
    _LT_DECL([], [OTOOL], [1],
 
2491
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
2492
    _LT_DECL([], [OTOOL64], [1],
 
2493
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 
2494
 
 
2495
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
2496
      [lt_cv_apple_cc_single_mod=no
 
2497
      if test -z "${LT_MULTI_MODULE}"; then
 
2498
        # By default we will add the -single_module flag. You can override
 
2499
        # by either setting the environment variable LT_MULTI_MODULE
 
2500
        # non-empty at configure time, or by adding -multi_module to the
 
2501
        # link flags.
 
2502
        rm -rf libconftest.dylib*
 
2503
        echo "int foo(void){return 1;}" > conftest.c
 
2504
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
2505
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
2506
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
2507
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
2508
        _lt_result=$?
 
2509
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
2510
          lt_cv_apple_cc_single_mod=yes
 
2511
        else
 
2512
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
2513
        fi
 
2514
        rm -rf libconftest.dylib*
 
2515
        rm -f conftest.*
 
2516
      fi])
 
2517
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
2518
      [lt_cv_ld_exported_symbols_list],
 
2519
      [lt_cv_ld_exported_symbols_list=no
 
2520
      save_LDFLAGS=$LDFLAGS
 
2521
      echo "_main" > conftest.sym
 
2522
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
2523
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2524
        [lt_cv_ld_exported_symbols_list=yes],
 
2525
        [lt_cv_ld_exported_symbols_list=no])
 
2526
        LDFLAGS="$save_LDFLAGS"
 
2527
    ])
 
2528
    case $host_os in
 
2529
    rhapsody* | darwin1.[[012]])
 
2530
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
2531
    darwin1.*)
 
2532
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
2533
    darwin*) # darwin 5.x on
 
2534
      # if running on 10.5 or later, the deployment target defaults
 
2535
      # to the OS version, if on x86, and 10.4, the deployment
 
2536
      # target defaults to 10.4. Don't you love it?
 
2537
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
2538
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
2539
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
2540
        10.[[012]]*)
 
2541
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
2542
        10.*)
 
2543
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
2544
      esac
 
2545
    ;;
 
2546
  esac
 
2547
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
2548
      _lt_dar_single_mod='$single_module'
 
2549
    fi
 
2550
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
2551
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
2552
    else
 
2553
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
2554
    fi
 
2555
    if test "$DSYMUTIL" != ":"; then
 
2556
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
2557
    else
 
2558
      _lt_dsymutil=
 
2559
    fi
 
2560
    ;;
 
2561
  esac
 
2562
])
 
2563
 
 
2564
 
 
2565
# _LT_DARWIN_LINKER_FEATURES
 
2566
# --------------------------
 
2567
# Checks for linker and compiler features on darwin
 
2568
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
2569
[
 
2570
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
2571
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
2572
  _LT_TAGVAR(hardcode_direct, $1)=no
 
2573
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
2574
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
2575
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
2576
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
2577
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
2578
  case $cc_basename in
 
2579
     ifort*) _lt_dar_can_shared=yes ;;
 
2580
     *) _lt_dar_can_shared=$GCC ;;
 
2581
  esac
 
2582
  if test "$_lt_dar_can_shared" = "yes"; then
 
2583
    output_verbose_link_cmd=echo
 
2584
    _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}"
 
2585
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
2586
    _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}"
 
2587
    _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}"
 
2588
    m4_if([$1], [CXX],
 
2589
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
2590
      _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}"
 
2591
      _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}"
 
2592
    fi
 
2593
],[])
 
2594
  else
 
2595
  _LT_TAGVAR(ld_shlibs, $1)=no
 
2596
  fi
 
2597
])
 
2598
 
 
2599
# _LT_SYS_MODULE_PATH_AIX
 
2600
# -----------------------
3901
2601
# Links a minimal program and checks the executable
3902
2602
# for the system default hardcoded library path. In most cases,
3903
2603
# this is /usr/lib:/lib, but when the MPI compilers are used
3904
2604
# the location of the communication and MPI libs are included too.
3905
2605
# If we don't find anything, use the default library path according
3906
2606
# to the aix ld manual.
3907
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
3908
 
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
3909
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3910
 
}'`
 
2607
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
2608
[m4_require([_LT_DECL_SED])dnl
 
2609
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
2610
lt_aix_libpath_sed='
 
2611
    /Import File Strings/,/^$/ {
 
2612
        /^0/ {
 
2613
            s/^0  *\(.*\)$/\1/
 
2614
            p
 
2615
        }
 
2616
    }'
 
2617
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3911
2618
# Check for a 64-bit object if we didn't find anything.
3912
 
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; }
3913
 
}'`; fi],[])
 
2619
if test -z "$aix_libpath"; then
 
2620
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
2621
fi],[])
3914
2622
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3915
 
])# _LT_AC_SYS_LIBPATH_AIX
3916
 
 
3917
 
 
3918
 
# _LT_AC_SHELL_INIT(ARG)
3919
 
# ----------------------
3920
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
2623
])# _LT_SYS_MODULE_PATH_AIX
 
2624
 
 
2625
 
 
2626
# _LT_SHELL_INIT(ARG)
 
2627
# -------------------
 
2628
m4_define([_LT_SHELL_INIT],
3921
2629
[ifdef([AC_DIVERSION_NOTICE],
3922
2630
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3923
2631
         [AC_DIVERT_PUSH(NOTICE)])
3924
2632
$1
3925
2633
AC_DIVERT_POP
3926
 
])# _LT_AC_SHELL_INIT
3927
 
 
3928
 
 
3929
 
# _LT_AC_PROG_ECHO_BACKSLASH
3930
 
# --------------------------
 
2634
])# _LT_SHELL_INIT
 
2635
 
 
2636
 
 
2637
# _LT_PROG_ECHO_BACKSLASH
 
2638
# -----------------------
3931
2639
# Add some code to the start of the generated configure script which
3932
2640
# will find an echo command which doesn't interpret backslashes.
3933
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
3934
 
[_LT_AC_SHELL_INIT([
 
2641
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
2642
[_LT_SHELL_INIT([
3935
2643
# Check that we are running under the correct shell.
3936
2644
SHELL=${CONFIG_SHELL-/bin/sh}
3937
2645
 
3938
 
case X$ECHO in
 
2646
case X$lt_ECHO in
3939
2647
X*--fallback-echo)
3940
2648
  # Remove one level of quotation (which was required for Make).
3941
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
2649
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3942
2650
  ;;
3943
2651
esac
3944
2652
 
3945
 
echo=${ECHO-echo}
 
2653
ECHO=${lt_ECHO-echo}
3946
2654
if test "X[$]1" = X--no-reexec; then
3947
2655
  # Discard the --no-reexec flag, and continue.
3948
2656
  shift
3949
2657
elif test "X[$]1" = X--fallback-echo; then
3950
2658
  # Avoid inline document here, it may be left over
3951
2659
  :
3952
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
3953
 
  # Yippee, $echo works!
 
2660
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
2661
  # Yippee, $ECHO works!
3954
2662
  :
3955
2663
else
3956
2664
  # Restart under the correct shell.
3960
2668
if test "X[$]1" = X--fallback-echo; then
3961
2669
  # used as fallback echo
3962
2670
  shift
3963
 
  cat <<EOF
 
2671
  cat <<_LT_EOF
3964
2672
[$]*
3965
 
EOF
 
2673
_LT_EOF
3966
2674
  exit 0
3967
2675
fi
3968
2676
 
3970
2678
# if CDPATH is set.
3971
2679
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3972
2680
 
3973
 
if test -z "$ECHO"; then
3974
 
if test "X${echo_test_string+set}" != Xset; then
3975
 
# find a string as large as possible, as long as the shell can cope with it
3976
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3977
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3978
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
3979
 
       echo_test_string="`eval $cmd`" &&
3980
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
3981
 
    then
3982
 
      break
3983
 
    fi
3984
 
  done
3985
 
fi
3986
 
 
3987
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3988
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3989
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
3990
 
  :
3991
 
else
3992
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
3993
 
  # backslashes.  This makes it impossible to quote backslashes using
3994
 
  #   echo "$something" | sed 's/\\/\\\\/g'
3995
 
  #
3996
 
  # So, first we look for a working echo in the user's PATH.
3997
 
 
3998
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3999
 
  for dir in $PATH /usr/ucb; do
 
2681
if test -z "$lt_ECHO"; then
 
2682
  if test "X${echo_test_string+set}" != Xset; then
 
2683
    # find a string as large as possible, as long as the shell can cope with it
 
2684
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
2685
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
2686
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
2687
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
2688
      then
 
2689
        break
 
2690
      fi
 
2691
    done
 
2692
  fi
 
2693
 
 
2694
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2695
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2696
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
2697
    :
 
2698
  else
 
2699
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
2700
    # backslashes.  This makes it impossible to quote backslashes using
 
2701
    #   echo "$something" | sed 's/\\/\\\\/g'
 
2702
    #
 
2703
    # So, first we look for a working echo in the user's PATH.
 
2704
 
 
2705
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2706
    for dir in $PATH /usr/ucb; do
 
2707
      IFS="$lt_save_ifs"
 
2708
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
2709
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
2710
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
2711
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2712
        ECHO="$dir/echo"
 
2713
        break
 
2714
      fi
 
2715
    done
4000
2716
    IFS="$lt_save_ifs"
4001
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
4002
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
4003
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
4004
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
4005
 
      echo="$dir/echo"
4006
 
      break
4007
 
    fi
4008
 
  done
4009
 
  IFS="$lt_save_ifs"
4010
2717
 
4011
 
  if test "X$echo" = Xecho; then
4012
 
    # We didn't find a better echo, so look for alternatives.
4013
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
4014
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
4015
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
4016
 
      # This shell has a builtin print -r that does the trick.
4017
 
      echo='print -r'
4018
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
4019
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
4020
 
      # If we have ksh, try running configure again with it.
4021
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4022
 
      export ORIGINAL_CONFIG_SHELL
4023
 
      CONFIG_SHELL=/bin/ksh
4024
 
      export CONFIG_SHELL
4025
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
4026
 
    else
4027
 
      # Try using printf.
4028
 
      echo='printf %s\n'
4029
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
4030
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
4031
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
4032
 
        # Cool, printf works
4033
 
        :
4034
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
4035
 
           test "X$echo_testing_string" = 'X\t' &&
4036
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
4037
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
4038
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
4039
 
        export CONFIG_SHELL
4040
 
        SHELL="$CONFIG_SHELL"
4041
 
        export SHELL
4042
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
4043
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
4044
 
           test "X$echo_testing_string" = 'X\t' &&
4045
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
4046
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
4047
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
2718
    if test "X$ECHO" = Xecho; then
 
2719
      # We didn't find a better echo, so look for alternatives.
 
2720
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
2721
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
2722
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
2723
        # This shell has a builtin print -r that does the trick.
 
2724
        ECHO='print -r'
 
2725
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
2726
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
2727
        # If we have ksh, try running configure again with it.
 
2728
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
2729
        export ORIGINAL_CONFIG_SHELL
 
2730
        CONFIG_SHELL=/bin/ksh
 
2731
        export CONFIG_SHELL
 
2732
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
4048
2733
      else
4049
 
        # maybe with a smaller string...
4050
 
        prev=:
4051
 
 
4052
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
4053
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
4054
 
          then
4055
 
            break
 
2734
        # Try using printf.
 
2735
        ECHO='printf %s\n'
 
2736
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
2737
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
2738
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
2739
          # Cool, printf works
 
2740
          :
 
2741
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2742
             test "X$echo_testing_string" = 'X\t' &&
 
2743
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2744
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2745
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
2746
          export CONFIG_SHELL
 
2747
          SHELL="$CONFIG_SHELL"
 
2748
          export SHELL
 
2749
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2750
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
2751
             test "X$echo_testing_string" = 'X\t' &&
 
2752
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
2753
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
2754
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
2755
        else
 
2756
          # maybe with a smaller string...
 
2757
          prev=:
 
2758
 
 
2759
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
2760
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
2761
            then
 
2762
              break
 
2763
            fi
 
2764
            prev="$cmd"
 
2765
          done
 
2766
 
 
2767
          if test "$prev" != 'sed 50q "[$]0"'; then
 
2768
            echo_test_string=`eval $prev`
 
2769
            export echo_test_string
 
2770
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
2771
          else
 
2772
            # Oops.  We lost completely, so just stick with echo.
 
2773
            ECHO=echo
4056
2774
          fi
4057
 
          prev="$cmd"
4058
 
        done
4059
 
 
4060
 
        if test "$prev" != 'sed 50q "[$]0"'; then
4061
 
          echo_test_string=`eval $prev`
4062
 
          export echo_test_string
4063
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
4064
 
        else
4065
 
          # Oops.  We lost completely, so just stick with echo.
4066
 
          echo=echo
4067
 
        fi
 
2775
        fi
4068
2776
      fi
4069
2777
    fi
4070
2778
  fi
4071
2779
fi
4072
 
fi
4073
2780
 
4074
2781
# Copy echo and quote the copy suitably for passing to libtool from
4075
2782
# the Makefile, instead of quoting the original, which is used later.
4076
 
ECHO=$echo
4077
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
4078
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
2783
lt_ECHO=$ECHO
 
2784
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
2785
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
4079
2786
fi
4080
2787
 
4081
 
AC_SUBST(ECHO)
4082
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
4083
 
 
4084
 
 
4085
 
# _LT_AC_LOCK
4086
 
# -----------
4087
 
AC_DEFUN([_LT_AC_LOCK],
 
2788
AC_SUBST(lt_ECHO)
 
2789
])
 
2790
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
2791
_LT_DECL([], [ECHO], [1],
 
2792
    [An echo program that does not interpret backslashes])
 
2793
])# _LT_PROG_ECHO_BACKSLASH
 
2794
 
 
2795
 
 
2796
# _LT_ENABLE_LOCK
 
2797
# ---------------
 
2798
m4_defun([_LT_ENABLE_LOCK],
4088
2799
[AC_ARG_ENABLE([libtool-lock],
4089
 
    [AC_HELP_STRING([--disable-libtool-lock],
4090
 
        [avoid locking (might break parallel builds)])])
 
2800
  [AS_HELP_STRING([--disable-libtool-lock],
 
2801
    [avoid locking (might break parallel builds)])])
4091
2802
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4092
2803
 
4093
2804
# Some flags need to be propagated to the compiler or linker for good
4098
2809
  echo 'int i;' > conftest.$ac_ext
4099
2810
  if AC_TRY_EVAL(ac_compile); then
4100
2811
    case `/usr/bin/file conftest.$ac_objext` in
4101
 
    *ELF-32*)
4102
 
      HPUX_IA64_MODE="32"
4103
 
      ;;
4104
 
    *ELF-64*)
4105
 
      HPUX_IA64_MODE="64"
4106
 
      ;;
 
2812
      *ELF-32*)
 
2813
        HPUX_IA64_MODE="32"
 
2814
        ;;
 
2815
      *ELF-64*)
 
2816
        HPUX_IA64_MODE="64"
 
2817
        ;;
4107
2818
    esac
4108
2819
  fi
4109
2820
  rm -rf conftest*
4112
2823
  # Find out which ABI we are using.
4113
2824
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
4114
2825
  if AC_TRY_EVAL(ac_compile); then
4115
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4116
 
    case `/usr/bin/file conftest.$ac_objext` in
4117
 
    *32-bit*)
4118
 
      LD="${LD-ld} -melf32bsmip"
4119
 
      ;;
4120
 
    *N32*)
4121
 
      LD="${LD-ld} -melf32bmipn32"
4122
 
      ;;
4123
 
    *64-bit*)
4124
 
      LD="${LD-ld} -melf64bmip"
4125
 
      ;;
4126
 
    esac
4127
 
   else
4128
 
    case `/usr/bin/file conftest.$ac_objext` in
4129
 
    *32-bit*)
4130
 
      LD="${LD-ld} -32"
4131
 
      ;;
4132
 
    *N32*)
4133
 
      LD="${LD-ld} -n32"
4134
 
      ;;
4135
 
    *64-bit*)
4136
 
      LD="${LD-ld} -64"
4137
 
      ;;
4138
 
    esac
4139
 
   fi
 
2826
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
2827
      case `/usr/bin/file conftest.$ac_objext` in
 
2828
        *32-bit*)
 
2829
          LD="${LD-ld} -melf32bsmip"
 
2830
          ;;
 
2831
        *N32*)
 
2832
          LD="${LD-ld} -melf32bmipn32"
 
2833
          ;;
 
2834
        *64-bit*)
 
2835
          LD="${LD-ld} -melf64bmip"
 
2836
        ;;
 
2837
      esac
 
2838
    else
 
2839
      case `/usr/bin/file conftest.$ac_objext` in
 
2840
        *32-bit*)
 
2841
          LD="${LD-ld} -32"
 
2842
          ;;
 
2843
        *N32*)
 
2844
          LD="${LD-ld} -n32"
 
2845
          ;;
 
2846
        *64-bit*)
 
2847
          LD="${LD-ld} -64"
 
2848
          ;;
 
2849
      esac
 
2850
    fi
4140
2851
  fi
4141
2852
  rm -rf conftest*
4142
2853
  ;;
4143
2854
 
4144
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
2855
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
2856
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4145
2857
  # Find out which ABI we are using.
4146
2858
  echo 'int i;' > conftest.$ac_ext
4147
2859
  if AC_TRY_EVAL(ac_compile); then
4148
 
    case "`/usr/bin/file conftest.o`" in
4149
 
    *32-bit*)
4150
 
      case $host in
4151
 
        x86_64-*linux*)
4152
 
          LD="${LD-ld} -m elf_i386"
4153
 
          ;;
4154
 
        ppc64-*linux*|powerpc64-*linux*)
4155
 
          LD="${LD-ld} -m elf32ppclinux"
4156
 
          ;;
4157
 
        s390x-*linux*)
4158
 
          LD="${LD-ld} -m elf_s390"
4159
 
          ;;
4160
 
        sparc64-*linux*)
4161
 
          LD="${LD-ld} -m elf32_sparc"
4162
 
          ;;
4163
 
      esac
4164
 
      ;;
4165
 
    *64-bit*)
4166
 
      case $host in
4167
 
        x86_64-*linux*)
4168
 
          LD="${LD-ld} -m elf_x86_64"
4169
 
          ;;
4170
 
        ppc*-*linux*|powerpc*-*linux*)
4171
 
          LD="${LD-ld} -m elf64ppc"
4172
 
          ;;
4173
 
        s390*-*linux*)
4174
 
          LD="${LD-ld} -m elf64_s390"
4175
 
          ;;
4176
 
        sparc*-*linux*)
4177
 
          LD="${LD-ld} -m elf64_sparc"
4178
 
          ;;
4179
 
      esac
4180
 
      ;;
 
2860
    case `/usr/bin/file conftest.o` in
 
2861
      *32-bit*)
 
2862
        case $host in
 
2863
          x86_64-*kfreebsd*-gnu)
 
2864
            LD="${LD-ld} -m elf_i386_fbsd"
 
2865
            ;;
 
2866
          x86_64-*linux*)
 
2867
            LD="${LD-ld} -m elf_i386"
 
2868
            ;;
 
2869
          ppc64-*linux*|powerpc64-*linux*)
 
2870
            LD="${LD-ld} -m elf32ppclinux"
 
2871
            ;;
 
2872
          s390x-*linux*)
 
2873
            LD="${LD-ld} -m elf_s390"
 
2874
            ;;
 
2875
          sparc64-*linux*)
 
2876
            LD="${LD-ld} -m elf32_sparc"
 
2877
            ;;
 
2878
        esac
 
2879
        ;;
 
2880
      *64-bit*)
 
2881
        case $host in
 
2882
          x86_64-*kfreebsd*-gnu)
 
2883
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
2884
            ;;
 
2885
          x86_64-*linux*)
 
2886
            LD="${LD-ld} -m elf_x86_64"
 
2887
            ;;
 
2888
          ppc*-*linux*|powerpc*-*linux*)
 
2889
            LD="${LD-ld} -m elf64ppc"
 
2890
            ;;
 
2891
          s390*-*linux*|s390*-*tpf*)
 
2892
            LD="${LD-ld} -m elf64_s390"
 
2893
            ;;
 
2894
          sparc*-*linux*)
 
2895
            LD="${LD-ld} -m elf64_sparc"
 
2896
            ;;
 
2897
        esac
 
2898
        ;;
4181
2899
    esac
4182
2900
  fi
4183
2901
  rm -rf conftest*
4184
2902
  ;;
4185
2903
 
4186
 
*-*-linux*)
4187
 
  # Test if the compiler is 64bit
4188
 
  echo 'int i;' > conftest.$ac_ext
4189
 
  lt_cv_cc_64bit_output=no
4190
 
  if AC_TRY_EVAL(ac_compile); then
4191
 
    case `/usr/bin/file conftest.$ac_objext` in
4192
 
    *"ELF 64"*)
4193
 
      lt_cv_cc_64bit_output=yes
4194
 
      ;;
4195
 
    esac
4196
 
  fi
4197
 
  rm -rf conftest*
4198
 
  ;;
4199
 
  
4200
2904
*-*-sco3.2v5*)
4201
2905
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4202
2906
  SAVE_CFLAGS="$CFLAGS"
4203
2907
  CFLAGS="$CFLAGS -belf"
4204
2908
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
4205
2909
    [AC_LANG_PUSH(C)
4206
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
2910
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
4207
2911
     AC_LANG_POP])
4208
2912
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4209
2913
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4210
2914
    CFLAGS="$SAVE_CFLAGS"
4211
2915
  fi
4212
2916
  ;;
4213
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
4214
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4215
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
4216
 
  AC_CHECK_TOOL(AS, as, false)
4217
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
2917
sparc*-*solaris*)
 
2918
  # Find out which ABI we are using.
 
2919
  echo 'int i;' > conftest.$ac_ext
 
2920
  if AC_TRY_EVAL(ac_compile); then
 
2921
    case `/usr/bin/file conftest.o` in
 
2922
    *64-bit*)
 
2923
      case $lt_cv_prog_gnu_ld in
 
2924
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
2925
      *)
 
2926
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
2927
          LD="${LD-ld} -64"
 
2928
        fi
 
2929
        ;;
 
2930
      esac
 
2931
      ;;
 
2932
    esac
 
2933
  fi
 
2934
  rm -rf conftest*
4218
2935
  ;;
4219
 
  ])
4220
2936
esac
4221
2937
 
4222
2938
need_locks="$enable_libtool_lock"
4223
 
 
4224
 
])# _LT_AC_LOCK
4225
 
 
4226
 
 
4227
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
2939
])# _LT_ENABLE_LOCK
 
2940
 
 
2941
 
 
2942
# _LT_CMD_OLD_ARCHIVE
 
2943
# -------------------
 
2944
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
2945
[AC_CHECK_TOOL(AR, ar, false)
 
2946
test -z "$AR" && AR=ar
 
2947
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
2948
_LT_DECL([], [AR], [1], [The archiver])
 
2949
_LT_DECL([], [AR_FLAGS], [1])
 
2950
 
 
2951
AC_CHECK_TOOL(STRIP, strip, :)
 
2952
test -z "$STRIP" && STRIP=:
 
2953
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
2954
 
 
2955
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
2956
test -z "$RANLIB" && RANLIB=:
 
2957
_LT_DECL([], [RANLIB], [1],
 
2958
    [Commands used to install an old-style archive])
 
2959
 
 
2960
# Determine commands to create old-style static archives.
 
2961
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
2962
old_postinstall_cmds='chmod 644 $oldlib'
 
2963
old_postuninstall_cmds=
 
2964
 
 
2965
if test -n "$RANLIB"; then
 
2966
  case $host_os in
 
2967
  openbsd*)
 
2968
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2969
    ;;
 
2970
  *)
 
2971
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2972
    ;;
 
2973
  esac
 
2974
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2975
fi
 
2976
_LT_DECL([], [old_postinstall_cmds], [2])
 
2977
_LT_DECL([], [old_postuninstall_cmds], [2])
 
2978
_LT_TAGDECL([], [old_archive_cmds], [2],
 
2979
    [Commands used to build an old-style archive])
 
2980
])# _LT_CMD_OLD_ARCHIVE
 
2981
 
 
2982
 
 
2983
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
4228
2984
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
4229
2985
# ----------------------------------------------------------------
4230
2986
# Check whether the given compiler option works
4231
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
4232
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
2987
AC_DEFUN([_LT_COMPILER_OPTION],
 
2988
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2989
m4_require([_LT_DECL_SED])dnl
4233
2990
AC_CACHE_CHECK([$1], [$2],
4234
2991
  [$2=no
4235
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
4236
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
2992
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
2993
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4237
2994
   lt_compiler_flag="$3"
4238
2995
   # Insert the option either (1) after the last *FLAGS variable, or
4239
2996
   # (2) before a word containing "conftest.", or (3) at the end.
4241
2998
   # with a dollar sign (not a hyphen), so the echo should work correctly.
4242
2999
   # The option is referenced via a variable to avoid confusing sed.
4243
3000
   lt_compile=`echo "$ac_compile" | $SED \
4244
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
3001
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4245
3002
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
4246
3003
   -e 's:$: $lt_compiler_flag:'`
4247
3004
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
4252
3009
   if (exit $ac_status) && test -s "$ac_outfile"; then
4253
3010
     # The compiler can only warn and ignore the option if not recognized
4254
3011
     # So say no if there are warnings other than the usual output.
4255
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
4256
 
     $SED '/^$/d' conftest.err >conftest.er2
4257
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
3012
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
3013
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
3014
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
4258
3015
       $2=yes
4259
3016
     fi
4260
3017
   fi
4261
 
   $rm conftest*
 
3018
   $RM conftest*
4262
3019
])
4263
3020
 
4264
3021
if test x"[$]$2" = xyes; then
4265
 
    ifelse([$5], , :, [$5])
 
3022
    m4_if([$5], , :, [$5])
4266
3023
else
4267
 
    ifelse([$6], , :, [$6])
 
3024
    m4_if([$6], , :, [$6])
4268
3025
fi
4269
 
])# AC_LIBTOOL_COMPILER_OPTION
4270
 
 
4271
 
 
4272
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
4273
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
4274
 
# ------------------------------------------------------------
4275
 
# Check whether the given compiler option works
4276
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
4277
 
[AC_CACHE_CHECK([$1], [$2],
 
3026
])# _LT_COMPILER_OPTION
 
3027
 
 
3028
# Old name:
 
3029
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
3030
dnl aclocal-1.4 backwards compatibility:
 
3031
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
3032
 
 
3033
 
 
3034
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
3035
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
3036
# ----------------------------------------------------
 
3037
# Check whether the given linker option works
 
3038
AC_DEFUN([_LT_LINKER_OPTION],
 
3039
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3040
m4_require([_LT_DECL_SED])dnl
 
3041
AC_CACHE_CHECK([$1], [$2],
4278
3042
  [$2=no
4279
3043
   save_LDFLAGS="$LDFLAGS"
4280
3044
   LDFLAGS="$LDFLAGS $3"
4281
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
3045
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
4282
3046
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
4283
 
     # The compiler can only warn and ignore the option if not recognized
 
3047
     # The linker can only warn and ignore the option if not recognized
4284
3048
     # So say no if there are warnings
4285
3049
     if test -s conftest.err; then
4286
3050
       # Append any errors to the config.log.
4287
3051
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
4288
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
4289
 
       $SED '/^$/d' conftest.err >conftest.er2
 
3052
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
3053
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
4290
3054
       if diff conftest.exp conftest.er2 >/dev/null; then
4291
3055
         $2=yes
4292
3056
       fi
4294
3058
       $2=yes
4295
3059
     fi
4296
3060
   fi
4297
 
   $rm conftest*
 
3061
   $RM -r conftest*
4298
3062
   LDFLAGS="$save_LDFLAGS"
4299
3063
])
4300
3064
 
4301
3065
if test x"[$]$2" = xyes; then
4302
 
    ifelse([$4], , :, [$4])
 
3066
    m4_if([$4], , :, [$4])
4303
3067
else
4304
 
    ifelse([$5], , :, [$5])
 
3068
    m4_if([$5], , :, [$5])
4305
3069
fi
4306
 
])# AC_LIBTOOL_LINKER_OPTION
4307
 
 
4308
 
 
4309
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
4310
 
# --------------------------
4311
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
4312
 
[# find the maximum length of command line arguments
 
3070
])# _LT_LINKER_OPTION
 
3071
 
 
3072
# Old name:
 
3073
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
3074
dnl aclocal-1.4 backwards compatibility:
 
3075
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
3076
 
 
3077
 
 
3078
# LT_CMD_MAX_LEN
 
3079
#---------------
 
3080
AC_DEFUN([LT_CMD_MAX_LEN],
 
3081
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3082
# find the maximum length of command line arguments
4313
3083
AC_MSG_CHECKING([the maximum length of command line arguments])
4314
3084
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
4315
3085
  i=0
4331
3101
    lt_cv_sys_max_cmd_len=-1;
4332
3102
    ;;
4333
3103
 
4334
 
  cygwin* | mingw*)
 
3104
  cygwin* | mingw* | cegcc*)
4335
3105
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4336
3106
    # about 5 minutes as the teststring grows exponentially.
4337
3107
    # Worse, since 9x/ME are not pre-emptively multitasking,
4355
3125
    elif test -x /usr/sbin/sysctl; then
4356
3126
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4357
3127
    else
4358
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
3128
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4359
3129
    fi
4360
3130
    # And add a safety zone
4361
3131
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4362
3132
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4363
3133
    ;;
 
3134
 
 
3135
  interix*)
 
3136
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
3137
    lt_cv_sys_max_cmd_len=196608
 
3138
    ;;
 
3139
 
4364
3140
  osf*)
4365
3141
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4366
3142
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4367
3143
    # nice to cause kernel panics so lets avoid the loop below.
4368
3144
    # First set a reasonable default.
4369
3145
    lt_cv_sys_max_cmd_len=16384
4370
 
    # 
 
3146
    #
4371
3147
    if test -x /sbin/sysconfig; then
4372
3148
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4373
3149
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4374
3150
      esac
4375
3151
    fi
4376
3152
    ;;
 
3153
  sco3.2v5*)
 
3154
    lt_cv_sys_max_cmd_len=102400
 
3155
    ;;
 
3156
  sysv5* | sco5v6* | sysv4.2uw2*)
 
3157
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
3158
    if test -n "$kargmax"; then
 
3159
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
 
3160
    else
 
3161
      lt_cv_sys_max_cmd_len=32768
 
3162
    fi
 
3163
    ;;
4377
3164
  *)
4378
 
    # If test is not a shell built-in, we'll probably end up computing a
4379
 
    # maximum length that is only half of the actual maximum length, but
4380
 
    # we can't tell.
4381
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4382
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
4383
 
               = "XX$teststring") >/dev/null 2>&1 &&
4384
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
4385
 
            lt_cv_sys_max_cmd_len=$new_result &&
4386
 
            test $i != 17 # 1/2 MB should be enough
4387
 
    do
4388
 
      i=`expr $i + 1`
4389
 
      teststring=$teststring$teststring
4390
 
    done
4391
 
    teststring=
4392
 
    # Add a significant safety factor because C++ compilers can tack on massive
4393
 
    # amounts of additional arguments before passing them to the linker.
4394
 
    # It appears as though 1/2 is a usable value.
4395
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
3165
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
3166
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
3167
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
3168
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
3169
    else
 
3170
      # Make teststring a little bigger before we do anything with it.
 
3171
      # a 1K string should be a reasonable start.
 
3172
      for i in 1 2 3 4 5 6 7 8 ; do
 
3173
        teststring=$teststring$teststring
 
3174
      done
 
3175
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
3176
      # If test is not a shell built-in, we'll probably end up computing a
 
3177
      # maximum length that is only half of the actual maximum length, but
 
3178
      # we can't tell.
 
3179
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
3180
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
3181
              test $i != 17 # 1/2 MB should be enough
 
3182
      do
 
3183
        i=`expr $i + 1`
 
3184
        teststring=$teststring$teststring
 
3185
      done
 
3186
      # Only check the string length outside the loop.
 
3187
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
3188
      teststring=
 
3189
      # Add a significant safety factor because C++ compilers can tack on
 
3190
      # massive amounts of additional arguments before passing them to the
 
3191
      # linker.  It appears as though 1/2 is a usable value.
 
3192
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
3193
    fi
4396
3194
    ;;
4397
3195
  esac
4398
3196
])
4401
3199
else
4402
3200
  AC_MSG_RESULT(none)
4403
3201
fi
4404
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
4405
 
 
4406
 
 
4407
 
# _LT_AC_CHECK_DLFCN
4408
 
# --------------------
4409
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
4410
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
4411
 
])# _LT_AC_CHECK_DLFCN
4412
 
 
4413
 
 
4414
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
4415
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
4416
 
# ------------------------------------------------------------------
4417
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
4418
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
3202
max_cmd_len=$lt_cv_sys_max_cmd_len
 
3203
_LT_DECL([], [max_cmd_len], [0],
 
3204
    [What is the maximum length of a command?])
 
3205
])# LT_CMD_MAX_LEN
 
3206
 
 
3207
# Old name:
 
3208
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
3209
dnl aclocal-1.4 backwards compatibility:
 
3210
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
3211
 
 
3212
 
 
3213
# _LT_HEADER_DLFCN
 
3214
# ----------------
 
3215
m4_defun([_LT_HEADER_DLFCN],
 
3216
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
3217
])# _LT_HEADER_DLFCN
 
3218
 
 
3219
 
 
3220
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
3221
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
3222
# ----------------------------------------------------------------
 
3223
m4_defun([_LT_TRY_DLOPEN_SELF],
 
3224
[m4_require([_LT_HEADER_DLFCN])dnl
4419
3225
if test "$cross_compiling" = yes; then :
4420
3226
  [$4]
4421
3227
else
4422
3228
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4423
3229
  lt_status=$lt_dlunknown
4424
 
  cat > conftest.$ac_ext <<EOF
 
3230
  cat > conftest.$ac_ext <<_LT_EOF
4425
3231
[#line __oline__ "configure"
4426
3232
#include "confdefs.h"
4427
3233
 
4463
3269
#  endif
4464
3270
#endif
4465
3271
 
4466
 
#ifdef __cplusplus
4467
 
extern "C" void exit (int);
4468
 
#endif
4469
 
 
4470
3272
void fnord() { int i=42;}
4471
3273
int main ()
4472
3274
{
4479
3281
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4480
3282
      /* dlclose (self); */
4481
3283
    }
 
3284
  else
 
3285
    puts (dlerror ());
4482
3286
 
4483
 
    exit (status);
 
3287
  return status;
4484
3288
}]
4485
 
EOF
 
3289
_LT_EOF
4486
3290
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
4487
 
    (./conftest; exit; ) 2>/dev/null
 
3291
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
4488
3292
    lt_status=$?
4489
3293
    case x$lt_status in
4490
3294
      x$lt_dlno_uscore) $1 ;;
4491
3295
      x$lt_dlneed_uscore) $2 ;;
4492
 
      x$lt_unknown|x*) $3 ;;
 
3296
      x$lt_dlunknown|x*) $3 ;;
4493
3297
    esac
4494
3298
  else :
4495
3299
    # compilation failed
4497
3301
  fi
4498
3302
fi
4499
3303
rm -fr conftest*
4500
 
])# _LT_AC_TRY_DLOPEN_SELF
4501
 
 
4502
 
 
4503
 
# AC_LIBTOOL_DLOPEN_SELF
4504
 
# -------------------
4505
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
4506
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
3304
])# _LT_TRY_DLOPEN_SELF
 
3305
 
 
3306
 
 
3307
# LT_SYS_DLOPEN_SELF
 
3308
# ------------------
 
3309
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
3310
[m4_require([_LT_HEADER_DLFCN])dnl
4507
3311
if test "x$enable_dlopen" != xyes; then
4508
3312
  enable_dlopen=unknown
4509
3313
  enable_dlopen_self=unknown
4519
3323
    lt_cv_dlopen_self=yes
4520
3324
    ;;
4521
3325
 
4522
 
  mingw* | pw32*)
 
3326
  mingw* | pw32* | cegcc*)
4523
3327
    lt_cv_dlopen="LoadLibrary"
4524
3328
    lt_cv_dlopen_libs=
4525
 
   ;;
 
3329
    ;;
4526
3330
 
4527
3331
  cygwin*)
4528
3332
    lt_cv_dlopen="dlopen"
4529
3333
    lt_cv_dlopen_libs=
4530
 
   ;;
 
3334
    ;;
4531
3335
 
4532
3336
  darwin*)
4533
3337
  # if libdl is installed we need to link against it
4537
3341
    lt_cv_dlopen_libs=
4538
3342
    lt_cv_dlopen_self=yes
4539
3343
    ])
4540
 
   ;;
 
3344
    ;;
4541
3345
 
4542
3346
  *)
4543
3347
    AC_CHECK_FUNC([shl_load],
4544
3348
          [lt_cv_dlopen="shl_load"],
4545
3349
      [AC_CHECK_LIB([dld], [shl_load],
4546
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
3350
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
4547
3351
        [AC_CHECK_FUNC([dlopen],
4548
3352
              [lt_cv_dlopen="dlopen"],
4549
3353
          [AC_CHECK_LIB([dl], [dlopen],
4551
3355
            [AC_CHECK_LIB([svld], [dlopen],
4552
3356
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
4553
3357
              [AC_CHECK_LIB([dld], [dld_link],
4554
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
3358
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
4555
3359
              ])
4556
3360
            ])
4557
3361
          ])
4572
3376
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4573
3377
 
4574
3378
    save_LDFLAGS="$LDFLAGS"
4575
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
3379
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4576
3380
 
4577
3381
    save_LIBS="$LIBS"
4578
3382
    LIBS="$lt_cv_dlopen_libs $LIBS"
4579
3383
 
4580
3384
    AC_CACHE_CHECK([whether a program can dlopen itself],
4581
3385
          lt_cv_dlopen_self, [dnl
4582
 
          _LT_AC_TRY_DLOPEN_SELF(
 
3386
          _LT_TRY_DLOPEN_SELF(
4583
3387
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
4584
3388
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
4585
3389
    ])
4586
3390
 
4587
3391
    if test "x$lt_cv_dlopen_self" = xyes; then
4588
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
3392
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
4589
3393
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
4590
 
          lt_cv_dlopen_self_static, [dnl
4591
 
          _LT_AC_TRY_DLOPEN_SELF(
 
3394
          lt_cv_dlopen_self_static, [dnl
 
3395
          _LT_TRY_DLOPEN_SELF(
4592
3396
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
4593
3397
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
4594
3398
      ])
4610
3414
  *) enable_dlopen_self_static=unknown ;;
4611
3415
  esac
4612
3416
fi
4613
 
])# AC_LIBTOOL_DLOPEN_SELF
4614
 
 
4615
 
 
4616
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
4617
 
# ---------------------------------
4618
 
# Check to see if options -c and -o are simultaneously supported by compiler
4619
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
4620
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
3417
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
3418
         [Whether dlopen is supported])
 
3419
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
3420
         [Whether dlopen of programs is supported])
 
3421
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
3422
         [Whether dlopen of statically linked programs is supported])
 
3423
])# LT_SYS_DLOPEN_SELF
 
3424
 
 
3425
# Old name:
 
3426
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
3427
dnl aclocal-1.4 backwards compatibility:
 
3428
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
3429
 
 
3430
 
 
3431
# _LT_COMPILER_C_O([TAGNAME])
 
3432
# ---------------------------
 
3433
# Check to see if options -c and -o are simultaneously supported by compiler.
 
3434
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
3435
m4_defun([_LT_COMPILER_C_O],
 
3436
[m4_require([_LT_DECL_SED])dnl
 
3437
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3438
m4_require([_LT_TAG_COMPILER])dnl
4621
3439
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
4622
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
4623
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
4624
 
   $rm -r conftest 2>/dev/null
 
3440
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
3441
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
3442
   $RM -r conftest 2>/dev/null
4625
3443
   mkdir conftest
4626
3444
   cd conftest
4627
3445
   mkdir out
4628
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
3446
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4629
3447
 
4630
3448
   lt_compiler_flag="-o out/conftest2.$ac_objext"
4631
3449
   # Insert the option either (1) after the last *FLAGS variable, or
4633
3451
   # Note that $ac_compile itself does not contain backslashes and begins
4634
3452
   # with a dollar sign (not a hyphen), so the echo should work correctly.
4635
3453
   lt_compile=`echo "$ac_compile" | $SED \
4636
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
3454
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
4637
3455
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
4638
3456
   -e 's:$: $lt_compiler_flag:'`
4639
3457
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
4645
3463
   then
4646
3464
     # The compiler can only warn and ignore the option if not recognized
4647
3465
     # So say no if there are warnings
4648
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
4649
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
4650
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
4651
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
3466
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
3467
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
3468
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
3469
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4652
3470
     fi
4653
3471
   fi
4654
 
   chmod u+w .
4655
 
   $rm conftest*
 
3472
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 
3473
   $RM conftest*
4656
3474
   # SGI C++ compiler will create directory out/ii_files/ for
4657
3475
   # template instantiation
4658
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
4659
 
   $rm out/* && rmdir out
 
3476
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
3477
   $RM out/* && rmdir out
4660
3478
   cd ..
4661
 
   rmdir conftest
4662
 
   $rm conftest*
 
3479
   $RM -r conftest
 
3480
   $RM conftest*
4663
3481
])
4664
 
])# AC_LIBTOOL_PROG_CC_C_O
4665
 
 
4666
 
 
4667
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
4668
 
# -----------------------------------------
 
3482
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
3483
        [Does compiler simultaneously support -c and -o options?])
 
3484
])# _LT_COMPILER_C_O
 
3485
 
 
3486
 
 
3487
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
3488
# ----------------------------------
4669
3489
# Check to see if we can do hard links to lock some files if needed
4670
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
4671
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
3490
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
3491
[m4_require([_LT_ENABLE_LOCK])dnl
 
3492
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3493
_LT_COMPILER_C_O([$1])
4672
3494
 
4673
3495
hard_links="nottested"
4674
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
3496
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
4675
3497
  # do not overwrite the value of need_locks provided by the user
4676
3498
  AC_MSG_CHECKING([if we can lock with hard links])
4677
3499
  hard_links=yes
4678
 
  $rm conftest*
 
3500
  $RM conftest*
4679
3501
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4680
3502
  touch conftest.a
4681
3503
  ln conftest.a conftest.b 2>&5 || hard_links=no
4688
3510
else
4689
3511
  need_locks=no
4690
3512
fi
4691
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
4692
 
 
4693
 
 
4694
 
# AC_LIBTOOL_OBJDIR
4695
 
# -----------------
4696
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
3513
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
3514
])# _LT_COMPILER_FILE_LOCKS
 
3515
 
 
3516
 
 
3517
# _LT_CHECK_OBJDIR
 
3518
# ----------------
 
3519
m4_defun([_LT_CHECK_OBJDIR],
4697
3520
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
4698
3521
[rm -f .libs 2>/dev/null
4699
3522
mkdir .libs 2>/dev/null
4705
3528
fi
4706
3529
rmdir .libs 2>/dev/null])
4707
3530
objdir=$lt_cv_objdir
4708
 
])# AC_LIBTOOL_OBJDIR
4709
 
 
4710
 
 
4711
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
4712
 
# ----------------------------------------------
 
3531
_LT_DECL([], [objdir], [0],
 
3532
         [The name of the directory that contains temporary libtool files])dnl
 
3533
m4_pattern_allow([LT_OBJDIR])dnl
 
3534
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
3535
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
3536
])# _LT_CHECK_OBJDIR
 
3537
 
 
3538
 
 
3539
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
3540
# --------------------------------------
4713
3541
# Check hardcoding attributes.
4714
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
3542
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
4715
3543
[AC_MSG_CHECKING([how to hardcode library paths into programs])
4716
 
_LT_AC_TAGVAR(hardcode_action, $1)=
4717
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
4718
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
4719
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
3544
_LT_TAGVAR(hardcode_action, $1)=
 
3545
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
3546
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
3547
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
4720
3548
 
4721
 
  # We can hardcode non-existant directories.
4722
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
3549
  # We can hardcode non-existent directories.
 
3550
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
4723
3551
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
4724
3552
     # have to relink, otherwise we might link with an installed library
4725
3553
     # when we should be linking with a yet-to-be-installed one
4726
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
4727
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
3554
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
3555
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
4728
3556
    # Linking always hardcodes the temporary library directory.
4729
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
3557
    _LT_TAGVAR(hardcode_action, $1)=relink
4730
3558
  else
4731
3559
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
4732
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
3560
    _LT_TAGVAR(hardcode_action, $1)=immediate
4733
3561
  fi
4734
3562
else
4735
3563
  # We cannot hardcode anything, or else we can only hardcode existing
4736
3564
  # directories.
4737
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
3565
  _LT_TAGVAR(hardcode_action, $1)=unsupported
4738
3566
fi
4739
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
3567
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
4740
3568
 
4741
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
3569
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
3570
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
4742
3571
  # Fast installation is not supported
4743
3572
  enable_fast_install=no
4744
3573
elif test "$shlibpath_overrides_runpath" = yes ||
4746
3575
  # Fast installation is not necessary
4747
3576
  enable_fast_install=needless
4748
3577
fi
4749
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
4750
 
 
4751
 
 
4752
 
# AC_LIBTOOL_SYS_LIB_STRIP
4753
 
# ------------------------
4754
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
4755
 
[striplib=
 
3578
_LT_TAGDECL([], [hardcode_action], [0],
 
3579
    [How to hardcode a shared library path into an executable])
 
3580
])# _LT_LINKER_HARDCODE_LIBPATH
 
3581
 
 
3582
 
 
3583
# _LT_CMD_STRIPLIB
 
3584
# ----------------
 
3585
m4_defun([_LT_CMD_STRIPLIB],
 
3586
[m4_require([_LT_DECL_EGREP])
 
3587
striplib=
4756
3588
old_striplib=
4757
3589
AC_MSG_CHECKING([whether stripping libraries is possible])
4758
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
3590
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
4759
3591
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4760
3592
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4761
3593
  AC_MSG_RESULT([yes])
4762
3594
else
4763
3595
# FIXME - insert some real tests, host_os isn't really good enough
4764
3596
  case $host_os in
4765
 
   darwin*)
4766
 
       if test -n "$STRIP" ; then
4767
 
         striplib="$STRIP -x"
4768
 
         AC_MSG_RESULT([yes])
4769
 
       else
4770
 
  AC_MSG_RESULT([no])
4771
 
fi
4772
 
       ;;
4773
 
   *)
4774
 
  AC_MSG_RESULT([no])
 
3597
  darwin*)
 
3598
    if test -n "$STRIP" ; then
 
3599
      striplib="$STRIP -x"
 
3600
      old_striplib="$STRIP -S"
 
3601
      AC_MSG_RESULT([yes])
 
3602
    else
 
3603
      AC_MSG_RESULT([no])
 
3604
    fi
 
3605
    ;;
 
3606
  *)
 
3607
    AC_MSG_RESULT([no])
4775
3608
    ;;
4776
3609
  esac
4777
3610
fi
4778
 
])# AC_LIBTOOL_SYS_LIB_STRIP
4779
 
 
4780
 
 
4781
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
3611
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
3612
_LT_DECL([], [striplib], [1])
 
3613
])# _LT_CMD_STRIPLIB
 
3614
 
 
3615
 
 
3616
# _LT_SYS_DYNAMIC_LINKER([TAG])
4782
3617
# -----------------------------
4783
3618
# PORTME Fill in your ld.so characteristics
4784
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
4785
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
3619
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
3620
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3621
m4_require([_LT_DECL_EGREP])dnl
 
3622
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
3623
m4_require([_LT_DECL_OBJDUMP])dnl
 
3624
m4_require([_LT_DECL_SED])dnl
 
3625
AC_MSG_CHECKING([dynamic linker characteristics])
 
3626
m4_if([$1],
 
3627
        [], [
 
3628
if test "$GCC" = yes; then
 
3629
  case $host_os in
 
3630
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
3631
    *) lt_awk_arg="/^libraries:/" ;;
 
3632
  esac
 
3633
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3634
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
3635
    # if the path contains ";" then we assume it to be the separator
 
3636
    # otherwise default to the standard path separator (i.e. ":") - it is
 
3637
    # assumed that no part of a normal pathname contains ";" but that should
 
3638
    # okay in the real world where ";" in dirpaths is itself problematic.
 
3639
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
3640
  else
 
3641
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3642
  fi
 
3643
  # Ok, now we have the path, separated by spaces, we can step through it
 
3644
  # and add multilib dir if necessary.
 
3645
  lt_tmp_lt_search_path_spec=
 
3646
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
3647
  for lt_sys_path in $lt_search_path_spec; do
 
3648
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
3649
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
3650
    else
 
3651
      test -d "$lt_sys_path" && \
 
3652
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
3653
    fi
 
3654
  done
 
3655
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
3656
BEGIN {RS=" "; FS="/|\n";} {
 
3657
  lt_foo="";
 
3658
  lt_count=0;
 
3659
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
3660
    if ($lt_i != "" && $lt_i != ".") {
 
3661
      if ($lt_i == "..") {
 
3662
        lt_count++;
 
3663
      } else {
 
3664
        if (lt_count == 0) {
 
3665
          lt_foo="/" $lt_i lt_foo;
 
3666
        } else {
 
3667
          lt_count--;
 
3668
        }
 
3669
      }
 
3670
    }
 
3671
  }
 
3672
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
3673
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
3674
}'`
 
3675
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
3676
else
 
3677
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
3678
fi])
4786
3679
library_names_spec=
4787
3680
libname_spec='lib$name'
4788
3681
soname_spec=
4796
3689
version_type=none
4797
3690
dynamic_linker="$host_os ld.so"
4798
3691
sys_lib_dlsearch_path_spec="/lib /usr/lib"
4799
 
if test "$GCC" = yes; then
4800
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4801
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4802
 
    # if the path contains ";" then we assume it to be the separator
4803
 
    # otherwise default to the standard path separator (i.e. ":") - it is
4804
 
    # assumed that no part of a normal pathname contains ";" but that should
4805
 
    # okay in the real world where ";" in dirpaths is itself problematic.
4806
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4807
 
  else
4808
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4809
 
  fi
4810
 
else
4811
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4812
 
fi
4813
3692
need_lib_prefix=unknown
4814
3693
hardcode_into_libs=no
4815
3694
 
4827
3706
  soname_spec='${libname}${release}${shared_ext}$major'
4828
3707
  ;;
4829
3708
 
4830
 
aix4* | aix5*)
 
3709
aix[[4-9]]*)
4831
3710
  version_type=linux
4832
3711
  need_lib_prefix=no
4833
3712
  need_version=no
4846
3725
      aix4 | aix4.[[01]] | aix4.[[01]].*)
4847
3726
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4848
3727
           echo ' yes '
4849
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
3728
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4850
3729
        :
4851
3730
      else
4852
3731
        can_build_shared=no
4872
3751
  ;;
4873
3752
 
4874
3753
amigaos*)
4875
 
  library_names_spec='$libname.ixlibrary $libname.a'
4876
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
4877
 
  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'
 
3754
  case $host_cpu in
 
3755
  powerpc)
 
3756
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
3757
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
3758
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3759
    ;;
 
3760
  m68k)
 
3761
    library_names_spec='$libname.ixlibrary $libname.a'
 
3762
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
3763
    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'
 
3764
    ;;
 
3765
  esac
4878
3766
  ;;
4879
3767
 
4880
3768
beos*)
4897
3785
  # libtool to hard-code these into programs
4898
3786
  ;;
4899
3787
 
4900
 
cygwin* | mingw* | pw32*)
 
3788
cygwin* | mingw* | pw32* | cegcc*)
4901
3789
  version_type=windows
4902
3790
  shrext_cmds=".dll"
4903
3791
  need_version=no
4904
3792
  need_lib_prefix=no
4905
3793
 
4906
3794
  case $GCC,$host_os in
4907
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
3795
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
4908
3796
    library_names_spec='$libname.dll.a'
4909
3797
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
4910
3798
    postinstall_cmds='base_file=`basename \${file}`~
4911
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
3799
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4912
3800
      dldir=$destdir/`dirname \$dlpath`~
4913
3801
      test -d \$dldir || mkdir -p \$dldir~
4914
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
3802
      $install_prog $dir/$dlname \$dldir/$dlname~
 
3803
      chmod a+x \$dldir/$dlname~
 
3804
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
3805
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
3806
      fi'
4915
3807
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4916
3808
      dlpath=$dir/\$dldll~
4917
 
       $rm \$dlpath'
 
3809
       $RM \$dlpath'
4918
3810
    shlibpath_overrides_runpath=yes
4919
3811
 
4920
3812
    case $host_os in
4923
3815
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4924
3816
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4925
3817
      ;;
4926
 
    mingw*)
 
3818
    mingw* | cegcc*)
4927
3819
      # MinGW DLLs use traditional 'lib' prefix
4928
3820
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4929
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4930
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
3821
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
3822
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4931
3823
        # It is most probably a Windows format PATH printed by
4932
3824
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
4933
3825
        # path with ; separators, and with drive letters. We can handle the
4934
3826
        # drive letters (cygwin fileutils understands them), so leave them,
4935
3827
        # especially as we might pass files found there to a mingw objdump,
4936
3828
        # which wouldn't understand a cygwinified path. Ahh.
4937
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
3829
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4938
3830
      else
4939
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
3831
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4940
3832
      fi
4941
3833
      ;;
4942
3834
    pw32*)
4946
3838
    esac
4947
3839
    ;;
4948
3840
 
4949
 
  linux*)
4950
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4951
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4952
 
      supports_anon_versioning=no
4953
 
      case `$LD -v 2>/dev/null` in
4954
 
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4955
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4956
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4957
 
        *\ 2.11.*) ;; # other 2.11 versions
4958
 
        *) supports_anon_versioning=yes ;;
4959
 
      esac
4960
 
      if test $supports_anon_versioning = yes; then
4961
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
4962
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4963
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
4964
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4965
 
      else
4966
 
        $archive_expsym_cmds="$archive_cmds"
4967
 
      fi
4968
 
    else
4969
 
      ld_shlibs=no
4970
 
    fi
4971
 
    ;;
4972
 
 
4973
3841
  *)
4974
3842
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4975
3843
    ;;
4984
3852
  version_type=darwin
4985
3853
  need_lib_prefix=no
4986
3854
  need_version=no
4987
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
3855
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4988
3856
  soname_spec='${libname}${release}${major}$shared_ext'
4989
3857
  shlibpath_overrides_runpath=yes
4990
3858
  shlibpath_var=DYLD_LIBRARY_PATH
4991
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
4992
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4993
 
  if test "$GCC" = yes; then
4994
 
    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"`
4995
 
  else
4996
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
4997
 
  fi
 
3859
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
3860
m4_if([$1], [],[
 
3861
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4998
3862
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4999
3863
  ;;
5000
3864
 
5011
3875
  dynamic_linker=no
5012
3876
  ;;
5013
3877
 
5014
 
kfreebsd*-gnu)
5015
 
  version_type=linux
5016
 
  need_lib_prefix=no
5017
 
  need_version=no
5018
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5019
 
  soname_spec='${libname}${release}${shared_ext}$major'
5020
 
  shlibpath_var=LD_LIBRARY_PATH
5021
 
  shlibpath_overrides_runpath=no
5022
 
  hardcode_into_libs=yes
5023
 
  dynamic_linker='GNU ld.so'
5024
 
  ;;
5025
 
 
5026
3878
freebsd* | dragonfly*)
5027
3879
  # DragonFly does not have aout.  When/if they implement a new
5028
3880
  # versioning mechanism, adjust this.
5029
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
3881
  if test -x /usr/bin/objformat; then
 
3882
    objformat=`/usr/bin/objformat`
 
3883
  else
 
3884
    case $host_os in
 
3885
    freebsd[[123]]*) objformat=aout ;;
 
3886
    *) objformat=elf ;;
 
3887
    esac
 
3888
  fi
5030
3889
  version_type=freebsd-$objformat
5031
3890
  case $version_type in
5032
3891
    freebsd-elf*)
5048
3907
    shlibpath_overrides_runpath=yes
5049
3908
    hardcode_into_libs=yes
5050
3909
    ;;
5051
 
  *) # from 3.2 on
 
3910
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
3911
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
5052
3912
    shlibpath_overrides_runpath=no
5053
3913
    hardcode_into_libs=yes
5054
3914
    ;;
 
3915
  *) # from 4.6 on, and DragonFly
 
3916
    shlibpath_overrides_runpath=yes
 
3917
    hardcode_into_libs=yes
 
3918
    ;;
5055
3919
  esac
5056
3920
  ;;
5057
3921
 
5071
3935
  version_type=sunos
5072
3936
  need_lib_prefix=no
5073
3937
  need_version=no
5074
 
  case "$host_cpu" in
 
3938
  case $host_cpu in
5075
3939
  ia64*)
5076
3940
    shrext_cmds='.so'
5077
3941
    hardcode_into_libs=yes
5087
3951
    fi
5088
3952
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5089
3953
    ;;
5090
 
   hppa*64*)
5091
 
     shrext_cmds='.sl'
5092
 
     hardcode_into_libs=yes
5093
 
     dynamic_linker="$host_os dld.sl"
5094
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5095
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5096
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5097
 
     soname_spec='${libname}${release}${shared_ext}$major'
5098
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5099
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5100
 
     ;;
5101
 
   *)
 
3954
  hppa*64*)
 
3955
    shrext_cmds='.sl'
 
3956
    hardcode_into_libs=yes
 
3957
    dynamic_linker="$host_os dld.sl"
 
3958
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
3959
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
3960
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
3961
    soname_spec='${libname}${release}${shared_ext}$major'
 
3962
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
3963
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
3964
    ;;
 
3965
  *)
5102
3966
    shrext_cmds='.sl'
5103
3967
    dynamic_linker="$host_os dld.sl"
5104
3968
    shlibpath_var=SHLIB_PATH
5111
3975
  postinstall_cmds='chmod 555 $lib'
5112
3976
  ;;
5113
3977
 
 
3978
interix[[3-9]]*)
 
3979
  version_type=linux
 
3980
  need_lib_prefix=no
 
3981
  need_version=no
 
3982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3983
  soname_spec='${libname}${release}${shared_ext}$major'
 
3984
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
3985
  shlibpath_var=LD_LIBRARY_PATH
 
3986
  shlibpath_overrides_runpath=no
 
3987
  hardcode_into_libs=yes
 
3988
  ;;
 
3989
 
5114
3990
irix5* | irix6* | nonstopux*)
5115
3991
  case $host_os in
5116
3992
    nonstopux*) version_type=nonstopux ;;
5154
4030
  ;;
5155
4031
 
5156
4032
# This must be Linux ELF.
5157
 
linux*)
 
4033
linux* | k*bsd*-gnu)
5158
4034
  version_type=linux
5159
4035
  need_lib_prefix=no
5160
4036
  need_version=no
5163
4039
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5164
4040
  shlibpath_var=LD_LIBRARY_PATH
5165
4041
  shlibpath_overrides_runpath=no
 
4042
  # Some binutils ld are patched to set DT_RUNPATH
 
4043
  save_LDFLAGS=$LDFLAGS
 
4044
  save_libdir=$libdir
 
4045
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
4046
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
4047
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
4048
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
4049
       [shlibpath_overrides_runpath=yes])])
 
4050
  LDFLAGS=$save_LDFLAGS
 
4051
  libdir=$save_libdir
 
4052
 
5166
4053
  # This implies no fast_install, which is unacceptable.
5167
4054
  # Some rework will be needed to allow for fast_install
5168
4055
  # before this can be enabled.
5170
4057
 
5171
4058
  # Append ld.so.conf contents to the search path
5172
4059
  if test -f /etc/ld.so.conf; then
5173
 
    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' ' '`
 
4060
    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' ' '`
5174
4061
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
5175
4062
  fi
5176
4063
 
5177
 
  case $host_cpu:$lt_cv_cc_64bit_output in
5178
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
5179
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
5180
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
5181
 
    ;;
5182
 
  esac
5183
 
 
5184
4064
  # We used to test for /lib/ld.so.1 and disable shared libraries on
5185
4065
  # powerpc, because MkLinux only supported shared libraries with the
5186
4066
  # GNU dynamic linker.  Since this was broken with cross compilers,
5188
4068
  # people can always --disable-shared, the test was removed, and we
5189
4069
  # assume the GNU/Linux dynamic linker is in use.
5190
4070
  dynamic_linker='GNU/Linux ld.so'
5191
 
 
5192
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
5193
 
  libsuff=
5194
 
  case "$host_cpu" in
5195
 
  x86_64*)
5196
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
5197
 
    if AC_TRY_EVAL(ac_compile); then
5198
 
      case `/usr/bin/file conftest.$ac_objext` in
5199
 
      *64-bit*)
5200
 
        libsuff=64
5201
 
        ;;
5202
 
      esac
5203
 
    fi
5204
 
    rm -rf conftest*
5205
 
    ;;
5206
 
  *)
5207
 
    ;;
5208
 
  esac
5209
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
5210
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
5211
 
  ;;
5212
 
 
5213
 
knetbsd*-gnu)
5214
 
  version_type=linux
5215
 
  need_lib_prefix=no
5216
 
  need_version=no
5217
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5218
 
  soname_spec='${libname}${release}${shared_ext}$major'
5219
 
  shlibpath_var=LD_LIBRARY_PATH
5220
 
  shlibpath_overrides_runpath=no
5221
 
  hardcode_into_libs=yes
5222
 
  dynamic_linker='GNU ld.so'
5223
4071
  ;;
5224
4072
 
5225
4073
netbsd*)
5226
4074
  version_type=sunos
5227
4075
  need_lib_prefix=no
5228
4076
  need_version=no
5229
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4077
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5230
4078
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5231
4079
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5232
4080
    dynamic_linker='NetBSD (a.out) ld.so'
5247
4095
  shlibpath_overrides_runpath=yes
5248
4096
  ;;
5249
4097
 
5250
 
nto-qnx*)
5251
 
  version_type=linux
 
4098
*nto* | *qnx*)
 
4099
  version_type=qnx
5252
4100
  need_lib_prefix=no
5253
4101
  need_version=no
5254
4102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5255
4103
  soname_spec='${libname}${release}${shared_ext}$major'
5256
4104
  shlibpath_var=LD_LIBRARY_PATH
5257
 
  shlibpath_overrides_runpath=yes
 
4105
  shlibpath_overrides_runpath=no
 
4106
  hardcode_into_libs=yes
 
4107
  dynamic_linker='ldqnx.so'
5258
4108
  ;;
5259
4109
 
5260
4110
openbsd*)
5261
4111
  version_type=sunos
 
4112
  sys_lib_dlsearch_path_spec="/usr/lib"
5262
4113
  need_lib_prefix=no
5263
4114
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
5264
4115
  case $host_os in
5265
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
5266
 
    *)                         need_version=no  ;;
 
4116
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
4117
    *)                          need_version=no  ;;
5267
4118
  esac
5268
4119
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5269
4120
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5270
4121
  shlibpath_var=LD_LIBRARY_PATH
5271
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4122
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5272
4123
    case $host_os in
5273
4124
      openbsd2.[[89]] | openbsd2.[[89]].*)
5274
4125
        shlibpath_overrides_runpath=no
5302
4153
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5303
4154
  ;;
5304
4155
 
5305
 
sco3.2v5*)
5306
 
  version_type=osf
5307
 
  soname_spec='${libname}${release}${shared_ext}$major'
5308
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5309
 
  shlibpath_var=LD_LIBRARY_PATH
 
4156
rdos*)
 
4157
  dynamic_linker=no
5310
4158
  ;;
5311
4159
 
5312
4160
solaris*)
5334
4182
  need_version=yes
5335
4183
  ;;
5336
4184
 
5337
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4185
sysv4 | sysv4.3*)
5338
4186
  version_type=linux
5339
4187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5340
4188
  soname_spec='${libname}${release}${shared_ext}$major'
5343
4191
    sni)
5344
4192
      shlibpath_overrides_runpath=no
5345
4193
      need_lib_prefix=no
5346
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
5347
4194
      runpath_var=LD_RUN_PATH
5348
4195
      ;;
5349
4196
    siemens)
5367
4214
  fi
5368
4215
  ;;
5369
4216
 
 
4217
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4218
  version_type=freebsd-elf
 
4219
  need_lib_prefix=no
 
4220
  need_version=no
 
4221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
4222
  soname_spec='${libname}${release}${shared_ext}$major'
 
4223
  shlibpath_var=LD_LIBRARY_PATH
 
4224
  shlibpath_overrides_runpath=yes
 
4225
  hardcode_into_libs=yes
 
4226
  if test "$with_gnu_ld" = yes; then
 
4227
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
4228
  else
 
4229
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
4230
    case $host_os in
 
4231
      sco3.2v5*)
 
4232
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
4233
        ;;
 
4234
    esac
 
4235
  fi
 
4236
  sys_lib_dlsearch_path_spec='/usr/lib'
 
4237
  ;;
 
4238
 
 
4239
tpf*)
 
4240
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
4241
  version_type=linux
 
4242
  need_lib_prefix=no
 
4243
  need_version=no
 
4244
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
4245
  shlibpath_var=LD_LIBRARY_PATH
 
4246
  shlibpath_overrides_runpath=no
 
4247
  hardcode_into_libs=yes
 
4248
  ;;
 
4249
 
5370
4250
uts4*)
5371
4251
  version_type=linux
5372
4252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5380
4260
esac
5381
4261
AC_MSG_RESULT([$dynamic_linker])
5382
4262
test "$dynamic_linker" = no && can_build_shared=no
5383
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
5384
 
 
5385
 
 
5386
 
# _LT_AC_TAGCONFIG
5387
 
# ----------------
5388
 
AC_DEFUN([_LT_AC_TAGCONFIG],
5389
 
[AC_ARG_WITH([tags],
5390
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
5391
 
        [include additional configurations @<:@automatic@:>@])],
5392
 
    [tagnames="$withval"])
5393
 
 
5394
 
if test -f "$ltmain" && test -n "$tagnames"; then
5395
 
  if test ! -f "${ofile}"; then
5396
 
    AC_MSG_WARN([output file `$ofile' does not exist])
5397
 
  fi
5398
 
 
5399
 
  if test -z "$LTCC"; then
5400
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
5401
 
    if test -z "$LTCC"; then
5402
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
5403
 
    else
5404
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
5405
 
    fi
5406
 
  fi
5407
 
 
5408
 
  # Extract list of available tagged configurations in $ofile.
5409
 
  # Note that this assumes the entire list is on one line.
5410
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
5411
 
 
5412
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5413
 
  for tagname in $tagnames; do
5414
 
    IFS="$lt_save_ifs"
5415
 
    # Check whether tagname contains only valid characters
5416
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
5417
 
    "") ;;
5418
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
5419
 
        ;;
5420
 
    esac
5421
 
 
5422
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
5423
 
    then
5424
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
5425
 
    fi
5426
 
 
5427
 
    # Update the list of available tags.
5428
 
    if test -n "$tagname"; then
5429
 
      echo appending configuration tag \"$tagname\" to $ofile
5430
 
 
5431
 
      case $tagname in
5432
 
      CXX)
5433
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5434
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5435
 
            (test "X$CXX" != "Xg++"))) ; then
5436
 
          AC_LIBTOOL_LANG_CXX_CONFIG
5437
 
        else
5438
 
          tagname=""
5439
 
        fi
5440
 
        ;;
5441
 
 
5442
 
      F77)
5443
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
5444
 
          AC_LIBTOOL_LANG_F77_CONFIG
5445
 
        else
5446
 
          tagname=""
5447
 
        fi
5448
 
        ;;
5449
 
 
5450
 
      GCJ)
5451
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
5452
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
5453
 
        else
5454
 
          tagname=""
5455
 
        fi
5456
 
        ;;
5457
 
 
5458
 
      RC)
5459
 
        AC_LIBTOOL_LANG_RC_CONFIG
5460
 
        ;;
5461
 
 
5462
 
      *)
5463
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
5464
 
        ;;
5465
 
      esac
5466
 
 
5467
 
      # Append the new tag name to the list of available tags.
5468
 
      if test -n "$tagname" ; then
5469
 
      available_tags="$available_tags $tagname"
5470
 
    fi
5471
 
    fi
5472
 
  done
5473
 
  IFS="$lt_save_ifs"
5474
 
 
5475
 
  # Now substitute the updated list of available tags.
5476
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
5477
 
    mv "${ofile}T" "$ofile"
5478
 
    chmod +x "$ofile"
5479
 
  else
5480
 
    rm -f "${ofile}T"
5481
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
5482
 
  fi
5483
 
fi
5484
 
])# _LT_AC_TAGCONFIG
5485
 
 
5486
 
 
5487
 
# AC_LIBTOOL_DLOPEN
5488
 
# -----------------
5489
 
# enable checks for dlopen support
5490
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
5491
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
5492
 
])# AC_LIBTOOL_DLOPEN
5493
 
 
5494
 
 
5495
 
# AC_LIBTOOL_WIN32_DLL
5496
 
# --------------------
5497
 
# declare package support for building win32 dll's
5498
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
5499
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
5500
 
])# AC_LIBTOOL_WIN32_DLL
5501
 
 
5502
 
 
5503
 
# AC_ENABLE_SHARED([DEFAULT])
5504
 
# ---------------------------
5505
 
# implement the --enable-shared flag
5506
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
5507
 
AC_DEFUN([AC_ENABLE_SHARED],
5508
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
5509
 
AC_ARG_ENABLE([shared],
5510
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
5511
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
5512
 
    [p=${PACKAGE-default}
5513
 
    case $enableval in
5514
 
    yes) enable_shared=yes ;;
5515
 
    no) enable_shared=no ;;
5516
 
    *)
5517
 
      enable_shared=no
5518
 
      # Look at the argument we got.  We use all the common list separators.
5519
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5520
 
      for pkg in $enableval; do
5521
 
        IFS="$lt_save_ifs"
5522
 
        if test "X$pkg" = "X$p"; then
5523
 
          enable_shared=yes
5524
 
        fi
5525
 
      done
5526
 
      IFS="$lt_save_ifs"
5527
 
      ;;
5528
 
    esac],
5529
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
5530
 
])# AC_ENABLE_SHARED
5531
 
 
5532
 
 
5533
 
# AC_DISABLE_SHARED
5534
 
# -----------------
5535
 
#- set the default shared flag to --disable-shared
5536
 
AC_DEFUN([AC_DISABLE_SHARED],
5537
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5538
 
AC_ENABLE_SHARED(no)
5539
 
])# AC_DISABLE_SHARED
5540
 
 
5541
 
 
5542
 
# AC_ENABLE_STATIC([DEFAULT])
5543
 
# ---------------------------
5544
 
# implement the --enable-static flag
5545
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
5546
 
AC_DEFUN([AC_ENABLE_STATIC],
5547
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
5548
 
AC_ARG_ENABLE([static],
5549
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
5550
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
5551
 
    [p=${PACKAGE-default}
5552
 
    case $enableval in
5553
 
    yes) enable_static=yes ;;
5554
 
    no) enable_static=no ;;
5555
 
    *)
5556
 
     enable_static=no
5557
 
      # Look at the argument we got.  We use all the common list separators.
5558
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5559
 
      for pkg in $enableval; do
5560
 
        IFS="$lt_save_ifs"
5561
 
        if test "X$pkg" = "X$p"; then
5562
 
          enable_static=yes
5563
 
        fi
5564
 
      done
5565
 
      IFS="$lt_save_ifs"
5566
 
      ;;
5567
 
    esac],
5568
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
5569
 
])# AC_ENABLE_STATIC
5570
 
 
5571
 
 
5572
 
# AC_DISABLE_STATIC
5573
 
# -----------------
5574
 
# set the default static flag to --disable-static
5575
 
AC_DEFUN([AC_DISABLE_STATIC],
5576
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5577
 
AC_ENABLE_STATIC(no)
5578
 
])# AC_DISABLE_STATIC
5579
 
 
5580
 
 
5581
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
5582
 
# ---------------------------------
5583
 
# implement the --enable-fast-install flag
5584
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
5585
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
5586
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
5587
 
AC_ARG_ENABLE([fast-install],
5588
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
5589
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
5590
 
    [p=${PACKAGE-default}
5591
 
    case $enableval in
5592
 
    yes) enable_fast_install=yes ;;
5593
 
    no) enable_fast_install=no ;;
5594
 
    *)
5595
 
      enable_fast_install=no
5596
 
      # Look at the argument we got.  We use all the common list separators.
5597
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5598
 
      for pkg in $enableval; do
5599
 
        IFS="$lt_save_ifs"
5600
 
        if test "X$pkg" = "X$p"; then
5601
 
          enable_fast_install=yes
5602
 
        fi
5603
 
      done
5604
 
      IFS="$lt_save_ifs"
5605
 
      ;;
5606
 
    esac],
5607
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
5608
 
])# AC_ENABLE_FAST_INSTALL
5609
 
 
5610
 
 
5611
 
# AC_DISABLE_FAST_INSTALL
5612
 
# -----------------------
5613
 
# set the default to --disable-fast-install
5614
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
5615
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5616
 
AC_ENABLE_FAST_INSTALL(no)
5617
 
])# AC_DISABLE_FAST_INSTALL
5618
 
 
5619
 
 
5620
 
# AC_LIBTOOL_PICMODE([MODE])
 
4263
 
 
4264
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
4265
if test "$GCC" = yes; then
 
4266
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
4267
fi
 
4268
 
 
4269
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
4270
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
4271
fi
 
4272
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
4273
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
4274
fi
 
4275
 
 
4276
_LT_DECL([], [variables_saved_for_relink], [1],
 
4277
    [Variables whose values should be saved in libtool wrapper scripts and
 
4278
    restored at link time])
 
4279
_LT_DECL([], [need_lib_prefix], [0],
 
4280
    [Do we need the "lib" prefix for modules?])
 
4281
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
4282
_LT_DECL([], [version_type], [0], [Library versioning type])
 
4283
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
4284
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
4285
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
4286
    [Is shlibpath searched before the hard-coded library search path?])
 
4287
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
4288
_LT_DECL([], [library_names_spec], [1],
 
4289
    [[List of archive names.  First name is the real one, the rest are links.
 
4290
    The last name is the one that the linker finds with -lNAME]])
 
4291
_LT_DECL([], [soname_spec], [1],
 
4292
    [[The coded name of the library, if different from the real name]])
 
4293
_LT_DECL([], [postinstall_cmds], [2],
 
4294
    [Command to use after installation of a shared archive])
 
4295
_LT_DECL([], [postuninstall_cmds], [2],
 
4296
    [Command to use after uninstallation of a shared archive])
 
4297
_LT_DECL([], [finish_cmds], [2],
 
4298
    [Commands used to finish a libtool library installation in a directory])
 
4299
_LT_DECL([], [finish_eval], [1],
 
4300
    [[As "finish_cmds", except a single script fragment to be evaled but
 
4301
    not shown]])
 
4302
_LT_DECL([], [hardcode_into_libs], [0],
 
4303
    [Whether we should hardcode library paths into libraries])
 
4304
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
4305
    [Compile-time system search path for libraries])
 
4306
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
4307
    [Run-time system search path for libraries])
 
4308
])# _LT_SYS_DYNAMIC_LINKER
 
4309
 
 
4310
 
 
4311
# _LT_PATH_TOOL_PREFIX(TOOL)
5621
4312
# --------------------------
5622
 
# implement the --with-pic flag
5623
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
5624
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
5625
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5626
 
pic_mode=ifelse($#,1,$1,default)
5627
 
])# AC_LIBTOOL_PICMODE
5628
 
 
5629
 
 
5630
 
# AC_PROG_EGREP
5631
 
# -------------
5632
 
# This is predefined starting with Autoconf 2.54, so this conditional
5633
 
# definition can be removed once we require Autoconf 2.54 or later.
5634
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
5635
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
5636
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5637
 
    then ac_cv_prog_egrep='grep -E'
5638
 
    else ac_cv_prog_egrep='egrep'
5639
 
    fi])
5640
 
 EGREP=$ac_cv_prog_egrep
5641
 
 AC_SUBST([EGREP])
5642
 
])])
5643
 
 
5644
 
 
5645
 
# AC_PATH_TOOL_PREFIX
5646
 
# -------------------
5647
 
# find a file program which can recognise shared library
5648
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
5649
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
4313
# find a file program which can recognize shared library
 
4314
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
4315
[m4_require([_LT_DECL_EGREP])dnl
5650
4316
AC_MSG_CHECKING([for $1])
5651
4317
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
5652
4318
[case $MAGIC_CMD in
5659
4325
dnl $ac_dummy forces splitting on constant user-supplied paths.
5660
4326
dnl POSIX.2 word splitting is done only on the output of word expansions,
5661
4327
dnl not every word.  This closes a longstanding sh security hole.
5662
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
4328
  ac_dummy="m4_if([$2], , $PATH, [$2])"
5663
4329
  for ac_dir in $ac_dummy; do
5664
4330
    IFS="$lt_save_ifs"
5665
4331
    test -z "$ac_dir" && ac_dir=.
5668
4334
      if test -n "$file_magic_test_file"; then
5669
4335
        case $deplibs_check_method in
5670
4336
        "file_magic "*)
5671
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4337
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5672
4338
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5673
4339
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5674
4340
            $EGREP "$file_magic_regex" > /dev/null; then
5675
4341
            :
5676
4342
          else
5677
 
            cat <<EOF 1>&2
 
4343
            cat <<_LT_EOF 1>&2
5678
4344
 
5679
4345
*** Warning: the command libtool uses to detect shared libraries,
5680
4346
*** $file_magic_cmd, produces output that libtool cannot recognize.
5685
4351
*** may want to report the problem to your system manager and/or to
5686
4352
*** bug-libtool@gnu.org
5687
4353
 
5688
 
EOF
 
4354
_LT_EOF
5689
4355
          fi ;;
5690
4356
        esac
5691
4357
      fi
5702
4368
else
5703
4369
  AC_MSG_RESULT(no)
5704
4370
fi
5705
 
])# AC_PATH_TOOL_PREFIX
5706
 
 
5707
 
 
5708
 
# AC_PATH_MAGIC
5709
 
# -------------
5710
 
# find a file program which can recognise a shared library
5711
 
AC_DEFUN([AC_PATH_MAGIC],
5712
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
4371
_LT_DECL([], [MAGIC_CMD], [0],
 
4372
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
4373
])# _LT_PATH_TOOL_PREFIX
 
4374
 
 
4375
# Old name:
 
4376
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
4377
dnl aclocal-1.4 backwards compatibility:
 
4378
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
4379
 
 
4380
 
 
4381
# _LT_PATH_MAGIC
 
4382
# --------------
 
4383
# find a file program which can recognize a shared library
 
4384
m4_defun([_LT_PATH_MAGIC],
 
4385
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
5713
4386
if test -z "$lt_cv_path_MAGIC_CMD"; then
5714
4387
  if test -n "$ac_tool_prefix"; then
5715
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
4388
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
5716
4389
  else
5717
4390
    MAGIC_CMD=:
5718
4391
  fi
5719
4392
fi
5720
 
])# AC_PATH_MAGIC
5721
 
 
5722
 
 
5723
 
# AC_PROG_LD
 
4393
])# _LT_PATH_MAGIC
 
4394
 
 
4395
 
 
4396
# LT_PATH_LD
5724
4397
# ----------
5725
4398
# find the pathname to the GNU or non-GNU linker
5726
 
AC_DEFUN([AC_PROG_LD],
5727
 
[AC_ARG_WITH([gnu-ld],
5728
 
    [AC_HELP_STRING([--with-gnu-ld],
 
4399
AC_DEFUN([LT_PATH_LD],
 
4400
[AC_REQUIRE([AC_PROG_CC])dnl
 
4401
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4402
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
4403
m4_require([_LT_DECL_SED])dnl
 
4404
m4_require([_LT_DECL_EGREP])dnl
 
4405
 
 
4406
AC_ARG_WITH([gnu-ld],
 
4407
    [AS_HELP_STRING([--with-gnu-ld],
5729
4408
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
5730
4409
    [test "$withval" = no || with_gnu_ld=yes],
5731
 
    [with_gnu_ld=no])
5732
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
5733
 
AC_REQUIRE([AC_PROG_CC])dnl
5734
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
5735
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
4410
    [with_gnu_ld=no])dnl
 
4411
 
5736
4412
ac_prog=ld
5737
4413
if test "$GCC" = yes; then
5738
4414
  # Check if gcc -print-prog-name=ld gives a path.
5749
4425
    [[\\/]]* | ?:[[\\/]]*)
5750
4426
      re_direlt='/[[^/]][[^/]]*/\.\./'
5751
4427
      # Canonicalize the pathname of ld
5752
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5753
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5754
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4428
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4429
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4430
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5755
4431
      done
5756
4432
      test -z "$LD" && LD="$ac_prog"
5757
4433
      ;;
5778
4454
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5779
4455
      lt_cv_path_LD="$ac_dir/$ac_prog"
5780
4456
      # Check to see if the program is GNU ld.  I'd rather use --version,
5781
 
      # but apparently some GNU ld's only accept -v.
 
4457
      # but apparently some variants of GNU ld only accept -v.
5782
4458
      # Break only if it was the GNU/non-GNU ld that we prefer.
5783
4459
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5784
4460
      *GNU* | *'with BFD'*)
5801
4477
  AC_MSG_RESULT(no)
5802
4478
fi
5803
4479
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
5804
 
AC_PROG_LD_GNU
5805
 
])# AC_PROG_LD
5806
 
 
5807
 
 
5808
 
# AC_PROG_LD_GNU
5809
 
# --------------
5810
 
AC_DEFUN([AC_PROG_LD_GNU],
5811
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
5812
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
5813
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4480
_LT_PATH_LD_GNU
 
4481
AC_SUBST([LD])
 
4482
 
 
4483
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
4484
])# LT_PATH_LD
 
4485
 
 
4486
# Old names:
 
4487
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
4488
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
4489
dnl aclocal-1.4 backwards compatibility:
 
4490
dnl AC_DEFUN([AM_PROG_LD], [])
 
4491
dnl AC_DEFUN([AC_PROG_LD], [])
 
4492
 
 
4493
 
 
4494
# _LT_PATH_LD_GNU
 
4495
#- --------------
 
4496
m4_defun([_LT_PATH_LD_GNU],
 
4497
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
4498
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
5814
4499
case `$LD -v 2>&1 </dev/null` in
5815
4500
*GNU* | *'with BFD'*)
5816
4501
  lt_cv_prog_gnu_ld=yes
5820
4505
  ;;
5821
4506
esac])
5822
4507
with_gnu_ld=$lt_cv_prog_gnu_ld
5823
 
])# AC_PROG_LD_GNU
5824
 
 
5825
 
 
5826
 
# AC_PROG_LD_RELOAD_FLAG
5827
 
# ----------------------
 
4508
])# _LT_PATH_LD_GNU
 
4509
 
 
4510
 
 
4511
# _LT_CMD_RELOAD
 
4512
# --------------
5828
4513
# find reload flag for linker
5829
4514
#   -- PORTME Some linkers may need a different reload flag.
5830
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
4515
m4_defun([_LT_CMD_RELOAD],
5831
4516
[AC_CACHE_CHECK([for $LD option to reload object files],
5832
4517
  lt_cv_ld_reload_flag,
5833
4518
  [lt_cv_ld_reload_flag='-r'])
5840
4525
case $host_os in
5841
4526
  darwin*)
5842
4527
    if test "$GCC" = yes; then
5843
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
4528
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5844
4529
    else
5845
4530
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5846
4531
    fi
5847
4532
    ;;
5848
4533
esac
5849
 
])# AC_PROG_LD_RELOAD_FLAG
5850
 
 
5851
 
 
5852
 
# AC_DEPLIBS_CHECK_METHOD
5853
 
# -----------------------
 
4534
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
4535
_LT_DECL([], [reload_cmds], [2])dnl
 
4536
])# _LT_CMD_RELOAD
 
4537
 
 
4538
 
 
4539
# _LT_CHECK_MAGIC_METHOD
 
4540
# ----------------------
5854
4541
# how to check for library dependencies
5855
4542
#  -- PORTME fill in with the dynamic library characteristics
5856
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
5857
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
4543
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
4544
[m4_require([_LT_DECL_EGREP])
 
4545
m4_require([_LT_DECL_OBJDUMP])
 
4546
AC_CACHE_CHECK([how to recognize dependent libraries],
5858
4547
lt_cv_deplibs_check_method,
5859
4548
[lt_cv_file_magic_cmd='$MAGIC_CMD'
5860
4549
lt_cv_file_magic_test_file=
5871
4560
# whether `pass_all' will *always* work, you probably want this one.
5872
4561
 
5873
4562
case $host_os in
5874
 
aix4* | aix5*)
 
4563
aix[[4-9]]*)
5875
4564
  lt_cv_deplibs_check_method=pass_all
5876
4565
  ;;
5877
4566
 
5893
4582
 
5894
4583
mingw* | pw32*)
5895
4584
  # Base MSYS/MinGW do not provide the 'file' command needed by
5896
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5897
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4585
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4586
  # unless we find 'file', for example because we are cross-compiling.
 
4587
  if ( file / ) >/dev/null 2>&1; then
 
4588
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4589
    lt_cv_file_magic_cmd='func_win32_libid'
 
4590
  else
 
4591
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4592
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4593
  fi
 
4594
  ;;
 
4595
 
 
4596
cegcc)
 
4597
  # use the weaker test based on 'objdump'. See mingw*.
 
4598
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5898
4599
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5899
4600
  ;;
5900
4601
 
5902
4603
  lt_cv_deplibs_check_method=pass_all
5903
4604
  ;;
5904
4605
 
5905
 
freebsd* | kfreebsd*-gnu | dragonfly*)
5906
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4606
freebsd* | dragonfly*)
 
4607
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5907
4608
    case $host_cpu in
5908
4609
    i*86 )
5909
4610
      # Not sure whether the presence of OpenBSD here was a mistake.
5924
4625
 
5925
4626
hpux10.20* | hpux11*)
5926
4627
  lt_cv_file_magic_cmd=/usr/bin/file
5927
 
  case "$host_cpu" in
 
4628
  case $host_cpu in
5928
4629
  ia64*)
5929
4630
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
5930
4631
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5940
4641
  esac
5941
4642
  ;;
5942
4643
 
 
4644
interix[[3-9]]*)
 
4645
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4646
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
4647
  ;;
 
4648
 
5943
4649
irix5* | irix6* | nonstopux*)
5944
4650
  case $LD in
5945
4651
  *-32|*"-32 ") libmagic=32-bit;;
5951
4657
  ;;
5952
4658
 
5953
4659
# This must be Linux ELF.
5954
 
linux*)
 
4660
linux* | k*bsd*-gnu)
5955
4661
  lt_cv_deplibs_check_method=pass_all
5956
4662
  ;;
5957
4663
 
5958
4664
netbsd*)
5959
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4665
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5960
4666
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5961
4667
  else
5962
4668
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
5969
4675
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5970
4676
  ;;
5971
4677
 
5972
 
nto-qnx*)
5973
 
  lt_cv_deplibs_check_method=unknown
 
4678
*nto* | *qnx*)
 
4679
  lt_cv_deplibs_check_method=pass_all
5974
4680
  ;;
5975
4681
 
5976
4682
openbsd*)
5977
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4683
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5978
4684
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
5979
4685
  else
5980
4686
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
5985
4691
  lt_cv_deplibs_check_method=pass_all
5986
4692
  ;;
5987
4693
 
5988
 
sco3.2v5*)
 
4694
rdos*)
5989
4695
  lt_cv_deplibs_check_method=pass_all
5990
4696
  ;;
5991
4697
 
5993
4699
  lt_cv_deplibs_check_method=pass_all
5994
4700
  ;;
5995
4701
 
5996
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4702
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4703
  lt_cv_deplibs_check_method=pass_all
 
4704
  ;;
 
4705
 
 
4706
sysv4 | sysv4.3*)
5997
4707
  case $host_vendor in
5998
4708
  motorola)
5999
4709
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
6014
4724
  siemens)
6015
4725
    lt_cv_deplibs_check_method=pass_all
6016
4726
    ;;
 
4727
  pc)
 
4728
    lt_cv_deplibs_check_method=pass_all
 
4729
    ;;
6017
4730
  esac
6018
4731
  ;;
6019
4732
 
6020
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
4733
tpf*)
6021
4734
  lt_cv_deplibs_check_method=pass_all
6022
4735
  ;;
6023
4736
esac
6025
4738
file_magic_cmd=$lt_cv_file_magic_cmd
6026
4739
deplibs_check_method=$lt_cv_deplibs_check_method
6027
4740
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6028
 
])# AC_DEPLIBS_CHECK_METHOD
6029
 
 
6030
 
 
6031
 
# AC_PROG_NM
 
4741
 
 
4742
_LT_DECL([], [deplibs_check_method], [1],
 
4743
    [Method to check whether dependent libraries are shared objects])
 
4744
_LT_DECL([], [file_magic_cmd], [1],
 
4745
    [Command to use when deplibs_check_method == "file_magic"])
 
4746
])# _LT_CHECK_MAGIC_METHOD
 
4747
 
 
4748
 
 
4749
# LT_PATH_NM
6032
4750
# ----------
6033
 
# find the pathname to a BSD-compatible name lister
6034
 
AC_DEFUN([AC_PROG_NM],
6035
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
4751
# find the pathname to a BSD- or MS-compatible name lister
 
4752
AC_DEFUN([LT_PATH_NM],
 
4753
[AC_REQUIRE([AC_PROG_CC])dnl
 
4754
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
6036
4755
[if test -n "$NM"; then
6037
4756
  # Let the user override the test.
6038
4757
  lt_cv_path_NM="$NM"
6039
4758
else
6040
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6041
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6042
 
    IFS="$lt_save_ifs"
6043
 
    test -z "$ac_dir" && ac_dir=.
6044
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6045
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6046
 
      # Check to see if the nm accepts a BSD-compat flag.
6047
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6048
 
      #   nm: unknown option "B" ignored
6049
 
      # Tru64's nm complains that /dev/null is an invalid object file
6050
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6051
 
      */dev/null* | *'Invalid file or object type'*)
6052
 
        lt_cv_path_NM="$tmp_nm -B"
6053
 
        break
6054
 
        ;;
6055
 
      *)
6056
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6057
 
        */dev/null*)
6058
 
          lt_cv_path_NM="$tmp_nm -p"
 
4759
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4760
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4761
    lt_nm_to_check="$lt_nm_to_check nm"
 
4762
  fi
 
4763
  for lt_tmp_nm in $lt_nm_to_check; do
 
4764
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4765
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4766
      IFS="$lt_save_ifs"
 
4767
      test -z "$ac_dir" && ac_dir=.
 
4768
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4769
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4770
        # Check to see if the nm accepts a BSD-compat flag.
 
4771
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4772
        #   nm: unknown option "B" ignored
 
4773
        # Tru64's nm complains that /dev/null is an invalid object file
 
4774
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4775
        */dev/null* | *'Invalid file or object type'*)
 
4776
          lt_cv_path_NM="$tmp_nm -B"
6059
4777
          break
6060
4778
          ;;
6061
4779
        *)
6062
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6063
 
          continue # so that we can try to find one that supports BSD flags
 
4780
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4781
          */dev/null*)
 
4782
            lt_cv_path_NM="$tmp_nm -p"
 
4783
            break
 
4784
            ;;
 
4785
          *)
 
4786
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4787
            continue # so that we can try to find one that supports BSD flags
 
4788
            ;;
 
4789
          esac
6064
4790
          ;;
6065
4791
        esac
6066
 
      esac
6067
 
    fi
 
4792
      fi
 
4793
    done
 
4794
    IFS="$lt_save_ifs"
6068
4795
  done
6069
 
  IFS="$lt_save_ifs"
6070
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4796
  : ${lt_cv_path_NM=no}
6071
4797
fi])
6072
 
NM="$lt_cv_path_NM"
6073
 
])# AC_PROG_NM
6074
 
 
6075
 
 
6076
 
# AC_CHECK_LIBM
6077
 
# -------------
 
4798
if test "$lt_cv_path_NM" != "no"; then
 
4799
  NM="$lt_cv_path_NM"
 
4800
else
 
4801
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4802
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
4803
  AC_SUBST([DUMPBIN])
 
4804
  if test "$DUMPBIN" != ":"; then
 
4805
    NM="$DUMPBIN"
 
4806
  fi
 
4807
fi
 
4808
test -z "$NM" && NM=nm
 
4809
AC_SUBST([NM])
 
4810
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
4811
 
 
4812
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
4813
  [lt_cv_nm_interface="BSD nm"
 
4814
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4815
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
4816
  (eval "$ac_compile" 2>conftest.err)
 
4817
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4818
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
4819
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4820
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
4821
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
4822
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
4823
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4824
    lt_cv_nm_interface="MS dumpbin"
 
4825
  fi
 
4826
  rm -f conftest*])
 
4827
])# LT_PATH_NM
 
4828
 
 
4829
# Old names:
 
4830
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
4831
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
4832
dnl aclocal-1.4 backwards compatibility:
 
4833
dnl AC_DEFUN([AM_PROG_NM], [])
 
4834
dnl AC_DEFUN([AC_PROG_NM], [])
 
4835
 
 
4836
 
 
4837
# LT_LIB_M
 
4838
# --------
6078
4839
# check for math library
6079
 
AC_DEFUN([AC_CHECK_LIBM],
 
4840
AC_DEFUN([LT_LIB_M],
6080
4841
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6081
4842
LIBM=
6082
4843
case $host in
6091
4852
  AC_CHECK_LIB(m, cos, LIBM="-lm")
6092
4853
  ;;
6093
4854
esac
6094
 
])# AC_CHECK_LIBM
6095
 
 
6096
 
 
6097
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
6098
 
# -----------------------------------
6099
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
6100
 
# LTDLINCL to the include flags for the libltdl header and adds
6101
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
6102
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
6103
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
6104
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
6105
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
6106
 
# flat and you're not using automake, define top_builddir and
6107
 
# top_srcdir appropriately in the Makefiles.
6108
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
6109
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6110
 
  case $enable_ltdl_convenience in
6111
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
6112
 
  "") enable_ltdl_convenience=yes
6113
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6114
 
  esac
6115
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
6116
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
6117
 
  # For backwards non-gettext consistent compatibility...
6118
 
  INCLTDL="$LTDLINCL"
6119
 
])# AC_LIBLTDL_CONVENIENCE
6120
 
 
6121
 
 
6122
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
6123
 
# -----------------------------------
6124
 
# sets LIBLTDL to the link flags for the libltdl installable library and
6125
 
# LTDLINCL to the include flags for the libltdl header and adds
6126
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
6127
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
6128
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
6129
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
6130
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
6131
 
# quotes!).  If your package is not flat and you're not using automake,
6132
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
6133
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
6134
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
6135
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6136
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
6137
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
6138
 
  [if test x"$enable_ltdl_install" = xno; then
6139
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
6140
 
   else
6141
 
     enable_ltdl_install=yes
6142
 
   fi
6143
 
  ])
6144
 
  if test x"$enable_ltdl_install" = x"yes"; then
6145
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
6146
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
6147
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
6148
 
  else
6149
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
6150
 
    LIBLTDL="-lltdl"
6151
 
    LTDLINCL=
6152
 
  fi
6153
 
  # For backwards non-gettext consistent compatibility...
6154
 
  INCLTDL="$LTDLINCL"
6155
 
])# AC_LIBLTDL_INSTALLABLE
6156
 
 
6157
 
 
6158
 
# AC_LIBTOOL_CXX
6159
 
# --------------
6160
 
# enable support for C++ libraries
6161
 
AC_DEFUN([AC_LIBTOOL_CXX],
6162
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
6163
 
])# AC_LIBTOOL_CXX
6164
 
 
6165
 
 
6166
 
# _LT_AC_LANG_CXX
6167
 
# ---------------
6168
 
AC_DEFUN([_LT_AC_LANG_CXX],
6169
 
[AC_REQUIRE([AC_PROG_CXX])
6170
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
6171
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
6172
 
])# _LT_AC_LANG_CXX
6173
 
 
6174
 
# _LT_AC_PROG_CXXCPP
6175
 
# ---------------
6176
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
6177
 
[
6178
 
AC_REQUIRE([AC_PROG_CXX])
6179
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6180
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6181
 
    (test "X$CXX" != "Xg++"))) ; then
6182
 
  AC_PROG_CXXCPP
6183
 
fi
6184
 
])# _LT_AC_PROG_CXXCPP
6185
 
 
6186
 
# AC_LIBTOOL_F77
6187
 
# --------------
6188
 
# enable support for Fortran 77 libraries
6189
 
AC_DEFUN([AC_LIBTOOL_F77],
6190
 
[AC_REQUIRE([_LT_AC_LANG_F77])
6191
 
])# AC_LIBTOOL_F77
6192
 
 
6193
 
 
6194
 
# _LT_AC_LANG_F77
6195
 
# ---------------
6196
 
AC_DEFUN([_LT_AC_LANG_F77],
6197
 
[AC_REQUIRE([AC_PROG_F77])
6198
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
6199
 
])# _LT_AC_LANG_F77
6200
 
 
6201
 
 
6202
 
# AC_LIBTOOL_GCJ
6203
 
# --------------
6204
 
# enable support for GCJ libraries
6205
 
AC_DEFUN([AC_LIBTOOL_GCJ],
6206
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
6207
 
])# AC_LIBTOOL_GCJ
6208
 
 
6209
 
 
6210
 
# _LT_AC_LANG_GCJ
6211
 
# ---------------
6212
 
AC_DEFUN([_LT_AC_LANG_GCJ],
6213
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
6214
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
6215
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
6216
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
6217
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
6218
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
6219
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
6220
 
])# _LT_AC_LANG_GCJ
6221
 
 
6222
 
 
6223
 
# AC_LIBTOOL_RC
6224
 
# --------------
6225
 
# enable support for Windows resource files
6226
 
AC_DEFUN([AC_LIBTOOL_RC],
6227
 
[AC_REQUIRE([LT_AC_PROG_RC])
6228
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
6229
 
])# AC_LIBTOOL_RC
6230
 
 
6231
 
 
6232
 
# AC_LIBTOOL_LANG_C_CONFIG
6233
 
# ------------------------
6234
 
# Ensure that the configuration vars for the C compiler are
6235
 
# suitably defined.  Those variables are subsequently used by
6236
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6237
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
6238
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
6239
 
[lt_save_CC="$CC"
6240
 
AC_LANG_PUSH(C)
6241
 
 
6242
 
# Source file extension for C test sources.
6243
 
ac_ext=c
6244
 
 
6245
 
# Object file extension for compiled C test sources.
6246
 
objext=o
6247
 
_LT_AC_TAGVAR(objext, $1)=$objext
6248
 
 
6249
 
# Code to be used in simple compile tests
6250
 
lt_simple_compile_test_code="int some_variable = 0;\n"
6251
 
 
6252
 
# Code to be used in simple link tests
6253
 
lt_simple_link_test_code='int main(){return(0);}\n'
6254
 
 
6255
 
_LT_AC_SYS_COMPILER
6256
 
 
6257
 
# save warnings/boilerplate of simple test code
6258
 
_LT_COMPILER_BOILERPLATE
6259
 
_LT_LINKER_BOILERPLATE
6260
 
 
6261
 
#
6262
 
# Check for any special shared library compilation flags.
6263
 
#
6264
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
6265
 
if test "$GCC" = no; then
6266
 
  case $host_os in
6267
 
  sco3.2v5*)
6268
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
6269
 
    ;;
6270
 
  esac
6271
 
fi
6272
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
6273
 
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
6274
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
6275
 
  else
6276
 
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
6277
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
6278
 
  fi
6279
 
fi
6280
 
 
6281
 
 
6282
 
#
6283
 
# Check to make sure the static flag actually works.
6284
 
#
6285
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
6286
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6287
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
6288
 
  [],
6289
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6290
 
 
6291
 
 
6292
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6293
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
6294
 
AC_LIBTOOL_PROG_CC_C_O($1)
6295
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6296
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6297
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6298
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6299
 
AC_LIBTOOL_SYS_LIB_STRIP
6300
 
AC_LIBTOOL_DLOPEN_SELF($1)
6301
 
 
6302
 
# Report which librarie types wil actually be built
6303
 
AC_MSG_CHECKING([if libtool supports shared libraries])
6304
 
AC_MSG_RESULT([$can_build_shared])
6305
 
 
6306
 
AC_MSG_CHECKING([whether to build shared libraries])
6307
 
test "$can_build_shared" = "no" && enable_shared=no
6308
 
 
6309
 
# On AIX, shared libraries and static libraries use the same namespace, and
6310
 
# are all built from PIC.
6311
 
case "$host_os" in
6312
 
aix3*)
6313
 
  test "$enable_shared" = yes && enable_static=no
6314
 
  if test -n "$RANLIB"; then
6315
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6316
 
    postinstall_cmds='$RANLIB $lib'
6317
 
  fi
6318
 
  ;;
6319
 
 
6320
 
aix4* | aix5*)
6321
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6322
 
    test "$enable_shared" = yes && enable_static=no
6323
 
  fi
6324
 
    ;;
6325
 
esac
6326
 
AC_MSG_RESULT([$enable_shared])
6327
 
 
6328
 
AC_MSG_CHECKING([whether to build static libraries])
6329
 
# Make sure either enable_shared or enable_static is yes.
6330
 
test "$enable_shared" = yes || enable_static=yes
6331
 
AC_MSG_RESULT([$enable_static])
6332
 
 
6333
 
AC_LIBTOOL_CONFIG($1)
6334
 
 
6335
 
AC_LANG_POP
6336
 
CC="$lt_save_CC"
6337
 
])# AC_LIBTOOL_LANG_C_CONFIG
6338
 
 
6339
 
 
6340
 
# AC_LIBTOOL_LANG_CXX_CONFIG
6341
 
# --------------------------
6342
 
# Ensure that the configuration vars for the C compiler are
6343
 
# suitably defined.  Those variables are subsequently used by
6344
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6345
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
6346
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
6347
 
[AC_LANG_PUSH(C++)
6348
 
AC_REQUIRE([AC_PROG_CXX])
6349
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
6350
 
 
6351
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6352
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6353
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6354
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6355
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6356
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6357
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6358
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6359
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6360
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6361
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6362
 
_LT_AC_TAGVAR(module_cmds, $1)=
6363
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6364
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6365
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6366
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
6367
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6368
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6369
 
 
6370
 
# Dependencies to place before and after the object being linked:
6371
 
_LT_AC_TAGVAR(predep_objects, $1)=
6372
 
_LT_AC_TAGVAR(postdep_objects, $1)=
6373
 
_LT_AC_TAGVAR(predeps, $1)=
6374
 
_LT_AC_TAGVAR(postdeps, $1)=
6375
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
6376
 
 
6377
 
# Source file extension for C++ test sources.
6378
 
ac_ext=cc
6379
 
 
6380
 
# Object file extension for compiled C++ test sources.
6381
 
objext=o
6382
 
_LT_AC_TAGVAR(objext, $1)=$objext
6383
 
 
6384
 
# Code to be used in simple compile tests
6385
 
lt_simple_compile_test_code="int some_variable = 0;\n"
6386
 
 
6387
 
# Code to be used in simple link tests
6388
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
6389
 
 
6390
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6391
 
_LT_AC_SYS_COMPILER
6392
 
 
6393
 
# save warnings/boilerplate of simple test code
6394
 
_LT_COMPILER_BOILERPLATE
6395
 
_LT_LINKER_BOILERPLATE
6396
 
 
6397
 
# Allow CC to be a program name with arguments.
6398
 
lt_save_CC=$CC
6399
 
lt_save_LD=$LD
6400
 
lt_save_GCC=$GCC
6401
 
GCC=$GXX
6402
 
lt_save_with_gnu_ld=$with_gnu_ld
6403
 
lt_save_path_LD=$lt_cv_path_LD
6404
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6405
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6406
 
else
6407
 
  unset lt_cv_prog_gnu_ld
6408
 
fi
6409
 
if test -n "${lt_cv_path_LDCXX+set}"; then
6410
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
6411
 
else
6412
 
  unset lt_cv_path_LD
6413
 
fi
6414
 
test -z "${LDCXX+set}" || LD=$LDCXX
6415
 
CC=${CXX-"c++"}
6416
 
compiler=$CC
6417
 
_LT_AC_TAGVAR(compiler, $1)=$CC
6418
 
_LT_CC_BASENAME([$compiler])
6419
 
 
6420
 
# We don't want -fno-exception wen compiling C++ code, so set the
6421
 
# no_builtin_flag separately
6422
 
if test "$GXX" = yes; then
6423
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6424
 
else
6425
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6426
 
fi
6427
 
 
6428
 
if test "$GXX" = yes; then
6429
 
  # Set up default GNU C++ configuration
6430
 
 
6431
 
  AC_PROG_LD
6432
 
 
6433
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
6434
 
  # archiving commands below assume that GNU ld is being used.
6435
 
  if test "$with_gnu_ld" = yes; then
6436
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6437
 
    _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'
6438
 
 
6439
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6440
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6441
 
 
6442
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
6443
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6444
 
    #     investigate it a little bit more. (MM)
6445
 
    wlarc='${wl}'
6446
 
 
6447
 
    # ancient GNU ld didn't support --whole-archive et. al.
6448
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
6449
 
        grep 'no-whole-archive' > /dev/null; then
6450
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6451
 
    else
6452
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6453
 
    fi
6454
 
  else
6455
 
    with_gnu_ld=no
6456
 
    wlarc=
6457
 
 
6458
 
    # A generic and very simple default shared library creation
6459
 
    # command for GNU C++ for the case where it uses the native
6460
 
    # linker, instead of GNU ld.  If possible, this setting should
6461
 
    # overridden to take advantage of the native linker features on
6462
 
    # the platform it is being used on.
6463
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6464
 
  fi
6465
 
 
6466
 
  # Commands to make compiler produce verbose output that lists
6467
 
  # what "hidden" libraries, object files and flags are used when
6468
 
  # linking a shared library.
6469
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6470
 
 
6471
 
else
6472
 
  GXX=no
6473
 
  with_gnu_ld=no
6474
 
  wlarc=
6475
 
fi
6476
 
 
6477
 
# PORTME: fill in a description of your system's C++ link characteristics
6478
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6479
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6480
 
case $host_os in
6481
 
  aix3*)
6482
 
    # FIXME: insert proper C++ library support
6483
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6484
 
    ;;
6485
 
  aix4* | aix5*)
6486
 
    if test "$host_cpu" = ia64; then
6487
 
      # On IA64, the linker does run time linking by default, so we don't
6488
 
      # have to do anything special.
6489
 
      aix_use_runtimelinking=no
6490
 
      exp_sym_flag='-Bexport'
6491
 
      no_entry_flag=""
6492
 
    else
6493
 
      aix_use_runtimelinking=no
6494
 
 
6495
 
      # Test if we are trying to use run time linking or normal
6496
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6497
 
      # need to do runtime linking.
6498
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6499
 
        for ld_flag in $LDFLAGS; do
6500
 
          case $ld_flag in
6501
 
          *-brtl*)
6502
 
            aix_use_runtimelinking=yes
6503
 
            break
6504
 
            ;;
6505
 
          esac
6506
 
        done
6507
 
      esac
6508
 
 
6509
 
      exp_sym_flag='-bexport'
6510
 
      no_entry_flag='-bnoentry'
6511
 
    fi
6512
 
 
6513
 
    # When large executables or shared objects are built, AIX ld can
6514
 
    # have problems creating the table of contents.  If linking a library
6515
 
    # or program results in "error TOC overflow" add -mminimal-toc to
6516
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6517
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6518
 
 
6519
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
6520
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6521
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6522
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6523
 
 
6524
 
    if test "$GXX" = yes; then
6525
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
6526
 
      # We only want to do this on AIX 4.2 and lower, the check
6527
 
      # below for broken collect2 doesn't work under 4.3+
6528
 
        collect2name=`${CC} -print-prog-name=collect2`
6529
 
        if test -f "$collect2name" && \
6530
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6531
 
        then
6532
 
          # We have reworked collect2
6533
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6534
 
        else
6535
 
          # We have old collect2
6536
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6537
 
          # It fails to find uninstalled libraries when the uninstalled
6538
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6539
 
          # to unsupported forces relinking
6540
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6541
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6542
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6543
 
        fi
6544
 
      esac
6545
 
      shared_flag='-shared'
6546
 
      if test "$aix_use_runtimelinking" = yes; then
6547
 
        shared_flag="$shared_flag "'${wl}-G'
6548
 
      fi
6549
 
    else
6550
 
      # not using gcc
6551
 
      if test "$host_cpu" = ia64; then
6552
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6553
 
        # chokes on -Wl,-G. The following line is correct:
6554
 
        shared_flag='-G'
6555
 
      else
6556
 
        if test "$aix_use_runtimelinking" = yes; then
6557
 
          shared_flag='${wl}-G'
6558
 
        else
6559
 
          shared_flag='${wl}-bM:SRE'
6560
 
        fi
6561
 
      fi
6562
 
    fi
6563
 
 
6564
 
    # It seems that -bexpall does not export symbols beginning with
6565
 
    # underscore (_), so it is better to generate a list of symbols to export.
6566
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6567
 
    if test "$aix_use_runtimelinking" = yes; then
6568
 
      # Warning - without using the other runtime loading flags (-brtl),
6569
 
      # -berok will link without error, but may produce a broken library.
6570
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6571
 
      # Determine the default libpath from the value encoded in an empty executable.
6572
 
      _LT_AC_SYS_LIBPATH_AIX
6573
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6574
 
 
6575
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6576
 
     else
6577
 
      if test "$host_cpu" = ia64; then
6578
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6579
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6580
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6581
 
      else
6582
 
        # Determine the default libpath from the value encoded in an empty executable.
6583
 
        _LT_AC_SYS_LIBPATH_AIX
6584
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6585
 
        # Warning - without using the other run time loading flags,
6586
 
        # -berok will link without error, but may produce a broken library.
6587
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6588
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6589
 
        # -bexpall does not export symbols beginning with underscore (_)
6590
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6591
 
        # Exported symbols can be pulled into shared objects from archives
6592
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6593
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6594
 
        # This is similar to how AIX traditionally builds it's shared libraries.
6595
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6596
 
      fi
6597
 
    fi
6598
 
    ;;
6599
 
  chorus*)
6600
 
    case $cc_basename in
6601
 
      *)
6602
 
        # FIXME: insert proper C++ library support
6603
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6604
 
        ;;
6605
 
    esac
6606
 
    ;;
6607
 
 
6608
 
 
6609
 
  cygwin* | mingw* | pw32*)
6610
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6611
 
    # as there is no search path for DLLs.
6612
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6613
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6614
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
6615
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6616
 
 
6617
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6618
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6619
 
      # If the export-symbols file already is a .def file (1st line
6620
 
      # is EXPORTS), use it as is; otherwise, prepend...
6621
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6622
 
        cp $export_symbols $output_objdir/$soname.def;
6623
 
      else
6624
 
        echo EXPORTS > $output_objdir/$soname.def;
6625
 
        cat $export_symbols >> $output_objdir/$soname.def;
6626
 
      fi~
6627
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6628
 
    else
6629
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6630
 
    fi
6631
 
  ;;
6632
 
      darwin* | rhapsody*)
6633
 
        case "$host_os" in
6634
 
        rhapsody* | darwin1.[[012]])
6635
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6636
 
         ;;
6637
 
       *) # Darwin 1.3 on
6638
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6639
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6640
 
         else
6641
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6642
 
             10.[[012]])
6643
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6644
 
               ;;
6645
 
             10.*)
6646
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6647
 
               ;;
6648
 
           esac
6649
 
         fi
6650
 
         ;;
6651
 
        esac
6652
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6653
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6654
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6655
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6656
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6657
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6658
 
 
6659
 
    if test "$GXX" = yes ; then
6660
 
      lt_int_apple_cc_single_mod=no
6661
 
      output_verbose_link_cmd='echo'
6662
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
6663
 
       lt_int_apple_cc_single_mod=yes
6664
 
      fi
6665
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6666
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6667
 
      else
6668
 
          _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'
6669
 
        fi
6670
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6671
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6672
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6673
 
            _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}'
6674
 
          else
6675
 
            _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}'
6676
 
          fi
6677
 
            _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}'
6678
 
      else
6679
 
      case $cc_basename in
6680
 
        xlc*)
6681
 
         output_verbose_link_cmd='echo'
6682
 
          _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'
6683
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6684
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6685
 
          _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}'
6686
 
          _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}'
6687
 
          ;;
6688
 
       *)
6689
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6690
 
          ;;
6691
 
      esac
6692
 
      fi
6693
 
        ;;
6694
 
 
6695
 
  dgux*)
6696
 
    case $cc_basename in
6697
 
      ec++*)
6698
 
        # FIXME: insert proper C++ library support
6699
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6700
 
        ;;
6701
 
      ghcx*)
6702
 
        # Green Hills C++ Compiler
6703
 
        # FIXME: insert proper C++ library support
6704
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6705
 
        ;;
6706
 
      *)
6707
 
        # FIXME: insert proper C++ library support
6708
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6709
 
        ;;
6710
 
    esac
6711
 
    ;;
6712
 
  freebsd[[12]]*)
6713
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
6714
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6715
 
    ;;
6716
 
  freebsd-elf*)
6717
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6718
 
    ;;
6719
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
6720
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6721
 
    # conventions
6722
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6723
 
    ;;
6724
 
  gnu*)
6725
 
    ;;
6726
 
  hpux9*)
6727
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6728
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6729
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6730
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6731
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6732
 
                                # but as the default
6733
 
                                # location of the library.
6734
 
 
6735
 
    case $cc_basename in
6736
 
    CC*)
6737
 
      # FIXME: insert proper C++ library support
6738
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6739
 
      ;;
6740
 
    aCC*)
6741
 
      _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'
6742
 
      # Commands to make compiler produce verbose output that lists
6743
 
      # what "hidden" libraries, object files and flags are used when
6744
 
      # linking a shared library.
6745
 
      #
6746
 
      # There doesn't appear to be a way to prevent this compiler from
6747
 
      # explicitly linking system object files so we need to strip them
6748
 
      # from the output so that they don't get included in the library
6749
 
      # dependencies.
6750
 
      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'
6751
 
      ;;
6752
 
    *)
6753
 
      if test "$GXX" = yes; then
6754
 
        _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'
6755
 
      else
6756
 
        # FIXME: insert proper C++ library support
6757
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6758
 
      fi
6759
 
      ;;
6760
 
    esac
6761
 
    ;;
6762
 
  hpux10*|hpux11*)
6763
 
    if test $with_gnu_ld = no; then
6764
 
      case "$host_cpu" in
6765
 
      hppa*64*)
6766
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6767
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6768
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6769
 
        ;;
6770
 
      ia64*)
6771
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6772
 
        ;;
6773
 
      *)
6774
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6775
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6776
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6777
 
        ;;
6778
 
      esac
6779
 
    fi
6780
 
    case "$host_cpu" in
6781
 
    hppa*64*)
6782
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6783
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6784
 
      ;;
6785
 
    ia64*)
6786
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6787
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6788
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6789
 
                                              # but as the default
6790
 
                                              # location of the library.
6791
 
      ;;
6792
 
    *)
6793
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6794
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6795
 
                                              # but as the default
6796
 
                                              # location of the library.
6797
 
      ;;
6798
 
    esac
6799
 
 
6800
 
    case $cc_basename in
6801
 
      CC*)
6802
 
        # FIXME: insert proper C++ library support
6803
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6804
 
        ;;
6805
 
      aCC*)
6806
 
        case "$host_cpu" in
6807
 
        hppa*64*|ia64*)
6808
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
6809
 
          ;;
6810
 
        *)
6811
 
          _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'
6812
 
          ;;
6813
 
        esac
6814
 
        # Commands to make compiler produce verbose output that lists
6815
 
        # what "hidden" libraries, object files and flags are used when
6816
 
        # linking a shared library.
6817
 
        #
6818
 
        # There doesn't appear to be a way to prevent this compiler from
6819
 
        # explicitly linking system object files so we need to strip them
6820
 
        # from the output so that they don't get included in the library
6821
 
        # dependencies.
6822
 
        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'
6823
 
        ;;
6824
 
      *)
6825
 
        if test "$GXX" = yes; then
6826
 
          if test $with_gnu_ld = no; then
6827
 
            case "$host_cpu" in
6828
 
            ia64*|hppa*64*)
6829
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
6830
 
              ;;
6831
 
            *)
6832
 
              _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'
6833
 
              ;;
6834
 
            esac
6835
 
          fi
6836
 
        else
6837
 
          # FIXME: insert proper C++ library support
6838
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
6839
 
        fi
6840
 
        ;;
6841
 
    esac
6842
 
    ;;
6843
 
  irix5* | irix6*)
6844
 
    case $cc_basename in
6845
 
      CC*)
6846
 
        # SGI C++
6847
 
        _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'
6848
 
 
6849
 
        # Archives containing C++ object files must be created using
6850
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6851
 
        # necessary to make sure instantiated templates are included
6852
 
        # in the archive.
6853
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6854
 
        ;;
6855
 
      *)
6856
 
        if test "$GXX" = yes; then
6857
 
          if test "$with_gnu_ld" = no; then
6858
 
            _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'
6859
 
          else
6860
 
            _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'
6861
 
          fi
6862
 
        fi
6863
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6864
 
        ;;
6865
 
    esac
6866
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6867
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6868
 
    ;;
6869
 
  linux*)
6870
 
    case $cc_basename in
6871
 
      KCC*)
6872
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
6873
 
 
6874
 
        # KCC will only create a shared library if the output file
6875
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
6876
 
        # to its proper name (with version) after linking.
6877
 
        _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'
6878
 
        _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'
6879
 
        # Commands to make compiler produce verbose output that lists
6880
 
        # what "hidden" libraries, object files and flags are used when
6881
 
        # linking a shared library.
6882
 
        #
6883
 
        # There doesn't appear to be a way to prevent this compiler from
6884
 
        # explicitly linking system object files so we need to strip them
6885
 
        # from the output so that they don't get included in the library
6886
 
        # dependencies.
6887
 
        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'
6888
 
 
6889
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
6890
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6891
 
 
6892
 
        # Archives containing C++ object files must be created using
6893
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6894
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6895
 
        ;;
6896
 
      icpc*)
6897
 
        # Intel C++
6898
 
        with_gnu_ld=yes
6899
 
        # version 8.0 and above of icpc choke on multiply defined symbols
6900
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
6901
 
        # earlier do not add the objects themselves.
6902
 
        case `$CC -V 2>&1` in
6903
 
        *"Version 7."*)
6904
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6905
 
          _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'
6906
 
          ;;
6907
 
        *)  # Version 8.0 or newer
6908
 
          tmp_idyn=
6909
 
          case $host_cpu in
6910
 
            ia64*) tmp_idyn=' -i_dynamic';;
6911
 
          esac
6912
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6913
 
          _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'
6914
 
          ;;
6915
 
        esac
6916
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6917
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6918
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6919
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6920
 
        ;;
6921
 
      pgCC*)
6922
 
        # Portland Group C++ compiler
6923
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6924
 
        _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'
6925
 
 
6926
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6927
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6928
 
        _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'
6929
 
        ;;
6930
 
      cxx*)
6931
 
        # Compaq C++
6932
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6933
 
        _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'
6934
 
 
6935
 
        runpath_var=LD_RUN_PATH
6936
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6937
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6938
 
 
6939
 
        # Commands to make compiler produce verbose output that lists
6940
 
        # what "hidden" libraries, object files and flags are used when
6941
 
        # linking a shared library.
6942
 
        #
6943
 
        # There doesn't appear to be a way to prevent this compiler from
6944
 
        # explicitly linking system object files so we need to strip them
6945
 
        # from the output so that they don't get included in the library
6946
 
        # dependencies.
6947
 
        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'
6948
 
        ;;
6949
 
    esac
6950
 
    ;;
6951
 
  lynxos*)
6952
 
    # FIXME: insert proper C++ library support
6953
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6954
 
    ;;
6955
 
  m88k*)
6956
 
    # FIXME: insert proper C++ library support
6957
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6958
 
    ;;
6959
 
  mvs*)
6960
 
    case $cc_basename in
6961
 
      cxx*)
6962
 
        # FIXME: insert proper C++ library support
6963
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6964
 
        ;;
6965
 
      *)
6966
 
        # FIXME: insert proper C++ library support
6967
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6968
 
        ;;
6969
 
    esac
6970
 
    ;;
6971
 
  netbsd*)
6972
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6973
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6974
 
      wlarc=
6975
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6976
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6977
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6978
 
    fi
6979
 
    # Workaround some broken pre-1.5 toolchains
6980
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6981
 
    ;;
6982
 
  openbsd2*)
6983
 
    # C++ shared libraries are fairly broken
6984
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6985
 
    ;;
6986
 
  openbsd*)
6987
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6988
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6989
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6990
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6991
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6992
 
      _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'
6993
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6994
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6995
 
    fi
6996
 
    output_verbose_link_cmd='echo'
6997
 
    ;;
6998
 
  osf3*)
6999
 
    case $cc_basename in
7000
 
      KCC*)
7001
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
7002
 
 
7003
 
        # KCC will only create a shared library if the output file
7004
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
7005
 
        # to its proper name (with version) after linking.
7006
 
        _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'
7007
 
 
7008
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7009
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7010
 
 
7011
 
        # Archives containing C++ object files must be created using
7012
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7013
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
7014
 
 
7015
 
        ;;
7016
 
      RCC*)
7017
 
        # Rational C++ 2.4.1
7018
 
        # FIXME: insert proper C++ library support
7019
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7020
 
        ;;
7021
 
      cxx*)
7022
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7023
 
        _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'
7024
 
 
7025
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7026
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7027
 
 
7028
 
        # Commands to make compiler produce verbose output that lists
7029
 
        # what "hidden" libraries, object files and flags are used when
7030
 
        # linking a shared library.
7031
 
        #
7032
 
        # There doesn't appear to be a way to prevent this compiler from
7033
 
        # explicitly linking system object files so we need to strip them
7034
 
        # from the output so that they don't get included in the library
7035
 
        # dependencies.
7036
 
        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'
7037
 
        ;;
7038
 
      *)
7039
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7040
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7041
 
          _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'
7042
 
 
7043
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7044
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7045
 
 
7046
 
          # Commands to make compiler produce verbose output that lists
7047
 
          # what "hidden" libraries, object files and flags are used when
7048
 
          # linking a shared library.
7049
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
7050
 
 
7051
 
        else
7052
 
          # FIXME: insert proper C++ library support
7053
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
7054
 
        fi
7055
 
        ;;
7056
 
    esac
7057
 
    ;;
7058
 
  osf4* | osf5*)
7059
 
    case $cc_basename in
7060
 
      KCC*)
7061
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
7062
 
 
7063
 
        # KCC will only create a shared library if the output file
7064
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
7065
 
        # to its proper name (with version) after linking.
7066
 
        _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'
7067
 
 
7068
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7069
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7070
 
 
7071
 
        # Archives containing C++ object files must be created using
7072
 
        # the KAI C++ compiler.
7073
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
7074
 
        ;;
7075
 
      RCC*)
7076
 
        # Rational C++ 2.4.1
7077
 
        # FIXME: insert proper C++ library support
7078
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7079
 
        ;;
7080
 
      cxx*)
7081
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7082
 
        _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'
7083
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7084
 
          echo "-hidden">> $lib.exp~
7085
 
          $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~
7086
 
          $rm $lib.exp'
7087
 
 
7088
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7089
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7090
 
 
7091
 
        # Commands to make compiler produce verbose output that lists
7092
 
        # what "hidden" libraries, object files and flags are used when
7093
 
        # linking a shared library.
7094
 
        #
7095
 
        # There doesn't appear to be a way to prevent this compiler from
7096
 
        # explicitly linking system object files so we need to strip them
7097
 
        # from the output so that they don't get included in the library
7098
 
        # dependencies.
7099
 
        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'
7100
 
        ;;
7101
 
      *)
7102
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7103
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7104
 
         _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'
7105
 
 
7106
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7107
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7108
 
 
7109
 
          # Commands to make compiler produce verbose output that lists
7110
 
          # what "hidden" libraries, object files and flags are used when
7111
 
          # linking a shared library.
7112
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
7113
 
 
7114
 
        else
7115
 
          # FIXME: insert proper C++ library support
7116
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
7117
 
        fi
7118
 
        ;;
7119
 
    esac
7120
 
    ;;
7121
 
  psos*)
7122
 
    # FIXME: insert proper C++ library support
7123
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
7124
 
    ;;
7125
 
  sco*)
7126
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7127
 
    case $cc_basename in
7128
 
      CC*)
7129
 
        # FIXME: insert proper C++ library support
7130
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7131
 
        ;;
7132
 
      *)
7133
 
        # FIXME: insert proper C++ library support
7134
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7135
 
        ;;
7136
 
    esac
7137
 
    ;;
7138
 
  sunos4*)
7139
 
    case $cc_basename in
7140
 
      CC*)
7141
 
        # Sun C++ 4.x
7142
 
        # FIXME: insert proper C++ library support
7143
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7144
 
        ;;
7145
 
      lcc*)
7146
 
        # Lucid
7147
 
        # FIXME: insert proper C++ library support
7148
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7149
 
        ;;
7150
 
      *)
7151
 
        # FIXME: insert proper C++ library support
7152
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7153
 
        ;;
7154
 
    esac
7155
 
    ;;
7156
 
  solaris*)
7157
 
    case $cc_basename in
7158
 
      CC*)
7159
 
        # Sun C++ 4.2, 5.x and Centerline C++
7160
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7161
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7162
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7163
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7164
 
 
7165
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7166
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7167
 
        case $host_os in
7168
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7169
 
          *)
7170
 
            # The C++ compiler is used as linker so we must use $wl
7171
 
            # flag to pass the commands to the underlying system
7172
 
            # linker. We must also pass each convience library through
7173
 
            # to the system linker between allextract/defaultextract.
7174
 
            # The C++ compiler will combine linker options so we
7175
 
            # cannot just pass the convience library names through
7176
 
            # without $wl.
7177
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
7178
 
            _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'
7179
 
            ;;
7180
 
        esac
7181
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7182
 
 
7183
 
        # Commands to make compiler produce verbose output that lists
7184
 
        # what "hidden" libraries, object files and flags are used when
7185
 
        # linking a shared library.
7186
 
        #
7187
 
        # There doesn't appear to be a way to prevent this compiler from
7188
 
        # explicitly linking system object files so we need to strip them
7189
 
        # from the output so that they don't get included in the library
7190
 
        # dependencies.
7191
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7192
 
 
7193
 
        # Archives containing C++ object files must be created using
7194
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7195
 
        # necessary to make sure instantiated templates are included
7196
 
        # in the archive.
7197
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7198
 
        ;;
7199
 
      gcx*)
7200
 
        # Green Hills C++ Compiler
7201
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7202
 
 
7203
 
        # The C++ compiler must be used to create the archive.
7204
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7205
 
        ;;
7206
 
      *)
7207
 
        # GNU C++ compiler with Solaris linker
7208
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7209
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7210
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
7211
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7212
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7213
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7214
 
 
7215
 
            # Commands to make compiler produce verbose output that lists
7216
 
            # what "hidden" libraries, object files and flags are used when
7217
 
            # linking a shared library.
7218
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
7219
 
          else
7220
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
7221
 
            # platform.
7222
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7223
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7224
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7225
 
 
7226
 
            # Commands to make compiler produce verbose output that lists
7227
 
            # what "hidden" libraries, object files and flags are used when
7228
 
            # linking a shared library.
7229
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
7230
 
          fi
7231
 
 
7232
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7233
 
        fi
7234
 
        ;;
7235
 
    esac
7236
 
    ;;
7237
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
7238
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7239
 
    ;;
7240
 
  tandem*)
7241
 
    case $cc_basename in
7242
 
      NCC*)
7243
 
        # NonStop-UX NCC 3.20
7244
 
        # FIXME: insert proper C++ library support
7245
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7246
 
        ;;
7247
 
      *)
7248
 
        # FIXME: insert proper C++ library support
7249
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
7250
 
        ;;
7251
 
    esac
7252
 
    ;;
7253
 
  vxworks*)
7254
 
    # FIXME: insert proper C++ library support
7255
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
7256
 
    ;;
7257
 
  *)
7258
 
    # FIXME: insert proper C++ library support
7259
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
7260
 
    ;;
7261
 
esac
7262
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7263
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7264
 
 
7265
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
7266
 
_LT_AC_TAGVAR(LD, $1)="$LD"
7267
 
 
7268
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
7269
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
7270
 
AC_LIBTOOL_PROG_CC_C_O($1)
7271
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7272
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
7273
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7274
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7275
 
AC_LIBTOOL_SYS_LIB_STRIP
7276
 
AC_LIBTOOL_DLOPEN_SELF($1)
7277
 
 
7278
 
AC_LIBTOOL_CONFIG($1)
7279
 
 
7280
 
AC_LANG_POP
7281
 
CC=$lt_save_CC
7282
 
LDCXX=$LD
7283
 
LD=$lt_save_LD
7284
 
GCC=$lt_save_GCC
7285
 
with_gnu_ldcxx=$with_gnu_ld
7286
 
with_gnu_ld=$lt_save_with_gnu_ld
7287
 
lt_cv_path_LDCXX=$lt_cv_path_LD
7288
 
lt_cv_path_LD=$lt_save_path_LD
7289
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7290
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7291
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
7292
 
 
7293
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
7294
 
# ------------------------
7295
 
# Figure out "hidden" library dependencies from verbose
7296
 
# compiler output when linking a shared library.
7297
 
# Parse the compiler output and extract the necessary
7298
 
# objects, libraries and library flags.
7299
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
7300
 
dnl we can't use the lt_simple_compile_test_code here,
7301
 
dnl because it contains code intended for an executable,
7302
 
dnl not a library.  It's possible we should let each
7303
 
dnl tag define a new lt_????_link_test_code variable,
7304
 
dnl but it's only used here...
7305
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
7306
 
int a;
7307
 
void foo (void) { a = 0; }
7308
 
EOF
7309
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
7310
 
class Foo
7311
 
{
7312
 
public:
7313
 
  Foo (void) { a = 0; }
7314
 
private:
7315
 
  int a;
7316
 
};
7317
 
EOF
7318
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
7319
 
      subroutine foo
7320
 
      implicit none
7321
 
      integer*4 a
7322
 
      a=0
7323
 
      return
7324
 
      end
7325
 
EOF
7326
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
7327
 
public class foo {
7328
 
  private int a;
7329
 
  public void bar (void) {
7330
 
    a = 0;
7331
 
  }
7332
 
};
7333
 
EOF
7334
 
])
7335
 
dnl Parse the compiler output and extract the necessary
7336
 
dnl objects, libraries and library flags.
7337
 
if AC_TRY_EVAL(ac_compile); then
7338
 
  # Parse the compiler output and extract the necessary
7339
 
  # objects, libraries and library flags.
7340
 
 
7341
 
  # Sentinel used to keep track of whether or not we are before
7342
 
  # the conftest object file.
7343
 
  pre_test_object_deps_done=no
7344
 
 
7345
 
  # The `*' in the case matches for architectures that use `case' in
7346
 
  # $output_verbose_cmd can trigger glob expansion during the loop
7347
 
  # eval without this substitution.
7348
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
7349
 
 
7350
 
  for p in `eval $output_verbose_link_cmd`; do
7351
 
    case $p in
7352
 
 
7353
 
    -L* | -R* | -l*)
7354
 
       # Some compilers place space between "-{L,R}" and the path.
7355
 
       # Remove the space.
7356
 
       if test $p = "-L" \
7357
 
          || test $p = "-R"; then
7358
 
         prev=$p
7359
 
         continue
7360
 
       else
7361
 
         prev=
7362
 
       fi
7363
 
 
7364
 
       if test "$pre_test_object_deps_done" = no; then
7365
 
         case $p in
7366
 
         -L* | -R*)
7367
 
           # Internal compiler library paths should come after those
7368
 
           # provided the user.  The postdeps already come after the
7369
 
           # user supplied libs so there is no need to process them.
7370
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
7371
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7372
 
           else
7373
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7374
 
           fi
7375
 
           ;;
7376
 
         # The "-l" case would never come before the object being
7377
 
         # linked, so don't bother handling this case.
7378
 
         esac
7379
 
       else
7380
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
7381
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
7382
 
         else
7383
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
7384
 
         fi
7385
 
       fi
7386
 
       ;;
7387
 
 
7388
 
    *.$objext)
7389
 
       # This assumes that the test object file only shows up
7390
 
       # once in the compiler output.
7391
 
       if test "$p" = "conftest.$objext"; then
7392
 
         pre_test_object_deps_done=yes
7393
 
         continue
7394
 
       fi
7395
 
 
7396
 
       if test "$pre_test_object_deps_done" = no; then
7397
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
7398
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
7399
 
         else
7400
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
7401
 
         fi
7402
 
       else
7403
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
7404
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
7405
 
         else
7406
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
7407
 
         fi
7408
 
       fi
7409
 
       ;;
7410
 
 
7411
 
    *) ;; # Ignore the rest.
7412
 
 
7413
 
    esac
7414
 
  done
7415
 
 
7416
 
  # Clean up.
7417
 
  rm -f a.out a.exe
7418
 
else
7419
 
  echo "libtool.m4: error: problem compiling $1 test program"
7420
 
fi
7421
 
 
7422
 
$rm -f confest.$objext
7423
 
 
7424
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
7425
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7426
 
esac
7427
 
])# AC_LIBTOOL_POSTDEP_PREDEP
7428
 
 
7429
 
# AC_LIBTOOL_LANG_F77_CONFIG
7430
 
# ------------------------
7431
 
# Ensure that the configuration vars for the C compiler are
7432
 
# suitably defined.  Those variables are subsequently used by
7433
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7434
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
7435
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
7436
 
[AC_REQUIRE([AC_PROG_F77])
7437
 
AC_LANG_PUSH(Fortran 77)
7438
 
 
7439
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7440
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7441
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
7442
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7443
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7444
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7445
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7446
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7447
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7448
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7449
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7450
 
_LT_AC_TAGVAR(module_cmds, $1)=
7451
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7452
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7453
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7454
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
7455
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7456
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7457
 
 
7458
 
# Source file extension for f77 test sources.
7459
 
ac_ext=f
7460
 
 
7461
 
# Object file extension for compiled f77 test sources.
7462
 
objext=o
7463
 
_LT_AC_TAGVAR(objext, $1)=$objext
7464
 
 
7465
 
# Code to be used in simple compile tests
7466
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
7467
 
 
7468
 
# Code to be used in simple link tests
7469
 
lt_simple_link_test_code="      program t\n      end\n"
7470
 
 
7471
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7472
 
_LT_AC_SYS_COMPILER
7473
 
 
7474
 
# save warnings/boilerplate of simple test code
7475
 
_LT_COMPILER_BOILERPLATE
7476
 
_LT_LINKER_BOILERPLATE
7477
 
 
7478
 
# Allow CC to be a program name with arguments.
7479
 
lt_save_CC="$CC"
7480
 
CC=${F77-"f77"}
7481
 
compiler=$CC
7482
 
_LT_AC_TAGVAR(compiler, $1)=$CC
7483
 
_LT_CC_BASENAME([$compiler])
7484
 
 
7485
 
AC_MSG_CHECKING([if libtool supports shared libraries])
7486
 
AC_MSG_RESULT([$can_build_shared])
7487
 
 
7488
 
AC_MSG_CHECKING([whether to build shared libraries])
7489
 
test "$can_build_shared" = "no" && enable_shared=no
7490
 
 
7491
 
# On AIX, shared libraries and static libraries use the same namespace, and
7492
 
# are all built from PIC.
7493
 
case "$host_os" in
7494
 
aix3*)
7495
 
  test "$enable_shared" = yes && enable_static=no
7496
 
  if test -n "$RANLIB"; then
7497
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
7498
 
    postinstall_cmds='$RANLIB $lib'
7499
 
  fi
7500
 
  ;;
7501
 
aix4* | aix5*)
7502
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7503
 
    test "$enable_shared" = yes && enable_static=no
7504
 
  fi
7505
 
  ;;
7506
 
esac
7507
 
AC_MSG_RESULT([$enable_shared])
7508
 
 
7509
 
AC_MSG_CHECKING([whether to build static libraries])
7510
 
# Make sure either enable_shared or enable_static is yes.
7511
 
test "$enable_shared" = yes || enable_static=yes
7512
 
AC_MSG_RESULT([$enable_static])
7513
 
 
7514
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7515
 
 
7516
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
7517
 
_LT_AC_TAGVAR(LD, $1)="$LD"
7518
 
 
7519
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
7520
 
AC_LIBTOOL_PROG_CC_C_O($1)
7521
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7522
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
7523
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7524
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7525
 
AC_LIBTOOL_SYS_LIB_STRIP
7526
 
 
7527
 
 
7528
 
AC_LIBTOOL_CONFIG($1)
7529
 
 
7530
 
AC_LANG_POP
7531
 
CC="$lt_save_CC"
7532
 
])# AC_LIBTOOL_LANG_F77_CONFIG
7533
 
 
7534
 
 
7535
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
7536
 
# --------------------------
7537
 
# Ensure that the configuration vars for the C compiler are
7538
 
# suitably defined.  Those variables are subsequently used by
7539
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7540
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
7541
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
7542
 
[AC_LANG_SAVE
7543
 
 
7544
 
# Source file extension for Java test sources.
7545
 
ac_ext=java
7546
 
 
7547
 
# Object file extension for compiled Java test sources.
7548
 
objext=o
7549
 
_LT_AC_TAGVAR(objext, $1)=$objext
7550
 
 
7551
 
# Code to be used in simple compile tests
7552
 
lt_simple_compile_test_code="class foo {}\n"
7553
 
 
7554
 
# Code to be used in simple link tests
7555
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
7556
 
 
7557
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7558
 
_LT_AC_SYS_COMPILER
7559
 
 
7560
 
# save warnings/boilerplate of simple test code
7561
 
_LT_COMPILER_BOILERPLATE
7562
 
_LT_LINKER_BOILERPLATE
7563
 
 
7564
 
# Allow CC to be a program name with arguments.
7565
 
lt_save_CC="$CC"
7566
 
CC=${GCJ-"gcj"}
7567
 
compiler=$CC
7568
 
_LT_AC_TAGVAR(compiler, $1)=$CC
7569
 
_LT_CC_BASENAME([$compiler])
7570
 
 
7571
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7572
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7573
 
 
7574
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7575
 
 
7576
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7577
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
7578
 
AC_LIBTOOL_PROG_CC_C_O($1)
7579
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7580
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
7581
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7582
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7583
 
AC_LIBTOOL_SYS_LIB_STRIP
7584
 
AC_LIBTOOL_DLOPEN_SELF($1)
7585
 
 
7586
 
AC_LIBTOOL_CONFIG($1)
7587
 
 
7588
 
AC_LANG_RESTORE
7589
 
CC="$lt_save_CC"
7590
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
7591
 
 
7592
 
 
7593
 
# AC_LIBTOOL_LANG_RC_CONFIG
7594
 
# --------------------------
7595
 
# Ensure that the configuration vars for the Windows resource compiler are
7596
 
# suitably defined.  Those variables are subsequently used by
7597
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7598
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7599
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7600
 
[AC_LANG_SAVE
7601
 
 
7602
 
# Source file extension for RC test sources.
7603
 
ac_ext=rc
7604
 
 
7605
 
# Object file extension for compiled RC test sources.
7606
 
objext=o
7607
 
_LT_AC_TAGVAR(objext, $1)=$objext
7608
 
 
7609
 
# Code to be used in simple compile tests
7610
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
7611
 
 
7612
 
# Code to be used in simple link tests
7613
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
7614
 
 
7615
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7616
 
_LT_AC_SYS_COMPILER
7617
 
 
7618
 
# save warnings/boilerplate of simple test code
7619
 
_LT_COMPILER_BOILERPLATE
7620
 
_LT_LINKER_BOILERPLATE
7621
 
 
7622
 
# Allow CC to be a program name with arguments.
7623
 
lt_save_CC="$CC"
7624
 
CC=${RC-"windres"}
7625
 
compiler=$CC
7626
 
_LT_AC_TAGVAR(compiler, $1)=$CC
7627
 
_LT_CC_BASENAME([$compiler])
7628
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7629
 
 
7630
 
AC_LIBTOOL_CONFIG($1)
7631
 
 
7632
 
AC_LANG_RESTORE
7633
 
CC="$lt_save_CC"
7634
 
])# AC_LIBTOOL_LANG_RC_CONFIG
7635
 
 
7636
 
 
7637
 
# AC_LIBTOOL_CONFIG([TAGNAME])
7638
 
# ----------------------------
7639
 
# If TAGNAME is not passed, then create an initial libtool script
7640
 
# with a default configuration from the untagged config vars.  Otherwise
7641
 
# add code to config.status for appending the configuration named by
7642
 
# TAGNAME from the matching tagged config vars.
7643
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
7644
 
[# The else clause should only fire when bootstrapping the
7645
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
7646
 
# with your package, and you will get complaints that there are
7647
 
# no rules to generate ltmain.sh.
7648
 
if test -f "$ltmain"; then
7649
 
  # See if we are running on zsh, and set the options which allow our commands through
7650
 
  # without removal of \ escapes.
7651
 
  if test -n "${ZSH_VERSION+set}" ; then
7652
 
    setopt NO_GLOB_SUBST
7653
 
  fi
7654
 
  # Now quote all the things that may contain metacharacters while being
7655
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7656
 
  # variables and quote the copies for generation of the libtool script.
7657
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
7658
 
    SED SHELL STRIP \
7659
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7660
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7661
 
    deplibs_check_method reload_flag reload_cmds need_locks \
7662
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7663
 
    lt_cv_sys_global_symbol_to_c_name_address \
7664
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7665
 
    old_postinstall_cmds old_postuninstall_cmds \
7666
 
    _LT_AC_TAGVAR(compiler, $1) \
7667
 
    _LT_AC_TAGVAR(CC, $1) \
7668
 
    _LT_AC_TAGVAR(LD, $1) \
7669
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
7670
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
7671
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
7672
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
7673
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
7674
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
7675
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
7676
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
7677
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
7678
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
7679
 
    _LT_AC_TAGVAR(predep_objects, $1) \
7680
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
7681
 
    _LT_AC_TAGVAR(predeps, $1) \
7682
 
    _LT_AC_TAGVAR(postdeps, $1) \
7683
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
7684
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
7685
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
7686
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
7687
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
7688
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
7689
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
7690
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
7691
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
7692
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
7693
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
7694
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
7695
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
7696
 
    _LT_AC_TAGVAR(module_cmds, $1) \
7697
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
7698
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
7699
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
7700
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
7701
 
 
7702
 
    case $var in
7703
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
7704
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
7705
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
7706
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
7707
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
7708
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
7709
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
7710
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
7711
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
7712
 
    postinstall_cmds | postuninstall_cmds | \
7713
 
    old_postinstall_cmds | old_postuninstall_cmds | \
7714
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7715
 
      # Double-quote double-evaled strings.
7716
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7717
 
      ;;
7718
 
    *)
7719
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7720
 
      ;;
7721
 
    esac
7722
 
  done
7723
 
 
7724
 
  case $lt_echo in
7725
 
  *'\[$]0 --fallback-echo"')
7726
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
7727
 
    ;;
7728
 
  esac
7729
 
 
7730
 
ifelse([$1], [],
7731
 
  [cfgfile="${ofile}T"
7732
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
7733
 
  $rm -f "$cfgfile"
7734
 
  AC_MSG_NOTICE([creating $ofile])],
7735
 
  [cfgfile="$ofile"])
7736
 
 
7737
 
  cat <<__EOF__ >> "$cfgfile"
7738
 
ifelse([$1], [],
7739
 
[#! $SHELL
7740
 
 
7741
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7742
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7743
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7744
 
#
7745
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
7746
 
# Free Software Foundation, Inc.
7747
 
#
7748
 
# This file is part of GNU Libtool:
7749
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7750
 
#
7751
 
# This program is free software; you can redistribute it and/or modify
7752
 
# it under the terms of the GNU General Public License as published by
7753
 
# the Free Software Foundation; either version 2 of the License, or
7754
 
# (at your option) any later version.
7755
 
#
7756
 
# This program is distributed in the hope that it will be useful, but
7757
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
7758
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7759
 
# General Public License for more details.
7760
 
#
7761
 
# You should have received a copy of the GNU General Public License
7762
 
# along with this program; if not, write to the Free Software
7763
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7764
 
#
7765
 
# As a special exception to the GNU General Public License, if you
7766
 
# distribute this file as part of a program that contains a
7767
 
# configuration script generated by Autoconf, you may include it under
7768
 
# the same distribution terms that you use for the rest of that program.
7769
 
 
7770
 
# A sed program that does not truncate output.
7771
 
SED=$lt_SED
7772
 
 
7773
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7774
 
Xsed="$SED -e 1s/^X//"
7775
 
 
7776
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
7777
 
# if CDPATH is set.
7778
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7779
 
 
7780
 
# The names of the tagged configurations supported by this script.
7781
 
available_tags=
7782
 
 
7783
 
# ### BEGIN LIBTOOL CONFIG],
7784
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
7785
 
 
7786
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7787
 
 
7788
 
# Shell to use when invoking shell scripts.
7789
 
SHELL=$lt_SHELL
7790
 
 
7791
 
# Whether or not to build shared libraries.
7792
 
build_libtool_libs=$enable_shared
7793
 
 
7794
 
# Whether or not to build static libraries.
7795
 
build_old_libs=$enable_static
7796
 
 
7797
 
# Whether or not to add -lc for building shared libraries.
7798
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
7799
 
 
7800
 
# Whether or not to disallow shared libs when runtime libs are static
7801
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
7802
 
 
7803
 
# Whether or not to optimize for fast installation.
7804
 
fast_install=$enable_fast_install
7805
 
 
7806
 
# The host system.
7807
 
host_alias=$host_alias
7808
 
host=$host
7809
 
host_os=$host_os
7810
 
 
7811
 
# The build system.
7812
 
build_alias=$build_alias
7813
 
build=$build
7814
 
build_os=$build_os
7815
 
 
7816
 
# An echo program that does not interpret backslashes.
7817
 
echo=$lt_echo
7818
 
 
7819
 
# The archiver.
7820
 
AR=$lt_AR
7821
 
AR_FLAGS=$lt_AR_FLAGS
7822
 
 
7823
 
# A C compiler.
7824
 
LTCC=$lt_LTCC
7825
 
 
7826
 
# A language-specific compiler.
7827
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
7828
 
 
7829
 
# Is the compiler the GNU C compiler?
7830
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
7831
 
 
7832
 
# An ERE matcher.
7833
 
EGREP=$lt_EGREP
7834
 
 
7835
 
# The linker used to build libraries.
7836
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
7837
 
 
7838
 
# Whether we need hard or soft links.
7839
 
LN_S=$lt_LN_S
7840
 
 
7841
 
# A BSD-compatible nm program.
7842
 
NM=$lt_NM
7843
 
 
7844
 
# A symbol stripping program
7845
 
STRIP=$lt_STRIP
7846
 
 
7847
 
# Used to examine libraries when file_magic_cmd begins "file"
7848
 
MAGIC_CMD=$MAGIC_CMD
7849
 
 
7850
 
# Used on cygwin: DLL creation program.
7851
 
DLLTOOL="$DLLTOOL"
7852
 
 
7853
 
# Used on cygwin: object dumper.
7854
 
OBJDUMP="$OBJDUMP"
7855
 
 
7856
 
# Used on cygwin: assembler.
7857
 
AS="$AS"
7858
 
 
7859
 
# The name of the directory that contains temporary libtool files.
7860
 
objdir=$objdir
7861
 
 
7862
 
# How to create reloadable object files.
7863
 
reload_flag=$lt_reload_flag
7864
 
reload_cmds=$lt_reload_cmds
7865
 
 
7866
 
# How to pass a linker flag through the compiler.
7867
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7868
 
 
7869
 
# Object file suffix (normally "o").
7870
 
objext="$ac_objext"
7871
 
 
7872
 
# Old archive suffix (normally "a").
7873
 
libext="$libext"
7874
 
 
7875
 
# Shared library suffix (normally ".so").
7876
 
shrext_cmds='$shrext_cmds'
7877
 
 
7878
 
# Executable file suffix (normally "").
7879
 
exeext="$exeext"
7880
 
 
7881
 
# Additional compiler flags for building library objects.
7882
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7883
 
pic_mode=$pic_mode
7884
 
 
7885
 
# What is the maximum length of a command?
7886
 
max_cmd_len=$lt_cv_sys_max_cmd_len
7887
 
 
7888
 
# Does compiler simultaneously support -c and -o options?
7889
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
7890
 
 
7891
 
# Must we lock files when doing compilation?
7892
 
need_locks=$lt_need_locks
7893
 
 
7894
 
# Do we need the lib prefix for modules?
7895
 
need_lib_prefix=$need_lib_prefix
7896
 
 
7897
 
# Do we need a version for libraries?
7898
 
need_version=$need_version
7899
 
 
7900
 
# Whether dlopen is supported.
7901
 
dlopen_support=$enable_dlopen
7902
 
 
7903
 
# Whether dlopen of programs is supported.
7904
 
dlopen_self=$enable_dlopen_self
7905
 
 
7906
 
# Whether dlopen of statically linked programs is supported.
7907
 
dlopen_self_static=$enable_dlopen_self_static
7908
 
 
7909
 
# Compiler flag to prevent dynamic linking.
7910
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
7911
 
 
7912
 
# Compiler flag to turn off builtin functions.
7913
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
7914
 
 
7915
 
# Compiler flag to allow reflexive dlopens.
7916
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
7917
 
 
7918
 
# Compiler flag to generate shared objects directly from archives.
7919
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
7920
 
 
7921
 
# Compiler flag to generate thread-safe objects.
7922
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
7923
 
 
7924
 
# Library versioning type.
7925
 
version_type=$version_type
7926
 
 
7927
 
# Format of library name prefix.
7928
 
libname_spec=$lt_libname_spec
7929
 
 
7930
 
# List of archive names.  First name is the real one, the rest are links.
7931
 
# The last name is the one that the linker finds with -lNAME.
7932
 
library_names_spec=$lt_library_names_spec
7933
 
 
7934
 
# The coded name of the library, if different from the real name.
7935
 
soname_spec=$lt_soname_spec
7936
 
 
7937
 
# Commands used to build and install an old-style archive.
7938
 
RANLIB=$lt_RANLIB
7939
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
7940
 
old_postinstall_cmds=$lt_old_postinstall_cmds
7941
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7942
 
 
7943
 
# Create an old-style archive from a shared archive.
7944
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
7945
 
 
7946
 
# Create a temporary old-style archive to link instead of a shared archive.
7947
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
7948
 
 
7949
 
# Commands used to build and install a shared archive.
7950
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
7951
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
7952
 
postinstall_cmds=$lt_postinstall_cmds
7953
 
postuninstall_cmds=$lt_postuninstall_cmds
7954
 
 
7955
 
# Commands used to build a loadable module (assumed same as above if empty)
7956
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
7957
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
7958
 
 
7959
 
# Commands to strip libraries.
7960
 
old_striplib=$lt_old_striplib
7961
 
striplib=$lt_striplib
7962
 
 
7963
 
# Dependencies to place before the objects being linked to create a
7964
 
# shared library.
7965
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
7966
 
 
7967
 
# Dependencies to place after the objects being linked to create a
7968
 
# shared library.
7969
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
7970
 
 
7971
 
# Dependencies to place before the objects being linked to create a
7972
 
# shared library.
7973
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
7974
 
 
7975
 
# Dependencies to place after the objects being linked to create a
7976
 
# shared library.
7977
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
7978
 
 
7979
 
# The library search path used internally by the compiler when linking
7980
 
# a shared library.
7981
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
7982
 
 
7983
 
# Method to check whether dependent libraries are shared objects.
7984
 
deplibs_check_method=$lt_deplibs_check_method
7985
 
 
7986
 
# Command to use when deplibs_check_method == file_magic.
7987
 
file_magic_cmd=$lt_file_magic_cmd
7988
 
 
7989
 
# Flag that allows shared libraries with undefined symbols to be built.
7990
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
7991
 
 
7992
 
# Flag that forces no undefined symbols.
7993
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
7994
 
 
7995
 
# Commands used to finish a libtool library installation in a directory.
7996
 
finish_cmds=$lt_finish_cmds
7997
 
 
7998
 
# Same as above, but a single script fragment to be evaled but not shown.
7999
 
finish_eval=$lt_finish_eval
8000
 
 
8001
 
# Take the output of nm and produce a listing of raw symbols and C names.
8002
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8003
 
 
8004
 
# Transform the output of nm in a proper C declaration
8005
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8006
 
 
8007
 
# Transform the output of nm in a C name address pair
8008
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8009
 
 
8010
 
# This is the shared library runtime path variable.
8011
 
runpath_var=$runpath_var
8012
 
 
8013
 
# This is the shared library path variable.
8014
 
shlibpath_var=$shlibpath_var
8015
 
 
8016
 
# Is shlibpath searched before the hard-coded library search path?
8017
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8018
 
 
8019
 
# How to hardcode a shared library path into an executable.
8020
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
8021
 
 
8022
 
# Whether we should hardcode library paths into libraries.
8023
 
hardcode_into_libs=$hardcode_into_libs
8024
 
 
8025
 
# Flag to hardcode \$libdir into a binary during linking.
8026
 
# This must work even if \$libdir does not exist.
8027
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
8028
 
 
8029
 
# If ld is used when linking, flag to hardcode \$libdir into
8030
 
# a binary during linking. This must work even if \$libdir does
8031
 
# not exist.
8032
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
8033
 
 
8034
 
# Whether we need a single -rpath flag with a separated argument.
8035
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
8036
 
 
8037
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8038
 
# resulting binary.
8039
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
8040
 
 
8041
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8042
 
# resulting binary.
8043
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
8044
 
 
8045
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8046
 
# the resulting binary.
8047
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
8048
 
 
8049
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
8050
 
# and all subsequent libraries and executables linked against it.
8051
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
8052
 
 
8053
 
# Variables whose values should be saved in libtool wrapper scripts and
8054
 
# restored at relink time.
8055
 
variables_saved_for_relink="$variables_saved_for_relink"
8056
 
 
8057
 
# Whether libtool must link a program against all its dependency libraries.
8058
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
8059
 
 
8060
 
# Compile-time system search path for libraries
8061
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8062
 
 
8063
 
# Run-time system search path for libraries
8064
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8065
 
 
8066
 
# Fix the shell variable \$srcfile for the compiler.
8067
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
8068
 
 
8069
 
# Set to yes if exported symbols are required.
8070
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
8071
 
 
8072
 
# The commands to list exported symbols.
8073
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
8074
 
 
8075
 
# The commands to extract the exported symbol list from a shared archive.
8076
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
8077
 
 
8078
 
# Symbols that should not be listed in the preloaded symbols.
8079
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
8080
 
 
8081
 
# Symbols that must always be exported.
8082
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
8083
 
 
8084
 
ifelse([$1],[],
8085
 
[# ### END LIBTOOL CONFIG],
8086
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
8087
 
 
8088
 
__EOF__
8089
 
 
8090
 
ifelse([$1],[], [
8091
 
  case $host_os in
8092
 
  aix3*)
8093
 
    cat <<\EOF >> "$cfgfile"
8094
 
 
8095
 
# AIX sometimes has problems with the GCC collect2 program.  For some
8096
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
8097
 
# vanish in a puff of smoke.
8098
 
if test "X${COLLECT_NAMES+set}" != Xset; then
8099
 
  COLLECT_NAMES=
8100
 
  export COLLECT_NAMES
8101
 
fi
8102
 
EOF
8103
 
    ;;
8104
 
  esac
8105
 
 
8106
 
  # We use sed instead of cat because bash on DJGPP gets confused if
8107
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8108
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
8109
 
  # is reportedly fixed, but why not run on old versions too?
8110
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8111
 
 
8112
 
  mv -f "$cfgfile" "$ofile" || \
8113
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8114
 
  chmod +x "$ofile"
8115
 
])
8116
 
else
8117
 
  # If there is no Makefile yet, we rely on a make rule to execute
8118
 
  # `config.status --recheck' to rerun these tests and create the
8119
 
  # libtool script then.
8120
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8121
 
  if test -f "$ltmain_in"; then
8122
 
    test -f Makefile && make "$ltmain"
8123
 
  fi
8124
 
fi
8125
 
])# AC_LIBTOOL_CONFIG
8126
 
 
8127
 
 
8128
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
8129
 
# -------------------------------------------
8130
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
8131
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
8132
 
 
8133
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
4855
AC_SUBST([LIBM])
 
4856
])# LT_LIB_M
 
4857
 
 
4858
# Old name:
 
4859
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
4860
dnl aclocal-1.4 backwards compatibility:
 
4861
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
4862
 
 
4863
 
 
4864
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
4865
# -------------------------------
 
4866
m4_defun([_LT_COMPILER_NO_RTTI],
 
4867
[m4_require([_LT_TAG_COMPILER])dnl
 
4868
 
 
4869
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8134
4870
 
8135
4871
if test "$GCC" = yes; then
8136
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
4872
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8137
4873
 
8138
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
4874
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
8139
4875
    lt_cv_prog_compiler_rtti_exceptions,
8140
4876
    [-fno-rtti -fno-exceptions], [],
8141
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
4877
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
8142
4878
fi
8143
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
8144
 
 
8145
 
 
8146
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
8147
 
# ---------------------------------
8148
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
8149
 
[AC_REQUIRE([AC_CANONICAL_HOST])
8150
 
AC_REQUIRE([AC_PROG_NM])
8151
 
AC_REQUIRE([AC_OBJEXT])
 
4879
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
4880
        [Compiler flag to turn off builtin functions])
 
4881
])# _LT_COMPILER_NO_RTTI
 
4882
 
 
4883
 
 
4884
# _LT_CMD_GLOBAL_SYMBOLS
 
4885
# ----------------------
 
4886
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
4887
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
4888
AC_REQUIRE([AC_PROG_CC])dnl
 
4889
AC_REQUIRE([LT_PATH_NM])dnl
 
4890
AC_REQUIRE([LT_PATH_LD])dnl
 
4891
m4_require([_LT_DECL_SED])dnl
 
4892
m4_require([_LT_DECL_EGREP])dnl
 
4893
m4_require([_LT_TAG_COMPILER])dnl
 
4894
 
8152
4895
# Check for command to grab the raw symbol name followed by C symbol from nm.
8153
4896
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
8154
4897
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
8162
4905
# Regexp to match symbols that can be accessed directly from C.
8163
4906
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
8164
4907
 
8165
 
# Transform an extracted symbol line into a proper C declaration
8166
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8167
 
 
8168
 
# Transform an extracted symbol line into symbol name and symbol address
8169
 
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'"
8170
 
 
8171
4908
# Define system-specific variables.
8172
4909
case $host_os in
8173
4910
aix*)
8174
4911
  symcode='[[BCDT]]'
8175
4912
  ;;
8176
 
cygwin* | mingw* | pw32*)
 
4913
cygwin* | mingw* | pw32* | cegcc*)
8177
4914
  symcode='[[ABCDGISTW]]'
8178
4915
  ;;
8179
 
hpux*) # Its linker distinguishes data from code symbols
 
4916
hpux*)
8180
4917
  if test "$host_cpu" = ia64; then
8181
4918
    symcode='[[ABCDEGRST]]'
8182
4919
  fi
8183
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8184
 
  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'"
8185
 
  ;;
8186
 
linux*)
8187
 
  if test "$host_cpu" = ia64; then
8188
 
    symcode='[[ABCDGIRSTW]]'
8189
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8190
 
    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'"
8191
 
  fi
8192
4920
  ;;
8193
4921
irix* | nonstopux*)
8194
4922
  symcode='[[BCDEGRST]]'
8196
4924
osf*)
8197
4925
  symcode='[[BCDEGQRST]]'
8198
4926
  ;;
8199
 
solaris* | sysv5*)
 
4927
solaris*)
8200
4928
  symcode='[[BDRT]]'
8201
4929
  ;;
 
4930
sco3.2v5*)
 
4931
  symcode='[[DT]]'
 
4932
  ;;
 
4933
sysv4.2uw2*)
 
4934
  symcode='[[DT]]'
 
4935
  ;;
 
4936
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4937
  symcode='[[ABDT]]'
 
4938
  ;;
8202
4939
sysv4)
8203
4940
  symcode='[[DFNSTU]]'
8204
4941
  ;;
8205
4942
esac
8206
4943
 
 
4944
# If we're using GNU nm, then use its standard symbol codes.
 
4945
case `$NM -V 2>&1` in
 
4946
*GNU* | *'with BFD'*)
 
4947
  symcode='[[ABCDGIRSTW]]' ;;
 
4948
esac
 
4949
 
 
4950
# Transform an extracted symbol line into a proper C declaration.
 
4951
# Some systems (esp. on ia64) link data and code symbols differently,
 
4952
# so use this general approach.
 
4953
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4954
 
 
4955
# Transform an extracted symbol line into symbol name and symbol address
 
4956
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
4957
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'"
 
4958
 
8207
4959
# Handle CRLF in mingw tool chain
8208
4960
opt_cr=
8209
4961
case $build_os in
8210
4962
mingw*)
8211
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4963
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8212
4964
  ;;
8213
4965
esac
8214
4966
 
8215
 
# If we're using GNU nm, then use its standard symbol codes.
8216
 
case `$NM -V 2>&1` in
8217
 
*GNU* | *'with BFD'*)
8218
 
  symcode='[[ABCDGIRSTW]]' ;;
8219
 
esac
8220
 
 
8221
 
# Try without a prefix undercore, then with it.
 
4967
# Try without a prefix underscore, then with it.
8222
4968
for ac_symprfx in "" "_"; do
8223
4969
 
8224
4970
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8225
4971
  symxfrm="\\1 $ac_symprfx\\2 \\2"
8226
4972
 
8227
4973
  # Write the raw and C identifiers.
8228
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4974
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
4975
    # Fake it for dumpbin and say T for any non-static function
 
4976
    # and D for any global variable.
 
4977
    # Also find C++ and __fastcall symbols from MSVC++,
 
4978
    # which start with @ or ?.
 
4979
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
4980
"     {last_section=section; section=\$ 3};"\
 
4981
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
4982
"     \$ 0!~/External *\|/{next};"\
 
4983
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
4984
"     {if(hide[section]) next};"\
 
4985
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
4986
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
4987
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
4988
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
4989
"     ' prfx=^$ac_symprfx]"
 
4990
  else
 
4991
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4992
  fi
8229
4993
 
8230
4994
  # Check to see that the pipe works correctly.
8231
4995
  pipe_works=no
8232
4996
 
8233
4997
  rm -f conftest*
8234
 
  cat > conftest.$ac_ext <<EOF
 
4998
  cat > conftest.$ac_ext <<_LT_EOF
8235
4999
#ifdef __cplusplus
8236
5000
extern "C" {
8237
5001
#endif
8238
5002
char nm_test_var;
8239
 
void nm_test_func(){}
 
5003
void nm_test_func(void);
 
5004
void nm_test_func(void){}
8240
5005
#ifdef __cplusplus
8241
5006
}
8242
5007
#endif
8243
5008
int main(){nm_test_var='a';nm_test_func();return(0);}
8244
 
EOF
 
5009
_LT_EOF
8245
5010
 
8246
5011
  if AC_TRY_EVAL(ac_compile); then
8247
5012
    # Now try to grab the symbols.
8255
5020
      fi
8256
5021
 
8257
5022
      # Make sure that we snagged all the symbols we need.
8258
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8259
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8260
 
          cat <<EOF > conftest.$ac_ext
 
5023
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5024
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5025
          cat <<_LT_EOF > conftest.$ac_ext
8261
5026
#ifdef __cplusplus
8262
5027
extern "C" {
8263
5028
#endif
8264
5029
 
8265
 
EOF
 
5030
_LT_EOF
8266
5031
          # Now generate the symbol file.
8267
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8268
 
 
8269
 
          cat <<EOF >> conftest.$ac_ext
8270
 
#if defined (__STDC__) && __STDC__
8271
 
# define lt_ptr_t void *
8272
 
#else
8273
 
# define lt_ptr_t char *
8274
 
# define const
8275
 
#endif
8276
 
 
8277
 
/* The mapping between symbol names and symbols. */
 
5032
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5033
 
 
5034
          cat <<_LT_EOF >> conftest.$ac_ext
 
5035
 
 
5036
/* The mapping between symbol names and symbols.  */
8278
5037
const struct {
8279
5038
  const char *name;
8280
 
  lt_ptr_t address;
 
5039
  void       *address;
8281
5040
}
8282
 
lt_preloaded_symbols[[]] =
 
5041
lt__PROGRAM__LTX_preloaded_symbols[[]] =
8283
5042
{
8284
 
EOF
8285
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8286
 
          cat <<\EOF >> conftest.$ac_ext
8287
 
  {0, (lt_ptr_t) 0}
 
5043
  { "@PROGRAM@", (void *) 0 },
 
5044
_LT_EOF
 
5045
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5046
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5047
  {0, (void *) 0}
8288
5048
};
8289
5049
 
 
5050
/* This works around a problem in FreeBSD linker */
 
5051
#ifdef FREEBSD_WORKAROUND
 
5052
static const void *lt_preloaded_setup() {
 
5053
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5054
}
 
5055
#endif
 
5056
 
8290
5057
#ifdef __cplusplus
8291
5058
}
8292
5059
#endif
8293
 
EOF
 
5060
_LT_EOF
8294
5061
          # Now try linking the two files.
8295
5062
          mv conftest.$ac_objext conftstm.$ac_objext
8296
5063
          lt_save_LIBS="$LIBS"
8297
5064
          lt_save_CFLAGS="$CFLAGS"
8298
5065
          LIBS="conftstm.$ac_objext"
8299
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
5066
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
8300
5067
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
8301
5068
            pipe_works=yes
8302
5069
          fi
8315
5082
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
8316
5083
    cat conftest.$ac_ext >&5
8317
5084
  fi
8318
 
  rm -f conftest* conftst*
 
5085
  rm -rf conftest* conftst*
8319
5086
 
8320
5087
  # Do not use the global_symbol_pipe unless it works.
8321
5088
  if test "$pipe_works" = yes; then
8333
5100
else
8334
5101
  AC_MSG_RESULT(ok)
8335
5102
fi
8336
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
8337
 
 
8338
 
 
8339
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
8340
 
# ---------------------------------------
8341
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
8342
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
8343
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8344
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
5103
 
 
5104
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
5105
    [Take the output of nm and produce a listing of raw symbols and C names])
 
5106
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
5107
    [Transform the output of nm in a proper C declaration])
 
5108
_LT_DECL([global_symbol_to_c_name_address],
 
5109
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
5110
    [Transform the output of nm in a C name address pair])
 
5111
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
5112
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
5113
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
5114
]) # _LT_CMD_GLOBAL_SYMBOLS
 
5115
 
 
5116
 
 
5117
# _LT_COMPILER_PIC([TAGNAME])
 
5118
# ---------------------------
 
5119
m4_defun([_LT_COMPILER_PIC],
 
5120
[m4_require([_LT_TAG_COMPILER])dnl
 
5121
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
5122
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5123
_LT_TAGVAR(lt_prog_compiler_static, $1)=
8345
5124
 
8346
5125
AC_MSG_CHECKING([for $compiler option to produce PIC])
8347
 
 ifelse([$1],[CXX],[
 
5126
m4_if([$1], [CXX], [
8348
5127
  # C++ specific cases for pic, static, wl, etc.
8349
5128
  if test "$GXX" = yes; then
8350
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8351
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5129
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5130
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8352
5131
 
8353
5132
    case $host_os in
8354
5133
    aix*)
8355
5134
      # All AIX code is PIC.
8356
5135
      if test "$host_cpu" = ia64; then
8357
5136
        # AIX 5 now supports IA64 processor
8358
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5137
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8359
5138
      fi
8360
5139
      ;;
 
5140
 
8361
5141
    amigaos*)
8362
 
      # FIXME: we need at least 68020 code to build shared libraries, but
8363
 
      # adding the `-m68020' flag to GCC prevents building anything better,
8364
 
      # like `-m68040'.
8365
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5142
      case $host_cpu in
 
5143
      powerpc)
 
5144
            # see comment about AmigaOS4 .so support
 
5145
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5146
        ;;
 
5147
      m68k)
 
5148
            # FIXME: we need at least 68020 code to build shared libraries, but
 
5149
            # adding the `-m68020' flag to GCC prevents building anything better,
 
5150
            # like `-m68040'.
 
5151
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5152
        ;;
 
5153
      esac
8366
5154
      ;;
8367
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5155
 
 
5156
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8368
5157
      # PIC is the default for these OSes.
8369
5158
      ;;
8370
 
    mingw* | os2* | pw32*)
 
5159
    mingw* | cygwin* | os2* | pw32* | cegcc*)
8371
5160
      # This hack is so that the source file can tell whether it is being
8372
5161
      # built for inclusion in a dll (and should export symbols for example).
8373
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5162
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5163
      # (--disable-auto-import) libraries
 
5164
      m4_if([$1], [GCJ], [],
 
5165
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8374
5166
      ;;
8375
5167
    darwin* | rhapsody*)
8376
5168
      # PIC is the default on this platform
8377
5169
      # Common symbols not allowed in MH_DYLIB files
8378
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5170
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
8379
5171
      ;;
8380
5172
    *djgpp*)
8381
5173
      # DJGPP does not support shared libraries at all
8382
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5174
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5175
      ;;
 
5176
    interix[[3-9]]*)
 
5177
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5178
      # Instead, we relocate shared libraries at runtime.
8383
5179
      ;;
8384
5180
    sysv4*MP*)
8385
5181
      if test -d /usr/nec; then
8386
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5182
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
8387
5183
      fi
8388
5184
      ;;
8389
5185
    hpux*)
8390
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8391
 
      # not for PA HP-UX.
8392
 
      case "$host_cpu" in
8393
 
      hppa*64*|ia64*)
 
5186
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
5187
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
5188
      # sets the default TLS model and affects inlining.
 
5189
      case $host_cpu in
 
5190
      hppa*64*)
8394
5191
        ;;
8395
5192
      *)
8396
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5193
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8397
5194
        ;;
8398
5195
      esac
8399
5196
      ;;
 
5197
    *qnx* | *nto*)
 
5198
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5199
      # it will coredump.
 
5200
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5201
      ;;
8400
5202
    *)
8401
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5203
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8402
5204
      ;;
8403
5205
    esac
8404
5206
  else
8405
5207
    case $host_os in
8406
 
      aix4* | aix5*)
 
5208
      aix[[4-9]]*)
8407
5209
        # All AIX code is PIC.
8408
5210
        if test "$host_cpu" = ia64; then
8409
5211
          # AIX 5 now supports IA64 processor
8410
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5212
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8411
5213
        else
8412
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5214
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
8413
5215
        fi
8414
5216
        ;;
8415
5217
      chorus*)
8416
5218
        case $cc_basename in
8417
5219
        cxch68*)
8418
5220
          # Green Hills C++ Compiler
8419
 
          # _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"
 
5221
          # _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"
8420
5222
          ;;
8421
5223
        esac
8422
5224
        ;;
8423
 
       darwin*)
8424
 
         # PIC is the default on this platform
8425
 
         # Common symbols not allowed in MH_DYLIB files
8426
 
         case $cc_basename in
8427
 
           xlc*)
8428
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
8429
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8430
 
           ;;
8431
 
         esac
8432
 
       ;;
8433
5225
      dgux*)
8434
5226
        case $cc_basename in
8435
5227
          ec++*)
8436
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5228
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8437
5229
            ;;
8438
5230
          ghcx*)
8439
5231
            # Green Hills C++ Compiler
8440
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5232
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8441
5233
            ;;
8442
5234
          *)
8443
5235
            ;;
8444
5236
        esac
8445
5237
        ;;
8446
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
5238
      freebsd* | dragonfly*)
8447
5239
        # FreeBSD uses GNU C++
8448
5240
        ;;
8449
5241
      hpux9* | hpux10* | hpux11*)
8450
5242
        case $cc_basename in
8451
5243
          CC*)
8452
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8453
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5244
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5245
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
8454
5246
            if test "$host_cpu" != ia64; then
8455
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5247
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8456
5248
            fi
8457
5249
            ;;
8458
5250
          aCC*)
8459
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8460
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
8461
 
            case "$host_cpu" in
 
5251
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5252
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5253
            case $host_cpu in
8462
5254
            hppa*64*|ia64*)
8463
5255
              # +Z the default
8464
5256
              ;;
8465
5257
            *)
8466
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5258
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8467
5259
              ;;
8468
5260
            esac
8469
5261
            ;;
8471
5263
            ;;
8472
5264
        esac
8473
5265
        ;;
 
5266
      interix*)
 
5267
        # This is c89, which is MS Visual C++ (no shared libs)
 
5268
        # Anyone wants to do a port?
 
5269
        ;;
8474
5270
      irix5* | irix6* | nonstopux*)
8475
5271
        case $cc_basename in
8476
5272
          CC*)
8477
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8478
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5273
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5274
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8479
5275
            # CC pic flag -KPIC is the default.
8480
5276
            ;;
8481
5277
          *)
8482
5278
            ;;
8483
5279
        esac
8484
5280
        ;;
8485
 
      linux*)
 
5281
      linux* | k*bsd*-gnu)
8486
5282
        case $cc_basename in
8487
5283
          KCC*)
8488
5284
            # KAI C++ Compiler
8489
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
8490
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8491
 
            ;;
8492
 
          icpc* | ecpc*)
8493
 
            # Intel C++
8494
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8495
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8496
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
8497
 
            ;;
8498
 
          pgCC*)
8499
 
            # Portland Group C++ compiler.
8500
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8501
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
8502
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5285
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5286
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5287
            ;;
 
5288
          ecpc* )
 
5289
            # old Intel C++ for x86_64 which still supported -KPIC.
 
5290
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5291
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5292
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5293
            ;;
 
5294
          icpc* )
 
5295
            # Intel C++, used to be incompatible with GCC.
 
5296
            # ICC 10 doesn't accept -KPIC any more.
 
5297
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5298
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5299
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5300
            ;;
 
5301
          pgCC* | pgcpp*)
 
5302
            # Portland Group C++ compiler
 
5303
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5304
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5305
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8503
5306
            ;;
8504
5307
          cxx*)
8505
5308
            # Compaq C++
8506
5309
            # Make sure the PIC flag is empty.  It appears that all Alpha
8507
5310
            # Linux and Compaq Tru64 Unix objects are PIC.
8508
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8509
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5311
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5312
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5313
            ;;
 
5314
          xlc* | xlC*)
 
5315
            # IBM XL 8.0 on PPC
 
5316
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5317
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
5318
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
8510
5319
            ;;
8511
5320
          *)
 
5321
            case `$CC -V 2>&1 | sed 5q` in
 
5322
            *Sun\ C*)
 
5323
              # Sun C++ 5.9
 
5324
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5325
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5326
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5327
              ;;
 
5328
            esac
8512
5329
            ;;
8513
5330
        esac
8514
5331
        ;;
8519
5336
      mvs*)
8520
5337
        case $cc_basename in
8521
5338
          cxx*)
8522
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
5339
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
8523
5340
            ;;
8524
5341
          *)
8525
5342
            ;;
8527
5344
        ;;
8528
5345
      netbsd*)
8529
5346
        ;;
 
5347
      *qnx* | *nto*)
 
5348
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5349
        # it will coredump.
 
5350
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5351
        ;;
8530
5352
      osf3* | osf4* | osf5*)
8531
5353
        case $cc_basename in
8532
5354
          KCC*)
8533
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5355
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
8534
5356
            ;;
8535
5357
          RCC*)
8536
5358
            # Rational C++ 2.4.1
8537
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5359
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8538
5360
            ;;
8539
5361
          cxx*)
8540
5362
            # Digital/Compaq C++
8541
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5363
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8542
5364
            # Make sure the PIC flag is empty.  It appears that all Alpha
8543
5365
            # Linux and Compaq Tru64 Unix objects are PIC.
8544
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8545
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5366
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5367
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8546
5368
            ;;
8547
5369
          *)
8548
5370
            ;;
8550
5372
        ;;
8551
5373
      psos*)
8552
5374
        ;;
8553
 
      sco*)
8554
 
        case $cc_basename in
8555
 
          CC*)
8556
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8557
 
            ;;
8558
 
          *)
8559
 
            ;;
8560
 
        esac
8561
 
        ;;
8562
5375
      solaris*)
8563
5376
        case $cc_basename in
8564
5377
          CC*)
8565
5378
            # Sun C++ 4.2, 5.x and Centerline C++
8566
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8567
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8568
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5379
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5380
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5381
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8569
5382
            ;;
8570
5383
          gcx*)
8571
5384
            # Green Hills C++ Compiler
8572
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5385
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8573
5386
            ;;
8574
5387
          *)
8575
5388
            ;;
8579
5392
        case $cc_basename in
8580
5393
          CC*)
8581
5394
            # Sun C++ 4.x
8582
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8583
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5395
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5396
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8584
5397
            ;;
8585
5398
          lcc*)
8586
5399
            # Lucid
8587
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5400
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8588
5401
            ;;
8589
5402
          *)
8590
5403
            ;;
8591
5404
        esac
8592
5405
        ;;
 
5406
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5407
        case $cc_basename in
 
5408
          CC*)
 
5409
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5410
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5411
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5412
            ;;
 
5413
        esac
 
5414
        ;;
8593
5415
      tandem*)
8594
5416
        case $cc_basename in
8595
5417
          NCC*)
8596
5418
            # NonStop-UX NCC 3.20
8597
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5419
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8598
5420
            ;;
8599
5421
          *)
8600
5422
            ;;
8601
5423
        esac
8602
5424
        ;;
8603
 
      unixware*)
8604
 
        ;;
8605
5425
      vxworks*)
8606
5426
        ;;
8607
5427
      *)
8608
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5428
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8609
5429
        ;;
8610
5430
    esac
8611
5431
  fi
8612
5432
],
8613
5433
[
8614
5434
  if test "$GCC" = yes; then
8615
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8616
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5435
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5436
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
8617
5437
 
8618
5438
    case $host_os in
8619
5439
      aix*)
8620
5440
      # All AIX code is PIC.
8621
5441
      if test "$host_cpu" = ia64; then
8622
5442
        # AIX 5 now supports IA64 processor
8623
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5443
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8624
5444
      fi
8625
5445
      ;;
8626
5446
 
8627
5447
    amigaos*)
8628
 
      # FIXME: we need at least 68020 code to build shared libraries, but
8629
 
      # adding the `-m68020' flag to GCC prevents building anything better,
8630
 
      # like `-m68040'.
8631
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5448
      case $host_cpu in
 
5449
      powerpc)
 
5450
            # see comment about AmigaOS4 .so support
 
5451
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5452
        ;;
 
5453
      m68k)
 
5454
            # FIXME: we need at least 68020 code to build shared libraries, but
 
5455
            # adding the `-m68020' flag to GCC prevents building anything better,
 
5456
            # like `-m68040'.
 
5457
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5458
        ;;
 
5459
      esac
8632
5460
      ;;
8633
5461
 
8634
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5462
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8635
5463
      # PIC is the default for these OSes.
8636
5464
      ;;
8637
5465
 
8638
 
    mingw* | pw32* | os2*)
 
5466
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8639
5467
      # This hack is so that the source file can tell whether it is being
8640
5468
      # built for inclusion in a dll (and should export symbols for example).
8641
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5469
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
5470
      # (--disable-auto-import) libraries
 
5471
      m4_if([$1], [GCJ], [],
 
5472
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8642
5473
      ;;
8643
5474
 
8644
5475
    darwin* | rhapsody*)
8645
5476
      # PIC is the default on this platform
8646
5477
      # Common symbols not allowed in MH_DYLIB files
8647
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5478
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5479
      ;;
 
5480
 
 
5481
    hpux*)
 
5482
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
5483
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
5484
      # sets the default TLS model and affects inlining.
 
5485
      case $host_cpu in
 
5486
      hppa*64*)
 
5487
        # +Z the default
 
5488
        ;;
 
5489
      *)
 
5490
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5491
        ;;
 
5492
      esac
 
5493
      ;;
 
5494
 
 
5495
    interix[[3-9]]*)
 
5496
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5497
      # Instead, we relocate shared libraries at runtime.
8648
5498
      ;;
8649
5499
 
8650
5500
    msdosdjgpp*)
8651
5501
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8652
5502
      # on systems that don't support them.
8653
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5503
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8654
5504
      enable_shared=no
8655
5505
      ;;
8656
5506
 
 
5507
    *nto* | *qnx*)
 
5508
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5509
      # it will coredump.
 
5510
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5511
      ;;
 
5512
 
8657
5513
    sysv4*MP*)
8658
5514
      if test -d /usr/nec; then
8659
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5515
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
8660
5516
      fi
8661
5517
      ;;
8662
5518
 
8663
 
    hpux*)
8664
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8665
 
      # not for PA HP-UX.
8666
 
      case "$host_cpu" in
8667
 
      hppa*64*|ia64*)
8668
 
        # +Z the default
8669
 
        ;;
8670
 
      *)
8671
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8672
 
        ;;
8673
 
      esac
8674
 
      ;;
8675
 
 
8676
5519
    *)
8677
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5520
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
8678
5521
      ;;
8679
5522
    esac
8680
5523
  else
8681
5524
    # PORTME Check for flag to pass linker flags through the system compiler.
8682
5525
    case $host_os in
8683
5526
    aix*)
8684
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5527
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8685
5528
      if test "$host_cpu" = ia64; then
8686
5529
        # AIX 5 now supports IA64 processor
8687
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5530
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8688
5531
      else
8689
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5532
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
8690
5533
      fi
8691
5534
      ;;
8692
 
      darwin*)
8693
 
        # PIC is the default on this platform
8694
 
        # Common symbols not allowed in MH_DYLIB files
8695
 
       case $cc_basename in
8696
 
         xlc*)
8697
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
8698
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8699
 
         ;;
8700
 
       esac
8701
 
       ;;
8702
5535
 
8703
 
    mingw* | pw32* | os2*)
 
5536
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8704
5537
      # This hack is so that the source file can tell whether it is being
8705
5538
      # built for inclusion in a dll (and should export symbols for example).
8706
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5539
      m4_if([$1], [GCJ], [],
 
5540
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
8707
5541
      ;;
8708
5542
 
8709
5543
    hpux9* | hpux10* | hpux11*)
8710
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5544
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8711
5545
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8712
5546
      # not for PA HP-UX.
8713
 
      case "$host_cpu" in
 
5547
      case $host_cpu in
8714
5548
      hppa*64*|ia64*)
8715
5549
        # +Z the default
8716
5550
        ;;
8717
5551
      *)
8718
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5552
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
8719
5553
        ;;
8720
5554
      esac
8721
5555
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8722
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5556
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
8723
5557
      ;;
8724
5558
 
8725
5559
    irix5* | irix6* | nonstopux*)
8726
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5560
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8727
5561
      # PIC (with -KPIC) is the default.
8728
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8729
 
      ;;
8730
 
 
8731
 
    newsos6)
8732
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8733
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8734
 
      ;;
8735
 
 
8736
 
    linux*)
 
5562
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5563
      ;;
 
5564
 
 
5565
    linux* | k*bsd*-gnu)
8737
5566
      case $cc_basename in
8738
 
      icc* | ecc*)
8739
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8740
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8741
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
8742
 
        ;;
8743
 
      pgcc* | pgf77* | pgf90*)
 
5567
      # old Intel for x86_64 which still supported -KPIC.
 
5568
      ecc*)
 
5569
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5570
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5571
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5572
        ;;
 
5573
      # icc used to be incompatible with GCC.
 
5574
      # ICC 10 doesn't accept -KPIC any more.
 
5575
      icc* | ifort*)
 
5576
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5577
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5578
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5579
        ;;
 
5580
      # Lahey Fortran 8.1.
 
5581
      lf95*)
 
5582
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5583
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
5584
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
5585
        ;;
 
5586
      pgcc* | pgf77* | pgf90* | pgf95*)
8744
5587
        # Portland Group compilers (*not* the Pentium gcc compiler,
8745
5588
        # which looks to be a dead project)
8746
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8747
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
8748
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5589
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5590
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5591
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8749
5592
        ;;
8750
5593
      ccc*)
8751
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5594
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8752
5595
        # All Alpha code is PIC.
8753
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5596
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8754
5597
        ;;
 
5598
      xl*)
 
5599
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
5600
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5601
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
5602
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
5603
        ;;
 
5604
      *)
 
5605
        case `$CC -V 2>&1 | sed 5q` in
 
5606
        *Sun\ C*)
 
5607
          # Sun C 5.9
 
5608
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5609
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5610
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5611
          ;;
 
5612
        *Sun\ F*)
 
5613
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
5614
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5615
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5616
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
5617
          ;;
 
5618
        esac
 
5619
        ;;
8755
5620
      esac
8756
5621
      ;;
8757
5622
 
 
5623
    newsos6)
 
5624
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5625
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5626
      ;;
 
5627
 
 
5628
    *nto* | *qnx*)
 
5629
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
5630
      # it will coredump.
 
5631
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
5632
      ;;
 
5633
 
8758
5634
    osf3* | osf4* | osf5*)
8759
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5635
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8760
5636
      # All OSF/1 code is PIC.
8761
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5637
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8762
5638
      ;;
8763
5639
 
8764
 
    sco3.2v5*)
8765
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
8766
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
5640
    rdos*)
 
5641
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8767
5642
      ;;
8768
5643
 
8769
5644
    solaris*)
8770
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8771
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5645
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5646
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8772
5647
      case $cc_basename in
8773
5648
      f77* | f90* | f95*)
8774
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
5649
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
8775
5650
      *)
8776
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
5651
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
8777
5652
      esac
8778
5653
      ;;
8779
5654
 
8780
5655
    sunos4*)
8781
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
8782
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
8783
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5656
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5657
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5658
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8784
5659
      ;;
8785
5660
 
8786
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8787
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8788
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8789
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5661
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
5662
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5663
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5664
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8790
5665
      ;;
8791
5666
 
8792
5667
    sysv4*MP*)
8793
5668
      if test -d /usr/nec ;then
8794
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
8795
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5669
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5670
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8796
5671
      fi
8797
5672
      ;;
8798
5673
 
 
5674
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5675
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5676
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5677
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5678
      ;;
 
5679
 
8799
5680
    unicos*)
8800
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8801
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5681
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5682
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8802
5683
      ;;
8803
5684
 
8804
5685
    uts4*)
8805
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
8806
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5686
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5687
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8807
5688
      ;;
8808
5689
 
8809
5690
    *)
8810
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5691
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8811
5692
      ;;
8812
5693
    esac
8813
5694
  fi
8814
5695
])
8815
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
5696
case $host_os in
 
5697
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5698
  *djgpp*)
 
5699
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5700
    ;;
 
5701
  *)
 
5702
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
5703
    ;;
 
5704
esac
 
5705
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
5706
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
5707
        [How to pass a linker flag through the compiler])
8816
5708
 
8817
5709
#
8818
5710
# Check to make sure the PIC flag actually works.
8819
5711
#
8820
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
8821
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
8822
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
8823
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
8824
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5712
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5713
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5714
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
5715
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
5716
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
8825
5717
     "" | " "*) ;;
8826
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5718
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
8827
5719
     esac],
8828
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8829
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5720
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5721
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
8830
5722
fi
8831
 
case "$host_os" in
8832
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8833
 
  *djgpp*)
8834
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
8835
 
    ;;
8836
 
  *)
8837
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
8838
 
    ;;
8839
 
esac
8840
 
])
8841
 
 
8842
 
 
8843
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
8844
 
# ------------------------------------
 
5723
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
5724
        [Additional compiler flags for building library objects])
 
5725
 
 
5726
#
 
5727
# Check to make sure the static flag actually works.
 
5728
#
 
5729
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
5730
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
5731
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
5732
  $lt_tmp_static_flag,
 
5733
  [],
 
5734
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
5735
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
5736
        [Compiler flag to prevent dynamic linking])
 
5737
])# _LT_COMPILER_PIC
 
5738
 
 
5739
 
 
5740
# _LT_LINKER_SHLIBS([TAGNAME])
 
5741
# ----------------------------
8845
5742
# See if the linker supports building shared libraries.
8846
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
8847
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8848
 
ifelse([$1],[CXX],[
8849
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5743
m4_defun([_LT_LINKER_SHLIBS],
 
5744
[AC_REQUIRE([LT_PATH_LD])dnl
 
5745
AC_REQUIRE([LT_PATH_NM])dnl
 
5746
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5747
m4_require([_LT_DECL_EGREP])dnl
 
5748
m4_require([_LT_DECL_SED])dnl
 
5749
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
5750
m4_require([_LT_TAG_COMPILER])dnl
 
5751
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5752
m4_if([$1], [CXX], [
 
5753
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8850
5754
  case $host_os in
8851
 
  aix4* | aix5*)
 
5755
  aix[[4-9]]*)
8852
5756
    # If we're using GNU nm, then we don't want the "-C" option.
8853
5757
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
8854
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8855
 
      _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'
 
5758
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
5759
      _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'
8856
5760
    else
8857
 
      _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'
 
5761
      _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'
8858
5762
    fi
8859
5763
    ;;
8860
5764
  pw32*)
8861
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5765
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
8862
5766
  ;;
8863
 
  cygwin* | mingw*)
8864
 
    _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'
 
5767
  cygwin* | mingw* | cegcc*)
 
5768
    _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'
8865
5769
  ;;
8866
5770
  *)
8867
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5771
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8868
5772
  ;;
8869
5773
  esac
8870
 
],[
 
5774
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
5775
], [
8871
5776
  runpath_var=
8872
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8873
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8874
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
8875
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
8876
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
8877
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
8878
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
8879
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
8880
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
8881
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8882
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8883
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8884
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
8885
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8886
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8887
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
8888
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
8889
 
  _LT_AC_TAGVAR(module_cmds, $1)=
8890
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
8891
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
8892
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5777
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
5778
  _LT_TAGVAR(always_export_symbols, $1)=no
 
5779
  _LT_TAGVAR(archive_cmds, $1)=
 
5780
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
5781
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
5782
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5783
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5784
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5785
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
5786
  _LT_TAGVAR(hardcode_direct, $1)=no
 
5787
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5788
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5789
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5790
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5791
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
5792
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5793
  _LT_TAGVAR(inherit_rpath, $1)=no
 
5794
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5795
  _LT_TAGVAR(module_cmds, $1)=
 
5796
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
5797
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
5798
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5799
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
5800
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
8893
5801
  # include_expsyms should be a list of space-separated symbols to be *always*
8894
5802
  # included in the symbol list
8895
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5803
  _LT_TAGVAR(include_expsyms, $1)=
8896
5804
  # exclude_expsyms can be an extended regexp of symbols to exclude
8897
5805
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8898
5806
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8899
5807
  # as well as any symbol that contains `d'.
8900
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
5808
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8901
5809
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8902
5810
  # platforms (ab)use it in PIC code, but their linkers get confused if
8903
5811
  # the symbol is explicitly referenced.  Since portable code cannot
8904
5812
  # rely on this symbol name, it's probably fine to never include it in
8905
5813
  # preloaded symbol tables.
 
5814
  # Exclude shared library initialization/finalization symbols.
 
5815
dnl Note also adjust exclude_expsyms for C++ above.
8906
5816
  extract_expsyms_cmds=
8907
 
  # Just being paranoid about ensuring that cc_basename is set.
8908
 
  _LT_CC_BASENAME([$compiler])
 
5817
 
8909
5818
  case $host_os in
8910
 
  cygwin* | mingw* | pw32*)
 
5819
  cygwin* | mingw* | pw32* | cegcc*)
8911
5820
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8912
5821
    # When not using gcc, we currently assume that we are using
8913
5822
    # Microsoft Visual C++.
8915
5824
      with_gnu_ld=no
8916
5825
    fi
8917
5826
    ;;
 
5827
  interix*)
 
5828
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5829
    with_gnu_ld=yes
 
5830
    ;;
8918
5831
  openbsd*)
8919
5832
    with_gnu_ld=no
8920
5833
    ;;
8921
5834
  esac
8922
5835
 
8923
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5836
  _LT_TAGVAR(ld_shlibs, $1)=yes
8924
5837
  if test "$with_gnu_ld" = yes; then
8925
5838
    # If archive_cmds runs LD, not CC, wlarc should be empty
8926
5839
    wlarc='${wl}'
8927
 
    
 
5840
 
8928
5841
    # Set some defaults for GNU ld with shared library support. These
8929
5842
    # are reset later if shared libraries are not supported. Putting them
8930
5843
    # here allows them to be overridden if necessary.
8931
5844
    runpath_var=LD_RUN_PATH
8932
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
8933
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5845
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5846
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8934
5847
    # ancient GNU ld didn't support --whole-archive et. al.
8935
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8936
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8937
 
      else
8938
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5848
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
5849
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5850
    else
 
5851
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
8939
5852
    fi
8940
5853
    supports_anon_versioning=no
8941
 
    case `$LD -v 2>/dev/null` in
 
5854
    case `$LD -v 2>&1` in
8942
5855
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
8943
5856
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8944
5857
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8945
5858
      *\ 2.11.*) ;; # other 2.11 versions
8946
5859
      *) supports_anon_versioning=yes ;;
8947
5860
    esac
8948
 
    
 
5861
 
8949
5862
    # See if GNU ld supports shared libraries.
8950
5863
    case $host_os in
8951
 
    aix3* | aix4* | aix5*)
 
5864
    aix[[3-9]]*)
8952
5865
      # On AIX/PPC, the GNU linker is very broken
8953
5866
      if test "$host_cpu" != ia64; then
8954
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8955
 
        cat <<EOF 1>&2
 
5867
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5868
        cat <<_LT_EOF 1>&2
8956
5869
 
8957
5870
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8958
5871
*** to be unable to reliably create shared libraries on AIX.
8960
5873
*** really care for shared libraries, you may want to modify your PATH
8961
5874
*** so that a non-GNU linker is found, and then restart.
8962
5875
 
8963
 
EOF
 
5876
_LT_EOF
8964
5877
      fi
8965
5878
      ;;
8966
5879
 
8967
5880
    amigaos*)
8968
 
      _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)'
8969
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8970
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8971
 
 
8972
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8973
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8974
 
      # to version 4, is to share data among multiple programs linked
8975
 
      # with the same dynamic library.  Since this doesn't match the
8976
 
      # behavior of shared libraries on other platforms, we can't use
8977
 
      # them.
8978
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5881
      case $host_cpu in
 
5882
      powerpc)
 
5883
            # see comment about AmigaOS4 .so support
 
5884
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5885
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
5886
        ;;
 
5887
      m68k)
 
5888
            _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)'
 
5889
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5890
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5891
        ;;
 
5892
      esac
8979
5893
      ;;
8980
5894
 
8981
5895
    beos*)
8982
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8983
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5896
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5897
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8984
5898
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8985
5899
        # support --undefined.  This deserves some investigation.  FIXME
8986
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5900
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987
5901
      else
8988
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5902
        _LT_TAGVAR(ld_shlibs, $1)=no
8989
5903
      fi
8990
5904
      ;;
8991
5905
 
8992
 
    cygwin* | mingw* | pw32*)
8993
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5906
    cygwin* | mingw* | pw32* | cegcc*)
 
5907
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8994
5908
      # as there is no search path for DLLs.
8995
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8996
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8997
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
8998
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8999
 
      _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'
 
5909
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5910
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5911
      _LT_TAGVAR(always_export_symbols, $1)=no
 
5912
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5913
      _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'
9000
5914
 
9001
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9002
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5915
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5916
        _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'
9003
5917
        # If the export-symbols file already is a .def file (1st line
9004
5918
        # is EXPORTS), use it as is; otherwise, prepend...
9005
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5919
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9006
5920
          cp $export_symbols $output_objdir/$soname.def;
9007
5921
        else
9008
5922
          echo EXPORTS > $output_objdir/$soname.def;
9009
5923
          cat $export_symbols >> $output_objdir/$soname.def;
9010
5924
        fi~
9011
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
5925
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9012
5926
      else
9013
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9014
 
      fi
9015
 
      ;;
9016
 
 
9017
 
    linux*)
9018
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5927
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5928
      fi
 
5929
      ;;
 
5930
 
 
5931
    interix[[3-9]]*)
 
5932
      _LT_TAGVAR(hardcode_direct, $1)=no
 
5933
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5934
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5935
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5936
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5937
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5938
      # default) and relocated if they conflict, which is a slow very memory
 
5939
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
5940
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5941
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5942
      _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'
 
5943
      _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'
 
5944
      ;;
 
5945
 
 
5946
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
5947
      tmp_diet=no
 
5948
      if test "$host_os" = linux-dietlibc; then
 
5949
        case $cc_basename in
 
5950
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
5951
        esac
 
5952
      fi
 
5953
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
5954
         && test "$tmp_diet" = no
 
5955
      then
9019
5956
        tmp_addflag=
 
5957
        tmp_sharedflag='-shared'
9020
5958
        case $cc_basename,$host_cpu in
9021
 
        pgcc*)                          # Portland Group C compiler
9022
 
          _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'
 
5959
        pgcc*)                          # Portland Group C compiler
 
5960
          _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'
9023
5961
          tmp_addflag=' $pic_flag'
9024
5962
          ;;
9025
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9026
 
          _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'
 
5963
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
5964
          _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'
9027
5965
          tmp_addflag=' $pic_flag -Mnomain' ;;
9028
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
5966
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9029
5967
          tmp_addflag=' -i_dynamic' ;;
9030
5968
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9031
5969
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9032
5970
        ifc* | ifort*)                  # Intel Fortran compiler
9033
5971
          tmp_addflag=' -nofor_main' ;;
9034
 
        esac
9035
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036
 
 
9037
 
        if test $supports_anon_versioning = yes; then
9038
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
9039
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9040
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
9041
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9042
 
        fi
 
5972
        lf95*)                          # Lahey Fortran 8.1
 
5973
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5974
          tmp_sharedflag='--shared' ;;
 
5975
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
5976
          tmp_sharedflag='-qmkshrobj'
 
5977
          tmp_addflag= ;;
 
5978
        esac
 
5979
        case `$CC -V 2>&1 | sed 5q` in
 
5980
        *Sun\ C*)                       # Sun C 5.9
 
5981
          _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'
 
5982
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5983
          tmp_sharedflag='-G' ;;
 
5984
        *Sun\ F*)                       # Sun Fortran 8.3
 
5985
          tmp_sharedflag='-G' ;;
 
5986
        esac
 
5987
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5988
 
 
5989
        if test "x$supports_anon_versioning" = xyes; then
 
5990
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5991
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5992
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
5993
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5994
        fi
 
5995
 
 
5996
        case $cc_basename in
 
5997
        xlf*)
 
5998
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
5999
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
6000
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6001
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
6002
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
6003
          if test "x$supports_anon_versioning" = xyes; then
 
6004
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
6005
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6006
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
6007
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
6008
          fi
 
6009
          ;;
 
6010
        esac
9043
6011
      else
9044
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6012
        _LT_TAGVAR(ld_shlibs, $1)=no
9045
6013
      fi
9046
6014
      ;;
9047
6015
 
9048
6016
    netbsd*)
9049
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9050
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6017
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6018
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9051
6019
        wlarc=
9052
6020
      else
9053
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054
 
        _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'
 
6021
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6022
        _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'
9055
6023
      fi
9056
6024
      ;;
9057
6025
 
9058
 
    solaris* | sysv5*)
9059
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9060
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
9061
 
        cat <<EOF 1>&2
 
6026
    solaris*)
 
6027
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
6028
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6029
        cat <<_LT_EOF 1>&2
9062
6030
 
9063
6031
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9064
6032
*** create shared libraries on Solaris systems.  Therefore, libtool
9067
6035
*** your PATH or compiler configuration so that the native linker is
9068
6036
*** used, and then restart.
9069
6037
 
9070
 
EOF
9071
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9072
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073
 
        _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'
 
6038
_LT_EOF
 
6039
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6040
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6041
        _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'
9074
6042
      else
9075
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6043
        _LT_TAGVAR(ld_shlibs, $1)=no
9076
6044
      fi
9077
6045
      ;;
9078
6046
 
 
6047
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
6048
      case `$LD -v 2>&1` in
 
6049
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
6050
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6051
        cat <<_LT_EOF 1>&2
 
6052
 
 
6053
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
6054
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
6055
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6056
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
6057
*** your PATH or compiler configuration so that the native linker is
 
6058
*** used, and then restart.
 
6059
 
 
6060
_LT_EOF
 
6061
        ;;
 
6062
        *)
 
6063
          # For security reasons, it is highly recommended that you always
 
6064
          # use absolute paths for naming shared libraries, and exclude the
 
6065
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
6066
          # requires that you compile everything twice, which is a pain.
 
6067
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6068
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6069
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6070
            _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'
 
6071
          else
 
6072
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6073
          fi
 
6074
        ;;
 
6075
      esac
 
6076
      ;;
 
6077
 
9079
6078
    sunos4*)
9080
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6079
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9081
6080
      wlarc=
9082
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9083
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6081
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6082
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9084
6083
      ;;
9085
6084
 
9086
6085
    *)
9087
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9088
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089
 
        _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'
 
6086
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
6087
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6088
        _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'
9090
6089
      else
9091
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6090
        _LT_TAGVAR(ld_shlibs, $1)=no
9092
6091
      fi
9093
6092
      ;;
9094
6093
    esac
9095
6094
 
9096
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
6095
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
9097
6096
      runpath_var=
9098
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
9099
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
9100
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6097
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6098
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6099
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
9101
6100
    fi
9102
6101
  else
9103
6102
    # PORTME fill in a description of your system's linker (not GNU ld)
9104
6103
    case $host_os in
9105
6104
    aix3*)
9106
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
9107
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
9108
 
      _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'
 
6105
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6106
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
6107
      _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'
9109
6108
      # Note: this linker hardcodes the directories in LIBPATH if there
9110
6109
      # are no directories specified by -L.
9111
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9112
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6110
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6111
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9113
6112
        # Neither direct hardcoding nor static linking is supported with a
9114
6113
        # broken collect2.
9115
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6114
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
9116
6115
      fi
9117
6116
      ;;
9118
6117
 
9119
 
    aix4* | aix5*)
 
6118
    aix[[4-9]]*)
9120
6119
      if test "$host_cpu" = ia64; then
9121
6120
        # On IA64, the linker does run time linking by default, so we don't
9122
6121
        # have to do anything special.
9126
6125
      else
9127
6126
        # If we're using GNU nm, then we don't want the "-C" option.
9128
6127
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9129
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9130
 
          _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'
 
6128
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
6129
          _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'
9131
6130
        else
9132
 
          _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'
 
6131
          _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'
9133
6132
        fi
9134
6133
        aix_use_runtimelinking=no
9135
6134
 
9136
6135
        # Test if we are trying to use run time linking or normal
9137
6136
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9138
6137
        # need to do runtime linking.
9139
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6138
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
9140
6139
          for ld_flag in $LDFLAGS; do
9141
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9142
 
            aix_use_runtimelinking=yes
9143
 
            break
9144
 
          fi
 
6140
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6141
            aix_use_runtimelinking=yes
 
6142
            break
 
6143
          fi
9145
6144
          done
 
6145
          ;;
9146
6146
        esac
9147
6147
 
9148
6148
        exp_sym_flag='-bexport'
9155
6155
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9156
6156
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9157
6157
 
9158
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
9159
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9160
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
9161
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6158
      _LT_TAGVAR(archive_cmds, $1)=''
 
6159
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6160
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6161
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6162
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6163
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
9162
6164
 
9163
6165
      if test "$GCC" = yes; then
9164
6166
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
9165
6167
        # We only want to do this on AIX 4.2 and lower, the check
9166
6168
        # below for broken collect2 doesn't work under 4.3+
9167
6169
          collect2name=`${CC} -print-prog-name=collect2`
9168
 
          if test -f "$collect2name" && \
9169
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6170
          if test -f "$collect2name" &&
 
6171
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9170
6172
          then
9171
 
          # We have reworked collect2
9172
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6173
          # We have reworked collect2
 
6174
          :
9173
6175
          else
9174
 
          # We have old collect2
9175
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
9176
 
          # It fails to find uninstalled libraries when the uninstalled
9177
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9178
 
          # to unsupported forces relinking
9179
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9180
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9181
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6176
          # We have old collect2
 
6177
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6178
          # It fails to find uninstalled libraries when the uninstalled
 
6179
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6180
          # to unsupported forces relinking
 
6181
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6182
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6183
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
9182
6184
          fi
 
6185
          ;;
9183
6186
        esac
9184
6187
        shared_flag='-shared'
9185
6188
        if test "$aix_use_runtimelinking" = yes; then
9188
6191
      else
9189
6192
        # not using gcc
9190
6193
        if test "$host_cpu" = ia64; then
9191
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9192
 
        # chokes on -Wl,-G. The following line is correct:
 
6194
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6195
        # chokes on -Wl,-G. The following line is correct:
9193
6196
          shared_flag='-G'
9194
6197
        else
9195
 
        if test "$aix_use_runtimelinking" = yes; then
 
6198
          if test "$aix_use_runtimelinking" = yes; then
9196
6199
            shared_flag='${wl}-G'
9197
6200
          else
9198
6201
            shared_flag='${wl}-bM:SRE'
9199
 
        fi
 
6202
          fi
9200
6203
        fi
9201
6204
      fi
9202
6205
 
 
6206
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
9203
6207
      # It seems that -bexpall does not export symbols beginning with
9204
6208
      # underscore (_), so it is better to generate a list of symbols to export.
9205
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6209
      _LT_TAGVAR(always_export_symbols, $1)=yes
9206
6210
      if test "$aix_use_runtimelinking" = yes; then
9207
6211
        # Warning - without using the other runtime loading flags (-brtl),
9208
6212
        # -berok will link without error, but may produce a broken library.
9209
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
9210
 
       # Determine the default libpath from the value encoded in an empty executable.
9211
 
       _LT_AC_SYS_LIBPATH_AIX
9212
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9213
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9214
 
       else
 
6213
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6214
        # Determine the default libpath from the value encoded in an
 
6215
        # empty executable.
 
6216
        _LT_SYS_MODULE_PATH_AIX
 
6217
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6218
        _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"
 
6219
      else
9215
6220
        if test "$host_cpu" = ia64; then
9216
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
9217
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
9218
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6221
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6222
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6223
          _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"
9219
6224
        else
9220
 
         # Determine the default libpath from the value encoded in an empty executable.
9221
 
         _LT_AC_SYS_LIBPATH_AIX
9222
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6225
         # Determine the default libpath from the value encoded in an
 
6226
         # empty executable.
 
6227
         _LT_SYS_MODULE_PATH_AIX
 
6228
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9223
6229
          # Warning - without using the other run time loading flags,
9224
6230
          # -berok will link without error, but may produce a broken library.
9225
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
9226
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
9227
 
          # -bexpall does not export symbols beginning with underscore (_)
9228
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6231
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6232
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
9229
6233
          # Exported symbols can be pulled into shared objects from archives
9230
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
9231
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
9232
 
          # This is similar to how AIX traditionally builds it's shared libraries.
9233
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6234
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6235
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6236
          # This is similar to how AIX traditionally builds its shared libraries.
 
6237
          _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'
9234
6238
        fi
9235
6239
      fi
9236
6240
      ;;
9237
6241
 
9238
6242
    amigaos*)
9239
 
      _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)'
9240
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9241
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9242
 
      # see comment about different semantics on the GNU ld section
9243
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6243
      case $host_cpu in
 
6244
      powerpc)
 
6245
            # see comment about AmigaOS4 .so support
 
6246
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6247
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
6248
        ;;
 
6249
      m68k)
 
6250
            _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)'
 
6251
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6252
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6253
        ;;
 
6254
      esac
9244
6255
      ;;
9245
6256
 
9246
6257
    bsdi[[45]]*)
9247
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
6258
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
9248
6259
      ;;
9249
6260
 
9250
 
    cygwin* | mingw* | pw32*)
 
6261
    cygwin* | mingw* | pw32* | cegcc*)
9251
6262
      # When not using gcc, we currently assume that we are using
9252
6263
      # Microsoft Visual C++.
9253
6264
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9254
6265
      # no search path for DLLs.
9255
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
9256
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6266
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6267
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
9257
6268
      # Tell ltmain to make .lib files, not .a files.
9258
6269
      libext=lib
9259
6270
      # Tell ltmain to make .dll files, not .so files.
9260
6271
      shrext_cmds=".dll"
9261
6272
      # FIXME: Setting linknames here is a bad hack.
9262
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6273
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9263
6274
      # The linker will automatically build a .lib file if we build a DLL.
9264
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
6275
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
9265
6276
      # FIXME: Should let the user specify the lib program.
9266
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
9267
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
9268
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6277
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6278
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
6279
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
9269
6280
      ;;
9270
6281
 
9271
6282
    darwin* | rhapsody*)
9272
 
      case "$host_os" in
9273
 
        rhapsody* | darwin1.[[012]])
9274
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
9275
 
         ;;
9276
 
       *) # Darwin 1.3 on
9277
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9278
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9279
 
         else
9280
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
9281
 
             10.[[012]])
9282
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9283
 
               ;;
9284
 
             10.*)
9285
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
9286
 
               ;;
9287
 
           esac
9288
 
         fi
9289
 
         ;;
9290
 
      esac
9291
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9292
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
9293
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9294
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9295
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
9296
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9297
 
    if test "$GCC" = yes ; then
9298
 
        output_verbose_link_cmd='echo'
9299
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9300
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9301
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9302
 
      _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}'
9303
 
      _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}'
9304
 
    else
9305
 
      case $cc_basename in
9306
 
        xlc*)
9307
 
         output_verbose_link_cmd='echo'
9308
 
         _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'
9309
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9310
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9311
 
         _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}'
9312
 
          _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}'
9313
 
          ;;
9314
 
       *)
9315
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
9316
 
          ;;
9317
 
      esac
9318
 
    fi
 
6283
      _LT_DARWIN_LINKER_FEATURES($1)
9319
6284
      ;;
9320
6285
 
9321
6286
    dgux*)
9322
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9324
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6287
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6288
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6289
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9325
6290
      ;;
9326
6291
 
9327
6292
    freebsd1*)
9328
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6293
      _LT_TAGVAR(ld_shlibs, $1)=no
9329
6294
      ;;
9330
6295
 
9331
6296
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9333
6298
    # does not break anything, and helps significantly (at the cost of a little
9334
6299
    # extra space).
9335
6300
    freebsd2.2*)
9336
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9337
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9338
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9339
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6301
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6302
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6303
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6304
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9340
6305
      ;;
9341
6306
 
9342
6307
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9343
6308
    freebsd2*)
9344
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9345
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9346
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9347
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6309
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6310
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6311
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6312
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9348
6313
      ;;
9349
6314
 
9350
6315
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9351
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
9352
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9353
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9354
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9355
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6316
    freebsd* | dragonfly*)
 
6317
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6318
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6319
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6320
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9356
6321
      ;;
9357
6322
 
9358
6323
    hpux9*)
9359
6324
      if test "$GCC" = yes; then
9360
 
        _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'
 
6325
        _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'
9361
6326
      else
9362
 
        _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'
 
6327
        _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'
9363
6328
      fi
9364
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9365
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9366
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6329
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6330
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6331
      _LT_TAGVAR(hardcode_direct, $1)=yes
9367
6332
 
9368
6333
      # hardcode_minus_L: Not really in the search PATH,
9369
6334
      # but as the default location of the library.
9370
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9371
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9372
 
      ;;
9373
 
 
9374
 
    hpux10* | hpux11*)
9375
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9376
 
        case "$host_cpu" in
9377
 
        hppa*64*|ia64*)
9378
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379
 
          ;;
9380
 
        *)
9381
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9382
 
          ;;
9383
 
        esac
9384
 
      else
9385
 
        case "$host_cpu" in
9386
 
        hppa*64*|ia64*)
9387
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9388
 
          ;;
9389
 
        *)
9390
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9391
 
          ;;
9392
 
        esac
9393
 
      fi
9394
 
      if test "$with_gnu_ld" = no; then
9395
 
        case "$host_cpu" in
9396
 
        hppa*64*)
9397
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9398
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
9399
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9400
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
9401
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9402
 
          ;;
9403
 
        ia64*)
9404
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9405
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
9406
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9407
 
 
9408
 
          # hardcode_minus_L: Not really in the search PATH,
9409
 
          # but as the default location of the library.
9410
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9411
 
          ;;
9412
 
        *)
9413
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9414
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9415
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9416
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9417
 
 
9418
 
          # hardcode_minus_L: Not really in the search PATH,
9419
 
          # but as the default location of the library.
9420
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6335
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6336
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6337
      ;;
 
6338
 
 
6339
    hpux10*)
 
6340
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6341
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6342
      else
 
6343
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6344
      fi
 
6345
      if test "$with_gnu_ld" = no; then
 
6346
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6347
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
6348
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6349
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6350
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6351
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6352
        # hardcode_minus_L: Not really in the search PATH,
 
6353
        # but as the default location of the library.
 
6354
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6355
      fi
 
6356
      ;;
 
6357
 
 
6358
    hpux11*)
 
6359
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6360
        case $host_cpu in
 
6361
        hppa*64*)
 
6362
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6363
          ;;
 
6364
        ia64*)
 
6365
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6366
          ;;
 
6367
        *)
 
6368
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6369
          ;;
 
6370
        esac
 
6371
      else
 
6372
        case $host_cpu in
 
6373
        hppa*64*)
 
6374
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6375
          ;;
 
6376
        ia64*)
 
6377
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6378
          ;;
 
6379
        *)
 
6380
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6381
          ;;
 
6382
        esac
 
6383
      fi
 
6384
      if test "$with_gnu_ld" = no; then
 
6385
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6386
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6387
 
 
6388
        case $host_cpu in
 
6389
        hppa*64*|ia64*)
 
6390
          _LT_TAGVAR(hardcode_direct, $1)=no
 
6391
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6392
          ;;
 
6393
        *)
 
6394
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6395
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6396
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6397
 
 
6398
          # hardcode_minus_L: Not really in the search PATH,
 
6399
          # but as the default location of the library.
 
6400
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
9421
6401
          ;;
9422
6402
        esac
9423
6403
      fi
9425
6405
 
9426
6406
    irix5* | irix6* | nonstopux*)
9427
6407
      if test "$GCC" = yes; then
9428
 
        _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'
 
6408
        _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'
 
6409
        # Try to use the -exported_symbol ld option, if it does not
 
6410
        # work, assume that -exports_file does not work either and
 
6411
        # implicitly export all symbols.
 
6412
        save_LDFLAGS="$LDFLAGS"
 
6413
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
6414
        AC_LINK_IFELSE(int foo(void) {},
 
6415
          _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'
 
6416
        )
 
6417
        LDFLAGS="$save_LDFLAGS"
9429
6418
      else
9430
 
        _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'
9431
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
6419
        _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'
 
6420
        _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'
9432
6421
      fi
9433
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9434
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9435
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6422
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6423
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6424
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6425
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
6426
      _LT_TAGVAR(link_all_deplibs, $1)=yes
9436
6427
      ;;
9437
6428
 
9438
6429
    netbsd*)
9439
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9440
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6430
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6431
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9441
6432
      else
9442
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6433
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9443
6434
      fi
9444
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9445
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9446
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6435
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6436
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6437
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9447
6438
      ;;
9448
6439
 
9449
6440
    newsos6)
9450
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9452
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9453
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9454
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6441
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6442
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6443
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6444
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6445
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6446
      ;;
 
6447
 
 
6448
    *nto* | *qnx*)
9455
6449
      ;;
9456
6450
 
9457
6451
    openbsd*)
9458
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9459
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9460
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9461
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9462
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9463
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9464
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6452
      if test -f /usr/libexec/ld.so; then
 
6453
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
6454
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6455
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6456
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6457
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6458
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6459
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6460
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6461
        else
 
6462
          case $host_os in
 
6463
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6464
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6465
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6466
             ;;
 
6467
           *)
 
6468
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6469
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6470
             ;;
 
6471
          esac
 
6472
        fi
9465
6473
      else
9466
 
       case $host_os in
9467
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
9468
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9469
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9470
 
           ;;
9471
 
         *)
9472
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9473
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9474
 
           ;;
9475
 
       esac
 
6474
        _LT_TAGVAR(ld_shlibs, $1)=no
9476
6475
      fi
9477
6476
      ;;
9478
6477
 
9479
6478
    os2*)
9480
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9481
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9482
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
9483
 
      _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'
9484
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6479
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6480
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6481
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6482
      _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'
 
6483
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9485
6484
      ;;
9486
6485
 
9487
6486
    osf3*)
9488
6487
      if test "$GCC" = yes; then
9489
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
9490
 
        _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'
 
6488
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6489
        _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'
9491
6490
      else
9492
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
9493
 
        _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'
 
6491
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6492
        _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'
9494
6493
      fi
9495
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9496
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6494
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6495
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6496
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9497
6497
      ;;
9498
6498
 
9499
6499
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9500
6500
      if test "$GCC" = yes; then
9501
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
9502
 
        _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'
9503
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6501
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6502
        _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'
 
6503
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9504
6504
      else
9505
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
9506
 
        _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'
9507
 
        _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~
9508
 
        $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'
 
6505
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6506
        _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'
 
6507
        _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~
 
6508
        $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'
9509
6509
 
9510
6510
        # Both c and cxx compiler support -rpath directly
9511
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6511
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9512
6512
      fi
9513
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
9514
 
      ;;
9515
 
 
9516
 
    sco3.2v5*)
9517
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9519
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9520
 
      runpath_var=LD_RUN_PATH
9521
 
      hardcode_runpath_var=yes
 
6513
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
6514
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9522
6515
      ;;
9523
6516
 
9524
6517
    solaris*)
9525
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
6518
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
9526
6519
      if test "$GCC" = yes; then
9527
6520
        wlarc='${wl}'
9528
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9529
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9530
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6521
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6522
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6523
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9531
6524
      else
9532
 
        wlarc=''
9533
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9535
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6525
        case `$CC -V 2>&1` in
 
6526
        *"Compilers 5.0"*)
 
6527
          wlarc=''
 
6528
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6529
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6530
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
6531
          ;;
 
6532
        *)
 
6533
          wlarc='${wl}'
 
6534
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6535
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6536
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
6537
          ;;
 
6538
        esac
9536
6539
      fi
9537
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9538
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6540
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6541
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9539
6542
      case $host_os in
9540
6543
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9541
6544
      *)
9542
 
        # The compiler driver will combine linker options so we
9543
 
        # cannot just pass the convience library names through
9544
 
        # without $wl, iff we do not link with $LD.
9545
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
9546
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9547
 
        case $wlarc in
9548
 
        '')
9549
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
9550
 
        *)
9551
 
          _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' ;;
9552
 
        esac ;;
 
6545
        # The compiler driver will combine and reorder linker options,
 
6546
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
6547
        # but is careful enough not to reorder.
 
6548
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6549
        if test "$GCC" = yes; then
 
6550
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6551
        else
 
6552
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6553
        fi
 
6554
        ;;
9553
6555
      esac
9554
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6556
      _LT_TAGVAR(link_all_deplibs, $1)=yes
9555
6557
      ;;
9556
6558
 
9557
6559
    sunos4*)
9558
6560
      if test "x$host_vendor" = xsequent; then
9559
6561
        # Use $CC to link under sequent, because it throws in some extra .o
9560
6562
        # files that make .init and .fini sections work.
9561
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6563
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9562
6564
      else
9563
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6565
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9564
6566
      fi
9565
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9566
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9567
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
9568
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6567
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6568
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6569
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6570
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9569
6571
      ;;
9570
6572
 
9571
6573
    sysv4)
9572
6574
      case $host_vendor in
9573
6575
        sni)
9574
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
6576
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6577
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
9576
6578
        ;;
9577
6579
        siemens)
9578
6580
          ## LD is ld it makes a PLAMLIB
9579
6581
          ## CC just makes a GrossModule.
9580
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9581
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
9582
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6582
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6583
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
6584
          _LT_TAGVAR(hardcode_direct, $1)=no
9583
6585
        ;;
9584
6586
        motorola)
9585
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
6587
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6588
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
9587
6589
        ;;
9588
6590
      esac
9589
6591
      runpath_var='LD_RUN_PATH'
9590
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6592
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9591
6593
      ;;
9592
6594
 
9593
6595
    sysv4.3*)
9594
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9596
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
6596
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6597
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6598
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
9597
6599
      ;;
9598
6600
 
9599
6601
    sysv4*MP*)
9600
6602
      if test -d /usr/nec; then
9601
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6603
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6604
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9603
6605
        runpath_var=LD_RUN_PATH
9604
6606
        hardcode_runpath_var=yes
9605
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
9606
 
      fi
9607
 
      ;;
9608
 
 
9609
 
    sysv4.2uw2*)
9610
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9611
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
9612
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
9613
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9614
 
      hardcode_runpath_var=yes
9615
 
      runpath_var=LD_RUN_PATH
9616
 
      ;;
9617
 
 
9618
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
9619
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
9620
 
      if test "$GCC" = yes; then
9621
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9622
 
      else
9623
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9624
 
      fi
9625
 
      runpath_var='LD_RUN_PATH'
9626
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9627
 
      ;;
9628
 
 
9629
 
    sysv5*)
9630
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
9631
 
      # $CC -shared without GNU ld will not create a library from C++
9632
 
      # object files and a static libstdc++, better avoid it by now
9633
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9635
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9636
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
9637
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9638
 
      runpath_var='LD_RUN_PATH'
 
6607
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6608
      fi
 
6609
      ;;
 
6610
 
 
6611
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6612
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6613
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6614
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6615
      runpath_var='LD_RUN_PATH'
 
6616
 
 
6617
      if test "$GCC" = yes; then
 
6618
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6619
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6620
      else
 
6621
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6622
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6623
      fi
 
6624
      ;;
 
6625
 
 
6626
    sysv5* | sco3.2v5* | sco5v6*)
 
6627
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6628
      # link with -lc, and that would cause any symbols used from libc to
 
6629
      # always be unresolved, which means just about no library would
 
6630
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6631
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6632
      # as -z defs.
 
6633
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6634
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6635
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6636
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6637
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6638
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6639
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6640
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6641
      runpath_var='LD_RUN_PATH'
 
6642
 
 
6643
      if test "$GCC" = yes; then
 
6644
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6645
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6646
      else
 
6647
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6648
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6649
      fi
9639
6650
      ;;
9640
6651
 
9641
6652
    uts4*)
9642
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9644
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6653
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6654
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6655
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9645
6656
      ;;
9646
6657
 
9647
6658
    *)
9648
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6659
      _LT_TAGVAR(ld_shlibs, $1)=no
9649
6660
      ;;
9650
6661
    esac
 
6662
 
 
6663
    if test x$host_vendor = xsni; then
 
6664
      case $host in
 
6665
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6666
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
6667
        ;;
 
6668
      esac
 
6669
    fi
9651
6670
  fi
9652
6671
])
9653
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
9654
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
9655
 
 
9656
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9657
 
if test "$GCC" = yes; then
9658
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9659
 
fi
 
6672
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6673
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6674
 
 
6675
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
6676
 
 
6677
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
6678
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
6679
_LT_DECL([], [extract_expsyms_cmds], [2],
 
6680
    [The commands to extract the exported symbol list from a shared archive])
9660
6681
 
9661
6682
#
9662
6683
# Do we need to explicitly link libc?
9663
6684
#
9664
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
6685
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
9665
6686
x|xyes)
9666
6687
  # Assume -lc should be added
9667
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6688
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9668
6689
 
9669
6690
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9670
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
6691
    case $_LT_TAGVAR(archive_cmds, $1) in
9671
6692
    *'~'*)
9672
6693
      # FIXME: we may have to deal with multi-command sequences.
9673
6694
      ;;
9676
6697
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9677
6698
      # to ld, don't add -lc before -lgcc.
9678
6699
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
9679
 
      $rm conftest*
9680
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6700
      $RM conftest*
 
6701
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9681
6702
 
9682
6703
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
9683
6704
        soname=conftest
9684
6705
        lib=conftest
9685
6706
        libobjs=conftest.$ac_objext
9686
6707
        deplibs=
9687
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6708
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
6709
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
9688
6710
        compiler_flags=-v
9689
6711
        linker_flags=-v
9690
6712
        verstring=
9691
6713
        output_objdir=.
9692
6714
        libname=conftest
9693
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
9694
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
9695
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6715
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
6716
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
6717
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
9696
6718
        then
9697
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6719
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9698
6720
        else
9699
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6721
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9700
6722
        fi
9701
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6723
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
9702
6724
      else
9703
6725
        cat conftest.err 1>&5
9704
6726
      fi
9705
 
      $rm conftest*
9706
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6727
      $RM conftest*
 
6728
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
9707
6729
      ;;
9708
6730
    esac
9709
6731
  fi
9710
6732
  ;;
9711
6733
esac
9712
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
9713
 
 
9714
 
 
9715
 
# _LT_AC_FILE_LTDLL_C
9716
 
# -------------------
9717
 
# Be careful that the start marker always follows a newline.
9718
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
9719
 
# /* ltdll.c starts here */
9720
 
# #define WIN32_LEAN_AND_MEAN
9721
 
# #include <windows.h>
9722
 
# #undef WIN32_LEAN_AND_MEAN
9723
 
# #include <stdio.h>
9724
 
#
9725
 
# #ifndef __CYGWIN__
9726
 
# #  ifdef __CYGWIN32__
9727
 
# #    define __CYGWIN__ __CYGWIN32__
9728
 
# #  endif
9729
 
# #endif
9730
 
#
9731
 
# #ifdef __cplusplus
9732
 
# extern "C" {
9733
 
# #endif
9734
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9735
 
# #ifdef __cplusplus
9736
 
# }
9737
 
# #endif
9738
 
#
9739
 
# #ifdef __CYGWIN__
9740
 
# #include <cygwin/cygwin_dll.h>
9741
 
# DECLARE_CYGWIN_DLL( DllMain );
9742
 
# #endif
9743
 
# HINSTANCE __hDllInstance_base;
9744
 
#
9745
 
# BOOL APIENTRY
9746
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9747
 
# {
9748
 
#   __hDllInstance_base = hInst;
9749
 
#   return TRUE;
9750
 
# }
9751
 
# /* ltdll.c ends here */
9752
 
])# _LT_AC_FILE_LTDLL_C
9753
 
 
9754
 
 
9755
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6734
 
 
6735
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
6736
    [Whether or not to add -lc for building shared libraries])
 
6737
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
6738
    [enable_shared_with_static_runtimes], [0],
 
6739
    [Whether or not to disallow shared libs when runtime libs are static])
 
6740
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
6741
    [Compiler flag to allow reflexive dlopens])
 
6742
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
6743
    [Compiler flag to generate shared objects directly from archives])
 
6744
_LT_TAGDECL([], [compiler_needs_object], [1],
 
6745
    [Whether the compiler copes with passing no objects directly])
 
6746
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
6747
    [Create an old-style archive from a shared archive])
 
6748
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
6749
    [Create a temporary old-style archive to link instead of a shared archive])
 
6750
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
6751
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
6752
_LT_TAGDECL([], [module_cmds], [2],
 
6753
    [Commands used to build a loadable module if different from building
 
6754
    a shared archive.])
 
6755
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
6756
_LT_TAGDECL([], [with_gnu_ld], [1],
 
6757
    [Whether we are building with GNU ld or not])
 
6758
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
6759
    [Flag that allows shared libraries with undefined symbols to be built])
 
6760
_LT_TAGDECL([], [no_undefined_flag], [1],
 
6761
    [Flag that enforces no undefined symbols])
 
6762
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
6763
    [Flag to hardcode $libdir into a binary during linking.
 
6764
    This must work even if $libdir does not exist])
 
6765
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
6766
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
6767
    during linking.  This must work even if $libdir does not exist]])
 
6768
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
6769
    [Whether we need a single "-rpath" flag with a separated argument])
 
6770
_LT_TAGDECL([], [hardcode_direct], [0],
 
6771
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6772
    DIR into the resulting binary])
 
6773
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
6774
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
6775
    DIR into the resulting binary and the resulting library dependency is
 
6776
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
6777
    library is relocated])
 
6778
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
6779
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
6780
    into the resulting binary])
 
6781
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
6782
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
6783
    into the resulting binary])
 
6784
_LT_TAGDECL([], [hardcode_automatic], [0],
 
6785
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
6786
    into the library and all subsequent libraries and executables linked
 
6787
    against it])
 
6788
_LT_TAGDECL([], [inherit_rpath], [0],
 
6789
    [Set to yes if linker adds runtime paths of dependent libraries
 
6790
    to runtime path list])
 
6791
_LT_TAGDECL([], [link_all_deplibs], [0],
 
6792
    [Whether libtool must link a program against all its dependency libraries])
 
6793
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
6794
    [Fix the shell variable $srcfile for the compiler])
 
6795
_LT_TAGDECL([], [always_export_symbols], [0],
 
6796
    [Set to "yes" if exported symbols are required])
 
6797
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
6798
    [The commands to list exported symbols])
 
6799
_LT_TAGDECL([], [exclude_expsyms], [1],
 
6800
    [Symbols that should not be listed in the preloaded symbols])
 
6801
_LT_TAGDECL([], [include_expsyms], [1],
 
6802
    [Symbols that must always be exported])
 
6803
_LT_TAGDECL([], [prelink_cmds], [2],
 
6804
    [Commands necessary for linking programs (against libraries) with templates])
 
6805
_LT_TAGDECL([], [file_list_spec], [1],
 
6806
    [Specify filename containing input files])
 
6807
dnl FIXME: Not yet implemented
 
6808
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
6809
dnl    [Compiler flag to generate thread safe objects])
 
6810
])# _LT_LINKER_SHLIBS
 
6811
 
 
6812
 
 
6813
# _LT_LANG_C_CONFIG([TAG])
 
6814
# ------------------------
 
6815
# Ensure that the configuration variables for a C compiler are suitably
 
6816
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6817
# the compiler configuration to `libtool'.
 
6818
m4_defun([_LT_LANG_C_CONFIG],
 
6819
[m4_require([_LT_DECL_EGREP])dnl
 
6820
lt_save_CC="$CC"
 
6821
AC_LANG_PUSH(C)
 
6822
 
 
6823
# Source file extension for C test sources.
 
6824
ac_ext=c
 
6825
 
 
6826
# Object file extension for compiled C test sources.
 
6827
objext=o
 
6828
_LT_TAGVAR(objext, $1)=$objext
 
6829
 
 
6830
# Code to be used in simple compile tests
 
6831
lt_simple_compile_test_code="int some_variable = 0;"
 
6832
 
 
6833
# Code to be used in simple link tests
 
6834
lt_simple_link_test_code='int main(){return(0);}'
 
6835
 
 
6836
_LT_TAG_COMPILER
 
6837
# Save the default compiler, since it gets overwritten when the other
 
6838
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
6839
compiler_DEFAULT=$CC
 
6840
 
 
6841
# save warnings/boilerplate of simple test code
 
6842
_LT_COMPILER_BOILERPLATE
 
6843
_LT_LINKER_BOILERPLATE
 
6844
 
 
6845
if test -n "$compiler"; then
 
6846
  _LT_COMPILER_NO_RTTI($1)
 
6847
  _LT_COMPILER_PIC($1)
 
6848
  _LT_COMPILER_C_O($1)
 
6849
  _LT_COMPILER_FILE_LOCKS($1)
 
6850
  _LT_LINKER_SHLIBS($1)
 
6851
  _LT_SYS_DYNAMIC_LINKER($1)
 
6852
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6853
  LT_SYS_DLOPEN_SELF
 
6854
  _LT_CMD_STRIPLIB
 
6855
 
 
6856
  # Report which library types will actually be built
 
6857
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
6858
  AC_MSG_RESULT([$can_build_shared])
 
6859
 
 
6860
  AC_MSG_CHECKING([whether to build shared libraries])
 
6861
  test "$can_build_shared" = "no" && enable_shared=no
 
6862
 
 
6863
  # On AIX, shared libraries and static libraries use the same namespace, and
 
6864
  # are all built from PIC.
 
6865
  case $host_os in
 
6866
  aix3*)
 
6867
    test "$enable_shared" = yes && enable_static=no
 
6868
    if test -n "$RANLIB"; then
 
6869
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6870
      postinstall_cmds='$RANLIB $lib'
 
6871
    fi
 
6872
    ;;
 
6873
 
 
6874
  aix[[4-9]]*)
 
6875
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6876
      test "$enable_shared" = yes && enable_static=no
 
6877
    fi
 
6878
    ;;
 
6879
  esac
 
6880
  AC_MSG_RESULT([$enable_shared])
 
6881
 
 
6882
  AC_MSG_CHECKING([whether to build static libraries])
 
6883
  # Make sure either enable_shared or enable_static is yes.
 
6884
  test "$enable_shared" = yes || enable_static=yes
 
6885
  AC_MSG_RESULT([$enable_static])
 
6886
 
 
6887
  _LT_CONFIG($1)
 
6888
fi
 
6889
AC_LANG_POP
 
6890
CC="$lt_save_CC"
 
6891
])# _LT_LANG_C_CONFIG
 
6892
 
 
6893
 
 
6894
# _LT_PROG_CXX
 
6895
# ------------
 
6896
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
6897
# compiler, we have our own version here.
 
6898
m4_defun([_LT_PROG_CXX],
 
6899
[
 
6900
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
6901
AC_PROG_CXX
 
6902
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6903
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6904
    (test "X$CXX" != "Xg++"))) ; then
 
6905
  AC_PROG_CXXCPP
 
6906
else
 
6907
  _lt_caught_CXX_error=yes
 
6908
fi
 
6909
popdef([AC_MSG_ERROR])
 
6910
])# _LT_PROG_CXX
 
6911
 
 
6912
dnl aclocal-1.4 backwards compatibility:
 
6913
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
6914
 
 
6915
 
 
6916
# _LT_LANG_CXX_CONFIG([TAG])
 
6917
# --------------------------
 
6918
# Ensure that the configuration variables for a C++ compiler are suitably
 
6919
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
6920
# the compiler configuration to `libtool'.
 
6921
m4_defun([_LT_LANG_CXX_CONFIG],
 
6922
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
6923
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6924
m4_require([_LT_DECL_EGREP])dnl
 
6925
 
 
6926
AC_LANG_PUSH(C++)
 
6927
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6928
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6929
_LT_TAGVAR(always_export_symbols, $1)=no
 
6930
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6931
_LT_TAGVAR(compiler_needs_object, $1)=no
 
6932
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6933
_LT_TAGVAR(hardcode_direct, $1)=no
 
6934
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6935
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6936
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6937
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6938
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6939
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6940
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6941
_LT_TAGVAR(inherit_rpath, $1)=no
 
6942
_LT_TAGVAR(module_cmds, $1)=
 
6943
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6944
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6945
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6946
_LT_TAGVAR(no_undefined_flag, $1)=
 
6947
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6948
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6949
 
 
6950
# Source file extension for C++ test sources.
 
6951
ac_ext=cpp
 
6952
 
 
6953
# Object file extension for compiled C++ test sources.
 
6954
objext=o
 
6955
_LT_TAGVAR(objext, $1)=$objext
 
6956
 
 
6957
# No sense in running all these tests if we already determined that
 
6958
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
6959
# are currently assumed to apply to all compilers on this platform,
 
6960
# and will be corrupted by setting them based on a non-working compiler.
 
6961
if test "$_lt_caught_CXX_error" != yes; then
 
6962
  # Code to be used in simple compile tests
 
6963
  lt_simple_compile_test_code="int some_variable = 0;"
 
6964
 
 
6965
  # Code to be used in simple link tests
 
6966
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
6967
 
 
6968
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6969
  _LT_TAG_COMPILER
 
6970
 
 
6971
  # save warnings/boilerplate of simple test code
 
6972
  _LT_COMPILER_BOILERPLATE
 
6973
  _LT_LINKER_BOILERPLATE
 
6974
 
 
6975
  # Allow CC to be a program name with arguments.
 
6976
  lt_save_CC=$CC
 
6977
  lt_save_LD=$LD
 
6978
  lt_save_GCC=$GCC
 
6979
  GCC=$GXX
 
6980
  lt_save_with_gnu_ld=$with_gnu_ld
 
6981
  lt_save_path_LD=$lt_cv_path_LD
 
6982
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
6983
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
6984
  else
 
6985
    $as_unset lt_cv_prog_gnu_ld
 
6986
  fi
 
6987
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
6988
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
6989
  else
 
6990
    $as_unset lt_cv_path_LD
 
6991
  fi
 
6992
  test -z "${LDCXX+set}" || LD=$LDCXX
 
6993
  CC=${CXX-"c++"}
 
6994
  compiler=$CC
 
6995
  _LT_TAGVAR(compiler, $1)=$CC
 
6996
  _LT_CC_BASENAME([$compiler])
 
6997
 
 
6998
  if test -n "$compiler"; then
 
6999
    # We don't want -fno-exception when compiling C++ code, so set the
 
7000
    # no_builtin_flag separately
 
7001
    if test "$GXX" = yes; then
 
7002
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
7003
    else
 
7004
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
7005
    fi
 
7006
 
 
7007
    if test "$GXX" = yes; then
 
7008
      # Set up default GNU C++ configuration
 
7009
 
 
7010
      LT_PATH_LD
 
7011
 
 
7012
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
7013
      # archiving commands below assume that GNU ld is being used.
 
7014
      if test "$with_gnu_ld" = yes; then
 
7015
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7016
        _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'
 
7017
 
 
7018
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7019
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7020
 
 
7021
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
7022
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
7023
        #     investigate it a little bit more. (MM)
 
7024
        wlarc='${wl}'
 
7025
 
 
7026
        # ancient GNU ld didn't support --whole-archive et. al.
 
7027
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
7028
          $GREP 'no-whole-archive' > /dev/null; then
 
7029
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7030
        else
 
7031
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
7032
        fi
 
7033
      else
 
7034
        with_gnu_ld=no
 
7035
        wlarc=
 
7036
 
 
7037
        # A generic and very simple default shared library creation
 
7038
        # command for GNU C++ for the case where it uses the native
 
7039
        # linker, instead of GNU ld.  If possible, this setting should
 
7040
        # overridden to take advantage of the native linker features on
 
7041
        # the platform it is being used on.
 
7042
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
7043
      fi
 
7044
 
 
7045
      # Commands to make compiler produce verbose output that lists
 
7046
      # what "hidden" libraries, object files and flags are used when
 
7047
      # linking a shared library.
 
7048
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7049
 
 
7050
    else
 
7051
      GXX=no
 
7052
      with_gnu_ld=no
 
7053
      wlarc=
 
7054
    fi
 
7055
 
 
7056
    # PORTME: fill in a description of your system's C++ link characteristics
 
7057
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
7058
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
7059
    case $host_os in
 
7060
      aix3*)
 
7061
        # FIXME: insert proper C++ library support
 
7062
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7063
        ;;
 
7064
      aix[[4-9]]*)
 
7065
        if test "$host_cpu" = ia64; then
 
7066
          # On IA64, the linker does run time linking by default, so we don't
 
7067
          # have to do anything special.
 
7068
          aix_use_runtimelinking=no
 
7069
          exp_sym_flag='-Bexport'
 
7070
          no_entry_flag=""
 
7071
        else
 
7072
          aix_use_runtimelinking=no
 
7073
 
 
7074
          # Test if we are trying to use run time linking or normal
 
7075
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7076
          # need to do runtime linking.
 
7077
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
7078
            for ld_flag in $LDFLAGS; do
 
7079
              case $ld_flag in
 
7080
              *-brtl*)
 
7081
                aix_use_runtimelinking=yes
 
7082
                break
 
7083
                ;;
 
7084
              esac
 
7085
            done
 
7086
            ;;
 
7087
          esac
 
7088
 
 
7089
          exp_sym_flag='-bexport'
 
7090
          no_entry_flag='-bnoentry'
 
7091
        fi
 
7092
 
 
7093
        # When large executables or shared objects are built, AIX ld can
 
7094
        # have problems creating the table of contents.  If linking a library
 
7095
        # or program results in "error TOC overflow" add -mminimal-toc to
 
7096
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7097
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7098
 
 
7099
        _LT_TAGVAR(archive_cmds, $1)=''
 
7100
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
7101
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7102
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7103
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7104
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
7105
 
 
7106
        if test "$GXX" = yes; then
 
7107
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
7108
          # We only want to do this on AIX 4.2 and lower, the check
 
7109
          # below for broken collect2 doesn't work under 4.3+
 
7110
          collect2name=`${CC} -print-prog-name=collect2`
 
7111
          if test -f "$collect2name" &&
 
7112
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
7113
          then
 
7114
            # We have reworked collect2
 
7115
            :
 
7116
          else
 
7117
            # We have old collect2
 
7118
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
7119
            # It fails to find uninstalled libraries when the uninstalled
 
7120
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
7121
            # to unsupported forces relinking
 
7122
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
7123
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7124
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
7125
          fi
 
7126
          esac
 
7127
          shared_flag='-shared'
 
7128
          if test "$aix_use_runtimelinking" = yes; then
 
7129
            shared_flag="$shared_flag "'${wl}-G'
 
7130
          fi
 
7131
        else
 
7132
          # not using gcc
 
7133
          if test "$host_cpu" = ia64; then
 
7134
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7135
          # chokes on -Wl,-G. The following line is correct:
 
7136
          shared_flag='-G'
 
7137
          else
 
7138
            if test "$aix_use_runtimelinking" = yes; then
 
7139
              shared_flag='${wl}-G'
 
7140
            else
 
7141
              shared_flag='${wl}-bM:SRE'
 
7142
            fi
 
7143
          fi
 
7144
        fi
 
7145
 
 
7146
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
7147
        # It seems that -bexpall does not export symbols beginning with
 
7148
        # underscore (_), so it is better to generate a list of symbols to
 
7149
        # export.
 
7150
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
7151
        if test "$aix_use_runtimelinking" = yes; then
 
7152
          # Warning - without using the other runtime loading flags (-brtl),
 
7153
          # -berok will link without error, but may produce a broken library.
 
7154
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
7155
          # Determine the default libpath from the value encoded in an empty
 
7156
          # executable.
 
7157
          _LT_SYS_MODULE_PATH_AIX
 
7158
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7159
 
 
7160
          _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"
 
7161
        else
 
7162
          if test "$host_cpu" = ia64; then
 
7163
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
7164
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
7165
            _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"
 
7166
          else
 
7167
            # Determine the default libpath from the value encoded in an
 
7168
            # empty executable.
 
7169
            _LT_SYS_MODULE_PATH_AIX
 
7170
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7171
            # Warning - without using the other run time loading flags,
 
7172
            # -berok will link without error, but may produce a broken library.
 
7173
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
7174
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
7175
            # Exported symbols can be pulled into shared objects from archives
 
7176
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
7177
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7178
            # This is similar to how AIX traditionally builds its shared
 
7179
            # libraries.
 
7180
            _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'
 
7181
          fi
 
7182
        fi
 
7183
        ;;
 
7184
 
 
7185
      beos*)
 
7186
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7187
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7188
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7189
          # support --undefined.  This deserves some investigation.  FIXME
 
7190
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7191
        else
 
7192
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7193
        fi
 
7194
        ;;
 
7195
 
 
7196
      chorus*)
 
7197
        case $cc_basename in
 
7198
          *)
 
7199
          # FIXME: insert proper C++ library support
 
7200
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7201
          ;;
 
7202
        esac
 
7203
        ;;
 
7204
 
 
7205
      cygwin* | mingw* | pw32* | cegcc*)
 
7206
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
7207
        # as there is no search path for DLLs.
 
7208
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7209
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
7210
        _LT_TAGVAR(always_export_symbols, $1)=no
 
7211
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7212
 
 
7213
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
7214
          _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'
 
7215
          # If the export-symbols file already is a .def file (1st line
 
7216
          # is EXPORTS), use it as is; otherwise, prepend...
 
7217
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7218
            cp $export_symbols $output_objdir/$soname.def;
 
7219
          else
 
7220
            echo EXPORTS > $output_objdir/$soname.def;
 
7221
            cat $export_symbols >> $output_objdir/$soname.def;
 
7222
          fi~
 
7223
          $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'
 
7224
        else
 
7225
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7226
        fi
 
7227
        ;;
 
7228
      darwin* | rhapsody*)
 
7229
        _LT_DARWIN_LINKER_FEATURES($1)
 
7230
        ;;
 
7231
 
 
7232
      dgux*)
 
7233
        case $cc_basename in
 
7234
          ec++*)
 
7235
            # FIXME: insert proper C++ library support
 
7236
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7237
            ;;
 
7238
          ghcx*)
 
7239
            # Green Hills C++ Compiler
 
7240
            # FIXME: insert proper C++ library support
 
7241
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7242
            ;;
 
7243
          *)
 
7244
            # FIXME: insert proper C++ library support
 
7245
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7246
            ;;
 
7247
        esac
 
7248
        ;;
 
7249
 
 
7250
      freebsd[[12]]*)
 
7251
        # C++ shared libraries reported to be fairly broken before
 
7252
        # switch to ELF
 
7253
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7254
        ;;
 
7255
 
 
7256
      freebsd-elf*)
 
7257
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7258
        ;;
 
7259
 
 
7260
      freebsd* | dragonfly*)
 
7261
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
7262
        # conventions
 
7263
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7264
        ;;
 
7265
 
 
7266
      gnu*)
 
7267
        ;;
 
7268
 
 
7269
      hpux9*)
 
7270
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7271
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7272
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7273
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
7274
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
7275
                                             # but as the default
 
7276
                                             # location of the library.
 
7277
 
 
7278
        case $cc_basename in
 
7279
          CC*)
 
7280
            # FIXME: insert proper C++ library support
 
7281
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7282
            ;;
 
7283
          aCC*)
 
7284
            _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'
 
7285
            # Commands to make compiler produce verbose output that lists
 
7286
            # what "hidden" libraries, object files and flags are used when
 
7287
            # linking a shared library.
 
7288
            #
 
7289
            # There doesn't appear to be a way to prevent this compiler from
 
7290
            # explicitly linking system object files so we need to strip them
 
7291
            # from the output so that they don't get included in the library
 
7292
            # dependencies.
 
7293
            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'
 
7294
            ;;
 
7295
          *)
 
7296
            if test "$GXX" = yes; then
 
7297
              _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'
 
7298
            else
 
7299
              # FIXME: insert proper C++ library support
 
7300
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7301
            fi
 
7302
            ;;
 
7303
        esac
 
7304
        ;;
 
7305
 
 
7306
      hpux10*|hpux11*)
 
7307
        if test $with_gnu_ld = no; then
 
7308
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
7309
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7310
 
 
7311
          case $host_cpu in
 
7312
            hppa*64*|ia64*)
 
7313
              ;;
 
7314
            *)
 
7315
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7316
              ;;
 
7317
          esac
 
7318
        fi
 
7319
        case $host_cpu in
 
7320
          hppa*64*|ia64*)
 
7321
            _LT_TAGVAR(hardcode_direct, $1)=no
 
7322
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7323
            ;;
 
7324
          *)
 
7325
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
7326
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7327
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
7328
                                                 # but as the default
 
7329
                                                 # location of the library.
 
7330
            ;;
 
7331
        esac
 
7332
 
 
7333
        case $cc_basename in
 
7334
          CC*)
 
7335
            # FIXME: insert proper C++ library support
 
7336
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7337
            ;;
 
7338
          aCC*)
 
7339
            case $host_cpu in
 
7340
              hppa*64*)
 
7341
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7342
                ;;
 
7343
              ia64*)
 
7344
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7345
                ;;
 
7346
              *)
 
7347
                _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'
 
7348
                ;;
 
7349
            esac
 
7350
            # Commands to make compiler produce verbose output that lists
 
7351
            # what "hidden" libraries, object files and flags are used when
 
7352
            # linking a shared library.
 
7353
            #
 
7354
            # There doesn't appear to be a way to prevent this compiler from
 
7355
            # explicitly linking system object files so we need to strip them
 
7356
            # from the output so that they don't get included in the library
 
7357
            # dependencies.
 
7358
            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'
 
7359
            ;;
 
7360
          *)
 
7361
            if test "$GXX" = yes; then
 
7362
              if test $with_gnu_ld = no; then
 
7363
                case $host_cpu in
 
7364
                  hppa*64*)
 
7365
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7366
                    ;;
 
7367
                  ia64*)
 
7368
                    _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'
 
7369
                    ;;
 
7370
                  *)
 
7371
                    _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'
 
7372
                    ;;
 
7373
                esac
 
7374
              fi
 
7375
            else
 
7376
              # FIXME: insert proper C++ library support
 
7377
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7378
            fi
 
7379
            ;;
 
7380
        esac
 
7381
        ;;
 
7382
 
 
7383
      interix[[3-9]]*)
 
7384
        _LT_TAGVAR(hardcode_direct, $1)=no
 
7385
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7386
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7387
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7388
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7389
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7390
        # default) and relocated if they conflict, which is a slow very memory
 
7391
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
7392
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7393
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7394
        _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'
 
7395
        _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'
 
7396
        ;;
 
7397
      irix5* | irix6*)
 
7398
        case $cc_basename in
 
7399
          CC*)
 
7400
            # SGI C++
 
7401
            _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'
 
7402
 
 
7403
            # Archives containing C++ object files must be created using
 
7404
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
7405
            # necessary to make sure instantiated templates are included
 
7406
            # in the archive.
 
7407
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
7408
            ;;
 
7409
          *)
 
7410
            if test "$GXX" = yes; then
 
7411
              if test "$with_gnu_ld" = no; then
 
7412
                _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'
 
7413
              else
 
7414
                _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'
 
7415
              fi
 
7416
            fi
 
7417
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7418
            ;;
 
7419
        esac
 
7420
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7421
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7422
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
7423
        ;;
 
7424
 
 
7425
      linux* | k*bsd*-gnu)
 
7426
        case $cc_basename in
 
7427
          KCC*)
 
7428
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
7429
 
 
7430
            # KCC will only create a shared library if the output file
 
7431
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
7432
            # to its proper name (with version) after linking.
 
7433
            _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'
 
7434
            _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'
 
7435
            # Commands to make compiler produce verbose output that lists
 
7436
            # what "hidden" libraries, object files and flags are used when
 
7437
            # linking a shared library.
 
7438
            #
 
7439
            # There doesn't appear to be a way to prevent this compiler from
 
7440
            # explicitly linking system object files so we need to strip them
 
7441
            # from the output so that they don't get included in the library
 
7442
            # dependencies.
 
7443
            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'
 
7444
 
 
7445
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7446
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7447
 
 
7448
            # Archives containing C++ object files must be created using
 
7449
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
7450
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
7451
            ;;
 
7452
          icpc* | ecpc* )
 
7453
            # Intel C++
 
7454
            with_gnu_ld=yes
 
7455
            # version 8.0 and above of icpc choke on multiply defined symbols
 
7456
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
7457
            # earlier do not add the objects themselves.
 
7458
            case `$CC -V 2>&1` in
 
7459
              *"Version 7."*)
 
7460
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7461
                _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'
 
7462
                ;;
 
7463
              *)  # Version 8.0 or newer
 
7464
                tmp_idyn=
 
7465
                case $host_cpu in
 
7466
                  ia64*) tmp_idyn=' -i_dynamic';;
 
7467
                esac
 
7468
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7469
                _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'
 
7470
                ;;
 
7471
            esac
 
7472
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7473
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7474
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7475
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
7476
            ;;
 
7477
          pgCC* | pgcpp*)
 
7478
            # Portland Group C++ compiler
 
7479
            case `$CC -V` in
 
7480
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
7481
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
7482
                rm -rf $tpldir~
 
7483
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
7484
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
7485
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
7486
                rm -rf $tpldir~
 
7487
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
7488
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
7489
                $RANLIB $oldlib'
 
7490
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
7491
                rm -rf $tpldir~
 
7492
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
7493
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7494
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
7495
                rm -rf $tpldir~
 
7496
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
7497
                $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'
 
7498
              ;;
 
7499
            *) # Version 6 will use weak symbols
 
7500
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
7501
              _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'
 
7502
              ;;
 
7503
            esac
 
7504
 
 
7505
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
7506
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7507
            _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'
 
7508
            ;;
 
7509
          cxx*)
 
7510
            # Compaq C++
 
7511
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7512
            _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'
 
7513
 
 
7514
            runpath_var=LD_RUN_PATH
 
7515
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7516
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7517
 
 
7518
            # Commands to make compiler produce verbose output that lists
 
7519
            # what "hidden" libraries, object files and flags are used when
 
7520
            # linking a shared library.
 
7521
            #
 
7522
            # There doesn't appear to be a way to prevent this compiler from
 
7523
            # explicitly linking system object files so we need to strip them
 
7524
            # from the output so that they don't get included in the library
 
7525
            # dependencies.
 
7526
            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'
 
7527
            ;;
 
7528
          xl*)
 
7529
            # IBM XL 8.0 on PPC, with GNU ld
 
7530
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7531
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
7532
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7533
            if test "x$supports_anon_versioning" = xyes; then
 
7534
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
7535
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7536
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
7537
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7538
            fi
 
7539
            ;;
 
7540
          *)
 
7541
            case `$CC -V 2>&1 | sed 5q` in
 
7542
            *Sun\ C*)
 
7543
              # Sun C++ 5.9
 
7544
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7545
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7546
              _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'
 
7547
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7548
              _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'
 
7549
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
7550
 
 
7551
              # Not sure whether something based on
 
7552
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
7553
              # would be better.
 
7554
              output_verbose_link_cmd='echo'
 
7555
 
 
7556
              # Archives containing C++ object files must be created using
 
7557
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7558
              # necessary to make sure instantiated templates are included
 
7559
              # in the archive.
 
7560
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7561
              ;;
 
7562
            esac
 
7563
            ;;
 
7564
        esac
 
7565
        ;;
 
7566
 
 
7567
      lynxos*)
 
7568
        # FIXME: insert proper C++ library support
 
7569
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7570
        ;;
 
7571
 
 
7572
      m88k*)
 
7573
        # FIXME: insert proper C++ library support
 
7574
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7575
        ;;
 
7576
 
 
7577
      mvs*)
 
7578
        case $cc_basename in
 
7579
          cxx*)
 
7580
            # FIXME: insert proper C++ library support
 
7581
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7582
            ;;
 
7583
          *)
 
7584
            # FIXME: insert proper C++ library support
 
7585
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7586
            ;;
 
7587
        esac
 
7588
        ;;
 
7589
 
 
7590
      netbsd*)
 
7591
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7592
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
7593
          wlarc=
 
7594
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7595
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7596
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7597
        fi
 
7598
        # Workaround some broken pre-1.5 toolchains
 
7599
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
7600
        ;;
 
7601
 
 
7602
      *nto* | *qnx*)
 
7603
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7604
        ;;
 
7605
 
 
7606
      openbsd2*)
 
7607
        # C++ shared libraries are fairly broken
 
7608
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7609
        ;;
 
7610
 
 
7611
      openbsd*)
 
7612
        if test -f /usr/libexec/ld.so; then
 
7613
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
7614
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7615
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
7616
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
7617
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7618
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7619
            _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'
 
7620
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
7621
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7622
          fi
 
7623
          output_verbose_link_cmd=echo
 
7624
        else
 
7625
          _LT_TAGVAR(ld_shlibs, $1)=no
 
7626
        fi
 
7627
        ;;
 
7628
 
 
7629
      osf3* | osf4* | osf5*)
 
7630
        case $cc_basename in
 
7631
          KCC*)
 
7632
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
7633
 
 
7634
            # KCC will only create a shared library if the output file
 
7635
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
7636
            # to its proper name (with version) after linking.
 
7637
            _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'
 
7638
 
 
7639
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
7640
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7641
 
 
7642
            # Archives containing C++ object files must be created using
 
7643
            # the KAI C++ compiler.
 
7644
            case $host in
 
7645
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
7646
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
7647
            esac
 
7648
            ;;
 
7649
          RCC*)
 
7650
            # Rational C++ 2.4.1
 
7651
            # FIXME: insert proper C++ library support
 
7652
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7653
            ;;
 
7654
          cxx*)
 
7655
            case $host in
 
7656
              osf3*)
 
7657
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7658
                _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'
 
7659
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7660
                ;;
 
7661
              *)
 
7662
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7663
                _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'
 
7664
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
7665
                  echo "-hidden">> $lib.exp~
 
7666
                  $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~
 
7667
                  $RM $lib.exp'
 
7668
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7669
                ;;
 
7670
            esac
 
7671
 
 
7672
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7673
 
 
7674
            # Commands to make compiler produce verbose output that lists
 
7675
            # what "hidden" libraries, object files and flags are used when
 
7676
            # linking a shared library.
 
7677
            #
 
7678
            # There doesn't appear to be a way to prevent this compiler from
 
7679
            # explicitly linking system object files so we need to strip them
 
7680
            # from the output so that they don't get included in the library
 
7681
            # dependencies.
 
7682
            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'
 
7683
            ;;
 
7684
          *)
 
7685
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7686
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
7687
              case $host in
 
7688
                osf3*)
 
7689
                  _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'
 
7690
                  ;;
 
7691
                *)
 
7692
                  _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'
 
7693
                  ;;
 
7694
              esac
 
7695
 
 
7696
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
7697
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7698
 
 
7699
              # Commands to make compiler produce verbose output that lists
 
7700
              # what "hidden" libraries, object files and flags are used when
 
7701
              # linking a shared library.
 
7702
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7703
 
 
7704
            else
 
7705
              # FIXME: insert proper C++ library support
 
7706
              _LT_TAGVAR(ld_shlibs, $1)=no
 
7707
            fi
 
7708
            ;;
 
7709
        esac
 
7710
        ;;
 
7711
 
 
7712
      psos*)
 
7713
        # FIXME: insert proper C++ library support
 
7714
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7715
        ;;
 
7716
 
 
7717
      sunos4*)
 
7718
        case $cc_basename in
 
7719
          CC*)
 
7720
            # Sun C++ 4.x
 
7721
            # FIXME: insert proper C++ library support
 
7722
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7723
            ;;
 
7724
          lcc*)
 
7725
            # Lucid
 
7726
            # FIXME: insert proper C++ library support
 
7727
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7728
            ;;
 
7729
          *)
 
7730
            # FIXME: insert proper C++ library support
 
7731
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7732
            ;;
 
7733
        esac
 
7734
        ;;
 
7735
 
 
7736
      solaris*)
 
7737
        case $cc_basename in
 
7738
          CC*)
 
7739
            # Sun C++ 4.2, 5.x and Centerline C++
 
7740
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
7741
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
7742
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
7743
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7744
              $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'
 
7745
 
 
7746
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7747
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7748
            case $host_os in
 
7749
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7750
              *)
 
7751
                # The compiler driver will combine and reorder linker options,
 
7752
                # but understands `-z linker_flag'.
 
7753
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7754
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7755
                ;;
 
7756
            esac
 
7757
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7758
 
 
7759
            output_verbose_link_cmd='echo'
 
7760
 
 
7761
            # Archives containing C++ object files must be created using
 
7762
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
7763
            # necessary to make sure instantiated templates are included
 
7764
            # in the archive.
 
7765
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
7766
            ;;
 
7767
          gcx*)
 
7768
            # Green Hills C++ Compiler
 
7769
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7770
 
 
7771
            # The C++ compiler must be used to create the archive.
 
7772
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
7773
            ;;
 
7774
          *)
 
7775
            # GNU C++ compiler with Solaris linker
 
7776
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
7777
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
7778
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
7779
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7780
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7781
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7782
 
 
7783
                # Commands to make compiler produce verbose output that lists
 
7784
                # what "hidden" libraries, object files and flags are used when
 
7785
                # linking a shared library.
 
7786
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7787
              else
 
7788
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
7789
                # platform.
 
7790
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
7791
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
7792
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
7793
 
 
7794
                # Commands to make compiler produce verbose output that lists
 
7795
                # what "hidden" libraries, object files and flags are used when
 
7796
                # linking a shared library.
 
7797
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
7798
              fi
 
7799
 
 
7800
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
7801
              case $host_os in
 
7802
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
7803
                *)
 
7804
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7805
                  ;;
 
7806
              esac
 
7807
            fi
 
7808
            ;;
 
7809
        esac
 
7810
        ;;
 
7811
 
 
7812
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
7813
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7814
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7815
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7816
      runpath_var='LD_RUN_PATH'
 
7817
 
 
7818
      case $cc_basename in
 
7819
        CC*)
 
7820
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7821
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7822
          ;;
 
7823
        *)
 
7824
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7825
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7826
          ;;
 
7827
      esac
 
7828
      ;;
 
7829
 
 
7830
      sysv5* | sco3.2v5* | sco5v6*)
 
7831
        # Note: We can NOT use -z defs as we might desire, because we do not
 
7832
        # link with -lc, and that would cause any symbols used from libc to
 
7833
        # always be unresolved, which means just about no library would
 
7834
        # ever link correctly.  If we're not using GNU ld we use -z text
 
7835
        # though, which does catch some bad symbols but isn't as heavy-handed
 
7836
        # as -z defs.
 
7837
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7838
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7839
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7840
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7841
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
7842
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7843
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7844
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7845
        runpath_var='LD_RUN_PATH'
 
7846
 
 
7847
        case $cc_basename in
 
7848
          CC*)
 
7849
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7850
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7851
            ;;
 
7852
          *)
 
7853
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7854
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7855
            ;;
 
7856
        esac
 
7857
      ;;
 
7858
 
 
7859
      tandem*)
 
7860
        case $cc_basename in
 
7861
          NCC*)
 
7862
            # NonStop-UX NCC 3.20
 
7863
            # FIXME: insert proper C++ library support
 
7864
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7865
            ;;
 
7866
          *)
 
7867
            # FIXME: insert proper C++ library support
 
7868
            _LT_TAGVAR(ld_shlibs, $1)=no
 
7869
            ;;
 
7870
        esac
 
7871
        ;;
 
7872
 
 
7873
      vxworks*)
 
7874
        # FIXME: insert proper C++ library support
 
7875
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7876
        ;;
 
7877
 
 
7878
      *)
 
7879
        # FIXME: insert proper C++ library support
 
7880
        _LT_TAGVAR(ld_shlibs, $1)=no
 
7881
        ;;
 
7882
    esac
 
7883
 
 
7884
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
7885
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
7886
 
 
7887
    _LT_TAGVAR(GCC, $1)="$GXX"
 
7888
    _LT_TAGVAR(LD, $1)="$LD"
 
7889
 
 
7890
    ## CAVEAT EMPTOR:
 
7891
    ## There is no encapsulation within the following macros, do not change
 
7892
    ## the running order or otherwise move them around unless you know exactly
 
7893
    ## what you are doing...
 
7894
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
7895
    _LT_COMPILER_PIC($1)
 
7896
    _LT_COMPILER_C_O($1)
 
7897
    _LT_COMPILER_FILE_LOCKS($1)
 
7898
    _LT_LINKER_SHLIBS($1)
 
7899
    _LT_SYS_DYNAMIC_LINKER($1)
 
7900
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
7901
 
 
7902
    _LT_CONFIG($1)
 
7903
  fi # test -n "$compiler"
 
7904
 
 
7905
  CC=$lt_save_CC
 
7906
  LDCXX=$LD
 
7907
  LD=$lt_save_LD
 
7908
  GCC=$lt_save_GCC
 
7909
  with_gnu_ld=$lt_save_with_gnu_ld
 
7910
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
7911
  lt_cv_path_LD=$lt_save_path_LD
 
7912
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
7913
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
7914
fi # test "$_lt_caught_CXX_error" != yes
 
7915
 
 
7916
AC_LANG_POP
 
7917
])# _LT_LANG_CXX_CONFIG
 
7918
 
 
7919
 
 
7920
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
9756
7921
# ---------------------------------
9757
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
9758
 
 
9759
 
 
9760
 
# old names
9761
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
9762
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
9763
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
9764
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
9765
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
9766
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
9767
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
9768
 
 
9769
 
# This is just to silence aclocal about the macro not being used
9770
 
ifelse([AC_DISABLE_FAST_INSTALL])
9771
 
 
9772
 
AC_DEFUN([LT_AC_PROG_GCJ],
9773
 
[AC_CHECK_TOOL(GCJ, gcj, no)
9774
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9775
 
  AC_SUBST(GCJFLAGS)
9776
 
])
9777
 
 
9778
 
AC_DEFUN([LT_AC_PROG_RC],
9779
 
[AC_CHECK_TOOL(RC, windres, no)
9780
 
])
9781
 
 
 
7922
# Figure out "hidden" library dependencies from verbose
 
7923
# compiler output when linking a shared library.
 
7924
# Parse the compiler output and extract the necessary
 
7925
# objects, libraries and library flags.
 
7926
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
7927
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
7928
# Dependencies to place before and after the object being linked:
 
7929
_LT_TAGVAR(predep_objects, $1)=
 
7930
_LT_TAGVAR(postdep_objects, $1)=
 
7931
_LT_TAGVAR(predeps, $1)=
 
7932
_LT_TAGVAR(postdeps, $1)=
 
7933
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
7934
 
 
7935
dnl we can't use the lt_simple_compile_test_code here,
 
7936
dnl because it contains code intended for an executable,
 
7937
dnl not a library.  It's possible we should let each
 
7938
dnl tag define a new lt_????_link_test_code variable,
 
7939
dnl but it's only used here...
 
7940
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
7941
int a;
 
7942
void foo (void) { a = 0; }
 
7943
_LT_EOF
 
7944
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
7945
class Foo
 
7946
{
 
7947
public:
 
7948
  Foo (void) { a = 0; }
 
7949
private:
 
7950
  int a;
 
7951
};
 
7952
_LT_EOF
 
7953
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
7954
      subroutine foo
 
7955
      implicit none
 
7956
      integer*4 a
 
7957
      a=0
 
7958
      return
 
7959
      end
 
7960
_LT_EOF
 
7961
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
7962
      subroutine foo
 
7963
      implicit none
 
7964
      integer a
 
7965
      a=0
 
7966
      return
 
7967
      end
 
7968
_LT_EOF
 
7969
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
7970
public class foo {
 
7971
  private int a;
 
7972
  public void bar (void) {
 
7973
    a = 0;
 
7974
  }
 
7975
};
 
7976
_LT_EOF
 
7977
])
 
7978
dnl Parse the compiler output and extract the necessary
 
7979
dnl objects, libraries and library flags.
 
7980
if AC_TRY_EVAL(ac_compile); then
 
7981
  # Parse the compiler output and extract the necessary
 
7982
  # objects, libraries and library flags.
 
7983
 
 
7984
  # Sentinel used to keep track of whether or not we are before
 
7985
  # the conftest object file.
 
7986
  pre_test_object_deps_done=no
 
7987
 
 
7988
  for p in `eval "$output_verbose_link_cmd"`; do
 
7989
    case $p in
 
7990
 
 
7991
    -L* | -R* | -l*)
 
7992
       # Some compilers place space between "-{L,R}" and the path.
 
7993
       # Remove the space.
 
7994
       if test $p = "-L" ||
 
7995
          test $p = "-R"; then
 
7996
         prev=$p
 
7997
         continue
 
7998
       else
 
7999
         prev=
 
8000
       fi
 
8001
 
 
8002
       if test "$pre_test_object_deps_done" = no; then
 
8003
         case $p in
 
8004
         -L* | -R*)
 
8005
           # Internal compiler library paths should come after those
 
8006
           # provided the user.  The postdeps already come after the
 
8007
           # user supplied libs so there is no need to process them.
 
8008
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
8009
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
8010
           else
 
8011
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
8012
           fi
 
8013
           ;;
 
8014
         # The "-l" case would never come before the object being
 
8015
         # linked, so don't bother handling this case.
 
8016
         esac
 
8017
       else
 
8018
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
8019
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
8020
         else
 
8021
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
8022
         fi
 
8023
       fi
 
8024
       ;;
 
8025
 
 
8026
    *.$objext)
 
8027
       # This assumes that the test object file only shows up
 
8028
       # once in the compiler output.
 
8029
       if test "$p" = "conftest.$objext"; then
 
8030
         pre_test_object_deps_done=yes
 
8031
         continue
 
8032
       fi
 
8033
 
 
8034
       if test "$pre_test_object_deps_done" = no; then
 
8035
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
8036
           _LT_TAGVAR(predep_objects, $1)="$p"
 
8037
         else
 
8038
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
8039
         fi
 
8040
       else
 
8041
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
8042
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
8043
         else
 
8044
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
8045
         fi
 
8046
       fi
 
8047
       ;;
 
8048
 
 
8049
    *) ;; # Ignore the rest.
 
8050
 
 
8051
    esac
 
8052
  done
 
8053
 
 
8054
  # Clean up.
 
8055
  rm -f a.out a.exe
 
8056
else
 
8057
  echo "libtool.m4: error: problem compiling $1 test program"
 
8058
fi
 
8059
 
 
8060
$RM -f confest.$objext
 
8061
 
 
8062
# PORTME: override above test on systems where it is broken
 
8063
m4_if([$1], [CXX],
 
8064
[case $host_os in
 
8065
interix[[3-9]]*)
 
8066
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
8067
  # hack all around it, let's just trust "g++" to DTRT.
 
8068
  _LT_TAGVAR(predep_objects,$1)=
 
8069
  _LT_TAGVAR(postdep_objects,$1)=
 
8070
  _LT_TAGVAR(postdeps,$1)=
 
8071
  ;;
 
8072
 
 
8073
linux*)
 
8074
  case `$CC -V 2>&1 | sed 5q` in
 
8075
  *Sun\ C*)
 
8076
    # Sun C++ 5.9
 
8077
 
 
8078
    # The more standards-conforming stlport4 library is
 
8079
    # incompatible with the Cstd library. Avoid specifying
 
8080
    # it if it's in CXXFLAGS. Ignore libCrun as
 
8081
    # -library=stlport4 depends on it.
 
8082
    case " $CXX $CXXFLAGS " in
 
8083
    *" -library=stlport4 "*)
 
8084
      solaris_use_stlport4=yes
 
8085
      ;;
 
8086
    esac
 
8087
 
 
8088
    if test "$solaris_use_stlport4" != yes; then
 
8089
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
8090
    fi
 
8091
    ;;
 
8092
  esac
 
8093
  ;;
 
8094
 
 
8095
solaris*)
 
8096
  case $cc_basename in
 
8097
  CC*)
 
8098
    # The more standards-conforming stlport4 library is
 
8099
    # incompatible with the Cstd library. Avoid specifying
 
8100
    # it if it's in CXXFLAGS. Ignore libCrun as
 
8101
    # -library=stlport4 depends on it.
 
8102
    case " $CXX $CXXFLAGS " in
 
8103
    *" -library=stlport4 "*)
 
8104
      solaris_use_stlport4=yes
 
8105
      ;;
 
8106
    esac
 
8107
 
 
8108
    # Adding this requires a known-good setup of shared libraries for
 
8109
    # Sun compiler versions before 5.6, else PIC objects from an old
 
8110
    # archive will be linked into the output, leading to subtle bugs.
 
8111
    if test "$solaris_use_stlport4" != yes; then
 
8112
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
8113
    fi
 
8114
    ;;
 
8115
  esac
 
8116
  ;;
 
8117
esac
 
8118
])
 
8119
 
 
8120
case " $_LT_TAGVAR(postdeps, $1) " in
 
8121
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
8122
esac
 
8123
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
8124
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
8125
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
8126
fi
 
8127
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
8128
    [The directories searched by this compiler when creating a shared library])
 
8129
_LT_TAGDECL([], [predep_objects], [1],
 
8130
    [Dependencies to place before and after the objects being linked to
 
8131
    create a shared library])
 
8132
_LT_TAGDECL([], [postdep_objects], [1])
 
8133
_LT_TAGDECL([], [predeps], [1])
 
8134
_LT_TAGDECL([], [postdeps], [1])
 
8135
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
8136
    [The library search path used internally by the compiler when linking
 
8137
    a shared library])
 
8138
])# _LT_SYS_HIDDEN_LIBDEPS
 
8139
 
 
8140
 
 
8141
# _LT_PROG_F77
 
8142
# ------------
 
8143
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
8144
# if there is no fortran compiler, we have our own version here.
 
8145
m4_defun([_LT_PROG_F77],
 
8146
[
 
8147
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
8148
AC_PROG_F77
 
8149
if test -z "$F77" || test "X$F77" = "Xno"; then
 
8150
  _lt_disable_F77=yes
 
8151
fi
 
8152
popdef([AC_MSG_ERROR])
 
8153
])# _LT_PROG_F77
 
8154
 
 
8155
dnl aclocal-1.4 backwards compatibility:
 
8156
dnl AC_DEFUN([_LT_PROG_F77], [])
 
8157
 
 
8158
 
 
8159
# _LT_LANG_F77_CONFIG([TAG])
 
8160
# --------------------------
 
8161
# Ensure that the configuration variables for a Fortran 77 compiler are
 
8162
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8163
# to write the compiler configuration to `libtool'.
 
8164
m4_defun([_LT_LANG_F77_CONFIG],
 
8165
[AC_REQUIRE([_LT_PROG_F77])dnl
 
8166
AC_LANG_PUSH(Fortran 77)
 
8167
 
 
8168
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8169
_LT_TAGVAR(allow_undefined_flag, $1)=
 
8170
_LT_TAGVAR(always_export_symbols, $1)=no
 
8171
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
8172
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
8173
_LT_TAGVAR(hardcode_direct, $1)=no
 
8174
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
8175
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
8176
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
8177
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
8178
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
8179
_LT_TAGVAR(hardcode_automatic, $1)=no
 
8180
_LT_TAGVAR(inherit_rpath, $1)=no
 
8181
_LT_TAGVAR(module_cmds, $1)=
 
8182
_LT_TAGVAR(module_expsym_cmds, $1)=
 
8183
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
8184
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8185
_LT_TAGVAR(no_undefined_flag, $1)=
 
8186
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
8187
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
8188
 
 
8189
# Source file extension for f77 test sources.
 
8190
ac_ext=f
 
8191
 
 
8192
# Object file extension for compiled f77 test sources.
 
8193
objext=o
 
8194
_LT_TAGVAR(objext, $1)=$objext
 
8195
 
 
8196
# No sense in running all these tests if we already determined that
 
8197
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
8198
# are currently assumed to apply to all compilers on this platform,
 
8199
# and will be corrupted by setting them based on a non-working compiler.
 
8200
if test "$_lt_disable_F77" != yes; then
 
8201
  # Code to be used in simple compile tests
 
8202
  lt_simple_compile_test_code="\
 
8203
      subroutine t
 
8204
      return
 
8205
      end
 
8206
"
 
8207
 
 
8208
  # Code to be used in simple link tests
 
8209
  lt_simple_link_test_code="\
 
8210
      program t
 
8211
      end
 
8212
"
 
8213
 
 
8214
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8215
  _LT_TAG_COMPILER
 
8216
 
 
8217
  # save warnings/boilerplate of simple test code
 
8218
  _LT_COMPILER_BOILERPLATE
 
8219
  _LT_LINKER_BOILERPLATE
 
8220
 
 
8221
  # Allow CC to be a program name with arguments.
 
8222
  lt_save_CC="$CC"
 
8223
  lt_save_GCC=$GCC
 
8224
  CC=${F77-"f77"}
 
8225
  compiler=$CC
 
8226
  _LT_TAGVAR(compiler, $1)=$CC
 
8227
  _LT_CC_BASENAME([$compiler])
 
8228
  GCC=$G77
 
8229
  if test -n "$compiler"; then
 
8230
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
8231
    AC_MSG_RESULT([$can_build_shared])
 
8232
 
 
8233
    AC_MSG_CHECKING([whether to build shared libraries])
 
8234
    test "$can_build_shared" = "no" && enable_shared=no
 
8235
 
 
8236
    # On AIX, shared libraries and static libraries use the same namespace, and
 
8237
    # are all built from PIC.
 
8238
    case $host_os in
 
8239
      aix3*)
 
8240
        test "$enable_shared" = yes && enable_static=no
 
8241
        if test -n "$RANLIB"; then
 
8242
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8243
          postinstall_cmds='$RANLIB $lib'
 
8244
        fi
 
8245
        ;;
 
8246
      aix[[4-9]]*)
 
8247
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8248
          test "$enable_shared" = yes && enable_static=no
 
8249
        fi
 
8250
        ;;
 
8251
    esac
 
8252
    AC_MSG_RESULT([$enable_shared])
 
8253
 
 
8254
    AC_MSG_CHECKING([whether to build static libraries])
 
8255
    # Make sure either enable_shared or enable_static is yes.
 
8256
    test "$enable_shared" = yes || enable_static=yes
 
8257
    AC_MSG_RESULT([$enable_static])
 
8258
 
 
8259
    _LT_TAGVAR(GCC, $1)="$G77"
 
8260
    _LT_TAGVAR(LD, $1)="$LD"
 
8261
 
 
8262
    ## CAVEAT EMPTOR:
 
8263
    ## There is no encapsulation within the following macros, do not change
 
8264
    ## the running order or otherwise move them around unless you know exactly
 
8265
    ## what you are doing...
 
8266
    _LT_COMPILER_PIC($1)
 
8267
    _LT_COMPILER_C_O($1)
 
8268
    _LT_COMPILER_FILE_LOCKS($1)
 
8269
    _LT_LINKER_SHLIBS($1)
 
8270
    _LT_SYS_DYNAMIC_LINKER($1)
 
8271
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
8272
 
 
8273
    _LT_CONFIG($1)
 
8274
  fi # test -n "$compiler"
 
8275
 
 
8276
  GCC=$lt_save_GCC
 
8277
  CC="$lt_save_CC"
 
8278
fi # test "$_lt_disable_F77" != yes
 
8279
 
 
8280
AC_LANG_POP
 
8281
])# _LT_LANG_F77_CONFIG
 
8282
 
 
8283
 
 
8284
# _LT_PROG_FC
 
8285
# -----------
 
8286
# Since AC_PROG_FC is broken, in that it returns the empty string
 
8287
# if there is no fortran compiler, we have our own version here.
 
8288
m4_defun([_LT_PROG_FC],
 
8289
[
 
8290
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
8291
AC_PROG_FC
 
8292
if test -z "$FC" || test "X$FC" = "Xno"; then
 
8293
  _lt_disable_FC=yes
 
8294
fi
 
8295
popdef([AC_MSG_ERROR])
 
8296
])# _LT_PROG_FC
 
8297
 
 
8298
dnl aclocal-1.4 backwards compatibility:
 
8299
dnl AC_DEFUN([_LT_PROG_FC], [])
 
8300
 
 
8301
 
 
8302
# _LT_LANG_FC_CONFIG([TAG])
 
8303
# -------------------------
 
8304
# Ensure that the configuration variables for a Fortran compiler are
 
8305
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8306
# to write the compiler configuration to `libtool'.
 
8307
m4_defun([_LT_LANG_FC_CONFIG],
 
8308
[AC_REQUIRE([_LT_PROG_FC])dnl
 
8309
AC_LANG_PUSH(Fortran)
 
8310
 
 
8311
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8312
_LT_TAGVAR(allow_undefined_flag, $1)=
 
8313
_LT_TAGVAR(always_export_symbols, $1)=no
 
8314
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
8315
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
8316
_LT_TAGVAR(hardcode_direct, $1)=no
 
8317
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
8318
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
8319
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
8320
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
8321
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
8322
_LT_TAGVAR(hardcode_automatic, $1)=no
 
8323
_LT_TAGVAR(inherit_rpath, $1)=no
 
8324
_LT_TAGVAR(module_cmds, $1)=
 
8325
_LT_TAGVAR(module_expsym_cmds, $1)=
 
8326
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
8327
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8328
_LT_TAGVAR(no_undefined_flag, $1)=
 
8329
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
8330
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
8331
 
 
8332
# Source file extension for fc test sources.
 
8333
ac_ext=${ac_fc_srcext-f}
 
8334
 
 
8335
# Object file extension for compiled fc test sources.
 
8336
objext=o
 
8337
_LT_TAGVAR(objext, $1)=$objext
 
8338
 
 
8339
# No sense in running all these tests if we already determined that
 
8340
# the FC compiler isn't working.  Some variables (like enable_shared)
 
8341
# are currently assumed to apply to all compilers on this platform,
 
8342
# and will be corrupted by setting them based on a non-working compiler.
 
8343
if test "$_lt_disable_FC" != yes; then
 
8344
  # Code to be used in simple compile tests
 
8345
  lt_simple_compile_test_code="\
 
8346
      subroutine t
 
8347
      return
 
8348
      end
 
8349
"
 
8350
 
 
8351
  # Code to be used in simple link tests
 
8352
  lt_simple_link_test_code="\
 
8353
      program t
 
8354
      end
 
8355
"
 
8356
 
 
8357
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8358
  _LT_TAG_COMPILER
 
8359
 
 
8360
  # save warnings/boilerplate of simple test code
 
8361
  _LT_COMPILER_BOILERPLATE
 
8362
  _LT_LINKER_BOILERPLATE
 
8363
 
 
8364
  # Allow CC to be a program name with arguments.
 
8365
  lt_save_CC="$CC"
 
8366
  lt_save_GCC=$GCC
 
8367
  CC=${FC-"f95"}
 
8368
  compiler=$CC
 
8369
  GCC=$ac_cv_fc_compiler_gnu
 
8370
 
 
8371
  _LT_TAGVAR(compiler, $1)=$CC
 
8372
  _LT_CC_BASENAME([$compiler])
 
8373
 
 
8374
  if test -n "$compiler"; then
 
8375
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
8376
    AC_MSG_RESULT([$can_build_shared])
 
8377
 
 
8378
    AC_MSG_CHECKING([whether to build shared libraries])
 
8379
    test "$can_build_shared" = "no" && enable_shared=no
 
8380
 
 
8381
    # On AIX, shared libraries and static libraries use the same namespace, and
 
8382
    # are all built from PIC.
 
8383
    case $host_os in
 
8384
      aix3*)
 
8385
        test "$enable_shared" = yes && enable_static=no
 
8386
        if test -n "$RANLIB"; then
 
8387
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8388
          postinstall_cmds='$RANLIB $lib'
 
8389
        fi
 
8390
        ;;
 
8391
      aix[[4-9]]*)
 
8392
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8393
          test "$enable_shared" = yes && enable_static=no
 
8394
        fi
 
8395
        ;;
 
8396
    esac
 
8397
    AC_MSG_RESULT([$enable_shared])
 
8398
 
 
8399
    AC_MSG_CHECKING([whether to build static libraries])
 
8400
    # Make sure either enable_shared or enable_static is yes.
 
8401
    test "$enable_shared" = yes || enable_static=yes
 
8402
    AC_MSG_RESULT([$enable_static])
 
8403
 
 
8404
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
8405
    _LT_TAGVAR(LD, $1)="$LD"
 
8406
 
 
8407
    ## CAVEAT EMPTOR:
 
8408
    ## There is no encapsulation within the following macros, do not change
 
8409
    ## the running order or otherwise move them around unless you know exactly
 
8410
    ## what you are doing...
 
8411
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
8412
    _LT_COMPILER_PIC($1)
 
8413
    _LT_COMPILER_C_O($1)
 
8414
    _LT_COMPILER_FILE_LOCKS($1)
 
8415
    _LT_LINKER_SHLIBS($1)
 
8416
    _LT_SYS_DYNAMIC_LINKER($1)
 
8417
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
8418
 
 
8419
    _LT_CONFIG($1)
 
8420
  fi # test -n "$compiler"
 
8421
 
 
8422
  GCC=$lt_save_GCC
 
8423
  CC="$lt_save_CC"
 
8424
fi # test "$_lt_disable_FC" != yes
 
8425
 
 
8426
AC_LANG_POP
 
8427
])# _LT_LANG_FC_CONFIG
 
8428
 
 
8429
 
 
8430
# _LT_LANG_GCJ_CONFIG([TAG])
 
8431
# --------------------------
 
8432
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
8433
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8434
# to write the compiler configuration to `libtool'.
 
8435
m4_defun([_LT_LANG_GCJ_CONFIG],
 
8436
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
8437
AC_LANG_SAVE
 
8438
 
 
8439
# Source file extension for Java test sources.
 
8440
ac_ext=java
 
8441
 
 
8442
# Object file extension for compiled Java test sources.
 
8443
objext=o
 
8444
_LT_TAGVAR(objext, $1)=$objext
 
8445
 
 
8446
# Code to be used in simple compile tests
 
8447
lt_simple_compile_test_code="class foo {}"
 
8448
 
 
8449
# Code to be used in simple link tests
 
8450
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
8451
 
 
8452
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8453
_LT_TAG_COMPILER
 
8454
 
 
8455
# save warnings/boilerplate of simple test code
 
8456
_LT_COMPILER_BOILERPLATE
 
8457
_LT_LINKER_BOILERPLATE
 
8458
 
 
8459
# Allow CC to be a program name with arguments.
 
8460
lt_save_CC="$CC"
 
8461
lt_save_GCC=$GCC
 
8462
GCC=yes
 
8463
CC=${GCJ-"gcj"}
 
8464
compiler=$CC
 
8465
_LT_TAGVAR(compiler, $1)=$CC
 
8466
_LT_TAGVAR(LD, $1)="$LD"
 
8467
_LT_CC_BASENAME([$compiler])
 
8468
 
 
8469
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
8470
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8471
 
 
8472
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8473
 
 
8474
if test -n "$compiler"; then
 
8475
  _LT_COMPILER_NO_RTTI($1)
 
8476
  _LT_COMPILER_PIC($1)
 
8477
  _LT_COMPILER_C_O($1)
 
8478
  _LT_COMPILER_FILE_LOCKS($1)
 
8479
  _LT_LINKER_SHLIBS($1)
 
8480
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
8481
 
 
8482
  _LT_CONFIG($1)
 
8483
fi
 
8484
 
 
8485
AC_LANG_RESTORE
 
8486
 
 
8487
GCC=$lt_save_GCC
 
8488
CC="$lt_save_CC"
 
8489
])# _LT_LANG_GCJ_CONFIG
 
8490
 
 
8491
 
 
8492
# _LT_LANG_RC_CONFIG([TAG])
 
8493
# -------------------------
 
8494
# Ensure that the configuration variables for the Windows resource compiler
 
8495
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8496
# to write the compiler configuration to `libtool'.
 
8497
m4_defun([_LT_LANG_RC_CONFIG],
 
8498
[AC_REQUIRE([LT_PROG_RC])dnl
 
8499
AC_LANG_SAVE
 
8500
 
 
8501
# Source file extension for RC test sources.
 
8502
ac_ext=rc
 
8503
 
 
8504
# Object file extension for compiled RC test sources.
 
8505
objext=o
 
8506
_LT_TAGVAR(objext, $1)=$objext
 
8507
 
 
8508
# Code to be used in simple compile tests
 
8509
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
8510
 
 
8511
# Code to be used in simple link tests
 
8512
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
8513
 
 
8514
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8515
_LT_TAG_COMPILER
 
8516
 
 
8517
# save warnings/boilerplate of simple test code
 
8518
_LT_COMPILER_BOILERPLATE
 
8519
_LT_LINKER_BOILERPLATE
 
8520
 
 
8521
# Allow CC to be a program name with arguments.
 
8522
lt_save_CC="$CC"
 
8523
lt_save_GCC=$GCC
 
8524
GCC=
 
8525
CC=${RC-"windres"}
 
8526
compiler=$CC
 
8527
_LT_TAGVAR(compiler, $1)=$CC
 
8528
_LT_CC_BASENAME([$compiler])
 
8529
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
8530
 
 
8531
if test -n "$compiler"; then
 
8532
  :
 
8533
  _LT_CONFIG($1)
 
8534
fi
 
8535
 
 
8536
GCC=$lt_save_GCC
 
8537
AC_LANG_RESTORE
 
8538
CC="$lt_save_CC"
 
8539
])# _LT_LANG_RC_CONFIG
 
8540
 
 
8541
 
 
8542
# LT_PROG_GCJ
 
8543
# -----------
 
8544
AC_DEFUN([LT_PROG_GCJ],
 
8545
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
8546
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
8547
    [AC_CHECK_TOOL(GCJ, gcj,)
 
8548
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
8549
      AC_SUBST(GCJFLAGS)])])[]dnl
 
8550
])
 
8551
 
 
8552
# Old name:
 
8553
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
8554
dnl aclocal-1.4 backwards compatibility:
 
8555
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
8556
 
 
8557
 
 
8558
# LT_PROG_RC
 
8559
# ----------
 
8560
AC_DEFUN([LT_PROG_RC],
 
8561
[AC_CHECK_TOOL(RC, windres,)
 
8562
])
 
8563
 
 
8564
# Old name:
 
8565
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
8566
dnl aclocal-1.4 backwards compatibility:
 
8567
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
8568
 
 
8569
 
 
8570
# _LT_DECL_EGREP
 
8571
# --------------
 
8572
# If we don't have a new enough Autoconf to choose the best grep
 
8573
# available, choose the one first in the user's PATH.
 
8574
m4_defun([_LT_DECL_EGREP],
 
8575
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
8576
AC_REQUIRE([AC_PROG_FGREP])dnl
 
8577
test -z "$GREP" && GREP=grep
 
8578
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
8579
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
8580
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
8581
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
8582
AC_SUBST([GREP])
 
8583
])
 
8584
 
 
8585
 
 
8586
# _LT_DECL_OBJDUMP
 
8587
# --------------
 
8588
# If we don't have a new enough Autoconf to choose the best objdump
 
8589
# available, choose the one first in the user's PATH.
 
8590
m4_defun([_LT_DECL_OBJDUMP],
 
8591
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
8592
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8593
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
8594
AC_SUBST([OBJDUMP])
 
8595
])
 
8596
 
 
8597
 
 
8598
# _LT_DECL_SED
 
8599
# ------------
 
8600
# Check for a fully-functional sed program, that truncates
 
8601
# as few characters as possible.  Prefer GNU sed if found.
 
8602
m4_defun([_LT_DECL_SED],
 
8603
[AC_PROG_SED
 
8604
test -z "$SED" && SED=sed
 
8605
Xsed="$SED -e 1s/^X//"
 
8606
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
8607
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
8608
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
8609
])# _LT_DECL_SED
 
8610
 
 
8611
m4_ifndef([AC_PROG_SED], [
9782
8612
# NOTE: This macro has been submitted for inclusion into   #
9783
8613
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
9784
8614
#  a released version of Autoconf we should remove this    #
9785
8615
#  macro and use it instead.                               #
9786
 
# LT_AC_PROG_SED
9787
 
# --------------
9788
 
# Check for a fully-functional sed program, that truncates
9789
 
# as few characters as possible.  Prefer GNU sed if found.
9790
 
AC_DEFUN([LT_AC_PROG_SED],
 
8616
 
 
8617
m4_defun([AC_PROG_SED],
9791
8618
[AC_MSG_CHECKING([for a sed that does not truncate output])
9792
8619
AC_CACHE_VAL(lt_cv_path_SED,
9793
8620
[# Loop through the user's path and test for sed and gsed.
9805
8632
    done
9806
8633
  done
9807
8634
done
 
8635
IFS=$as_save_IFS
9808
8636
lt_ac_max=0
9809
8637
lt_ac_count=0
9810
8638
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9837
8665
done
9838
8666
])
9839
8667
SED=$lt_cv_path_SED
 
8668
AC_SUBST([SED])
9840
8669
AC_MSG_RESULT([$SED])
9841
 
])
 
8670
])#AC_PROG_SED
 
8671
])#m4_ifndef
 
8672
 
 
8673
# Old name:
 
8674
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
8675
dnl aclocal-1.4 backwards compatibility:
 
8676
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
8677
 
 
8678
 
 
8679
# _LT_CHECK_SHELL_FEATURES
 
8680
# ------------------------
 
8681
# Find out whether the shell is Bourne or XSI compatible,
 
8682
# or has some other useful features.
 
8683
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
8684
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
8685
# Try some XSI features
 
8686
xsi_shell=no
 
8687
( _lt_dummy="a/b/c"
 
8688
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
8689
      = c,a/b,, \
 
8690
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
8691
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
8692
  && xsi_shell=yes
 
8693
AC_MSG_RESULT([$xsi_shell])
 
8694
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
8695
 
 
8696
AC_MSG_CHECKING([whether the shell understands "+="])
 
8697
lt_shell_append=no
 
8698
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
8699
    >/dev/null 2>&1 \
 
8700
  && lt_shell_append=yes
 
8701
AC_MSG_RESULT([$lt_shell_append])
 
8702
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
8703
 
 
8704
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8705
  lt_unset=unset
 
8706
else
 
8707
  lt_unset=false
 
8708
fi
 
8709
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
8710
 
 
8711
# test EBCDIC or ASCII
 
8712
case `echo X|tr X '\101'` in
 
8713
 A) # ASCII based system
 
8714
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
8715
  lt_SP2NL='tr \040 \012'
 
8716
  lt_NL2SP='tr \015\012 \040\040'
 
8717
  ;;
 
8718
 *) # EBCDIC based system
 
8719
  lt_SP2NL='tr \100 \n'
 
8720
  lt_NL2SP='tr \r\n \100\100'
 
8721
  ;;
 
8722
esac
 
8723
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
8724
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
8725
])# _LT_CHECK_SHELL_FEATURES
 
8726
 
 
8727
 
 
8728
# _LT_PROG_XSI_SHELLFNS
 
8729
# ---------------------
 
8730
# Bourne and XSI compatible variants of some useful shell functions.
 
8731
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
8732
[case $xsi_shell in
 
8733
  yes)
 
8734
    cat << \_LT_EOF >> "$cfgfile"
 
8735
 
 
8736
# func_dirname file append nondir_replacement
 
8737
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8738
# otherwise set result to NONDIR_REPLACEMENT.
 
8739
func_dirname ()
 
8740
{
 
8741
  case ${1} in
 
8742
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8743
    *  ) func_dirname_result="${3}" ;;
 
8744
  esac
 
8745
}
 
8746
 
 
8747
# func_basename file
 
8748
func_basename ()
 
8749
{
 
8750
  func_basename_result="${1##*/}"
 
8751
}
 
8752
 
 
8753
# func_dirname_and_basename file append nondir_replacement
 
8754
# perform func_basename and func_dirname in a single function
 
8755
# call:
 
8756
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
8757
#             add APPEND to the result, otherwise set result
 
8758
#             to NONDIR_REPLACEMENT.
 
8759
#             value returned in "$func_dirname_result"
 
8760
#   basename: Compute filename of FILE.
 
8761
#             value retuned in "$func_basename_result"
 
8762
# Implementation must be kept synchronized with func_dirname
 
8763
# and func_basename. For efficiency, we do not delegate to
 
8764
# those functions but instead duplicate the functionality here.
 
8765
func_dirname_and_basename ()
 
8766
{
 
8767
  case ${1} in
 
8768
    */*) func_dirname_result="${1%/*}${2}" ;;
 
8769
    *  ) func_dirname_result="${3}" ;;
 
8770
  esac
 
8771
  func_basename_result="${1##*/}"
 
8772
}
 
8773
 
 
8774
# func_stripname prefix suffix name
 
8775
# strip PREFIX and SUFFIX off of NAME.
 
8776
# PREFIX and SUFFIX must not contain globbing or regex special
 
8777
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8778
# dot (in which case that matches only a dot).
 
8779
func_stripname ()
 
8780
{
 
8781
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
8782
  # positional parameters, so assign one to ordinary parameter first.
 
8783
  func_stripname_result=${3}
 
8784
  func_stripname_result=${func_stripname_result#"${1}"}
 
8785
  func_stripname_result=${func_stripname_result%"${2}"}
 
8786
}
 
8787
 
 
8788
# func_opt_split
 
8789
func_opt_split ()
 
8790
{
 
8791
  func_opt_split_opt=${1%%=*}
 
8792
  func_opt_split_arg=${1#*=}
 
8793
}
 
8794
 
 
8795
# func_lo2o object
 
8796
func_lo2o ()
 
8797
{
 
8798
  case ${1} in
 
8799
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
8800
    *)    func_lo2o_result=${1} ;;
 
8801
  esac
 
8802
}
 
8803
 
 
8804
# func_xform libobj-or-source
 
8805
func_xform ()
 
8806
{
 
8807
  func_xform_result=${1%.*}.lo
 
8808
}
 
8809
 
 
8810
# func_arith arithmetic-term...
 
8811
func_arith ()
 
8812
{
 
8813
  func_arith_result=$(( $[*] ))
 
8814
}
 
8815
 
 
8816
# func_len string
 
8817
# STRING may not start with a hyphen.
 
8818
func_len ()
 
8819
{
 
8820
  func_len_result=${#1}
 
8821
}
 
8822
 
 
8823
_LT_EOF
 
8824
    ;;
 
8825
  *) # Bourne compatible functions.
 
8826
    cat << \_LT_EOF >> "$cfgfile"
 
8827
 
 
8828
# func_dirname file append nondir_replacement
 
8829
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
8830
# otherwise set result to NONDIR_REPLACEMENT.
 
8831
func_dirname ()
 
8832
{
 
8833
  # Extract subdirectory from the argument.
 
8834
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
8835
  if test "X$func_dirname_result" = "X${1}"; then
 
8836
    func_dirname_result="${3}"
 
8837
  else
 
8838
    func_dirname_result="$func_dirname_result${2}"
 
8839
  fi
 
8840
}
 
8841
 
 
8842
# func_basename file
 
8843
func_basename ()
 
8844
{
 
8845
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
8846
}
 
8847
 
 
8848
dnl func_dirname_and_basename
 
8849
dnl A portable version of this function is already defined in general.m4sh
 
8850
dnl so there is no need for it here.
 
8851
 
 
8852
# func_stripname prefix suffix name
 
8853
# strip PREFIX and SUFFIX off of NAME.
 
8854
# PREFIX and SUFFIX must not contain globbing or regex special
 
8855
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
8856
# dot (in which case that matches only a dot).
 
8857
# func_strip_suffix prefix name
 
8858
func_stripname ()
 
8859
{
 
8860
  case ${2} in
 
8861
    .*) func_stripname_result=`$ECHO "X${3}" \
 
8862
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
8863
    *)  func_stripname_result=`$ECHO "X${3}" \
 
8864
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
8865
  esac
 
8866
}
 
8867
 
 
8868
# sed scripts:
 
8869
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
8870
my_sed_long_arg='1s/^-[[^=]]*=//'
 
8871
 
 
8872
# func_opt_split
 
8873
func_opt_split ()
 
8874
{
 
8875
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
8876
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
8877
}
 
8878
 
 
8879
# func_lo2o object
 
8880
func_lo2o ()
 
8881
{
 
8882
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
8883
}
 
8884
 
 
8885
# func_xform libobj-or-source
 
8886
func_xform ()
 
8887
{
 
8888
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
8889
}
 
8890
 
 
8891
# func_arith arithmetic-term...
 
8892
func_arith ()
 
8893
{
 
8894
  func_arith_result=`expr "$[@]"`
 
8895
}
 
8896
 
 
8897
# func_len string
 
8898
# STRING may not start with a hyphen.
 
8899
func_len ()
 
8900
{
 
8901
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
8902
}
 
8903
 
 
8904
_LT_EOF
 
8905
esac
 
8906
 
 
8907
case $lt_shell_append in
 
8908
  yes)
 
8909
    cat << \_LT_EOF >> "$cfgfile"
 
8910
 
 
8911
# func_append var value
 
8912
# Append VALUE to the end of shell variable VAR.
 
8913
func_append ()
 
8914
{
 
8915
  eval "$[1]+=\$[2]"
 
8916
}
 
8917
_LT_EOF
 
8918
    ;;
 
8919
  *)
 
8920
    cat << \_LT_EOF >> "$cfgfile"
 
8921
 
 
8922
# func_append var value
 
8923
# Append VALUE to the end of shell variable VAR.
 
8924
func_append ()
 
8925
{
 
8926
  eval "$[1]=\$$[1]\$[2]"
 
8927
}
 
8928
 
 
8929
_LT_EOF
 
8930
    ;;
 
8931
  esac
 
8932
])
 
8933
 
 
8934
# Helper functions for option handling.                    -*- Autoconf -*-
 
8935
#
 
8936
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
8937
#   Written by Gary V. Vaughan, 2004
 
8938
#
 
8939
# This file is free software; the Free Software Foundation gives
 
8940
# unlimited permission to copy and/or distribute it, with or without
 
8941
# modifications, as long as this notice is preserved.
 
8942
 
 
8943
# serial 6 ltoptions.m4
 
8944
 
 
8945
# This is to help aclocal find these macros, as it can't see m4_define.
 
8946
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
8947
 
 
8948
 
 
8949
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
8950
# ------------------------------------------
 
8951
m4_define([_LT_MANGLE_OPTION],
 
8952
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
8953
 
 
8954
 
 
8955
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
8956
# ---------------------------------------
 
8957
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
8958
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
8959
# saved as a flag.
 
8960
m4_define([_LT_SET_OPTION],
 
8961
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
8962
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
8963
        _LT_MANGLE_DEFUN([$1], [$2]),
 
8964
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
8965
])
 
8966
 
 
8967
 
 
8968
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
8969
# ------------------------------------------------------------
 
8970
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
8971
m4_define([_LT_IF_OPTION],
 
8972
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
8973
 
 
8974
 
 
8975
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
8976
# -------------------------------------------------------
 
8977
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
8978
# are set.
 
8979
m4_define([_LT_UNLESS_OPTIONS],
 
8980
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8981
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
8982
                      [m4_define([$0_found])])])[]dnl
 
8983
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
8984
])[]dnl
 
8985
])
 
8986
 
 
8987
 
 
8988
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
8989
# ----------------------------------------
 
8990
# OPTION-LIST is a space-separated list of Libtool options associated
 
8991
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
8992
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
8993
# the unknown option and exit.
 
8994
m4_defun([_LT_SET_OPTIONS],
 
8995
[# Set options
 
8996
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
8997
    [_LT_SET_OPTION([$1], _LT_Option)])
 
8998
 
 
8999
m4_if([$1],[LT_INIT],[
 
9000
  dnl
 
9001
  dnl Simply set some default values (i.e off) if boolean options were not
 
9002
  dnl specified:
 
9003
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
9004
  ])
 
9005
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
9006
  ])
 
9007
  dnl
 
9008
  dnl If no reference was made to various pairs of opposing options, then
 
9009
  dnl we run the default mode handler for the pair.  For example, if neither
 
9010
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
9011
  dnl archives by default:
 
9012
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
9013
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
9014
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
9015
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
9016
                   [_LT_ENABLE_FAST_INSTALL])
 
9017
  ])
 
9018
])# _LT_SET_OPTIONS
 
9019
 
 
9020
 
 
9021
 
 
9022
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
9023
# -----------------------------------------
 
9024
m4_define([_LT_MANGLE_DEFUN],
 
9025
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
9026
 
 
9027
 
 
9028
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
9029
# -----------------------------------------------
 
9030
m4_define([LT_OPTION_DEFINE],
 
9031
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
9032
])# LT_OPTION_DEFINE
 
9033
 
 
9034
 
 
9035
# dlopen
 
9036
# ------
 
9037
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
9038
])
 
9039
 
 
9040
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
9041
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
9042
AC_DIAGNOSE([obsolete],
 
9043
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
9044
put the `dlopen' option into LT_INIT's first parameter.])
 
9045
])
 
9046
 
 
9047
dnl aclocal-1.4 backwards compatibility:
 
9048
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
9049
 
 
9050
 
 
9051
# win32-dll
 
9052
# ---------
 
9053
# Declare package support for building win32 dll's.
 
9054
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
9055
[enable_win32_dll=yes
 
9056
 
 
9057
case $host in
 
9058
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
9059
  AC_CHECK_TOOL(AS, as, false)
 
9060
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
9061
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
9062
  ;;
 
9063
esac
 
9064
 
 
9065
test -z "$AS" && AS=as
 
9066
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
9067
 
 
9068
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
9069
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
9070
 
 
9071
test -z "$OBJDUMP" && OBJDUMP=objdump
 
9072
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
9073
])# win32-dll
 
9074
 
 
9075
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
9076
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
9077
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
9078
AC_DIAGNOSE([obsolete],
 
9079
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
9080
put the `win32-dll' option into LT_INIT's first parameter.])
 
9081
])
 
9082
 
 
9083
dnl aclocal-1.4 backwards compatibility:
 
9084
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
9085
 
 
9086
 
 
9087
# _LT_ENABLE_SHARED([DEFAULT])
 
9088
# ----------------------------
 
9089
# implement the --enable-shared flag, and supports the `shared' and
 
9090
# `disable-shared' LT_INIT options.
 
9091
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9092
m4_define([_LT_ENABLE_SHARED],
 
9093
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
9094
AC_ARG_ENABLE([shared],
 
9095
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
9096
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
9097
    [p=${PACKAGE-default}
 
9098
    case $enableval in
 
9099
    yes) enable_shared=yes ;;
 
9100
    no) enable_shared=no ;;
 
9101
    *)
 
9102
      enable_shared=no
 
9103
      # Look at the argument we got.  We use all the common list separators.
 
9104
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9105
      for pkg in $enableval; do
 
9106
        IFS="$lt_save_ifs"
 
9107
        if test "X$pkg" = "X$p"; then
 
9108
          enable_shared=yes
 
9109
        fi
 
9110
      done
 
9111
      IFS="$lt_save_ifs"
 
9112
      ;;
 
9113
    esac],
 
9114
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
9115
 
 
9116
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
9117
        [Whether or not to build shared libraries])
 
9118
])# _LT_ENABLE_SHARED
 
9119
 
 
9120
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
9121
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
9122
 
 
9123
# Old names:
 
9124
AC_DEFUN([AC_ENABLE_SHARED],
 
9125
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
9126
])
 
9127
 
 
9128
AC_DEFUN([AC_DISABLE_SHARED],
 
9129
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
9130
])
 
9131
 
 
9132
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
9133
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
9134
 
 
9135
dnl aclocal-1.4 backwards compatibility:
 
9136
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
9137
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
9138
 
 
9139
 
 
9140
 
 
9141
# _LT_ENABLE_STATIC([DEFAULT])
 
9142
# ----------------------------
 
9143
# implement the --enable-static flag, and support the `static' and
 
9144
# `disable-static' LT_INIT options.
 
9145
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9146
m4_define([_LT_ENABLE_STATIC],
 
9147
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
9148
AC_ARG_ENABLE([static],
 
9149
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
9150
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
9151
    [p=${PACKAGE-default}
 
9152
    case $enableval in
 
9153
    yes) enable_static=yes ;;
 
9154
    no) enable_static=no ;;
 
9155
    *)
 
9156
     enable_static=no
 
9157
      # Look at the argument we got.  We use all the common list separators.
 
9158
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9159
      for pkg in $enableval; do
 
9160
        IFS="$lt_save_ifs"
 
9161
        if test "X$pkg" = "X$p"; then
 
9162
          enable_static=yes
 
9163
        fi
 
9164
      done
 
9165
      IFS="$lt_save_ifs"
 
9166
      ;;
 
9167
    esac],
 
9168
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
9169
 
 
9170
    _LT_DECL([build_old_libs], [enable_static], [0],
 
9171
        [Whether or not to build static libraries])
 
9172
])# _LT_ENABLE_STATIC
 
9173
 
 
9174
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
9175
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
9176
 
 
9177
# Old names:
 
9178
AC_DEFUN([AC_ENABLE_STATIC],
 
9179
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
9180
])
 
9181
 
 
9182
AC_DEFUN([AC_DISABLE_STATIC],
 
9183
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
9184
])
 
9185
 
 
9186
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
9187
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
9188
 
 
9189
dnl aclocal-1.4 backwards compatibility:
 
9190
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
9191
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
9192
 
 
9193
 
 
9194
 
 
9195
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
9196
# ----------------------------------
 
9197
# implement the --enable-fast-install flag, and support the `fast-install'
 
9198
# and `disable-fast-install' LT_INIT options.
 
9199
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
9200
m4_define([_LT_ENABLE_FAST_INSTALL],
 
9201
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
9202
AC_ARG_ENABLE([fast-install],
 
9203
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
9204
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
9205
    [p=${PACKAGE-default}
 
9206
    case $enableval in
 
9207
    yes) enable_fast_install=yes ;;
 
9208
    no) enable_fast_install=no ;;
 
9209
    *)
 
9210
      enable_fast_install=no
 
9211
      # Look at the argument we got.  We use all the common list separators.
 
9212
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9213
      for pkg in $enableval; do
 
9214
        IFS="$lt_save_ifs"
 
9215
        if test "X$pkg" = "X$p"; then
 
9216
          enable_fast_install=yes
 
9217
        fi
 
9218
      done
 
9219
      IFS="$lt_save_ifs"
 
9220
      ;;
 
9221
    esac],
 
9222
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
9223
 
 
9224
_LT_DECL([fast_install], [enable_fast_install], [0],
 
9225
         [Whether or not to optimize for fast installation])dnl
 
9226
])# _LT_ENABLE_FAST_INSTALL
 
9227
 
 
9228
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
9229
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
9230
 
 
9231
# Old names:
 
9232
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
9233
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
9234
AC_DIAGNOSE([obsolete],
 
9235
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
9236
the `fast-install' option into LT_INIT's first parameter.])
 
9237
])
 
9238
 
 
9239
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
9240
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
9241
AC_DIAGNOSE([obsolete],
 
9242
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
9243
the `disable-fast-install' option into LT_INIT's first parameter.])
 
9244
])
 
9245
 
 
9246
dnl aclocal-1.4 backwards compatibility:
 
9247
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
9248
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
9249
 
 
9250
 
 
9251
# _LT_WITH_PIC([MODE])
 
9252
# --------------------
 
9253
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
9254
# LT_INIT options.
 
9255
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
9256
m4_define([_LT_WITH_PIC],
 
9257
[AC_ARG_WITH([pic],
 
9258
    [AS_HELP_STRING([--with-pic],
 
9259
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
9260
    [pic_mode="$withval"],
 
9261
    [pic_mode=default])
 
9262
 
 
9263
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
9264
 
 
9265
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
9266
])# _LT_WITH_PIC
 
9267
 
 
9268
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
9269
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
9270
 
 
9271
# Old name:
 
9272
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
9273
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
9274
AC_DIAGNOSE([obsolete],
 
9275
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
9276
put the `pic-only' option into LT_INIT's first parameter.])
 
9277
])
 
9278
 
 
9279
dnl aclocal-1.4 backwards compatibility:
 
9280
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
9281
 
 
9282
 
 
9283
m4_define([_LTDL_MODE], [])
 
9284
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
9285
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
9286
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
9287
                 [m4_define([_LTDL_MODE], [recursive])])
 
9288
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
9289
                 [m4_define([_LTDL_MODE], [subproject])])
 
9290
 
 
9291
m4_define([_LTDL_TYPE], [])
 
9292
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
9293
                 [m4_define([_LTDL_TYPE], [installable])])
 
9294
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
9295
                 [m4_define([_LTDL_TYPE], [convenience])])
 
9296
 
 
9297
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
9298
#
 
9299
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
9300
# Written by Gary V. Vaughan, 2004
 
9301
#
 
9302
# This file is free software; the Free Software Foundation gives
 
9303
# unlimited permission to copy and/or distribute it, with or without
 
9304
# modifications, as long as this notice is preserved.
 
9305
 
 
9306
# serial 6 ltsugar.m4
 
9307
 
 
9308
# This is to help aclocal find these macros, as it can't see m4_define.
 
9309
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
9310
 
 
9311
 
 
9312
# lt_join(SEP, ARG1, [ARG2...])
 
9313
# -----------------------------
 
9314
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
9315
# associated separator.
 
9316
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
9317
# versions in m4sugar had bugs.
 
9318
m4_define([lt_join],
 
9319
[m4_if([$#], [1], [],
 
9320
       [$#], [2], [[$2]],
 
9321
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
9322
m4_define([_lt_join],
 
9323
[m4_if([$#$2], [2], [],
 
9324
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
9325
 
 
9326
 
 
9327
# lt_car(LIST)
 
9328
# lt_cdr(LIST)
 
9329
# ------------
 
9330
# Manipulate m4 lists.
 
9331
# These macros are necessary as long as will still need to support
 
9332
# Autoconf-2.59 which quotes differently.
 
9333
m4_define([lt_car], [[$1]])
 
9334
m4_define([lt_cdr],
 
9335
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
9336
       [$#], 1, [],
 
9337
       [m4_dquote(m4_shift($@))])])
 
9338
m4_define([lt_unquote], $1)
 
9339
 
 
9340
 
 
9341
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
9342
# ------------------------------------------
 
9343
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
9344
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
9345
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
9346
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
9347
# than defined and empty).
 
9348
#
 
9349
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
9350
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
9351
m4_define([lt_append],
 
9352
[m4_define([$1],
 
9353
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
9354
 
 
9355
 
 
9356
 
 
9357
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
9358
# ----------------------------------------------------------
 
9359
# Produce a SEP delimited list of all paired combinations of elements of
 
9360
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
9361
# has the form PREFIXmINFIXSUFFIXn.
 
9362
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
9363
m4_define([lt_combine],
 
9364
[m4_if(m4_eval([$# > 3]), [1],
 
9365
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
9366
[[m4_foreach([_Lt_prefix], [$2],
 
9367
             [m4_foreach([_Lt_suffix],
 
9368
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
9369
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
9370
 
 
9371
 
 
9372
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
9373
# -----------------------------------------------------------------------
 
9374
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
9375
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
9376
m4_define([lt_if_append_uniq],
 
9377
[m4_ifdef([$1],
 
9378
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
9379
                 [lt_append([$1], [$2], [$3])$4],
 
9380
                 [$5])],
 
9381
          [lt_append([$1], [$2], [$3])$4])])
 
9382
 
 
9383
 
 
9384
# lt_dict_add(DICT, KEY, VALUE)
 
9385
# -----------------------------
 
9386
m4_define([lt_dict_add],
 
9387
[m4_define([$1($2)], [$3])])
 
9388
 
 
9389
 
 
9390
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
9391
# --------------------------------------------
 
9392
m4_define([lt_dict_add_subkey],
 
9393
[m4_define([$1($2:$3)], [$4])])
 
9394
 
 
9395
 
 
9396
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
9397
# ----------------------------------
 
9398
m4_define([lt_dict_fetch],
 
9399
[m4_ifval([$3],
 
9400
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
9401
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
9402
 
 
9403
 
 
9404
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
9405
# -----------------------------------------------------------------
 
9406
m4_define([lt_if_dict_fetch],
 
9407
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
9408
        [$5],
 
9409
    [$6])])
 
9410
 
 
9411
 
 
9412
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
9413
# --------------------------------------------------------------
 
9414
m4_define([lt_dict_filter],
 
9415
[m4_if([$5], [], [],
 
9416
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
9417
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
9418
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
9419
])
 
9420
 
 
9421
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
9422
#
 
9423
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
9424
#   Written by Scott James Remnant, 2004
 
9425
#
 
9426
# This file is free software; the Free Software Foundation gives
 
9427
# unlimited permission to copy and/or distribute it, with or without
 
9428
# modifications, as long as this notice is preserved.
 
9429
 
 
9430
# Generated from ltversion.in.
 
9431
 
 
9432
# serial 3012 ltversion.m4
 
9433
# This file is part of GNU Libtool
 
9434
 
 
9435
m4_define([LT_PACKAGE_VERSION], [2.2.6])
 
9436
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
9437
 
 
9438
AC_DEFUN([LTVERSION_VERSION],
 
9439
[macro_version='2.2.6'
 
9440
macro_revision='1.3012'
 
9441
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
9442
_LT_DECL(, macro_revision, 0)
 
9443
])
 
9444
 
 
9445
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
9446
#
 
9447
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
9448
#   Written by Scott James Remnant, 2004.
 
9449
#
 
9450
# This file is free software; the Free Software Foundation gives
 
9451
# unlimited permission to copy and/or distribute it, with or without
 
9452
# modifications, as long as this notice is preserved.
 
9453
 
 
9454
# serial 4 lt~obsolete.m4
 
9455
 
 
9456
# These exist entirely to fool aclocal when bootstrapping libtool.
 
9457
#
 
9458
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
9459
# which have later been changed to m4_define as they aren't part of the
 
9460
# exported API, or moved to Autoconf or Automake where they belong.
 
9461
#
 
9462
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
9463
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
9464
# using a macro with the same name in our local m4/libtool.m4 it'll
 
9465
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
9466
# and doesn't know about Autoconf macros at all.)
 
9467
#
 
9468
# So we provide this file, which has a silly filename so it's always
 
9469
# included after everything else.  This provides aclocal with the
 
9470
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
9471
# because those macros already exist, or will be overwritten later.
 
9472
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
9473
#
 
9474
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
9475
# Yes, that means every name once taken will need to remain here until
 
9476
# we give up compatibility with versions before 1.7, at which point
 
9477
# we need to keep only those names which we still refer to.
 
9478
 
 
9479
# This is to help aclocal find these macros, as it can't see m4_define.
 
9480
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
9481
 
 
9482
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
9483
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
9484
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
9485
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
9486
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
9487
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
9488
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
9489
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
9490
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
9491
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
9492
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
9493
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
9494
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
9495
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
9496
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
9497
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
9498
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
9499
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
9500
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
9501
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
9502
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
9503
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
9504
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
9505
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
9506
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
9507
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
9508
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
9509
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
9510
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
9511
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
9512
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
9513
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
9514
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
9515
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
9516
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
9517
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
9518
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
9519
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
9520
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
9521
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
9522
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
9523
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
9524
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
9525
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
9526
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
9527
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
9528
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
9529
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
9530
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
9531
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
9532
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
9533
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
9534
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
9535
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
9536
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9842
9537
 
9843
9538
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9844
9539
9873
9568
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9874
9569
fi
9875
9570
if test -n "$PKG_CONFIG"; then
9876
 
        _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
 
9571
        _pkg_min_version=m4_default([$1], [0.9.0])
9877
9572
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9878
9573
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9879
9574
                AC_MSG_RESULT([yes])
9885
9580
fi[]dnl
9886
9581
])# PKG_PROG_PKG_CONFIG
9887
9582
 
 
9583
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
9584
#
 
9585
# Check to see whether a particular set of modules exists.  Similar
 
9586
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
9587
#
 
9588
#
 
9589
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
 
9590
# this or PKG_CHECK_MODULES is called, or make sure to call
 
9591
# PKG_CHECK_EXISTS manually
 
9592
# --------------------------------------------------------------
 
9593
AC_DEFUN([PKG_CHECK_EXISTS],
 
9594
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
9595
if test -n "$PKG_CONFIG" && \
 
9596
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
9597
  m4_ifval([$2], [$2], [:])
 
9598
m4_ifvaln([$3], [else
 
9599
  $3])dnl
 
9600
fi])
 
9601
 
 
9602
 
9888
9603
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9889
9604
# ---------------------------------------------
9890
9605
m4_define([_PKG_CONFIG],
9891
 
[if test "x$ac_cv_env_[]$1[]_set" = "xset"; then
9892
 
        pkg_cv_[]$1=$ac_cv_env_[]$1[]_value
9893
 
elif test -n "$PKG_CONFIG"; then
9894
 
        if AC_RUN_LOG([$PKG_CONFIG --exists "$3" >/dev/null 2>&1]); then
9895
 
                pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
9896
 
        else
9897
 
                pkg_failed=yes
9898
 
        fi
9899
 
else
9900
 
        pkg_failed=untried
 
9606
[if test -n "$$1"; then
 
9607
    pkg_cv_[]$1="$$1"
 
9608
 elif test -n "$PKG_CONFIG"; then
 
9609
    PKG_CHECK_EXISTS([$3],
 
9610
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9611
                     [pkg_failed=yes])
 
9612
 else
 
9613
    pkg_failed=untried
9901
9614
fi[]dnl
9902
9615
])# _PKG_CONFIG
9903
9616
 
 
9617
# _PKG_SHORT_ERRORS_SUPPORTED
 
9618
# -----------------------------
 
9619
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
9620
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
9621
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
9622
        _pkg_short_errors_supported=yes
 
9623
else
 
9624
        _pkg_short_errors_supported=no
 
9625
fi[]dnl
 
9626
])# _PKG_SHORT_ERRORS_SUPPORTED
 
9627
 
 
9628
 
9904
9629
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9905
9630
# [ACTION-IF-NOT-FOUND])
9906
9631
#
9907
9632
#
9908
9633
# Note that if there is a possibility the first call to
9909
9634
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9910
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.in
 
9635
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9911
9636
#
9912
9637
#
9913
9638
# --------------------------------------------------------------
9917
9642
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9918
9643
 
9919
9644
pkg_failed=no
9920
 
AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS],
9921
 
        [_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])])
9922
 
AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS],
9923
 
        [_PKG_CONFIG([$1][_LIBS], [libs], [$2])])
 
9645
AC_MSG_CHECKING([for $1])
 
9646
 
 
9647
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
9648
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
9649
 
 
9650
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
9651
and $1[]_LIBS to avoid the need to call pkg-config.
 
9652
See the pkg-config man page for more details.])
9924
9653
 
9925
9654
if test $pkg_failed = yes; then
9926
 
        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
9655
        _PKG_SHORT_ERRORS_SUPPORTED
 
9656
        if test $_pkg_short_errors_supported = yes; then
 
9657
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
9658
        else 
 
9659
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9660
        fi
9927
9661
        # Put the nasty error message in config.log where it belongs
9928
 
        echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
 
9662
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9929
9663
 
9930
9664
        ifelse([$4], , [AC_MSG_ERROR(dnl
9931
 
[Package requirements ($2) were not met.
 
9665
[Package requirements ($2) were not met:
 
9666
 
 
9667
$$1_PKG_ERRORS
 
9668
 
9932
9669
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9933
9670
installed software in a non-standard prefix.
9934
9671
 
9935
 
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
9936
 
to avoid the need to call pkg-config.  See the pkg-config man page for
9937
 
more details.])],
9938
 
                [$4])
 
9672
_PKG_TEXT
 
9673
])],
 
9674
                [AC_MSG_RESULT([no])
 
9675
                $4])
9939
9676
elif test $pkg_failed = untried; then
9940
9677
        ifelse([$4], , [AC_MSG_FAILURE(dnl
9941
9678
[The pkg-config script could not be found or is too old.  Make sure it
9942
9679
is in your PATH or set the PKG_CONFIG environment variable to the full
9943
9680
path to pkg-config.
9944
9681
 
9945
 
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
9946
 
to avoid the need to call pkg-config.  See the pkg-config man page for
9947
 
more details.
 
9682
_PKG_TEXT
9948
9683
 
9949
 
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
 
9684
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9950
9685
                [$4])
9951
9686
else
9952
9687
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9953
9688
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
9689
        AC_MSG_RESULT([yes])
9954
9690
        ifelse([$3], , :, [$3])
9955
9691
fi[]dnl
9956
9692
])# PKG_CHECK_MODULES
9957
9693
 
 
9694
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
9695
#
 
9696
# This file is free software; the Free Software Foundation
 
9697
# gives unlimited permission to copy and/or distribute it,
 
9698
# with or without modifications, as long as this notice is preserved.
 
9699
 
 
9700
# AM_AUTOMAKE_VERSION(VERSION)
 
9701
# ----------------------------
 
9702
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
9703
# generated from the m4 files accompanying Automake X.Y.
 
9704
# (This private macro should not be called outside this file.)
 
9705
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
9706
[am__api_version='1.10'
 
9707
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
9708
dnl require some minimum version.  Point them to the right macro.
 
9709
m4_if([$1], [1.10.2], [],
 
9710
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
9711
])
 
9712
 
 
9713
# _AM_AUTOCONF_VERSION(VERSION)
 
9714
# -----------------------------
 
9715
# aclocal traces this macro to find the Autoconf version.
 
9716
# This is a private macro too.  Using m4_define simplifies
 
9717
# the logic in aclocal, which can simply ignore this definition.
 
9718
m4_define([_AM_AUTOCONF_VERSION], [])
 
9719
 
 
9720
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
9721
# -------------------------------
 
9722
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
9723
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
9724
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
9725
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
9726
m4_ifndef([AC_AUTOCONF_VERSION],
 
9727
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
9728
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
9729
 
 
9730
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
9731
 
 
9732
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9733
#
 
9734
# This file is free software; the Free Software Foundation
 
9735
# gives unlimited permission to copy and/or distribute it,
 
9736
# with or without modifications, as long as this notice is preserved.
 
9737
 
 
9738
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
9739
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
9740
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
9741
#
 
9742
# Of course, Automake must honor this variable whenever it calls a
 
9743
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
9744
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
9745
# depending on how configure is run.  This is pretty annoying, since
 
9746
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
9747
# source directory, any form will work fine, but in subdirectories a
 
9748
# relative path needs to be adjusted first.
 
9749
#
 
9750
# $ac_aux_dir/missing
 
9751
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
9752
# $top_srcdir/$ac_aux_dir/missing
 
9753
#    fails if $ac_aux_dir is absolute,
 
9754
#    fails when called from a subdirectory in a VPATH build with
 
9755
#          a relative $ac_aux_dir
 
9756
#
 
9757
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
9758
# are both prefixed by $srcdir.  In an in-source build this is usually
 
9759
# harmless because $srcdir is `.', but things will broke when you
 
9760
# start a VPATH build or use an absolute $srcdir.
 
9761
#
 
9762
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
9763
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
9764
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
9765
# and then we would define $MISSING as
 
9766
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
9767
# This will work as long as MISSING is not called from configure, because
 
9768
# unfortunately $(top_srcdir) has no meaning in configure.
 
9769
# However there are other variables, like CC, which are often used in
 
9770
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
9771
#
 
9772
# Another solution, used here, is to always expand $ac_aux_dir to an
 
9773
# absolute PATH.  The drawback is that using absolute paths prevent a
 
9774
# configured tree to be moved without reconfiguration.
 
9775
 
 
9776
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
9777
[dnl Rely on autoconf to set up CDPATH properly.
 
9778
AC_PREREQ([2.50])dnl
 
9779
# expand $ac_aux_dir to an absolute path
 
9780
am_aux_dir=`cd $ac_aux_dir && pwd`
 
9781
])
 
9782
 
 
9783
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
9784
 
 
9785
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
9786
# Free Software Foundation, Inc.
 
9787
#
 
9788
# This file is free software; the Free Software Foundation
 
9789
# gives unlimited permission to copy and/or distribute it,
 
9790
# with or without modifications, as long as this notice is preserved.
 
9791
 
 
9792
# serial 8
 
9793
 
 
9794
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
9795
# -------------------------------------
 
9796
# Define a conditional.
 
9797
AC_DEFUN([AM_CONDITIONAL],
 
9798
[AC_PREREQ(2.52)dnl
 
9799
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
9800
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
9801
AC_SUBST([$1_TRUE])dnl
 
9802
AC_SUBST([$1_FALSE])dnl
 
9803
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
9804
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
9805
if $2; then
 
9806
  $1_TRUE=
 
9807
  $1_FALSE='#'
 
9808
else
 
9809
  $1_TRUE='#'
 
9810
  $1_FALSE=
 
9811
fi
 
9812
AC_CONFIG_COMMANDS_PRE(
 
9813
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
9814
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
9815
Usually this means the macro was only invoked conditionally.]])
 
9816
fi])])
 
9817
 
 
9818
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
9819
# Free Software Foundation, Inc.
 
9820
#
 
9821
# This file is free software; the Free Software Foundation
 
9822
# gives unlimited permission to copy and/or distribute it,
 
9823
# with or without modifications, as long as this notice is preserved.
 
9824
 
 
9825
# serial 9
 
9826
 
 
9827
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
9828
# written in clear, in which case automake, when reading aclocal.m4,
 
9829
# will think it sees a *use*, and therefore will trigger all it's
 
9830
# C support machinery.  Also note that it means that autoscan, seeing
 
9831
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
9832
 
 
9833
 
 
9834
# _AM_DEPENDENCIES(NAME)
 
9835
# ----------------------
 
9836
# See how the compiler implements dependency checking.
 
9837
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
9838
# We try a few techniques and use that to set a single cache variable.
 
9839
#
 
9840
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
9841
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
9842
# dependency, and given that the user is not expected to run this macro,
 
9843
# just rely on AC_PROG_CC.
 
9844
AC_DEFUN([_AM_DEPENDENCIES],
 
9845
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
9846
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
9847
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
9848
AC_REQUIRE([AM_DEP_TRACK])dnl
 
9849
 
 
9850
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
9851
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
9852
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
9853
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
9854
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
9855
                   [depcc="$$1"   am_compiler_list=])
 
9856
 
 
9857
AC_CACHE_CHECK([dependency style of $depcc],
 
9858
               [am_cv_$1_dependencies_compiler_type],
 
9859
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
9860
  # We make a subdir and do the tests there.  Otherwise we can end up
 
9861
  # making bogus files that we don't know about and never remove.  For
 
9862
  # instance it was reported that on HP-UX the gcc test will end up
 
9863
  # making a dummy file named `D' -- because `-MD' means `put the output
 
9864
  # in D'.
 
9865
  mkdir conftest.dir
 
9866
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
9867
  # using a relative directory.
 
9868
  cp "$am_depcomp" conftest.dir
 
9869
  cd conftest.dir
 
9870
  # We will build objects and dependencies in a subdirectory because
 
9871
  # it helps to detect inapplicable dependency modes.  For instance
 
9872
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
9873
  # side effect of compilation, but ICC will put the dependencies in
 
9874
  # the current directory while Tru64 will put them in the object
 
9875
  # directory.
 
9876
  mkdir sub
 
9877
 
 
9878
  am_cv_$1_dependencies_compiler_type=none
 
9879
  if test "$am_compiler_list" = ""; then
 
9880
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
9881
  fi
 
9882
  for depmode in $am_compiler_list; do
 
9883
    # Setup a source with many dependencies, because some compilers
 
9884
    # like to wrap large dependency lists on column 80 (with \), and
 
9885
    # we should not choose a depcomp mode which is confused by this.
 
9886
    #
 
9887
    # We need to recreate these files for each test, as the compiler may
 
9888
    # overwrite some of them when testing with obscure command lines.
 
9889
    # This happens at least with the AIX C compiler.
 
9890
    : > sub/conftest.c
 
9891
    for i in 1 2 3 4 5 6; do
 
9892
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
9893
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
9894
      # Solaris 8's {/usr,}/bin/sh.
 
9895
      touch sub/conftst$i.h
 
9896
    done
 
9897
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
9898
 
 
9899
    case $depmode in
 
9900
    nosideeffect)
 
9901
      # after this tag, mechanisms are not by side-effect, so they'll
 
9902
      # only be used when explicitly requested
 
9903
      if test "x$enable_dependency_tracking" = xyes; then
 
9904
        continue
 
9905
      else
 
9906
        break
 
9907
      fi
 
9908
      ;;
 
9909
    none) break ;;
 
9910
    esac
 
9911
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
9912
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
9913
    # handle `-M -o', and we need to detect this.
 
9914
    if depmode=$depmode \
 
9915
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
9916
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
9917
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
9918
         >/dev/null 2>conftest.err &&
 
9919
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
9920
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
9921
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
9922
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
9923
      # icc doesn't choke on unknown options, it will just issue warnings
 
9924
      # or remarks (even with -Werror).  So we grep stderr for any message
 
9925
      # that says an option was ignored or not supported.
 
9926
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
9927
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
9928
      # The diagnosis changed in icc 8.0:
 
9929
      #   icc: Command line remark: option '-MP' not supported
 
9930
      if (grep 'ignoring option' conftest.err ||
 
9931
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
9932
        am_cv_$1_dependencies_compiler_type=$depmode
 
9933
        break
 
9934
      fi
 
9935
    fi
 
9936
  done
 
9937
 
 
9938
  cd ..
 
9939
  rm -rf conftest.dir
 
9940
else
 
9941
  am_cv_$1_dependencies_compiler_type=none
 
9942
fi
 
9943
])
 
9944
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
9945
AM_CONDITIONAL([am__fastdep$1], [
 
9946
  test "x$enable_dependency_tracking" != xno \
 
9947
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
9948
])
 
9949
 
 
9950
 
 
9951
# AM_SET_DEPDIR
 
9952
# -------------
 
9953
# Choose a directory name for dependency files.
 
9954
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
9955
AC_DEFUN([AM_SET_DEPDIR],
 
9956
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
9957
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
9958
])
 
9959
 
 
9960
 
 
9961
# AM_DEP_TRACK
 
9962
# ------------
 
9963
AC_DEFUN([AM_DEP_TRACK],
 
9964
[AC_ARG_ENABLE(dependency-tracking,
 
9965
[  --disable-dependency-tracking  speeds up one-time build
 
9966
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
9967
if test "x$enable_dependency_tracking" != xno; then
 
9968
  am_depcomp="$ac_aux_dir/depcomp"
 
9969
  AMDEPBACKSLASH='\'
 
9970
fi
 
9971
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
9972
AC_SUBST([AMDEPBACKSLASH])dnl
 
9973
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9974
])
 
9975
 
 
9976
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
9977
 
 
9978
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
9979
# Free Software Foundation, Inc.
 
9980
#
 
9981
# This file is free software; the Free Software Foundation
 
9982
# gives unlimited permission to copy and/or distribute it,
 
9983
# with or without modifications, as long as this notice is preserved.
 
9984
 
 
9985
#serial 4
 
9986
 
 
9987
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
9988
# ------------------------------
 
9989
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
9990
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9991
# are listed without --file.  Let's play safe and only enable the eval
 
9992
# if we detect the quoting.
 
9993
case $CONFIG_FILES in
 
9994
*\'*) eval set x "$CONFIG_FILES" ;;
 
9995
*)   set x $CONFIG_FILES ;;
 
9996
esac
 
9997
shift
 
9998
for mf
 
9999
do
 
10000
  # Strip MF so we end up with the name of the file.
 
10001
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
10002
  # Check whether this is an Automake generated Makefile or not.
 
10003
  # We used to match only the files named `Makefile.in', but
 
10004
  # some people rename them; so instead we look at the file content.
 
10005
  # Grep'ing the first line is not enough: some people post-process
 
10006
  # each Makefile.in and add a new line on top of each file to say so.
 
10007
  # Grep'ing the whole file is not good either: AIX grep has a line
 
10008
  # limit of 2048, but all sed's we know have understand at least 4000.
 
10009
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
10010
    dirpart=`AS_DIRNAME("$mf")`
 
10011
  else
 
10012
    continue
 
10013
  fi
 
10014
  # Extract the definition of DEPDIR, am__include, and am__quote
 
10015
  # from the Makefile without running `make'.
 
10016
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
10017
  test -z "$DEPDIR" && continue
 
10018
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
10019
  test -z "am__include" && continue
 
10020
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
10021
  # When using ansi2knr, U may be empty or an underscore; expand it
 
10022
  U=`sed -n 's/^U = //p' < "$mf"`
 
10023
  # Find all dependency output files, they are included files with
 
10024
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
10025
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
10026
  # expansion.
 
10027
  for file in `sed -n "
 
10028
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
10029
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
10030
    # Make sure the directory exists.
 
10031
    test -f "$dirpart/$file" && continue
 
10032
    fdir=`AS_DIRNAME(["$file"])`
 
10033
    AS_MKDIR_P([$dirpart/$fdir])
 
10034
    # echo "creating $dirpart/$file"
 
10035
    echo '# dummy' > "$dirpart/$file"
 
10036
  done
 
10037
done
 
10038
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
10039
 
 
10040
 
 
10041
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
10042
# -----------------------------
 
10043
# This macro should only be invoked once -- use via AC_REQUIRE.
 
10044
#
 
10045
# This code is only required when automatic dependency tracking
 
10046
# is enabled.  FIXME.  This creates each `.P' file that we will
 
10047
# need in order to bootstrap the dependency handling code.
 
10048
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
10049
[AC_CONFIG_COMMANDS([depfiles],
 
10050
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
10051
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
10052
])
 
10053
 
 
10054
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
10055
# Free Software Foundation, Inc.
 
10056
#
 
10057
# This file is free software; the Free Software Foundation
 
10058
# gives unlimited permission to copy and/or distribute it,
 
10059
# with or without modifications, as long as this notice is preserved.
 
10060
 
 
10061
# serial 8
 
10062
 
 
10063
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
10064
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
10065
 
 
10066
# Do all the work for Automake.                             -*- Autoconf -*-
 
10067
 
 
10068
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
10069
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
10070
#
 
10071
# This file is free software; the Free Software Foundation
 
10072
# gives unlimited permission to copy and/or distribute it,
 
10073
# with or without modifications, as long as this notice is preserved.
 
10074
 
 
10075
# serial 13
 
10076
 
 
10077
# This macro actually does too much.  Some checks are only needed if
 
10078
# your package does certain things.  But this isn't really a big deal.
 
10079
 
 
10080
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
10081
# AM_INIT_AUTOMAKE([OPTIONS])
 
10082
# -----------------------------------------------
 
10083
# The call with PACKAGE and VERSION arguments is the old style
 
10084
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
10085
# and VERSION should now be passed to AC_INIT and removed from
 
10086
# the call to AM_INIT_AUTOMAKE.
 
10087
# We support both call styles for the transition.  After
 
10088
# the next Automake release, Autoconf can make the AC_INIT
 
10089
# arguments mandatory, and then we can depend on a new Autoconf
 
10090
# release and drop the old call support.
 
10091
AC_DEFUN([AM_INIT_AUTOMAKE],
 
10092
[AC_PREREQ([2.60])dnl
 
10093
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
10094
dnl the ones we care about.
 
10095
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
10096
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
10097
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
10098
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
10099
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
10100
  # is not polluted with repeated "-I."
 
10101
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
10102
  # test to see if srcdir already configured
 
10103
  if test -f $srcdir/config.status; then
 
10104
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
10105
  fi
 
10106
fi
 
10107
 
 
10108
# test whether we have cygpath
 
10109
if test -z "$CYGPATH_W"; then
 
10110
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
10111
    CYGPATH_W='cygpath -w'
 
10112
  else
 
10113
    CYGPATH_W=echo
 
10114
  fi
 
10115
fi
 
10116
AC_SUBST([CYGPATH_W])
 
10117
 
 
10118
# Define the identity of the package.
 
10119
dnl Distinguish between old-style and new-style calls.
 
10120
m4_ifval([$2],
 
10121
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
10122
 AC_SUBST([PACKAGE], [$1])dnl
 
10123
 AC_SUBST([VERSION], [$2])],
 
10124
[_AM_SET_OPTIONS([$1])dnl
 
10125
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
10126
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
10127
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
10128
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
10129
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
10130
 
 
10131
_AM_IF_OPTION([no-define],,
 
10132
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
10133
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
10134
 
 
10135
# Some tools Automake needs.
 
10136
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
10137
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
10138
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
10139
AM_MISSING_PROG(AUTOCONF, autoconf)
 
10140
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
10141
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
10142
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
10143
AM_PROG_INSTALL_SH
 
10144
AM_PROG_INSTALL_STRIP
 
10145
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
10146
# We need awk for the "check" target.  The system "awk" is bad on
 
10147
# some platforms.
 
10148
AC_REQUIRE([AC_PROG_AWK])dnl
 
10149
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
10150
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
10151
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
10152
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
10153
                             [_AM_PROG_TAR([v7])])])
 
10154
_AM_IF_OPTION([no-dependencies],,
 
10155
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
10156
                  [_AM_DEPENDENCIES(CC)],
 
10157
                  [define([AC_PROG_CC],
 
10158
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
10159
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
10160
                  [_AM_DEPENDENCIES(CXX)],
 
10161
                  [define([AC_PROG_CXX],
 
10162
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
10163
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
10164
                  [_AM_DEPENDENCIES(OBJC)],
 
10165
                  [define([AC_PROG_OBJC],
 
10166
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
10167
])
 
10168
])
 
10169
 
 
10170
 
 
10171
# When config.status generates a header, we must update the stamp-h file.
 
10172
# This file resides in the same directory as the config header
 
10173
# that is generated.  The stamp files are numbered to have different names.
 
10174
 
 
10175
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
10176
# loop where config.status creates the headers, so we can generate
 
10177
# our stamp files there.
 
10178
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
10179
[# Compute $1's index in $config_headers.
 
10180
_am_arg=$1
 
10181
_am_stamp_count=1
 
10182
for _am_header in $config_headers :; do
 
10183
  case $_am_header in
 
10184
    $_am_arg | $_am_arg:* )
 
10185
      break ;;
 
10186
    * )
 
10187
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
10188
  esac
 
10189
done
 
10190
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
10191
 
 
10192
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10193
#
 
10194
# This file is free software; the Free Software Foundation
 
10195
# gives unlimited permission to copy and/or distribute it,
 
10196
# with or without modifications, as long as this notice is preserved.
 
10197
 
 
10198
# AM_PROG_INSTALL_SH
 
10199
# ------------------
 
10200
# Define $install_sh.
 
10201
AC_DEFUN([AM_PROG_INSTALL_SH],
 
10202
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
10203
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
10204
AC_SUBST(install_sh)])
 
10205
 
 
10206
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
10207
#
 
10208
# This file is free software; the Free Software Foundation
 
10209
# gives unlimited permission to copy and/or distribute it,
 
10210
# with or without modifications, as long as this notice is preserved.
 
10211
 
 
10212
# serial 2
 
10213
 
 
10214
# Check whether the underlying file-system supports filenames
 
10215
# with a leading dot.  For instance MS-DOS doesn't.
 
10216
AC_DEFUN([AM_SET_LEADING_DOT],
 
10217
[rm -rf .tst 2>/dev/null
 
10218
mkdir .tst 2>/dev/null
 
10219
if test -d .tst; then
 
10220
  am__leading_dot=.
 
10221
else
 
10222
  am__leading_dot=_
 
10223
fi
 
10224
rmdir .tst 2>/dev/null
 
10225
AC_SUBST([am__leading_dot])])
 
10226
 
 
10227
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
10228
# From Jim Meyering
 
10229
 
 
10230
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
10231
# Free Software Foundation, Inc.
 
10232
#
 
10233
# This file is free software; the Free Software Foundation
 
10234
# gives unlimited permission to copy and/or distribute it,
 
10235
# with or without modifications, as long as this notice is preserved.
 
10236
 
 
10237
# serial 4
 
10238
 
 
10239
AC_DEFUN([AM_MAINTAINER_MODE],
 
10240
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
10241
  dnl maintainer-mode is disabled by default
 
10242
  AC_ARG_ENABLE(maintainer-mode,
 
10243
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
10244
                          (and sometimes confusing) to the casual installer],
 
10245
      USE_MAINTAINER_MODE=$enableval,
 
10246
      USE_MAINTAINER_MODE=no)
 
10247
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
10248
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
10249
  MAINT=$MAINTAINER_MODE_TRUE
 
10250
  AC_SUBST(MAINT)dnl
 
10251
]
 
10252
)
 
10253
 
 
10254
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
10255
 
 
10256
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
10257
 
 
10258
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
10259
#
 
10260
# This file is free software; the Free Software Foundation
 
10261
# gives unlimited permission to copy and/or distribute it,
 
10262
# with or without modifications, as long as this notice is preserved.
 
10263
 
 
10264
# serial 3
 
10265
 
 
10266
# AM_MAKE_INCLUDE()
 
10267
# -----------------
 
10268
# Check to see how make treats includes.
 
10269
AC_DEFUN([AM_MAKE_INCLUDE],
 
10270
[am_make=${MAKE-make}
 
10271
cat > confinc << 'END'
 
10272
am__doit:
 
10273
        @echo done
 
10274
.PHONY: am__doit
 
10275
END
 
10276
# If we don't find an include directive, just comment out the code.
 
10277
AC_MSG_CHECKING([for style of include used by $am_make])
 
10278
am__include="#"
 
10279
am__quote=
 
10280
_am_result=none
 
10281
# First try GNU make style include.
 
10282
echo "include confinc" > confmf
 
10283
# We grep out `Entering directory' and `Leaving directory'
 
10284
# messages which can occur if `w' ends up in MAKEFLAGS.
 
10285
# In particular we don't look at `^make:' because GNU make might
 
10286
# be invoked under some other name (usually "gmake"), in which
 
10287
# case it prints its new name instead of `make'.
 
10288
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
10289
   am__include=include
 
10290
   am__quote=
 
10291
   _am_result=GNU
 
10292
fi
 
10293
# Now try BSD make style include.
 
10294
if test "$am__include" = "#"; then
 
10295
   echo '.include "confinc"' > confmf
 
10296
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
10297
      am__include=.include
 
10298
      am__quote="\""
 
10299
      _am_result=BSD
 
10300
   fi
 
10301
fi
 
10302
AC_SUBST([am__include])
 
10303
AC_SUBST([am__quote])
 
10304
AC_MSG_RESULT([$_am_result])
 
10305
rm -f confinc confmf
 
10306
])
 
10307
 
 
10308
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
10309
 
 
10310
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
10311
# Free Software Foundation, Inc.
 
10312
#
 
10313
# This file is free software; the Free Software Foundation
 
10314
# gives unlimited permission to copy and/or distribute it,
 
10315
# with or without modifications, as long as this notice is preserved.
 
10316
 
 
10317
# serial 5
 
10318
 
 
10319
# AM_MISSING_PROG(NAME, PROGRAM)
 
10320
# ------------------------------
 
10321
AC_DEFUN([AM_MISSING_PROG],
 
10322
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
10323
$1=${$1-"${am_missing_run}$2"}
 
10324
AC_SUBST($1)])
 
10325
 
 
10326
 
 
10327
# AM_MISSING_HAS_RUN
 
10328
# ------------------
 
10329
# Define MISSING if not defined so far and test if it supports --run.
 
10330
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
10331
AC_DEFUN([AM_MISSING_HAS_RUN],
 
10332
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
10333
AC_REQUIRE_AUX_FILE([missing])dnl
 
10334
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
10335
# Use eval to expand $SHELL
 
10336
if eval "$MISSING --run true"; then
 
10337
  am_missing_run="$MISSING --run "
 
10338
else
 
10339
  am_missing_run=
 
10340
  AC_MSG_WARN([`missing' script is too old or missing])
 
10341
fi
 
10342
])
 
10343
 
 
10344
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
10345
#
 
10346
# This file is free software; the Free Software Foundation
 
10347
# gives unlimited permission to copy and/or distribute it,
 
10348
# with or without modifications, as long as this notice is preserved.
 
10349
 
 
10350
# AM_PROG_MKDIR_P
 
10351
# ---------------
 
10352
# Check for `mkdir -p'.
 
10353
AC_DEFUN([AM_PROG_MKDIR_P],
 
10354
[AC_PREREQ([2.60])dnl
 
10355
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
10356
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
10357
dnl while keeping a definition of mkdir_p for backward compatibility.
 
10358
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
10359
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
10360
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
10361
dnl adjustment using top_builddir (which is defined more often than
 
10362
dnl MKDIR_P).
 
10363
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
10364
case $mkdir_p in
 
10365
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
10366
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
10367
esac
 
10368
])
 
10369
 
 
10370
# Helper functions for option handling.                     -*- Autoconf -*-
 
10371
 
 
10372
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10373
#
 
10374
# This file is free software; the Free Software Foundation
 
10375
# gives unlimited permission to copy and/or distribute it,
 
10376
# with or without modifications, as long as this notice is preserved.
 
10377
 
 
10378
# serial 4
 
10379
 
 
10380
# _AM_MANGLE_OPTION(NAME)
 
10381
# -----------------------
 
10382
AC_DEFUN([_AM_MANGLE_OPTION],
 
10383
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
10384
 
 
10385
# _AM_SET_OPTION(NAME)
 
10386
# ------------------------------
 
10387
# Set option NAME.  Presently that only means defining a flag for this option.
 
10388
AC_DEFUN([_AM_SET_OPTION],
 
10389
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
10390
 
 
10391
# _AM_SET_OPTIONS(OPTIONS)
 
10392
# ----------------------------------
 
10393
# OPTIONS is a space-separated list of Automake options.
 
10394
AC_DEFUN([_AM_SET_OPTIONS],
 
10395
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
10396
 
 
10397
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
10398
# -------------------------------------------
 
10399
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
10400
AC_DEFUN([_AM_IF_OPTION],
 
10401
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
10402
 
 
10403
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
10404
 
 
10405
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
10406
# Free Software Foundation, Inc.
 
10407
#
 
10408
# This file is free software; the Free Software Foundation
 
10409
# gives unlimited permission to copy and/or distribute it,
 
10410
# with or without modifications, as long as this notice is preserved.
 
10411
 
 
10412
# serial 4
 
10413
 
 
10414
# AM_SANITY_CHECK
 
10415
# ---------------
 
10416
AC_DEFUN([AM_SANITY_CHECK],
 
10417
[AC_MSG_CHECKING([whether build environment is sane])
 
10418
# Just in case
 
10419
sleep 1
 
10420
echo timestamp > conftest.file
 
10421
# Do `set' in a subshell so we don't clobber the current shell's
 
10422
# arguments.  Must try -L first in case configure is actually a
 
10423
# symlink; some systems play weird games with the mod time of symlinks
 
10424
# (eg FreeBSD returns the mod time of the symlink's containing
 
10425
# directory).
 
10426
if (
 
10427
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
10428
   if test "$[*]" = "X"; then
 
10429
      # -L didn't work.
 
10430
      set X `ls -t $srcdir/configure conftest.file`
 
10431
   fi
 
10432
   rm -f conftest.file
 
10433
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
10434
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
10435
 
 
10436
      # If neither matched, then we have a broken ls.  This can happen
 
10437
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
10438
      # broken ls alias from the environment.  This has actually
 
10439
      # happened.  Such a system could not be considered "sane".
 
10440
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
10441
alias in your environment])
 
10442
   fi
 
10443
 
 
10444
   test "$[2]" = conftest.file
 
10445
   )
 
10446
then
 
10447
   # Ok.
 
10448
   :
 
10449
else
 
10450
   AC_MSG_ERROR([newly created file is older than distributed files!
 
10451
Check your system clock])
 
10452
fi
 
10453
AC_MSG_RESULT(yes)])
 
10454
 
 
10455
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10456
#
 
10457
# This file is free software; the Free Software Foundation
 
10458
# gives unlimited permission to copy and/or distribute it,
 
10459
# with or without modifications, as long as this notice is preserved.
 
10460
 
 
10461
# AM_PROG_INSTALL_STRIP
 
10462
# ---------------------
 
10463
# One issue with vendor `install' (even GNU) is that you can't
 
10464
# specify the program used to strip binaries.  This is especially
 
10465
# annoying in cross-compiling environments, where the build's strip
 
10466
# is unlikely to handle the host's binaries.
 
10467
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
10468
# always use install-sh in `make install-strip', and initialize
 
10469
# STRIPPROG with the value of the STRIP variable (set by the user).
 
10470
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
10471
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
10472
# Installed binaries are usually stripped using `strip' when the user
 
10473
# run `make install-strip'.  However `strip' might not be the right
 
10474
# tool to use in cross-compilation environments, therefore Automake
 
10475
# will honor the `STRIP' environment variable to overrule this program.
 
10476
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
10477
if test "$cross_compiling" != no; then
 
10478
  AC_CHECK_TOOL([STRIP], [strip], :)
 
10479
fi
 
10480
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
10481
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
10482
 
 
10483
# Copyright (C) 2006  Free Software Foundation, Inc.
 
10484
#
 
10485
# This file is free software; the Free Software Foundation
 
10486
# gives unlimited permission to copy and/or distribute it,
 
10487
# with or without modifications, as long as this notice is preserved.
 
10488
 
 
10489
# _AM_SUBST_NOTMAKE(VARIABLE)
 
10490
# ---------------------------
 
10491
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
10492
# This macro is traced by Automake.
 
10493
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
10494
 
 
10495
# Check how to create a tarball.                            -*- Autoconf -*-
 
10496
 
 
10497
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
10498
#
 
10499
# This file is free software; the Free Software Foundation
 
10500
# gives unlimited permission to copy and/or distribute it,
 
10501
# with or without modifications, as long as this notice is preserved.
 
10502
 
 
10503
# serial 2
 
10504
 
 
10505
# _AM_PROG_TAR(FORMAT)
 
10506
# --------------------
 
10507
# Check how to create a tarball in format FORMAT.
 
10508
# FORMAT should be one of `v7', `ustar', or `pax'.
 
10509
#
 
10510
# Substitute a variable $(am__tar) that is a command
 
10511
# writing to stdout a FORMAT-tarball containing the directory
 
10512
# $tardir.
 
10513
#     tardir=directory && $(am__tar) > result.tar
 
10514
#
 
10515
# Substitute a variable $(am__untar) that extract such
 
10516
# a tarball read from stdin.
 
10517
#     $(am__untar) < result.tar
 
10518
AC_DEFUN([_AM_PROG_TAR],
 
10519
[# Always define AMTAR for backward compatibility.
 
10520
AM_MISSING_PROG([AMTAR], [tar])
 
10521
m4_if([$1], [v7],
 
10522
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
10523
     [m4_case([$1], [ustar],, [pax],,
 
10524
              [m4_fatal([Unknown tar format])])
 
10525
AC_MSG_CHECKING([how to create a $1 tar archive])
 
10526
# Loop over all known methods to create a tar archive until one works.
 
10527
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
10528
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
10529
# Do not fold the above two line into one, because Tru64 sh and
 
10530
# Solaris sh will not grok spaces in the rhs of `-'.
 
10531
for _am_tool in $_am_tools
 
10532
do
 
10533
  case $_am_tool in
 
10534
  gnutar)
 
10535
    for _am_tar in tar gnutar gtar;
 
10536
    do
 
10537
      AM_RUN_LOG([$_am_tar --version]) && break
 
10538
    done
 
10539
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
10540
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
10541
    am__untar="$_am_tar -xf -"
 
10542
    ;;
 
10543
  plaintar)
 
10544
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
10545
    # ustar tarball either.
 
10546
    (tar --version) >/dev/null 2>&1 && continue
 
10547
    am__tar='tar chf - "$$tardir"'
 
10548
    am__tar_='tar chf - "$tardir"'
 
10549
    am__untar='tar xf -'
 
10550
    ;;
 
10551
  pax)
 
10552
    am__tar='pax -L -x $1 -w "$$tardir"'
 
10553
    am__tar_='pax -L -x $1 -w "$tardir"'
 
10554
    am__untar='pax -r'
 
10555
    ;;
 
10556
  cpio)
 
10557
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
10558
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
10559
    am__untar='cpio -i -H $1 -d'
 
10560
    ;;
 
10561
  none)
 
10562
    am__tar=false
 
10563
    am__tar_=false
 
10564
    am__untar=false
 
10565
    ;;
 
10566
  esac
 
10567
 
 
10568
  # If the value was cached, stop now.  We just wanted to have am__tar
 
10569
  # and am__untar set.
 
10570
  test -n "${am_cv_prog_tar_$1}" && break
 
10571
 
 
10572
  # tar/untar a dummy directory, and stop if the command works
 
10573
  rm -rf conftest.dir
 
10574
  mkdir conftest.dir
 
10575
  echo GrepMe > conftest.dir/file
 
10576
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
10577
  rm -rf conftest.dir
 
10578
  if test -s conftest.tar; then
 
10579
    AM_RUN_LOG([$am__untar <conftest.tar])
 
10580
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
10581
  fi
 
10582
done
 
10583
rm -rf conftest.dir
 
10584
 
 
10585
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
10586
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
10587
AC_SUBST([am__tar])
 
10588
AC_SUBST([am__untar])
 
10589
]) # _AM_PROG_TAR
 
10590